node_ids
listlengths 4
1.4k
| edge_index
listlengths 1
2.22k
| text
listlengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
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,
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,
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,
2,
2,
2,
17,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
121,
5
],
[
121,
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
],
[
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
],
[
65,
68
],
[
62,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
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
],
[
99,
101
],
[
101,
102
],
[
101,
103
],
[
98,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
111,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
111,
115
],
[
115,
116
],
[
115,
117
],
[
6,
118
],
[
118,
119
],
[
0,
120
],
[
120,
121
],
[
120,
122
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int[] count = new int[26];\n for (int i = 0; i < count.length; i++) {\n count[i] = 0;\n }\n while (scanner.hasNext()) {\n String s = scanner.next().toUpperCase();\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if ('A' <= c && c <= 'Z') {\n count[c - 'A']++;\n }\n }\n }\n for (int i = 0; i < count.length; i++) {\n char c = (char)('a' + i);\n System.out.println(\"\"+c+\" : \"+count[i]);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int[] count = new int[26];\n for (int i = 0; i < count.length; i++) {\n count[i] = 0;\n }\n while (scanner.hasNext()) {\n String s = scanner.next().toUpperCase();\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if ('A' <= c && c <= 'Z') {\n count[c - 'A']++;\n }\n }\n }\n for (int i = 0; i < count.length; i++) {\n char c = (char)('a' + i);\n System.out.println(\"\"+c+\" : \"+count[i]);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int[] count = new int[26];\n for (int i = 0; i < count.length; i++) {\n count[i] = 0;\n }\n while (scanner.hasNext()) {\n String s = scanner.next().toUpperCase();\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if ('A' <= c && c <= 'Z') {\n count[c - 'A']++;\n }\n }\n }\n for (int i = 0; i < count.length; i++) {\n char c = (char)('a' + i);\n System.out.println(\"\"+c+\" : \"+count[i]);\n }\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int[] count = new int[26];\n for (int i = 0; i < count.length; i++) {\n count[i] = 0;\n }\n while (scanner.hasNext()) {\n String s = scanner.next().toUpperCase();\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if ('A' <= c && c <= 'Z') {\n count[c - 'A']++;\n }\n }\n }\n for (int i = 0; i < count.length; i++) {\n char c = (char)('a' + i);\n System.out.println(\"\"+c+\" : \"+count[i]);\n }\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int[] count = new int[26];",
"count",
"new int[26]",
"26",
"for (int i = 0; i < count.length; i++) {\n count[i] = 0;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < count.length",
"i",
"count.length",
"count",
"count.length",
"i++",
"i++",
"i",
"{\n count[i] = 0;\n }",
"{\n count[i] = 0;\n }",
"count[i] = 0",
"count[i]",
"count",
"i",
"0",
"while (scanner.hasNext()) {\n String s = scanner.next().toUpperCase();\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if ('A' <= c && c <= 'Z') {\n count[c - 'A']++;\n }\n }\n }",
"scanner.hasNext()",
"scanner.hasNext",
"scanner",
"{\n String s = scanner.next().toUpperCase();\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if ('A' <= c && c <= 'Z') {\n count[c - 'A']++;\n }\n }\n }",
"String s = scanner.next().toUpperCase();",
"s",
"scanner.next().toUpperCase()",
"scanner.next().toUpperCase",
"scanner.next()",
"scanner.next",
"scanner",
"for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if ('A' <= c && c <= 'Z') {\n count[c - 'A']++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n char c = s.charAt(i);\n if ('A' <= c && c <= 'Z') {\n count[c - 'A']++;\n }\n }",
"{\n char c = s.charAt(i);\n if ('A' <= c && c <= 'Z') {\n count[c - 'A']++;\n }\n }",
"char c = s.charAt(i);",
"c",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"if ('A' <= c && c <= 'Z') {\n count[c - 'A']++;\n }",
"'A' <= c && c <= 'Z'",
"'A' <= c",
"'A'",
"c",
"c <= 'Z'",
"c",
"'Z'",
"{\n count[c - 'A']++;\n }",
"count[c - 'A']++",
"count[c - 'A']",
"count",
"c - 'A'",
"c",
"'A'",
"for (int i = 0; i < count.length; i++) {\n char c = (char)('a' + i);\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)('a' + i);\n System.out.println(\"\"+c+\" : \"+count[i]);\n }",
"{\n char c = (char)('a' + i);\n System.out.println(\"\"+c+\" : \"+count[i]);\n }",
"char c = (char)('a' + i);",
"c",
"(char)('a' + i)",
"'a'",
"i",
"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",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int[] count = new int[26];\n for (int i = 0; i < count.length; i++) {\n count[i] = 0;\n }\n while (scanner.hasNext()) {\n String s = scanner.next().toUpperCase();\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if ('A' <= c && c <= 'Z') {\n count[c - 'A']++;\n }\n }\n }\n for (int i = 0; i < count.length; i++) {\n char c = (char)('a' + i);\n System.out.println(\"\"+c+\" : \"+count[i]);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int[] count = new int[26];\n for (int i = 0; i < count.length; i++) {\n count[i] = 0;\n }\n while (scanner.hasNext()) {\n String s = scanner.next().toUpperCase();\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if ('A' <= c && c <= 'Z') {\n count[c - 'A']++;\n }\n }\n }\n for (int i = 0; i < count.length; i++) {\n char c = (char)('a' + i);\n System.out.println(\"\"+c+\" : \"+count[i]);\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int[] count = new int[26];
for (int i = 0; i < count.length; i++) {
count[i] = 0;
}
while (scanner.hasNext()) {
String s = scanner.next().toUpperCase();
for (int i = 0; i < s.length(); i++) {
char c = s.charAt(i);
if ('A' <= c && c <= 'Z') {
count[c - 'A']++;
}
}
}
for (int i = 0; i < count.length; i++) {
char c = (char)('a' + i);
System.out.println(""+c+" : "+count[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,
17,
42,
17,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
3,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
13,
18,
13,
13,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
41,
13,
18,
13,
13,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
17,
17,
1,
40,
13,
30,
30,
14,
2,
13,
13,
30,
0,
13,
17,
0,
18,
13,
13,
13,
40,
13,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
17,
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
],
[
155,
11
],
[
155,
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
],
[
37,
38
],
[
27,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
27,
44
],
[
44,
45
],
[
44,
46
],
[
27,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
47,
57
],
[
57,
58
],
[
58,
59
],
[
47,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
66,
68
],
[
62,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
77,
79
],
[
61,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
61,
85
],
[
85,
86
],
[
85,
87
],
[
61,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
88,
98
],
[
98,
99
],
[
99,
100
],
[
88,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
102,
116
],
[
116,
117
],
[
14,
118
],
[
118,
119
],
[
118,
120
],
[
14,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
126,
127
],
[
126,
128
],
[
121,
129
],
[
129,
130
],
[
130,
131
],
[
121,
132
],
[
133,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
142,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
140,
146
],
[
142,
147
],
[
147,
148
],
[
147,
149
],
[
133,
150
],
[
150,
151
],
[
12,
152
],
[
152,
153
],
[
0,
154
],
[
154,
155
],
[
154,
156
]
]
| [
"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\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// ??????????????°?????¢?????????????????????????????§????´???????array\n\t\tint[] count_array = new int[26];\n\n\t\t// ??°???????????¨?????¨??????????????????\n\t\tchar word_a = 'a';\n\n\t\twhile (true) {\n\n\t\t\t// ???????????\\???\n\t\t\tString Strings = input.readLine();\n\n\t\t\tif (Strings==null) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// 1?????????????????¢??????????????????????????°?????°????????????????????????????´?\n\t\t\tchar[] String_array = Strings.toCharArray();\n\n\t\t\t// ??\\?????????????°??????????a~z????????£?????????????????????????????°\n\t\t\tint count = 0;\n\n\t\t\t// ??????String_array???????´????????????????????????????????????????????????????a~z??§???????????????\n\t\t\tfor (int String_spot = 0; String_spot < String_array.length; String_spot++) {\n\n\t\t\t\t// AOJ????????¨??????????????????????????????????°??????????\n\t\t\t\tif (Character.isUpperCase(String_array[String_spot])) {\n\n\t\t\t\t\tString_array[String_spot] = Character.toLowerCase(String_array[String_spot]);\n\n\t\t\t\t}\n\n\t\t\t\t// a^z?????????????????????????´¢????????¨?????????????????????????????????\n\t\t\t\tchar one_word = String_array[String_spot];\n\n\t\t\t\t// ?????????Z????¬??????????????????????\n\t\t\t\tword_a = 'a';\n\n\t\t\t\t// ??\\???????????????????????????????????????????????¢?????????????????????????????????????´¢????????????\n\t\t\t\tfor (int word_spot = 0; word_spot <= ('z' - 'a'); word_spot++) {\n\n\t\t\t\t\t// ??\\??????????????????????????????????????¢????????????????????????????????¨?????´????????¨???\n\t\t\t\t\tif (one_word == word_a) {\n\n\t\t\t\t\t\t// ????????????\n\t\t\t\t\t\tcount = 1;\n\n\t\t\t\t\t\t// output??¨\n\t\t\t\t\t\tcount_array[word_spot] += count;\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// ?¬??????????\n\t\t\t\t\tword_a++;\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\t// ?????????Z????¬??????????????????????\n\t\tword_a = 'a';\n\n\t\t// ??\\???????????????????????????????????¢?????????????????????z\n\t\tfor (int word_spot = 0; word_spot < 26; word_spot++) {\n\n\t\t\tSystem.out.println(word_a + \" \" + \":\" + \" \" + count_array[word_spot]);\n\n\t\t\tword_a++;\n\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\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// ??????????????°?????¢?????????????????????????????§????´???????array\n\t\tint[] count_array = new int[26];\n\n\t\t// ??°???????????¨?????¨??????????????????\n\t\tchar word_a = 'a';\n\n\t\twhile (true) {\n\n\t\t\t// ???????????\\???\n\t\t\tString Strings = input.readLine();\n\n\t\t\tif (Strings==null) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// 1?????????????????¢??????????????????????????°?????°????????????????????????????´?\n\t\t\tchar[] String_array = Strings.toCharArray();\n\n\t\t\t// ??\\?????????????°??????????a~z????????£?????????????????????????????°\n\t\t\tint count = 0;\n\n\t\t\t// ??????String_array???????´????????????????????????????????????????????????????a~z??§???????????????\n\t\t\tfor (int String_spot = 0; String_spot < String_array.length; String_spot++) {\n\n\t\t\t\t// AOJ????????¨??????????????????????????????????°??????????\n\t\t\t\tif (Character.isUpperCase(String_array[String_spot])) {\n\n\t\t\t\t\tString_array[String_spot] = Character.toLowerCase(String_array[String_spot]);\n\n\t\t\t\t}\n\n\t\t\t\t// a^z?????????????????????????´¢????????¨?????????????????????????????????\n\t\t\t\tchar one_word = String_array[String_spot];\n\n\t\t\t\t// ?????????Z????¬??????????????????????\n\t\t\t\tword_a = 'a';\n\n\t\t\t\t// ??\\???????????????????????????????????????????????¢?????????????????????????????????????´¢????????????\n\t\t\t\tfor (int word_spot = 0; word_spot <= ('z' - 'a'); word_spot++) {\n\n\t\t\t\t\t// ??\\??????????????????????????????????????¢????????????????????????????????¨?????´????????¨???\n\t\t\t\t\tif (one_word == word_a) {\n\n\t\t\t\t\t\t// ????????????\n\t\t\t\t\t\tcount = 1;\n\n\t\t\t\t\t\t// output??¨\n\t\t\t\t\t\tcount_array[word_spot] += count;\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// ?¬??????????\n\t\t\t\t\tword_a++;\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\t// ?????????Z????¬??????????????????????\n\t\tword_a = 'a';\n\n\t\t// ??\\???????????????????????????????????¢?????????????????????z\n\t\tfor (int word_spot = 0; word_spot < 26; word_spot++) {\n\n\t\t\tSystem.out.println(word_a + \" \" + \":\" + \" \" + count_array[word_spot]);\n\n\t\t\tword_a++;\n\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// ??????????????°?????¢?????????????????????????????§????´???????array\n\t\tint[] count_array = new int[26];\n\n\t\t// ??°???????????¨?????¨??????????????????\n\t\tchar word_a = 'a';\n\n\t\twhile (true) {\n\n\t\t\t// ???????????\\???\n\t\t\tString Strings = input.readLine();\n\n\t\t\tif (Strings==null) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// 1?????????????????¢??????????????????????????°?????°????????????????????????????´?\n\t\t\tchar[] String_array = Strings.toCharArray();\n\n\t\t\t// ??\\?????????????°??????????a~z????????£?????????????????????????????°\n\t\t\tint count = 0;\n\n\t\t\t// ??????String_array???????´????????????????????????????????????????????????????a~z??§???????????????\n\t\t\tfor (int String_spot = 0; String_spot < String_array.length; String_spot++) {\n\n\t\t\t\t// AOJ????????¨??????????????????????????????????°??????????\n\t\t\t\tif (Character.isUpperCase(String_array[String_spot])) {\n\n\t\t\t\t\tString_array[String_spot] = Character.toLowerCase(String_array[String_spot]);\n\n\t\t\t\t}\n\n\t\t\t\t// a^z?????????????????????????´¢????????¨?????????????????????????????????\n\t\t\t\tchar one_word = String_array[String_spot];\n\n\t\t\t\t// ?????????Z????¬??????????????????????\n\t\t\t\tword_a = 'a';\n\n\t\t\t\t// ??\\???????????????????????????????????????????????¢?????????????????????????????????????´¢????????????\n\t\t\t\tfor (int word_spot = 0; word_spot <= ('z' - 'a'); word_spot++) {\n\n\t\t\t\t\t// ??\\??????????????????????????????????????¢????????????????????????????????¨?????´????????¨???\n\t\t\t\t\tif (one_word == word_a) {\n\n\t\t\t\t\t\t// ????????????\n\t\t\t\t\t\tcount = 1;\n\n\t\t\t\t\t\t// output??¨\n\t\t\t\t\t\tcount_array[word_spot] += count;\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// ?¬??????????\n\t\t\t\t\tword_a++;\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\t// ?????????Z????¬??????????????????????\n\t\tword_a = 'a';\n\n\t\t// ??\\???????????????????????????????????¢?????????????????????z\n\t\tfor (int word_spot = 0; word_spot < 26; word_spot++) {\n\n\t\t\tSystem.out.println(word_a + \" \" + \":\" + \" \" + count_array[word_spot]);\n\n\t\t\tword_a++;\n\n\t\t}\n\n\t}",
"main",
"{\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// ??????????????°?????¢?????????????????????????????§????´???????array\n\t\tint[] count_array = new int[26];\n\n\t\t// ??°???????????¨?????¨??????????????????\n\t\tchar word_a = 'a';\n\n\t\twhile (true) {\n\n\t\t\t// ???????????\\???\n\t\t\tString Strings = input.readLine();\n\n\t\t\tif (Strings==null) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// 1?????????????????¢??????????????????????????°?????°????????????????????????????´?\n\t\t\tchar[] String_array = Strings.toCharArray();\n\n\t\t\t// ??\\?????????????°??????????a~z????????£?????????????????????????????°\n\t\t\tint count = 0;\n\n\t\t\t// ??????String_array???????´????????????????????????????????????????????????????a~z??§???????????????\n\t\t\tfor (int String_spot = 0; String_spot < String_array.length; String_spot++) {\n\n\t\t\t\t// AOJ????????¨??????????????????????????????????°??????????\n\t\t\t\tif (Character.isUpperCase(String_array[String_spot])) {\n\n\t\t\t\t\tString_array[String_spot] = Character.toLowerCase(String_array[String_spot]);\n\n\t\t\t\t}\n\n\t\t\t\t// a^z?????????????????????????´¢????????¨?????????????????????????????????\n\t\t\t\tchar one_word = String_array[String_spot];\n\n\t\t\t\t// ?????????Z????¬??????????????????????\n\t\t\t\tword_a = 'a';\n\n\t\t\t\t// ??\\???????????????????????????????????????????????¢?????????????????????????????????????´¢????????????\n\t\t\t\tfor (int word_spot = 0; word_spot <= ('z' - 'a'); word_spot++) {\n\n\t\t\t\t\t// ??\\??????????????????????????????????????¢????????????????????????????????¨?????´????????¨???\n\t\t\t\t\tif (one_word == word_a) {\n\n\t\t\t\t\t\t// ????????????\n\t\t\t\t\t\tcount = 1;\n\n\t\t\t\t\t\t// output??¨\n\t\t\t\t\t\tcount_array[word_spot] += count;\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// ?¬??????????\n\t\t\t\t\tword_a++;\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\t// ?????????Z????¬??????????????????????\n\t\tword_a = 'a';\n\n\t\t// ??\\???????????????????????????????????¢?????????????????????z\n\t\tfor (int word_spot = 0; word_spot < 26; word_spot++) {\n\n\t\t\tSystem.out.println(word_a + \" \" + \":\" + \" \" + count_array[word_spot]);\n\n\t\t\tword_a++;\n\n\t\t}\n\n\t}",
"BufferedReader input = new BufferedReader(new InputStreamReader(System.in));",
"input",
"new BufferedReader(new InputStreamReader(System.in))",
"int[] count_array = new int[26];",
"count_array",
"new int[26]",
"26",
"char word_a = 'a';",
"word_a",
"'a'",
"while (true) {\n\n\t\t\t// ???????????\\???\n\t\t\tString Strings = input.readLine();\n\n\t\t\tif (Strings==null) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// 1?????????????????¢??????????????????????????°?????°????????????????????????????´?\n\t\t\tchar[] String_array = Strings.toCharArray();\n\n\t\t\t// ??\\?????????????°??????????a~z????????£?????????????????????????????°\n\t\t\tint count = 0;\n\n\t\t\t// ??????String_array???????´????????????????????????????????????????????????????a~z??§???????????????\n\t\t\tfor (int String_spot = 0; String_spot < String_array.length; String_spot++) {\n\n\t\t\t\t// AOJ????????¨??????????????????????????????????°??????????\n\t\t\t\tif (Character.isUpperCase(String_array[String_spot])) {\n\n\t\t\t\t\tString_array[String_spot] = Character.toLowerCase(String_array[String_spot]);\n\n\t\t\t\t}\n\n\t\t\t\t// a^z?????????????????????????´¢????????¨?????????????????????????????????\n\t\t\t\tchar one_word = String_array[String_spot];\n\n\t\t\t\t// ?????????Z????¬??????????????????????\n\t\t\t\tword_a = 'a';\n\n\t\t\t\t// ??\\???????????????????????????????????????????????¢?????????????????????????????????????´¢????????????\n\t\t\t\tfor (int word_spot = 0; word_spot <= ('z' - 'a'); word_spot++) {\n\n\t\t\t\t\t// ??\\??????????????????????????????????????¢????????????????????????????????¨?????´????????¨???\n\t\t\t\t\tif (one_word == word_a) {\n\n\t\t\t\t\t\t// ????????????\n\t\t\t\t\t\tcount = 1;\n\n\t\t\t\t\t\t// output??¨\n\t\t\t\t\t\tcount_array[word_spot] += count;\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// ?¬??????????\n\t\t\t\t\tword_a++;\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"true",
"{\n\n\t\t\t// ???????????\\???\n\t\t\tString Strings = input.readLine();\n\n\t\t\tif (Strings==null) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// 1?????????????????¢??????????????????????????°?????°????????????????????????????´?\n\t\t\tchar[] String_array = Strings.toCharArray();\n\n\t\t\t// ??\\?????????????°??????????a~z????????£?????????????????????????????°\n\t\t\tint count = 0;\n\n\t\t\t// ??????String_array???????´????????????????????????????????????????????????????a~z??§???????????????\n\t\t\tfor (int String_spot = 0; String_spot < String_array.length; String_spot++) {\n\n\t\t\t\t// AOJ????????¨??????????????????????????????????°??????????\n\t\t\t\tif (Character.isUpperCase(String_array[String_spot])) {\n\n\t\t\t\t\tString_array[String_spot] = Character.toLowerCase(String_array[String_spot]);\n\n\t\t\t\t}\n\n\t\t\t\t// a^z?????????????????????????´¢????????¨?????????????????????????????????\n\t\t\t\tchar one_word = String_array[String_spot];\n\n\t\t\t\t// ?????????Z????¬??????????????????????\n\t\t\t\tword_a = 'a';\n\n\t\t\t\t// ??\\???????????????????????????????????????????????¢?????????????????????????????????????´¢????????????\n\t\t\t\tfor (int word_spot = 0; word_spot <= ('z' - 'a'); word_spot++) {\n\n\t\t\t\t\t// ??\\??????????????????????????????????????¢????????????????????????????????¨?????´????????¨???\n\t\t\t\t\tif (one_word == word_a) {\n\n\t\t\t\t\t\t// ????????????\n\t\t\t\t\t\tcount = 1;\n\n\t\t\t\t\t\t// output??¨\n\t\t\t\t\t\tcount_array[word_spot] += count;\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// ?¬??????????\n\t\t\t\t\tword_a++;\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"String Strings = input.readLine();",
"Strings",
"input.readLine()",
"input.readLine",
"input",
"if (Strings==null) {\n\t\t\t\tbreak;\n\t\t\t}",
"Strings==null",
"Strings",
"null",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"char[] String_array = Strings.toCharArray();",
"String_array",
"Strings.toCharArray()",
"Strings.toCharArray",
"Strings",
"int count = 0;",
"count",
"0",
"for (int String_spot = 0; String_spot < String_array.length; String_spot++) {\n\n\t\t\t\t// AOJ????????¨??????????????????????????????????°??????????\n\t\t\t\tif (Character.isUpperCase(String_array[String_spot])) {\n\n\t\t\t\t\tString_array[String_spot] = Character.toLowerCase(String_array[String_spot]);\n\n\t\t\t\t}\n\n\t\t\t\t// a^z?????????????????????????´¢????????¨?????????????????????????????????\n\t\t\t\tchar one_word = String_array[String_spot];\n\n\t\t\t\t// ?????????Z????¬??????????????????????\n\t\t\t\tword_a = 'a';\n\n\t\t\t\t// ??\\???????????????????????????????????????????????¢?????????????????????????????????????´¢????????????\n\t\t\t\tfor (int word_spot = 0; word_spot <= ('z' - 'a'); word_spot++) {\n\n\t\t\t\t\t// ??\\??????????????????????????????????????¢????????????????????????????????¨?????´????????¨???\n\t\t\t\t\tif (one_word == word_a) {\n\n\t\t\t\t\t\t// ????????????\n\t\t\t\t\t\tcount = 1;\n\n\t\t\t\t\t\t// output??¨\n\t\t\t\t\t\tcount_array[word_spot] += count;\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// ?¬??????????\n\t\t\t\t\tword_a++;\n\n\t\t\t\t}\n\n\t\t\t}",
"int String_spot = 0;",
"int String_spot = 0;",
"String_spot",
"0",
"String_spot < String_array.length",
"String_spot",
"String_array.length",
"String_array",
"String_array.length",
"String_spot++",
"String_spot++",
"String_spot",
"{\n\n\t\t\t\t// AOJ????????¨??????????????????????????????????°??????????\n\t\t\t\tif (Character.isUpperCase(String_array[String_spot])) {\n\n\t\t\t\t\tString_array[String_spot] = Character.toLowerCase(String_array[String_spot]);\n\n\t\t\t\t}\n\n\t\t\t\t// a^z?????????????????????????´¢????????¨?????????????????????????????????\n\t\t\t\tchar one_word = String_array[String_spot];\n\n\t\t\t\t// ?????????Z????¬??????????????????????\n\t\t\t\tword_a = 'a';\n\n\t\t\t\t// ??\\???????????????????????????????????????????????¢?????????????????????????????????????´¢????????????\n\t\t\t\tfor (int word_spot = 0; word_spot <= ('z' - 'a'); word_spot++) {\n\n\t\t\t\t\t// ??\\??????????????????????????????????????¢????????????????????????????????¨?????´????????¨???\n\t\t\t\t\tif (one_word == word_a) {\n\n\t\t\t\t\t\t// ????????????\n\t\t\t\t\t\tcount = 1;\n\n\t\t\t\t\t\t// output??¨\n\t\t\t\t\t\tcount_array[word_spot] += count;\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// ?¬??????????\n\t\t\t\t\tword_a++;\n\n\t\t\t\t}\n\n\t\t\t}",
"{\n\n\t\t\t\t// AOJ????????¨??????????????????????????????????°??????????\n\t\t\t\tif (Character.isUpperCase(String_array[String_spot])) {\n\n\t\t\t\t\tString_array[String_spot] = Character.toLowerCase(String_array[String_spot]);\n\n\t\t\t\t}\n\n\t\t\t\t// a^z?????????????????????????´¢????????¨?????????????????????????????????\n\t\t\t\tchar one_word = String_array[String_spot];\n\n\t\t\t\t// ?????????Z????¬??????????????????????\n\t\t\t\tword_a = 'a';\n\n\t\t\t\t// ??\\???????????????????????????????????????????????¢?????????????????????????????????????´¢????????????\n\t\t\t\tfor (int word_spot = 0; word_spot <= ('z' - 'a'); word_spot++) {\n\n\t\t\t\t\t// ??\\??????????????????????????????????????¢????????????????????????????????¨?????´????????¨???\n\t\t\t\t\tif (one_word == word_a) {\n\n\t\t\t\t\t\t// ????????????\n\t\t\t\t\t\tcount = 1;\n\n\t\t\t\t\t\t// output??¨\n\t\t\t\t\t\tcount_array[word_spot] += count;\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// ?¬??????????\n\t\t\t\t\tword_a++;\n\n\t\t\t\t}\n\n\t\t\t}",
"if (Character.isUpperCase(String_array[String_spot])) {\n\n\t\t\t\t\tString_array[String_spot] = Character.toLowerCase(String_array[String_spot]);\n\n\t\t\t\t}",
"Character.isUpperCase(String_array[String_spot])",
"Character.isUpperCase",
"Character",
"String_array[String_spot]",
"String_array",
"String_spot",
"{\n\n\t\t\t\t\tString_array[String_spot] = Character.toLowerCase(String_array[String_spot]);\n\n\t\t\t\t}",
"String_array[String_spot] = Character.toLowerCase(String_array[String_spot])",
"String_array[String_spot]",
"String_array",
"String_spot",
"Character.toLowerCase(String_array[String_spot])",
"Character.toLowerCase",
"Character",
"String_array[String_spot]",
"String_array",
"String_spot",
"char one_word = String_array[String_spot];",
"one_word",
"String_array[String_spot]",
"String_array",
"String_spot",
"word_a = 'a'",
"word_a",
"'a'",
"for (int word_spot = 0; word_spot <= ('z' - 'a'); word_spot++) {\n\n\t\t\t\t\t// ??\\??????????????????????????????????????¢????????????????????????????????¨?????´????????¨???\n\t\t\t\t\tif (one_word == word_a) {\n\n\t\t\t\t\t\t// ????????????\n\t\t\t\t\t\tcount = 1;\n\n\t\t\t\t\t\t// output??¨\n\t\t\t\t\t\tcount_array[word_spot] += count;\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// ?¬??????????\n\t\t\t\t\tword_a++;\n\n\t\t\t\t}",
"int word_spot = 0;",
"int word_spot = 0;",
"word_spot",
"0",
"word_spot <= ('z' - 'a')",
"word_spot",
"('z' - 'a')",
"'z'",
"'a'",
"word_spot++",
"word_spot++",
"word_spot",
"{\n\n\t\t\t\t\t// ??\\??????????????????????????????????????¢????????????????????????????????¨?????´????????¨???\n\t\t\t\t\tif (one_word == word_a) {\n\n\t\t\t\t\t\t// ????????????\n\t\t\t\t\t\tcount = 1;\n\n\t\t\t\t\t\t// output??¨\n\t\t\t\t\t\tcount_array[word_spot] += count;\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// ?¬??????????\n\t\t\t\t\tword_a++;\n\n\t\t\t\t}",
"{\n\n\t\t\t\t\t// ??\\??????????????????????????????????????¢????????????????????????????????¨?????´????????¨???\n\t\t\t\t\tif (one_word == word_a) {\n\n\t\t\t\t\t\t// ????????????\n\t\t\t\t\t\tcount = 1;\n\n\t\t\t\t\t\t// output??¨\n\t\t\t\t\t\tcount_array[word_spot] += count;\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// ?¬??????????\n\t\t\t\t\tword_a++;\n\n\t\t\t\t}",
"if (one_word == word_a) {\n\n\t\t\t\t\t\t// ????????????\n\t\t\t\t\t\tcount = 1;\n\n\t\t\t\t\t\t// output??¨\n\t\t\t\t\t\tcount_array[word_spot] += count;\n\n\t\t\t\t\t}",
"one_word == word_a",
"one_word",
"word_a",
"{\n\n\t\t\t\t\t\t// ????????????\n\t\t\t\t\t\tcount = 1;\n\n\t\t\t\t\t\t// output??¨\n\t\t\t\t\t\tcount_array[word_spot] += count;\n\n\t\t\t\t\t}",
"count = 1",
"count",
"1",
"count_array[word_spot] += count",
"count_array[word_spot]",
"count_array",
"word_spot",
"count",
"word_a++",
"word_a",
"word_a = 'a'",
"word_a",
"'a'",
"for (int word_spot = 0; word_spot < 26; word_spot++) {\n\n\t\t\tSystem.out.println(word_a + \" \" + \":\" + \" \" + count_array[word_spot]);\n\n\t\t\tword_a++;\n\n\t\t}",
"int word_spot = 0;",
"int word_spot = 0;",
"word_spot",
"0",
"word_spot < 26",
"word_spot",
"26",
"word_spot++",
"word_spot++",
"word_spot",
"{\n\n\t\t\tSystem.out.println(word_a + \" \" + \":\" + \" \" + count_array[word_spot]);\n\n\t\t\tword_a++;\n\n\t\t}",
"{\n\n\t\t\tSystem.out.println(word_a + \" \" + \":\" + \" \" + count_array[word_spot]);\n\n\t\t\tword_a++;\n\n\t\t}",
"System.out.println(word_a + \" \" + \":\" + \" \" + count_array[word_spot])",
"System.out.println",
"System.out",
"System",
"System.out",
"word_a + \" \" + \":\" + \" \" + count_array[word_spot]",
"\" \"",
"\":\"",
"word_a + \" \" + \":\" + \" \" + count_array[word_spot]",
"word_a",
"\" \"",
"\":\"",
"\" \"",
"count_array[word_spot]",
"count_array",
"word_spot",
"word_a++",
"word_a",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// ??????????????°?????¢?????????????????????????????§????´???????array\n\t\tint[] count_array = new int[26];\n\n\t\t// ??°???????????¨?????¨??????????????????\n\t\tchar word_a = 'a';\n\n\t\twhile (true) {\n\n\t\t\t// ???????????\\???\n\t\t\tString Strings = input.readLine();\n\n\t\t\tif (Strings==null) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// 1?????????????????¢??????????????????????????°?????°????????????????????????????´?\n\t\t\tchar[] String_array = Strings.toCharArray();\n\n\t\t\t// ??\\?????????????°??????????a~z????????£?????????????????????????????°\n\t\t\tint count = 0;\n\n\t\t\t// ??????String_array???????´????????????????????????????????????????????????????a~z??§???????????????\n\t\t\tfor (int String_spot = 0; String_spot < String_array.length; String_spot++) {\n\n\t\t\t\t// AOJ????????¨??????????????????????????????????°??????????\n\t\t\t\tif (Character.isUpperCase(String_array[String_spot])) {\n\n\t\t\t\t\tString_array[String_spot] = Character.toLowerCase(String_array[String_spot]);\n\n\t\t\t\t}\n\n\t\t\t\t// a^z?????????????????????????´¢????????¨?????????????????????????????????\n\t\t\t\tchar one_word = String_array[String_spot];\n\n\t\t\t\t// ?????????Z????¬??????????????????????\n\t\t\t\tword_a = 'a';\n\n\t\t\t\t// ??\\???????????????????????????????????????????????¢?????????????????????????????????????´¢????????????\n\t\t\t\tfor (int word_spot = 0; word_spot <= ('z' - 'a'); word_spot++) {\n\n\t\t\t\t\t// ??\\??????????????????????????????????????¢????????????????????????????????¨?????´????????¨???\n\t\t\t\t\tif (one_word == word_a) {\n\n\t\t\t\t\t\t// ????????????\n\t\t\t\t\t\tcount = 1;\n\n\t\t\t\t\t\t// output??¨\n\t\t\t\t\t\tcount_array[word_spot] += count;\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// ?¬??????????\n\t\t\t\t\tword_a++;\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\t// ?????????Z????¬??????????????????????\n\t\tword_a = 'a';\n\n\t\t// ??\\???????????????????????????????????¢?????????????????????z\n\t\tfor (int word_spot = 0; word_spot < 26; word_spot++) {\n\n\t\t\tSystem.out.println(word_a + \" \" + \":\" + \" \" + count_array[word_spot]);\n\n\t\t\tword_a++;\n\n\t\t}\n\n\t}\n}",
"public class Main{\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// ??????????????°?????¢?????????????????????????????§????´???????array\n\t\tint[] count_array = new int[26];\n\n\t\t// ??°???????????¨?????¨??????????????????\n\t\tchar word_a = 'a';\n\n\t\twhile (true) {\n\n\t\t\t// ???????????\\???\n\t\t\tString Strings = input.readLine();\n\n\t\t\tif (Strings==null) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// 1?????????????????¢??????????????????????????°?????°????????????????????????????´?\n\t\t\tchar[] String_array = Strings.toCharArray();\n\n\t\t\t// ??\\?????????????°??????????a~z????????£?????????????????????????????°\n\t\t\tint count = 0;\n\n\t\t\t// ??????String_array???????´????????????????????????????????????????????????????a~z??§???????????????\n\t\t\tfor (int String_spot = 0; String_spot < String_array.length; String_spot++) {\n\n\t\t\t\t// AOJ????????¨??????????????????????????????????°??????????\n\t\t\t\tif (Character.isUpperCase(String_array[String_spot])) {\n\n\t\t\t\t\tString_array[String_spot] = Character.toLowerCase(String_array[String_spot]);\n\n\t\t\t\t}\n\n\t\t\t\t// a^z?????????????????????????´¢????????¨?????????????????????????????????\n\t\t\t\tchar one_word = String_array[String_spot];\n\n\t\t\t\t// ?????????Z????¬??????????????????????\n\t\t\t\tword_a = 'a';\n\n\t\t\t\t// ??\\???????????????????????????????????????????????¢?????????????????????????????????????´¢????????????\n\t\t\t\tfor (int word_spot = 0; word_spot <= ('z' - 'a'); word_spot++) {\n\n\t\t\t\t\t// ??\\??????????????????????????????????????¢????????????????????????????????¨?????´????????¨???\n\t\t\t\t\tif (one_word == word_a) {\n\n\t\t\t\t\t\t// ????????????\n\t\t\t\t\t\tcount = 1;\n\n\t\t\t\t\t\t// output??¨\n\t\t\t\t\t\tcount_array[word_spot] += count;\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// ?¬??????????\n\t\t\t\t\tword_a++;\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\t// ?????????Z????¬??????????????????????\n\t\tword_a = 'a';\n\n\t\t// ??\\???????????????????????????????????¢?????????????????????z\n\t\tfor (int word_spot = 0; word_spot < 26; word_spot++) {\n\n\t\t\tSystem.out.println(word_a + \" \" + \":\" + \" \" + count_array[word_spot]);\n\n\t\t\tword_a++;\n\n\t\t}\n\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 {
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
// ??????????????°?????¢?????????????????????????????§????´???????array
int[] count_array = new int[26];
// ??°???????????¨?????¨??????????????????
char word_a = 'a';
while (true) {
// ???????????\???
String Strings = input.readLine();
if (Strings==null) {
break;
}
// 1?????????????????¢??????????????????????????°?????°????????????????????????????´?
char[] String_array = Strings.toCharArray();
// ??\?????????????°??????????a~z????????£?????????????????????????????°
int count = 0;
// ??????String_array???????´????????????????????????????????????????????????????a~z??§???????????????
for (int String_spot = 0; String_spot < String_array.length; String_spot++) {
// AOJ????????¨??????????????????????????????????°??????????
if (Character.isUpperCase(String_array[String_spot])) {
String_array[String_spot] = Character.toLowerCase(String_array[String_spot]);
}
// a^z?????????????????????????´¢????????¨?????????????????????????????????
char one_word = String_array[String_spot];
// ?????????Z????¬??????????????????????
word_a = 'a';
// ??\???????????????????????????????????????????????¢?????????????????????????????????????´¢????????????
for (int word_spot = 0; word_spot <= ('z' - 'a'); word_spot++) {
// ??\??????????????????????????????????????¢????????????????????????????????¨?????´????????¨???
if (one_word == word_a) {
// ????????????
count = 1;
// output??¨
count_array[word_spot] += count;
}
// ?¬??????????
word_a++;
}
}
}
// ?????????Z????¬??????????????????????
word_a = 'a';
// ??\???????????????????????????????????¢?????????????????????z
for (int word_spot = 0; word_spot < 26; word_spot++) {
System.out.println(word_a + " " + ":" + " " + count_array[word_spot]);
word_a++;
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
20,
11,
1,
2,
0,
13,
4,
18,
13,
17,
30,
30,
41,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
18,
13,
13,
14,
2,
2,
17,
13,
2,
13,
17,
0,
13,
17,
0,
13,
17,
14,
2,
2,
13,
17,
2,
17,
13,
9,
0,
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,
4,
18,
18,
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
],
[
11,
14
],
[
14,
15
],
[
11,
16
],
[
16,
17
],
[
16,
18
],
[
11,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
27,
33
],
[
25,
34
],
[
35,
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
],
[
48,
50
],
[
41,
51
],
[
51,
52
],
[
52,
53
],
[
41,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
69,
71
],
[
55,
72
],
[
72,
73
],
[
72,
74
],
[
55,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
80,
82
],
[
75,
83
],
[
55,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
11,
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
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
108,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
108,
113
],
[
113,
114
],
[
113,
115
],
[
11,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
9,
121
],
[
121,
122
]
]
| [
"import java.io.*;\nimport java.util.Arrays;\nclass Main{\n public static void main(String[] args) throws IOException {\n int i,tmp;\n int[] A = new int[100];\n String str;\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n for(;(str=in.readLine())!=null;){\n char[] c = str.toCharArray();\n for(i=0;i<c.length;i++){\n tmp = (int)c[i];\n if(64 < tmp && tmp <91) tmp+=32;\n tmp-=97;\n if(tmp < 0 || 27 < tmp) continue;\n A[tmp]+=1;\n }\n }\n for(i=0;i<26;i++){\n System.out.println((char)(97+i)+\" : \"+A[i]);\n } \n System.out.flush();\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.Arrays;",
"Arrays",
"java.util",
"class Main{\n public static void main(String[] args) throws IOException {\n int i,tmp;\n int[] A = new int[100];\n String str;\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n for(;(str=in.readLine())!=null;){\n char[] c = str.toCharArray();\n for(i=0;i<c.length;i++){\n tmp = (int)c[i];\n if(64 < tmp && tmp <91) tmp+=32;\n tmp-=97;\n if(tmp < 0 || 27 < tmp) continue;\n A[tmp]+=1;\n }\n }\n for(i=0;i<26;i++){\n System.out.println((char)(97+i)+\" : \"+A[i]);\n } \n System.out.flush();\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n int i,tmp;\n int[] A = new int[100];\n String str;\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n for(;(str=in.readLine())!=null;){\n char[] c = str.toCharArray();\n for(i=0;i<c.length;i++){\n tmp = (int)c[i];\n if(64 < tmp && tmp <91) tmp+=32;\n tmp-=97;\n if(tmp < 0 || 27 < tmp) continue;\n A[tmp]+=1;\n }\n }\n for(i=0;i<26;i++){\n System.out.println((char)(97+i)+\" : \"+A[i]);\n } \n System.out.flush();\n }",
"main",
"{\n int i,tmp;\n int[] A = new int[100];\n String str;\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n for(;(str=in.readLine())!=null;){\n char[] c = str.toCharArray();\n for(i=0;i<c.length;i++){\n tmp = (int)c[i];\n if(64 < tmp && tmp <91) tmp+=32;\n tmp-=97;\n if(tmp < 0 || 27 < tmp) continue;\n A[tmp]+=1;\n }\n }\n for(i=0;i<26;i++){\n System.out.println((char)(97+i)+\" : \"+A[i]);\n } \n System.out.flush();\n }",
"int i",
"i",
"tmp;",
"tmp",
"int[] A = new int[100];",
"A",
"new int[100]",
"100",
"String str;",
"str",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"for(;(str=in.readLine())!=null;){\n char[] c = str.toCharArray();\n for(i=0;i<c.length;i++){\n tmp = (int)c[i];\n if(64 < tmp && tmp <91) tmp+=32;\n tmp-=97;\n if(tmp < 0 || 27 < tmp) continue;\n A[tmp]+=1;\n }\n }",
";",
"(str=in.readLine())!=null",
"(str=in.readLine())",
"str",
"in.readLine()",
"in.readLine",
"in",
"null",
"{\n char[] c = str.toCharArray();\n for(i=0;i<c.length;i++){\n tmp = (int)c[i];\n if(64 < tmp && tmp <91) tmp+=32;\n tmp-=97;\n if(tmp < 0 || 27 < tmp) continue;\n A[tmp]+=1;\n }\n }",
"{\n char[] c = str.toCharArray();\n for(i=0;i<c.length;i++){\n tmp = (int)c[i];\n if(64 < tmp && tmp <91) tmp+=32;\n tmp-=97;\n if(tmp < 0 || 27 < tmp) continue;\n A[tmp]+=1;\n }\n }",
"char[] c = str.toCharArray();",
"c",
"str.toCharArray()",
"str.toCharArray",
"str",
"for(i=0;i<c.length;i++){\n tmp = (int)c[i];\n if(64 < tmp && tmp <91) tmp+=32;\n tmp-=97;\n if(tmp < 0 || 27 < tmp) continue;\n A[tmp]+=1;\n }",
"i=0;",
"i=0",
"i",
"0",
"i<c.length",
"i",
"c.length",
"c",
"c.length",
"i++",
"i++",
"i",
"{\n tmp = (int)c[i];\n if(64 < tmp && tmp <91) tmp+=32;\n tmp-=97;\n if(tmp < 0 || 27 < tmp) continue;\n A[tmp]+=1;\n }",
"{\n tmp = (int)c[i];\n if(64 < tmp && tmp <91) tmp+=32;\n tmp-=97;\n if(tmp < 0 || 27 < tmp) continue;\n A[tmp]+=1;\n }",
"tmp = (int)c[i]",
"tmp",
"(int)c[i]",
"c",
"i",
"if(64 < tmp && tmp <91) tmp+=32;",
"64 < tmp && tmp <91",
"64 < tmp",
"64",
"tmp",
"tmp <91",
"tmp",
"91",
"tmp+=32",
"tmp",
"32",
"tmp-=97",
"tmp",
"97",
"if(tmp < 0 || 27 < tmp) continue;",
"tmp < 0 || 27 < tmp",
"tmp < 0",
"tmp",
"0",
"27 < tmp",
"27",
"tmp",
"continue;",
"A[tmp]+=1",
"A[tmp]",
"A",
"tmp",
"1",
"for(i=0;i<26;i++){\n System.out.println((char)(97+i)+\" : \"+A[i]);\n }",
"i=0;",
"i=0",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n System.out.println((char)(97+i)+\" : \"+A[i]);\n }",
"{\n System.out.println((char)(97+i)+\" : \"+A[i]);\n }",
"System.out.println((char)(97+i)+\" : \"+A[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)(97+i)+\" : \"+A[i]",
"(char)(97+i)+\" : \"+A[i]",
"(char)(97+i)",
"97",
"i",
"\" : \"",
"A[i]",
"A",
"i",
"System.out.flush()",
"System.out.flush",
"System.out",
"System",
"System.out",
"String[] args",
"args"
]
| import java.io.*;
import java.util.Arrays;
class Main{
public static void main(String[] args) throws IOException {
int i,tmp;
int[] A = new int[100];
String str;
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
for(;(str=in.readLine())!=null;){
char[] c = str.toCharArray();
for(i=0;i<c.length;i++){
tmp = (int)c[i];
if(64 < tmp && tmp <91) tmp+=32;
tmp-=97;
if(tmp < 0 || 27 < tmp) continue;
A[tmp]+=1;
}
}
for(i=0;i<26;i++){
System.out.println((char)(97+i)+" : "+A[i]);
}
System.out.flush();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
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,
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,
17,
18,
13,
13,
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,
2,
2,
2,
13,
17,
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,
21
],
[
21,
22
],
[
21,
23
],
[
14,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
25,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
29,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
29,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
45,
55
],
[
55,
56
],
[
56,
57
],
[
45,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
60,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
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.util.*;\nimport java.util.Scanner;\nimport java.util.Arrays;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString str = \"\";\n\t\tint[] b = new int[26];\n\t\twhile(scanner.hasNext()) {\n\t\t\tstr = scanner.nextLine();\n\t\t\tstr = str.toLowerCase();\n\t\t\tchar[] c = str.toCharArray();\n\t\t\tfor(int i = 0; i < c.length; i++) {\n\t\t\t\tif('a' <= c[i] && c[i] <= 'z') {\n\t\t\t\t\tb[c[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(((char)(i + 'a')) + \" : \" + b[i]);\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString str = \"\";\n\t\tint[] b = new int[26];\n\t\twhile(scanner.hasNext()) {\n\t\t\tstr = scanner.nextLine();\n\t\t\tstr = str.toLowerCase();\n\t\t\tchar[] c = str.toCharArray();\n\t\t\tfor(int i = 0; i < c.length; i++) {\n\t\t\t\tif('a' <= c[i] && c[i] <= 'z') {\n\t\t\t\t\tb[c[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(((char)(i + 'a')) + \" : \" + b[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString str = \"\";\n\t\tint[] b = new int[26];\n\t\twhile(scanner.hasNext()) {\n\t\t\tstr = scanner.nextLine();\n\t\t\tstr = str.toLowerCase();\n\t\t\tchar[] c = str.toCharArray();\n\t\t\tfor(int i = 0; i < c.length; i++) {\n\t\t\t\tif('a' <= c[i] && c[i] <= 'z') {\n\t\t\t\t\tb[c[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(((char)(i + 'a')) + \" : \" + b[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString str = \"\";\n\t\tint[] b = new int[26];\n\t\twhile(scanner.hasNext()) {\n\t\t\tstr = scanner.nextLine();\n\t\t\tstr = str.toLowerCase();\n\t\t\tchar[] c = str.toCharArray();\n\t\t\tfor(int i = 0; i < c.length; i++) {\n\t\t\t\tif('a' <= c[i] && c[i] <= 'z') {\n\t\t\t\t\tb[c[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(((char)(i + 'a')) + \" : \" + b[i]);\n\t\t}\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"String str = \"\";",
"str",
"\"\"",
"int[] b = new int[26];",
"b",
"new int[26]",
"26",
"while(scanner.hasNext()) {\n\t\t\tstr = scanner.nextLine();\n\t\t\tstr = str.toLowerCase();\n\t\t\tchar[] c = str.toCharArray();\n\t\t\tfor(int i = 0; i < c.length; i++) {\n\t\t\t\tif('a' <= c[i] && c[i] <= 'z') {\n\t\t\t\t\tb[c[i] - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"scanner.hasNext()",
"scanner.hasNext",
"scanner",
"{\n\t\t\tstr = scanner.nextLine();\n\t\t\tstr = str.toLowerCase();\n\t\t\tchar[] c = str.toCharArray();\n\t\t\tfor(int i = 0; i < c.length; i++) {\n\t\t\t\tif('a' <= c[i] && c[i] <= 'z') {\n\t\t\t\t\tb[c[i] - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"str = scanner.nextLine()",
"str",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"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\t\t\t\tif('a' <= c[i] && c[i] <= 'z') {\n\t\t\t\t\tb[c[i] - 'a']++;\n\t\t\t\t}\n\t\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\t\tif('a' <= c[i] && c[i] <= 'z') {\n\t\t\t\t\tb[c[i] - 'a']++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif('a' <= c[i] && c[i] <= 'z') {\n\t\t\t\t\tb[c[i] - 'a']++;\n\t\t\t\t}\n\t\t\t}",
"if('a' <= c[i] && c[i] <= 'z') {\n\t\t\t\t\tb[c[i] - 'a']++;\n\t\t\t\t}",
"'a' <= c[i] && c[i] <= 'z'",
"'a' <= c[i]",
"'a'",
"c[i]",
"c",
"i",
"c[i] <= 'z'",
"c[i]",
"c",
"i",
"'z'",
"{\n\t\t\t\t\tb[c[i] - 'a']++;\n\t\t\t\t}",
"b[c[i] - 'a']++",
"b[c[i] - 'a']",
"b",
"c[i] - 'a'",
"c[i]",
"c",
"i",
"'a'",
"for(int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(((char)(i + 'a')) + \" : \" + b[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 + 'a')) + \" : \" + b[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(((char)(i + 'a')) + \" : \" + b[i]);\n\t\t}",
"System.out.println(((char)(i + 'a')) + \" : \" + b[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"((char)(i + 'a')) + \" : \" + b[i]",
"((char)(i + 'a')) + \" : \" + b[i]",
"((char)(i + 'a'))",
"i",
"'a'",
"\" : \"",
"b[i]",
"b",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString str = \"\";\n\t\tint[] b = new int[26];\n\t\twhile(scanner.hasNext()) {\n\t\t\tstr = scanner.nextLine();\n\t\t\tstr = str.toLowerCase();\n\t\t\tchar[] c = str.toCharArray();\n\t\t\tfor(int i = 0; i < c.length; i++) {\n\t\t\t\tif('a' <= c[i] && c[i] <= 'z') {\n\t\t\t\t\tb[c[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(((char)(i + 'a')) + \" : \" + b[i]);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString str = \"\";\n\t\tint[] b = new int[26];\n\t\twhile(scanner.hasNext()) {\n\t\t\tstr = scanner.nextLine();\n\t\t\tstr = str.toLowerCase();\n\t\t\tchar[] c = str.toCharArray();\n\t\t\tfor(int i = 0; i < c.length; i++) {\n\t\t\t\tif('a' <= c[i] && c[i] <= 'z') {\n\t\t\t\t\tb[c[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(((char)(i + 'a')) + \" : \" + b[i]);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.*;
import java.util.Scanner;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String str = "";
int[] b = new int[26];
while(scanner.hasNext()) {
str = scanner.nextLine();
str = str.toLowerCase();
char[] c = str.toCharArray();
for(int i = 0; i < c.length; i++) {
if('a' <= c[i] && c[i] <= 'z') {
b[c[i] - 'a']++;
}
}
}
for(int i = 0; i < 26; i++) {
System.out.println(((char)(i + 'a')) + " : " + b[i]);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
20,
41,
13,
20,
17,
41,
13,
41,
13,
42,
17,
30,
38,
5,
13,
30,
3,
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,
4,
18,
13,
13,
40,
18,
13,
2,
13,
17,
14,
4,
18,
13,
13,
40,
18,
13,
2,
13,
17,
0,
13,
17,
11,
1,
0,
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
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
114,
5
],
[
114,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
13,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
27,
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
],
[
52,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
59,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
59,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
70,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
8,
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
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
103,
103
],
[
103,
104
],
[
103,
105
],
[
103,
106
],
[
106,
107
],
[
106,
108
],
[
96,
109
],
[
109,
110
],
[
6,
111
],
[
111,
112
],
[
0,
113
],
[
113,
114
],
[
113,
115
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n int i,j;\n \n Scanner sc=new Scanner(System.in);\n \n int cnt[]=new int[26];\n \n String str;\n char c;\n while(true){\n try{\n str=sc.next();\n for(i=0;i<str.length();i++){\n c=str.charAt(i);\n if(Character.isUpperCase(c))cnt[c-'A']++;\n else if(Character.isLowerCase(c))cnt[c-'a']++;\n }\n }catch(NoSuchElementException e){\n break;\n }\n }\n c='a';\n for(i=0;i<26;i++){\n System.out.println(c + \" : \"+ cnt[i]);\n c++;\n }\n \n }\n}\n",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n int i,j;\n \n Scanner sc=new Scanner(System.in);\n \n int cnt[]=new int[26];\n \n String str;\n char c;\n while(true){\n try{\n str=sc.next();\n for(i=0;i<str.length();i++){\n c=str.charAt(i);\n if(Character.isUpperCase(c))cnt[c-'A']++;\n else if(Character.isLowerCase(c))cnt[c-'a']++;\n }\n }catch(NoSuchElementException e){\n break;\n }\n }\n c='a';\n for(i=0;i<26;i++){\n System.out.println(c + \" : \"+ cnt[i]);\n c++;\n }\n \n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n int i,j;\n \n Scanner sc=new Scanner(System.in);\n \n int cnt[]=new int[26];\n \n String str;\n char c;\n while(true){\n try{\n str=sc.next();\n for(i=0;i<str.length();i++){\n c=str.charAt(i);\n if(Character.isUpperCase(c))cnt[c-'A']++;\n else if(Character.isLowerCase(c))cnt[c-'a']++;\n }\n }catch(NoSuchElementException e){\n break;\n }\n }\n c='a';\n for(i=0;i<26;i++){\n System.out.println(c + \" : \"+ cnt[i]);\n c++;\n }\n \n }",
"main",
"{\n int i,j;\n \n Scanner sc=new Scanner(System.in);\n \n int cnt[]=new int[26];\n \n String str;\n char c;\n while(true){\n try{\n str=sc.next();\n for(i=0;i<str.length();i++){\n c=str.charAt(i);\n if(Character.isUpperCase(c))cnt[c-'A']++;\n else if(Character.isLowerCase(c))cnt[c-'a']++;\n }\n }catch(NoSuchElementException e){\n break;\n }\n }\n c='a';\n for(i=0;i<26;i++){\n System.out.println(c + \" : \"+ cnt[i]);\n c++;\n }\n \n }",
"int i",
"i",
"j;",
"j",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int cnt[]=new int[26];",
"cnt",
"new int[26]",
"26",
"String str;",
"str",
"char c;",
"c",
"while(true){\n try{\n str=sc.next();\n for(i=0;i<str.length();i++){\n c=str.charAt(i);\n if(Character.isUpperCase(c))cnt[c-'A']++;\n else if(Character.isLowerCase(c))cnt[c-'a']++;\n }\n }catch(NoSuchElementException e){\n break;\n }\n }",
"true",
"{\n try{\n str=sc.next();\n for(i=0;i<str.length();i++){\n c=str.charAt(i);\n if(Character.isUpperCase(c))cnt[c-'A']++;\n else if(Character.isLowerCase(c))cnt[c-'a']++;\n }\n }catch(NoSuchElementException e){\n break;\n }\n }",
"try{\n str=sc.next();\n for(i=0;i<str.length();i++){\n c=str.charAt(i);\n if(Character.isUpperCase(c))cnt[c-'A']++;\n else if(Character.isLowerCase(c))cnt[c-'a']++;\n }\n }catch(NoSuchElementException e){\n break;\n }",
"catch(NoSuchElementException e){\n break;\n }",
"NoSuchElementException e",
"{\n break;\n }",
"break;",
"{\n str=sc.next();\n for(i=0;i<str.length();i++){\n c=str.charAt(i);\n if(Character.isUpperCase(c))cnt[c-'A']++;\n else if(Character.isLowerCase(c))cnt[c-'a']++;\n }\n }",
"str=sc.next()",
"str",
"sc.next()",
"sc.next",
"sc",
"for(i=0;i<str.length();i++){\n c=str.charAt(i);\n if(Character.isUpperCase(c))cnt[c-'A']++;\n else if(Character.isLowerCase(c))cnt[c-'a']++;\n }",
"i=0;",
"i=0",
"i",
"0",
"i<str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n c=str.charAt(i);\n if(Character.isUpperCase(c))cnt[c-'A']++;\n else if(Character.isLowerCase(c))cnt[c-'a']++;\n }",
"{\n c=str.charAt(i);\n if(Character.isUpperCase(c))cnt[c-'A']++;\n else if(Character.isLowerCase(c))cnt[c-'a']++;\n }",
"c=str.charAt(i)",
"c",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"if(Character.isUpperCase(c))cnt[c-'A']++;\n else if(Character.isLowerCase(c))cnt[c-'a']++;",
"Character.isUpperCase(c)",
"Character.isUpperCase",
"Character",
"c",
"cnt[c-'A']++",
"cnt[c-'A']",
"cnt",
"c-'A'",
"c",
"'A'",
"if(Character.isLowerCase(c))cnt[c-'a']++;",
"Character.isLowerCase(c)",
"Character.isLowerCase",
"Character",
"c",
"cnt[c-'a']++",
"cnt[c-'a']",
"cnt",
"c-'a'",
"c",
"'a'",
"c='a'",
"c",
"'a'",
"for(i=0;i<26;i++){\n System.out.println(c + \" : \"+ cnt[i]);\n c++;\n }",
"i=0;",
"i=0",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n System.out.println(c + \" : \"+ cnt[i]);\n c++;\n }",
"{\n System.out.println(c + \" : \"+ cnt[i]);\n c++;\n }",
"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",
"c++",
"c",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n int i,j;\n \n Scanner sc=new Scanner(System.in);\n \n int cnt[]=new int[26];\n \n String str;\n char c;\n while(true){\n try{\n str=sc.next();\n for(i=0;i<str.length();i++){\n c=str.charAt(i);\n if(Character.isUpperCase(c))cnt[c-'A']++;\n else if(Character.isLowerCase(c))cnt[c-'a']++;\n }\n }catch(NoSuchElementException e){\n break;\n }\n }\n c='a';\n for(i=0;i<26;i++){\n System.out.println(c + \" : \"+ cnt[i]);\n c++;\n }\n \n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n int i,j;\n \n Scanner sc=new Scanner(System.in);\n \n int cnt[]=new int[26];\n \n String str;\n char c;\n while(true){\n try{\n str=sc.next();\n for(i=0;i<str.length();i++){\n c=str.charAt(i);\n if(Character.isUpperCase(c))cnt[c-'A']++;\n else if(Character.isLowerCase(c))cnt[c-'a']++;\n }\n }catch(NoSuchElementException e){\n break;\n }\n }\n c='a';\n for(i=0;i<26;i++){\n System.out.println(c + \" : \"+ cnt[i]);\n c++;\n }\n \n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
int i,j;
Scanner sc=new Scanner(System.in);
int cnt[]=new int[26];
String str;
char c;
while(true){
try{
str=sc.next();
for(i=0;i<str.length();i++){
c=str.charAt(i);
if(Character.isUpperCase(c))cnt[c-'A']++;
else if(Character.isLowerCase(c))cnt[c-'a']++;
}
}catch(NoSuchElementException e){
break;
}
}
c='a';
for(i=0;i<26;i++){
System.out.println(c + " : "+ cnt[i]);
c++;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
17,
41,
13,
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,
2,
13,
17,
2,
13,
17,
2,
2,
13,
17,
2,
13,
17,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
17,
41,
13,
2,
13,
17,
40,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
17,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
125,
5
],
[
125,
6
],
[
6,
7
],
[
6,
8
],
[
125,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
16
],
[
16,
17
],
[
16,
18
],
[
11,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
19,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
11,
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
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
63,
65
],
[
50,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
66,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
66,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
11,
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
],
[
101,
103
],
[
103,
104
],
[
103,
105
],
[
100,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
114,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
112,
118
],
[
114,
119
],
[
119,
120
],
[
119,
121
],
[
9,
122
],
[
122,
123
],
[
0,
124
],
[
124,
125
],
[
124,
126
]
]
| [
"import java.util.*;\n\npublic class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint[] AtoZ = new int[26];\n\t\tString s = \"\";\n\t\twhile (sc.hasNext()) {\n\t\t\ts += sc.next();\n\t\t}\n\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\tchar c = s.charAt(i);\n\t\t\tif (c>=65&&c<=90 || c>=97&&c<=122) {\n\t\t\t\tif (c>=65&&c<=90) {c += 32;}\n\t\t\t\tint n = (char)(c-97);\n\t\t\t\tAtoZ[n]++;\n\t\t\t}\n\t\t}\n\t\tfor (int i=0; i<26; i++) {\n\t\t\tchar c = (char)(i+97);\n\t\t\tSystem.out.println(c+\" \"+\":\"+\" \"+AtoZ[i]);\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint[] AtoZ = new int[26];\n\t\tString s = \"\";\n\t\twhile (sc.hasNext()) {\n\t\t\ts += sc.next();\n\t\t}\n\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\tchar c = s.charAt(i);\n\t\t\tif (c>=65&&c<=90 || c>=97&&c<=122) {\n\t\t\t\tif (c>=65&&c<=90) {c += 32;}\n\t\t\t\tint n = (char)(c-97);\n\t\t\t\tAtoZ[n]++;\n\t\t\t}\n\t\t}\n\t\tfor (int i=0; i<26; i++) {\n\t\t\tchar c = (char)(i+97);\n\t\t\tSystem.out.println(c+\" \"+\":\"+\" \"+AtoZ[i]);\n\t\t}\n\t}\n}",
"Main",
"static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) {\n\t\tint[] AtoZ = new int[26];\n\t\tString s = \"\";\n\t\twhile (sc.hasNext()) {\n\t\t\ts += sc.next();\n\t\t}\n\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\tchar c = s.charAt(i);\n\t\t\tif (c>=65&&c<=90 || c>=97&&c<=122) {\n\t\t\t\tif (c>=65&&c<=90) {c += 32;}\n\t\t\t\tint n = (char)(c-97);\n\t\t\t\tAtoZ[n]++;\n\t\t\t}\n\t\t}\n\t\tfor (int i=0; i<26; i++) {\n\t\t\tchar c = (char)(i+97);\n\t\t\tSystem.out.println(c+\" \"+\":\"+\" \"+AtoZ[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tint[] AtoZ = new int[26];\n\t\tString s = \"\";\n\t\twhile (sc.hasNext()) {\n\t\t\ts += sc.next();\n\t\t}\n\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\tchar c = s.charAt(i);\n\t\t\tif (c>=65&&c<=90 || c>=97&&c<=122) {\n\t\t\t\tif (c>=65&&c<=90) {c += 32;}\n\t\t\t\tint n = (char)(c-97);\n\t\t\t\tAtoZ[n]++;\n\t\t\t}\n\t\t}\n\t\tfor (int i=0; i<26; i++) {\n\t\t\tchar c = (char)(i+97);\n\t\t\tSystem.out.println(c+\" \"+\":\"+\" \"+AtoZ[i]);\n\t\t}\n\t}",
"int[] AtoZ = new int[26];",
"AtoZ",
"new int[26]",
"26",
"String s = \"\";",
"s",
"\"\"",
"while (sc.hasNext()) {\n\t\t\ts += sc.next();\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\ts += sc.next();\n\t\t}",
"s += sc.next()",
"s",
"sc.next()",
"sc.next",
"sc",
"for (int i=0; i<s.length(); i++) {\n\t\t\tchar c = s.charAt(i);\n\t\t\tif (c>=65&&c<=90 || c>=97&&c<=122) {\n\t\t\t\tif (c>=65&&c<=90) {c += 32;}\n\t\t\t\tint n = (char)(c-97);\n\t\t\t\tAtoZ[n]++;\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\tchar c = s.charAt(i);\n\t\t\tif (c>=65&&c<=90 || c>=97&&c<=122) {\n\t\t\t\tif (c>=65&&c<=90) {c += 32;}\n\t\t\t\tint n = (char)(c-97);\n\t\t\t\tAtoZ[n]++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tchar c = s.charAt(i);\n\t\t\tif (c>=65&&c<=90 || c>=97&&c<=122) {\n\t\t\t\tif (c>=65&&c<=90) {c += 32;}\n\t\t\t\tint n = (char)(c-97);\n\t\t\t\tAtoZ[n]++;\n\t\t\t}\n\t\t}",
"char c = s.charAt(i);",
"c",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"if (c>=65&&c<=90 || c>=97&&c<=122) {\n\t\t\t\tif (c>=65&&c<=90) {c += 32;}\n\t\t\t\tint n = (char)(c-97);\n\t\t\t\tAtoZ[n]++;\n\t\t\t}",
"c>=65&&c<=90 || c>=97&&c<=122",
"c>=65&&c<=90",
"c>=65",
"c",
"65",
"c<=90",
"c",
"90",
"c>=97&&c<=122",
"c>=97",
"c",
"97",
"c<=122",
"c",
"122",
"{\n\t\t\t\tif (c>=65&&c<=90) {c += 32;}\n\t\t\t\tint n = (char)(c-97);\n\t\t\t\tAtoZ[n]++;\n\t\t\t}",
"if (c>=65&&c<=90) {c += 32;}",
"c>=65&&c<=90",
"c>=65",
"c",
"65",
"c<=90",
"c",
"90",
"{c += 32;}",
"c += 32",
"c",
"32",
"int n = (char)(c-97);",
"n",
"(char)(c-97)",
"c",
"97",
"AtoZ[n]++",
"AtoZ[n]",
"AtoZ",
"n",
"for (int i=0; i<26; i++) {\n\t\t\tchar c = (char)(i+97);\n\t\t\tSystem.out.println(c+\" \"+\":\"+\" \"+AtoZ[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)(i+97);\n\t\t\tSystem.out.println(c+\" \"+\":\"+\" \"+AtoZ[i]);\n\t\t}",
"{\n\t\t\tchar c = (char)(i+97);\n\t\t\tSystem.out.println(c+\" \"+\":\"+\" \"+AtoZ[i]);\n\t\t}",
"char c = (char)(i+97);",
"c",
"(char)(i+97)",
"i",
"97",
"System.out.println(c+\" \"+\":\"+\" \"+AtoZ[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c+\" \"+\":\"+\" \"+AtoZ[i]",
"\" \"",
"\":\"",
"c+\" \"+\":\"+\" \"+AtoZ[i]",
"c",
"\" \"",
"\":\"",
"\" \"",
"AtoZ[i]",
"AtoZ",
"i",
"String[] args",
"args",
"public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint[] AtoZ = new int[26];\n\t\tString s = \"\";\n\t\twhile (sc.hasNext()) {\n\t\t\ts += sc.next();\n\t\t}\n\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\tchar c = s.charAt(i);\n\t\t\tif (c>=65&&c<=90 || c>=97&&c<=122) {\n\t\t\t\tif (c>=65&&c<=90) {c += 32;}\n\t\t\t\tint n = (char)(c-97);\n\t\t\t\tAtoZ[n]++;\n\t\t\t}\n\t\t}\n\t\tfor (int i=0; i<26; i++) {\n\t\t\tchar c = (char)(i+97);\n\t\t\tSystem.out.println(c+\" \"+\":\"+\" \"+AtoZ[i]);\n\t\t}\n\t}\n}",
"public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint[] AtoZ = new int[26];\n\t\tString s = \"\";\n\t\twhile (sc.hasNext()) {\n\t\t\ts += sc.next();\n\t\t}\n\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\tchar c = s.charAt(i);\n\t\t\tif (c>=65&&c<=90 || c>=97&&c<=122) {\n\t\t\t\tif (c>=65&&c<=90) {c += 32;}\n\t\t\t\tint n = (char)(c-97);\n\t\t\t\tAtoZ[n]++;\n\t\t\t}\n\t\t}\n\t\tfor (int i=0; i<26; i++) {\n\t\t\tchar c = (char)(i+97);\n\t\t\tSystem.out.println(c+\" \"+\":\"+\" \"+AtoZ[i]);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int[] AtoZ = new int[26];
String s = "";
while (sc.hasNext()) {
s += sc.next();
}
for (int i=0; i<s.length(); i++) {
char c = s.charAt(i);
if (c>=65&&c<=90 || c>=97&&c<=122) {
if (c>=65&&c<=90) {c += 32;}
int n = (char)(c-97);
AtoZ[n]++;
}
}
for (int i=0; i<26; i++) {
char c = (char)(i+97);
System.out.println(c+" "+":"+" "+AtoZ[i]);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
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,
20,
41,
13,
17,
41,
13,
2,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
13,
17,
40,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
17,
9,
41,
13,
4,
18,
13,
4,
18,
13,
13,
14,
4,
18,
13,
4,
18,
13,
17,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
13,
14,
4,
18,
13,
4,
18,
13,
18,
4,
18,
13,
17,
2,
4,
18,
13,
18,
4,
18,
13,
17,
17,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
40,
13,
4,
18,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
17,
34
],
[
34,
35
],
[
34,
36
],
[
17,
37
],
[
37,
38
],
[
37,
39
],
[
17,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
17,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
17,
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
],
[
83,
84
],
[
82,
85
],
[
81,
86
],
[
80,
87
],
[
79,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
79,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
97,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
79,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
79,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
79,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
122,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
129,
133
],
[
126,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
138,
142
],
[
134,
143
],
[
17,
144
],
[
144,
145
],
[
144,
146
],
[
17,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
147,
152
],
[
152,
153
],
[
152,
154
],
[
147,
155
],
[
155,
156
],
[
156,
157
],
[
147,
158
],
[
159,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
160,
165
],
[
166,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
167,
170
],
[
166,
171
],
[
166,
172
],
[
172,
173
],
[
173,
174
],
[
172,
175
],
[
159,
176
],
[
176,
177
],
[
17,
178
],
[
178,
179
],
[
179,
180
],
[
15,
181
],
[
181,
182
]
]
| [
"\nimport java.util.Scanner;\nimport java.util.TreeMap;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString sentence = \"\";\n\t\twhile(sc.hasNext()) {\n\t\t\tsentence += sc.nextLine();\n\t\t}\n\n\t\t// アルファベット数格納用\n\t\tTreeMap<Character, Integer> countAlph = new TreeMap<>();\n\t\tchar alphabet = 'a';\n\t\tfinal int ALPHABET_SIZE = 'z' - 'a';\n\t\tfor(int i=0; i<=ALPHABET_SIZE; i++) {\n\t\t\tcountAlph.put(alphabet, 0);\n\t\t\talphabet++;\n\t\t}\n\n\t\t// debug\n//\t\talphabet = 'a';\n//\t\tfor(int i=0; i<=ALPHABET_SIZE; i++) {\n//\t\t\tSystem.out.println(String.valueOf(alphabet) + \" : \" + countAlph.get(alphabet));\n//\t\t\talphabet++;\n//\t\t}\n\n\t\t// アルファベットの数を数える\n//\t\tSystem.out.println(sentence.length());\n\n\t\tfor(int i=0; i<sentence.length(); i++) {\n\t\t\tif(sentence.charAt(i) == ' ') continue;\n\t\t\tString checkChar = String.valueOf(sentence.charAt(i));\n//\t\t\tSystem.out.print(checkChar + \", \");\n\t\t\tif(Character.isUpperCase(checkChar.charAt(0))) checkChar = checkChar.toLowerCase();\n\t\t\t// えいじかどうかのはんてい\n\t\t\tPattern p = Pattern.compile(\"[a-z]\");\n\t\t\tMatcher m = p.matcher(checkChar);\n\t\t\tif(m.find()) countAlph.put(checkChar.toCharArray()[0], countAlph.get(checkChar.toCharArray()[0]) + 1);\n\t\t}\n\n\t\t// 出力\n\t\talphabet = 'a';\n\t\tfor(int i=0; i<=ALPHABET_SIZE; i++) {\n\t\t\tSystem.out.println(String.valueOf(alphabet) + \" : \" + countAlph.get(alphabet));\n\t\t\talphabet++;\n\t\t}\n\n\t\tsc.close();\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.TreeMap;",
"TreeMap",
"java.util",
"import java.util.regex.Matcher;",
"Matcher",
"java.util.regex",
"import java.util.regex.Pattern;",
"Pattern",
"java.util.regex",
"class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString sentence = \"\";\n\t\twhile(sc.hasNext()) {\n\t\t\tsentence += sc.nextLine();\n\t\t}\n\n\t\t// アルファベット数格納用\n\t\tTreeMap<Character, Integer> countAlph = new TreeMap<>();\n\t\tchar alphabet = 'a';\n\t\tfinal int ALPHABET_SIZE = 'z' - 'a';\n\t\tfor(int i=0; i<=ALPHABET_SIZE; i++) {\n\t\t\tcountAlph.put(alphabet, 0);\n\t\t\talphabet++;\n\t\t}\n\n\t\t// debug\n//\t\talphabet = 'a';\n//\t\tfor(int i=0; i<=ALPHABET_SIZE; i++) {\n//\t\t\tSystem.out.println(String.valueOf(alphabet) + \" : \" + countAlph.get(alphabet));\n//\t\t\talphabet++;\n//\t\t}\n\n\t\t// アルファベットの数を数える\n//\t\tSystem.out.println(sentence.length());\n\n\t\tfor(int i=0; i<sentence.length(); i++) {\n\t\t\tif(sentence.charAt(i) == ' ') continue;\n\t\t\tString checkChar = String.valueOf(sentence.charAt(i));\n//\t\t\tSystem.out.print(checkChar + \", \");\n\t\t\tif(Character.isUpperCase(checkChar.charAt(0))) checkChar = checkChar.toLowerCase();\n\t\t\t// えいじかどうかのはんてい\n\t\t\tPattern p = Pattern.compile(\"[a-z]\");\n\t\t\tMatcher m = p.matcher(checkChar);\n\t\t\tif(m.find()) countAlph.put(checkChar.toCharArray()[0], countAlph.get(checkChar.toCharArray()[0]) + 1);\n\t\t}\n\n\t\t// 出力\n\t\talphabet = 'a';\n\t\tfor(int i=0; i<=ALPHABET_SIZE; i++) {\n\t\t\tSystem.out.println(String.valueOf(alphabet) + \" : \" + countAlph.get(alphabet));\n\t\t\talphabet++;\n\t\t}\n\n\t\tsc.close();\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString sentence = \"\";\n\t\twhile(sc.hasNext()) {\n\t\t\tsentence += sc.nextLine();\n\t\t}\n\n\t\t// アルファベット数格納用\n\t\tTreeMap<Character, Integer> countAlph = new TreeMap<>();\n\t\tchar alphabet = 'a';\n\t\tfinal int ALPHABET_SIZE = 'z' - 'a';\n\t\tfor(int i=0; i<=ALPHABET_SIZE; i++) {\n\t\t\tcountAlph.put(alphabet, 0);\n\t\t\talphabet++;\n\t\t}\n\n\t\t// debug\n//\t\talphabet = 'a';\n//\t\tfor(int i=0; i<=ALPHABET_SIZE; i++) {\n//\t\t\tSystem.out.println(String.valueOf(alphabet) + \" : \" + countAlph.get(alphabet));\n//\t\t\talphabet++;\n//\t\t}\n\n\t\t// アルファベットの数を数える\n//\t\tSystem.out.println(sentence.length());\n\n\t\tfor(int i=0; i<sentence.length(); i++) {\n\t\t\tif(sentence.charAt(i) == ' ') continue;\n\t\t\tString checkChar = String.valueOf(sentence.charAt(i));\n//\t\t\tSystem.out.print(checkChar + \", \");\n\t\t\tif(Character.isUpperCase(checkChar.charAt(0))) checkChar = checkChar.toLowerCase();\n\t\t\t// えいじかどうかのはんてい\n\t\t\tPattern p = Pattern.compile(\"[a-z]\");\n\t\t\tMatcher m = p.matcher(checkChar);\n\t\t\tif(m.find()) countAlph.put(checkChar.toCharArray()[0], countAlph.get(checkChar.toCharArray()[0]) + 1);\n\t\t}\n\n\t\t// 出力\n\t\talphabet = 'a';\n\t\tfor(int i=0; i<=ALPHABET_SIZE; i++) {\n\t\t\tSystem.out.println(String.valueOf(alphabet) + \" : \" + countAlph.get(alphabet));\n\t\t\talphabet++;\n\t\t}\n\n\t\tsc.close();\n\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString sentence = \"\";\n\t\twhile(sc.hasNext()) {\n\t\t\tsentence += sc.nextLine();\n\t\t}\n\n\t\t// アルファベット数格納用\n\t\tTreeMap<Character, Integer> countAlph = new TreeMap<>();\n\t\tchar alphabet = 'a';\n\t\tfinal int ALPHABET_SIZE = 'z' - 'a';\n\t\tfor(int i=0; i<=ALPHABET_SIZE; i++) {\n\t\t\tcountAlph.put(alphabet, 0);\n\t\t\talphabet++;\n\t\t}\n\n\t\t// debug\n//\t\talphabet = 'a';\n//\t\tfor(int i=0; i<=ALPHABET_SIZE; i++) {\n//\t\t\tSystem.out.println(String.valueOf(alphabet) + \" : \" + countAlph.get(alphabet));\n//\t\t\talphabet++;\n//\t\t}\n\n\t\t// アルファベットの数を数える\n//\t\tSystem.out.println(sentence.length());\n\n\t\tfor(int i=0; i<sentence.length(); i++) {\n\t\t\tif(sentence.charAt(i) == ' ') continue;\n\t\t\tString checkChar = String.valueOf(sentence.charAt(i));\n//\t\t\tSystem.out.print(checkChar + \", \");\n\t\t\tif(Character.isUpperCase(checkChar.charAt(0))) checkChar = checkChar.toLowerCase();\n\t\t\t// えいじかどうかのはんてい\n\t\t\tPattern p = Pattern.compile(\"[a-z]\");\n\t\t\tMatcher m = p.matcher(checkChar);\n\t\t\tif(m.find()) countAlph.put(checkChar.toCharArray()[0], countAlph.get(checkChar.toCharArray()[0]) + 1);\n\t\t}\n\n\t\t// 出力\n\t\talphabet = 'a';\n\t\tfor(int i=0; i<=ALPHABET_SIZE; i++) {\n\t\t\tSystem.out.println(String.valueOf(alphabet) + \" : \" + countAlph.get(alphabet));\n\t\t\talphabet++;\n\t\t}\n\n\t\tsc.close();\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String sentence = \"\";",
"sentence",
"\"\"",
"while(sc.hasNext()) {\n\t\t\tsentence += sc.nextLine();\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\tsentence += sc.nextLine();\n\t\t}",
"sentence += sc.nextLine()",
"sentence",
"sc.nextLine()",
"sc.nextLine",
"sc",
"TreeMap<Character, Integer> countAlph = new TreeMap<>();",
"countAlph",
"new TreeMap<>()",
"char alphabet = 'a';",
"alphabet",
"'a'",
"final int ALPHABET_SIZE = 'z' - 'a';",
"ALPHABET_SIZE",
"'z' - 'a'",
"'z'",
"'a'",
"for(int i=0; i<=ALPHABET_SIZE; i++) {\n\t\t\tcountAlph.put(alphabet, 0);\n\t\t\talphabet++;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<=ALPHABET_SIZE",
"i",
"ALPHABET_SIZE",
"i++",
"i++",
"i",
"{\n\t\t\tcountAlph.put(alphabet, 0);\n\t\t\talphabet++;\n\t\t}",
"{\n\t\t\tcountAlph.put(alphabet, 0);\n\t\t\talphabet++;\n\t\t}",
"countAlph.put(alphabet, 0)",
"countAlph.put",
"countAlph",
"alphabet",
"0",
"alphabet++",
"alphabet",
"for(int i=0; i<sentence.length(); i++) {\n\t\t\tif(sentence.charAt(i) == ' ') continue;\n\t\t\tString checkChar = String.valueOf(sentence.charAt(i));\n//\t\t\tSystem.out.print(checkChar + \", \");\n\t\t\tif(Character.isUpperCase(checkChar.charAt(0))) checkChar = checkChar.toLowerCase();\n\t\t\t// えいじかどうかのはんてい\n\t\t\tPattern p = Pattern.compile(\"[a-z]\");\n\t\t\tMatcher m = p.matcher(checkChar);\n\t\t\tif(m.find()) countAlph.put(checkChar.toCharArray()[0], countAlph.get(checkChar.toCharArray()[0]) + 1);\n\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\tif(sentence.charAt(i) == ' ') continue;\n\t\t\tString checkChar = String.valueOf(sentence.charAt(i));\n//\t\t\tSystem.out.print(checkChar + \", \");\n\t\t\tif(Character.isUpperCase(checkChar.charAt(0))) checkChar = checkChar.toLowerCase();\n\t\t\t// えいじかどうかのはんてい\n\t\t\tPattern p = Pattern.compile(\"[a-z]\");\n\t\t\tMatcher m = p.matcher(checkChar);\n\t\t\tif(m.find()) countAlph.put(checkChar.toCharArray()[0], countAlph.get(checkChar.toCharArray()[0]) + 1);\n\t\t}",
"{\n\t\t\tif(sentence.charAt(i) == ' ') continue;\n\t\t\tString checkChar = String.valueOf(sentence.charAt(i));\n//\t\t\tSystem.out.print(checkChar + \", \");\n\t\t\tif(Character.isUpperCase(checkChar.charAt(0))) checkChar = checkChar.toLowerCase();\n\t\t\t// えいじかどうかのはんてい\n\t\t\tPattern p = Pattern.compile(\"[a-z]\");\n\t\t\tMatcher m = p.matcher(checkChar);\n\t\t\tif(m.find()) countAlph.put(checkChar.toCharArray()[0], countAlph.get(checkChar.toCharArray()[0]) + 1);\n\t\t}",
"if(sentence.charAt(i) == ' ') continue;",
"sentence.charAt(i) == ' '",
"sentence.charAt(i)",
"sentence.charAt",
"sentence",
"i",
"' '",
"continue;",
"String checkChar = String.valueOf(sentence.charAt(i));",
"checkChar",
"String.valueOf(sentence.charAt(i))",
"String.valueOf",
"String",
"sentence.charAt(i)",
"sentence.charAt",
"sentence",
"i",
"if(Character.isUpperCase(checkChar.charAt(0))) checkChar = checkChar.toLowerCase();",
"Character.isUpperCase(checkChar.charAt(0))",
"Character.isUpperCase",
"Character",
"checkChar.charAt(0)",
"checkChar.charAt",
"checkChar",
"0",
"checkChar = checkChar.toLowerCase()",
"checkChar",
"checkChar.toLowerCase()",
"checkChar.toLowerCase",
"checkChar",
"Pattern p = Pattern.compile(\"[a-z]\");",
"p",
"Pattern.compile(\"[a-z]\")",
"Pattern.compile",
"Pattern",
"\"[a-z]\"",
"Matcher m = p.matcher(checkChar);",
"m",
"p.matcher(checkChar)",
"p.matcher",
"p",
"checkChar",
"if(m.find()) countAlph.put(checkChar.toCharArray()[0], countAlph.get(checkChar.toCharArray()[0]) + 1);",
"m.find()",
"m.find",
"m",
"countAlph.put(checkChar.toCharArray()[0], countAlph.get(checkChar.toCharArray()[0]) + 1)",
"countAlph.put",
"countAlph",
"checkChar.toCharArray()[0]",
"checkChar.toCharArray()",
"checkChar.toCharArray",
"checkChar",
"0",
"countAlph.get(checkChar.toCharArray()[0]) + 1",
"countAlph.get(checkChar.toCharArray()[0])",
"countAlph.get",
"countAlph",
"checkChar.toCharArray()[0]",
"checkChar.toCharArray()",
"checkChar.toCharArray",
"checkChar",
"0",
"1",
"alphabet = 'a'",
"alphabet",
"'a'",
"for(int i=0; i<=ALPHABET_SIZE; i++) {\n\t\t\tSystem.out.println(String.valueOf(alphabet) + \" : \" + countAlph.get(alphabet));\n\t\t\talphabet++;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<=ALPHABET_SIZE",
"i",
"ALPHABET_SIZE",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(String.valueOf(alphabet) + \" : \" + countAlph.get(alphabet));\n\t\t\talphabet++;\n\t\t}",
"{\n\t\t\tSystem.out.println(String.valueOf(alphabet) + \" : \" + countAlph.get(alphabet));\n\t\t\talphabet++;\n\t\t}",
"System.out.println(String.valueOf(alphabet) + \" : \" + countAlph.get(alphabet))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.valueOf(alphabet) + \" : \" + countAlph.get(alphabet)",
"String.valueOf(alphabet) + \" : \" + countAlph.get(alphabet)",
"String.valueOf(alphabet)",
"String.valueOf",
"String",
"alphabet",
"\" : \"",
"countAlph.get(alphabet)",
"countAlph.get",
"countAlph",
"alphabet",
"alphabet++",
"alphabet",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args"
]
|
import java.util.Scanner;
import java.util.TreeMap;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String sentence = "";
while(sc.hasNext()) {
sentence += sc.nextLine();
}
// アルファベット数格納用
TreeMap<Character, Integer> countAlph = new TreeMap<>();
char alphabet = 'a';
final int ALPHABET_SIZE = 'z' - 'a';
for(int i=0; i<=ALPHABET_SIZE; i++) {
countAlph.put(alphabet, 0);
alphabet++;
}
// debug
// alphabet = 'a';
// for(int i=0; i<=ALPHABET_SIZE; i++) {
// System.out.println(String.valueOf(alphabet) + " : " + countAlph.get(alphabet));
// alphabet++;
// }
// アルファベットの数を数える
// System.out.println(sentence.length());
for(int i=0; i<sentence.length(); i++) {
if(sentence.charAt(i) == ' ') continue;
String checkChar = String.valueOf(sentence.charAt(i));
// System.out.print(checkChar + ", ");
if(Character.isUpperCase(checkChar.charAt(0))) checkChar = checkChar.toLowerCase();
// えいじかどうかのはんてい
Pattern p = Pattern.compile("[a-z]");
Matcher m = p.matcher(checkChar);
if(m.find()) countAlph.put(checkChar.toCharArray()[0], countAlph.get(checkChar.toCharArray()[0]) + 1);
}
// 出力
alphabet = 'a';
for(int i=0; i<=ALPHABET_SIZE; i++) {
System.out.println(String.valueOf(alphabet) + " : " + countAlph.get(alphabet));
alphabet++;
}
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
17,
41,
13,
41,
13,
20,
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,
4,
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,
40,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
109,
11
],
[
109,
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
],
[
28,
29
],
[
29,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
31,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
42,
52
],
[
52,
53
],
[
53,
54
],
[
42,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
56,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
71,
76
],
[
14,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
14,
103
],
[
103,
104
],
[
104,
105
],
[
12,
106
],
[
106,
107
],
[
0,
108
],
[
108,
109
],
[
108,
110
]
]
| [
"import static java.lang.Character.*;\n\nimport java.io.IOException;\nimport java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tchar alpha = 'a';\n\t\tint[] count = new int[26];\n\t\tString str;\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNext()) {\n\t\t\tstr = sc.next();\n\t\t\tstr = str.toLowerCase();// ????????????????????????????°??????????????????????.isLetter?????£?????????????????????\n\t\t\tfor (int i = 0; i < str.length(); ++i) {\n\t\t\t\tint a = str.charAt(i);\n\t\t\t\t//System.out.println(str.charAt(i) + \" \" + 'a'+ \" \"+ a);\n\t\t\t\tif(isLetter(a)){ // ?????????????????¨???????????\\?????\\??£???????????????????????????????£?????¨??????§????¢??????§IndexoutofBounds??????????????????.\n\t\t\t\tcount[str.charAt(i) - 'a']++; // ??¢????????????????????¨????????????.??????????????????????????????????????????????????§????????????\n\t\t\t\t//System.out.println(str.charAt(i) - 'a');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < 26; ++j) {\n\t\t\tSystem.out.println(alpha++ + \" : \" + count[j]);\n\t\t}\n\t\tsc.close();\n\t}\n}",
"import static java.lang.Character.*;",
"import static java.lang.Character.*;",
"import static java.lang.Character.*;",
"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 IOException {\n\t\tchar alpha = 'a';\n\t\tint[] count = new int[26];\n\t\tString str;\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNext()) {\n\t\t\tstr = sc.next();\n\t\t\tstr = str.toLowerCase();// ????????????????????????????°??????????????????????.isLetter?????£?????????????????????\n\t\t\tfor (int i = 0; i < str.length(); ++i) {\n\t\t\t\tint a = str.charAt(i);\n\t\t\t\t//System.out.println(str.charAt(i) + \" \" + 'a'+ \" \"+ a);\n\t\t\t\tif(isLetter(a)){ // ?????????????????¨???????????\\?????\\??£???????????????????????????????£?????¨??????§????¢??????§IndexoutofBounds??????????????????.\n\t\t\t\tcount[str.charAt(i) - 'a']++; // ??¢????????????????????¨????????????.??????????????????????????????????????????????????§????????????\n\t\t\t\t//System.out.println(str.charAt(i) - 'a');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < 26; ++j) {\n\t\t\tSystem.out.println(alpha++ + \" : \" + count[j]);\n\t\t}\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tchar alpha = 'a';\n\t\tint[] count = new int[26];\n\t\tString str;\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNext()) {\n\t\t\tstr = sc.next();\n\t\t\tstr = str.toLowerCase();// ????????????????????????????°??????????????????????.isLetter?????£?????????????????????\n\t\t\tfor (int i = 0; i < str.length(); ++i) {\n\t\t\t\tint a = str.charAt(i);\n\t\t\t\t//System.out.println(str.charAt(i) + \" \" + 'a'+ \" \"+ a);\n\t\t\t\tif(isLetter(a)){ // ?????????????????¨???????????\\?????\\??£???????????????????????????????£?????¨??????§????¢??????§IndexoutofBounds??????????????????.\n\t\t\t\tcount[str.charAt(i) - 'a']++; // ??¢????????????????????¨????????????.??????????????????????????????????????????????????§????????????\n\t\t\t\t//System.out.println(str.charAt(i) - 'a');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < 26; ++j) {\n\t\t\tSystem.out.println(alpha++ + \" : \" + count[j]);\n\t\t}\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tchar alpha = 'a';\n\t\tint[] count = new int[26];\n\t\tString str;\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNext()) {\n\t\t\tstr = sc.next();\n\t\t\tstr = str.toLowerCase();// ????????????????????????????°??????????????????????.isLetter?????£?????????????????????\n\t\t\tfor (int i = 0; i < str.length(); ++i) {\n\t\t\t\tint a = str.charAt(i);\n\t\t\t\t//System.out.println(str.charAt(i) + \" \" + 'a'+ \" \"+ a);\n\t\t\t\tif(isLetter(a)){ // ?????????????????¨???????????\\?????\\??£???????????????????????????????£?????¨??????§????¢??????§IndexoutofBounds??????????????????.\n\t\t\t\tcount[str.charAt(i) - 'a']++; // ??¢????????????????????¨????????????.??????????????????????????????????????????????????§????????????\n\t\t\t\t//System.out.println(str.charAt(i) - 'a');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < 26; ++j) {\n\t\t\tSystem.out.println(alpha++ + \" : \" + count[j]);\n\t\t}\n\t\tsc.close();\n\t}",
"char alpha = 'a';",
"alpha",
"'a'",
"int[] count = new int[26];",
"count",
"new int[26]",
"26",
"String str;",
"str",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while (sc.hasNext()) {\n\t\t\tstr = sc.next();\n\t\t\tstr = str.toLowerCase();// ????????????????????????????°??????????????????????.isLetter?????£?????????????????????\n\t\t\tfor (int i = 0; i < str.length(); ++i) {\n\t\t\t\tint a = str.charAt(i);\n\t\t\t\t//System.out.println(str.charAt(i) + \" \" + 'a'+ \" \"+ a);\n\t\t\t\tif(isLetter(a)){ // ?????????????????¨???????????\\?????\\??£???????????????????????????????£?????¨??????§????¢??????§IndexoutofBounds??????????????????.\n\t\t\t\tcount[str.charAt(i) - 'a']++; // ??¢????????????????????¨????????????.??????????????????????????????????????????????????§????????????\n\t\t\t\t//System.out.println(str.charAt(i) - 'a');\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\tstr = sc.next();\n\t\t\tstr = str.toLowerCase();// ????????????????????????????°??????????????????????.isLetter?????£?????????????????????\n\t\t\tfor (int i = 0; i < str.length(); ++i) {\n\t\t\t\tint a = str.charAt(i);\n\t\t\t\t//System.out.println(str.charAt(i) + \" \" + 'a'+ \" \"+ a);\n\t\t\t\tif(isLetter(a)){ // ?????????????????¨???????????\\?????\\??£???????????????????????????????£?????¨??????§????¢??????§IndexoutofBounds??????????????????.\n\t\t\t\tcount[str.charAt(i) - 'a']++; // ??¢????????????????????¨????????????.??????????????????????????????????????????????????§????????????\n\t\t\t\t//System.out.println(str.charAt(i) - 'a');\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"str = sc.next()",
"str",
"sc.next()",
"sc.next",
"sc",
"str = str.toLowerCase()",
"str",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"for (int i = 0; i < str.length(); ++i) {\n\t\t\t\tint a = str.charAt(i);\n\t\t\t\t//System.out.println(str.charAt(i) + \" \" + 'a'+ \" \"+ a);\n\t\t\t\tif(isLetter(a)){ // ?????????????????¨???????????\\?????\\??£???????????????????????????????£?????¨??????§????¢??????§IndexoutofBounds??????????????????.\n\t\t\t\tcount[str.charAt(i) - 'a']++; // ??¢????????????????????¨????????????.??????????????????????????????????????????????????§????????????\n\t\t\t\t//System.out.println(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\tint a = str.charAt(i);\n\t\t\t\t//System.out.println(str.charAt(i) + \" \" + 'a'+ \" \"+ a);\n\t\t\t\tif(isLetter(a)){ // ?????????????????¨???????????\\?????\\??£???????????????????????????????£?????¨??????§????¢??????§IndexoutofBounds??????????????????.\n\t\t\t\tcount[str.charAt(i) - 'a']++; // ??¢????????????????????¨????????????.??????????????????????????????????????????????????§????????????\n\t\t\t\t//System.out.println(str.charAt(i) - 'a');\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tint a = str.charAt(i);\n\t\t\t\t//System.out.println(str.charAt(i) + \" \" + 'a'+ \" \"+ a);\n\t\t\t\tif(isLetter(a)){ // ?????????????????¨???????????\\?????\\??£???????????????????????????????£?????¨??????§????¢??????§IndexoutofBounds??????????????????.\n\t\t\t\tcount[str.charAt(i) - 'a']++; // ??¢????????????????????¨????????????.??????????????????????????????????????????????????§????????????\n\t\t\t\t//System.out.println(str.charAt(i) - 'a');\n\t\t\t\t}\n\t\t\t}",
"int a = str.charAt(i);",
"a",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"if(isLetter(a)){ // ?????????????????¨???????????\\?????\\??£???????????????????????????????£?????¨??????§????¢??????§IndexoutofBounds??????????????????.\n\t\t\t\tcount[str.charAt(i) - 'a']++; // ??¢????????????????????¨????????????.??????????????????????????????????????????????????§????????????\n\t\t\t\t//System.out.println(str.charAt(i) - 'a');\n\t\t\t\t}",
"isLetter(a)",
"isLetter",
"a",
"{ // ?????????????????¨???????????\\?????\\??£???????????????????????????????£?????¨??????§????¢??????§IndexoutofBounds??????????????????.\n\t\t\t\tcount[str.charAt(i) - 'a']++; // ??¢????????????????????¨????????????.??????????????????????????????????????????????????§????????????\n\t\t\t\t//System.out.println(str.charAt(i) - 'a');\n\t\t\t\t}",
"count[str.charAt(i) - 'a']++",
"count[str.charAt(i) - 'a']",
"count",
"str.charAt(i) - 'a'",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"'a'",
"for (int j = 0; j < 26; ++j) {\n\t\t\tSystem.out.println(alpha++ + \" : \" + count[j]);\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 26",
"j",
"26",
"++j",
"++j",
"j",
"{\n\t\t\tSystem.out.println(alpha++ + \" : \" + count[j]);\n\t\t}",
"{\n\t\t\tSystem.out.println(alpha++ + \" : \" + count[j]);\n\t\t}",
"System.out.println(alpha++ + \" : \" + count[j])",
"System.out.println",
"System.out",
"System",
"System.out",
"alpha++ + \" : \" + count[j]",
"alpha++ + \" : \" + count[j]",
"alpha++",
"alpha",
"\" : \"",
"count[j]",
"count",
"j",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tchar alpha = 'a';\n\t\tint[] count = new int[26];\n\t\tString str;\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNext()) {\n\t\t\tstr = sc.next();\n\t\t\tstr = str.toLowerCase();// ????????????????????????????°??????????????????????.isLetter?????£?????????????????????\n\t\t\tfor (int i = 0; i < str.length(); ++i) {\n\t\t\t\tint a = str.charAt(i);\n\t\t\t\t//System.out.println(str.charAt(i) + \" \" + 'a'+ \" \"+ a);\n\t\t\t\tif(isLetter(a)){ // ?????????????????¨???????????\\?????\\??£???????????????????????????????£?????¨??????§????¢??????§IndexoutofBounds??????????????????.\n\t\t\t\tcount[str.charAt(i) - 'a']++; // ??¢????????????????????¨????????????.??????????????????????????????????????????????????§????????????\n\t\t\t\t//System.out.println(str.charAt(i) - 'a');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < 26; ++j) {\n\t\t\tSystem.out.println(alpha++ + \" : \" + count[j]);\n\t\t}\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tchar alpha = 'a';\n\t\tint[] count = new int[26];\n\t\tString str;\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNext()) {\n\t\t\tstr = sc.next();\n\t\t\tstr = str.toLowerCase();// ????????????????????????????°??????????????????????.isLetter?????£?????????????????????\n\t\t\tfor (int i = 0; i < str.length(); ++i) {\n\t\t\t\tint a = str.charAt(i);\n\t\t\t\t//System.out.println(str.charAt(i) + \" \" + 'a'+ \" \"+ a);\n\t\t\t\tif(isLetter(a)){ // ?????????????????¨???????????\\?????\\??£???????????????????????????????£?????¨??????§????¢??????§IndexoutofBounds??????????????????.\n\t\t\t\tcount[str.charAt(i) - 'a']++; // ??¢????????????????????¨????????????.??????????????????????????????????????????????????§????????????\n\t\t\t\t//System.out.println(str.charAt(i) - 'a');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int j = 0; j < 26; ++j) {\n\t\t\tSystem.out.println(alpha++ + \" : \" + count[j]);\n\t\t}\n\t\tsc.close();\n\t}\n}",
"Main"
]
| import static java.lang.Character.*;
import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
char alpha = 'a';
int[] count = new int[26];
String str;
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
str = sc.next();
str = str.toLowerCase();// ????????????????????????????°??????????????????????.isLetter?????£?????????????????????
for (int i = 0; i < str.length(); ++i) {
int a = str.charAt(i);
//System.out.println(str.charAt(i) + " " + 'a'+ " "+ a);
if(isLetter(a)){ // ?????????????????¨???????????\?????\??£???????????????????????????????£?????¨??????§????¢??????§IndexoutofBounds??????????????????.
count[str.charAt(i) - 'a']++; // ??¢????????????????????¨????????????.??????????????????????????????????????????????????§????????????
//System.out.println(str.charAt(i) - 'a');
}
}
}
for (int j = 0; j < 26; ++j) {
System.out.println(alpha++ + " : " + count[j]);
}
sc.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
17,
41,
13,
41,
13,
41,
13,
0,
13,
20,
17,
42,
4,
18,
13,
30,
0,
13,
2,
13,
4,
18,
13,
0,
13,
13,
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,
13,
0,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
17,
30,
14,
2,
13,
13,
30,
0,
18,
13,
2,
13,
17,
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
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
11,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
11,
24
],
[
24,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
11,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
11,
42
],
[
42,
43
],
[
42,
44
],
[
11,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
11,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
50,
60
],
[
60,
61
],
[
61,
62
],
[
50,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
64,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
64,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
77,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
92,
94
],
[
89,
95
],
[
84,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
97,
103
],
[
11,
104
],
[
104,
105
],
[
104,
106
],
[
11,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
107,
115
],
[
115,
116
],
[
116,
117
],
[
107,
118
],
[
119,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
123,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
123,
127
],
[
127,
128
],
[
127,
129
],
[
119,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
9,
136
],
[
136,
137
]
]
| [
"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 dam;\n\t\tString str = \"\";\n\t\t\n\t\tint alf[];\n\t\tchar line;\n\t\tchar hika;\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\tdam = str;\n\t\tdam = dam.toUpperCase();\n\t\t\n\t\tfor(int i=0;i<str.length();i++){ //\n \n line = str.charAt(i);\n hika = dam.charAt(i);\n if(line - 'A' >= 0){\n \tif(line == hika ){\n \t\t\n \t\talf[line-'A'] += 1;\n \t\t\n \t}\n \telse{\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 dam;\n\t\tString str = \"\";\n\t\t\n\t\tint alf[];\n\t\tchar line;\n\t\tchar hika;\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\tdam = str;\n\t\tdam = dam.toUpperCase();\n\t\t\n\t\tfor(int i=0;i<str.length();i++){ //\n \n line = str.charAt(i);\n hika = dam.charAt(i);\n if(line - 'A' >= 0){\n \tif(line == hika ){\n \t\t\n \t\talf[line-'A'] += 1;\n \t\t\n \t}\n \telse{\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 dam;\n\t\tString str = \"\";\n\t\t\n\t\tint alf[];\n\t\tchar line;\n\t\tchar hika;\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\tdam = str;\n\t\tdam = dam.toUpperCase();\n\t\t\n\t\tfor(int i=0;i<str.length();i++){ //\n \n line = str.charAt(i);\n hika = dam.charAt(i);\n if(line - 'A' >= 0){\n \tif(line == hika ){\n \t\t\n \t\talf[line-'A'] += 1;\n \t\t\n \t}\n \telse{\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 dam;\n\t\tString str = \"\";\n\t\t\n\t\tint alf[];\n\t\tchar line;\n\t\tchar hika;\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\tdam = str;\n\t\tdam = dam.toUpperCase();\n\t\t\n\t\tfor(int i=0;i<str.length();i++){ //\n \n line = str.charAt(i);\n hika = dam.charAt(i);\n if(line - 'A' >= 0){\n \tif(line == hika ){\n \t\t\n \t\talf[line-'A'] += 1;\n \t\t\n \t}\n \telse{\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 dam;",
"dam",
"String str = \"\";",
"str",
"\"\"",
"int alf[];",
"alf",
"char line;",
"line",
"char hika;",
"hika",
"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",
"dam = str",
"dam",
"str",
"dam = dam.toUpperCase()",
"dam",
"dam.toUpperCase()",
"dam.toUpperCase",
"dam",
"for(int i=0;i<str.length();i++){ //\n \n line = str.charAt(i);\n hika = dam.charAt(i);\n if(line - 'A' >= 0){\n \tif(line == hika ){\n \t\t\n \t\talf[line-'A'] += 1;\n \t\t\n \t}\n \telse{\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 hika = dam.charAt(i);\n if(line - 'A' >= 0){\n \tif(line == hika ){\n \t\t\n \t\talf[line-'A'] += 1;\n \t\t\n \t}\n \telse{\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 hika = dam.charAt(i);\n if(line - 'A' >= 0){\n \tif(line == hika ){\n \t\t\n \t\talf[line-'A'] += 1;\n \t\t\n \t}\n \telse{\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",
"hika = dam.charAt(i)",
"hika",
"dam.charAt(i)",
"dam.charAt",
"dam",
"i",
"if(line - 'A' >= 0){\n \tif(line == hika ){\n \t\t\n \t\talf[line-'A'] += 1;\n \t\t\n \t}\n \telse{\n \t\n \t\talf[line-'a'] += 1;\n \t\t\n \t}\n \t\n }",
"line - 'A' >= 0",
"line - 'A'",
"line",
"'A'",
"0",
"{\n \tif(line == hika ){\n \t\t\n \t\talf[line-'A'] += 1;\n \t\t\n \t}\n \telse{\n \t\n \t\talf[line-'a'] += 1;\n \t\t\n \t}\n \t\n }",
"if(line == hika ){\n \t\t\n \t\talf[line-'A'] += 1;\n \t\t\n \t}\n \telse{\n \t\n \t\talf[line-'a'] += 1;\n \t\t\n \t}",
"line == hika",
"line",
"hika",
"{\n \t\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",
"{\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 dam;
String str = "";
int alf[];
char line;
char hika;
alf = new int[26];
while(as.hasNext()){
str = str + as.nextLine();
}
dam = str;
dam = dam.toUpperCase();
for(int i=0;i<str.length();i++){ //
line = str.charAt(i);
hika = dam.charAt(i);
if(line - 'A' >= 0){
if(line == hika ){
alf[line-'A'] += 1;
}
else{
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,
42,
2,
0,
13,
4,
18,
13,
17,
30,
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,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
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
],
[
136,
5
],
[
136,
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
],
[
8,
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
],
[
55,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
55,
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
],
[
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
],
[
95,
99
],
[
99,
100
],
[
99,
101
],
[
94,
102
],
[
102,
103
],
[
103,
104
],
[
103,
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
],
[
6,
133
],
[
133,
134
],
[
0,
135
],
[
135,
136
],
[
135,
137
]
]
| [
"import java.io.*;\n\npublic class Main{\n\n public static void main(String[]args)throws IOException{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n char[] alfa = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',\n 'n','o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};\n int[] counter = new int[26];\n String str;\n\n while((str = br.readLine()) != null){\n\n //?°????????????±?????????????§£\n str = str.toLowerCase();\n char[] strArray = str.toCharArray();\n\n for(int i=0; i<strArray.length; i++){\n for(int k=0; k<26; k++){\n if(alfa[k] == strArray[i]) counter[k]++;\n }\n }\n }\n //??????\n for(int i=0; i<26; i++){\n System.out.println(alfa[i] +\" : \"+ counter[i]);\n }\n } \n}",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n\n public static void main(String[]args)throws IOException{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n char[] alfa = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',\n 'n','o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};\n int[] counter = new int[26];\n String str;\n\n while((str = br.readLine()) != null){\n\n //?°????????????±?????????????§£\n str = str.toLowerCase();\n char[] strArray = str.toCharArray();\n\n for(int i=0; i<strArray.length; i++){\n for(int k=0; k<26; k++){\n if(alfa[k] == strArray[i]) counter[k]++;\n }\n }\n }\n //??????\n for(int i=0; i<26; i++){\n System.out.println(alfa[i] +\" : \"+ counter[i]);\n }\n } \n}",
"Main",
"public static void main(String[]args)throws IOException{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n char[] alfa = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',\n 'n','o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};\n int[] counter = new int[26];\n String str;\n\n while((str = br.readLine()) != null){\n\n //?°????????????±?????????????§£\n str = str.toLowerCase();\n char[] strArray = str.toCharArray();\n\n for(int i=0; i<strArray.length; i++){\n for(int k=0; k<26; k++){\n if(alfa[k] == strArray[i]) counter[k]++;\n }\n }\n }\n //??????\n for(int i=0; i<26; i++){\n System.out.println(alfa[i] +\" : \"+ counter[i]);\n }\n }",
"main",
"{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n char[] alfa = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',\n 'n','o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};\n int[] counter = new int[26];\n String str;\n\n while((str = br.readLine()) != null){\n\n //?°????????????±?????????????§£\n str = str.toLowerCase();\n char[] strArray = str.toCharArray();\n\n for(int i=0; i<strArray.length; i++){\n for(int k=0; k<26; k++){\n if(alfa[k] == strArray[i]) counter[k]++;\n }\n }\n }\n //??????\n for(int i=0; i<26; i++){\n System.out.println(alfa[i] +\" : \"+ counter[i]);\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"char[] alfa = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',\n 'n','o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};",
"alfa",
"{'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',\n '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[] counter = new int[26];",
"counter",
"new int[26]",
"26",
"String str;",
"str",
"while((str = br.readLine()) != null){\n\n //?°????????????±?????????????§£\n str = str.toLowerCase();\n char[] strArray = str.toCharArray();\n\n for(int i=0; i<strArray.length; i++){\n for(int k=0; k<26; k++){\n if(alfa[k] == strArray[i]) counter[k]++;\n }\n }\n }",
"(str = br.readLine()) != null",
"(str = br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\n //?°????????????±?????????????§£\n str = str.toLowerCase();\n char[] strArray = str.toCharArray();\n\n for(int i=0; i<strArray.length; i++){\n for(int k=0; k<26; k++){\n if(alfa[k] == strArray[i]) counter[k]++;\n }\n }\n }",
"str = str.toLowerCase()",
"str",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"char[] strArray = str.toCharArray();",
"strArray",
"str.toCharArray()",
"str.toCharArray",
"str",
"for(int i=0; i<strArray.length; i++){\n for(int k=0; k<26; k++){\n if(alfa[k] == strArray[i]) counter[k]++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<strArray.length",
"i",
"strArray.length",
"strArray",
"strArray.length",
"i++",
"i++",
"i",
"{\n for(int k=0; k<26; k++){\n if(alfa[k] == strArray[i]) counter[k]++;\n }\n }",
"{\n for(int k=0; k<26; k++){\n if(alfa[k] == strArray[i]) counter[k]++;\n }\n }",
"for(int k=0; k<26; k++){\n if(alfa[k] == strArray[i]) counter[k]++;\n }",
"int k=0;",
"int k=0;",
"k",
"0",
"k<26",
"k",
"26",
"k++",
"k++",
"k",
"{\n if(alfa[k] == strArray[i]) counter[k]++;\n }",
"{\n if(alfa[k] == strArray[i]) counter[k]++;\n }",
"if(alfa[k] == strArray[i]) counter[k]++;",
"alfa[k] == strArray[i]",
"alfa[k]",
"alfa",
"k",
"strArray[i]",
"strArray",
"i",
"counter[k]++",
"counter[k]",
"counter",
"k",
"for(int i=0; i<26; i++){\n System.out.println(alfa[i] +\" : \"+ counter[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n System.out.println(alfa[i] +\" : \"+ counter[i]);\n }",
"{\n System.out.println(alfa[i] +\" : \"+ counter[i]);\n }",
"System.out.println(alfa[i] +\" : \"+ counter[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"alfa[i] +\" : \"+ counter[i]",
"alfa[i] +\" : \"+ counter[i]",
"alfa[i]",
"alfa",
"i",
"\" : \"",
"counter[i]",
"counter",
"i",
"String[]args",
"args",
"public class Main{\n\n public static void main(String[]args)throws IOException{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n char[] alfa = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',\n 'n','o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};\n int[] counter = new int[26];\n String str;\n\n while((str = br.readLine()) != null){\n\n //?°????????????±?????????????§£\n str = str.toLowerCase();\n char[] strArray = str.toCharArray();\n\n for(int i=0; i<strArray.length; i++){\n for(int k=0; k<26; k++){\n if(alfa[k] == strArray[i]) counter[k]++;\n }\n }\n }\n //??????\n for(int i=0; i<26; i++){\n System.out.println(alfa[i] +\" : \"+ counter[i]);\n }\n } \n}",
"public class Main{\n\n public static void main(String[]args)throws IOException{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n char[] alfa = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',\n 'n','o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};\n int[] counter = new int[26];\n String str;\n\n while((str = br.readLine()) != null){\n\n //?°????????????±?????????????§£\n str = str.toLowerCase();\n char[] strArray = str.toCharArray();\n\n for(int i=0; i<strArray.length; i++){\n for(int k=0; k<26; k++){\n if(alfa[k] == strArray[i]) counter[k]++;\n }\n }\n }\n //??????\n for(int i=0; i<26; i++){\n System.out.println(alfa[i] +\" : \"+ counter[i]);\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));
char[] alfa = {'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[] counter = new int[26];
String str;
while((str = br.readLine()) != null){
//?°????????????±?????????????§£
str = str.toLowerCase();
char[] strArray = str.toCharArray();
for(int i=0; i<strArray.length; i++){
for(int k=0; k<26; k++){
if(alfa[k] == strArray[i]) counter[k]++;
}
}
}
//??????
for(int i=0; i<26; i++){
System.out.println(alfa[i] +" : "+ counter[i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
17,
41,
13,
17,
38,
30,
4,
18,
13,
30,
0,
13,
20,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
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,
13,
30,
40,
13,
0,
18,
13,
13,
13,
0,
13,
17,
40,
13,
0,
13,
17,
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
],
[
144,
5
],
[
144,
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,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
25,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
59,
70
],
[
71,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
72,
82
],
[
82,
83
],
[
83,
84
],
[
72,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
87,
93
],
[
93,
94
],
[
94,
95
],
[
71,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
71,
101
],
[
101,
102
],
[
101,
103
],
[
71,
104
],
[
104,
105
],
[
53,
106
],
[
106,
107
],
[
106,
108
],
[
30,
109
],
[
109,
110
],
[
109,
111
],
[
30,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
119,
121
],
[
112,
122
],
[
122,
123
],
[
123,
124
],
[
112,
125
],
[
126,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
133,
133
],
[
133,
134
],
[
133,
135
],
[
133,
136
],
[
136,
137
],
[
136,
138
],
[
126,
139
],
[
139,
140
],
[
6,
141
],
[
141,
142
],
[
0,
143
],
[
143,
144
],
[
143,
145
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint count = 0;\n\n\t\tchar word = 'a';\n\t\tString input = \"\";\n\n\t\tint[] countList = new int[26];\n\n\t\tScanner sc = null;\n\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\twhile (sc.hasNext()) {\n\n\t\t\tinput = sc.nextLine();\n\n\t\t\t\t//?°????????????????\n\t\t\t\tinput = input.toLowerCase();\n\n\t\t\t\tif (input != null) {\n\n\t\t\t\t\t//??¢?????????????????????????´¢\n\t\t\t\t\tchar[] check = input.toCharArray();\n\t\t\t\t\tfor (int i = 0; i < 26; i++) {\n\n\t\t\t\t\t\tfor (int j = 0; j < check.length; j++) {\n\t\t\t\t\t\t\tif ((int)check[j] == (int)word) {\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcountList[i] += count;\n\t\t\t\t\t\tcount = 0;\n\t\t\t\t\t\tword++;\n\t\t\t\t\t}\n\t\t\t\t\tword = 'a';\n\t\t\t\t}\n\t\t\t}\n\t\t\t//????????????\n\t\t\tword = 'a';\n\t\t\tfor (int i = 0; i < countList.length; i++) {\n\n\t\t\t\tSystem.out.println(word + \" : \" + countList[i]);\n\t\t\t\tword++;\n\t\t\t}\n\n\t\t}finally {\n\t\t\tsc.close();\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint count = 0;\n\n\t\tchar word = 'a';\n\t\tString input = \"\";\n\n\t\tint[] countList = new int[26];\n\n\t\tScanner sc = null;\n\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\twhile (sc.hasNext()) {\n\n\t\t\tinput = sc.nextLine();\n\n\t\t\t\t//?°????????????????\n\t\t\t\tinput = input.toLowerCase();\n\n\t\t\t\tif (input != null) {\n\n\t\t\t\t\t//??¢?????????????????????????´¢\n\t\t\t\t\tchar[] check = input.toCharArray();\n\t\t\t\t\tfor (int i = 0; i < 26; i++) {\n\n\t\t\t\t\t\tfor (int j = 0; j < check.length; j++) {\n\t\t\t\t\t\t\tif ((int)check[j] == (int)word) {\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcountList[i] += count;\n\t\t\t\t\t\tcount = 0;\n\t\t\t\t\t\tword++;\n\t\t\t\t\t}\n\t\t\t\t\tword = 'a';\n\t\t\t\t}\n\t\t\t}\n\t\t\t//????????????\n\t\t\tword = 'a';\n\t\t\tfor (int i = 0; i < countList.length; i++) {\n\n\t\t\t\tSystem.out.println(word + \" : \" + countList[i]);\n\t\t\t\tword++;\n\t\t\t}\n\n\t\t}finally {\n\t\t\tsc.close();\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tint count = 0;\n\n\t\tchar word = 'a';\n\t\tString input = \"\";\n\n\t\tint[] countList = new int[26];\n\n\t\tScanner sc = null;\n\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\twhile (sc.hasNext()) {\n\n\t\t\tinput = sc.nextLine();\n\n\t\t\t\t//?°????????????????\n\t\t\t\tinput = input.toLowerCase();\n\n\t\t\t\tif (input != null) {\n\n\t\t\t\t\t//??¢?????????????????????????´¢\n\t\t\t\t\tchar[] check = input.toCharArray();\n\t\t\t\t\tfor (int i = 0; i < 26; i++) {\n\n\t\t\t\t\t\tfor (int j = 0; j < check.length; j++) {\n\t\t\t\t\t\t\tif ((int)check[j] == (int)word) {\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcountList[i] += count;\n\t\t\t\t\t\tcount = 0;\n\t\t\t\t\t\tword++;\n\t\t\t\t\t}\n\t\t\t\t\tword = 'a';\n\t\t\t\t}\n\t\t\t}\n\t\t\t//????????????\n\t\t\tword = 'a';\n\t\t\tfor (int i = 0; i < countList.length; i++) {\n\n\t\t\t\tSystem.out.println(word + \" : \" + countList[i]);\n\t\t\t\tword++;\n\t\t\t}\n\n\t\t}finally {\n\t\t\tsc.close();\n\t\t}\n\t}",
"main",
"{\n\n\t\tint count = 0;\n\n\t\tchar word = 'a';\n\t\tString input = \"\";\n\n\t\tint[] countList = new int[26];\n\n\t\tScanner sc = null;\n\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\twhile (sc.hasNext()) {\n\n\t\t\tinput = sc.nextLine();\n\n\t\t\t\t//?°????????????????\n\t\t\t\tinput = input.toLowerCase();\n\n\t\t\t\tif (input != null) {\n\n\t\t\t\t\t//??¢?????????????????????????´¢\n\t\t\t\t\tchar[] check = input.toCharArray();\n\t\t\t\t\tfor (int i = 0; i < 26; i++) {\n\n\t\t\t\t\t\tfor (int j = 0; j < check.length; j++) {\n\t\t\t\t\t\t\tif ((int)check[j] == (int)word) {\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcountList[i] += count;\n\t\t\t\t\t\tcount = 0;\n\t\t\t\t\t\tword++;\n\t\t\t\t\t}\n\t\t\t\t\tword = 'a';\n\t\t\t\t}\n\t\t\t}\n\t\t\t//????????????\n\t\t\tword = 'a';\n\t\t\tfor (int i = 0; i < countList.length; i++) {\n\n\t\t\t\tSystem.out.println(word + \" : \" + countList[i]);\n\t\t\t\tword++;\n\t\t\t}\n\n\t\t}finally {\n\t\t\tsc.close();\n\t\t}\n\t}",
"int count = 0;",
"count",
"0",
"char word = 'a';",
"word",
"'a'",
"String input = \"\";",
"input",
"\"\"",
"int[] countList = new int[26];",
"countList",
"new int[26]",
"26",
"Scanner sc = null;",
"sc",
"null",
"try {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\twhile (sc.hasNext()) {\n\n\t\t\tinput = sc.nextLine();\n\n\t\t\t\t//?°????????????????\n\t\t\t\tinput = input.toLowerCase();\n\n\t\t\t\tif (input != null) {\n\n\t\t\t\t\t//??¢?????????????????????????´¢\n\t\t\t\t\tchar[] check = input.toCharArray();\n\t\t\t\t\tfor (int i = 0; i < 26; i++) {\n\n\t\t\t\t\t\tfor (int j = 0; j < check.length; j++) {\n\t\t\t\t\t\t\tif ((int)check[j] == (int)word) {\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcountList[i] += count;\n\t\t\t\t\t\tcount = 0;\n\t\t\t\t\t\tword++;\n\t\t\t\t\t}\n\t\t\t\t\tword = 'a';\n\t\t\t\t}\n\t\t\t}\n\t\t\t//????????????\n\t\t\tword = 'a';\n\t\t\tfor (int i = 0; i < countList.length; i++) {\n\n\t\t\t\tSystem.out.println(word + \" : \" + countList[i]);\n\t\t\t\tword++;\n\t\t\t}\n\n\t\t}finally {\n\t\t\tsc.close();\n\t\t}",
"{\n\t\t\tsc.close();\n\t\t}",
"sc.close()",
"sc.close",
"sc",
"{\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\twhile (sc.hasNext()) {\n\n\t\t\tinput = sc.nextLine();\n\n\t\t\t\t//?°????????????????\n\t\t\t\tinput = input.toLowerCase();\n\n\t\t\t\tif (input != null) {\n\n\t\t\t\t\t//??¢?????????????????????????´¢\n\t\t\t\t\tchar[] check = input.toCharArray();\n\t\t\t\t\tfor (int i = 0; i < 26; i++) {\n\n\t\t\t\t\t\tfor (int j = 0; j < check.length; j++) {\n\t\t\t\t\t\t\tif ((int)check[j] == (int)word) {\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcountList[i] += count;\n\t\t\t\t\t\tcount = 0;\n\t\t\t\t\t\tword++;\n\t\t\t\t\t}\n\t\t\t\t\tword = 'a';\n\t\t\t\t}\n\t\t\t}\n\t\t\t//????????????\n\t\t\tword = 'a';\n\t\t\tfor (int i = 0; i < countList.length; i++) {\n\n\t\t\t\tSystem.out.println(word + \" : \" + countList[i]);\n\t\t\t\tword++;\n\t\t\t}\n\n\t\t}",
"sc = new Scanner(System.in)",
"sc",
"new Scanner(System.in)",
"while (sc.hasNext()) {\n\n\t\t\tinput = sc.nextLine();\n\n\t\t\t\t//?°????????????????\n\t\t\t\tinput = input.toLowerCase();\n\n\t\t\t\tif (input != null) {\n\n\t\t\t\t\t//??¢?????????????????????????´¢\n\t\t\t\t\tchar[] check = input.toCharArray();\n\t\t\t\t\tfor (int i = 0; i < 26; i++) {\n\n\t\t\t\t\t\tfor (int j = 0; j < check.length; j++) {\n\t\t\t\t\t\t\tif ((int)check[j] == (int)word) {\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcountList[i] += count;\n\t\t\t\t\t\tcount = 0;\n\t\t\t\t\t\tword++;\n\t\t\t\t\t}\n\t\t\t\t\tword = 'a';\n\t\t\t\t}\n\t\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\n\t\t\tinput = sc.nextLine();\n\n\t\t\t\t//?°????????????????\n\t\t\t\tinput = input.toLowerCase();\n\n\t\t\t\tif (input != null) {\n\n\t\t\t\t\t//??¢?????????????????????????´¢\n\t\t\t\t\tchar[] check = input.toCharArray();\n\t\t\t\t\tfor (int i = 0; i < 26; i++) {\n\n\t\t\t\t\t\tfor (int j = 0; j < check.length; j++) {\n\t\t\t\t\t\t\tif ((int)check[j] == (int)word) {\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcountList[i] += count;\n\t\t\t\t\t\tcount = 0;\n\t\t\t\t\t\tword++;\n\t\t\t\t\t}\n\t\t\t\t\tword = 'a';\n\t\t\t\t}\n\t\t\t}",
"input = sc.nextLine()",
"input",
"sc.nextLine()",
"sc.nextLine",
"sc",
"input = input.toLowerCase()",
"input",
"input.toLowerCase()",
"input.toLowerCase",
"input",
"if (input != null) {\n\n\t\t\t\t\t//??¢?????????????????????????´¢\n\t\t\t\t\tchar[] check = input.toCharArray();\n\t\t\t\t\tfor (int i = 0; i < 26; i++) {\n\n\t\t\t\t\t\tfor (int j = 0; j < check.length; j++) {\n\t\t\t\t\t\t\tif ((int)check[j] == (int)word) {\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcountList[i] += count;\n\t\t\t\t\t\tcount = 0;\n\t\t\t\t\t\tword++;\n\t\t\t\t\t}\n\t\t\t\t\tword = 'a';\n\t\t\t\t}",
"input != null",
"input",
"null",
"{\n\n\t\t\t\t\t//??¢?????????????????????????´¢\n\t\t\t\t\tchar[] check = input.toCharArray();\n\t\t\t\t\tfor (int i = 0; i < 26; i++) {\n\n\t\t\t\t\t\tfor (int j = 0; j < check.length; j++) {\n\t\t\t\t\t\t\tif ((int)check[j] == (int)word) {\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcountList[i] += count;\n\t\t\t\t\t\tcount = 0;\n\t\t\t\t\t\tword++;\n\t\t\t\t\t}\n\t\t\t\t\tword = 'a';\n\t\t\t\t}",
"char[] check = input.toCharArray();",
"check",
"input.toCharArray()",
"input.toCharArray",
"input",
"for (int i = 0; i < 26; i++) {\n\n\t\t\t\t\t\tfor (int j = 0; j < check.length; j++) {\n\t\t\t\t\t\t\tif ((int)check[j] == (int)word) {\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcountList[i] += count;\n\t\t\t\t\t\tcount = 0;\n\t\t\t\t\t\tword++;\n\t\t\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\n\t\t\t\t\t\tfor (int j = 0; j < check.length; j++) {\n\t\t\t\t\t\t\tif ((int)check[j] == (int)word) {\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcountList[i] += count;\n\t\t\t\t\t\tcount = 0;\n\t\t\t\t\t\tword++;\n\t\t\t\t\t}",
"{\n\n\t\t\t\t\t\tfor (int j = 0; j < check.length; j++) {\n\t\t\t\t\t\t\tif ((int)check[j] == (int)word) {\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcountList[i] += count;\n\t\t\t\t\t\tcount = 0;\n\t\t\t\t\t\tword++;\n\t\t\t\t\t}",
"for (int j = 0; j < check.length; j++) {\n\t\t\t\t\t\t\tif ((int)check[j] == (int)word) {\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < check.length",
"j",
"check.length",
"check",
"check.length",
"j++",
"j++",
"j",
"{\n\t\t\t\t\t\t\tif ((int)check[j] == (int)word) {\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}",
"{\n\t\t\t\t\t\t\tif ((int)check[j] == (int)word) {\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}",
"if ((int)check[j] == (int)word) {\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}",
"(int)check[j] == (int)word",
"(int)check[j]",
"check",
"j",
"(int)word",
"{\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}",
"count++",
"count",
"countList[i] += count",
"countList[i]",
"countList",
"i",
"count",
"count = 0",
"count",
"0",
"word++",
"word",
"word = 'a'",
"word",
"'a'",
"word = 'a'",
"word",
"'a'",
"for (int i = 0; i < countList.length; i++) {\n\n\t\t\t\tSystem.out.println(word + \" : \" + countList[i]);\n\t\t\t\tword++;\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < countList.length",
"i",
"countList.length",
"countList",
"countList.length",
"i++",
"i++",
"i",
"{\n\n\t\t\t\tSystem.out.println(word + \" : \" + countList[i]);\n\t\t\t\tword++;\n\t\t\t}",
"{\n\n\t\t\t\tSystem.out.println(word + \" : \" + countList[i]);\n\t\t\t\tword++;\n\t\t\t}",
"System.out.println(word + \" : \" + countList[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"word + \" : \" + countList[i]",
"word + \" : \" + countList[i]",
"word",
"\" : \"",
"countList[i]",
"countList",
"i",
"word++",
"word",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint count = 0;\n\n\t\tchar word = 'a';\n\t\tString input = \"\";\n\n\t\tint[] countList = new int[26];\n\n\t\tScanner sc = null;\n\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\twhile (sc.hasNext()) {\n\n\t\t\tinput = sc.nextLine();\n\n\t\t\t\t//?°????????????????\n\t\t\t\tinput = input.toLowerCase();\n\n\t\t\t\tif (input != null) {\n\n\t\t\t\t\t//??¢?????????????????????????´¢\n\t\t\t\t\tchar[] check = input.toCharArray();\n\t\t\t\t\tfor (int i = 0; i < 26; i++) {\n\n\t\t\t\t\t\tfor (int j = 0; j < check.length; j++) {\n\t\t\t\t\t\t\tif ((int)check[j] == (int)word) {\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcountList[i] += count;\n\t\t\t\t\t\tcount = 0;\n\t\t\t\t\t\tword++;\n\t\t\t\t\t}\n\t\t\t\t\tword = 'a';\n\t\t\t\t}\n\t\t\t}\n\t\t\t//????????????\n\t\t\tword = 'a';\n\t\t\tfor (int i = 0; i < countList.length; i++) {\n\n\t\t\t\tSystem.out.println(word + \" : \" + countList[i]);\n\t\t\t\tword++;\n\t\t\t}\n\n\t\t}finally {\n\t\t\tsc.close();\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint count = 0;\n\n\t\tchar word = 'a';\n\t\tString input = \"\";\n\n\t\tint[] countList = new int[26];\n\n\t\tScanner sc = null;\n\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\twhile (sc.hasNext()) {\n\n\t\t\tinput = sc.nextLine();\n\n\t\t\t\t//?°????????????????\n\t\t\t\tinput = input.toLowerCase();\n\n\t\t\t\tif (input != null) {\n\n\t\t\t\t\t//??¢?????????????????????????´¢\n\t\t\t\t\tchar[] check = input.toCharArray();\n\t\t\t\t\tfor (int i = 0; i < 26; i++) {\n\n\t\t\t\t\t\tfor (int j = 0; j < check.length; j++) {\n\t\t\t\t\t\t\tif ((int)check[j] == (int)word) {\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcountList[i] += count;\n\t\t\t\t\t\tcount = 0;\n\t\t\t\t\t\tword++;\n\t\t\t\t\t}\n\t\t\t\t\tword = 'a';\n\t\t\t\t}\n\t\t\t}\n\t\t\t//????????????\n\t\t\tword = 'a';\n\t\t\tfor (int i = 0; i < countList.length; i++) {\n\n\t\t\t\tSystem.out.println(word + \" : \" + countList[i]);\n\t\t\t\tword++;\n\t\t\t}\n\n\t\t}finally {\n\t\t\tsc.close();\n\t\t}\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int count = 0;
char word = 'a';
String input = "";
int[] countList = new int[26];
Scanner sc = null;
try {
sc = new Scanner(System.in);
while (sc.hasNext()) {
input = sc.nextLine();
//?°????????????????
input = input.toLowerCase();
if (input != null) {
//??¢?????????????????????????´¢
char[] check = input.toCharArray();
for (int i = 0; i < 26; i++) {
for (int j = 0; j < check.length; j++) {
if ((int)check[j] == (int)word) {
count++;
}
}
countList[i] += count;
count = 0;
word++;
}
word = 'a';
}
}
//????????????
word = 'a';
for (int i = 0; i < countList.length; i++) {
System.out.println(word + " : " + countList[i]);
word++;
}
}finally {
sc.close();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
41,
13,
20,
17,
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,
0,
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,
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
],
[
104,
5
],
[
104,
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
],
[
17,
19
],
[
8,
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
],
[
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
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
72,
82
],
[
82,
83
],
[
83,
84
],
[
72,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
93,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
93,
98
],
[
98,
99
],
[
98,
100
],
[
6,
101
],
[
101,
102
],
[
0,
103
],
[
103,
104
],
[
103,
105
]
]
| [
"\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t// ????????£?????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\t// ??£?¨?\n\t\tString line = \"\";\n\t\tchar temp;\n\t\t// 26???????????¨?????????\n\t\tint[] array = new int[26];\n\t\twhile (sc.hasNext()) {\n\t\t\t// ??±????????????\n\t\t\tline = sc.nextLine();\n\t\t\t// ??¨???????????????????°??????????????????????\n\t\t\tString lower = line.toLowerCase();\n\t\t\t// System.out.println(lower);\n\t\t\t// ?????????char ??????\n\t\t\tfor (int i = 0; i < lower.length(); i++) {\n\t\t\t\ttemp = lower.charAt(i);\n\t\t\t\t// System.out.println(temp);\n\t\t\t\t// ??\\?????????????????¨a?????¢???????????????????????°?????§??????\n\t\t\t\t// if(Character.isLetter('a')){\n\t\t\t\tif ('a' <= temp && temp <= 'z') {\n\t\t\t\t\tarray[temp - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tSystem.out.println((char) ('a' + i) + \" : \" + array[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\t// ????????£?????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\t// ??£?¨?\n\t\tString line = \"\";\n\t\tchar temp;\n\t\t// 26???????????¨?????????\n\t\tint[] array = new int[26];\n\t\twhile (sc.hasNext()) {\n\t\t\t// ??±????????????\n\t\t\tline = sc.nextLine();\n\t\t\t// ??¨???????????????????°??????????????????????\n\t\t\tString lower = line.toLowerCase();\n\t\t\t// System.out.println(lower);\n\t\t\t// ?????????char ??????\n\t\t\tfor (int i = 0; i < lower.length(); i++) {\n\t\t\t\ttemp = lower.charAt(i);\n\t\t\t\t// System.out.println(temp);\n\t\t\t\t// ??\\?????????????????¨a?????¢???????????????????????°?????§??????\n\t\t\t\t// if(Character.isLetter('a')){\n\t\t\t\tif ('a' <= temp && temp <= 'z') {\n\t\t\t\t\tarray[temp - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tSystem.out.println((char) ('a' + i) + \" : \" + array[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// ????????£?????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\t// ??£?¨?\n\t\tString line = \"\";\n\t\tchar temp;\n\t\t// 26???????????¨?????????\n\t\tint[] array = new int[26];\n\t\twhile (sc.hasNext()) {\n\t\t\t// ??±????????????\n\t\t\tline = sc.nextLine();\n\t\t\t// ??¨???????????????????°??????????????????????\n\t\t\tString lower = line.toLowerCase();\n\t\t\t// System.out.println(lower);\n\t\t\t// ?????????char ??????\n\t\t\tfor (int i = 0; i < lower.length(); i++) {\n\t\t\t\ttemp = lower.charAt(i);\n\t\t\t\t// System.out.println(temp);\n\t\t\t\t// ??\\?????????????????¨a?????¢???????????????????????°?????§??????\n\t\t\t\t// if(Character.isLetter('a')){\n\t\t\t\tif ('a' <= temp && temp <= 'z') {\n\t\t\t\t\tarray[temp - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tSystem.out.println((char) ('a' + i) + \" : \" + array[i]);\n\t\t}\n\t}",
"main",
"{\n\t\t// ????????£?????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\t// ??£?¨?\n\t\tString line = \"\";\n\t\tchar temp;\n\t\t// 26???????????¨?????????\n\t\tint[] array = new int[26];\n\t\twhile (sc.hasNext()) {\n\t\t\t// ??±????????????\n\t\t\tline = sc.nextLine();\n\t\t\t// ??¨???????????????????°??????????????????????\n\t\t\tString lower = line.toLowerCase();\n\t\t\t// System.out.println(lower);\n\t\t\t// ?????????char ??????\n\t\t\tfor (int i = 0; i < lower.length(); i++) {\n\t\t\t\ttemp = lower.charAt(i);\n\t\t\t\t// System.out.println(temp);\n\t\t\t\t// ??\\?????????????????¨a?????¢???????????????????????°?????§??????\n\t\t\t\t// if(Character.isLetter('a')){\n\t\t\t\tif ('a' <= temp && temp <= 'z') {\n\t\t\t\t\tarray[temp - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tSystem.out.println((char) ('a' + i) + \" : \" + array[i]);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line = \"\";",
"line",
"\"\"",
"char temp;",
"temp",
"int[] array = new int[26];",
"array",
"new int[26]",
"26",
"while (sc.hasNext()) {\n\t\t\t// ??±????????????\n\t\t\tline = sc.nextLine();\n\t\t\t// ??¨???????????????????°??????????????????????\n\t\t\tString lower = line.toLowerCase();\n\t\t\t// System.out.println(lower);\n\t\t\t// ?????????char ??????\n\t\t\tfor (int i = 0; i < lower.length(); i++) {\n\t\t\t\ttemp = lower.charAt(i);\n\t\t\t\t// System.out.println(temp);\n\t\t\t\t// ??\\?????????????????¨a?????¢???????????????????????°?????§??????\n\t\t\t\t// if(Character.isLetter('a')){\n\t\t\t\tif ('a' <= temp && temp <= 'z') {\n\t\t\t\t\tarray[temp - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\t// ??±????????????\n\t\t\tline = sc.nextLine();\n\t\t\t// ??¨???????????????????°??????????????????????\n\t\t\tString lower = line.toLowerCase();\n\t\t\t// System.out.println(lower);\n\t\t\t// ?????????char ??????\n\t\t\tfor (int i = 0; i < lower.length(); i++) {\n\t\t\t\ttemp = lower.charAt(i);\n\t\t\t\t// System.out.println(temp);\n\t\t\t\t// ??\\?????????????????¨a?????¢???????????????????????°?????§??????\n\t\t\t\t// if(Character.isLetter('a')){\n\t\t\t\tif ('a' <= temp && temp <= 'z') {\n\t\t\t\t\tarray[temp - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"line = sc.nextLine()",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String lower = line.toLowerCase();",
"lower",
"line.toLowerCase()",
"line.toLowerCase",
"line",
"for (int i = 0; i < lower.length(); i++) {\n\t\t\t\ttemp = lower.charAt(i);\n\t\t\t\t// System.out.println(temp);\n\t\t\t\t// ??\\?????????????????¨a?????¢???????????????????????°?????§??????\n\t\t\t\t// if(Character.isLetter('a')){\n\t\t\t\tif ('a' <= temp && temp <= 'z') {\n\t\t\t\t\tarray[temp - 'a']++;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < lower.length()",
"i",
"lower.length()",
"lower.length",
"lower",
"i++",
"i++",
"i",
"{\n\t\t\t\ttemp = lower.charAt(i);\n\t\t\t\t// System.out.println(temp);\n\t\t\t\t// ??\\?????????????????¨a?????¢???????????????????????°?????§??????\n\t\t\t\t// if(Character.isLetter('a')){\n\t\t\t\tif ('a' <= temp && temp <= 'z') {\n\t\t\t\t\tarray[temp - 'a']++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\ttemp = lower.charAt(i);\n\t\t\t\t// System.out.println(temp);\n\t\t\t\t// ??\\?????????????????¨a?????¢???????????????????????°?????§??????\n\t\t\t\t// if(Character.isLetter('a')){\n\t\t\t\tif ('a' <= temp && temp <= 'z') {\n\t\t\t\t\tarray[temp - 'a']++;\n\t\t\t\t}\n\t\t\t}",
"temp = lower.charAt(i)",
"temp",
"lower.charAt(i)",
"lower.charAt",
"lower",
"i",
"if ('a' <= temp && temp <= 'z') {\n\t\t\t\t\tarray[temp - 'a']++;\n\t\t\t\t}",
"'a' <= temp && temp <= 'z'",
"'a' <= temp",
"'a'",
"temp",
"temp <= 'z'",
"temp",
"'z'",
"{\n\t\t\t\t\tarray[temp - 'a']++;\n\t\t\t\t}",
"array[temp - 'a']++",
"array[temp - 'a']",
"array",
"temp - 'a'",
"temp",
"'a'",
"for (int i = 0; i < array.length; i++) {\n\t\t\tSystem.out.println((char) ('a' + i) + \" : \" + array[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < array.length",
"i",
"array.length",
"array",
"array.length",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println((char) ('a' + i) + \" : \" + array[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println((char) ('a' + i) + \" : \" + array[i]);\n\t\t}",
"System.out.println((char) ('a' + i) + \" : \" + array[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char) ('a' + i) + \" : \" + array[i]",
"(char) ('a' + i) + \" : \" + array[i]",
"(char) ('a' + i)",
"'a'",
"i",
"\" : \"",
"array[i]",
"array",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t// ????????£?????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\t// ??£?¨?\n\t\tString line = \"\";\n\t\tchar temp;\n\t\t// 26???????????¨?????????\n\t\tint[] array = new int[26];\n\t\twhile (sc.hasNext()) {\n\t\t\t// ??±????????????\n\t\t\tline = sc.nextLine();\n\t\t\t// ??¨???????????????????°??????????????????????\n\t\t\tString lower = line.toLowerCase();\n\t\t\t// System.out.println(lower);\n\t\t\t// ?????????char ??????\n\t\t\tfor (int i = 0; i < lower.length(); i++) {\n\t\t\t\ttemp = lower.charAt(i);\n\t\t\t\t// System.out.println(temp);\n\t\t\t\t// ??\\?????????????????¨a?????¢???????????????????????°?????§??????\n\t\t\t\t// if(Character.isLetter('a')){\n\t\t\t\tif ('a' <= temp && temp <= 'z') {\n\t\t\t\t\tarray[temp - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tSystem.out.println((char) ('a' + i) + \" : \" + array[i]);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t// ????????£?????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\t// ??£?¨?\n\t\tString line = \"\";\n\t\tchar temp;\n\t\t// 26???????????¨?????????\n\t\tint[] array = new int[26];\n\t\twhile (sc.hasNext()) {\n\t\t\t// ??±????????????\n\t\t\tline = sc.nextLine();\n\t\t\t// ??¨???????????????????°??????????????????????\n\t\t\tString lower = line.toLowerCase();\n\t\t\t// System.out.println(lower);\n\t\t\t// ?????????char ??????\n\t\t\tfor (int i = 0; i < lower.length(); i++) {\n\t\t\t\ttemp = lower.charAt(i);\n\t\t\t\t// System.out.println(temp);\n\t\t\t\t// ??\\?????????????????¨a?????¢???????????????????????°?????§??????\n\t\t\t\t// if(Character.isLetter('a')){\n\t\t\t\tif ('a' <= temp && temp <= 'z') {\n\t\t\t\t\tarray[temp - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tSystem.out.println((char) ('a' + i) + \" : \" + array[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 line = "";
char temp;
// 26???????????¨?????????
int[] array = new int[26];
while (sc.hasNext()) {
// ??±????????????
line = sc.nextLine();
// ??¨???????????????????°??????????????????????
String lower = line.toLowerCase();
// System.out.println(lower);
// ?????????char ??????
for (int i = 0; i < lower.length(); i++) {
temp = lower.charAt(i);
// System.out.println(temp);
// ??\?????????????????¨a?????¢???????????????????????°?????§??????
// if(Character.isLetter('a')){
if ('a' <= temp && temp <= 'z') {
array[temp - 'a']++;
}
}
}
for (int i = 0; i < array.length; i++) {
System.out.println((char) ('a' + i) + " : " + array[i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
17,
41,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
4,
18,
13,
41,
13,
20,
17,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
13,
18,
13,
13,
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,
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
],
[
138,
5
],
[
138,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[
12,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
38,
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
],
[
65,
68
],
[
68,
69
],
[
68,
70
],
[
64,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
79,
80
],
[
79,
81
],
[
63,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
82,
90
],
[
90,
91
],
[
91,
92
],
[
82,
93
],
[
94,
94
],
[
94,
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
],
[
8,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
113,
114
],
[
113,
115
],
[
108,
116
],
[
116,
117
],
[
117,
118
],
[
108,
119
],
[
120,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
127,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
6,
135
],
[
135,
136
],
[
0,
137
],
[
137,
138
],
[
137,
139
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tscan.useDelimiter(\"\\\\n\");\n\t\tString str1;\n\t\tchar[] box = new char[1200];\n\t\tString str2 = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tchar[] az = str2.toCharArray();\n\t\tint[] ans = new int[26];\n\t\t\n\t\tdo\n\t\t{\n\t\t\tstr1 = scan.next();\n\t\t\tbox = str1.toCharArray();\n\t\t\t\n\t\t\tfor(int i = 0;i < box.length;i++)\n\t\t\t{\n\t\t\t\tif(Character.isUpperCase(box[i])){\n\t\t\t\t\tbox[i] = Character.toLowerCase(box[i]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j = 0;j < 26;j++)\n\t\t\t\t{\n\t\t\t\t\tif(box[i] == az[j])\n\t\t\t\t\t{\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}while(scan.hasNext());\n\t\t\n\t\tfor(int i = 0;i < 26;i++)\n\t\t{\n\t\t\tSystem.out.println(az[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{\n\t\tScanner scan = new Scanner(System.in);\n\t\tscan.useDelimiter(\"\\\\n\");\n\t\tString str1;\n\t\tchar[] box = new char[1200];\n\t\tString str2 = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tchar[] az = str2.toCharArray();\n\t\tint[] ans = new int[26];\n\t\t\n\t\tdo\n\t\t{\n\t\t\tstr1 = scan.next();\n\t\t\tbox = str1.toCharArray();\n\t\t\t\n\t\t\tfor(int i = 0;i < box.length;i++)\n\t\t\t{\n\t\t\t\tif(Character.isUpperCase(box[i])){\n\t\t\t\t\tbox[i] = Character.toLowerCase(box[i]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j = 0;j < 26;j++)\n\t\t\t\t{\n\t\t\t\t\tif(box[i] == az[j])\n\t\t\t\t\t{\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}while(scan.hasNext());\n\t\t\n\t\tfor(int i = 0;i < 26;i++)\n\t\t{\n\t\t\tSystem.out.println(az[i] + \" : \" + ans[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tscan.useDelimiter(\"\\\\n\");\n\t\tString str1;\n\t\tchar[] box = new char[1200];\n\t\tString str2 = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tchar[] az = str2.toCharArray();\n\t\tint[] ans = new int[26];\n\t\t\n\t\tdo\n\t\t{\n\t\t\tstr1 = scan.next();\n\t\t\tbox = str1.toCharArray();\n\t\t\t\n\t\t\tfor(int i = 0;i < box.length;i++)\n\t\t\t{\n\t\t\t\tif(Character.isUpperCase(box[i])){\n\t\t\t\t\tbox[i] = Character.toLowerCase(box[i]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j = 0;j < 26;j++)\n\t\t\t\t{\n\t\t\t\t\tif(box[i] == az[j])\n\t\t\t\t\t{\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}while(scan.hasNext());\n\t\t\n\t\tfor(int i = 0;i < 26;i++)\n\t\t{\n\t\t\tSystem.out.println(az[i] + \" : \" + ans[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tscan.useDelimiter(\"\\\\n\");\n\t\tString str1;\n\t\tchar[] box = new char[1200];\n\t\tString str2 = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tchar[] az = str2.toCharArray();\n\t\tint[] ans = new int[26];\n\t\t\n\t\tdo\n\t\t{\n\t\t\tstr1 = scan.next();\n\t\t\tbox = str1.toCharArray();\n\t\t\t\n\t\t\tfor(int i = 0;i < box.length;i++)\n\t\t\t{\n\t\t\t\tif(Character.isUpperCase(box[i])){\n\t\t\t\t\tbox[i] = Character.toLowerCase(box[i]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j = 0;j < 26;j++)\n\t\t\t\t{\n\t\t\t\t\tif(box[i] == az[j])\n\t\t\t\t\t{\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}while(scan.hasNext());\n\t\t\n\t\tfor(int i = 0;i < 26;i++)\n\t\t{\n\t\t\tSystem.out.println(az[i] + \" : \" + ans[i]);\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"scan.useDelimiter(\"\\\\n\")",
"scan.useDelimiter",
"scan",
"\"\\\\n\"",
"String str1;",
"str1",
"char[] box = new char[1200];",
"box",
"new char[1200]",
"1200",
"String str2 = \"abcdefghijklmnopqrstuvwxyz\";",
"str2",
"\"abcdefghijklmnopqrstuvwxyz\"",
"char[] az = str2.toCharArray();",
"az",
"str2.toCharArray()",
"str2.toCharArray",
"str2",
"int[] ans = new int[26];",
"ans",
"new int[26]",
"26",
"do\n\t\t{\n\t\t\tstr1 = scan.next();\n\t\t\tbox = str1.toCharArray();\n\t\t\t\n\t\t\tfor(int i = 0;i < box.length;i++)\n\t\t\t{\n\t\t\t\tif(Character.isUpperCase(box[i])){\n\t\t\t\t\tbox[i] = Character.toLowerCase(box[i]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j = 0;j < 26;j++)\n\t\t\t\t{\n\t\t\t\t\tif(box[i] == az[j])\n\t\t\t\t\t{\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}while(scan.hasNext());",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n\t\t\tstr1 = scan.next();\n\t\t\tbox = str1.toCharArray();\n\t\t\t\n\t\t\tfor(int i = 0;i < box.length;i++)\n\t\t\t{\n\t\t\t\tif(Character.isUpperCase(box[i])){\n\t\t\t\t\tbox[i] = Character.toLowerCase(box[i]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j = 0;j < 26;j++)\n\t\t\t\t{\n\t\t\t\t\tif(box[i] == az[j])\n\t\t\t\t\t{\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}",
"str1 = scan.next()",
"str1",
"scan.next()",
"scan.next",
"scan",
"box = str1.toCharArray()",
"box",
"str1.toCharArray()",
"str1.toCharArray",
"str1",
"for(int i = 0;i < box.length;i++)\n\t\t\t{\n\t\t\t\tif(Character.isUpperCase(box[i])){\n\t\t\t\t\tbox[i] = Character.toLowerCase(box[i]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j = 0;j < 26;j++)\n\t\t\t\t{\n\t\t\t\t\tif(box[i] == az[j])\n\t\t\t\t\t{\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 < box.length",
"i",
"box.length",
"box",
"box.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(Character.isUpperCase(box[i])){\n\t\t\t\t\tbox[i] = Character.toLowerCase(box[i]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j = 0;j < 26;j++)\n\t\t\t\t{\n\t\t\t\t\tif(box[i] == az[j])\n\t\t\t\t\t{\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\tif(Character.isUpperCase(box[i])){\n\t\t\t\t\tbox[i] = Character.toLowerCase(box[i]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j = 0;j < 26;j++)\n\t\t\t\t{\n\t\t\t\t\tif(box[i] == az[j])\n\t\t\t\t\t{\n\t\t\t\t\t\tans[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"if(Character.isUpperCase(box[i])){\n\t\t\t\t\tbox[i] = Character.toLowerCase(box[i]);\n\t\t\t\t}",
"Character.isUpperCase(box[i])",
"Character.isUpperCase",
"Character",
"box[i]",
"box",
"i",
"{\n\t\t\t\t\tbox[i] = Character.toLowerCase(box[i]);\n\t\t\t\t}",
"box[i] = Character.toLowerCase(box[i])",
"box[i]",
"box",
"i",
"Character.toLowerCase(box[i])",
"Character.toLowerCase",
"Character",
"box[i]",
"box",
"i",
"for(int j = 0;j < 26;j++)\n\t\t\t\t{\n\t\t\t\t\tif(box[i] == az[j])\n\t\t\t\t\t{\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(box[i] == az[j])\n\t\t\t\t\t{\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(box[i] == az[j])\n\t\t\t\t\t{\n\t\t\t\t\t\tans[j]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"if(box[i] == az[j])\n\t\t\t\t\t{\n\t\t\t\t\t\tans[j]++;\n\t\t\t\t\t}",
"box[i] == az[j]",
"box[i]",
"box",
"i",
"az[j]",
"az",
"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{\n\t\t\tSystem.out.println(az[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(az[i] + \" : \" + ans[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(az[i] + \" : \" + ans[i]);\n\t\t}",
"System.out.println(az[i] + \" : \" + ans[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"az[i] + \" : \" + ans[i]",
"az[i] + \" : \" + ans[i]",
"az[i]",
"az",
"i",
"\" : \"",
"ans[i]",
"ans",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tscan.useDelimiter(\"\\\\n\");\n\t\tString str1;\n\t\tchar[] box = new char[1200];\n\t\tString str2 = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tchar[] az = str2.toCharArray();\n\t\tint[] ans = new int[26];\n\t\t\n\t\tdo\n\t\t{\n\t\t\tstr1 = scan.next();\n\t\t\tbox = str1.toCharArray();\n\t\t\t\n\t\t\tfor(int i = 0;i < box.length;i++)\n\t\t\t{\n\t\t\t\tif(Character.isUpperCase(box[i])){\n\t\t\t\t\tbox[i] = Character.toLowerCase(box[i]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j = 0;j < 26;j++)\n\t\t\t\t{\n\t\t\t\t\tif(box[i] == az[j])\n\t\t\t\t\t{\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}while(scan.hasNext());\n\t\t\n\t\tfor(int i = 0;i < 26;i++)\n\t\t{\n\t\t\tSystem.out.println(az[i] + \" : \" + ans[i]);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tscan.useDelimiter(\"\\\\n\");\n\t\tString str1;\n\t\tchar[] box = new char[1200];\n\t\tString str2 = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tchar[] az = str2.toCharArray();\n\t\tint[] ans = new int[26];\n\t\t\n\t\tdo\n\t\t{\n\t\t\tstr1 = scan.next();\n\t\t\tbox = str1.toCharArray();\n\t\t\t\n\t\t\tfor(int i = 0;i < box.length;i++)\n\t\t\t{\n\t\t\t\tif(Character.isUpperCase(box[i])){\n\t\t\t\t\tbox[i] = Character.toLowerCase(box[i]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j = 0;j < 26;j++)\n\t\t\t\t{\n\t\t\t\t\tif(box[i] == az[j])\n\t\t\t\t\t{\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}while(scan.hasNext());\n\t\t\n\t\tfor(int i = 0;i < 26;i++)\n\t\t{\n\t\t\tSystem.out.println(az[i] + \" : \" + ans[i]);\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);
scan.useDelimiter("\\n");
String str1;
char[] box = new char[1200];
String str2 = "abcdefghijklmnopqrstuvwxyz";
char[] az = str2.toCharArray();
int[] ans = new int[26];
do
{
str1 = scan.next();
box = str1.toCharArray();
for(int i = 0;i < box.length;i++)
{
if(Character.isUpperCase(box[i])){
box[i] = Character.toLowerCase(box[i]);
}
for(int j = 0;j < 26;j++)
{
if(box[i] == az[j])
{
ans[j]++;
}
}
}
}while(scan.hasNext());
for(int i = 0;i < 26;i++)
{
System.out.println(az[i] + " : " + ans[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,
42,
4,
18,
13,
30,
41,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
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,
17,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
133,
5
],
[
133,
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
],
[
46,
47
],
[
47,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
49,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
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
],
[
83,
85
],
[
81,
86
],
[
86,
87
],
[
86,
88
],
[
81,
89
],
[
89,
90
],
[
90,
91
],
[
81,
92
],
[
93,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
97,
99
],
[
94,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
8,
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
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
118,
124
],
[
124,
125
],
[
124,
126
],
[
118,
127
],
[
127,
128
],
[
127,
129
],
[
6,
130
],
[
130,
131
],
[
0,
132
],
[
132,
133
],
[
132,
134
]
]
| [
"import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tchar [] alp = { '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 [] num = new int[26];\n\t\twhile(scan.hasNext()){\n\t\t\tString sent = scan.next();\n\t\t\tString s = sent.toLowerCase();\n\t\t\tfor(int i = 0; i < s.length(); i++){\n\t\t\t\tchar c = s.charAt(i);\n\t\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\t\tif(c == alp[j]){\n\t\t\t\t\t\tnum[j]++;\n\t\t\t\t\t}\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.printf(\"%c : %d\\n\", alp[i], num[i]);\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tchar [] alp = { '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 [] num = new int[26];\n\t\twhile(scan.hasNext()){\n\t\t\tString sent = scan.next();\n\t\t\tString s = sent.toLowerCase();\n\t\t\tfor(int i = 0; i < s.length(); i++){\n\t\t\t\tchar c = s.charAt(i);\n\t\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\t\tif(c == alp[j]){\n\t\t\t\t\t\tnum[j]++;\n\t\t\t\t\t}\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.printf(\"%c : %d\\n\", alp[i], num[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tchar [] alp = { '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 [] num = new int[26];\n\t\twhile(scan.hasNext()){\n\t\t\tString sent = scan.next();\n\t\t\tString s = sent.toLowerCase();\n\t\t\tfor(int i = 0; i < s.length(); i++){\n\t\t\t\tchar c = s.charAt(i);\n\t\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\t\tif(c == alp[j]){\n\t\t\t\t\t\tnum[j]++;\n\t\t\t\t\t}\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.printf(\"%c : %d\\n\", alp[i], num[i]);\n\t\t}\n\t}",
"main",
"{\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tchar [] alp = { '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 [] num = new int[26];\n\t\twhile(scan.hasNext()){\n\t\t\tString sent = scan.next();\n\t\t\tString s = sent.toLowerCase();\n\t\t\tfor(int i = 0; i < s.length(); i++){\n\t\t\t\tchar c = s.charAt(i);\n\t\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\t\tif(c == alp[j]){\n\t\t\t\t\t\tnum[j]++;\n\t\t\t\t\t}\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.printf(\"%c : %d\\n\", alp[i], num[i]);\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"char [] alp = { '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' };",
"alp",
"{ '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 [] num = new int[26];",
"num",
"new int[26]",
"26",
"while(scan.hasNext()){\n\t\t\tString sent = scan.next();\n\t\t\tString s = sent.toLowerCase();\n\t\t\tfor(int i = 0; i < s.length(); i++){\n\t\t\t\tchar c = s.charAt(i);\n\t\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\t\tif(c == alp[j]){\n\t\t\t\t\t\tnum[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n\t\t\tString sent = scan.next();\n\t\t\tString s = sent.toLowerCase();\n\t\t\tfor(int i = 0; i < s.length(); i++){\n\t\t\t\tchar c = s.charAt(i);\n\t\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\t\tif(c == alp[j]){\n\t\t\t\t\t\tnum[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"String sent = scan.next();",
"sent",
"scan.next()",
"scan.next",
"scan",
"String s = sent.toLowerCase();",
"s",
"sent.toLowerCase()",
"sent.toLowerCase",
"sent",
"for(int i = 0; i < s.length(); i++){\n\t\t\t\tchar c = s.charAt(i);\n\t\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\t\tif(c == alp[j]){\n\t\t\t\t\t\tnum[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\tchar c = s.charAt(i);\n\t\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\t\tif(c == alp[j]){\n\t\t\t\t\t\tnum[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tchar c = s.charAt(i);\n\t\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\t\tif(c == alp[j]){\n\t\t\t\t\t\tnum[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"char c = s.charAt(i);",
"c",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"for(int j = 0; j < 26; j++){\n\t\t\t\t\tif(c == alp[j]){\n\t\t\t\t\t\tnum[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(c == alp[j]){\n\t\t\t\t\t\tnum[j]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif(c == alp[j]){\n\t\t\t\t\t\tnum[j]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"if(c == alp[j]){\n\t\t\t\t\t\tnum[j]++;\n\t\t\t\t\t}",
"c == alp[j]",
"c",
"alp[j]",
"alp",
"j",
"{\n\t\t\t\t\t\tnum[j]++;\n\t\t\t\t\t}",
"num[j]++",
"num[j]",
"num",
"j",
"for(int i = 0; i < 26; i++){\n\t\t\tSystem.out.printf(\"%c : %d\\n\", alp[i], num[i]);\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\", alp[i], num[i]);\n\t\t}",
"{\n\t\t\tSystem.out.printf(\"%c : %d\\n\", alp[i], num[i]);\n\t\t}",
"System.out.printf(\"%c : %d\\n\", alp[i], num[i])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c : %d\\n\"",
"alp[i]",
"alp",
"i",
"num[i]",
"num",
"i",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tchar [] alp = { '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 [] num = new int[26];\n\t\twhile(scan.hasNext()){\n\t\t\tString sent = scan.next();\n\t\t\tString s = sent.toLowerCase();\n\t\t\tfor(int i = 0; i < s.length(); i++){\n\t\t\t\tchar c = s.charAt(i);\n\t\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\t\tif(c == alp[j]){\n\t\t\t\t\t\tnum[j]++;\n\t\t\t\t\t}\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.printf(\"%c : %d\\n\", alp[i], num[i]);\n\t\t}\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tchar [] alp = { '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 [] num = new int[26];\n\t\twhile(scan.hasNext()){\n\t\t\tString sent = scan.next();\n\t\t\tString s = sent.toLowerCase();\n\t\t\tfor(int i = 0; i < s.length(); i++){\n\t\t\t\tchar c = s.charAt(i);\n\t\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\t\tif(c == alp[j]){\n\t\t\t\t\t\tnum[j]++;\n\t\t\t\t\t}\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.printf(\"%c : %d\\n\", alp[i], num[i]);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
char [] alp = { '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 [] num = new int[26];
while(scan.hasNext()){
String sent = scan.next();
String s = sent.toLowerCase();
for(int i = 0; i < s.length(); i++){
char c = s.charAt(i);
for(int j = 0; j < 26; j++){
if(c == alp[j]){
num[j]++;
}
}
}
}
for(int i = 0; i < 26; i++){
System.out.printf("%c : %d\n", alp[i], num[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,
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,
0,
18,
13,
2,
13,
13,
4,
18,
13,
13,
0,
13,
4,
18,
13,
41,
13,
20,
17,
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,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
18,
13,
13,
2,
13,
17,
17,
30,
40,
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,
18,
13,
13,
4,
18,
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
],
[
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
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
23,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
8,
64
],
[
64,
65
],
[
64,
66
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
8,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
86,
94
],
[
94,
95
],
[
95,
96
],
[
86,
97
],
[
98,
98
],
[
98,
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
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
118,
119
],
[
118,
120
],
[
113,
121
],
[
112,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
8,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
127,
135
],
[
135,
136
],
[
136,
137
],
[
127,
138
],
[
139,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
140,
145
],
[
140,
146
],
[
146,
147
],
[
146,
148
],
[
140,
149
],
[
149,
150
],
[
149,
151
],
[
8,
152
],
[
152,
153
],
[
153,
154
],
[
6,
155
],
[
155,
156
],
[
0,
157
],
[
157,
158
],
[
157,
159
]
]
| [
"import java.util.Scanner;\n\n\npublic class Main{\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n char[] ch = new char[1200];\n int n = 0;\n while(scanner.hasNextLine()){\n String line = scanner.nextLine();\n line = line.toLowerCase();\n for(int i = 0; i < line.length(); i++){\n ch[i + n] = line.charAt(i);\n }\n n += line.length(); \n }\n int[] al = new int[26];\n for(int j = 0; j < 26; j++){\n al[j] = 0;\n }\n for(int j =0; j < n; j++){\n for(int k = 0; k < 26;k++){\n if((int)ch[j] - (k + 97) == 0){\n al[k] ++;\n }\n }\n }\n for(int j = 0; j < 26; j++){\n System.out.printf(\"%c : %d\\n\",(97 + j),al[j]);\n }\n scanner.close();\n \n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n char[] ch = new char[1200];\n int n = 0;\n while(scanner.hasNextLine()){\n String line = scanner.nextLine();\n line = line.toLowerCase();\n for(int i = 0; i < line.length(); i++){\n ch[i + n] = line.charAt(i);\n }\n n += line.length(); \n }\n int[] al = new int[26];\n for(int j = 0; j < 26; j++){\n al[j] = 0;\n }\n for(int j =0; j < n; j++){\n for(int k = 0; k < 26;k++){\n if((int)ch[j] - (k + 97) == 0){\n al[k] ++;\n }\n }\n }\n for(int j = 0; j < 26; j++){\n System.out.printf(\"%c : %d\\n\",(97 + j),al[j]);\n }\n scanner.close();\n \n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n char[] ch = new char[1200];\n int n = 0;\n while(scanner.hasNextLine()){\n String line = scanner.nextLine();\n line = line.toLowerCase();\n for(int i = 0; i < line.length(); i++){\n ch[i + n] = line.charAt(i);\n }\n n += line.length(); \n }\n int[] al = new int[26];\n for(int j = 0; j < 26; j++){\n al[j] = 0;\n }\n for(int j =0; j < n; j++){\n for(int k = 0; k < 26;k++){\n if((int)ch[j] - (k + 97) == 0){\n al[k] ++;\n }\n }\n }\n for(int j = 0; j < 26; j++){\n System.out.printf(\"%c : %d\\n\",(97 + j),al[j]);\n }\n scanner.close();\n \n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n char[] ch = new char[1200];\n int n = 0;\n while(scanner.hasNextLine()){\n String line = scanner.nextLine();\n line = line.toLowerCase();\n for(int i = 0; i < line.length(); i++){\n ch[i + n] = line.charAt(i);\n }\n n += line.length(); \n }\n int[] al = new int[26];\n for(int j = 0; j < 26; j++){\n al[j] = 0;\n }\n for(int j =0; j < n; j++){\n for(int k = 0; k < 26;k++){\n if((int)ch[j] - (k + 97) == 0){\n al[k] ++;\n }\n }\n }\n for(int j = 0; j < 26; j++){\n System.out.printf(\"%c : %d\\n\",(97 + j),al[j]);\n }\n scanner.close();\n \n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"char[] ch = new char[1200];",
"ch",
"new char[1200]",
"1200",
"int n = 0;",
"n",
"0",
"while(scanner.hasNextLine()){\n String line = scanner.nextLine();\n line = line.toLowerCase();\n for(int i = 0; i < line.length(); i++){\n ch[i + n] = line.charAt(i);\n }\n n += line.length(); \n }",
"scanner.hasNextLine()",
"scanner.hasNextLine",
"scanner",
"{\n String line = scanner.nextLine();\n line = line.toLowerCase();\n for(int i = 0; i < line.length(); i++){\n ch[i + n] = line.charAt(i);\n }\n n += line.length(); \n }",
"String line = scanner.nextLine();",
"line",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"line = line.toLowerCase()",
"line",
"line.toLowerCase()",
"line.toLowerCase",
"line",
"for(int i = 0; i < line.length(); i++){\n ch[i + n] = line.charAt(i);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < line.length()",
"i",
"line.length()",
"line.length",
"line",
"i++",
"i++",
"i",
"{\n ch[i + n] = line.charAt(i);\n }",
"{\n ch[i + n] = line.charAt(i);\n }",
"ch[i + n] = line.charAt(i)",
"ch[i + n]",
"ch",
"i + n",
"i",
"n",
"line.charAt(i)",
"line.charAt",
"line",
"i",
"n += line.length()",
"n",
"line.length()",
"line.length",
"line",
"int[] al = new int[26];",
"al",
"new int[26]",
"26",
"for(int j = 0; j < 26; j++){\n al[j] = 0;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 26",
"j",
"26",
"j++",
"j++",
"j",
"{\n al[j] = 0;\n }",
"{\n al[j] = 0;\n }",
"al[j] = 0",
"al[j]",
"al",
"j",
"0",
"for(int j =0; j < n; j++){\n for(int k = 0; k < 26;k++){\n if((int)ch[j] - (k + 97) == 0){\n al[k] ++;\n }\n }\n }",
"int j =0;",
"int j =0;",
"j",
"0",
"j < n",
"j",
"n",
"j++",
"j++",
"j",
"{\n for(int k = 0; k < 26;k++){\n if((int)ch[j] - (k + 97) == 0){\n al[k] ++;\n }\n }\n }",
"{\n for(int k = 0; k < 26;k++){\n if((int)ch[j] - (k + 97) == 0){\n al[k] ++;\n }\n }\n }",
"for(int k = 0; k < 26;k++){\n if((int)ch[j] - (k + 97) == 0){\n al[k] ++;\n }\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 26",
"k",
"26",
"k++",
"k++",
"k",
"{\n if((int)ch[j] - (k + 97) == 0){\n al[k] ++;\n }\n }",
"{\n if((int)ch[j] - (k + 97) == 0){\n al[k] ++;\n }\n }",
"if((int)ch[j] - (k + 97) == 0){\n al[k] ++;\n }",
"(int)ch[j] - (k + 97) == 0",
"(int)ch[j] - (k + 97)",
"(int)ch[j]",
"ch",
"j",
"(k + 97)",
"k",
"97",
"0",
"{\n al[k] ++;\n }",
"al[k] ++",
"al[k]",
"al",
"k",
"for(int j = 0; j < 26; j++){\n System.out.printf(\"%c : %d\\n\",(97 + j),al[j]);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 26",
"j",
"26",
"j++",
"j++",
"j",
"{\n System.out.printf(\"%c : %d\\n\",(97 + j),al[j]);\n }",
"{\n System.out.printf(\"%c : %d\\n\",(97 + j),al[j]);\n }",
"System.out.printf(\"%c : %d\\n\",(97 + j),al[j])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c : %d\\n\"",
"(97 + j)",
"97",
"j",
"al[j]",
"al",
"j",
"scanner.close()",
"scanner.close",
"scanner",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n char[] ch = new char[1200];\n int n = 0;\n while(scanner.hasNextLine()){\n String line = scanner.nextLine();\n line = line.toLowerCase();\n for(int i = 0; i < line.length(); i++){\n ch[i + n] = line.charAt(i);\n }\n n += line.length(); \n }\n int[] al = new int[26];\n for(int j = 0; j < 26; j++){\n al[j] = 0;\n }\n for(int j =0; j < n; j++){\n for(int k = 0; k < 26;k++){\n if((int)ch[j] - (k + 97) == 0){\n al[k] ++;\n }\n }\n }\n for(int j = 0; j < 26; j++){\n System.out.printf(\"%c : %d\\n\",(97 + j),al[j]);\n }\n scanner.close();\n \n }\n}",
"public class Main{\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n char[] ch = new char[1200];\n int n = 0;\n while(scanner.hasNextLine()){\n String line = scanner.nextLine();\n line = line.toLowerCase();\n for(int i = 0; i < line.length(); i++){\n ch[i + n] = line.charAt(i);\n }\n n += line.length(); \n }\n int[] al = new int[26];\n for(int j = 0; j < 26; j++){\n al[j] = 0;\n }\n for(int j =0; j < n; j++){\n for(int k = 0; k < 26;k++){\n if((int)ch[j] - (k + 97) == 0){\n al[k] ++;\n }\n }\n }\n for(int j = 0; j < 26; j++){\n System.out.printf(\"%c : %d\\n\",(97 + j),al[j]);\n }\n scanner.close();\n \n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
char[] ch = new char[1200];
int n = 0;
while(scanner.hasNextLine()){
String line = scanner.nextLine();
line = line.toLowerCase();
for(int i = 0; i < line.length(); i++){
ch[i + n] = line.charAt(i);
}
n += line.length();
}
int[] al = new int[26];
for(int j = 0; j < 26; j++){
al[j] = 0;
}
for(int j =0; j < n; j++){
for(int k = 0; k < 26;k++){
if((int)ch[j] - (k + 97) == 0){
al[k] ++;
}
}
}
for(int j = 0; j < 26; j++){
System.out.printf("%c : %d\n",(97 + j),al[j]);
}
scanner.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
13,
17,
13,
2,
13,
17,
41,
13,
20,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
18,
13,
13,
14,
2,
2,
17,
13,
2,
13,
17,
0,
13,
17,
0,
13,
17,
14,
2,
2,
13,
17,
2,
17,
13,
9,
40,
18,
18,
13,
17,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
4,
18,
13,
18,
18,
13,
17,
13,
17,
18,
18,
13,
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
],
[
147,
11
],
[
147,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
33,
39
],
[
39,
40
],
[
39,
41
],
[
14,
42
],
[
42,
43
],
[
42,
44
],
[
14,
45
],
[
45,
46
],
[
14,
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
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
61,
71
],
[
71,
72
],
[
72,
73
],
[
61,
74
],
[
75,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
75,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
86,
88
],
[
81,
89
],
[
89,
90
],
[
89,
91
],
[
75,
92
],
[
92,
93
],
[
92,
94
],
[
75,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
95,
103
],
[
75,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
14,
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
],
[
131,
132
],
[
130,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
129,
138
],
[
129,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
12,
144
],
[
144,
145
],
[
0,
146
],
[
146,
147
],
[
146,
148
]
]
| [
"import java.io.InputStreamReader;\nimport java.io.BufferedReader;\nimport java.io.IOException;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tchar[][] alphabet = new char[2][26];\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\talphabet[0][i] = (char) (i + 97);\n\t\t}\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\twhile ((str = br.readLine()) != null) {\n\t\t\tchar[] input = str.toCharArray();\n\t\t\tfor (int i = 0; i < input.length; i++) {\n\t\t\t\tint j = (int) input[i];\n\t\t\t\tif (64 < j && j < 91) j += 32;\n\t\t\t\tj -= 97;\n\t\t\t\tif (j < 0 || 27 < j) continue;\n\t\t\t\talphabet[1][j]++;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(String.valueOf(alphabet[0][i]) + \" : \" + (int) alphabet[1][i]);\n\t\t}\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\tpublic static void main(String[] args) throws IOException {\n\t\tchar[][] alphabet = new char[2][26];\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\talphabet[0][i] = (char) (i + 97);\n\t\t}\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\twhile ((str = br.readLine()) != null) {\n\t\t\tchar[] input = str.toCharArray();\n\t\t\tfor (int i = 0; i < input.length; i++) {\n\t\t\t\tint j = (int) input[i];\n\t\t\t\tif (64 < j && j < 91) j += 32;\n\t\t\t\tj -= 97;\n\t\t\t\tif (j < 0 || 27 < j) continue;\n\t\t\t\talphabet[1][j]++;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(String.valueOf(alphabet[0][i]) + \" : \" + (int) alphabet[1][i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tchar[][] alphabet = new char[2][26];\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\talphabet[0][i] = (char) (i + 97);\n\t\t}\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\twhile ((str = br.readLine()) != null) {\n\t\t\tchar[] input = str.toCharArray();\n\t\t\tfor (int i = 0; i < input.length; i++) {\n\t\t\t\tint j = (int) input[i];\n\t\t\t\tif (64 < j && j < 91) j += 32;\n\t\t\t\tj -= 97;\n\t\t\t\tif (j < 0 || 27 < j) continue;\n\t\t\t\talphabet[1][j]++;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(String.valueOf(alphabet[0][i]) + \" : \" + (int) alphabet[1][i]);\n\t\t}\n\t}",
"main",
"{\n\t\tchar[][] alphabet = new char[2][26];\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\talphabet[0][i] = (char) (i + 97);\n\t\t}\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\twhile ((str = br.readLine()) != null) {\n\t\t\tchar[] input = str.toCharArray();\n\t\t\tfor (int i = 0; i < input.length; i++) {\n\t\t\t\tint j = (int) input[i];\n\t\t\t\tif (64 < j && j < 91) j += 32;\n\t\t\t\tj -= 97;\n\t\t\t\tif (j < 0 || 27 < j) continue;\n\t\t\t\talphabet[1][j]++;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(String.valueOf(alphabet[0][i]) + \" : \" + (int) alphabet[1][i]);\n\t\t}\n\t}",
"char[][] alphabet = new char[2][26];",
"alphabet",
"new char[2][26]",
"2",
"26",
"for (int i = 0; i < 26; i++) {\n\t\t\talphabet[0][i] = (char) (i + 97);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\talphabet[0][i] = (char) (i + 97);\n\t\t}",
"{\n\t\t\talphabet[0][i] = (char) (i + 97);\n\t\t}",
"alphabet[0][i] = (char) (i + 97)",
"alphabet[0][i]",
"alphabet[0]",
"alphabet",
"0",
"i",
"(char) (i + 97)",
"i",
"97",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str;",
"str",
"while ((str = br.readLine()) != null) {\n\t\t\tchar[] input = str.toCharArray();\n\t\t\tfor (int i = 0; i < input.length; i++) {\n\t\t\t\tint j = (int) input[i];\n\t\t\t\tif (64 < j && j < 91) j += 32;\n\t\t\t\tj -= 97;\n\t\t\t\tif (j < 0 || 27 < j) continue;\n\t\t\t\talphabet[1][j]++;\n\t\t\t}\n\t\t}",
"(str = br.readLine()) != null",
"(str = br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\t\t\tchar[] input = str.toCharArray();\n\t\t\tfor (int i = 0; i < input.length; i++) {\n\t\t\t\tint j = (int) input[i];\n\t\t\t\tif (64 < j && j < 91) j += 32;\n\t\t\t\tj -= 97;\n\t\t\t\tif (j < 0 || 27 < j) continue;\n\t\t\t\talphabet[1][j]++;\n\t\t\t}\n\t\t}",
"char[] input = str.toCharArray();",
"input",
"str.toCharArray()",
"str.toCharArray",
"str",
"for (int i = 0; i < input.length; i++) {\n\t\t\t\tint j = (int) input[i];\n\t\t\t\tif (64 < j && j < 91) j += 32;\n\t\t\t\tj -= 97;\n\t\t\t\tif (j < 0 || 27 < j) continue;\n\t\t\t\talphabet[1][j]++;\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < input.length",
"i",
"input.length",
"input",
"input.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tint j = (int) input[i];\n\t\t\t\tif (64 < j && j < 91) j += 32;\n\t\t\t\tj -= 97;\n\t\t\t\tif (j < 0 || 27 < j) continue;\n\t\t\t\talphabet[1][j]++;\n\t\t\t}",
"{\n\t\t\t\tint j = (int) input[i];\n\t\t\t\tif (64 < j && j < 91) j += 32;\n\t\t\t\tj -= 97;\n\t\t\t\tif (j < 0 || 27 < j) continue;\n\t\t\t\talphabet[1][j]++;\n\t\t\t}",
"int j = (int) input[i];",
"j",
"(int) input[i]",
"input",
"i",
"if (64 < j && j < 91) j += 32;",
"64 < j && j < 91",
"64 < j",
"64",
"j",
"j < 91",
"j",
"91",
"j += 32",
"j",
"32",
"j -= 97",
"j",
"97",
"if (j < 0 || 27 < j) continue;",
"j < 0 || 27 < j",
"j < 0",
"j",
"0",
"27 < j",
"27",
"j",
"continue;",
"alphabet[1][j]++",
"alphabet[1][j]",
"alphabet[1]",
"alphabet",
"1",
"j",
"for (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(String.valueOf(alphabet[0][i]) + \" : \" + (int) alphabet[1][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(String.valueOf(alphabet[0][i]) + \" : \" + (int) alphabet[1][i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(String.valueOf(alphabet[0][i]) + \" : \" + (int) alphabet[1][i]);\n\t\t}",
"System.out.println(String.valueOf(alphabet[0][i]) + \" : \" + (int) alphabet[1][i])",
"System.out.println",
"System.out",
"System",
"System.out",
"String.valueOf(alphabet[0][i]) + \" : \" + (int) alphabet[1][i]",
"String.valueOf(alphabet[0][i]) + \" : \" + (int) alphabet[1][i]",
"String.valueOf(alphabet[0][i])",
"String.valueOf",
"String",
"alphabet[0][i]",
"alphabet[0]",
"alphabet",
"0",
"i",
"\" : \"",
"(int) alphabet[1][i]",
"alphabet[1]",
"alphabet",
"1",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tchar[][] alphabet = new char[2][26];\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\talphabet[0][i] = (char) (i + 97);\n\t\t}\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\twhile ((str = br.readLine()) != null) {\n\t\t\tchar[] input = str.toCharArray();\n\t\t\tfor (int i = 0; i < input.length; i++) {\n\t\t\t\tint j = (int) input[i];\n\t\t\t\tif (64 < j && j < 91) j += 32;\n\t\t\t\tj -= 97;\n\t\t\t\tif (j < 0 || 27 < j) continue;\n\t\t\t\talphabet[1][j]++;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(String.valueOf(alphabet[0][i]) + \" : \" + (int) alphabet[1][i]);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tchar[][] alphabet = new char[2][26];\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\talphabet[0][i] = (char) (i + 97);\n\t\t}\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\twhile ((str = br.readLine()) != null) {\n\t\t\tchar[] input = str.toCharArray();\n\t\t\tfor (int i = 0; i < input.length; i++) {\n\t\t\t\tint j = (int) input[i];\n\t\t\t\tif (64 < j && j < 91) j += 32;\n\t\t\t\tj -= 97;\n\t\t\t\tif (j < 0 || 27 < j) continue;\n\t\t\t\talphabet[1][j]++;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(String.valueOf(alphabet[0][i]) + \" : \" + (int) alphabet[1][i]);\n\t\t}\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 {
char[][] alphabet = new char[2][26];
for (int i = 0; i < 26; i++) {
alphabet[0][i] = (char) (i + 97);
}
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str;
while ((str = br.readLine()) != null) {
char[] input = str.toCharArray();
for (int i = 0; i < input.length; i++) {
int j = (int) input[i];
if (64 < j && j < 91) j += 32;
j -= 97;
if (j < 0 || 27 < j) continue;
alphabet[1][j]++;
}
}
for (int i = 0; i < 26; i++) {
System.out.println(String.valueOf(alphabet[0][i]) + " : " + (int) alphabet[1][i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
17,
41,
13,
17,
42,
4,
18,
13,
30,
0,
13,
4,
18,
4,
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,
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,
4,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
14,
2,
13,
17,
30,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
116,
5
],
[
116,
6
],
[
6,
7
],
[
6,
8
],
[
116,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
16
],
[
16,
17
],
[
16,
18
],
[
11,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
19,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
23,
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
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
44,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
11,
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
],
[
86,
88
],
[
85,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
11,
93
],
[
93,
94
],
[
9,
95
],
[
95,
96
],
[
116,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
116,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
0,
115
],
[
115,
116
],
[
115,
117
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tint[] abc = new int[26];\n\t\tString input = \"\";\n\n\t\twhile (scanner.hasNext()) {\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 charNumber = input.charAt(i);\n\n\t\t\t\tif ('a' <= charNumber && charNumber <= 'z') {\n\n\t\t\t\t\tabc[charNumber - 'a']++;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t\tfor (int j = 0; j < 26; j++) {\n\n\t\t\tSystem.out.println((char)('a' + j) + \" : \" + abc[j]);\n\n\t\t}\n\n\t\tclose();\n\n\t}\n\n\tpublic static String input() {\n\n\t\treturn scanner.nextLine();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tint[] abc = new int[26];\n\t\tString input = \"\";\n\n\t\twhile (scanner.hasNext()) {\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 charNumber = input.charAt(i);\n\n\t\t\t\tif ('a' <= charNumber && charNumber <= 'z') {\n\n\t\t\t\t\tabc[charNumber - 'a']++;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t\tfor (int j = 0; j < 26; j++) {\n\n\t\t\tSystem.out.println((char)('a' + j) + \" : \" + abc[j]);\n\n\t\t}\n\n\t\tclose();\n\n\t}\n\n\tpublic static String input() {\n\n\t\treturn scanner.nextLine();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}",
"Main",
"public static Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"public static void main(String[] args) {\n\n\t\tint[] abc = new int[26];\n\t\tString input = \"\";\n\n\t\twhile (scanner.hasNext()) {\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 charNumber = input.charAt(i);\n\n\t\t\t\tif ('a' <= charNumber && charNumber <= 'z') {\n\n\t\t\t\t\tabc[charNumber - 'a']++;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t\tfor (int j = 0; j < 26; j++) {\n\n\t\t\tSystem.out.println((char)('a' + j) + \" : \" + abc[j]);\n\n\t\t}\n\n\t\tclose();\n\n\t}",
"main",
"{\n\n\t\tint[] abc = new int[26];\n\t\tString input = \"\";\n\n\t\twhile (scanner.hasNext()) {\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 charNumber = input.charAt(i);\n\n\t\t\t\tif ('a' <= charNumber && charNumber <= 'z') {\n\n\t\t\t\t\tabc[charNumber - 'a']++;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t\tfor (int j = 0; j < 26; j++) {\n\n\t\t\tSystem.out.println((char)('a' + j) + \" : \" + abc[j]);\n\n\t\t}\n\n\t\tclose();\n\n\t}",
"int[] abc = new int[26];",
"abc",
"new int[26]",
"26",
"String input = \"\";",
"input",
"\"\"",
"while (scanner.hasNext()) {\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 charNumber = input.charAt(i);\n\n\t\t\t\tif ('a' <= charNumber && charNumber <= 'z') {\n\n\t\t\t\t\tabc[charNumber - 'a']++;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"scanner.hasNext()",
"scanner.hasNext",
"scanner",
"{\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 charNumber = input.charAt(i);\n\n\t\t\t\tif ('a' <= charNumber && charNumber <= 'z') {\n\n\t\t\t\t\tabc[charNumber - 'a']++;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"input = input().toLowerCase()",
"input",
"input().toLowerCase()",
"input().toLowerCase",
"input()",
"input",
"for (int i = 0; i < input.length(); i++) {\n\n\t\t\t\tchar charNumber = input.charAt(i);\n\n\t\t\t\tif ('a' <= charNumber && charNumber <= 'z') {\n\n\t\t\t\t\tabc[charNumber - 'a']++;\n\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\n\t\t\t\tchar charNumber = input.charAt(i);\n\n\t\t\t\tif ('a' <= charNumber && charNumber <= 'z') {\n\n\t\t\t\t\tabc[charNumber - 'a']++;\n\n\t\t\t\t}\n\t\t\t}",
"{\n\n\t\t\t\tchar charNumber = input.charAt(i);\n\n\t\t\t\tif ('a' <= charNumber && charNumber <= 'z') {\n\n\t\t\t\t\tabc[charNumber - 'a']++;\n\n\t\t\t\t}\n\t\t\t}",
"char charNumber = input.charAt(i);",
"charNumber",
"input.charAt(i)",
"input.charAt",
"input",
"i",
"if ('a' <= charNumber && charNumber <= 'z') {\n\n\t\t\t\t\tabc[charNumber - 'a']++;\n\n\t\t\t\t}",
"'a' <= charNumber && charNumber <= 'z'",
"'a' <= charNumber",
"'a'",
"charNumber",
"charNumber <= 'z'",
"charNumber",
"'z'",
"{\n\n\t\t\t\t\tabc[charNumber - 'a']++;\n\n\t\t\t\t}",
"abc[charNumber - 'a']++",
"abc[charNumber - 'a']",
"abc",
"charNumber - 'a'",
"charNumber",
"'a'",
"for (int j = 0; j < 26; j++) {\n\n\t\t\tSystem.out.println((char)('a' + j) + \" : \" + abc[j]);\n\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 26",
"j",
"26",
"j++",
"j++",
"j",
"{\n\n\t\t\tSystem.out.println((char)('a' + j) + \" : \" + abc[j]);\n\n\t\t}",
"{\n\n\t\t\tSystem.out.println((char)('a' + j) + \" : \" + abc[j]);\n\n\t\t}",
"System.out.println((char)('a' + j) + \" : \" + abc[j])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)('a' + j) + \" : \" + abc[j]",
"(char)('a' + j) + \" : \" + abc[j]",
"(char)('a' + j)",
"'a'",
"j",
"\" : \"",
"abc[j]",
"abc",
"j",
"close()",
"close",
"String[] args",
"args",
"public static String input() {\n\n\t\treturn scanner.nextLine();\n\n\t}",
"input",
"{\n\n\t\treturn scanner.nextLine();\n\n\t}",
"return scanner.nextLine();",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"public static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}",
"close",
"{\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}",
"if (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}",
"scanner != null",
"scanner",
"null",
"{\n\n\t\t\tscanner.close();\n\n\t\t}",
"scanner.close()",
"scanner.close",
"scanner",
"public class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tint[] abc = new int[26];\n\t\tString input = \"\";\n\n\t\twhile (scanner.hasNext()) {\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 charNumber = input.charAt(i);\n\n\t\t\t\tif ('a' <= charNumber && charNumber <= 'z') {\n\n\t\t\t\t\tabc[charNumber - 'a']++;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t\tfor (int j = 0; j < 26; j++) {\n\n\t\t\tSystem.out.println((char)('a' + j) + \" : \" + abc[j]);\n\n\t\t}\n\n\t\tclose();\n\n\t}\n\n\tpublic static String input() {\n\n\t\treturn scanner.nextLine();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tint[] abc = new int[26];\n\t\tString input = \"\";\n\n\t\twhile (scanner.hasNext()) {\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 charNumber = input.charAt(i);\n\n\t\t\t\tif ('a' <= charNumber && charNumber <= 'z') {\n\n\t\t\t\t\tabc[charNumber - 'a']++;\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t\tfor (int j = 0; j < 26; j++) {\n\n\t\t\tSystem.out.println((char)('a' + j) + \" : \" + abc[j]);\n\n\t\t}\n\n\t\tclose();\n\n\t}\n\n\tpublic static String input() {\n\n\t\treturn scanner.nextLine();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static Scanner scanner = new Scanner(System.in);
public static void main(String[] args) {
int[] abc = new int[26];
String input = "";
while (scanner.hasNext()) {
input = input().toLowerCase();
for (int i = 0; i < input.length(); i++) {
char charNumber = input.charAt(i);
if ('a' <= charNumber && charNumber <= 'z') {
abc[charNumber - 'a']++;
}
}
}
for (int j = 0; j < 26; j++) {
System.out.println((char)('a' + j) + " : " + abc[j]);
}
close();
}
public static String input() {
return scanner.nextLine();
}
public static void close() {
if (scanner != null) {
scanner.close();
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
13,
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,
41,
13,
4,
18,
13,
13,
0,
13,
4,
18,
13,
13,
14,
4,
18,
13,
13,
30,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
28,
13,
4,
18,
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
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
129,
23
],
[
129,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
26,
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
],
[
46,
49
],
[
46,
50
],
[
26,
51
],
[
51,
52
],
[
51,
53
],
[
26,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
55,
61
],
[
54,
62
],
[
62,
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
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
77,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
77,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
90,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
96,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
100,
105
],
[
26,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
106,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
119,
119
],
[
119,
120
],
[
119,
121
],
[
119,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
24,
126
],
[
126,
127
],
[
0,
128
],
[
128,
129
],
[
128,
130
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.nio.channels.NonWritableChannelException;\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n \n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n // create a to z map\n Map<Character, Integer> alphamap = new HashMap<Character, Integer>();\n for(int i='a'; i<='z'; i++) {\n alphamap.put((char) i, 0);\n }\n \n String line = \"\";\n while ( (line = br.readLine()) != null ) {\n for (int i=0; i<line.length(); i++) {\n char c = line.charAt(i);\n c = Character.toLowerCase(c);\n if (alphamap.containsKey(c)) {\n alphamap.replace(c, alphamap.get(c) + 1);\n }\n }\n }\n\n\n \n\n \n for( Character c : alphamap.keySet()) {\n System.out.println(c + \" : \" + alphamap.get(c));\n }\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",
"import java.nio.channels.NonWritableChannelException;",
"NonWritableChannelException",
"java.nio.channels",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.Map;",
"Map",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) throws Exception {\n \n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n // create a to z map\n Map<Character, Integer> alphamap = new HashMap<Character, Integer>();\n for(int i='a'; i<='z'; i++) {\n alphamap.put((char) i, 0);\n }\n \n String line = \"\";\n while ( (line = br.readLine()) != null ) {\n for (int i=0; i<line.length(); i++) {\n char c = line.charAt(i);\n c = Character.toLowerCase(c);\n if (alphamap.containsKey(c)) {\n alphamap.replace(c, alphamap.get(c) + 1);\n }\n }\n }\n\n\n \n\n \n for( Character c : alphamap.keySet()) {\n System.out.println(c + \" : \" + alphamap.get(c));\n }\n \n \n }\n\n\n}",
"Main",
"public static void main(String[] args) throws Exception {\n \n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n // create a to z map\n Map<Character, Integer> alphamap = new HashMap<Character, Integer>();\n for(int i='a'; i<='z'; i++) {\n alphamap.put((char) i, 0);\n }\n \n String line = \"\";\n while ( (line = br.readLine()) != null ) {\n for (int i=0; i<line.length(); i++) {\n char c = line.charAt(i);\n c = Character.toLowerCase(c);\n if (alphamap.containsKey(c)) {\n alphamap.replace(c, alphamap.get(c) + 1);\n }\n }\n }\n\n\n \n\n \n for( Character c : alphamap.keySet()) {\n System.out.println(c + \" : \" + alphamap.get(c));\n }\n \n \n }",
"main",
"{\n \n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n // create a to z map\n Map<Character, Integer> alphamap = new HashMap<Character, Integer>();\n for(int i='a'; i<='z'; i++) {\n alphamap.put((char) i, 0);\n }\n \n String line = \"\";\n while ( (line = br.readLine()) != null ) {\n for (int i=0; i<line.length(); i++) {\n char c = line.charAt(i);\n c = Character.toLowerCase(c);\n if (alphamap.containsKey(c)) {\n alphamap.replace(c, alphamap.get(c) + 1);\n }\n }\n }\n\n\n \n\n \n for( Character c : alphamap.keySet()) {\n System.out.println(c + \" : \" + alphamap.get(c));\n }\n \n \n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"Map<Character, Integer> alphamap = new HashMap<Character, Integer>();",
"alphamap",
"new HashMap<Character, Integer>()",
"for(int i='a'; i<='z'; i++) {\n alphamap.put((char) i, 0);\n }",
"int i='a';",
"int i='a';",
"i",
"'a'",
"i<='z'",
"i",
"'z'",
"i++",
"i++",
"i",
"{\n alphamap.put((char) i, 0);\n }",
"{\n alphamap.put((char) i, 0);\n }",
"alphamap.put((char) i, 0)",
"alphamap.put",
"alphamap",
"(char) i",
"0",
"String line = \"\";",
"line",
"\"\"",
"while ( (line = br.readLine()) != null ) {\n for (int i=0; i<line.length(); i++) {\n char c = line.charAt(i);\n c = Character.toLowerCase(c);\n if (alphamap.containsKey(c)) {\n alphamap.replace(c, alphamap.get(c) + 1);\n }\n }\n }",
"(line = br.readLine()) != null",
"(line = br.readLine())",
"line",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n for (int i=0; i<line.length(); i++) {\n char c = line.charAt(i);\n c = Character.toLowerCase(c);\n if (alphamap.containsKey(c)) {\n alphamap.replace(c, alphamap.get(c) + 1);\n }\n }\n }",
"for (int i=0; i<line.length(); i++) {\n char c = line.charAt(i);\n c = Character.toLowerCase(c);\n if (alphamap.containsKey(c)) {\n alphamap.replace(c, alphamap.get(c) + 1);\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<line.length()",
"i",
"line.length()",
"line.length",
"line",
"i++",
"i++",
"i",
"{\n char c = line.charAt(i);\n c = Character.toLowerCase(c);\n if (alphamap.containsKey(c)) {\n alphamap.replace(c, alphamap.get(c) + 1);\n }\n }",
"{\n char c = line.charAt(i);\n c = Character.toLowerCase(c);\n if (alphamap.containsKey(c)) {\n alphamap.replace(c, alphamap.get(c) + 1);\n }\n }",
"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",
"if (alphamap.containsKey(c)) {\n alphamap.replace(c, alphamap.get(c) + 1);\n }",
"alphamap.containsKey(c)",
"alphamap.containsKey",
"alphamap",
"c",
"{\n alphamap.replace(c, alphamap.get(c) + 1);\n }",
"alphamap.replace(c, alphamap.get(c) + 1)",
"alphamap.replace",
"alphamap",
"c",
"alphamap.get(c) + 1",
"alphamap.get(c)",
"alphamap.get",
"alphamap",
"c",
"1",
"for( Character c : alphamap.keySet()) {\n System.out.println(c + \" : \" + alphamap.get(c));\n }",
"Character c",
"alphamap.keySet()",
"alphamap.keySet",
"alphamap",
"{\n System.out.println(c + \" : \" + alphamap.get(c));\n }",
"{\n System.out.println(c + \" : \" + alphamap.get(c));\n }",
"System.out.println(c + \" : \" + alphamap.get(c))",
"System.out.println",
"System.out",
"System",
"System.out",
"c + \" : \" + alphamap.get(c)",
"c + \" : \" + alphamap.get(c)",
"c",
"\" : \"",
"alphamap.get(c)",
"alphamap.get",
"alphamap",
"c",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n \n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n // create a to z map\n Map<Character, Integer> alphamap = new HashMap<Character, Integer>();\n for(int i='a'; i<='z'; i++) {\n alphamap.put((char) i, 0);\n }\n \n String line = \"\";\n while ( (line = br.readLine()) != null ) {\n for (int i=0; i<line.length(); i++) {\n char c = line.charAt(i);\n c = Character.toLowerCase(c);\n if (alphamap.containsKey(c)) {\n alphamap.replace(c, alphamap.get(c) + 1);\n }\n }\n }\n\n\n \n\n \n for( Character c : alphamap.keySet()) {\n System.out.println(c + \" : \" + alphamap.get(c));\n }\n \n \n }\n\n\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n \n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n // create a to z map\n Map<Character, Integer> alphamap = new HashMap<Character, Integer>();\n for(int i='a'; i<='z'; i++) {\n alphamap.put((char) i, 0);\n }\n \n String line = \"\";\n while ( (line = br.readLine()) != null ) {\n for (int i=0; i<line.length(); i++) {\n char c = line.charAt(i);\n c = Character.toLowerCase(c);\n if (alphamap.containsKey(c)) {\n alphamap.replace(c, alphamap.get(c) + 1);\n }\n }\n }\n\n\n \n\n \n for( Character c : alphamap.keySet()) {\n System.out.println(c + \" : \" + alphamap.get(c));\n }\n \n \n }\n\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.channels.NonWritableChannelException;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
// create a to z map
Map<Character, Integer> alphamap = new HashMap<Character, Integer>();
for(int i='a'; i<='z'; i++) {
alphamap.put((char) i, 0);
}
String line = "";
while ( (line = br.readLine()) != null ) {
for (int i=0; i<line.length(); i++) {
char c = line.charAt(i);
c = Character.toLowerCase(c);
if (alphamap.containsKey(c)) {
alphamap.replace(c, alphamap.get(c) + 1);
}
}
}
for( Character c : alphamap.keySet()) {
System.out.println(c + " : " + alphamap.get(c));
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
17,
41,
13,
20,
42,
4,
18,
13,
30,
38,
5,
13,
30,
30,
41,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
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,
30,
11,
1,
0,
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
],
[
122,
8
],
[
122,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
19
],
[
19,
20
],
[
19,
21
],
[
11,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
22,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
49,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
56,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
65,
71
],
[
56,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
81,
87
],
[
72,
88
],
[
11,
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
],
[
9,
119
],
[
119,
120
],
[
0,
121
],
[
121,
122
],
[
121,
123
]
]
| [
"import java.io.*;\nimport java.util.Scanner;\npublic class Main{\n\tpublic static void main(String args[]){\n int i=0;\n int[] answer = new int[26];\n \n Scanner scan = new Scanner(System.in);\n while(scan.hasNext()){\n try{\n String line = scan.nextLine();\n for(i = 0;i < 1200;i++){\n int n = line.charAt(i);\n if(n >= 97 && n <= 122){\n answer[n - 97] += 1;\n }else if (n >= 65 && n <= 90){\n answer[n - 65] += 1;\n }else{\n\n }\n }\n \n\t\t}catch(Exception e){\n }\n }\n for(i = 0;i<26;i++){\n char c= (char) ('a' + i);\n System.out.println(c + \" : \"+answer[i]);\n }\n \n\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String args[]){\n int i=0;\n int[] answer = new int[26];\n \n Scanner scan = new Scanner(System.in);\n while(scan.hasNext()){\n try{\n String line = scan.nextLine();\n for(i = 0;i < 1200;i++){\n int n = line.charAt(i);\n if(n >= 97 && n <= 122){\n answer[n - 97] += 1;\n }else if (n >= 65 && n <= 90){\n answer[n - 65] += 1;\n }else{\n\n }\n }\n \n\t\t}catch(Exception e){\n }\n }\n for(i = 0;i<26;i++){\n char c= (char) ('a' + i);\n System.out.println(c + \" : \"+answer[i]);\n }\n \n\n }\n}",
"Main",
"public static void main(String args[]){\n int i=0;\n int[] answer = new int[26];\n \n Scanner scan = new Scanner(System.in);\n while(scan.hasNext()){\n try{\n String line = scan.nextLine();\n for(i = 0;i < 1200;i++){\n int n = line.charAt(i);\n if(n >= 97 && n <= 122){\n answer[n - 97] += 1;\n }else if (n >= 65 && n <= 90){\n answer[n - 65] += 1;\n }else{\n\n }\n }\n \n\t\t}catch(Exception e){\n }\n }\n for(i = 0;i<26;i++){\n char c= (char) ('a' + i);\n System.out.println(c + \" : \"+answer[i]);\n }\n \n\n }",
"main",
"{\n int i=0;\n int[] answer = new int[26];\n \n Scanner scan = new Scanner(System.in);\n while(scan.hasNext()){\n try{\n String line = scan.nextLine();\n for(i = 0;i < 1200;i++){\n int n = line.charAt(i);\n if(n >= 97 && n <= 122){\n answer[n - 97] += 1;\n }else if (n >= 65 && n <= 90){\n answer[n - 65] += 1;\n }else{\n\n }\n }\n \n\t\t}catch(Exception e){\n }\n }\n for(i = 0;i<26;i++){\n char c= (char) ('a' + i);\n System.out.println(c + \" : \"+answer[i]);\n }\n \n\n }",
"int i=0;",
"i",
"0",
"int[] answer = new int[26];",
"answer",
"new int[26]",
"26",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"while(scan.hasNext()){\n try{\n String line = scan.nextLine();\n for(i = 0;i < 1200;i++){\n int n = line.charAt(i);\n if(n >= 97 && n <= 122){\n answer[n - 97] += 1;\n }else if (n >= 65 && n <= 90){\n answer[n - 65] += 1;\n }else{\n\n }\n }\n \n\t\t}catch(Exception e){\n }\n }",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n try{\n String line = scan.nextLine();\n for(i = 0;i < 1200;i++){\n int n = line.charAt(i);\n if(n >= 97 && n <= 122){\n answer[n - 97] += 1;\n }else if (n >= 65 && n <= 90){\n answer[n - 65] += 1;\n }else{\n\n }\n }\n \n\t\t}catch(Exception e){\n }\n }",
"try{\n String line = scan.nextLine();\n for(i = 0;i < 1200;i++){\n int n = line.charAt(i);\n if(n >= 97 && n <= 122){\n answer[n - 97] += 1;\n }else if (n >= 65 && n <= 90){\n answer[n - 65] += 1;\n }else{\n\n }\n }\n \n\t\t}catch(Exception e){\n }",
"catch(Exception e){\n }",
"Exception e",
"{\n }",
"{\n String line = scan.nextLine();\n for(i = 0;i < 1200;i++){\n int n = line.charAt(i);\n if(n >= 97 && n <= 122){\n answer[n - 97] += 1;\n }else if (n >= 65 && n <= 90){\n answer[n - 65] += 1;\n }else{\n\n }\n }\n \n\t\t}",
"String line = scan.nextLine();",
"line",
"scan.nextLine()",
"scan.nextLine",
"scan",
"for(i = 0;i < 1200;i++){\n int n = line.charAt(i);\n if(n >= 97 && n <= 122){\n answer[n - 97] += 1;\n }else if (n >= 65 && n <= 90){\n answer[n - 65] += 1;\n }else{\n\n }\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < 1200",
"i",
"1200",
"i++",
"i++",
"i",
"{\n int n = line.charAt(i);\n if(n >= 97 && n <= 122){\n answer[n - 97] += 1;\n }else if (n >= 65 && n <= 90){\n answer[n - 65] += 1;\n }else{\n\n }\n }",
"{\n int n = line.charAt(i);\n if(n >= 97 && n <= 122){\n answer[n - 97] += 1;\n }else if (n >= 65 && n <= 90){\n answer[n - 65] += 1;\n }else{\n\n }\n }",
"int n = line.charAt(i);",
"n",
"line.charAt(i)",
"line.charAt",
"line",
"i",
"if(n >= 97 && n <= 122){\n answer[n - 97] += 1;\n }else if (n >= 65 && n <= 90){\n answer[n - 65] += 1;\n }else{\n\n }",
"n >= 97 && n <= 122",
"n >= 97",
"n",
"97",
"n <= 122",
"n",
"122",
"{\n answer[n - 97] += 1;\n }",
"answer[n - 97] += 1",
"answer[n - 97]",
"answer",
"n - 97",
"n",
"97",
"1",
"if (n >= 65 && n <= 90){\n answer[n - 65] += 1;\n }else{\n\n }",
"n >= 65 && n <= 90",
"n >= 65",
"n",
"65",
"n <= 90",
"n",
"90",
"{\n answer[n - 65] += 1;\n }",
"answer[n - 65] += 1",
"answer[n - 65]",
"answer",
"n - 65",
"n",
"65",
"1",
"{\n\n }",
"for(i = 0;i<26;i++){\n char c= (char) ('a' + i);\n System.out.println(c + \" : \"+answer[i]);\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n char c= (char) ('a' + i);\n System.out.println(c + \" : \"+answer[i]);\n }",
"{\n char c= (char) ('a' + i);\n System.out.println(c + \" : \"+answer[i]);\n }",
"char c= (char) ('a' + i);",
"c",
"(char) ('a' + i)",
"'a'",
"i",
"System.out.println(c + \" : \"+answer[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c + \" : \"+answer[i]",
"c + \" : \"+answer[i]",
"c",
"\" : \"",
"answer[i]",
"answer",
"i",
"String args[]",
"args",
"public class Main{\n\tpublic static void main(String args[]){\n int i=0;\n int[] answer = new int[26];\n \n Scanner scan = new Scanner(System.in);\n while(scan.hasNext()){\n try{\n String line = scan.nextLine();\n for(i = 0;i < 1200;i++){\n int n = line.charAt(i);\n if(n >= 97 && n <= 122){\n answer[n - 97] += 1;\n }else if (n >= 65 && n <= 90){\n answer[n - 65] += 1;\n }else{\n\n }\n }\n \n\t\t}catch(Exception e){\n }\n }\n for(i = 0;i<26;i++){\n char c= (char) ('a' + i);\n System.out.println(c + \" : \"+answer[i]);\n }\n \n\n }\n}",
"public class Main{\n\tpublic static void main(String args[]){\n int i=0;\n int[] answer = new int[26];\n \n Scanner scan = new Scanner(System.in);\n while(scan.hasNext()){\n try{\n String line = scan.nextLine();\n for(i = 0;i < 1200;i++){\n int n = line.charAt(i);\n if(n >= 97 && n <= 122){\n answer[n - 97] += 1;\n }else if (n >= 65 && n <= 90){\n answer[n - 65] += 1;\n }else{\n\n }\n }\n \n\t\t}catch(Exception e){\n }\n }\n for(i = 0;i<26;i++){\n char c= (char) ('a' + i);\n System.out.println(c + \" : \"+answer[i]);\n }\n \n\n }\n}",
"Main"
]
| import java.io.*;
import java.util.Scanner;
public class Main{
public static void main(String args[]){
int i=0;
int[] answer = new int[26];
Scanner scan = new Scanner(System.in);
while(scan.hasNext()){
try{
String line = scan.nextLine();
for(i = 0;i < 1200;i++){
int n = line.charAt(i);
if(n >= 97 && n <= 122){
answer[n - 97] += 1;
}else if (n >= 65 && n <= 90){
answer[n - 65] += 1;
}else{
}
}
}catch(Exception e){
}
}
for(i = 0;i<26;i++){
char c= (char) ('a' + i);
System.out.println(c + " : "+answer[i]);
}
}
}
|
[
7,
15,
13,
17,
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,
20,
17,
41,
13,
20,
17,
41,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
13,
17,
0,
13,
20,
4,
18,
13,
4,
18,
13,
13,
2,
13,
17,
17,
0,
18,
13,
13,
4,
18,
13,
13,
2,
13,
17,
42,
2,
2,
0,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
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,
2,
13,
17,
30,
4,
18,
13,
4,
18,
13,
13,
2,
13,
17,
2,
17,
4,
18,
13,
4,
18,
13,
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,
18,
13,
13,
17,
4,
18,
13,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
189,
14
],
[
189,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
19,
25
],
[
25,
26
],
[
25,
27
],
[
19,
28
],
[
28,
29
],
[
28,
30
],
[
19,
32
],
[
32,
33
],
[
32,
34
],
[
19,
36
],
[
36,
37
],
[
19,
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
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
60,
62
],
[
52,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
63,
73
],
[
52,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
78,
82
],
[
82,
83
],
[
82,
84
],
[
19,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
87,
93
],
[
86,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
94,
98
],
[
85,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
99,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
105,
115
],
[
115,
116
],
[
116,
117
],
[
105,
118
],
[
119,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
121,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
124,
128
],
[
128,
129
],
[
128,
130
],
[
120,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
132,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
135,
139
],
[
139,
140
],
[
139,
141
],
[
132,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
144,
147
],
[
147,
148
],
[
148,
149
],
[
147,
150
],
[
147,
151
],
[
151,
152
],
[
151,
153
],
[
19,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
161,
163
],
[
154,
164
],
[
164,
165
],
[
165,
166
],
[
154,
167
],
[
168,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
169,
174
],
[
175,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
175,
180
],
[
180,
181
],
[
181,
182
],
[
180,
183
],
[
183,
184
],
[
183,
185
],
[
15,
186
],
[
186,
187
],
[
0,
188
],
[
188,
189
],
[
188,
190
]
]
| [
"import java.io.BufferedReader;\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 Exception {\n // TODO ?????????????????????????????????????????????\n \n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n Map<String,Integer> map=new HashMap<String,Integer>();\n byte[] a=new byte[26];\n \tString[] str=new String[26];\n \tString resultString;\n \tfor(int i=0;i<a.length;i++){\n \t\ta[i]=(byte) (i+97);\n \t\tresultString = new String(a, \"US-ASCII\");\n \t\tmap.put(resultString.substring(i, i+1),0);\n \t\tstr[i]=resultString.substring(i, i+1);\n \t}\n while ((line = br.readLine()) != null&&line.length()!=0) {\n \tString s=line.toLowerCase();\n \tfor(int i=0;i<s.length();i++){\n \t\tif(map.containsKey(s.substring(i, i+1))){\n \t\t\tmap.put(s.substring(i, i+1), 1+map.get(s.substring(i, i+1)));\n \t\t}\n \t}\n \t\n }\n for(int i=0;i<str.length;i++){\n \t\tSystem.out.println(str[i]+\" : \"+map.get(str[i]));\n \t}\n }\n }\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"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 Exception {\n // TODO ?????????????????????????????????????????????\n \n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n Map<String,Integer> map=new HashMap<String,Integer>();\n byte[] a=new byte[26];\n \tString[] str=new String[26];\n \tString resultString;\n \tfor(int i=0;i<a.length;i++){\n \t\ta[i]=(byte) (i+97);\n \t\tresultString = new String(a, \"US-ASCII\");\n \t\tmap.put(resultString.substring(i, i+1),0);\n \t\tstr[i]=resultString.substring(i, i+1);\n \t}\n while ((line = br.readLine()) != null&&line.length()!=0) {\n \tString s=line.toLowerCase();\n \tfor(int i=0;i<s.length();i++){\n \t\tif(map.containsKey(s.substring(i, i+1))){\n \t\t\tmap.put(s.substring(i, i+1), 1+map.get(s.substring(i, i+1)));\n \t\t}\n \t}\n \t\n }\n for(int i=0;i<str.length;i++){\n \t\tSystem.out.println(str[i]+\" : \"+map.get(str[i]));\n \t}\n }\n }\n\n}",
"Main",
"public static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n Map<String,Integer> map=new HashMap<String,Integer>();\n byte[] a=new byte[26];\n \tString[] str=new String[26];\n \tString resultString;\n \tfor(int i=0;i<a.length;i++){\n \t\ta[i]=(byte) (i+97);\n \t\tresultString = new String(a, \"US-ASCII\");\n \t\tmap.put(resultString.substring(i, i+1),0);\n \t\tstr[i]=resultString.substring(i, i+1);\n \t}\n while ((line = br.readLine()) != null&&line.length()!=0) {\n \tString s=line.toLowerCase();\n \tfor(int i=0;i<s.length();i++){\n \t\tif(map.containsKey(s.substring(i, i+1))){\n \t\t\tmap.put(s.substring(i, i+1), 1+map.get(s.substring(i, i+1)));\n \t\t}\n \t}\n \t\n }\n for(int i=0;i<str.length;i++){\n \t\tSystem.out.println(str[i]+\" : \"+map.get(str[i]));\n \t}\n }\n }",
"main",
"{\n // TODO ?????????????????????????????????????????????\n \n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n Map<String,Integer> map=new HashMap<String,Integer>();\n byte[] a=new byte[26];\n \tString[] str=new String[26];\n \tString resultString;\n \tfor(int i=0;i<a.length;i++){\n \t\ta[i]=(byte) (i+97);\n \t\tresultString = new String(a, \"US-ASCII\");\n \t\tmap.put(resultString.substring(i, i+1),0);\n \t\tstr[i]=resultString.substring(i, i+1);\n \t}\n while ((line = br.readLine()) != null&&line.length()!=0) {\n \tString s=line.toLowerCase();\n \tfor(int i=0;i<s.length();i++){\n \t\tif(map.containsKey(s.substring(i, i+1))){\n \t\t\tmap.put(s.substring(i, i+1), 1+map.get(s.substring(i, i+1)));\n \t\t}\n \t}\n \t\n }\n for(int i=0;i<str.length;i++){\n \t\tSystem.out.println(str[i]+\" : \"+map.get(str[i]));\n \t}\n }\n }",
"try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n Map<String,Integer> map=new HashMap<String,Integer>();\n byte[] a=new byte[26];\n \tString[] str=new String[26];\n \tString resultString;\n \tfor(int i=0;i<a.length;i++){\n \t\ta[i]=(byte) (i+97);\n \t\tresultString = new String(a, \"US-ASCII\");\n \t\tmap.put(resultString.substring(i, i+1),0);\n \t\tstr[i]=resultString.substring(i, i+1);\n \t}\n while ((line = br.readLine()) != null&&line.length()!=0) {\n \tString s=line.toLowerCase();\n \tfor(int i=0;i<s.length();i++){\n \t\tif(map.containsKey(s.substring(i, i+1))){\n \t\t\tmap.put(s.substring(i, i+1), 1+map.get(s.substring(i, i+1)));\n \t\t}\n \t}\n \t\n }\n for(int i=0;i<str.length;i++){\n \t\tSystem.out.println(str[i]+\" : \"+map.get(str[i]));\n \t}\n }",
"{\n String line;\n Map<String,Integer> map=new HashMap<String,Integer>();\n byte[] a=new byte[26];\n \tString[] str=new String[26];\n \tString resultString;\n \tfor(int i=0;i<a.length;i++){\n \t\ta[i]=(byte) (i+97);\n \t\tresultString = new String(a, \"US-ASCII\");\n \t\tmap.put(resultString.substring(i, i+1),0);\n \t\tstr[i]=resultString.substring(i, i+1);\n \t}\n while ((line = br.readLine()) != null&&line.length()!=0) {\n \tString s=line.toLowerCase();\n \tfor(int i=0;i<s.length();i++){\n \t\tif(map.containsKey(s.substring(i, i+1))){\n \t\t\tmap.put(s.substring(i, i+1), 1+map.get(s.substring(i, i+1)));\n \t\t}\n \t}\n \t\n }\n for(int i=0;i<str.length;i++){\n \t\tSystem.out.println(str[i]+\" : \"+map.get(str[i]));\n \t}\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",
"Map<String,Integer> map=new HashMap<String,Integer>();",
"map",
"new HashMap<String,Integer>()",
"byte[] a=new byte[26];",
"a",
"new byte[26]",
"26",
"String[] str=new String[26];",
"str",
"new String[26]",
"26",
"String resultString;",
"resultString",
"for(int i=0;i<a.length;i++){\n \t\ta[i]=(byte) (i+97);\n \t\tresultString = new String(a, \"US-ASCII\");\n \t\tmap.put(resultString.substring(i, i+1),0);\n \t\tstr[i]=resultString.substring(i, i+1);\n \t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"{\n \t\ta[i]=(byte) (i+97);\n \t\tresultString = new String(a, \"US-ASCII\");\n \t\tmap.put(resultString.substring(i, i+1),0);\n \t\tstr[i]=resultString.substring(i, i+1);\n \t}",
"{\n \t\ta[i]=(byte) (i+97);\n \t\tresultString = new String(a, \"US-ASCII\");\n \t\tmap.put(resultString.substring(i, i+1),0);\n \t\tstr[i]=resultString.substring(i, i+1);\n \t}",
"a[i]=(byte) (i+97)",
"a[i]",
"a",
"i",
"(byte) (i+97)",
"i",
"97",
"resultString = new String(a, \"US-ASCII\")",
"resultString",
"new String(a, \"US-ASCII\")",
"map.put(resultString.substring(i, i+1),0)",
"map.put",
"map",
"resultString.substring(i, i+1)",
"resultString.substring",
"resultString",
"i",
"i+1",
"i",
"1",
"0",
"str[i]=resultString.substring(i, i+1)",
"str[i]",
"str",
"i",
"resultString.substring(i, i+1)",
"resultString.substring",
"resultString",
"i",
"i+1",
"i",
"1",
"while ((line = br.readLine()) != null&&line.length()!=0) {\n \tString s=line.toLowerCase();\n \tfor(int i=0;i<s.length();i++){\n \t\tif(map.containsKey(s.substring(i, i+1))){\n \t\t\tmap.put(s.substring(i, i+1), 1+map.get(s.substring(i, i+1)));\n \t\t}\n \t}\n \t\n }",
"(line = br.readLine()) != null&&line.length()!=0",
"(line = br.readLine()) != null",
"(line = br.readLine())",
"line",
"br.readLine()",
"br.readLine",
"br",
"null",
"line.length()!=0",
"line.length()",
"line.length",
"line",
"0",
"{\n \tString s=line.toLowerCase();\n \tfor(int i=0;i<s.length();i++){\n \t\tif(map.containsKey(s.substring(i, i+1))){\n \t\t\tmap.put(s.substring(i, i+1), 1+map.get(s.substring(i, i+1)));\n \t\t}\n \t}\n \t\n }",
"String s=line.toLowerCase();",
"s",
"line.toLowerCase()",
"line.toLowerCase",
"line",
"for(int i=0;i<s.length();i++){\n \t\tif(map.containsKey(s.substring(i, i+1))){\n \t\t\tmap.put(s.substring(i, i+1), 1+map.get(s.substring(i, i+1)));\n \t\t}\n \t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n \t\tif(map.containsKey(s.substring(i, i+1))){\n \t\t\tmap.put(s.substring(i, i+1), 1+map.get(s.substring(i, i+1)));\n \t\t}\n \t}",
"{\n \t\tif(map.containsKey(s.substring(i, i+1))){\n \t\t\tmap.put(s.substring(i, i+1), 1+map.get(s.substring(i, i+1)));\n \t\t}\n \t}",
"if(map.containsKey(s.substring(i, i+1))){\n \t\t\tmap.put(s.substring(i, i+1), 1+map.get(s.substring(i, i+1)));\n \t\t}",
"map.containsKey(s.substring(i, i+1))",
"map.containsKey",
"map",
"s.substring(i, i+1)",
"s.substring",
"s",
"i",
"i+1",
"i",
"1",
"{\n \t\t\tmap.put(s.substring(i, i+1), 1+map.get(s.substring(i, i+1)));\n \t\t}",
"map.put(s.substring(i, i+1), 1+map.get(s.substring(i, i+1)))",
"map.put",
"map",
"s.substring(i, i+1)",
"s.substring",
"s",
"i",
"i+1",
"i",
"1",
"1+map.get(s.substring(i, i+1))",
"1",
"map.get(s.substring(i, i+1))",
"map.get",
"map",
"s.substring(i, i+1)",
"s.substring",
"s",
"i",
"i+1",
"i",
"1",
"for(int i=0;i<str.length;i++){\n \t\tSystem.out.println(str[i]+\" : \"+map.get(str[i]));\n \t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<str.length",
"i",
"str.length",
"str",
"str.length",
"i++",
"i++",
"i",
"{\n \t\tSystem.out.println(str[i]+\" : \"+map.get(str[i]));\n \t}",
"{\n \t\tSystem.out.println(str[i]+\" : \"+map.get(str[i]));\n \t}",
"System.out.println(str[i]+\" : \"+map.get(str[i]))",
"System.out.println",
"System.out",
"System",
"System.out",
"str[i]+\" : \"+map.get(str[i])",
"str[i]+\" : \"+map.get(str[i])",
"str[i]",
"str",
"i",
"\" : \"",
"map.get(str[i])",
"map.get",
"map",
"str[i]",
"str",
"i",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n Map<String,Integer> map=new HashMap<String,Integer>();\n byte[] a=new byte[26];\n \tString[] str=new String[26];\n \tString resultString;\n \tfor(int i=0;i<a.length;i++){\n \t\ta[i]=(byte) (i+97);\n \t\tresultString = new String(a, \"US-ASCII\");\n \t\tmap.put(resultString.substring(i, i+1),0);\n \t\tstr[i]=resultString.substring(i, i+1);\n \t}\n while ((line = br.readLine()) != null&&line.length()!=0) {\n \tString s=line.toLowerCase();\n \tfor(int i=0;i<s.length();i++){\n \t\tif(map.containsKey(s.substring(i, i+1))){\n \t\t\tmap.put(s.substring(i, i+1), 1+map.get(s.substring(i, i+1)));\n \t\t}\n \t}\n \t\n }\n for(int i=0;i<str.length;i++){\n \t\tSystem.out.println(str[i]+\" : \"+map.get(str[i]));\n \t}\n }\n }\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n Map<String,Integer> map=new HashMap<String,Integer>();\n byte[] a=new byte[26];\n \tString[] str=new String[26];\n \tString resultString;\n \tfor(int i=0;i<a.length;i++){\n \t\ta[i]=(byte) (i+97);\n \t\tresultString = new String(a, \"US-ASCII\");\n \t\tmap.put(resultString.substring(i, i+1),0);\n \t\tstr[i]=resultString.substring(i, i+1);\n \t}\n while ((line = br.readLine()) != null&&line.length()!=0) {\n \tString s=line.toLowerCase();\n \tfor(int i=0;i<s.length();i++){\n \t\tif(map.containsKey(s.substring(i, i+1))){\n \t\t\tmap.put(s.substring(i, i+1), 1+map.get(s.substring(i, i+1)));\n \t\t}\n \t}\n \t\n }\n for(int i=0;i<str.length;i++){\n \t\tSystem.out.println(str[i]+\" : \"+map.get(str[i]));\n \t}\n }\n }\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
public class Main {
public static void main(String[] args) throws Exception {
// TODO ?????????????????????????????????????????????
try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
String line;
Map<String,Integer> map=new HashMap<String,Integer>();
byte[] a=new byte[26];
String[] str=new String[26];
String resultString;
for(int i=0;i<a.length;i++){
a[i]=(byte) (i+97);
resultString = new String(a, "US-ASCII");
map.put(resultString.substring(i, i+1),0);
str[i]=resultString.substring(i, i+1);
}
while ((line = br.readLine()) != null&&line.length()!=0) {
String s=line.toLowerCase();
for(int i=0;i<s.length();i++){
if(map.containsKey(s.substring(i, i+1))){
map.put(s.substring(i, i+1), 1+map.get(s.substring(i, i+1)));
}
}
}
for(int i=0;i<str.length;i++){
System.out.println(str[i]+" : "+map.get(str[i]));
}
}
}
} |
[
7,
15,
13,
17,
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,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
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,
2,
2,
2,
17,
13,
17,
18,
13,
13,
4,
18,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
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
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
23,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
39,
49
],
[
49,
50
],
[
50,
51
],
[
39,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
54,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
11,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
74,
82
],
[
82,
83
],
[
83,
84
],
[
74,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
93,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
93,
98
],
[
98,
99
],
[
98,
100
],
[
11,
101
],
[
101,
102
],
[
102,
103
],
[
9,
104
],
[
104,
105
]
]
| [
"import java.util.*;\nimport java.io.*;\n \nclass Main {\n public static void main(String[] args) throws IOException{\n Scanner br = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n \n int[] alp = new int[26];\n \n while (br.hasNext()) {\n String line = br.nextLine();\n line = line.toLowerCase();\n char[] c = line.toCharArray();\n for (int i=0; i<c.length; i++) {\n if (c[i] >= 'a' && c[i] <= 'z')\n alp[c[i]-'a']++;\n }\n }\n \n for (int i=0; i<26; i++) {\n System.out.println((char)('a'+i)+\" : \"+alp[i]);\n }\n \n br.close();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main {\n public static void main(String[] args) throws IOException{\n Scanner br = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n \n int[] alp = new int[26];\n \n while (br.hasNext()) {\n String line = br.nextLine();\n line = line.toLowerCase();\n char[] c = line.toCharArray();\n for (int i=0; i<c.length; i++) {\n if (c[i] >= 'a' && c[i] <= 'z')\n alp[c[i]-'a']++;\n }\n }\n \n for (int i=0; i<26; i++) {\n System.out.println((char)('a'+i)+\" : \"+alp[i]);\n }\n \n br.close();\n }\n}",
"Main",
"public static void main(String[] args) throws IOException{\n Scanner br = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n \n int[] alp = new int[26];\n \n while (br.hasNext()) {\n String line = br.nextLine();\n line = line.toLowerCase();\n char[] c = line.toCharArray();\n for (int i=0; i<c.length; i++) {\n if (c[i] >= 'a' && c[i] <= 'z')\n alp[c[i]-'a']++;\n }\n }\n \n for (int i=0; i<26; i++) {\n System.out.println((char)('a'+i)+\" : \"+alp[i]);\n }\n \n br.close();\n }",
"main",
"{\n Scanner br = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n \n int[] alp = new int[26];\n \n while (br.hasNext()) {\n String line = br.nextLine();\n line = line.toLowerCase();\n char[] c = line.toCharArray();\n for (int i=0; i<c.length; i++) {\n if (c[i] >= 'a' && c[i] <= 'z')\n alp[c[i]-'a']++;\n }\n }\n \n for (int i=0; i<26; i++) {\n System.out.println((char)('a'+i)+\" : \"+alp[i]);\n }\n \n br.close();\n }",
"Scanner br = new Scanner(new BufferedReader(new InputStreamReader(System.in)));",
"br",
"new Scanner(new BufferedReader(new InputStreamReader(System.in)))",
"int[] alp = new int[26];",
"alp",
"new int[26]",
"26",
"while (br.hasNext()) {\n String line = br.nextLine();\n line = line.toLowerCase();\n char[] c = line.toCharArray();\n for (int i=0; i<c.length; i++) {\n if (c[i] >= 'a' && c[i] <= 'z')\n alp[c[i]-'a']++;\n }\n }",
"br.hasNext()",
"br.hasNext",
"br",
"{\n String line = br.nextLine();\n line = line.toLowerCase();\n char[] c = line.toCharArray();\n for (int i=0; i<c.length; i++) {\n if (c[i] >= 'a' && c[i] <= 'z')\n alp[c[i]-'a']++;\n }\n }",
"String line = br.nextLine();",
"line",
"br.nextLine()",
"br.nextLine",
"br",
"line = line.toLowerCase()",
"line",
"line.toLowerCase()",
"line.toLowerCase",
"line",
"char[] c = line.toCharArray();",
"c",
"line.toCharArray()",
"line.toCharArray",
"line",
"for (int i=0; i<c.length; i++) {\n if (c[i] >= 'a' && c[i] <= 'z')\n alp[c[i]-'a']++;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<c.length",
"i",
"c.length",
"c",
"c.length",
"i++",
"i++",
"i",
"{\n if (c[i] >= 'a' && c[i] <= 'z')\n alp[c[i]-'a']++;\n }",
"{\n if (c[i] >= 'a' && c[i] <= 'z')\n alp[c[i]-'a']++;\n }",
"if (c[i] >= 'a' && c[i] <= 'z')\n alp[c[i]-'a']++;",
"c[i] >= 'a' && c[i] <= 'z'",
"c[i] >= 'a'",
"c[i]",
"c",
"i",
"'a'",
"c[i] <= 'z'",
"c[i]",
"c",
"i",
"'z'",
"alp[c[i]-'a']++",
"alp[c[i]-'a']",
"alp",
"c[i]-'a'",
"c[i]",
"c",
"i",
"'a'",
"for (int i=0; i<26; i++) {\n System.out.println((char)('a'+i)+\" : \"+alp[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n System.out.println((char)('a'+i)+\" : \"+alp[i]);\n }",
"{\n System.out.println((char)('a'+i)+\" : \"+alp[i]);\n }",
"System.out.println((char)('a'+i)+\" : \"+alp[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)('a'+i)+\" : \"+alp[i]",
"(char)('a'+i)+\" : \"+alp[i]",
"(char)('a'+i)",
"'a'",
"i",
"\" : \"",
"alp[i]",
"alp",
"i",
"br.close()",
"br.close",
"br",
"String[] args",
"args"
]
| import java.util.*;
import java.io.*;
class Main {
public static void main(String[] args) throws IOException{
Scanner br = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
int[] alp = new int[26];
while (br.hasNext()) {
String line = br.nextLine();
line = line.toLowerCase();
char[] c = line.toCharArray();
for (int i=0; i<c.length; i++) {
if (c[i] >= 'a' && c[i] <= 'z')
alp[c[i]-'a']++;
}
}
for (int i=0; i<26; i++) {
System.out.println((char)('a'+i)+" : "+alp[i]);
}
br.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
20,
17,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
0,
13,
4,
18,
13,
42,
2,
13,
17,
30,
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,
9,
41,
13,
4,
18,
13,
13,
40,
18,
13,
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,
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
],
[
131,
5
],
[
131,
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
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
19,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
47,
57
],
[
57,
58
],
[
58,
59
],
[
47,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
64,
69
],
[
63,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
70,
75
],
[
62,
76
],
[
61,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
61,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
41,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
8,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
92,
102
],
[
102,
103
],
[
103,
104
],
[
92,
105
],
[
106,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
106,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
119,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
119,
124
],
[
119,
125
],
[
125,
126
],
[
125,
127
],
[
6,
128
],
[
128,
129
],
[
0,
130
],
[
130,
131
],
[
130,
132
]
]
| [
"import java.io.*;\n\npublic class Main {\n public static void main(String[] arg){\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String str = \"abcdefghijklmnopqrstuvwxyz\";\n int[] count = new int[1000];\n try{\n String x;\n x = reader.readLine();\n while(x != null){\n x = x.toLowerCase();\n for(int n =0; n < x.length() ; n++){\n if(x.charAt(n) == ' ' || x.charAt(n)=='.') continue;\n char z = x.charAt(n);\n count[ z ]++;\n }\n x = reader.readLine();\n }\n }catch(IOException e){\n System.out.println(e);\n }\n for(int i = 0 ; i<str.length(); i++){\n char y = str.charAt(i);\n System.out.println(str.charAt(i) +\" : \"+ count[y] );\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] arg){\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String str = \"abcdefghijklmnopqrstuvwxyz\";\n int[] count = new int[1000];\n try{\n String x;\n x = reader.readLine();\n while(x != null){\n x = x.toLowerCase();\n for(int n =0; n < x.length() ; n++){\n if(x.charAt(n) == ' ' || x.charAt(n)=='.') continue;\n char z = x.charAt(n);\n count[ z ]++;\n }\n x = reader.readLine();\n }\n }catch(IOException e){\n System.out.println(e);\n }\n for(int i = 0 ; i<str.length(); i++){\n char y = str.charAt(i);\n System.out.println(str.charAt(i) +\" : \"+ count[y] );\n }\n }\n}",
"Main",
"public static void main(String[] arg){\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String str = \"abcdefghijklmnopqrstuvwxyz\";\n int[] count = new int[1000];\n try{\n String x;\n x = reader.readLine();\n while(x != null){\n x = x.toLowerCase();\n for(int n =0; n < x.length() ; n++){\n if(x.charAt(n) == ' ' || x.charAt(n)=='.') continue;\n char z = x.charAt(n);\n count[ z ]++;\n }\n x = reader.readLine();\n }\n }catch(IOException e){\n System.out.println(e);\n }\n for(int i = 0 ; i<str.length(); i++){\n char y = str.charAt(i);\n System.out.println(str.charAt(i) +\" : \"+ count[y] );\n }\n }",
"main",
"{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String str = \"abcdefghijklmnopqrstuvwxyz\";\n int[] count = new int[1000];\n try{\n String x;\n x = reader.readLine();\n while(x != null){\n x = x.toLowerCase();\n for(int n =0; n < x.length() ; n++){\n if(x.charAt(n) == ' ' || x.charAt(n)=='.') continue;\n char z = x.charAt(n);\n count[ z ]++;\n }\n x = reader.readLine();\n }\n }catch(IOException e){\n System.out.println(e);\n }\n for(int i = 0 ; i<str.length(); i++){\n char y = str.charAt(i);\n System.out.println(str.charAt(i) +\" : \"+ count[y] );\n }\n }",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"String str = \"abcdefghijklmnopqrstuvwxyz\";",
"str",
"\"abcdefghijklmnopqrstuvwxyz\"",
"int[] count = new int[1000];",
"count",
"new int[1000]",
"1000",
"try{\n String x;\n x = reader.readLine();\n while(x != null){\n x = x.toLowerCase();\n for(int n =0; n < x.length() ; n++){\n if(x.charAt(n) == ' ' || x.charAt(n)=='.') continue;\n char z = x.charAt(n);\n count[ z ]++;\n }\n x = reader.readLine();\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 String x;\n x = reader.readLine();\n while(x != null){\n x = x.toLowerCase();\n for(int n =0; n < x.length() ; n++){\n if(x.charAt(n) == ' ' || x.charAt(n)=='.') continue;\n char z = x.charAt(n);\n count[ z ]++;\n }\n x = reader.readLine();\n }\n }",
"String x;",
"x",
"x = reader.readLine()",
"x",
"reader.readLine()",
"reader.readLine",
"reader",
"while(x != null){\n x = x.toLowerCase();\n for(int n =0; n < x.length() ; n++){\n if(x.charAt(n) == ' ' || x.charAt(n)=='.') continue;\n char z = x.charAt(n);\n count[ z ]++;\n }\n x = reader.readLine();\n }",
"x != null",
"x",
"null",
"{\n x = x.toLowerCase();\n for(int n =0; n < x.length() ; n++){\n if(x.charAt(n) == ' ' || x.charAt(n)=='.') continue;\n char z = x.charAt(n);\n count[ z ]++;\n }\n x = reader.readLine();\n }",
"x = x.toLowerCase()",
"x",
"x.toLowerCase()",
"x.toLowerCase",
"x",
"for(int n =0; n < x.length() ; n++){\n if(x.charAt(n) == ' ' || x.charAt(n)=='.') continue;\n char z = x.charAt(n);\n count[ z ]++;\n }",
"int n =0;",
"int n =0;",
"n",
"0",
"n < x.length()",
"n",
"x.length()",
"x.length",
"x",
"n++",
"n++",
"n",
"{\n if(x.charAt(n) == ' ' || x.charAt(n)=='.') continue;\n char z = x.charAt(n);\n count[ z ]++;\n }",
"{\n if(x.charAt(n) == ' ' || x.charAt(n)=='.') continue;\n char z = x.charAt(n);\n count[ z ]++;\n }",
"if(x.charAt(n) == ' ' || x.charAt(n)=='.') continue;",
"x.charAt(n) == ' ' || x.charAt(n)=='.'",
"x.charAt(n) == ' '",
"x.charAt(n)",
"x.charAt",
"x",
"n",
"' '",
"x.charAt(n)=='.'",
"x.charAt(n)",
"x.charAt",
"x",
"n",
"'.'",
"continue;",
"char z = x.charAt(n);",
"z",
"x.charAt(n)",
"x.charAt",
"x",
"n",
"count[ z ]++",
"count[ z ]",
"count",
"z",
"x = reader.readLine()",
"x",
"reader.readLine()",
"reader.readLine",
"reader",
"for(int i = 0 ; i<str.length(); i++){\n char y = str.charAt(i);\n System.out.println(str.charAt(i) +\" : \"+ count[y] );\n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i<str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n char y = str.charAt(i);\n System.out.println(str.charAt(i) +\" : \"+ count[y] );\n }",
"{\n char y = str.charAt(i);\n System.out.println(str.charAt(i) +\" : \"+ count[y] );\n }",
"char y = str.charAt(i);",
"y",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"System.out.println(str.charAt(i) +\" : \"+ count[y] )",
"System.out.println",
"System.out",
"System",
"System.out",
"str.charAt(i) +\" : \"+ count[y]",
"str.charAt(i) +\" : \"+ count[y]",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"\" : \"",
"count[y]",
"count",
"y",
"String[] arg",
"arg",
"public class Main {\n public static void main(String[] arg){\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String str = \"abcdefghijklmnopqrstuvwxyz\";\n int[] count = new int[1000];\n try{\n String x;\n x = reader.readLine();\n while(x != null){\n x = x.toLowerCase();\n for(int n =0; n < x.length() ; n++){\n if(x.charAt(n) == ' ' || x.charAt(n)=='.') continue;\n char z = x.charAt(n);\n count[ z ]++;\n }\n x = reader.readLine();\n }\n }catch(IOException e){\n System.out.println(e);\n }\n for(int i = 0 ; i<str.length(); i++){\n char y = str.charAt(i);\n System.out.println(str.charAt(i) +\" : \"+ count[y] );\n }\n }\n}",
"public class Main {\n public static void main(String[] arg){\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String str = \"abcdefghijklmnopqrstuvwxyz\";\n int[] count = new int[1000];\n try{\n String x;\n x = reader.readLine();\n while(x != null){\n x = x.toLowerCase();\n for(int n =0; n < x.length() ; n++){\n if(x.charAt(n) == ' ' || x.charAt(n)=='.') continue;\n char z = x.charAt(n);\n count[ z ]++;\n }\n x = reader.readLine();\n }\n }catch(IOException e){\n System.out.println(e);\n }\n for(int i = 0 ; i<str.length(); i++){\n char y = str.charAt(i);\n System.out.println(str.charAt(i) +\" : \"+ count[y] );\n }\n }\n}",
"Main"
]
| import java.io.*;
public class Main {
public static void main(String[] arg){
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String str = "abcdefghijklmnopqrstuvwxyz";
int[] count = new int[1000];
try{
String x;
x = reader.readLine();
while(x != null){
x = x.toLowerCase();
for(int n =0; n < x.length() ; n++){
if(x.charAt(n) == ' ' || x.charAt(n)=='.') continue;
char z = x.charAt(n);
count[ z ]++;
}
x = reader.readLine();
}
}catch(IOException e){
System.out.println(e);
}
for(int i = 0 ; i<str.length(); i++){
char y = str.charAt(i);
System.out.println(str.charAt(i) +" : "+ count[y] );
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
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,
14,
2,
2,
2,
17,
13,
2,
13,
17,
2,
2,
17,
13,
2,
13,
17,
30,
14,
4,
18,
13,
13,
40,
18,
13,
2,
13,
17,
14,
4,
18,
13,
13,
40,
18,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
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
],
[
135,
5
],
[
135,
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
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
19,
27
],
[
27,
28
],
[
28,
29
],
[
19,
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
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
80,
82
],
[
67,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
84,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
92,
94
],
[
84,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
95,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
103,
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
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
124,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
124,
129
],
[
129,
130
],
[
129,
131
],
[
6,
132
],
[
132,
133
],
[
0,
134
],
[
134,
135
],
[
134,
136
]
]
| [
" \nimport java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n\tfinal int ALPHA_NUM=26;\n\tScanner in = new Scanner(System.in);\n\tint[] cnt = new int[ALPHA_NUM];\n\t\n\tfor(int i=0;i<ALPHA_NUM;i++)cnt[i]=0;\n\t \n\twhile(in.hasNext()){\n\t String str = in.next();\n\t for(int i=0;i<str.length();i++){\n\t\tchar ch= str.charAt(i);\n\n\t\tif(('a'<= ch && ch<='z')|| ('A'<= ch && ch<='Z')){\n\t\t if(Character.isUpperCase(ch))cnt[ch-(int)'A']++;\n\t\t else if(Character.isLowerCase(ch))cnt[ch-(int)'a']++;\n\t\t}\n\t }\n\t}\n\t for(int i=0;i<ALPHA_NUM;i++)System.out.println((char)((int)'a'+i)+\" : \"+cnt[i]);\n\t\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n\tfinal int ALPHA_NUM=26;\n\tScanner in = new Scanner(System.in);\n\tint[] cnt = new int[ALPHA_NUM];\n\t\n\tfor(int i=0;i<ALPHA_NUM;i++)cnt[i]=0;\n\t \n\twhile(in.hasNext()){\n\t String str = in.next();\n\t for(int i=0;i<str.length();i++){\n\t\tchar ch= str.charAt(i);\n\n\t\tif(('a'<= ch && ch<='z')|| ('A'<= ch && ch<='Z')){\n\t\t if(Character.isUpperCase(ch))cnt[ch-(int)'A']++;\n\t\t else if(Character.isLowerCase(ch))cnt[ch-(int)'a']++;\n\t\t}\n\t }\n\t}\n\t for(int i=0;i<ALPHA_NUM;i++)System.out.println((char)((int)'a'+i)+\" : \"+cnt[i]);\n\t\n }\n}",
"Main",
"public static void main(String[] args){\n\tfinal int ALPHA_NUM=26;\n\tScanner in = new Scanner(System.in);\n\tint[] cnt = new int[ALPHA_NUM];\n\t\n\tfor(int i=0;i<ALPHA_NUM;i++)cnt[i]=0;\n\t \n\twhile(in.hasNext()){\n\t String str = in.next();\n\t for(int i=0;i<str.length();i++){\n\t\tchar ch= str.charAt(i);\n\n\t\tif(('a'<= ch && ch<='z')|| ('A'<= ch && ch<='Z')){\n\t\t if(Character.isUpperCase(ch))cnt[ch-(int)'A']++;\n\t\t else if(Character.isLowerCase(ch))cnt[ch-(int)'a']++;\n\t\t}\n\t }\n\t}\n\t for(int i=0;i<ALPHA_NUM;i++)System.out.println((char)((int)'a'+i)+\" : \"+cnt[i]);\n\t\n }",
"main",
"{\n\tfinal int ALPHA_NUM=26;\n\tScanner in = new Scanner(System.in);\n\tint[] cnt = new int[ALPHA_NUM];\n\t\n\tfor(int i=0;i<ALPHA_NUM;i++)cnt[i]=0;\n\t \n\twhile(in.hasNext()){\n\t String str = in.next();\n\t for(int i=0;i<str.length();i++){\n\t\tchar ch= str.charAt(i);\n\n\t\tif(('a'<= ch && ch<='z')|| ('A'<= ch && ch<='Z')){\n\t\t if(Character.isUpperCase(ch))cnt[ch-(int)'A']++;\n\t\t else if(Character.isLowerCase(ch))cnt[ch-(int)'a']++;\n\t\t}\n\t }\n\t}\n\t for(int i=0;i<ALPHA_NUM;i++)System.out.println((char)((int)'a'+i)+\" : \"+cnt[i]);\n\t\n }",
"final int ALPHA_NUM=26;",
"ALPHA_NUM",
"26",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int[] cnt = new int[ALPHA_NUM];",
"cnt",
"new int[ALPHA_NUM]",
"ALPHA_NUM",
"for(int i=0;i<ALPHA_NUM;i++)cnt[i]=0;",
"int i=0;",
"int i=0;",
"i",
"0",
"i<ALPHA_NUM",
"i",
"ALPHA_NUM",
"i++",
"i++",
"i",
"cnt[i]=0;",
"cnt[i]=0",
"cnt[i]",
"cnt",
"i",
"0",
"while(in.hasNext()){\n\t String str = in.next();\n\t for(int i=0;i<str.length();i++){\n\t\tchar ch= str.charAt(i);\n\n\t\tif(('a'<= ch && ch<='z')|| ('A'<= ch && ch<='Z')){\n\t\t if(Character.isUpperCase(ch))cnt[ch-(int)'A']++;\n\t\t else if(Character.isLowerCase(ch))cnt[ch-(int)'a']++;\n\t\t}\n\t }\n\t}",
"in.hasNext()",
"in.hasNext",
"in",
"{\n\t String str = in.next();\n\t for(int i=0;i<str.length();i++){\n\t\tchar ch= str.charAt(i);\n\n\t\tif(('a'<= ch && ch<='z')|| ('A'<= ch && ch<='Z')){\n\t\t if(Character.isUpperCase(ch))cnt[ch-(int)'A']++;\n\t\t else if(Character.isLowerCase(ch))cnt[ch-(int)'a']++;\n\t\t}\n\t }\n\t}",
"String str = in.next();",
"str",
"in.next()",
"in.next",
"in",
"for(int i=0;i<str.length();i++){\n\t\tchar ch= str.charAt(i);\n\n\t\tif(('a'<= ch && ch<='z')|| ('A'<= ch && ch<='Z')){\n\t\t if(Character.isUpperCase(ch))cnt[ch-(int)'A']++;\n\t\t else if(Character.isLowerCase(ch))cnt[ch-(int)'a']++;\n\t\t}\n\t }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n\t\tchar ch= str.charAt(i);\n\n\t\tif(('a'<= ch && ch<='z')|| ('A'<= ch && ch<='Z')){\n\t\t if(Character.isUpperCase(ch))cnt[ch-(int)'A']++;\n\t\t else if(Character.isLowerCase(ch))cnt[ch-(int)'a']++;\n\t\t}\n\t }",
"{\n\t\tchar ch= str.charAt(i);\n\n\t\tif(('a'<= ch && ch<='z')|| ('A'<= ch && ch<='Z')){\n\t\t if(Character.isUpperCase(ch))cnt[ch-(int)'A']++;\n\t\t else if(Character.isLowerCase(ch))cnt[ch-(int)'a']++;\n\t\t}\n\t }",
"char ch= str.charAt(i);",
"ch",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"if(('a'<= ch && ch<='z')|| ('A'<= ch && ch<='Z')){\n\t\t if(Character.isUpperCase(ch))cnt[ch-(int)'A']++;\n\t\t else if(Character.isLowerCase(ch))cnt[ch-(int)'a']++;\n\t\t}",
"('a'<= ch && ch<='z')|| ('A'<= ch && ch<='Z')",
"('a'<= ch && ch<='z')",
"'a'<= ch",
"'a'",
"ch",
"ch<='z'",
"ch",
"'z'",
"('A'<= ch && ch<='Z')",
"'A'<= ch",
"'A'",
"ch",
"ch<='Z'",
"ch",
"'Z'",
"{\n\t\t if(Character.isUpperCase(ch))cnt[ch-(int)'A']++;\n\t\t else if(Character.isLowerCase(ch))cnt[ch-(int)'a']++;\n\t\t}",
"if(Character.isUpperCase(ch))cnt[ch-(int)'A']++;\n\t\t else if(Character.isLowerCase(ch))cnt[ch-(int)'a']++;",
"Character.isUpperCase(ch)",
"Character.isUpperCase",
"Character",
"ch",
"cnt[ch-(int)'A']++",
"cnt[ch-(int)'A']",
"cnt",
"ch-(int)'A'",
"ch",
"(int)'A'",
"if(Character.isLowerCase(ch))cnt[ch-(int)'a']++;",
"Character.isLowerCase(ch)",
"Character.isLowerCase",
"Character",
"ch",
"cnt[ch-(int)'a']++",
"cnt[ch-(int)'a']",
"cnt",
"ch-(int)'a'",
"ch",
"(int)'a'",
"for(int i=0;i<ALPHA_NUM;i++)System.out.println((char)((int)'a'+i)+\" : \"+cnt[i]);",
"int i=0;",
"int i=0;",
"i",
"0",
"i<ALPHA_NUM",
"i",
"ALPHA_NUM",
"i++",
"i++",
"i",
"System.out.println((char)((int)'a'+i)+\" : \"+cnt[i]);",
"System.out.println((char)((int)'a'+i)+\" : \"+cnt[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)((int)'a'+i)+\" : \"+cnt[i]",
"(char)((int)'a'+i)+\" : \"+cnt[i]",
"(char)((int)'a'+i)",
"(int)'a'",
"i",
"\" : \"",
"cnt[i]",
"cnt",
"i",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n\tfinal int ALPHA_NUM=26;\n\tScanner in = new Scanner(System.in);\n\tint[] cnt = new int[ALPHA_NUM];\n\t\n\tfor(int i=0;i<ALPHA_NUM;i++)cnt[i]=0;\n\t \n\twhile(in.hasNext()){\n\t String str = in.next();\n\t for(int i=0;i<str.length();i++){\n\t\tchar ch= str.charAt(i);\n\n\t\tif(('a'<= ch && ch<='z')|| ('A'<= ch && ch<='Z')){\n\t\t if(Character.isUpperCase(ch))cnt[ch-(int)'A']++;\n\t\t else if(Character.isLowerCase(ch))cnt[ch-(int)'a']++;\n\t\t}\n\t }\n\t}\n\t for(int i=0;i<ALPHA_NUM;i++)System.out.println((char)((int)'a'+i)+\" : \"+cnt[i]);\n\t\n }\n}",
"public class Main{\n public static void main(String[] args){\n\tfinal int ALPHA_NUM=26;\n\tScanner in = new Scanner(System.in);\n\tint[] cnt = new int[ALPHA_NUM];\n\t\n\tfor(int i=0;i<ALPHA_NUM;i++)cnt[i]=0;\n\t \n\twhile(in.hasNext()){\n\t String str = in.next();\n\t for(int i=0;i<str.length();i++){\n\t\tchar ch= str.charAt(i);\n\n\t\tif(('a'<= ch && ch<='z')|| ('A'<= ch && ch<='Z')){\n\t\t if(Character.isUpperCase(ch))cnt[ch-(int)'A']++;\n\t\t else if(Character.isLowerCase(ch))cnt[ch-(int)'a']++;\n\t\t}\n\t }\n\t}\n\t for(int i=0;i<ALPHA_NUM;i++)System.out.println((char)((int)'a'+i)+\" : \"+cnt[i]);\n\t\n }\n}",
"Main"
]
|
import java.util.Scanner;
public class Main{
public static void main(String[] args){
final int ALPHA_NUM=26;
Scanner in = new Scanner(System.in);
int[] cnt = new int[ALPHA_NUM];
for(int i=0;i<ALPHA_NUM;i++)cnt[i]=0;
while(in.hasNext()){
String str = in.next();
for(int i=0;i<str.length();i++){
char ch= str.charAt(i);
if(('a'<= ch && ch<='z')|| ('A'<= ch && ch<='Z')){
if(Character.isUpperCase(ch))cnt[ch-(int)'A']++;
else if(Character.isLowerCase(ch))cnt[ch-(int)'a']++;
}
}
}
for(int i=0;i<ALPHA_NUM;i++)System.out.println((char)((int)'a'+i)+" : "+cnt[i]);
}
}
|
[
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,
14,
2,
2,
17,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
30,
40,
18,
13,
2,
4,
18,
13,
13,
17,
14,
2,
2,
17,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
30,
40,
18,
13,
2,
4,
18,
13,
13,
17,
30,
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
],
[
123,
5
],
[
123,
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
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
44,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
51,
56
],
[
43,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
61,
66
],
[
43,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
68,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
75,
80
],
[
67,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
85,
90
],
[
67,
91
],
[
8,
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
],
[
8,
117
],
[
117,
118
],
[
118,
119
],
[
6,
120
],
[
120,
121
],
[
0,
122
],
[
122,
123
],
[
122,
124
]
]
| [
"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 s;\n\t\tint[] alf=new int[26];\n\t\twhile(scan.hasNext()){\n\t\t\ts=scan.next();\n\t\t\tfor(int i=0;i<s.length();i++){\n\t\t\t\tif('A'<=s.charAt(i)&&s.charAt(i)<='Z'){\n\t\t\t\t\talf[s.charAt(i)-'A']++;\n\t\t\t\t}else if('a'<=s.charAt(i)&&s.charAt(i)<='z'){\n\t\t\t\t\talf[s.charAt(i)-'a']++;\n\t\t\t\t}else{\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.printf(\"%c : %d\\n\",(char)(i+'a'),alf[i]);\n\t\t}\n\t\tscan.close();\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 s;\n\t\tint[] alf=new int[26];\n\t\twhile(scan.hasNext()){\n\t\t\ts=scan.next();\n\t\t\tfor(int i=0;i<s.length();i++){\n\t\t\t\tif('A'<=s.charAt(i)&&s.charAt(i)<='Z'){\n\t\t\t\t\talf[s.charAt(i)-'A']++;\n\t\t\t\t}else if('a'<=s.charAt(i)&&s.charAt(i)<='z'){\n\t\t\t\t\talf[s.charAt(i)-'a']++;\n\t\t\t\t}else{\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.printf(\"%c : %d\\n\",(char)(i+'a'),alf[i]);\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\tString s;\n\t\tint[] alf=new int[26];\n\t\twhile(scan.hasNext()){\n\t\t\ts=scan.next();\n\t\t\tfor(int i=0;i<s.length();i++){\n\t\t\t\tif('A'<=s.charAt(i)&&s.charAt(i)<='Z'){\n\t\t\t\t\talf[s.charAt(i)-'A']++;\n\t\t\t\t}else if('a'<=s.charAt(i)&&s.charAt(i)<='z'){\n\t\t\t\t\talf[s.charAt(i)-'a']++;\n\t\t\t\t}else{\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.printf(\"%c : %d\\n\",(char)(i+'a'),alf[i]);\n\t\t}\n\t\tscan.close();\n\t}",
"main",
"{\n\t\tScanner scan=new Scanner(System.in);\n\t\tString s;\n\t\tint[] alf=new int[26];\n\t\twhile(scan.hasNext()){\n\t\t\ts=scan.next();\n\t\t\tfor(int i=0;i<s.length();i++){\n\t\t\t\tif('A'<=s.charAt(i)&&s.charAt(i)<='Z'){\n\t\t\t\t\talf[s.charAt(i)-'A']++;\n\t\t\t\t}else if('a'<=s.charAt(i)&&s.charAt(i)<='z'){\n\t\t\t\t\talf[s.charAt(i)-'a']++;\n\t\t\t\t}else{\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.printf(\"%c : %d\\n\",(char)(i+'a'),alf[i]);\n\t\t}\n\t\tscan.close();\n\t}",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String s;",
"s",
"int[] alf=new int[26];",
"alf",
"new int[26]",
"26",
"while(scan.hasNext()){\n\t\t\ts=scan.next();\n\t\t\tfor(int i=0;i<s.length();i++){\n\t\t\t\tif('A'<=s.charAt(i)&&s.charAt(i)<='Z'){\n\t\t\t\t\talf[s.charAt(i)-'A']++;\n\t\t\t\t}else if('a'<=s.charAt(i)&&s.charAt(i)<='z'){\n\t\t\t\t\talf[s.charAt(i)-'a']++;\n\t\t\t\t}else{\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n\t\t\ts=scan.next();\n\t\t\tfor(int i=0;i<s.length();i++){\n\t\t\t\tif('A'<=s.charAt(i)&&s.charAt(i)<='Z'){\n\t\t\t\t\talf[s.charAt(i)-'A']++;\n\t\t\t\t}else if('a'<=s.charAt(i)&&s.charAt(i)<='z'){\n\t\t\t\t\talf[s.charAt(i)-'a']++;\n\t\t\t\t}else{\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"s=scan.next()",
"s",
"scan.next()",
"scan.next",
"scan",
"for(int i=0;i<s.length();i++){\n\t\t\t\tif('A'<=s.charAt(i)&&s.charAt(i)<='Z'){\n\t\t\t\t\talf[s.charAt(i)-'A']++;\n\t\t\t\t}else if('a'<=s.charAt(i)&&s.charAt(i)<='z'){\n\t\t\t\t\talf[s.charAt(i)-'a']++;\n\t\t\t\t}else{\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\tif('A'<=s.charAt(i)&&s.charAt(i)<='Z'){\n\t\t\t\t\talf[s.charAt(i)-'A']++;\n\t\t\t\t}else if('a'<=s.charAt(i)&&s.charAt(i)<='z'){\n\t\t\t\t\talf[s.charAt(i)-'a']++;\n\t\t\t\t}else{\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif('A'<=s.charAt(i)&&s.charAt(i)<='Z'){\n\t\t\t\t\talf[s.charAt(i)-'A']++;\n\t\t\t\t}else if('a'<=s.charAt(i)&&s.charAt(i)<='z'){\n\t\t\t\t\talf[s.charAt(i)-'a']++;\n\t\t\t\t}else{\n\t\t\t\t}\n\t\t\t}",
"if('A'<=s.charAt(i)&&s.charAt(i)<='Z'){\n\t\t\t\t\talf[s.charAt(i)-'A']++;\n\t\t\t\t}else if('a'<=s.charAt(i)&&s.charAt(i)<='z'){\n\t\t\t\t\talf[s.charAt(i)-'a']++;\n\t\t\t\t}else{\n\t\t\t\t}",
"'A'<=s.charAt(i)&&s.charAt(i)<='Z'",
"'A'<=s.charAt(i)",
"'A'",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"s.charAt(i)<='Z'",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"'Z'",
"{\n\t\t\t\t\talf[s.charAt(i)-'A']++;\n\t\t\t\t}",
"alf[s.charAt(i)-'A']++",
"alf[s.charAt(i)-'A']",
"alf",
"s.charAt(i)-'A'",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"'A'",
"if('a'<=s.charAt(i)&&s.charAt(i)<='z'){\n\t\t\t\t\talf[s.charAt(i)-'a']++;\n\t\t\t\t}else{\n\t\t\t\t}",
"'a'<=s.charAt(i)&&s.charAt(i)<='z'",
"'a'<=s.charAt(i)",
"'a'",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"s.charAt(i)<='z'",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"'z'",
"{\n\t\t\t\t\talf[s.charAt(i)-'a']++;\n\t\t\t\t}",
"alf[s.charAt(i)-'a']++",
"alf[s.charAt(i)-'a']",
"alf",
"s.charAt(i)-'a'",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"'a'",
"{\n\t\t\t\t}",
"for(int i=0;i<26;i++){\n\t\t\tSystem.out.printf(\"%c : %d\\n\",(char)(i+'a'),alf[i]);\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\",(char)(i+'a'),alf[i]);\n\t\t}",
"{\n\t\t\tSystem.out.printf(\"%c : %d\\n\",(char)(i+'a'),alf[i]);\n\t\t}",
"System.out.printf(\"%c : %d\\n\",(char)(i+'a'),alf[i])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c : %d\\n\"",
"(char)(i+'a')",
"i",
"'a'",
"alf[i]",
"alf",
"i",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan=new Scanner(System.in);\n\t\tString s;\n\t\tint[] alf=new int[26];\n\t\twhile(scan.hasNext()){\n\t\t\ts=scan.next();\n\t\t\tfor(int i=0;i<s.length();i++){\n\t\t\t\tif('A'<=s.charAt(i)&&s.charAt(i)<='Z'){\n\t\t\t\t\talf[s.charAt(i)-'A']++;\n\t\t\t\t}else if('a'<=s.charAt(i)&&s.charAt(i)<='z'){\n\t\t\t\t\talf[s.charAt(i)-'a']++;\n\t\t\t\t}else{\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.printf(\"%c : %d\\n\",(char)(i+'a'),alf[i]);\n\t\t}\n\t\tscan.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan=new Scanner(System.in);\n\t\tString s;\n\t\tint[] alf=new int[26];\n\t\twhile(scan.hasNext()){\n\t\t\ts=scan.next();\n\t\t\tfor(int i=0;i<s.length();i++){\n\t\t\t\tif('A'<=s.charAt(i)&&s.charAt(i)<='Z'){\n\t\t\t\t\talf[s.charAt(i)-'A']++;\n\t\t\t\t}else if('a'<=s.charAt(i)&&s.charAt(i)<='z'){\n\t\t\t\t\talf[s.charAt(i)-'a']++;\n\t\t\t\t}else{\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.printf(\"%c : %d\\n\",(char)(i+'a'),alf[i]);\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);
String s;
int[] alf=new int[26];
while(scan.hasNext()){
s=scan.next();
for(int i=0;i<s.length();i++){
if('A'<=s.charAt(i)&&s.charAt(i)<='Z'){
alf[s.charAt(i)-'A']++;
}else if('a'<=s.charAt(i)&&s.charAt(i)<='z'){
alf[s.charAt(i)-'a']++;
}else{
}
}
}
for(int i=0;i<26;i++){
System.out.printf("%c : %d\n",(char)(i+'a'),alf[i]);
}
scan.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
20,
17,
41,
13,
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,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
13,
2,
17,
13,
2,
13,
2,
17,
13,
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,
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
],
[
14,
16
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
21,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
8,
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
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
45,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
52,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
66,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
65,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
8,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
82,
90
],
[
90,
91
],
[
91,
92
],
[
82,
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
]
]
| [
"import java.util.*;\n\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n char alpha;\n int[] alpha_num = new int[26];\n String str =\"\";\n\n while(sc.hasNext()){\n str += sc.nextLine();\n }\n\n for(int i = 0;i < str.length();i++){\n alpha = str.charAt(i);\n for(int j = 0;j < 26;j++){\n if(alpha == (65 + j) || alpha == (97 + j)) alpha_num[j] += 1;\n }\n }\n\n for(int i = 0;i < 26;i++){\n System.out.println((char)(97 + i)+\" : \"+alpha_num[i]);\n }\n \n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n char alpha;\n int[] alpha_num = new int[26];\n String str =\"\";\n\n while(sc.hasNext()){\n str += sc.nextLine();\n }\n\n for(int i = 0;i < str.length();i++){\n alpha = str.charAt(i);\n for(int j = 0;j < 26;j++){\n if(alpha == (65 + j) || alpha == (97 + j)) alpha_num[j] += 1;\n }\n }\n\n for(int i = 0;i < 26;i++){\n System.out.println((char)(97 + i)+\" : \"+alpha_num[i]);\n }\n \n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n char alpha;\n int[] alpha_num = new int[26];\n String str =\"\";\n\n while(sc.hasNext()){\n str += sc.nextLine();\n }\n\n for(int i = 0;i < str.length();i++){\n alpha = str.charAt(i);\n for(int j = 0;j < 26;j++){\n if(alpha == (65 + j) || alpha == (97 + j)) alpha_num[j] += 1;\n }\n }\n\n for(int i = 0;i < 26;i++){\n System.out.println((char)(97 + i)+\" : \"+alpha_num[i]);\n }\n \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n char alpha;\n int[] alpha_num = new int[26];\n String str =\"\";\n\n while(sc.hasNext()){\n str += sc.nextLine();\n }\n\n for(int i = 0;i < str.length();i++){\n alpha = str.charAt(i);\n for(int j = 0;j < 26;j++){\n if(alpha == (65 + j) || alpha == (97 + j)) alpha_num[j] += 1;\n }\n }\n\n for(int i = 0;i < 26;i++){\n System.out.println((char)(97 + i)+\" : \"+alpha_num[i]);\n }\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"char alpha;",
"alpha",
"int[] alpha_num = new int[26];",
"alpha_num",
"new int[26]",
"26",
"String str =\"\";",
"str",
"\"\"",
"while(sc.hasNext()){\n str += sc.nextLine();\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n str += sc.nextLine();\n }",
"str += sc.nextLine()",
"str",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for(int i = 0;i < str.length();i++){\n alpha = str.charAt(i);\n for(int j = 0;j < 26;j++){\n if(alpha == (65 + j) || alpha == (97 + j)) alpha_num[j] += 1;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n alpha = str.charAt(i);\n for(int j = 0;j < 26;j++){\n if(alpha == (65 + j) || alpha == (97 + j)) alpha_num[j] += 1;\n }\n }",
"{\n alpha = str.charAt(i);\n for(int j = 0;j < 26;j++){\n if(alpha == (65 + j) || alpha == (97 + j)) alpha_num[j] += 1;\n }\n }",
"alpha = str.charAt(i)",
"alpha",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"for(int j = 0;j < 26;j++){\n if(alpha == (65 + j) || alpha == (97 + j)) alpha_num[j] += 1;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 26",
"j",
"26",
"j++",
"j++",
"j",
"{\n if(alpha == (65 + j) || alpha == (97 + j)) alpha_num[j] += 1;\n }",
"{\n if(alpha == (65 + j) || alpha == (97 + j)) alpha_num[j] += 1;\n }",
"if(alpha == (65 + j) || alpha == (97 + j)) alpha_num[j] += 1;",
"alpha == (65 + j) || alpha == (97 + j)",
"alpha == (65 + j)",
"alpha",
"(65 + j)",
"65",
"j",
"alpha == (97 + j)",
"alpha",
"(97 + j)",
"97",
"j",
"alpha_num[j] += 1",
"alpha_num[j]",
"alpha_num",
"j",
"1",
"for(int i = 0;i < 26;i++){\n System.out.println((char)(97 + i)+\" : \"+alpha_num[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n System.out.println((char)(97 + i)+\" : \"+alpha_num[i]);\n }",
"{\n System.out.println((char)(97 + i)+\" : \"+alpha_num[i]);\n }",
"System.out.println((char)(97 + i)+\" : \"+alpha_num[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)(97 + i)+\" : \"+alpha_num[i]",
"(char)(97 + i)+\" : \"+alpha_num[i]",
"(char)(97 + i)",
"97",
"i",
"\" : \"",
"alpha_num[i]",
"alpha_num",
"i",
"String[] args",
"args"
]
| import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
char alpha;
int[] alpha_num = new int[26];
String str ="";
while(sc.hasNext()){
str += sc.nextLine();
}
for(int i = 0;i < str.length();i++){
alpha = str.charAt(i);
for(int j = 0;j < 26;j++){
if(alpha == (65 + j) || alpha == (97 + j)) alpha_num[j] += 1;
}
}
for(int i = 0;i < 26;i++){
System.out.println((char)(97 + i)+" : "+alpha_num[i]);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
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,
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,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
2,
13,
17,
41,
13,
17,
42,
2,
2,
13,
17,
40,
4,
18,
18,
13,
13,
13,
40,
13,
14,
2,
13,
17,
40,
18,
13,
13,
0,
13,
17,
42,
2,
2,
13,
17,
40,
4,
18,
13,
18,
13,
13,
40,
13,
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,
2,
2,
18,
13,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
194,
5
],
[
194,
6
],
[
6,
7
],
[
6,
8
],
[
194,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
11,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
16,
18
],
[
16,
19
],
[
16,
20
],
[
16,
21
],
[
16,
22
],
[
16,
23
],
[
16,
24
],
[
16,
25
],
[
16,
26
],
[
16,
27
],
[
16,
28
],
[
16,
29
],
[
16,
30
],
[
16,
31
],
[
16,
32
],
[
16,
33
],
[
16,
34
],
[
16,
35
],
[
16,
36
],
[
16,
37
],
[
16,
38
],
[
16,
39
],
[
16,
40
],
[
16,
41
],
[
16,
42
],
[
11,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
45,
48
],
[
45,
49
],
[
45,
50
],
[
45,
51
],
[
45,
52
],
[
45,
53
],
[
45,
54
],
[
45,
55
],
[
45,
56
],
[
45,
57
],
[
45,
58
],
[
45,
59
],
[
45,
60
],
[
45,
61
],
[
45,
62
],
[
45,
63
],
[
45,
64
],
[
45,
65
],
[
45,
66
],
[
45,
67
],
[
45,
68
],
[
45,
69
],
[
45,
70
],
[
45,
71
],
[
11,
72
],
[
72,
73
],
[
72,
74
],
[
11,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
76,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
80,
86
],
[
86,
87
],
[
80,
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
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
105,
109
],
[
109,
110
],
[
109,
111
],
[
102,
112
],
[
112,
113
],
[
112,
114
],
[
102,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
115,
127
],
[
127,
128
],
[
102,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
102,
137
],
[
137,
138
],
[
137,
139
],
[
102,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
149,
150
],
[
149,
151
],
[
140,
152
],
[
152,
153
],
[
102,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
11,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
169,
171
],
[
162,
172
],
[
172,
173
],
[
173,
174
],
[
162,
175
],
[
176,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
183,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
183,
187
],
[
183,
188
],
[
188,
189
],
[
188,
190
],
[
9,
191
],
[
191,
192
],
[
0,
193
],
[
193,
194
],
[
193,
195
]
]
| [
"import java.util.*;\npublic class Main{\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args){\n String c;\n String[] alps = {\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\", \"j\", \"k\",\n \"l\", \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\", \"v\",\n \"w\", \"x\", \"y\", \"z\"};\n String[] alpb = {\"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\", \"I\", \"J\", \"K\",\n \"L\", \"M\", \"N\", \"O\", \"P\", \"Q\", \"R\", \"S\", \"T\", \"U\", \"V\",\n \"W\", \"X\", \"Y\", \"Z\"};\n int[] cnt = new int[26];\n while(kbd.hasNext()){\n String s = kbd.nextLine();\n int i;\n for(i=0; i<s.length(); i++){\n c = s.substring(i, i+1);\n int j=0;\n while(j<26 && !alps[j].equals(c)) j++;\n if(j<26) cnt[j]++; \n j=0;\n while(j<26 && !c.equals(alpb[j])) j++;\n if(j<26) cnt[j]++;\n }\n }\n for(int i=0; i<cnt.length; i++){\n System.out.println(alps[i]+\" : \"+cnt[i]);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args){\n String c;\n String[] alps = {\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\", \"j\", \"k\",\n \"l\", \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\", \"v\",\n \"w\", \"x\", \"y\", \"z\"};\n String[] alpb = {\"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\", \"I\", \"J\", \"K\",\n \"L\", \"M\", \"N\", \"O\", \"P\", \"Q\", \"R\", \"S\", \"T\", \"U\", \"V\",\n \"W\", \"X\", \"Y\", \"Z\"};\n int[] cnt = new int[26];\n while(kbd.hasNext()){\n String s = kbd.nextLine();\n int i;\n for(i=0; i<s.length(); i++){\n c = s.substring(i, i+1);\n int j=0;\n while(j<26 && !alps[j].equals(c)) j++;\n if(j<26) cnt[j]++; \n j=0;\n while(j<26 && !c.equals(alpb[j])) j++;\n if(j<26) cnt[j]++;\n }\n }\n for(int i=0; i<cnt.length; i++){\n System.out.println(alps[i]+\" : \"+cnt[i]);\n }\n }\n}",
"Main",
"static Scanner kbd = new Scanner(System.in);",
"kbd",
"new Scanner(System.in)",
"public static void main(String[] args){\n String c;\n String[] alps = {\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\", \"j\", \"k\",\n \"l\", \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\", \"v\",\n \"w\", \"x\", \"y\", \"z\"};\n String[] alpb = {\"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\", \"I\", \"J\", \"K\",\n \"L\", \"M\", \"N\", \"O\", \"P\", \"Q\", \"R\", \"S\", \"T\", \"U\", \"V\",\n \"W\", \"X\", \"Y\", \"Z\"};\n int[] cnt = new int[26];\n while(kbd.hasNext()){\n String s = kbd.nextLine();\n int i;\n for(i=0; i<s.length(); i++){\n c = s.substring(i, i+1);\n int j=0;\n while(j<26 && !alps[j].equals(c)) j++;\n if(j<26) cnt[j]++; \n j=0;\n while(j<26 && !c.equals(alpb[j])) j++;\n if(j<26) cnt[j]++;\n }\n }\n for(int i=0; i<cnt.length; i++){\n System.out.println(alps[i]+\" : \"+cnt[i]);\n }\n }",
"main",
"{\n String c;\n String[] alps = {\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\", \"j\", \"k\",\n \"l\", \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\", \"v\",\n \"w\", \"x\", \"y\", \"z\"};\n String[] alpb = {\"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\", \"I\", \"J\", \"K\",\n \"L\", \"M\", \"N\", \"O\", \"P\", \"Q\", \"R\", \"S\", \"T\", \"U\", \"V\",\n \"W\", \"X\", \"Y\", \"Z\"};\n int[] cnt = new int[26];\n while(kbd.hasNext()){\n String s = kbd.nextLine();\n int i;\n for(i=0; i<s.length(); i++){\n c = s.substring(i, i+1);\n int j=0;\n while(j<26 && !alps[j].equals(c)) j++;\n if(j<26) cnt[j]++; \n j=0;\n while(j<26 && !c.equals(alpb[j])) j++;\n if(j<26) cnt[j]++;\n }\n }\n for(int i=0; i<cnt.length; i++){\n System.out.println(alps[i]+\" : \"+cnt[i]);\n }\n }",
"String c;",
"c",
"String[] alps = {\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\", \"j\", \"k\",\n \"l\", \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\", \"v\",\n \"w\", \"x\", \"y\", \"z\"};",
"alps",
"{\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\", \"j\", \"k\",\n \"l\", \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\", \"v\",\n \"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\"",
"String[] alpb = {\"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\", \"I\", \"J\", \"K\",\n \"L\", \"M\", \"N\", \"O\", \"P\", \"Q\", \"R\", \"S\", \"T\", \"U\", \"V\",\n \"W\", \"X\", \"Y\", \"Z\"};",
"alpb",
"{\"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\", \"I\", \"J\", \"K\",\n \"L\", \"M\", \"N\", \"O\", \"P\", \"Q\", \"R\", \"S\", \"T\", \"U\", \"V\",\n \"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[] cnt = new int[26];",
"cnt",
"new int[26]",
"26",
"while(kbd.hasNext()){\n String s = kbd.nextLine();\n int i;\n for(i=0; i<s.length(); i++){\n c = s.substring(i, i+1);\n int j=0;\n while(j<26 && !alps[j].equals(c)) j++;\n if(j<26) cnt[j]++; \n j=0;\n while(j<26 && !c.equals(alpb[j])) j++;\n if(j<26) cnt[j]++;\n }\n }",
"kbd.hasNext()",
"kbd.hasNext",
"kbd",
"{\n String s = kbd.nextLine();\n int i;\n for(i=0; i<s.length(); i++){\n c = s.substring(i, i+1);\n int j=0;\n while(j<26 && !alps[j].equals(c)) j++;\n if(j<26) cnt[j]++; \n j=0;\n while(j<26 && !c.equals(alpb[j])) j++;\n if(j<26) cnt[j]++;\n }\n }",
"String s = kbd.nextLine();",
"s",
"kbd.nextLine()",
"kbd.nextLine",
"kbd",
"int i;",
"i",
"for(i=0; i<s.length(); i++){\n c = s.substring(i, i+1);\n int j=0;\n while(j<26 && !alps[j].equals(c)) j++;\n if(j<26) cnt[j]++; \n j=0;\n while(j<26 && !c.equals(alpb[j])) j++;\n if(j<26) cnt[j]++;\n }",
"i=0;",
"i=0",
"i",
"0",
"i<s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n c = s.substring(i, i+1);\n int j=0;\n while(j<26 && !alps[j].equals(c)) j++;\n if(j<26) cnt[j]++; \n j=0;\n while(j<26 && !c.equals(alpb[j])) j++;\n if(j<26) cnt[j]++;\n }",
"{\n c = s.substring(i, i+1);\n int j=0;\n while(j<26 && !alps[j].equals(c)) j++;\n if(j<26) cnt[j]++; \n j=0;\n while(j<26 && !c.equals(alpb[j])) j++;\n if(j<26) cnt[j]++;\n }",
"c = s.substring(i, i+1)",
"c",
"s.substring(i, i+1)",
"s.substring",
"s",
"i",
"i+1",
"i",
"1",
"int j=0;",
"j",
"0",
"while(j<26 && !alps[j].equals(c)) j++;",
"j<26 && !alps[j].equals(c)",
"j<26",
"j",
"26",
"!alps[j].equals(c)",
"alps[j].equals(c)",
"alps[j].equals",
"alps[j]",
"alps",
"j",
"c",
"j++",
"j",
"if(j<26) cnt[j]++;",
"j<26",
"j",
"26",
"cnt[j]++",
"cnt[j]",
"cnt",
"j",
"j=0",
"j",
"0",
"while(j<26 && !c.equals(alpb[j])) j++;",
"j<26 && !c.equals(alpb[j])",
"j<26",
"j",
"26",
"!c.equals(alpb[j])",
"c.equals(alpb[j])",
"c.equals",
"c",
"alpb[j]",
"alpb",
"j",
"j++",
"j",
"if(j<26) cnt[j]++;",
"j<26",
"j",
"26",
"cnt[j]++",
"cnt[j]",
"cnt",
"j",
"for(int i=0; i<cnt.length; i++){\n System.out.println(alps[i]+\" : \"+cnt[i]);\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(alps[i]+\" : \"+cnt[i]);\n }",
"{\n System.out.println(alps[i]+\" : \"+cnt[i]);\n }",
"System.out.println(alps[i]+\" : \"+cnt[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"alps[i]+\" : \"+cnt[i]",
"alps[i]+\" : \"+cnt[i]",
"alps[i]",
"alps",
"i",
"\" : \"",
"cnt[i]",
"cnt",
"i",
"String[] args",
"args",
"public class Main{\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args){\n String c;\n String[] alps = {\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\", \"j\", \"k\",\n \"l\", \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\", \"v\",\n \"w\", \"x\", \"y\", \"z\"};\n String[] alpb = {\"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\", \"I\", \"J\", \"K\",\n \"L\", \"M\", \"N\", \"O\", \"P\", \"Q\", \"R\", \"S\", \"T\", \"U\", \"V\",\n \"W\", \"X\", \"Y\", \"Z\"};\n int[] cnt = new int[26];\n while(kbd.hasNext()){\n String s = kbd.nextLine();\n int i;\n for(i=0; i<s.length(); i++){\n c = s.substring(i, i+1);\n int j=0;\n while(j<26 && !alps[j].equals(c)) j++;\n if(j<26) cnt[j]++; \n j=0;\n while(j<26 && !c.equals(alpb[j])) j++;\n if(j<26) cnt[j]++;\n }\n }\n for(int i=0; i<cnt.length; i++){\n System.out.println(alps[i]+\" : \"+cnt[i]);\n }\n }\n}",
"public class Main{\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args){\n String c;\n String[] alps = {\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\", \"j\", \"k\",\n \"l\", \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\", \"v\",\n \"w\", \"x\", \"y\", \"z\"};\n String[] alpb = {\"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\", \"I\", \"J\", \"K\",\n \"L\", \"M\", \"N\", \"O\", \"P\", \"Q\", \"R\", \"S\", \"T\", \"U\", \"V\",\n \"W\", \"X\", \"Y\", \"Z\"};\n int[] cnt = new int[26];\n while(kbd.hasNext()){\n String s = kbd.nextLine();\n int i;\n for(i=0; i<s.length(); i++){\n c = s.substring(i, i+1);\n int j=0;\n while(j<26 && !alps[j].equals(c)) j++;\n if(j<26) cnt[j]++; \n j=0;\n while(j<26 && !c.equals(alpb[j])) j++;\n if(j<26) cnt[j]++;\n }\n }\n for(int i=0; i<cnt.length; i++){\n System.out.println(alps[i]+\" : \"+cnt[i]);\n }\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
static Scanner kbd = new Scanner(System.in);
public static void main(String[] args){
String c;
String[] alps = {"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"};
String[] alpb = {"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[] cnt = new int[26];
while(kbd.hasNext()){
String s = kbd.nextLine();
int i;
for(i=0; i<s.length(); i++){
c = s.substring(i, i+1);
int j=0;
while(j<26 && !alps[j].equals(c)) j++;
if(j<26) cnt[j]++;
j=0;
while(j<26 && !c.equals(alpb[j])) j++;
if(j<26) cnt[j]++;
}
}
for(int i=0; i<cnt.length; i++){
System.out.println(alps[i]+" : "+cnt[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,
41,
13,
4,
18,
4,
18,
13,
17,
17,
28,
13,
4,
18,
13,
30,
30,
14,
2,
2,
17,
13,
2,
13,
17,
30,
40,
18,
13,
2,
13,
17,
4,
18,
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
],
[
93,
5
],
[
93,
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
],
[
30,
31
],
[
31,
32
],
[
28,
33
],
[
28,
34
],
[
20,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
35,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
60,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
72,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
84,
84
],
[
84,
85
],
[
84,
86
],
[
84,
87
],
[
87,
88
],
[
87,
89
],
[
6,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint[] count = new int[26];\n\n\t\twhile(sc.hasNext()) {\n\t\t\tString input = sc.nextLine();\n\t\t\tString tmp = input.toLowerCase().replace(\" \", \"\");\n\n\t\t\tfor(char c : tmp.toCharArray()) {\n\t\t\t\tif('a' <= c && c <= 'z') {\n\t\t\t\t\tcount[(int)c - (int)'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tchar now = (char)( (int)'a' + i );\n\n\t\t\tSystem.out.println(now + \" : \" + count[i]);\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\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint[] count = new int[26];\n\n\t\twhile(sc.hasNext()) {\n\t\t\tString input = sc.nextLine();\n\t\t\tString tmp = input.toLowerCase().replace(\" \", \"\");\n\n\t\t\tfor(char c : tmp.toCharArray()) {\n\t\t\t\tif('a' <= c && c <= 'z') {\n\t\t\t\t\tcount[(int)c - (int)'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tchar now = (char)( (int)'a' + i );\n\n\t\t\tSystem.out.println(now + \" : \" + count[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint[] count = new int[26];\n\n\t\twhile(sc.hasNext()) {\n\t\t\tString input = sc.nextLine();\n\t\t\tString tmp = input.toLowerCase().replace(\" \", \"\");\n\n\t\t\tfor(char c : tmp.toCharArray()) {\n\t\t\t\tif('a' <= c && c <= 'z') {\n\t\t\t\t\tcount[(int)c - (int)'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tchar now = (char)( (int)'a' + i );\n\n\t\t\tSystem.out.println(now + \" : \" + count[i]);\n\t\t}\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint[] count = new int[26];\n\n\t\twhile(sc.hasNext()) {\n\t\t\tString input = sc.nextLine();\n\t\t\tString tmp = input.toLowerCase().replace(\" \", \"\");\n\n\t\t\tfor(char c : tmp.toCharArray()) {\n\t\t\t\tif('a' <= c && c <= 'z') {\n\t\t\t\t\tcount[(int)c - (int)'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tchar now = (char)( (int)'a' + i );\n\n\t\t\tSystem.out.println(now + \" : \" + count[i]);\n\t\t}\n\t}",
"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\t\t\tString input = sc.nextLine();\n\t\t\tString tmp = input.toLowerCase().replace(\" \", \"\");\n\n\t\t\tfor(char c : tmp.toCharArray()) {\n\t\t\t\tif('a' <= c && c <= 'z') {\n\t\t\t\t\tcount[(int)c - (int)'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\tString input = sc.nextLine();\n\t\t\tString tmp = input.toLowerCase().replace(\" \", \"\");\n\n\t\t\tfor(char c : tmp.toCharArray()) {\n\t\t\t\tif('a' <= c && c <= 'z') {\n\t\t\t\t\tcount[(int)c - (int)'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"String input = sc.nextLine();",
"input",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String tmp = input.toLowerCase().replace(\" \", \"\");",
"tmp",
"input.toLowerCase().replace(\" \", \"\")",
"input.toLowerCase().replace",
"input.toLowerCase()",
"input.toLowerCase",
"input",
"\" \"",
"\"\"",
"for(char c : tmp.toCharArray()) {\n\t\t\t\tif('a' <= c && c <= 'z') {\n\t\t\t\t\tcount[(int)c - (int)'a']++;\n\t\t\t\t}\n\t\t\t}",
"char c",
"tmp.toCharArray()",
"tmp.toCharArray",
"tmp",
"{\n\t\t\t\tif('a' <= c && c <= 'z') {\n\t\t\t\t\tcount[(int)c - (int)'a']++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif('a' <= c && c <= 'z') {\n\t\t\t\t\tcount[(int)c - (int)'a']++;\n\t\t\t\t}\n\t\t\t}",
"if('a' <= c && c <= 'z') {\n\t\t\t\t\tcount[(int)c - (int)'a']++;\n\t\t\t\t}",
"'a' <= c && c <= 'z'",
"'a' <= c",
"'a'",
"c",
"c <= 'z'",
"c",
"'z'",
"{\n\t\t\t\t\tcount[(int)c - (int)'a']++;\n\t\t\t\t}",
"count[(int)c - (int)'a']++",
"count[(int)c - (int)'a']",
"count",
"(int)c - (int)'a'",
"(int)c",
"(int)'a'",
"sc.close()",
"sc.close",
"sc",
"for (int i = 0; i < 26; i++) {\n\t\t\tchar now = (char)( (int)'a' + i );\n\n\t\t\tSystem.out.println(now + \" : \" + count[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tchar now = (char)( (int)'a' + i );\n\n\t\t\tSystem.out.println(now + \" : \" + count[i]);\n\t\t}",
"{\n\t\t\tchar now = (char)( (int)'a' + i );\n\n\t\t\tSystem.out.println(now + \" : \" + count[i]);\n\t\t}",
"char now = (char)( (int)'a' + i );",
"now",
"(char)( (int)'a' + i )",
"(int)'a'",
"i",
"System.out.println(now + \" : \" + count[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"now + \" : \" + count[i]",
"now + \" : \" + count[i]",
"now",
"\" : \"",
"count[i]",
"count",
"i",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint[] count = new int[26];\n\n\t\twhile(sc.hasNext()) {\n\t\t\tString input = sc.nextLine();\n\t\t\tString tmp = input.toLowerCase().replace(\" \", \"\");\n\n\t\t\tfor(char c : tmp.toCharArray()) {\n\t\t\t\tif('a' <= c && c <= 'z') {\n\t\t\t\t\tcount[(int)c - (int)'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tchar now = (char)( (int)'a' + i );\n\n\t\t\tSystem.out.println(now + \" : \" + count[i]);\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint[] count = new int[26];\n\n\t\twhile(sc.hasNext()) {\n\t\t\tString input = sc.nextLine();\n\t\t\tString tmp = input.toLowerCase().replace(\" \", \"\");\n\n\t\t\tfor(char c : tmp.toCharArray()) {\n\t\t\t\tif('a' <= c && c <= 'z') {\n\t\t\t\t\tcount[(int)c - (int)'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tchar now = (char)( (int)'a' + i );\n\n\t\t\tSystem.out.println(now + \" : \" + count[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);
int[] count = new int[26];
while(sc.hasNext()) {
String input = sc.nextLine();
String tmp = input.toLowerCase().replace(" ", "");
for(char c : tmp.toCharArray()) {
if('a' <= c && c <= 'z') {
count[(int)c - (int)'a']++;
}
}
}
sc.close();
for (int i = 0; i < 26; i++) {
char now = (char)( (int)'a' + i );
System.out.println(now + " : " + count[i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
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,
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
],
[
98,
5
],
[
98,
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
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
28,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
34,
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
],
[
8,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
65,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
8,
92
],
[
92,
93
],
[
93,
94
],
[
6,
95
],
[
95,
96
],
[
0,
97
],
[
97,
98
],
[
97,
99
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[] charArr = new int[26];\n\n\t\tString str;\n\t\twhile (scan.hasNext()) {\n\t\t\tstr = scan.nextLine();\n\t\t\tfor (char c : str.toCharArray()) {\n\t\t\t\tif (c > 64 && c < 91) {\n\t\t\t\t\tcharArr[c - 65]++;\n\t\t\t\t}\n\t\t\t\tif (c > 96 && c < 123) {\n\t\t\t\t\tcharArr[c - 97]++;\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((char) (i + 97) + \" : \" + charArr[i]);\n\t\t}\n\n\t\tscan.close();\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[] charArr = new int[26];\n\n\t\tString str;\n\t\twhile (scan.hasNext()) {\n\t\t\tstr = scan.nextLine();\n\t\t\tfor (char c : str.toCharArray()) {\n\t\t\t\tif (c > 64 && c < 91) {\n\t\t\t\t\tcharArr[c - 65]++;\n\t\t\t\t}\n\t\t\t\tif (c > 96 && c < 123) {\n\t\t\t\t\tcharArr[c - 97]++;\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((char) (i + 97) + \" : \" + charArr[i]);\n\t\t}\n\n\t\tscan.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[] charArr = new int[26];\n\n\t\tString str;\n\t\twhile (scan.hasNext()) {\n\t\t\tstr = scan.nextLine();\n\t\t\tfor (char c : str.toCharArray()) {\n\t\t\t\tif (c > 64 && c < 91) {\n\t\t\t\t\tcharArr[c - 65]++;\n\t\t\t\t}\n\t\t\t\tif (c > 96 && c < 123) {\n\t\t\t\t\tcharArr[c - 97]++;\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((char) (i + 97) + \" : \" + charArr[i]);\n\t\t}\n\n\t\tscan.close();\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[] charArr = new int[26];\n\n\t\tString str;\n\t\twhile (scan.hasNext()) {\n\t\t\tstr = scan.nextLine();\n\t\t\tfor (char c : str.toCharArray()) {\n\t\t\t\tif (c > 64 && c < 91) {\n\t\t\t\t\tcharArr[c - 65]++;\n\t\t\t\t}\n\t\t\t\tif (c > 96 && c < 123) {\n\t\t\t\t\tcharArr[c - 97]++;\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((char) (i + 97) + \" : \" + charArr[i]);\n\t\t}\n\n\t\tscan.close();\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int[] charArr = new int[26];",
"charArr",
"new int[26]",
"26",
"String str;",
"str",
"while (scan.hasNext()) {\n\t\t\tstr = scan.nextLine();\n\t\t\tfor (char c : str.toCharArray()) {\n\t\t\t\tif (c > 64 && c < 91) {\n\t\t\t\t\tcharArr[c - 65]++;\n\t\t\t\t}\n\t\t\t\tif (c > 96 && c < 123) {\n\t\t\t\t\tcharArr[c - 97]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n\t\t\tstr = scan.nextLine();\n\t\t\tfor (char c : str.toCharArray()) {\n\t\t\t\tif (c > 64 && c < 91) {\n\t\t\t\t\tcharArr[c - 65]++;\n\t\t\t\t}\n\t\t\t\tif (c > 96 && c < 123) {\n\t\t\t\t\tcharArr[c - 97]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"str = scan.nextLine()",
"str",
"scan.nextLine()",
"scan.nextLine",
"scan",
"for (char c : str.toCharArray()) {\n\t\t\t\tif (c > 64 && c < 91) {\n\t\t\t\t\tcharArr[c - 65]++;\n\t\t\t\t}\n\t\t\t\tif (c > 96 && c < 123) {\n\t\t\t\t\tcharArr[c - 97]++;\n\t\t\t\t}\n\t\t\t}",
"char c",
"str.toCharArray()",
"str.toCharArray",
"str",
"{\n\t\t\t\tif (c > 64 && c < 91) {\n\t\t\t\t\tcharArr[c - 65]++;\n\t\t\t\t}\n\t\t\t\tif (c > 96 && c < 123) {\n\t\t\t\t\tcharArr[c - 97]++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif (c > 64 && c < 91) {\n\t\t\t\t\tcharArr[c - 65]++;\n\t\t\t\t}\n\t\t\t\tif (c > 96 && c < 123) {\n\t\t\t\t\tcharArr[c - 97]++;\n\t\t\t\t}\n\t\t\t}",
"if (c > 64 && c < 91) {\n\t\t\t\t\tcharArr[c - 65]++;\n\t\t\t\t}",
"c > 64 && c < 91",
"c > 64",
"c",
"64",
"c < 91",
"c",
"91",
"{\n\t\t\t\t\tcharArr[c - 65]++;\n\t\t\t\t}",
"charArr[c - 65]++",
"charArr[c - 65]",
"charArr",
"c - 65",
"c",
"65",
"if (c > 96 && c < 123) {\n\t\t\t\t\tcharArr[c - 97]++;\n\t\t\t\t}",
"c > 96 && c < 123",
"c > 96",
"c",
"96",
"c < 123",
"c",
"123",
"{\n\t\t\t\t\tcharArr[c - 97]++;\n\t\t\t\t}",
"charArr[c - 97]++",
"charArr[c - 97]",
"charArr",
"c - 97",
"c",
"97",
"for (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println((char) (i + 97) + \" : \" + charArr[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) + \" : \" + charArr[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println((char) (i + 97) + \" : \" + charArr[i]);\n\t\t}",
"System.out.println((char) (i + 97) + \" : \" + charArr[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char) (i + 97) + \" : \" + charArr[i]",
"(char) (i + 97) + \" : \" + charArr[i]",
"(char) (i + 97)",
"i",
"97",
"\" : \"",
"charArr[i]",
"charArr",
"i",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[] charArr = new int[26];\n\n\t\tString str;\n\t\twhile (scan.hasNext()) {\n\t\t\tstr = scan.nextLine();\n\t\t\tfor (char c : str.toCharArray()) {\n\t\t\t\tif (c > 64 && c < 91) {\n\t\t\t\t\tcharArr[c - 65]++;\n\t\t\t\t}\n\t\t\t\tif (c > 96 && c < 123) {\n\t\t\t\t\tcharArr[c - 97]++;\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((char) (i + 97) + \" : \" + charArr[i]);\n\t\t}\n\n\t\tscan.close();\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[] charArr = new int[26];\n\n\t\tString str;\n\t\twhile (scan.hasNext()) {\n\t\t\tstr = scan.nextLine();\n\t\t\tfor (char c : str.toCharArray()) {\n\t\t\t\tif (c > 64 && c < 91) {\n\t\t\t\t\tcharArr[c - 65]++;\n\t\t\t\t}\n\t\t\t\tif (c > 96 && c < 123) {\n\t\t\t\t\tcharArr[c - 97]++;\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((char) (i + 97) + \" : \" + charArr[i]);\n\t\t}\n\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[] charArr = new int[26];
String str;
while (scan.hasNext()) {
str = scan.nextLine();
for (char c : str.toCharArray()) {
if (c > 64 && c < 91) {
charArr[c - 65]++;
}
if (c > 96 && c < 123) {
charArr[c - 97]++;
}
}
}
for (int i = 0; i < 26; i++) {
System.out.println((char) (i + 97) + " : " + charArr[i]);
}
scan.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
17,
41,
13,
20,
17,
41,
13,
17,
0,
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,
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,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
4,
18,
4,
18,
4,
18,
13,
4,
18,
13,
2,
17,
13,
17,
18,
13,
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
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
40,
50
],
[
50,
51
],
[
51,
52
],
[
40,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
54,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
61,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
88,
90
],
[
76,
91
],
[
8,
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
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
119,
120
],
[
119,
121
],
[
111,
122
],
[
109,
123
],
[
123,
124
],
[
123,
125
],
[
107,
126
],
[
8,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
133,
134
],
[
6,
135
],
[
135,
136
]
]
| [
"import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = null;\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfinal String lb = System.getProperty(\"line.separator\");\n\t\tint[] count = new int[26];\n\t\tString str = null;\n\t\t\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile((str = br.readLine()) != null){\n\t\t\tfor(int i = 0; i < str.length(); i++){\n\t\t\t\tfinal char ch = str.charAt(i);\n\t\t\t\tif('A' <= ch && ch <= 'Z'){\n\t\t\t\t\tcount[ch - 'A']++;\n\t\t\t\t} else if('a' <= ch && ch <= 'z'){\n\t\t\t\t\tcount[ch - 'a']++;\n\t\t\t\t} else {}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < count.length; i++){\n\t\t\tsb.append(String.valueOf((char)('a'+i))).append(\" : \").append(count[i]).append(lb);\n\t\t}\n\t\tSystem.out.print(sb.toString());\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = null;\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfinal String lb = System.getProperty(\"line.separator\");\n\t\tint[] count = new int[26];\n\t\tString str = null;\n\t\t\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile((str = br.readLine()) != null){\n\t\t\tfor(int i = 0; i < str.length(); i++){\n\t\t\t\tfinal char ch = str.charAt(i);\n\t\t\t\tif('A' <= ch && ch <= 'Z'){\n\t\t\t\t\tcount[ch - 'A']++;\n\t\t\t\t} else if('a' <= ch && ch <= 'z'){\n\t\t\t\t\tcount[ch - 'a']++;\n\t\t\t\t} else {}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < count.length; i++){\n\t\t\tsb.append(String.valueOf((char)('a'+i))).append(\" : \").append(count[i]).append(lb);\n\t\t}\n\t\tSystem.out.print(sb.toString());\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = null;\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfinal String lb = System.getProperty(\"line.separator\");\n\t\tint[] count = new int[26];\n\t\tString str = null;\n\t\t\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile((str = br.readLine()) != null){\n\t\t\tfor(int i = 0; i < str.length(); i++){\n\t\t\t\tfinal char ch = str.charAt(i);\n\t\t\t\tif('A' <= ch && ch <= 'Z'){\n\t\t\t\t\tcount[ch - 'A']++;\n\t\t\t\t} else if('a' <= ch && ch <= 'z'){\n\t\t\t\t\tcount[ch - 'a']++;\n\t\t\t\t} else {}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < count.length; i++){\n\t\t\tsb.append(String.valueOf((char)('a'+i))).append(\" : \").append(count[i]).append(lb);\n\t\t}\n\t\tSystem.out.print(sb.toString());\n\t}",
"main",
"{\n\t\tBufferedReader br = null;\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfinal String lb = System.getProperty(\"line.separator\");\n\t\tint[] count = new int[26];\n\t\tString str = null;\n\t\t\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile((str = br.readLine()) != null){\n\t\t\tfor(int i = 0; i < str.length(); i++){\n\t\t\t\tfinal char ch = str.charAt(i);\n\t\t\t\tif('A' <= ch && ch <= 'Z'){\n\t\t\t\t\tcount[ch - 'A']++;\n\t\t\t\t} else if('a' <= ch && ch <= 'z'){\n\t\t\t\t\tcount[ch - 'a']++;\n\t\t\t\t} else {}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0; i < count.length; i++){\n\t\t\tsb.append(String.valueOf((char)('a'+i))).append(\" : \").append(count[i]).append(lb);\n\t\t}\n\t\tSystem.out.print(sb.toString());\n\t}",
"BufferedReader br = null;",
"br",
"null",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"final String lb = System.getProperty(\"line.separator\");",
"lb",
"System.getProperty(\"line.separator\")",
"System.getProperty",
"System",
"\"line.separator\"",
"int[] count = new int[26];",
"count",
"new int[26]",
"26",
"String str = null;",
"str",
"null",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"while((str = br.readLine()) != null){\n\t\t\tfor(int i = 0; i < str.length(); i++){\n\t\t\t\tfinal char ch = str.charAt(i);\n\t\t\t\tif('A' <= ch && ch <= 'Z'){\n\t\t\t\t\tcount[ch - 'A']++;\n\t\t\t\t} else if('a' <= ch && ch <= 'z'){\n\t\t\t\t\tcount[ch - 'a']++;\n\t\t\t\t} else {}\n\t\t\t}\n\t\t}",
"(str = br.readLine()) != null",
"(str = br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\t\t\tfor(int i = 0; i < str.length(); i++){\n\t\t\t\tfinal char ch = str.charAt(i);\n\t\t\t\tif('A' <= ch && ch <= 'Z'){\n\t\t\t\t\tcount[ch - 'A']++;\n\t\t\t\t} else if('a' <= ch && ch <= 'z'){\n\t\t\t\t\tcount[ch - 'a']++;\n\t\t\t\t} else {}\n\t\t\t}\n\t\t}",
"for(int i = 0; i < str.length(); i++){\n\t\t\t\tfinal char ch = str.charAt(i);\n\t\t\t\tif('A' <= ch && ch <= 'Z'){\n\t\t\t\t\tcount[ch - 'A']++;\n\t\t\t\t} else if('a' <= ch && ch <= 'z'){\n\t\t\t\t\tcount[ch - 'a']++;\n\t\t\t\t} else {}\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\tfinal char ch = str.charAt(i);\n\t\t\t\tif('A' <= ch && ch <= 'Z'){\n\t\t\t\t\tcount[ch - 'A']++;\n\t\t\t\t} else if('a' <= ch && ch <= 'z'){\n\t\t\t\t\tcount[ch - 'a']++;\n\t\t\t\t} else {}\n\t\t\t}",
"{\n\t\t\t\tfinal char ch = str.charAt(i);\n\t\t\t\tif('A' <= ch && ch <= 'Z'){\n\t\t\t\t\tcount[ch - 'A']++;\n\t\t\t\t} else if('a' <= ch && ch <= 'z'){\n\t\t\t\t\tcount[ch - 'a']++;\n\t\t\t\t} else {}\n\t\t\t}",
"final char ch = str.charAt(i);",
"ch",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"if('A' <= ch && ch <= 'Z'){\n\t\t\t\t\tcount[ch - 'A']++;\n\t\t\t\t} else if('a' <= ch && ch <= 'z'){\n\t\t\t\t\tcount[ch - 'a']++;\n\t\t\t\t} else {}",
"'A' <= ch && ch <= 'Z'",
"'A' <= ch",
"'A'",
"ch",
"ch <= 'Z'",
"ch",
"'Z'",
"{\n\t\t\t\t\tcount[ch - 'A']++;\n\t\t\t\t}",
"count[ch - 'A']++",
"count[ch - 'A']",
"count",
"ch - 'A'",
"ch",
"'A'",
"if('a' <= ch && ch <= 'z'){\n\t\t\t\t\tcount[ch - 'a']++;\n\t\t\t\t} else {}",
"'a' <= ch && ch <= 'z'",
"'a' <= ch",
"'a'",
"ch",
"ch <= 'z'",
"ch",
"'z'",
"{\n\t\t\t\t\tcount[ch - 'a']++;\n\t\t\t\t}",
"count[ch - 'a']++",
"count[ch - 'a']",
"count",
"ch - 'a'",
"ch",
"'a'",
"{}",
"for(int i = 0; i < count.length; i++){\n\t\t\tsb.append(String.valueOf((char)('a'+i))).append(\" : \").append(count[i]).append(lb);\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\tsb.append(String.valueOf((char)('a'+i))).append(\" : \").append(count[i]).append(lb);\n\t\t}",
"{\n\t\t\tsb.append(String.valueOf((char)('a'+i))).append(\" : \").append(count[i]).append(lb);\n\t\t}",
"sb.append(String.valueOf((char)('a'+i))).append(\" : \").append(count[i]).append(lb)",
"sb.append(String.valueOf((char)('a'+i))).append(\" : \").append(count[i]).append",
"sb.append(String.valueOf((char)('a'+i))).append(\" : \").append(count[i])",
"sb.append(String.valueOf((char)('a'+i))).append(\" : \").append",
"sb.append(String.valueOf((char)('a'+i))).append(\" : \")",
"sb.append(String.valueOf((char)('a'+i))).append",
"sb.append(String.valueOf((char)('a'+i)))",
"sb.append",
"sb",
"String.valueOf((char)('a'+i))",
"String.valueOf",
"String",
"(char)('a'+i)",
"'a'",
"i",
"\" : \"",
"count[i]",
"count",
"i",
"lb",
"System.out.print(sb.toString())",
"System.out.print",
"System.out",
"System",
"System.out",
"sb.toString()",
"sb.toString",
"sb",
"String[] args",
"args"
]
| import java.io.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = null;
StringBuilder sb = new StringBuilder();
final String lb = System.getProperty("line.separator");
int[] count = new int[26];
String str = null;
br = new BufferedReader(new InputStreamReader(System.in));
while((str = br.readLine()) != null){
for(int i = 0; i < str.length(); i++){
final char ch = str.charAt(i);
if('A' <= ch && ch <= 'Z'){
count[ch - 'A']++;
} else if('a' <= ch && ch <= 'z'){
count[ch - 'a']++;
} else {}
}
}
for(int i = 0; i < count.length; i++){
sb.append(String.valueOf((char)('a'+i))).append(" : ").append(count[i]).append(lb);
}
System.out.print(sb.toString());
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
17,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
30,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
13,
18,
13,
13,
4,
18,
13,
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,
12,
13,
30,
0,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
2,
17,
13,
30,
40,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
128,
5
],
[
128,
6
],
[
6,
7
],
[
6,
8
],
[
128,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
12,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
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
],
[
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
],
[
53,
55
],
[
12,
56
],
[
56,
57
],
[
57,
58
],
[
12,
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
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
10,
88
],
[
88,
89
],
[
128,
90
],
[
90,
91
],
[
90,
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
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
106,
108
],
[
99,
109
],
[
109,
110
],
[
110,
111
],
[
99,
112
],
[
113,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
114,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
90,
125
],
[
125,
126
],
[
0,
127
],
[
127,
128
],
[
127,
129
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tstatic int list[] = new int[26];\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\ttry{\n\t\t\twhile(scan.hasNext()){\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tchar ch[] = str.toCharArray();\n\t\t\t\tfor(int i = 0; i < ch.length; i++){\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(IllegalStateException e){\n\t\t\t/*char alp = 97;\n\t\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t\t}*/\n\t\t}\n\t\tscan.close();\n\t\t//char alp = 97;\n\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t//alp = Character.valueOf((char) (97 + i));\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + list[i]);\n\t\t}\n\t}\n\n\tpublic static void CountingCharacters(char Ch){\n\t\tCh = Character.toLowerCase(Ch);\n\t\t//char alp = 97;\n\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t//a to z = 97 to 122\n\t\t\tif(Ch == 'a' + i){\n\t\t\t\tlist[i]++;\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tstatic int list[] = new int[26];\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\ttry{\n\t\t\twhile(scan.hasNext()){\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tchar ch[] = str.toCharArray();\n\t\t\t\tfor(int i = 0; i < ch.length; i++){\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(IllegalStateException e){\n\t\t\t/*char alp = 97;\n\t\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t\t}*/\n\t\t}\n\t\tscan.close();\n\t\t//char alp = 97;\n\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t//alp = Character.valueOf((char) (97 + i));\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + list[i]);\n\t\t}\n\t}\n\n\tpublic static void CountingCharacters(char Ch){\n\t\tCh = Character.toLowerCase(Ch);\n\t\t//char alp = 97;\n\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t//a to z = 97 to 122\n\t\t\tif(Ch == 'a' + i){\n\t\t\t\tlist[i]++;\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"static int list[] = new int[26];",
"list",
"new int[26]",
"26",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\ttry{\n\t\t\twhile(scan.hasNext()){\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tchar ch[] = str.toCharArray();\n\t\t\t\tfor(int i = 0; i < ch.length; i++){\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(IllegalStateException e){\n\t\t\t/*char alp = 97;\n\t\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t\t}*/\n\t\t}\n\t\tscan.close();\n\t\t//char alp = 97;\n\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t//alp = Character.valueOf((char) (97 + i));\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + list[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\ttry{\n\t\t\twhile(scan.hasNext()){\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tchar ch[] = str.toCharArray();\n\t\t\t\tfor(int i = 0; i < ch.length; i++){\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(IllegalStateException e){\n\t\t\t/*char alp = 97;\n\t\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t\t}*/\n\t\t}\n\t\tscan.close();\n\t\t//char alp = 97;\n\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t//alp = Character.valueOf((char) (97 + i));\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + list[i]);\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"try{\n\t\t\twhile(scan.hasNext()){\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tchar ch[] = str.toCharArray();\n\t\t\t\tfor(int i = 0; i < ch.length; i++){\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(IllegalStateException e){\n\t\t\t/*char alp = 97;\n\t\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t\t}*/\n\t\t}",
"catch(IllegalStateException e){\n\t\t\t/*char alp = 97;\n\t\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t\t}*/\n\t\t}",
"IllegalStateException e",
"{\n\t\t\t/*char alp = 97;\n\t\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t\t}*/\n\t\t}",
"{\n\t\t\twhile(scan.hasNext()){\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tchar ch[] = str.toCharArray();\n\t\t\t\tfor(int i = 0; i < ch.length; i++){\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"while(scan.hasNext()){\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tchar ch[] = str.toCharArray();\n\t\t\t\tfor(int i = 0; i < ch.length; i++){\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}\n\t\t\t}",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tchar ch[] = str.toCharArray();\n\t\t\t\tfor(int i = 0; i < ch.length; i++){\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}\n\t\t\t}",
"String str = scan.nextLine();",
"str",
"scan.nextLine()",
"scan.nextLine",
"scan",
"char ch[] = str.toCharArray();",
"ch",
"str.toCharArray()",
"str.toCharArray",
"str",
"for(int i = 0; i < ch.length; i++){\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < ch.length",
"i",
"ch.length",
"ch",
"ch.length",
"i++",
"i++",
"i",
"{\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}",
"{\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}",
"CountingCharacters(ch[i])",
"CountingCharacters",
"ch[i]",
"ch",
"i",
"scan.close()",
"scan.close",
"scan",
"for(int i = 0; i < list.length; i++){\n\t\t\t//alp = Character.valueOf((char) (97 + i));\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + list[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\t//alp = Character.valueOf((char) (97 + i));\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + list[i]);\n\t\t}",
"{\n\t\t\t//alp = Character.valueOf((char) (97 + i));\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + list[i]);\n\t\t}",
"System.out.println((char)('a' + i) + \" : \" + list[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)('a' + i) + \" : \" + list[i]",
"(char)('a' + i) + \" : \" + list[i]",
"(char)('a' + i)",
"'a'",
"i",
"\" : \"",
"list[i]",
"list",
"i",
"String[] args",
"args",
"public static void CountingCharacters(char Ch){\n\t\tCh = Character.toLowerCase(Ch);\n\t\t//char alp = 97;\n\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t//a to z = 97 to 122\n\t\t\tif(Ch == 'a' + i){\n\t\t\t\tlist[i]++;\n\t\t\t}\n\t\t}\n\t}",
"CountingCharacters",
"{\n\t\tCh = Character.toLowerCase(Ch);\n\t\t//char alp = 97;\n\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t//a to z = 97 to 122\n\t\t\tif(Ch == 'a' + i){\n\t\t\t\tlist[i]++;\n\t\t\t}\n\t\t}\n\t}",
"Ch = Character.toLowerCase(Ch)",
"Ch",
"Character.toLowerCase(Ch)",
"Character.toLowerCase",
"Character",
"Ch",
"for(int i = 0; i < list.length; i++){\n\t\t\t//a to z = 97 to 122\n\t\t\tif(Ch == 'a' + i){\n\t\t\t\tlist[i]++;\n\t\t\t}\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\t//a to z = 97 to 122\n\t\t\tif(Ch == 'a' + i){\n\t\t\t\tlist[i]++;\n\t\t\t}\n\t\t}",
"{\n\t\t\t//a to z = 97 to 122\n\t\t\tif(Ch == 'a' + i){\n\t\t\t\tlist[i]++;\n\t\t\t}\n\t\t}",
"if(Ch == 'a' + i){\n\t\t\t\tlist[i]++;\n\t\t\t}",
"Ch == 'a' + i",
"Ch",
"'a' + i",
"'a'",
"i",
"{\n\t\t\t\tlist[i]++;\n\t\t\t}",
"list[i]++",
"list[i]",
"list",
"i",
"char Ch",
"Ch",
"public class Main {\n\tstatic int list[] = new int[26];\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\ttry{\n\t\t\twhile(scan.hasNext()){\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tchar ch[] = str.toCharArray();\n\t\t\t\tfor(int i = 0; i < ch.length; i++){\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(IllegalStateException e){\n\t\t\t/*char alp = 97;\n\t\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t\t}*/\n\t\t}\n\t\tscan.close();\n\t\t//char alp = 97;\n\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t//alp = Character.valueOf((char) (97 + i));\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + list[i]);\n\t\t}\n\t}\n\n\tpublic static void CountingCharacters(char Ch){\n\t\tCh = Character.toLowerCase(Ch);\n\t\t//char alp = 97;\n\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t//a to z = 97 to 122\n\t\t\tif(Ch == 'a' + i){\n\t\t\t\tlist[i]++;\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main {\n\tstatic int list[] = new int[26];\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\ttry{\n\t\t\twhile(scan.hasNext()){\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tchar ch[] = str.toCharArray();\n\t\t\t\tfor(int i = 0; i < ch.length; i++){\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(IllegalStateException e){\n\t\t\t/*char alp = 97;\n\t\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t\t}*/\n\t\t}\n\t\tscan.close();\n\t\t//char alp = 97;\n\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t//alp = Character.valueOf((char) (97 + i));\n\t\t\tSystem.out.println((char)('a' + i) + \" : \" + list[i]);\n\t\t}\n\t}\n\n\tpublic static void CountingCharacters(char Ch){\n\t\tCh = Character.toLowerCase(Ch);\n\t\t//char alp = 97;\n\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t//a to z = 97 to 122\n\t\t\tif(Ch == 'a' + i){\n\t\t\t\tlist[i]++;\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
static int list[] = new int[26];
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
try{
while(scan.hasNext()){
String str = scan.nextLine();
char ch[] = str.toCharArray();
for(int i = 0; i < ch.length; i++){
/*if(ch[i] == '.'){
scan.close();
}*/
CountingCharacters(ch[i]);
}
}
}catch(IllegalStateException e){
/*char alp = 97;
for(int i = 0; i < list.length; i++){
alp = Character.valueOf((char) (97 + i));
System.out.println(alp + " : " + list[i]);
}*/
}
scan.close();
//char alp = 97;
for(int i = 0; i < list.length; i++){
//alp = Character.valueOf((char) (97 + i));
System.out.println((char)('a' + i) + " : " + list[i]);
}
}
public static void CountingCharacters(char Ch){
Ch = Character.toLowerCase(Ch);
//char alp = 97;
for(int i = 0; i < list.length; i++){
//a to z = 97 to 122
if(Ch == 'a' + i){
list[i]++;
}
}
}
} |
[
7,
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,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
17,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
42,
2,
13,
17,
30,
41,
13,
4,
18,
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,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
18,
13,
13,
30,
40,
18,
13,
13,
0,
13,
4,
18,
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
],
[
178,
8
],
[
178,
9
],
[
9,
10
],
[
9,
11
],
[
11,
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
],
[
11,
41
],
[
41,
42
],
[
41,
43
],
[
44,
45
],
[
44,
46
],
[
11,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
47,
57
],
[
57,
58
],
[
58,
59
],
[
47,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
11,
66
],
[
66,
67
],
[
66,
68
],
[
11,
69
],
[
69,
70
],
[
69,
71
],
[
11,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
11,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
81,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
88,
98
],
[
98,
99
],
[
99,
100
],
[
88,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
102,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
119,
121
],
[
112,
122
],
[
122,
123
],
[
123,
124
],
[
112,
125
],
[
126,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
133,
134
],
[
133,
135
],
[
127,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
81,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
11,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
146,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
153,
155
],
[
146,
156
],
[
156,
157
],
[
157,
158
],
[
146,
159
],
[
160,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
161,
166
],
[
167,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
9,
175
],
[
175,
176
],
[
0,
177
],
[
177,
178
],
[
177,
179
]
]
| [
"import java.io.*;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception{\n\t\t// TODO Auto-generated method stub\n\t\tString[] sabc = {\"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[] nabc = new int[sabc.length];\n\t\tfor(int i=0; i<nabc.length; i++)nabc[i]=0;\n\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\t\n\t\tString str=br.readLine();\n\t\twhile(str !=null){\t\t\n\t\t\n\t\t\tString[] strArray = str.split(\"\");\n\t\t\tfor (int i = 0; i < strArray.length; i++) {\n\t\t\t\tstrArray[i] = strArray[i].toLowerCase();\n\t\t\t\tfor(int j = 0; j < sabc.length; j++){\n\t\t\t\t\tif(strArray[i].equals(sabc[j])){\n\t\t\t\t\t\tnabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tstr = br.readLine();\n\t\t}\n\t\tfor(int j=0; j<sabc.length; j++){\n\t\t\tSystem.out.println(sabc[j] + \" : \" + nabc[j]);\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception{\n\t\t// TODO Auto-generated method stub\n\t\tString[] sabc = {\"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[] nabc = new int[sabc.length];\n\t\tfor(int i=0; i<nabc.length; i++)nabc[i]=0;\n\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\t\n\t\tString str=br.readLine();\n\t\twhile(str !=null){\t\t\n\t\t\n\t\t\tString[] strArray = str.split(\"\");\n\t\t\tfor (int i = 0; i < strArray.length; i++) {\n\t\t\t\tstrArray[i] = strArray[i].toLowerCase();\n\t\t\t\tfor(int j = 0; j < sabc.length; j++){\n\t\t\t\t\tif(strArray[i].equals(sabc[j])){\n\t\t\t\t\t\tnabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tstr = br.readLine();\n\t\t}\n\t\tfor(int j=0; j<sabc.length; j++){\n\t\t\tSystem.out.println(sabc[j] + \" : \" + nabc[j]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception{\n\t\t// TODO Auto-generated method stub\n\t\tString[] sabc = {\"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[] nabc = new int[sabc.length];\n\t\tfor(int i=0; i<nabc.length; i++)nabc[i]=0;\n\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\t\n\t\tString str=br.readLine();\n\t\twhile(str !=null){\t\t\n\t\t\n\t\t\tString[] strArray = str.split(\"\");\n\t\t\tfor (int i = 0; i < strArray.length; i++) {\n\t\t\t\tstrArray[i] = strArray[i].toLowerCase();\n\t\t\t\tfor(int j = 0; j < sabc.length; j++){\n\t\t\t\t\tif(strArray[i].equals(sabc[j])){\n\t\t\t\t\t\tnabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tstr = br.readLine();\n\t\t}\n\t\tfor(int j=0; j<sabc.length; j++){\n\t\t\tSystem.out.println(sabc[j] + \" : \" + nabc[j]);\n\t\t}\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tString[] sabc = {\"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[] nabc = new int[sabc.length];\n\t\tfor(int i=0; i<nabc.length; i++)nabc[i]=0;\n\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\t\n\t\tString str=br.readLine();\n\t\twhile(str !=null){\t\t\n\t\t\n\t\t\tString[] strArray = str.split(\"\");\n\t\t\tfor (int i = 0; i < strArray.length; i++) {\n\t\t\t\tstrArray[i] = strArray[i].toLowerCase();\n\t\t\t\tfor(int j = 0; j < sabc.length; j++){\n\t\t\t\t\tif(strArray[i].equals(sabc[j])){\n\t\t\t\t\t\tnabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tstr = br.readLine();\n\t\t}\n\t\tfor(int j=0; j<sabc.length; j++){\n\t\t\tSystem.out.println(sabc[j] + \" : \" + nabc[j]);\n\t\t}\n\t}",
"String[] sabc = {\"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\"};",
"sabc",
"{\"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[] nabc = new int[sabc.length];",
"nabc",
"new int[sabc.length]",
"sabc.length",
"sabc",
"sabc.length",
"for(int i=0; i<nabc.length; i++)nabc[i]=0;",
"int i=0;",
"int i=0;",
"i",
"0",
"i<nabc.length",
"i",
"nabc.length",
"nabc",
"nabc.length",
"i++",
"i++",
"i",
"nabc[i]=0;",
"nabc[i]=0",
"nabc[i]",
"nabc",
"i",
"0",
"InputStreamReader isr = new InputStreamReader(System.in);",
"isr",
"new InputStreamReader(System.in)",
"BufferedReader br = new BufferedReader(isr);",
"br",
"new BufferedReader(isr)",
"String str=br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"while(str !=null){\t\t\n\t\t\n\t\t\tString[] strArray = str.split(\"\");\n\t\t\tfor (int i = 0; i < strArray.length; i++) {\n\t\t\t\tstrArray[i] = strArray[i].toLowerCase();\n\t\t\t\tfor(int j = 0; j < sabc.length; j++){\n\t\t\t\t\tif(strArray[i].equals(sabc[j])){\n\t\t\t\t\t\tnabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tstr = br.readLine();\n\t\t}",
"str !=null",
"str",
"null",
"{\t\t\n\t\t\n\t\t\tString[] strArray = str.split(\"\");\n\t\t\tfor (int i = 0; i < strArray.length; i++) {\n\t\t\t\tstrArray[i] = strArray[i].toLowerCase();\n\t\t\t\tfor(int j = 0; j < sabc.length; j++){\n\t\t\t\t\tif(strArray[i].equals(sabc[j])){\n\t\t\t\t\t\tnabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tstr = br.readLine();\n\t\t}",
"String[] strArray = str.split(\"\");",
"strArray",
"str.split(\"\")",
"str.split",
"str",
"\"\"",
"for (int i = 0; i < strArray.length; i++) {\n\t\t\t\tstrArray[i] = strArray[i].toLowerCase();\n\t\t\t\tfor(int j = 0; j < sabc.length; j++){\n\t\t\t\t\tif(strArray[i].equals(sabc[j])){\n\t\t\t\t\t\tnabc[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 < strArray.length",
"i",
"strArray.length",
"strArray",
"strArray.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tstrArray[i] = strArray[i].toLowerCase();\n\t\t\t\tfor(int j = 0; j < sabc.length; j++){\n\t\t\t\t\tif(strArray[i].equals(sabc[j])){\n\t\t\t\t\t\tnabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tstrArray[i] = strArray[i].toLowerCase();\n\t\t\t\tfor(int j = 0; j < sabc.length; j++){\n\t\t\t\t\tif(strArray[i].equals(sabc[j])){\n\t\t\t\t\t\tnabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"strArray[i] = strArray[i].toLowerCase()",
"strArray[i]",
"strArray",
"i",
"strArray[i].toLowerCase()",
"strArray[i].toLowerCase",
"strArray[i]",
"strArray",
"i",
"for(int j = 0; j < sabc.length; j++){\n\t\t\t\t\tif(strArray[i].equals(sabc[j])){\n\t\t\t\t\t\tnabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < sabc.length",
"j",
"sabc.length",
"sabc",
"sabc.length",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tif(strArray[i].equals(sabc[j])){\n\t\t\t\t\t\tnabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif(strArray[i].equals(sabc[j])){\n\t\t\t\t\t\tnabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"if(strArray[i].equals(sabc[j])){\n\t\t\t\t\t\tnabc[j]++;\n\t\t\t\t\t}",
"strArray[i].equals(sabc[j])",
"strArray[i].equals",
"strArray[i]",
"strArray",
"i",
"sabc[j]",
"sabc",
"j",
"{\n\t\t\t\t\t\tnabc[j]++;\n\t\t\t\t\t}",
"nabc[j]++",
"nabc[j]",
"nabc",
"j",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"for(int j=0; j<sabc.length; j++){\n\t\t\tSystem.out.println(sabc[j] + \" : \" + nabc[j]);\n\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<sabc.length",
"j",
"sabc.length",
"sabc",
"sabc.length",
"j++",
"j++",
"j",
"{\n\t\t\tSystem.out.println(sabc[j] + \" : \" + nabc[j]);\n\t\t}",
"{\n\t\t\tSystem.out.println(sabc[j] + \" : \" + nabc[j]);\n\t\t}",
"System.out.println(sabc[j] + \" : \" + nabc[j])",
"System.out.println",
"System.out",
"System",
"System.out",
"sabc[j] + \" : \" + nabc[j]",
"sabc[j] + \" : \" + nabc[j]",
"sabc[j]",
"sabc",
"j",
"\" : \"",
"nabc[j]",
"nabc",
"j",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception{\n\t\t// TODO Auto-generated method stub\n\t\tString[] sabc = {\"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[] nabc = new int[sabc.length];\n\t\tfor(int i=0; i<nabc.length; i++)nabc[i]=0;\n\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\t\n\t\tString str=br.readLine();\n\t\twhile(str !=null){\t\t\n\t\t\n\t\t\tString[] strArray = str.split(\"\");\n\t\t\tfor (int i = 0; i < strArray.length; i++) {\n\t\t\t\tstrArray[i] = strArray[i].toLowerCase();\n\t\t\t\tfor(int j = 0; j < sabc.length; j++){\n\t\t\t\t\tif(strArray[i].equals(sabc[j])){\n\t\t\t\t\t\tnabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tstr = br.readLine();\n\t\t}\n\t\tfor(int j=0; j<sabc.length; j++){\n\t\t\tSystem.out.println(sabc[j] + \" : \" + nabc[j]);\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception{\n\t\t// TODO Auto-generated method stub\n\t\tString[] sabc = {\"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[] nabc = new int[sabc.length];\n\t\tfor(int i=0; i<nabc.length; i++)nabc[i]=0;\n\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\t\n\t\tString str=br.readLine();\n\t\twhile(str !=null){\t\t\n\t\t\n\t\t\tString[] strArray = str.split(\"\");\n\t\t\tfor (int i = 0; i < strArray.length; i++) {\n\t\t\t\tstrArray[i] = strArray[i].toLowerCase();\n\t\t\t\tfor(int j = 0; j < sabc.length; j++){\n\t\t\t\t\tif(strArray[i].equals(sabc[j])){\n\t\t\t\t\t\tnabc[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tstr = br.readLine();\n\t\t}\n\t\tfor(int j=0; j<sabc.length; j++){\n\t\t\tSystem.out.println(sabc[j] + \" : \" + nabc[j]);\n\t\t}\n\t}\n}",
"Main"
]
| import java.io.*;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception{
// TODO Auto-generated method stub
String[] sabc = {"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[] nabc = new int[sabc.length];
for(int i=0; i<nabc.length; i++)nabc[i]=0;
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
String str=br.readLine();
while(str !=null){
String[] strArray = str.split("");
for (int i = 0; i < strArray.length; i++) {
strArray[i] = strArray[i].toLowerCase();
for(int j = 0; j < sabc.length; j++){
if(strArray[i].equals(sabc[j])){
nabc[j]++;
}
}
}
str = br.readLine();
}
for(int j=0; j<sabc.length; j++){
System.out.println(sabc[j] + " : " + nabc[j]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
17,
41,
13,
20,
2,
2,
17,
17,
17,
41,
13,
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,
18,
13,
13,
4,
18,
13,
13,
40,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
0,
18,
13,
13,
2,
17,
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,
2,
2,
17,
17,
17,
1,
40,
13,
30,
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
],
[
153,
5
],
[
153,
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
],
[
19,
21
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
8,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
33,
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
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
53,
62
],
[
62,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
8,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
80,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
97,
99
],
[
79,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
101,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
100,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
8,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
121,
133
],
[
133,
134
],
[
134,
135
],
[
121,
136
],
[
137,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
138,
144
],
[
144,
145
],
[
144,
146
],
[
138,
147
],
[
147,
148
],
[
147,
149
],
[
6,
150
],
[
150,
151
],
[
0,
152
],
[
152,
153
],
[
152,
154
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\t\tpublic static void main(String args[]) {\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tchar array[] = new char[1200], cnt = 0;\n\t\t\tint code[] = new int['z'-'a'+1];\n\t\t\tString str;\n\t\t\t\n\t\t\twhile(sc.hasNext()) {\n\t\t\t\tstr = sc.next();\n\t\t\t\tfor(int j = 0; j < str.length(); j++) {\n\t\t\t\t\tarray[cnt] = str.charAt(j);\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsc.close();\n\t\t\t\n\t\t\tfor(int i = 0; i < cnt; i++) {\n\t\t\t\tif(array[i] <= 90 && array[i] >= 65) {\n\t\t\t\t\tarray[i] += 'a' - 'A';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(array[i] >= 97 && array[i] <= 122) {\n\t\t\t\t\tcode[(int) array[i] - 97]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < 'z'-'a'+1; i++) {\n\t\t\t\tSystem.out.printf(\"%c : %d\\n\", 97+i, code[i]);\n\t\t\t}\n\t\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\t\tpublic static void main(String args[]) {\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tchar array[] = new char[1200], cnt = 0;\n\t\t\tint code[] = new int['z'-'a'+1];\n\t\t\tString str;\n\t\t\t\n\t\t\twhile(sc.hasNext()) {\n\t\t\t\tstr = sc.next();\n\t\t\t\tfor(int j = 0; j < str.length(); j++) {\n\t\t\t\t\tarray[cnt] = str.charAt(j);\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsc.close();\n\t\t\t\n\t\t\tfor(int i = 0; i < cnt; i++) {\n\t\t\t\tif(array[i] <= 90 && array[i] >= 65) {\n\t\t\t\t\tarray[i] += 'a' - 'A';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(array[i] >= 97 && array[i] <= 122) {\n\t\t\t\t\tcode[(int) array[i] - 97]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < 'z'-'a'+1; i++) {\n\t\t\t\tSystem.out.printf(\"%c : %d\\n\", 97+i, code[i]);\n\t\t\t}\n\t\t}\n}",
"Main",
"public static void main(String args[]) {\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tchar array[] = new char[1200], cnt = 0;\n\t\t\tint code[] = new int['z'-'a'+1];\n\t\t\tString str;\n\t\t\t\n\t\t\twhile(sc.hasNext()) {\n\t\t\t\tstr = sc.next();\n\t\t\t\tfor(int j = 0; j < str.length(); j++) {\n\t\t\t\t\tarray[cnt] = str.charAt(j);\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsc.close();\n\t\t\t\n\t\t\tfor(int i = 0; i < cnt; i++) {\n\t\t\t\tif(array[i] <= 90 && array[i] >= 65) {\n\t\t\t\t\tarray[i] += 'a' - 'A';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(array[i] >= 97 && array[i] <= 122) {\n\t\t\t\t\tcode[(int) array[i] - 97]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < 'z'-'a'+1; i++) {\n\t\t\t\tSystem.out.printf(\"%c : %d\\n\", 97+i, code[i]);\n\t\t\t}\n\t\t}",
"main",
"{\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tchar array[] = new char[1200], cnt = 0;\n\t\t\tint code[] = new int['z'-'a'+1];\n\t\t\tString str;\n\t\t\t\n\t\t\twhile(sc.hasNext()) {\n\t\t\t\tstr = sc.next();\n\t\t\t\tfor(int j = 0; j < str.length(); j++) {\n\t\t\t\t\tarray[cnt] = str.charAt(j);\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsc.close();\n\t\t\t\n\t\t\tfor(int i = 0; i < cnt; i++) {\n\t\t\t\tif(array[i] <= 90 && array[i] >= 65) {\n\t\t\t\t\tarray[i] += 'a' - 'A';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(array[i] >= 97 && array[i] <= 122) {\n\t\t\t\t\tcode[(int) array[i] - 97]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < 'z'-'a'+1; i++) {\n\t\t\t\tSystem.out.printf(\"%c : %d\\n\", 97+i, code[i]);\n\t\t\t}\n\t\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"char array[] = new char[1200]",
"array",
"new char[1200]",
"1200",
"cnt = 0;",
"cnt",
"0",
"int code[] = new int['z'-'a'+1];",
"code",
"new int['z'-'a'+1]",
"'z'-'a'+1",
"'z'-'a'",
"'z'",
"'a'",
"1",
"String str;",
"str",
"while(sc.hasNext()) {\n\t\t\t\tstr = sc.next();\n\t\t\t\tfor(int j = 0; j < str.length(); j++) {\n\t\t\t\t\tarray[cnt] = str.charAt(j);\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\t\tstr = sc.next();\n\t\t\t\tfor(int j = 0; j < str.length(); j++) {\n\t\t\t\t\tarray[cnt] = str.charAt(j);\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}",
"str = sc.next()",
"str",
"sc.next()",
"sc.next",
"sc",
"for(int j = 0; j < str.length(); j++) {\n\t\t\t\t\tarray[cnt] = str.charAt(j);\n\t\t\t\t\tcnt++;\n\t\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\t\tarray[cnt] = str.charAt(j);\n\t\t\t\t\tcnt++;\n\t\t\t\t}",
"{\n\t\t\t\t\tarray[cnt] = str.charAt(j);\n\t\t\t\t\tcnt++;\n\t\t\t\t}",
"array[cnt] = str.charAt(j)",
"array[cnt]",
"array",
"cnt",
"str.charAt(j)",
"str.charAt",
"str",
"j",
"cnt++",
"cnt",
"sc.close()",
"sc.close",
"sc",
"for(int i = 0; i < cnt; i++) {\n\t\t\t\tif(array[i] <= 90 && array[i] >= 65) {\n\t\t\t\t\tarray[i] += 'a' - 'A';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(array[i] >= 97 && array[i] <= 122) {\n\t\t\t\t\tcode[(int) array[i] - 97]++;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < cnt",
"i",
"cnt",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(array[i] <= 90 && array[i] >= 65) {\n\t\t\t\t\tarray[i] += 'a' - 'A';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(array[i] >= 97 && array[i] <= 122) {\n\t\t\t\t\tcode[(int) array[i] - 97]++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(array[i] <= 90 && array[i] >= 65) {\n\t\t\t\t\tarray[i] += 'a' - 'A';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(array[i] >= 97 && array[i] <= 122) {\n\t\t\t\t\tcode[(int) array[i] - 97]++;\n\t\t\t\t}\n\t\t\t}",
"if(array[i] <= 90 && array[i] >= 65) {\n\t\t\t\t\tarray[i] += 'a' - 'A';\n\t\t\t\t}",
"array[i] <= 90 && array[i] >= 65",
"array[i] <= 90",
"array[i]",
"array",
"i",
"90",
"array[i] >= 65",
"array[i]",
"array",
"i",
"65",
"{\n\t\t\t\t\tarray[i] += 'a' - 'A';\n\t\t\t\t}",
"array[i] += 'a' - 'A'",
"array[i]",
"array",
"i",
"'a' - 'A'",
"'a'",
"'A'",
"if(array[i] >= 97 && array[i] <= 122) {\n\t\t\t\t\tcode[(int) array[i] - 97]++;\n\t\t\t\t}",
"array[i] >= 97 && array[i] <= 122",
"array[i] >= 97",
"array[i]",
"array",
"i",
"97",
"array[i] <= 122",
"array[i]",
"array",
"i",
"122",
"{\n\t\t\t\t\tcode[(int) array[i] - 97]++;\n\t\t\t\t}",
"code[(int) array[i] - 97]++",
"code[(int) array[i] - 97]",
"code",
"(int) array[i] - 97",
"(int) array[i]",
"array",
"i",
"97",
"for(int i = 0; i < 'z'-'a'+1; i++) {\n\t\t\t\tSystem.out.printf(\"%c : %d\\n\", 97+i, code[i]);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 'z'-'a'+1",
"i",
"'z'-'a'+1",
"'z'-'a'",
"'z'",
"'a'",
"1",
"i++",
"i++",
"i",
"{\n\t\t\t\tSystem.out.printf(\"%c : %d\\n\", 97+i, code[i]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.printf(\"%c : %d\\n\", 97+i, code[i]);\n\t\t\t}",
"System.out.printf(\"%c : %d\\n\", 97+i, code[i])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c : %d\\n\"",
"97+i",
"97",
"i",
"code[i]",
"code",
"i",
"String args[]",
"args",
"public class Main {\n\t\tpublic static void main(String args[]) {\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tchar array[] = new char[1200], cnt = 0;\n\t\t\tint code[] = new int['z'-'a'+1];\n\t\t\tString str;\n\t\t\t\n\t\t\twhile(sc.hasNext()) {\n\t\t\t\tstr = sc.next();\n\t\t\t\tfor(int j = 0; j < str.length(); j++) {\n\t\t\t\t\tarray[cnt] = str.charAt(j);\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsc.close();\n\t\t\t\n\t\t\tfor(int i = 0; i < cnt; i++) {\n\t\t\t\tif(array[i] <= 90 && array[i] >= 65) {\n\t\t\t\t\tarray[i] += 'a' - 'A';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(array[i] >= 97 && array[i] <= 122) {\n\t\t\t\t\tcode[(int) array[i] - 97]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < 'z'-'a'+1; i++) {\n\t\t\t\tSystem.out.printf(\"%c : %d\\n\", 97+i, code[i]);\n\t\t\t}\n\t\t}\n}",
"public class Main {\n\t\tpublic static void main(String args[]) {\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tchar array[] = new char[1200], cnt = 0;\n\t\t\tint code[] = new int['z'-'a'+1];\n\t\t\tString str;\n\t\t\t\n\t\t\twhile(sc.hasNext()) {\n\t\t\t\tstr = sc.next();\n\t\t\t\tfor(int j = 0; j < str.length(); j++) {\n\t\t\t\t\tarray[cnt] = str.charAt(j);\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsc.close();\n\t\t\t\n\t\t\tfor(int i = 0; i < cnt; i++) {\n\t\t\t\tif(array[i] <= 90 && array[i] >= 65) {\n\t\t\t\t\tarray[i] += 'a' - 'A';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(array[i] >= 97 && array[i] <= 122) {\n\t\t\t\t\tcode[(int) array[i] - 97]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < 'z'-'a'+1; i++) {\n\t\t\t\tSystem.out.printf(\"%c : %d\\n\", 97+i, code[i]);\n\t\t\t}\n\t\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
char array[] = new char[1200], cnt = 0;
int code[] = new int['z'-'a'+1];
String str;
while(sc.hasNext()) {
str = sc.next();
for(int j = 0; j < str.length(); j++) {
array[cnt] = str.charAt(j);
cnt++;
}
}
sc.close();
for(int i = 0; i < cnt; i++) {
if(array[i] <= 90 && array[i] >= 65) {
array[i] += 'a' - 'A';
}
if(array[i] >= 97 && array[i] <= 122) {
code[(int) array[i] - 97]++;
}
}
for(int i = 0; i < 'z'-'a'+1; i++) {
System.out.printf("%c : %d\n", 97+i, code[i]);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
11,
1,
30,
30,
14,
2,
4,
18,
13,
17,
3,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
18,
13,
13,
2,
13,
17,
2,
18,
13,
13,
2,
13,
17,
30,
40,
18,
13,
13,
3,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
4,
18,
18,
13,
13,
0,
13,
2,
2,
2,
13,
17,
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
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
21,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
22,
28
],
[
21,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
21,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
21,
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
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
54,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
80,
82
],
[
67,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
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
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
106,
107
],
[
106,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
109,
114
],
[
114,
115
],
[
114,
116
],
[
6,
117
],
[
117,
118
]
]
| [
"import java.util.*;\n\nclass Main{\n public static void main(String[] args){\n \tScanner sc= new Scanner(System.in);\n \tint a[]=new int[26];String s;\n \t\n \tfor(;;){ \n \t\tif(sc.hasNextLine()==false) break;\n \t\ts=sc.nextLine(); \n \tchar CA[] = s.toCharArray(); \n \t\n \tfor(int i=0;i<s.length();i++){\n \t\tfor(int j=0;j<26;j++){\n \t\t\tif(CA[i]==j+97||CA[i]==j+65){\n \t\t\ta[j]++;break;\n \t\t}\n \t}\n }\n \t}\n \t\n \tfor(int j=0;j<26;j++)System.out.println(s=(char)(j+97)+\" : \"+a[j]);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[] args){\n \tScanner sc= new Scanner(System.in);\n \tint a[]=new int[26];String s;\n \t\n \tfor(;;){ \n \t\tif(sc.hasNextLine()==false) break;\n \t\ts=sc.nextLine(); \n \tchar CA[] = s.toCharArray(); \n \t\n \tfor(int i=0;i<s.length();i++){\n \t\tfor(int j=0;j<26;j++){\n \t\t\tif(CA[i]==j+97||CA[i]==j+65){\n \t\t\ta[j]++;break;\n \t\t}\n \t}\n }\n \t}\n \t\n \tfor(int j=0;j<26;j++)System.out.println(s=(char)(j+97)+\" : \"+a[j]);\n }\n}",
"Main",
"public static void main(String[] args){\n \tScanner sc= new Scanner(System.in);\n \tint a[]=new int[26];String s;\n \t\n \tfor(;;){ \n \t\tif(sc.hasNextLine()==false) break;\n \t\ts=sc.nextLine(); \n \tchar CA[] = s.toCharArray(); \n \t\n \tfor(int i=0;i<s.length();i++){\n \t\tfor(int j=0;j<26;j++){\n \t\t\tif(CA[i]==j+97||CA[i]==j+65){\n \t\t\ta[j]++;break;\n \t\t}\n \t}\n }\n \t}\n \t\n \tfor(int j=0;j<26;j++)System.out.println(s=(char)(j+97)+\" : \"+a[j]);\n }",
"main",
"{\n \tScanner sc= new Scanner(System.in);\n \tint a[]=new int[26];String s;\n \t\n \tfor(;;){ \n \t\tif(sc.hasNextLine()==false) break;\n \t\ts=sc.nextLine(); \n \tchar CA[] = s.toCharArray(); \n \t\n \tfor(int i=0;i<s.length();i++){\n \t\tfor(int j=0;j<26;j++){\n \t\t\tif(CA[i]==j+97||CA[i]==j+65){\n \t\t\ta[j]++;break;\n \t\t}\n \t}\n }\n \t}\n \t\n \tfor(int j=0;j<26;j++)System.out.println(s=(char)(j+97)+\" : \"+a[j]);\n }",
"Scanner sc= new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a[]=new int[26];",
"a",
"new int[26]",
"26",
"String s;",
"s",
"for(;;){ \n \t\tif(sc.hasNextLine()==false) break;\n \t\ts=sc.nextLine(); \n \tchar CA[] = s.toCharArray(); \n \t\n \tfor(int i=0;i<s.length();i++){\n \t\tfor(int j=0;j<26;j++){\n \t\t\tif(CA[i]==j+97||CA[i]==j+65){\n \t\t\ta[j]++;break;\n \t\t}\n \t}\n }\n \t}",
";",
"{ \n \t\tif(sc.hasNextLine()==false) break;\n \t\ts=sc.nextLine(); \n \tchar CA[] = s.toCharArray(); \n \t\n \tfor(int i=0;i<s.length();i++){\n \t\tfor(int j=0;j<26;j++){\n \t\t\tif(CA[i]==j+97||CA[i]==j+65){\n \t\t\ta[j]++;break;\n \t\t}\n \t}\n }\n \t}",
"{ \n \t\tif(sc.hasNextLine()==false) break;\n \t\ts=sc.nextLine(); \n \tchar CA[] = s.toCharArray(); \n \t\n \tfor(int i=0;i<s.length();i++){\n \t\tfor(int j=0;j<26;j++){\n \t\t\tif(CA[i]==j+97||CA[i]==j+65){\n \t\t\ta[j]++;break;\n \t\t}\n \t}\n }\n \t}",
"if(sc.hasNextLine()==false) break;",
"sc.hasNextLine()==false",
"sc.hasNextLine()",
"sc.hasNextLine",
"sc",
"false",
"break;",
"s=sc.nextLine()",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"char CA[] = s.toCharArray();",
"CA",
"s.toCharArray()",
"s.toCharArray",
"s",
"for(int i=0;i<s.length();i++){\n \t\tfor(int j=0;j<26;j++){\n \t\t\tif(CA[i]==j+97||CA[i]==j+65){\n \t\t\ta[j]++;break;\n \t\t}\n \t}\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n \t\tfor(int j=0;j<26;j++){\n \t\t\tif(CA[i]==j+97||CA[i]==j+65){\n \t\t\ta[j]++;break;\n \t\t}\n \t}\n }",
"{\n \t\tfor(int j=0;j<26;j++){\n \t\t\tif(CA[i]==j+97||CA[i]==j+65){\n \t\t\ta[j]++;break;\n \t\t}\n \t}\n }",
"for(int j=0;j<26;j++){\n \t\t\tif(CA[i]==j+97||CA[i]==j+65){\n \t\t\ta[j]++;break;\n \t\t}\n \t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<26",
"j",
"26",
"j++",
"j++",
"j",
"{\n \t\t\tif(CA[i]==j+97||CA[i]==j+65){\n \t\t\ta[j]++;break;\n \t\t}\n \t}",
"{\n \t\t\tif(CA[i]==j+97||CA[i]==j+65){\n \t\t\ta[j]++;break;\n \t\t}\n \t}",
"if(CA[i]==j+97||CA[i]==j+65){\n \t\t\ta[j]++;break;\n \t\t}",
"CA[i]==j+97||CA[i]==j+65",
"CA[i]==j+97",
"CA[i]",
"CA",
"i",
"j+97",
"j",
"97",
"CA[i]==j+65",
"CA[i]",
"CA",
"i",
"j+65",
"j",
"65",
"{\n \t\t\ta[j]++;break;\n \t\t}",
"a[j]++",
"a[j]",
"a",
"j",
"break;",
"for(int j=0;j<26;j++)System.out.println(s=(char)(j+97)+\" : \"+a[j]);",
"int j=0;",
"int j=0;",
"j",
"0",
"j<26",
"j",
"26",
"j++",
"j++",
"j",
"System.out.println(s=(char)(j+97)+\" : \"+a[j]);",
"System.out.println(s=(char)(j+97)+\" : \"+a[j])",
"System.out.println",
"System.out",
"System",
"System.out",
"s=(char)(j+97)+\" : \"+a[j]",
"s",
"(char)(j+97)+\" : \"+a[j]",
"(char)(j+97)+\" : \"+a[j]",
"(char)(j+97)",
"j",
"97",
"\" : \"",
"a[j]",
"a",
"j",
"String[] args",
"args"
]
| import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc= new Scanner(System.in);
int a[]=new int[26];String s;
for(;;){
if(sc.hasNextLine()==false) break;
s=sc.nextLine();
char CA[] = s.toCharArray();
for(int i=0;i<s.length();i++){
for(int j=0;j<26;j++){
if(CA[i]==j+97||CA[i]==j+65){
a[j]++;break;
}
}
}
}
for(int j=0;j<26;j++)System.out.println(s=(char)(j+97)+" : "+a[j]);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
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,
14,
2,
2,
2,
4,
18,
13,
13,
17,
17,
2,
2,
4,
18,
13,
13,
17,
17,
30,
40,
18,
13,
2,
4,
18,
13,
13,
17,
14,
2,
2,
2,
4,
18,
13,
13,
17,
17,
2,
2,
4,
18,
13,
13,
17,
17,
30,
40,
18,
13,
2,
4,
18,
13,
13,
17,
14,
2,
4,
18,
13,
17,
30,
3,
4,
18,
13,
41,
13,
17,
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
],
[
142,
5
],
[
142,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
13
],
[
13,
14
],
[
13,
15
],
[
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
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
44,
49
],
[
43,
50
],
[
42,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
52,
57
],
[
51,
58
],
[
41,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
63,
68
],
[
41,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
72,
77
],
[
71,
78
],
[
70,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
80,
85
],
[
79,
86
],
[
69,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
91,
96
],
[
40,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
98,
102
],
[
97,
103
],
[
103,
104
],
[
8,
105
],
[
105,
106
],
[
106,
107
],
[
8,
108
],
[
108,
109
],
[
108,
110
],
[
8,
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
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
130,
135
],
[
130,
136
],
[
136,
137
],
[
136,
138
],
[
6,
139
],
[
139,
140
],
[
0,
141
],
[
141,
142
],
[
141,
143
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tint[] count = new int[26];\n\t\tScanner scan = new Scanner(System.in);\n\t\tdo { //not false\n\t\t\tString str = scan.nextLine();\n\t\t\tfor(int i=0;i < str.length(); i++) {\n\t\t\t\tif(str.charAt(i) - 'a' >= 0 && str.charAt(i) - 'a' < 26) {\n\t\t\t\t\tcount[str.charAt(i) - 'a']++;\n\t\t\t\t}else if(str.charAt(i) - 'A' >= 0 && str.charAt(i) - 'A' < 26) {\n\t\t\t\t\tcount[str.charAt(i) - 'A']++;\n\t\t\t\t}if(str.length() == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(scan.hasNextLine());\n\t\tscan.close();\n\t\tString str2 = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tfor(int j=0; j<26; j++) {\n\t\t\tSystem.out.println(str2.charAt(j)+\" : \"+count[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\t\tint[] count = new int[26];\n\t\tScanner scan = new Scanner(System.in);\n\t\tdo { //not false\n\t\t\tString str = scan.nextLine();\n\t\t\tfor(int i=0;i < str.length(); i++) {\n\t\t\t\tif(str.charAt(i) - 'a' >= 0 && str.charAt(i) - 'a' < 26) {\n\t\t\t\t\tcount[str.charAt(i) - 'a']++;\n\t\t\t\t}else if(str.charAt(i) - 'A' >= 0 && str.charAt(i) - 'A' < 26) {\n\t\t\t\t\tcount[str.charAt(i) - 'A']++;\n\t\t\t\t}if(str.length() == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(scan.hasNextLine());\n\t\tscan.close();\n\t\tString str2 = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tfor(int j=0; j<26; j++) {\n\t\t\tSystem.out.println(str2.charAt(j)+\" : \"+count[j]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tint[] count = new int[26];\n\t\tScanner scan = new Scanner(System.in);\n\t\tdo { //not false\n\t\t\tString str = scan.nextLine();\n\t\t\tfor(int i=0;i < str.length(); i++) {\n\t\t\t\tif(str.charAt(i) - 'a' >= 0 && str.charAt(i) - 'a' < 26) {\n\t\t\t\t\tcount[str.charAt(i) - 'a']++;\n\t\t\t\t}else if(str.charAt(i) - 'A' >= 0 && str.charAt(i) - 'A' < 26) {\n\t\t\t\t\tcount[str.charAt(i) - 'A']++;\n\t\t\t\t}if(str.length() == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(scan.hasNextLine());\n\t\tscan.close();\n\t\tString str2 = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tfor(int j=0; j<26; j++) {\n\t\t\tSystem.out.println(str2.charAt(j)+\" : \"+count[j]);\n\t\t}\n\t}",
"main",
"{\n\t\tint[] count = new int[26];\n\t\tScanner scan = new Scanner(System.in);\n\t\tdo { //not false\n\t\t\tString str = scan.nextLine();\n\t\t\tfor(int i=0;i < str.length(); i++) {\n\t\t\t\tif(str.charAt(i) - 'a' >= 0 && str.charAt(i) - 'a' < 26) {\n\t\t\t\t\tcount[str.charAt(i) - 'a']++;\n\t\t\t\t}else if(str.charAt(i) - 'A' >= 0 && str.charAt(i) - 'A' < 26) {\n\t\t\t\t\tcount[str.charAt(i) - 'A']++;\n\t\t\t\t}if(str.length() == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(scan.hasNextLine());\n\t\tscan.close();\n\t\tString str2 = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tfor(int j=0; j<26; j++) {\n\t\t\tSystem.out.println(str2.charAt(j)+\" : \"+count[j]);\n\t\t}\n\t}",
"int[] count = new int[26];",
"count",
"new int[26]",
"26",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"do { //not false\n\t\t\tString str = scan.nextLine();\n\t\t\tfor(int i=0;i < str.length(); i++) {\n\t\t\t\tif(str.charAt(i) - 'a' >= 0 && str.charAt(i) - 'a' < 26) {\n\t\t\t\t\tcount[str.charAt(i) - 'a']++;\n\t\t\t\t}else if(str.charAt(i) - 'A' >= 0 && str.charAt(i) - 'A' < 26) {\n\t\t\t\t\tcount[str.charAt(i) - 'A']++;\n\t\t\t\t}if(str.length() == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(scan.hasNextLine());",
"scan.hasNextLine()",
"scan.hasNextLine",
"scan",
"{ //not false\n\t\t\tString str = scan.nextLine();\n\t\t\tfor(int i=0;i < str.length(); i++) {\n\t\t\t\tif(str.charAt(i) - 'a' >= 0 && str.charAt(i) - 'a' < 26) {\n\t\t\t\t\tcount[str.charAt(i) - 'a']++;\n\t\t\t\t}else if(str.charAt(i) - 'A' >= 0 && str.charAt(i) - 'A' < 26) {\n\t\t\t\t\tcount[str.charAt(i) - 'A']++;\n\t\t\t\t}if(str.length() == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"String str = scan.nextLine();",
"str",
"scan.nextLine()",
"scan.nextLine",
"scan",
"for(int i=0;i < str.length(); i++) {\n\t\t\t\tif(str.charAt(i) - 'a' >= 0 && str.charAt(i) - 'a' < 26) {\n\t\t\t\t\tcount[str.charAt(i) - 'a']++;\n\t\t\t\t}else if(str.charAt(i) - 'A' >= 0 && str.charAt(i) - 'A' < 26) {\n\t\t\t\t\tcount[str.charAt(i) - 'A']++;\n\t\t\t\t}if(str.length() == 0) {\n\t\t\t\t\tbreak;\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' >= 0 && str.charAt(i) - 'a' < 26) {\n\t\t\t\t\tcount[str.charAt(i) - 'a']++;\n\t\t\t\t}else if(str.charAt(i) - 'A' >= 0 && str.charAt(i) - 'A' < 26) {\n\t\t\t\t\tcount[str.charAt(i) - 'A']++;\n\t\t\t\t}if(str.length() == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(str.charAt(i) - 'a' >= 0 && str.charAt(i) - 'a' < 26) {\n\t\t\t\t\tcount[str.charAt(i) - 'a']++;\n\t\t\t\t}else if(str.charAt(i) - 'A' >= 0 && str.charAt(i) - 'A' < 26) {\n\t\t\t\t\tcount[str.charAt(i) - 'A']++;\n\t\t\t\t}if(str.length() == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"if(str.charAt(i) - 'a' >= 0 && str.charAt(i) - 'a' < 26) {\n\t\t\t\t\tcount[str.charAt(i) - 'a']++;\n\t\t\t\t}else if(str.charAt(i) - 'A' >= 0 && str.charAt(i) - 'A' < 26) {\n\t\t\t\t\tcount[str.charAt(i) - 'A']++;\n\t\t\t\t}",
"str.charAt(i) - 'a' >= 0 && str.charAt(i) - 'a' < 26",
"str.charAt(i) - 'a' >= 0",
"str.charAt(i) - 'a'",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"'a'",
"0",
"str.charAt(i) - 'a' < 26",
"str.charAt(i) - 'a'",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"'a'",
"26",
"{\n\t\t\t\t\tcount[str.charAt(i) - 'a']++;\n\t\t\t\t}",
"count[str.charAt(i) - 'a']++",
"count[str.charAt(i) - 'a']",
"count",
"str.charAt(i) - 'a'",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"'a'",
"if(str.charAt(i) - 'A' >= 0 && str.charAt(i) - 'A' < 26) {\n\t\t\t\t\tcount[str.charAt(i) - 'A']++;\n\t\t\t\t}",
"str.charAt(i) - 'A' >= 0 && str.charAt(i) - 'A' < 26",
"str.charAt(i) - 'A' >= 0",
"str.charAt(i) - 'A'",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"'A'",
"0",
"str.charAt(i) - 'A' < 26",
"str.charAt(i) - 'A'",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"'A'",
"26",
"{\n\t\t\t\t\tcount[str.charAt(i) - 'A']++;\n\t\t\t\t}",
"count[str.charAt(i) - 'A']++",
"count[str.charAt(i) - 'A']",
"count",
"str.charAt(i) - 'A'",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"'A'",
"if(str.length() == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"str.length() == 0",
"str.length()",
"str.length",
"str",
"0",
"{\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"break;",
"scan.close()",
"scan.close",
"scan",
"String str2 = \"abcdefghijklmnopqrstuvwxyz\";",
"str2",
"\"abcdefghijklmnopqrstuvwxyz\"",
"for(int j=0; j<26; j++) {\n\t\t\tSystem.out.println(str2.charAt(j)+\" : \"+count[j]);\n\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<26",
"j",
"26",
"j++",
"j++",
"j",
"{\n\t\t\tSystem.out.println(str2.charAt(j)+\" : \"+count[j]);\n\t\t}",
"{\n\t\t\tSystem.out.println(str2.charAt(j)+\" : \"+count[j]);\n\t\t}",
"System.out.println(str2.charAt(j)+\" : \"+count[j])",
"System.out.println",
"System.out",
"System",
"System.out",
"str2.charAt(j)+\" : \"+count[j]",
"str2.charAt(j)+\" : \"+count[j]",
"str2.charAt(j)",
"str2.charAt",
"str2",
"j",
"\" : \"",
"count[j]",
"count",
"j",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tint[] count = new int[26];\n\t\tScanner scan = new Scanner(System.in);\n\t\tdo { //not false\n\t\t\tString str = scan.nextLine();\n\t\t\tfor(int i=0;i < str.length(); i++) {\n\t\t\t\tif(str.charAt(i) - 'a' >= 0 && str.charAt(i) - 'a' < 26) {\n\t\t\t\t\tcount[str.charAt(i) - 'a']++;\n\t\t\t\t}else if(str.charAt(i) - 'A' >= 0 && str.charAt(i) - 'A' < 26) {\n\t\t\t\t\tcount[str.charAt(i) - 'A']++;\n\t\t\t\t}if(str.length() == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(scan.hasNextLine());\n\t\tscan.close();\n\t\tString str2 = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tfor(int j=0; j<26; j++) {\n\t\t\tSystem.out.println(str2.charAt(j)+\" : \"+count[j]);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tint[] count = new int[26];\n\t\tScanner scan = new Scanner(System.in);\n\t\tdo { //not false\n\t\t\tString str = scan.nextLine();\n\t\t\tfor(int i=0;i < str.length(); i++) {\n\t\t\t\tif(str.charAt(i) - 'a' >= 0 && str.charAt(i) - 'a' < 26) {\n\t\t\t\t\tcount[str.charAt(i) - 'a']++;\n\t\t\t\t}else if(str.charAt(i) - 'A' >= 0 && str.charAt(i) - 'A' < 26) {\n\t\t\t\t\tcount[str.charAt(i) - 'A']++;\n\t\t\t\t}if(str.length() == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(scan.hasNextLine());\n\t\tscan.close();\n\t\tString str2 = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tfor(int j=0; j<26; j++) {\n\t\t\tSystem.out.println(str2.charAt(j)+\" : \"+count[j]);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int[] count = new int[26];
Scanner scan = new Scanner(System.in);
do { //not false
String str = scan.nextLine();
for(int i=0;i < str.length(); i++) {
if(str.charAt(i) - 'a' >= 0 && str.charAt(i) - 'a' < 26) {
count[str.charAt(i) - 'a']++;
}else if(str.charAt(i) - 'A' >= 0 && str.charAt(i) - 'A' < 26) {
count[str.charAt(i) - 'A']++;
}if(str.length() == 0) {
break;
}
}
}while(scan.hasNextLine());
scan.close();
String str2 = "abcdefghijklmnopqrstuvwxyz";
for(int j=0; j<26; j++) {
System.out.println(str2.charAt(j)+" : "+count[j]);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
17,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
30,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
13,
18,
13,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
18,
13,
13,
23,
13,
12,
13,
30,
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,
2,
13,
13,
30,
40,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
140,
5
],
[
140,
6
],
[
6,
7
],
[
6,
8
],
[
140,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
12,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
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
],
[
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
],
[
53,
55
],
[
12,
56
],
[
56,
57
],
[
57,
58
],
[
12,
59
],
[
59,
60
],
[
59,
61
],
[
12,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
62,
72
],
[
72,
73
],
[
73,
74
],
[
62,
75
],
[
76,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
82,
84
],
[
76,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
91,
91
],
[
91,
92
],
[
91,
93
],
[
91,
94
],
[
94,
95
],
[
94,
96
],
[
10,
97
],
[
97,
98
],
[
140,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
101,
108
],
[
108,
109
],
[
108,
110
],
[
101,
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
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
129,
131
],
[
126,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
99,
137
],
[
137,
138
],
[
0,
139
],
[
139,
140
],
[
139,
141
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tstatic int list[] = new int[26];\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\ttry{\n\t\t\twhile(scan.hasNext()){\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tchar ch[] = str.toCharArray();\n\t\t\t\tfor(int i = 0; i < ch.length; i++){\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(IllegalStateException e){\n\t\t\t/*char alp = 97;\n\t\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t\t}*/\n\t\t}\n\t\tscan.close();\n\t\tchar alp = 97;\n\t\tfor(int i = 0; i < list.length; i++){\n\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t}\n\t}\n\n\tpublic static void CountingCharacters(char Ch){\n\t\tCh = Character.toLowerCase(Ch);\n\t\tchar alp = 97;\n\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t//a to z = 97 to 122\n\t\t\tif(Ch == alp + i){\n\t\t\t\tlist[i]++;\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tstatic int list[] = new int[26];\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\ttry{\n\t\t\twhile(scan.hasNext()){\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tchar ch[] = str.toCharArray();\n\t\t\t\tfor(int i = 0; i < ch.length; i++){\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(IllegalStateException e){\n\t\t\t/*char alp = 97;\n\t\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t\t}*/\n\t\t}\n\t\tscan.close();\n\t\tchar alp = 97;\n\t\tfor(int i = 0; i < list.length; i++){\n\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t}\n\t}\n\n\tpublic static void CountingCharacters(char Ch){\n\t\tCh = Character.toLowerCase(Ch);\n\t\tchar alp = 97;\n\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t//a to z = 97 to 122\n\t\t\tif(Ch == alp + i){\n\t\t\t\tlist[i]++;\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"static int list[] = new int[26];",
"list",
"new int[26]",
"26",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\ttry{\n\t\t\twhile(scan.hasNext()){\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tchar ch[] = str.toCharArray();\n\t\t\t\tfor(int i = 0; i < ch.length; i++){\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(IllegalStateException e){\n\t\t\t/*char alp = 97;\n\t\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t\t}*/\n\t\t}\n\t\tscan.close();\n\t\tchar alp = 97;\n\t\tfor(int i = 0; i < list.length; i++){\n\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\ttry{\n\t\t\twhile(scan.hasNext()){\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tchar ch[] = str.toCharArray();\n\t\t\t\tfor(int i = 0; i < ch.length; i++){\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(IllegalStateException e){\n\t\t\t/*char alp = 97;\n\t\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t\t}*/\n\t\t}\n\t\tscan.close();\n\t\tchar alp = 97;\n\t\tfor(int i = 0; i < list.length; i++){\n\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"try{\n\t\t\twhile(scan.hasNext()){\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tchar ch[] = str.toCharArray();\n\t\t\t\tfor(int i = 0; i < ch.length; i++){\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(IllegalStateException e){\n\t\t\t/*char alp = 97;\n\t\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t\t}*/\n\t\t}",
"catch(IllegalStateException e){\n\t\t\t/*char alp = 97;\n\t\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t\t}*/\n\t\t}",
"IllegalStateException e",
"{\n\t\t\t/*char alp = 97;\n\t\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t\t}*/\n\t\t}",
"{\n\t\t\twhile(scan.hasNext()){\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tchar ch[] = str.toCharArray();\n\t\t\t\tfor(int i = 0; i < ch.length; i++){\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"while(scan.hasNext()){\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tchar ch[] = str.toCharArray();\n\t\t\t\tfor(int i = 0; i < ch.length; i++){\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}\n\t\t\t}",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tchar ch[] = str.toCharArray();\n\t\t\t\tfor(int i = 0; i < ch.length; i++){\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}\n\t\t\t}",
"String str = scan.nextLine();",
"str",
"scan.nextLine()",
"scan.nextLine",
"scan",
"char ch[] = str.toCharArray();",
"ch",
"str.toCharArray()",
"str.toCharArray",
"str",
"for(int i = 0; i < ch.length; i++){\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < ch.length",
"i",
"ch.length",
"ch",
"ch.length",
"i++",
"i++",
"i",
"{\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}",
"{\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}",
"CountingCharacters(ch[i])",
"CountingCharacters",
"ch[i]",
"ch",
"i",
"scan.close()",
"scan.close",
"scan",
"char alp = 97;",
"alp",
"97",
"for(int i = 0; i < list.length; i++){\n\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\tSystem.out.println(alp + \" : \" + list[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\talp = Character.valueOf((char) (97 + i));\n\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t}",
"{\n\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t}",
"alp = Character.valueOf((char) (97 + i))",
"alp",
"Character.valueOf((char) (97 + i))",
"Character.valueOf",
"Character",
"(char) (97 + i)",
"97",
"i",
"System.out.println(alp + \" : \" + list[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"alp + \" : \" + list[i]",
"alp + \" : \" + list[i]",
"alp",
"\" : \"",
"list[i]",
"list",
"i",
"String[] args",
"args",
"public static void CountingCharacters(char Ch){\n\t\tCh = Character.toLowerCase(Ch);\n\t\tchar alp = 97;\n\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t//a to z = 97 to 122\n\t\t\tif(Ch == alp + i){\n\t\t\t\tlist[i]++;\n\t\t\t}\n\t\t}\n\t}",
"CountingCharacters",
"{\n\t\tCh = Character.toLowerCase(Ch);\n\t\tchar alp = 97;\n\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t//a to z = 97 to 122\n\t\t\tif(Ch == alp + i){\n\t\t\t\tlist[i]++;\n\t\t\t}\n\t\t}\n\t}",
"Ch = Character.toLowerCase(Ch)",
"Ch",
"Character.toLowerCase(Ch)",
"Character.toLowerCase",
"Character",
"Ch",
"char alp = 97;",
"alp",
"97",
"for(int i = 0; i < list.length; i++){\n\t\t\t//a to z = 97 to 122\n\t\t\tif(Ch == alp + i){\n\t\t\t\tlist[i]++;\n\t\t\t}\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\t//a to z = 97 to 122\n\t\t\tif(Ch == alp + i){\n\t\t\t\tlist[i]++;\n\t\t\t}\n\t\t}",
"{\n\t\t\t//a to z = 97 to 122\n\t\t\tif(Ch == alp + i){\n\t\t\t\tlist[i]++;\n\t\t\t}\n\t\t}",
"if(Ch == alp + i){\n\t\t\t\tlist[i]++;\n\t\t\t}",
"Ch == alp + i",
"Ch",
"alp + i",
"alp",
"i",
"{\n\t\t\t\tlist[i]++;\n\t\t\t}",
"list[i]++",
"list[i]",
"list",
"i",
"char Ch",
"Ch",
"public class Main {\n\tstatic int list[] = new int[26];\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\ttry{\n\t\t\twhile(scan.hasNext()){\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tchar ch[] = str.toCharArray();\n\t\t\t\tfor(int i = 0; i < ch.length; i++){\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(IllegalStateException e){\n\t\t\t/*char alp = 97;\n\t\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t\t}*/\n\t\t}\n\t\tscan.close();\n\t\tchar alp = 97;\n\t\tfor(int i = 0; i < list.length; i++){\n\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t}\n\t}\n\n\tpublic static void CountingCharacters(char Ch){\n\t\tCh = Character.toLowerCase(Ch);\n\t\tchar alp = 97;\n\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t//a to z = 97 to 122\n\t\t\tif(Ch == alp + i){\n\t\t\t\tlist[i]++;\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main {\n\tstatic int list[] = new int[26];\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\ttry{\n\t\t\twhile(scan.hasNext()){\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tchar ch[] = str.toCharArray();\n\t\t\t\tfor(int i = 0; i < ch.length; i++){\n\t\t\t\t\t/*if(ch[i] == '.'){\n\t\t\t\t\t\tscan.close();\n\t\t\t\t\t}*/\n\t\t\t\t\tCountingCharacters(ch[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(IllegalStateException e){\n\t\t\t/*char alp = 97;\n\t\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t\t}*/\n\t\t}\n\t\tscan.close();\n\t\tchar alp = 97;\n\t\tfor(int i = 0; i < list.length; i++){\n\t\t\talp = Character.valueOf((char) (97 + i));\n\t\t\tSystem.out.println(alp + \" : \" + list[i]);\n\t\t}\n\t}\n\n\tpublic static void CountingCharacters(char Ch){\n\t\tCh = Character.toLowerCase(Ch);\n\t\tchar alp = 97;\n\t\tfor(int i = 0; i < list.length; i++){\n\t\t\t//a to z = 97 to 122\n\t\t\tif(Ch == alp + i){\n\t\t\t\tlist[i]++;\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
static int list[] = new int[26];
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
try{
while(scan.hasNext()){
String str = scan.nextLine();
char ch[] = str.toCharArray();
for(int i = 0; i < ch.length; i++){
/*if(ch[i] == '.'){
scan.close();
}*/
CountingCharacters(ch[i]);
}
}
}catch(IllegalStateException e){
/*char alp = 97;
for(int i = 0; i < list.length; i++){
alp = Character.valueOf((char) (97 + i));
System.out.println(alp + " : " + list[i]);
}*/
}
scan.close();
char alp = 97;
for(int i = 0; i < list.length; i++){
alp = Character.valueOf((char) (97 + i));
System.out.println(alp + " : " + list[i]);
}
}
public static void CountingCharacters(char Ch){
Ch = Character.toLowerCase(Ch);
char alp = 97;
for(int i = 0; i < list.length; i++){
//a to z = 97 to 122
if(Ch == alp + i){
list[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,
17,
41,
13,
17,
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,
2,
2,
17,
13,
2,
13,
17,
40,
18,
13,
2,
13,
17,
9,
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
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
117,
17
],
[
117,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
28
],
[
28,
29
],
[
28,
30
],
[
20,
31
],
[
31,
32
],
[
31,
33
],
[
20,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
49,
59
],
[
59,
60
],
[
60,
61
],
[
49,
62
],
[
63,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
63,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
70,
84
],
[
20,
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
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
18,
114
],
[
114,
115
],
[
0,
116
],
[
116,
117
],
[
116,
118
]
]
| [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.lang.Character;\nimport java.util.Scanner;\n\n\npublic class Main {\n\n\n\t/**\n\t * main\n\t * @param args\n\t * @throws IOException\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\t//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] cnt = new int[26];//??¢??????????????????26??????????????????\n\t\tint num = 0;\t\t//???????????¨????????°\n\t\tString line = \"\";\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\tline = scan.nextLine();\n\t\t String st = line.toLowerCase();\n\t\t for(int i = 0 ; i < st.length() ; i++){\n\t\t\tchar c = st.charAt(i);\n\t\t\tif('a' <= c && c <= 'z') cnt[c - 'a']++;\n\t\t\telse continue;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//??¨???\n\t\tfor (int i = 0; i < cnt.length; i++) {\n\t\t\tSystem.out.println((char)('a'+i) + \" : \" + cnt[i]);\n\t\t}\n\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.lang.Character;",
"Character",
"java.lang",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\n\t/**\n\t * main\n\t * @param args\n\t * @throws IOException\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\t//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] cnt = new int[26];//??¢??????????????????26??????????????????\n\t\tint num = 0;\t\t//???????????¨????????°\n\t\tString line = \"\";\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\tline = scan.nextLine();\n\t\t String st = line.toLowerCase();\n\t\t for(int i = 0 ; i < st.length() ; i++){\n\t\t\tchar c = st.charAt(i);\n\t\t\tif('a' <= c && c <= 'z') cnt[c - 'a']++;\n\t\t\telse continue;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//??¨???\n\t\tfor (int i = 0; i < cnt.length; i++) {\n\t\t\tSystem.out.println((char)('a'+i) + \" : \" + cnt[i]);\n\t\t}\n\t}\n\t\n}",
"Main",
"/**\n\t * main\n\t * @param args\n\t * @throws IOException\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\t//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] cnt = new int[26];//??¢??????????????????26??????????????????\n\t\tint num = 0;\t\t//???????????¨????????°\n\t\tString line = \"\";\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\tline = scan.nextLine();\n\t\t String st = line.toLowerCase();\n\t\t for(int i = 0 ; i < st.length() ; i++){\n\t\t\tchar c = st.charAt(i);\n\t\t\tif('a' <= c && c <= 'z') cnt[c - 'a']++;\n\t\t\telse continue;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//??¨???\n\t\tfor (int i = 0; i < cnt.length; i++) {\n\t\t\tSystem.out.println((char)('a'+i) + \" : \" + cnt[i]);\n\t\t}\n\t}",
"main",
"{\n\t\t//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] cnt = new int[26];//??¢??????????????????26??????????????????\n\t\tint num = 0;\t\t//???????????¨????????°\n\t\tString line = \"\";\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\tline = scan.nextLine();\n\t\t String st = line.toLowerCase();\n\t\t for(int i = 0 ; i < st.length() ; i++){\n\t\t\tchar c = st.charAt(i);\n\t\t\tif('a' <= c && c <= 'z') cnt[c - 'a']++;\n\t\t\telse continue;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//??¨???\n\t\tfor (int i = 0; i < cnt.length; i++) {\n\t\t\tSystem.out.println((char)('a'+i) + \" : \" + cnt[i]);\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int[] cnt = new int[26];",
"cnt",
"new int[26]",
"26",
"int num = 0;",
"num",
"0",
"String line = \"\";",
"line",
"\"\"",
"while(scan.hasNext()){\n\t\t\tline = scan.nextLine();\n\t\t String st = line.toLowerCase();\n\t\t for(int i = 0 ; i < st.length() ; i++){\n\t\t\tchar c = st.charAt(i);\n\t\t\tif('a' <= c && c <= 'z') cnt[c - 'a']++;\n\t\t\telse continue;\n\t\t\t}\n\t\t}",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n\t\t\tline = scan.nextLine();\n\t\t String st = line.toLowerCase();\n\t\t for(int i = 0 ; i < st.length() ; i++){\n\t\t\tchar c = st.charAt(i);\n\t\t\tif('a' <= c && c <= 'z') cnt[c - 'a']++;\n\t\t\telse continue;\n\t\t\t}\n\t\t}",
"line = scan.nextLine()",
"line",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String st = line.toLowerCase();",
"st",
"line.toLowerCase()",
"line.toLowerCase",
"line",
"for(int i = 0 ; i < st.length() ; i++){\n\t\t\tchar c = st.charAt(i);\n\t\t\tif('a' <= c && c <= 'z') cnt[c - 'a']++;\n\t\t\telse continue;\n\t\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < st.length()",
"i",
"st.length()",
"st.length",
"st",
"i++",
"i++",
"i",
"{\n\t\t\tchar c = st.charAt(i);\n\t\t\tif('a' <= c && c <= 'z') cnt[c - 'a']++;\n\t\t\telse continue;\n\t\t\t}",
"{\n\t\t\tchar c = st.charAt(i);\n\t\t\tif('a' <= c && c <= 'z') cnt[c - 'a']++;\n\t\t\telse continue;\n\t\t\t}",
"char c = st.charAt(i);",
"c",
"st.charAt(i)",
"st.charAt",
"st",
"i",
"if('a' <= c && c <= 'z') cnt[c - 'a']++;\n\t\t\telse continue;",
"'a' <= c && c <= 'z'",
"'a' <= c",
"'a'",
"c",
"c <= 'z'",
"c",
"'z'",
"cnt[c - 'a']++",
"cnt[c - 'a']",
"cnt",
"c - 'a'",
"c",
"'a'",
"continue;",
"for (int i = 0; i < cnt.length; i++) {\n\t\t\tSystem.out.println((char)('a'+i) + \" : \" + 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.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\n\t/**\n\t * main\n\t * @param args\n\t * @throws IOException\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\t//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] cnt = new int[26];//??¢??????????????????26??????????????????\n\t\tint num = 0;\t\t//???????????¨????????°\n\t\tString line = \"\";\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\tline = scan.nextLine();\n\t\t String st = line.toLowerCase();\n\t\t for(int i = 0 ; i < st.length() ; i++){\n\t\t\tchar c = st.charAt(i);\n\t\t\tif('a' <= c && c <= 'z') cnt[c - 'a']++;\n\t\t\telse continue;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//??¨???\n\t\tfor (int i = 0; i < cnt.length; i++) {\n\t\t\tSystem.out.println((char)('a'+i) + \" : \" + cnt[i]);\n\t\t}\n\t}\n\t\n}",
"public class Main {\n\n\n\t/**\n\t * main\n\t * @param args\n\t * @throws IOException\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\t//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] cnt = new int[26];//??¢??????????????????26??????????????????\n\t\tint num = 0;\t\t//???????????¨????????°\n\t\tString line = \"\";\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\tline = scan.nextLine();\n\t\t String st = line.toLowerCase();\n\t\t for(int i = 0 ; i < st.length() ; i++){\n\t\t\tchar c = st.charAt(i);\n\t\t\tif('a' <= c && c <= 'z') cnt[c - 'a']++;\n\t\t\telse continue;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//??¨???\n\t\tfor (int i = 0; i < cnt.length; i++) {\n\t\t\tSystem.out.println((char)('a'+i) + \" : \" + cnt[i]);\n\t\t}\n\t}\n\t\n}",
"Main"
]
|
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.Character;
import java.util.Scanner;
public class Main {
/**
* main
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
Scanner scan = new Scanner(System.in);
int[] cnt = new int[26];//??¢??????????????????26??????????????????
int num = 0; //???????????¨????????°
String line = "";
while(scan.hasNext()){
line = scan.nextLine();
String st = line.toLowerCase();
for(int i = 0 ; i < st.length() ; i++){
char c = st.charAt(i);
if('a' <= c && c <= 'z') cnt[c - 'a']++;
else continue;
}
}
//??¨???
for (int i = 0; i < cnt.length; i++) {
System.out.println((char)('a'+i) + " : " + cnt[i]);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
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,
18,
13,
13,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
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,
13,
2,
2,
2,
18,
13,
13,
17,
18,
13,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
158,
11
],
[
158,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
23,
26
],
[
23,
27
],
[
23,
28
],
[
23,
29
],
[
23,
30
],
[
23,
31
],
[
23,
32
],
[
23,
33
],
[
23,
34
],
[
23,
35
],
[
23,
36
],
[
23,
37
],
[
23,
38
],
[
23,
39
],
[
23,
40
],
[
23,
41
],
[
23,
42
],
[
23,
43
],
[
23,
44
],
[
23,
45
],
[
23,
46
],
[
23,
47
],
[
23,
48
],
[
23,
49
],
[
14,
50
],
[
50,
51
],
[
50,
52
],
[
53,
54
],
[
53,
55
],
[
14,
56
],
[
56,
57
],
[
14,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
59,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
66,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
66,
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
],
[
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
],
[
108,
112
],
[
112,
113
],
[
112,
114
],
[
107,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
14,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
127,
129
],
[
120,
130
],
[
130,
131
],
[
131,
132
],
[
120,
133
],
[
134,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
140,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
139,
145
],
[
145,
146
],
[
145,
147
],
[
140,
148
],
[
14,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
149,
154
],
[
12,
155
],
[
155,
156
],
[
0,
157
],
[
157,
158
],
[
157,
159
]
]
| [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.lang.StringBuilder;\npublic class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tchar[] 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\t\tint[] count = new int[c.length];\n\t\tString st;\n\t\twhile((st = sc.readLine())!=null){\n\t\t\tst = st.toLowerCase();\n\t\t\tchar[] ch = st.toCharArray();\n\t\t\tfor(int i = 0;i < c.length;i++){\n\t\t\t\tfor(int k = 0;k < ch.length;k++){\n\t\t\t\t\tif(ch[k]==c[i]){\n\t\t\t\t\t\tcount[i]++;\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 < c.length;i++){\n\t\t\tsb.append(c[i]+\" : \"+count[i]+\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.lang.StringBuilder;",
"StringBuilder",
"java.lang",
"public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tchar[] 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\t\tint[] count = new int[c.length];\n\t\tString st;\n\t\twhile((st = sc.readLine())!=null){\n\t\t\tst = st.toLowerCase();\n\t\t\tchar[] ch = st.toCharArray();\n\t\t\tfor(int i = 0;i < c.length;i++){\n\t\t\t\tfor(int k = 0;k < ch.length;k++){\n\t\t\t\t\tif(ch[k]==c[i]){\n\t\t\t\t\t\tcount[i]++;\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 < c.length;i++){\n\t\t\tsb.append(c[i]+\" : \"+count[i]+\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tchar[] 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\t\tint[] count = new int[c.length];\n\t\tString st;\n\t\twhile((st = sc.readLine())!=null){\n\t\t\tst = st.toLowerCase();\n\t\t\tchar[] ch = st.toCharArray();\n\t\t\tfor(int i = 0;i < c.length;i++){\n\t\t\t\tfor(int k = 0;k < ch.length;k++){\n\t\t\t\t\tif(ch[k]==c[i]){\n\t\t\t\t\t\tcount[i]++;\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 < c.length;i++){\n\t\t\tsb.append(c[i]+\" : \"+count[i]+\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}",
"main",
"{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tchar[] 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\t\tint[] count = new int[c.length];\n\t\tString st;\n\t\twhile((st = sc.readLine())!=null){\n\t\t\tst = st.toLowerCase();\n\t\t\tchar[] ch = st.toCharArray();\n\t\t\tfor(int i = 0;i < c.length;i++){\n\t\t\t\tfor(int k = 0;k < ch.length;k++){\n\t\t\t\t\tif(ch[k]==c[i]){\n\t\t\t\t\t\tcount[i]++;\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 < c.length;i++){\n\t\t\tsb.append(c[i]+\" : \"+count[i]+\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}",
"BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));",
"sc",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"char[] 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'};",
"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'",
"int[] count = new int[c.length];",
"count",
"new int[c.length]",
"c.length",
"c",
"c.length",
"String st;",
"st",
"while((st = sc.readLine())!=null){\n\t\t\tst = st.toLowerCase();\n\t\t\tchar[] ch = st.toCharArray();\n\t\t\tfor(int i = 0;i < c.length;i++){\n\t\t\t\tfor(int k = 0;k < ch.length;k++){\n\t\t\t\t\tif(ch[k]==c[i]){\n\t\t\t\t\t\tcount[i]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"(st = sc.readLine())!=null",
"(st = sc.readLine())",
"st",
"sc.readLine()",
"sc.readLine",
"sc",
"null",
"{\n\t\t\tst = st.toLowerCase();\n\t\t\tchar[] ch = st.toCharArray();\n\t\t\tfor(int i = 0;i < c.length;i++){\n\t\t\t\tfor(int k = 0;k < ch.length;k++){\n\t\t\t\t\tif(ch[k]==c[i]){\n\t\t\t\t\t\tcount[i]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"st = st.toLowerCase()",
"st",
"st.toLowerCase()",
"st.toLowerCase",
"st",
"char[] ch = st.toCharArray();",
"ch",
"st.toCharArray()",
"st.toCharArray",
"st",
"for(int i = 0;i < c.length;i++){\n\t\t\t\tfor(int k = 0;k < ch.length;k++){\n\t\t\t\t\tif(ch[k]==c[i]){\n\t\t\t\t\t\tcount[i]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\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\t\tfor(int k = 0;k < ch.length;k++){\n\t\t\t\t\tif(ch[k]==c[i]){\n\t\t\t\t\t\tcount[i]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int k = 0;k < ch.length;k++){\n\t\t\t\t\tif(ch[k]==c[i]){\n\t\t\t\t\t\tcount[i]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"for(int k = 0;k < ch.length;k++){\n\t\t\t\t\tif(ch[k]==c[i]){\n\t\t\t\t\t\tcount[i]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < ch.length",
"k",
"ch.length",
"ch",
"ch.length",
"k++",
"k++",
"k",
"{\n\t\t\t\t\tif(ch[k]==c[i]){\n\t\t\t\t\t\tcount[i]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif(ch[k]==c[i]){\n\t\t\t\t\t\tcount[i]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"if(ch[k]==c[i]){\n\t\t\t\t\t\tcount[i]++;\n\t\t\t\t\t}",
"ch[k]==c[i]",
"ch[k]",
"ch",
"k",
"c[i]",
"c",
"i",
"{\n\t\t\t\t\t\tcount[i]++;\n\t\t\t\t\t}",
"count[i]++",
"count[i]",
"count",
"i",
"for(int i = 0;i < c.length;i++){\n\t\t\tsb.append(c[i]+\" : \"+count[i]+\"\\n\");\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\tsb.append(c[i]+\" : \"+count[i]+\"\\n\");\n\t\t}",
"{\n\t\t\tsb.append(c[i]+\" : \"+count[i]+\"\\n\");\n\t\t}",
"sb.append(c[i]+\" : \"+count[i]+\"\\n\")",
"sb.append",
"sb",
"c[i]+\" : \"+count[i]+\"\\n\"",
"count[i]",
"c[i]+\" : \"+count[i]+\"\\n\"",
"c[i]",
"c",
"i",
"\" : \"",
"count[i]",
"count",
"i",
"\"\\n\"",
"System.out.print(sb)",
"System.out.print",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tchar[] 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\t\tint[] count = new int[c.length];\n\t\tString st;\n\t\twhile((st = sc.readLine())!=null){\n\t\t\tst = st.toLowerCase();\n\t\t\tchar[] ch = st.toCharArray();\n\t\t\tfor(int i = 0;i < c.length;i++){\n\t\t\t\tfor(int k = 0;k < ch.length;k++){\n\t\t\t\t\tif(ch[k]==c[i]){\n\t\t\t\t\t\tcount[i]++;\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 < c.length;i++){\n\t\t\tsb.append(c[i]+\" : \"+count[i]+\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tchar[] 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\t\tint[] count = new int[c.length];\n\t\tString st;\n\t\twhile((st = sc.readLine())!=null){\n\t\t\tst = st.toLowerCase();\n\t\t\tchar[] ch = st.toCharArray();\n\t\t\tfor(int i = 0;i < c.length;i++){\n\t\t\t\tfor(int k = 0;k < ch.length;k++){\n\t\t\t\t\tif(ch[k]==c[i]){\n\t\t\t\t\t\tcount[i]++;\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 < c.length;i++){\n\t\t\tsb.append(c[i]+\" : \"+count[i]+\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.StringBuilder;
public class Main {
public static void main(String[] args) throws Exception{
BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
char[] 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'};
int[] count = new int[c.length];
String st;
while((st = sc.readLine())!=null){
st = st.toLowerCase();
char[] ch = st.toCharArray();
for(int i = 0;i < c.length;i++){
for(int k = 0;k < ch.length;k++){
if(ch[k]==c[i]){
count[i]++;
}
}
}
}
for(int i = 0;i < c.length;i++){
sb.append(c[i]+" : "+count[i]+"\n");
}
System.out.print(sb);
}
} |
[
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,
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,
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,
13,
17,
41,
13,
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
],
[
103,
5
],
[
103,
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
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
48,
53
],
[
45,
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
],
[
8,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
79,
85
],
[
85,
86
],
[
85,
87
],
[
79,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
94,
94
],
[
94,
95
],
[
94,
96
],
[
94,
97
],
[
97,
98
],
[
97,
99
],
[
6,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int[] n = new int[26];\n while(scan.hasNext()) {\n String S = scan.nextLine();\n String s = S.toUpperCase();\n for(int i = 0; i < s.length(); i++) {\n int k = (int)s.charAt(i) - 65;\n if(k >= 0 && k <= 25) {\n n[k]++;\n }\n }\n }\n\n for(int i = 0; i < 26; i++) {\n int ch = i + 97;\n char c = (char)ch;\n System.out.println(c + \" : \" + n[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 scan = new Scanner(System.in);\n\n int[] n = new int[26];\n while(scan.hasNext()) {\n String S = scan.nextLine();\n String s = S.toUpperCase();\n for(int i = 0; i < s.length(); i++) {\n int k = (int)s.charAt(i) - 65;\n if(k >= 0 && k <= 25) {\n n[k]++;\n }\n }\n }\n\n for(int i = 0; i < 26; i++) {\n int ch = i + 97;\n char c = (char)ch;\n System.out.println(c + \" : \" + n[i]);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int[] n = new int[26];\n while(scan.hasNext()) {\n String S = scan.nextLine();\n String s = S.toUpperCase();\n for(int i = 0; i < s.length(); i++) {\n int k = (int)s.charAt(i) - 65;\n if(k >= 0 && k <= 25) {\n n[k]++;\n }\n }\n }\n\n for(int i = 0; i < 26; i++) {\n int ch = i + 97;\n char c = (char)ch;\n System.out.println(c + \" : \" + n[i]);\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n\n int[] n = new int[26];\n while(scan.hasNext()) {\n String S = scan.nextLine();\n String s = S.toUpperCase();\n for(int i = 0; i < s.length(); i++) {\n int k = (int)s.charAt(i) - 65;\n if(k >= 0 && k <= 25) {\n n[k]++;\n }\n }\n }\n\n for(int i = 0; i < 26; i++) {\n int ch = i + 97;\n char c = (char)ch;\n System.out.println(c + \" : \" + n[i]);\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int[] n = new int[26];",
"n",
"new int[26]",
"26",
"while(scan.hasNext()) {\n String S = scan.nextLine();\n String s = S.toUpperCase();\n for(int i = 0; i < s.length(); i++) {\n int k = (int)s.charAt(i) - 65;\n if(k >= 0 && k <= 25) {\n n[k]++;\n }\n }\n }",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n String S = scan.nextLine();\n String s = S.toUpperCase();\n for(int i = 0; i < s.length(); i++) {\n int k = (int)s.charAt(i) - 65;\n if(k >= 0 && k <= 25) {\n n[k]++;\n }\n }\n }",
"String S = scan.nextLine();",
"S",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String s = S.toUpperCase();",
"s",
"S.toUpperCase()",
"S.toUpperCase",
"S",
"for(int i = 0; i < s.length(); i++) {\n int k = (int)s.charAt(i) - 65;\n if(k >= 0 && k <= 25) {\n n[k]++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n int k = (int)s.charAt(i) - 65;\n if(k >= 0 && k <= 25) {\n n[k]++;\n }\n }",
"{\n int k = (int)s.charAt(i) - 65;\n if(k >= 0 && k <= 25) {\n n[k]++;\n }\n }",
"int k = (int)s.charAt(i) - 65;",
"k",
"(int)s.charAt(i) - 65",
"(int)s.charAt(i)",
"s.charAt",
"s",
"i",
"65",
"if(k >= 0 && k <= 25) {\n n[k]++;\n }",
"k >= 0 && k <= 25",
"k >= 0",
"k",
"0",
"k <= 25",
"k",
"25",
"{\n n[k]++;\n }",
"n[k]++",
"n[k]",
"n",
"k",
"for(int i = 0; i < 26; i++) {\n int ch = i + 97;\n char c = (char)ch;\n System.out.println(c + \" : \" + n[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n int ch = i + 97;\n char c = (char)ch;\n System.out.println(c + \" : \" + n[i]);\n }",
"{\n int ch = i + 97;\n char c = (char)ch;\n System.out.println(c + \" : \" + n[i]);\n }",
"int ch = i + 97;",
"ch",
"i + 97",
"i",
"97",
"char c = (char)ch;",
"c",
"(char)ch",
"System.out.println(c + \" : \" + n[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"c + \" : \" + n[i]",
"c + \" : \" + n[i]",
"c",
"\" : \"",
"n[i]",
"n",
"i",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int[] n = new int[26];\n while(scan.hasNext()) {\n String S = scan.nextLine();\n String s = S.toUpperCase();\n for(int i = 0; i < s.length(); i++) {\n int k = (int)s.charAt(i) - 65;\n if(k >= 0 && k <= 25) {\n n[k]++;\n }\n }\n }\n\n for(int i = 0; i < 26; i++) {\n int ch = i + 97;\n char c = (char)ch;\n System.out.println(c + \" : \" + n[i]);\n }\n }\n}",
"public class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int[] n = new int[26];\n while(scan.hasNext()) {\n String S = scan.nextLine();\n String s = S.toUpperCase();\n for(int i = 0; i < s.length(); i++) {\n int k = (int)s.charAt(i) - 65;\n if(k >= 0 && k <= 25) {\n n[k]++;\n }\n }\n }\n\n for(int i = 0; i < 26; i++) {\n int ch = i + 97;\n char c = (char)ch;\n System.out.println(c + \" : \" + n[i]);\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int[] n = new int[26];
while(scan.hasNext()) {
String S = scan.nextLine();
String s = S.toUpperCase();
for(int i = 0; i < s.length(); i++) {
int k = (int)s.charAt(i) - 65;
if(k >= 0 && k <= 25) {
n[k]++;
}
}
}
for(int i = 0; i < 26; i++) {
int ch = i + 97;
char c = (char)ch;
System.out.println(c + " : " + n[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,
42,
4,
18,
13,
30,
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,
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,
2,
13,
17,
30,
40,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
2,
2,
2,
13,
17,
17,
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
],
[
130,
14
],
[
130,
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
],
[
28,
29
],
[
29,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
31,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
31,
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
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
64,
66
],
[
56,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
17,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
98,
100
],
[
93,
101
],
[
101,
102
],
[
102,
103
],
[
93,
104
],
[
105,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
108,
110
],
[
105,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
119,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
117,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
15,
127
],
[
127,
128
],
[
0,
129
],
[
129,
130
],
[
129,
131
]
]
| [
"import java.awt.*;\nimport java.awt.geom.*;\nimport java.io.*;\nimport java.util.*;\n\npublic class Main{\n public static void main(String args[]) {\n Scanner in = new Scanner(System.in);\n String str;\n int num[] = new int[26];\n while(in.hasNextLine()){\n str = in.nextLine();\n char [] cin = str.toCharArray();\n for(int i=0;i<cin.length;++i){\n cin[i]=Character.toLowerCase(cin[i]);\n for(int j = 0; j < 27; j++){\n if(cin[i] == j+97){\n num[j]++;\n }\n }\n }\n }\n for(int k = 0; k < 26; k++){\n char c = (char)(k + 97);\n System.out.println(c + \" \" + \":\" + \" \" +num[k]);\n }\n }\n}\n",
"import java.awt.*;",
"awt.*",
"java",
"import java.awt.geom.*;",
"geom.*",
"java.awt",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String args[]) {\n Scanner in = new Scanner(System.in);\n String str;\n int num[] = new int[26];\n while(in.hasNextLine()){\n str = in.nextLine();\n char [] cin = str.toCharArray();\n for(int i=0;i<cin.length;++i){\n cin[i]=Character.toLowerCase(cin[i]);\n for(int j = 0; j < 27; j++){\n if(cin[i] == j+97){\n num[j]++;\n }\n }\n }\n }\n for(int k = 0; k < 26; k++){\n char c = (char)(k + 97);\n System.out.println(c + \" \" + \":\" + \" \" +num[k]);\n }\n }\n}",
"Main",
"public static void main(String args[]) {\n Scanner in = new Scanner(System.in);\n String str;\n int num[] = new int[26];\n while(in.hasNextLine()){\n str = in.nextLine();\n char [] cin = str.toCharArray();\n for(int i=0;i<cin.length;++i){\n cin[i]=Character.toLowerCase(cin[i]);\n for(int j = 0; j < 27; j++){\n if(cin[i] == j+97){\n num[j]++;\n }\n }\n }\n }\n for(int k = 0; k < 26; k++){\n char c = (char)(k + 97);\n System.out.println(c + \" \" + \":\" + \" \" +num[k]);\n }\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n String str;\n int num[] = new int[26];\n while(in.hasNextLine()){\n str = in.nextLine();\n char [] cin = str.toCharArray();\n for(int i=0;i<cin.length;++i){\n cin[i]=Character.toLowerCase(cin[i]);\n for(int j = 0; j < 27; j++){\n if(cin[i] == j+97){\n num[j]++;\n }\n }\n }\n }\n for(int k = 0; k < 26; k++){\n char c = (char)(k + 97);\n System.out.println(c + \" \" + \":\" + \" \" +num[k]);\n }\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"String str;",
"str",
"int num[] = new int[26];",
"num",
"new int[26]",
"26",
"while(in.hasNextLine()){\n str = in.nextLine();\n char [] cin = str.toCharArray();\n for(int i=0;i<cin.length;++i){\n cin[i]=Character.toLowerCase(cin[i]);\n for(int j = 0; j < 27; j++){\n if(cin[i] == j+97){\n num[j]++;\n }\n }\n }\n }",
"in.hasNextLine()",
"in.hasNextLine",
"in",
"{\n str = in.nextLine();\n char [] cin = str.toCharArray();\n for(int i=0;i<cin.length;++i){\n cin[i]=Character.toLowerCase(cin[i]);\n for(int j = 0; j < 27; j++){\n if(cin[i] == j+97){\n num[j]++;\n }\n }\n }\n }",
"str = in.nextLine()",
"str",
"in.nextLine()",
"in.nextLine",
"in",
"char [] cin = str.toCharArray();",
"cin",
"str.toCharArray()",
"str.toCharArray",
"str",
"for(int i=0;i<cin.length;++i){\n cin[i]=Character.toLowerCase(cin[i]);\n for(int j = 0; j < 27; j++){\n if(cin[i] == j+97){\n num[j]++;\n }\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<cin.length",
"i",
"cin.length",
"cin",
"cin.length",
"++i",
"++i",
"i",
"{\n cin[i]=Character.toLowerCase(cin[i]);\n for(int j = 0; j < 27; j++){\n if(cin[i] == j+97){\n num[j]++;\n }\n }\n }",
"{\n cin[i]=Character.toLowerCase(cin[i]);\n for(int j = 0; j < 27; j++){\n if(cin[i] == j+97){\n num[j]++;\n }\n }\n }",
"cin[i]=Character.toLowerCase(cin[i])",
"cin[i]",
"cin",
"i",
"Character.toLowerCase(cin[i])",
"Character.toLowerCase",
"Character",
"cin[i]",
"cin",
"i",
"for(int j = 0; j < 27; j++){\n if(cin[i] == j+97){\n num[j]++;\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 27",
"j",
"27",
"j++",
"j++",
"j",
"{\n if(cin[i] == j+97){\n num[j]++;\n }\n }",
"{\n if(cin[i] == j+97){\n num[j]++;\n }\n }",
"if(cin[i] == j+97){\n num[j]++;\n }",
"cin[i] == j+97",
"cin[i]",
"cin",
"i",
"j+97",
"j",
"97",
"{\n num[j]++;\n }",
"num[j]++",
"num[j]",
"num",
"j",
"for(int k = 0; k < 26; k++){\n char c = (char)(k + 97);\n System.out.println(c + \" \" + \":\" + \" \" +num[k]);\n }",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < 26",
"k",
"26",
"k++",
"k++",
"k",
"{\n char c = (char)(k + 97);\n System.out.println(c + \" \" + \":\" + \" \" +num[k]);\n }",
"{\n char c = (char)(k + 97);\n System.out.println(c + \" \" + \":\" + \" \" +num[k]);\n }",
"char c = (char)(k + 97);",
"c",
"(char)(k + 97)",
"k",
"97",
"System.out.println(c + \" \" + \":\" + \" \" +num[k])",
"System.out.println",
"System.out",
"System",
"System.out",
"c + \" \" + \":\" + \" \" +num[k]",
"\" \"",
"\":\"",
"c + \" \" + \":\" + \" \" +num[k]",
"c",
"\" \"",
"\":\"",
"\" \"",
"num[k]",
"num",
"k",
"String args[]",
"args",
"public class Main{\n public static void main(String args[]) {\n Scanner in = new Scanner(System.in);\n String str;\n int num[] = new int[26];\n while(in.hasNextLine()){\n str = in.nextLine();\n char [] cin = str.toCharArray();\n for(int i=0;i<cin.length;++i){\n cin[i]=Character.toLowerCase(cin[i]);\n for(int j = 0; j < 27; j++){\n if(cin[i] == j+97){\n num[j]++;\n }\n }\n }\n }\n for(int k = 0; k < 26; k++){\n char c = (char)(k + 97);\n System.out.println(c + \" \" + \":\" + \" \" +num[k]);\n }\n }\n}",
"public class Main{\n public static void main(String args[]) {\n Scanner in = new Scanner(System.in);\n String str;\n int num[] = new int[26];\n while(in.hasNextLine()){\n str = in.nextLine();\n char [] cin = str.toCharArray();\n for(int i=0;i<cin.length;++i){\n cin[i]=Character.toLowerCase(cin[i]);\n for(int j = 0; j < 27; j++){\n if(cin[i] == j+97){\n num[j]++;\n }\n }\n }\n }\n for(int k = 0; k < 26; k++){\n char c = (char)(k + 97);\n System.out.println(c + \" \" + \":\" + \" \" +num[k]);\n }\n }\n}",
"Main"
]
| import java.awt.*;
import java.awt.geom.*;
import java.io.*;
import java.util.*;
public class Main{
public static void main(String args[]) {
Scanner in = new Scanner(System.in);
String str;
int num[] = new int[26];
while(in.hasNextLine()){
str = in.nextLine();
char [] cin = str.toCharArray();
for(int i=0;i<cin.length;++i){
cin[i]=Character.toLowerCase(cin[i]);
for(int j = 0; j < 27; j++){
if(cin[i] == j+97){
num[j]++;
}
}
}
}
for(int k = 0; k < 26; k++){
char c = (char)(k + 97);
System.out.println(c + " " + ":" + " " +num[k]);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
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,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
40,
18,
13,
2,
13,
17,
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
],
[
106,
5
],
[
106,
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
],
[
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
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
54,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
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
],
[
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
],
[
6,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[]argc){\n Scanner sc = new Scanner(System.in);\n int[] count = new int[27];\n String s;\n while(sc.hasNext()){\n s = sc.next();\n s = s.toLowerCase();\n for(int i=0;i<s.length();i++){\n int w = s.charAt(i);\n if(w-'a'>=0&&w-'a'<26){\n count[w-'a']++;\n }\n } \n }\n for(int j=0;j<26;j++){\n char c = (char)('a'+j);\n System.out.println(c+\" : \"+count[j]);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[]argc){\n Scanner sc = new Scanner(System.in);\n int[] count = new int[27];\n String s;\n while(sc.hasNext()){\n s = sc.next();\n s = s.toLowerCase();\n for(int i=0;i<s.length();i++){\n int w = s.charAt(i);\n if(w-'a'>=0&&w-'a'<26){\n count[w-'a']++;\n }\n } \n }\n for(int j=0;j<26;j++){\n char c = (char)('a'+j);\n System.out.println(c+\" : \"+count[j]);\n }\n }\n}",
"Main",
"public static void main(String[]argc){\n Scanner sc = new Scanner(System.in);\n int[] count = new int[27];\n String s;\n while(sc.hasNext()){\n s = sc.next();\n s = s.toLowerCase();\n for(int i=0;i<s.length();i++){\n int w = s.charAt(i);\n if(w-'a'>=0&&w-'a'<26){\n count[w-'a']++;\n }\n } \n }\n for(int j=0;j<26;j++){\n char c = (char)('a'+j);\n System.out.println(c+\" : \"+count[j]);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int[] count = new int[27];\n String s;\n while(sc.hasNext()){\n s = sc.next();\n s = s.toLowerCase();\n for(int i=0;i<s.length();i++){\n int w = s.charAt(i);\n if(w-'a'>=0&&w-'a'<26){\n count[w-'a']++;\n }\n } \n }\n for(int j=0;j<26;j++){\n char c = (char)('a'+j);\n System.out.println(c+\" : \"+count[j]);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] count = new int[27];",
"count",
"new int[27]",
"27",
"String s;",
"s",
"while(sc.hasNext()){\n s = sc.next();\n s = s.toLowerCase();\n for(int i=0;i<s.length();i++){\n int w = s.charAt(i);\n if(w-'a'>=0&&w-'a'<26){\n count[w-'a']++;\n }\n } \n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n s = sc.next();\n s = s.toLowerCase();\n for(int i=0;i<s.length();i++){\n int w = s.charAt(i);\n if(w-'a'>=0&&w-'a'<26){\n count[w-'a']++;\n }\n } \n }",
"s = sc.next()",
"s",
"sc.next()",
"sc.next",
"sc",
"s = s.toLowerCase()",
"s",
"s.toLowerCase()",
"s.toLowerCase",
"s",
"for(int i=0;i<s.length();i++){\n int w = s.charAt(i);\n if(w-'a'>=0&&w-'a'<26){\n count[w-'a']++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n int w = s.charAt(i);\n if(w-'a'>=0&&w-'a'<26){\n count[w-'a']++;\n }\n }",
"{\n int w = s.charAt(i);\n if(w-'a'>=0&&w-'a'<26){\n count[w-'a']++;\n }\n }",
"int w = s.charAt(i);",
"w",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"if(w-'a'>=0&&w-'a'<26){\n count[w-'a']++;\n }",
"w-'a'>=0&&w-'a'<26",
"w-'a'>=0",
"w-'a'",
"w",
"'a'",
"0",
"w-'a'<26",
"w-'a'",
"w",
"'a'",
"26",
"{\n count[w-'a']++;\n }",
"count[w-'a']++",
"count[w-'a']",
"count",
"w-'a'",
"w",
"'a'",
"for(int j=0;j<26;j++){\n char c = (char)('a'+j);\n System.out.println(c+\" : \"+count[j]);\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<26",
"j",
"26",
"j++",
"j++",
"j",
"{\n char c = (char)('a'+j);\n System.out.println(c+\" : \"+count[j]);\n }",
"{\n char c = (char)('a'+j);\n System.out.println(c+\" : \"+count[j]);\n }",
"char c = (char)('a'+j);",
"c",
"(char)('a'+j)",
"'a'",
"j",
"System.out.println(c+\" : \"+count[j])",
"System.out.println",
"System.out",
"System",
"System.out",
"c+\" : \"+count[j]",
"c+\" : \"+count[j]",
"c",
"\" : \"",
"count[j]",
"count",
"j",
"String[]argc",
"argc",
"public class Main{\n public static void main(String[]argc){\n Scanner sc = new Scanner(System.in);\n int[] count = new int[27];\n String s;\n while(sc.hasNext()){\n s = sc.next();\n s = s.toLowerCase();\n for(int i=0;i<s.length();i++){\n int w = s.charAt(i);\n if(w-'a'>=0&&w-'a'<26){\n count[w-'a']++;\n }\n } \n }\n for(int j=0;j<26;j++){\n char c = (char)('a'+j);\n System.out.println(c+\" : \"+count[j]);\n }\n }\n}",
"public class Main{\n public static void main(String[]argc){\n Scanner sc = new Scanner(System.in);\n int[] count = new int[27];\n String s;\n while(sc.hasNext()){\n s = sc.next();\n s = s.toLowerCase();\n for(int i=0;i<s.length();i++){\n int w = s.charAt(i);\n if(w-'a'>=0&&w-'a'<26){\n count[w-'a']++;\n }\n } \n }\n for(int j=0;j<26;j++){\n char c = (char)('a'+j);\n System.out.println(c+\" : \"+count[j]);\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[]argc){
Scanner sc = new Scanner(System.in);
int[] count = new int[27];
String s;
while(sc.hasNext()){
s = sc.next();
s = s.toLowerCase();
for(int i=0;i<s.length();i++){
int w = s.charAt(i);
if(w-'a'>=0&&w-'a'<26){
count[w-'a']++;
}
}
}
for(int j=0;j<26;j++){
char c = (char)('a'+j);
System.out.println(c+" : "+count[j]);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
0,
13,
17,
41,
13,
20,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
41,
13,
20,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
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,
0,
13,
4,
18,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
4,
18,
4,
18,
13,
13,
13,
30,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
13,
4,
18,
13,
17,
4,
18,
13,
4,
18,
13,
13,
4,
18,
13,
17,
4,
18,
13,
2,
4,
18,
13,
17,
4,
18,
18,
13,
13,
20,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
362,
8
],
[
362,
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
],
[
29,
30
],
[
28,
31
],
[
11,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
11,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
11,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
11,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
11,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
11,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
11,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
11,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
11,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
11,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
11,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
11,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
11,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
11,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
11,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
11,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
11,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
11,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
11,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
11,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
11,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
11,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
11,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
11,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
11,
128
],
[
128,
129
],
[
129,
130
],
[
128,
131
],
[
11,
132
],
[
132,
133
],
[
132,
134
],
[
11,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
11,
139
],
[
139,
140
],
[
140,
141
],
[
139,
142
],
[
11,
143
],
[
143,
144
],
[
144,
145
],
[
143,
146
],
[
11,
147
],
[
147,
148
],
[
148,
149
],
[
147,
150
],
[
11,
151
],
[
151,
152
],
[
152,
153
],
[
151,
154
],
[
11,
155
],
[
155,
156
],
[
156,
157
],
[
155,
158
],
[
11,
159
],
[
159,
160
],
[
160,
161
],
[
159,
162
],
[
11,
163
],
[
163,
164
],
[
164,
165
],
[
163,
166
],
[
11,
167
],
[
167,
168
],
[
168,
169
],
[
167,
170
],
[
11,
171
],
[
171,
172
],
[
172,
173
],
[
171,
174
],
[
11,
175
],
[
175,
176
],
[
176,
177
],
[
175,
178
],
[
11,
179
],
[
179,
180
],
[
180,
181
],
[
179,
182
],
[
11,
183
],
[
183,
184
],
[
184,
185
],
[
183,
186
],
[
11,
187
],
[
187,
188
],
[
188,
189
],
[
187,
190
],
[
11,
191
],
[
191,
192
],
[
192,
193
],
[
191,
194
],
[
11,
195
],
[
195,
196
],
[
196,
197
],
[
195,
198
],
[
11,
199
],
[
199,
200
],
[
200,
201
],
[
199,
202
],
[
11,
203
],
[
203,
204
],
[
204,
205
],
[
203,
206
],
[
11,
207
],
[
207,
208
],
[
208,
209
],
[
207,
210
],
[
11,
211
],
[
211,
212
],
[
212,
213
],
[
211,
214
],
[
11,
215
],
[
215,
216
],
[
216,
217
],
[
215,
218
],
[
11,
219
],
[
219,
220
],
[
220,
221
],
[
219,
222
],
[
11,
223
],
[
223,
224
],
[
224,
225
],
[
223,
226
],
[
11,
227
],
[
227,
228
],
[
228,
229
],
[
227,
230
],
[
11,
231
],
[
231,
232
],
[
232,
233
],
[
231,
234
],
[
11,
235
],
[
235,
236
],
[
236,
237
],
[
235,
238
],
[
11,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
239,
243
],
[
243,
244
],
[
244,
245
],
[
244,
246
],
[
246,
247
],
[
247,
248
],
[
243,
249
],
[
249,
250
],
[
250,
251
],
[
251,
252
],
[
251,
253
],
[
249,
254
],
[
254,
255
],
[
254,
256
],
[
256,
257
],
[
257,
258
],
[
249,
259
],
[
259,
260
],
[
260,
261
],
[
249,
262
],
[
263,
263
],
[
263,
264
],
[
264,
265
],
[
264,
266
],
[
266,
267
],
[
267,
268
],
[
266,
269
],
[
263,
270
],
[
270,
271
],
[
270,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
275,
276
],
[
274,
277
],
[
263,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
280,
282
],
[
278,
283
],
[
283,
284
],
[
283,
285
],
[
278,
286
],
[
286,
287
],
[
287,
288
],
[
278,
289
],
[
290,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
294,
295
],
[
295,
296
],
[
294,
297
],
[
292,
298
],
[
291,
299
],
[
299,
300
],
[
300,
301
],
[
301,
302
],
[
300,
303
],
[
300,
304
],
[
304,
305
],
[
305,
306
],
[
306,
307
],
[
305,
308
],
[
304,
309
],
[
11,
310
],
[
310,
311
],
[
311,
312
],
[
312,
313
],
[
312,
314
],
[
310,
315
],
[
315,
316
],
[
315,
317
],
[
310,
318
],
[
318,
319
],
[
319,
320
],
[
310,
321
],
[
322,
322
],
[
322,
323
],
[
323,
324
],
[
324,
325
],
[
323,
326
],
[
326,
327
],
[
327,
328
],
[
326,
329
],
[
322,
330
],
[
330,
331
],
[
331,
332
],
[
330,
333
],
[
322,
334
],
[
334,
335
],
[
335,
336
],
[
334,
337
],
[
337,
338
],
[
338,
339
],
[
337,
340
],
[
322,
341
],
[
341,
342
],
[
342,
343
],
[
341,
344
],
[
11,
345
],
[
345,
346
],
[
346,
347
],
[
345,
348
],
[
348,
349
],
[
349,
350
],
[
350,
351
],
[
348,
352
],
[
11,
353
],
[
353,
354
],
[
354,
355
],
[
355,
356
],
[
355,
357
],
[
353,
358
],
[
9,
359
],
[
359,
360
],
[
0,
361
],
[
361,
362
],
[
361,
363
]
]
| [
"\n\nimport java.util.*;\nimport java.io.*;\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\tStringBuilder sb = new StringBuilder();\n\t\tchar c;\n\t\tString s;\n\t\ts = \"\";// ?????????\n\n\t\t// a~z?????§???????????????????´????????????????\n\t\tList<String> list = new ArrayList<String>();\n\t\t// a~z?????§???????´?(26??????\n\t\tlist.add(\"a\");\n\t\tlist.add(\"b\");\n\t\tlist.add(\"c\");\n\t\tlist.add(\"d\");\n\t\tlist.add(\"e\");\n\t\tlist.add(\"f\");\n\t\tlist.add(\"g\");\n\t\tlist.add(\"h\");\n\t\tlist.add(\"i\");\n\t\tlist.add(\"j\");\n\t\tlist.add(\"k\");\n\t\tlist.add(\"l\");\n\t\tlist.add(\"m\");\n\t\tlist.add(\"n\");\n\t\tlist.add(\"o\");\n\t\tlist.add(\"p\");\n\t\tlist.add(\"q\");\n\t\tlist.add(\"r\");\n\t\tlist.add(\"s\");\n\t\tlist.add(\"t\");\n\t\tlist.add(\"u\");\n\t\tlist.add(\"v\");\n\t\tlist.add(\"w\");\n\t\tlist.add(\"x\");\n\t\tlist.add(\"y\");\n\t\tlist.add(\"z\");\n\n\t\t// ?????°???????´????????????????\n\t\tList<Integer> list2 = new ArrayList<Integer>();\n\t\t// ?????????0???????´?(26??????\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\n\t\t// ??°???????????????\n\t\tdo {\n\n\t\t\t// ??????????????????\n\t\t\tString str = br.readLine();\n\t\t\t//System.out.println(str.length());\n\t\t\t//if (br.ready()) {\n\t\t\t//}else{\n\t\t\t//\tbreak;\n\t\t\t//}\n\n\t\t\t// ????????°????????????\n\t\t\tfor (int count = 0; count < str.length(); count++) {\n\t\t\t\tc = str.charAt(count);\n\t\t\t\t// ?????????????°????????????????\n\t\t\t\ts = String.valueOf(c).toLowerCase();\n\t\t\t\t// 26?????????????????????\n\t\t\t\tfor (int i = 0; i < 26; i++) {\n\t\t\t\t\t// ????????±???????????£?????´??????list2?????°??????+??????\n\t\t\t\t\tif (list.get(i).equals(s)) {\n\t\t\t\t\t\tlist2.set(i, list2.get(i) + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}while (br.ready());\n\t\t\n\t\t// ??¨?????????\n\t\tfor (int count2 = 0; count2 < 26; count2++) {\n\t\t\tsb.append(list.get(count2));\n\t\t\tsb.append(\" : \");\n\t\t\tsb.append(list2.get(count2));\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\t\n\t\t// ????????????????????????\n\t\tsb.deleteCharAt(sb.length() - 1);\n\t\tSystem.out.println(new String(sb));\n\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 br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tchar c;\n\t\tString s;\n\t\ts = \"\";// ?????????\n\n\t\t// a~z?????§???????????????????´????????????????\n\t\tList<String> list = new ArrayList<String>();\n\t\t// a~z?????§???????´?(26??????\n\t\tlist.add(\"a\");\n\t\tlist.add(\"b\");\n\t\tlist.add(\"c\");\n\t\tlist.add(\"d\");\n\t\tlist.add(\"e\");\n\t\tlist.add(\"f\");\n\t\tlist.add(\"g\");\n\t\tlist.add(\"h\");\n\t\tlist.add(\"i\");\n\t\tlist.add(\"j\");\n\t\tlist.add(\"k\");\n\t\tlist.add(\"l\");\n\t\tlist.add(\"m\");\n\t\tlist.add(\"n\");\n\t\tlist.add(\"o\");\n\t\tlist.add(\"p\");\n\t\tlist.add(\"q\");\n\t\tlist.add(\"r\");\n\t\tlist.add(\"s\");\n\t\tlist.add(\"t\");\n\t\tlist.add(\"u\");\n\t\tlist.add(\"v\");\n\t\tlist.add(\"w\");\n\t\tlist.add(\"x\");\n\t\tlist.add(\"y\");\n\t\tlist.add(\"z\");\n\n\t\t// ?????°???????´????????????????\n\t\tList<Integer> list2 = new ArrayList<Integer>();\n\t\t// ?????????0???????´?(26??????\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\n\t\t// ??°???????????????\n\t\tdo {\n\n\t\t\t// ??????????????????\n\t\t\tString str = br.readLine();\n\t\t\t//System.out.println(str.length());\n\t\t\t//if (br.ready()) {\n\t\t\t//}else{\n\t\t\t//\tbreak;\n\t\t\t//}\n\n\t\t\t// ????????°????????????\n\t\t\tfor (int count = 0; count < str.length(); count++) {\n\t\t\t\tc = str.charAt(count);\n\t\t\t\t// ?????????????°????????????????\n\t\t\t\ts = String.valueOf(c).toLowerCase();\n\t\t\t\t// 26?????????????????????\n\t\t\t\tfor (int i = 0; i < 26; i++) {\n\t\t\t\t\t// ????????±???????????£?????´??????list2?????°??????+??????\n\t\t\t\t\tif (list.get(i).equals(s)) {\n\t\t\t\t\t\tlist2.set(i, list2.get(i) + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}while (br.ready());\n\t\t\n\t\t// ??¨?????????\n\t\tfor (int count2 = 0; count2 < 26; count2++) {\n\t\t\tsb.append(list.get(count2));\n\t\t\tsb.append(\" : \");\n\t\t\tsb.append(list2.get(count2));\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\t\n\t\t// ????????????????????????\n\t\tsb.deleteCharAt(sb.length() - 1);\n\t\tSystem.out.println(new String(sb));\n\n\t}\n}",
"Main",
"public static void main(String args[]) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tchar c;\n\t\tString s;\n\t\ts = \"\";// ?????????\n\n\t\t// a~z?????§???????????????????´????????????????\n\t\tList<String> list = new ArrayList<String>();\n\t\t// a~z?????§???????´?(26??????\n\t\tlist.add(\"a\");\n\t\tlist.add(\"b\");\n\t\tlist.add(\"c\");\n\t\tlist.add(\"d\");\n\t\tlist.add(\"e\");\n\t\tlist.add(\"f\");\n\t\tlist.add(\"g\");\n\t\tlist.add(\"h\");\n\t\tlist.add(\"i\");\n\t\tlist.add(\"j\");\n\t\tlist.add(\"k\");\n\t\tlist.add(\"l\");\n\t\tlist.add(\"m\");\n\t\tlist.add(\"n\");\n\t\tlist.add(\"o\");\n\t\tlist.add(\"p\");\n\t\tlist.add(\"q\");\n\t\tlist.add(\"r\");\n\t\tlist.add(\"s\");\n\t\tlist.add(\"t\");\n\t\tlist.add(\"u\");\n\t\tlist.add(\"v\");\n\t\tlist.add(\"w\");\n\t\tlist.add(\"x\");\n\t\tlist.add(\"y\");\n\t\tlist.add(\"z\");\n\n\t\t// ?????°???????´????????????????\n\t\tList<Integer> list2 = new ArrayList<Integer>();\n\t\t// ?????????0???????´?(26??????\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\n\t\t// ??°???????????????\n\t\tdo {\n\n\t\t\t// ??????????????????\n\t\t\tString str = br.readLine();\n\t\t\t//System.out.println(str.length());\n\t\t\t//if (br.ready()) {\n\t\t\t//}else{\n\t\t\t//\tbreak;\n\t\t\t//}\n\n\t\t\t// ????????°????????????\n\t\t\tfor (int count = 0; count < str.length(); count++) {\n\t\t\t\tc = str.charAt(count);\n\t\t\t\t// ?????????????°????????????????\n\t\t\t\ts = String.valueOf(c).toLowerCase();\n\t\t\t\t// 26?????????????????????\n\t\t\t\tfor (int i = 0; i < 26; i++) {\n\t\t\t\t\t// ????????±???????????£?????´??????list2?????°??????+??????\n\t\t\t\t\tif (list.get(i).equals(s)) {\n\t\t\t\t\t\tlist2.set(i, list2.get(i) + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}while (br.ready());\n\t\t\n\t\t// ??¨?????????\n\t\tfor (int count2 = 0; count2 < 26; count2++) {\n\t\t\tsb.append(list.get(count2));\n\t\t\tsb.append(\" : \");\n\t\t\tsb.append(list2.get(count2));\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\t\n\t\t// ????????????????????????\n\t\tsb.deleteCharAt(sb.length() - 1);\n\t\tSystem.out.println(new String(sb));\n\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tchar c;\n\t\tString s;\n\t\ts = \"\";// ?????????\n\n\t\t// a~z?????§???????????????????´????????????????\n\t\tList<String> list = new ArrayList<String>();\n\t\t// a~z?????§???????´?(26??????\n\t\tlist.add(\"a\");\n\t\tlist.add(\"b\");\n\t\tlist.add(\"c\");\n\t\tlist.add(\"d\");\n\t\tlist.add(\"e\");\n\t\tlist.add(\"f\");\n\t\tlist.add(\"g\");\n\t\tlist.add(\"h\");\n\t\tlist.add(\"i\");\n\t\tlist.add(\"j\");\n\t\tlist.add(\"k\");\n\t\tlist.add(\"l\");\n\t\tlist.add(\"m\");\n\t\tlist.add(\"n\");\n\t\tlist.add(\"o\");\n\t\tlist.add(\"p\");\n\t\tlist.add(\"q\");\n\t\tlist.add(\"r\");\n\t\tlist.add(\"s\");\n\t\tlist.add(\"t\");\n\t\tlist.add(\"u\");\n\t\tlist.add(\"v\");\n\t\tlist.add(\"w\");\n\t\tlist.add(\"x\");\n\t\tlist.add(\"y\");\n\t\tlist.add(\"z\");\n\n\t\t// ?????°???????´????????????????\n\t\tList<Integer> list2 = new ArrayList<Integer>();\n\t\t// ?????????0???????´?(26??????\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\n\t\t// ??°???????????????\n\t\tdo {\n\n\t\t\t// ??????????????????\n\t\t\tString str = br.readLine();\n\t\t\t//System.out.println(str.length());\n\t\t\t//if (br.ready()) {\n\t\t\t//}else{\n\t\t\t//\tbreak;\n\t\t\t//}\n\n\t\t\t// ????????°????????????\n\t\t\tfor (int count = 0; count < str.length(); count++) {\n\t\t\t\tc = str.charAt(count);\n\t\t\t\t// ?????????????°????????????????\n\t\t\t\ts = String.valueOf(c).toLowerCase();\n\t\t\t\t// 26?????????????????????\n\t\t\t\tfor (int i = 0; i < 26; i++) {\n\t\t\t\t\t// ????????±???????????£?????´??????list2?????°??????+??????\n\t\t\t\t\tif (list.get(i).equals(s)) {\n\t\t\t\t\t\tlist2.set(i, list2.get(i) + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}while (br.ready());\n\t\t\n\t\t// ??¨?????????\n\t\tfor (int count2 = 0; count2 < 26; count2++) {\n\t\t\tsb.append(list.get(count2));\n\t\t\tsb.append(\" : \");\n\t\t\tsb.append(list2.get(count2));\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\t\n\t\t// ????????????????????????\n\t\tsb.deleteCharAt(sb.length() - 1);\n\t\tSystem.out.println(new String(sb));\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"char c;",
"c",
"String s;",
"s",
"s = \"\"",
"s",
"\"\"",
"List<String> list = new ArrayList<String>();",
"list",
"new ArrayList<String>()",
"list.add(\"a\")",
"list.add",
"list",
"\"a\"",
"list.add(\"b\")",
"list.add",
"list",
"\"b\"",
"list.add(\"c\")",
"list.add",
"list",
"\"c\"",
"list.add(\"d\")",
"list.add",
"list",
"\"d\"",
"list.add(\"e\")",
"list.add",
"list",
"\"e\"",
"list.add(\"f\")",
"list.add",
"list",
"\"f\"",
"list.add(\"g\")",
"list.add",
"list",
"\"g\"",
"list.add(\"h\")",
"list.add",
"list",
"\"h\"",
"list.add(\"i\")",
"list.add",
"list",
"\"i\"",
"list.add(\"j\")",
"list.add",
"list",
"\"j\"",
"list.add(\"k\")",
"list.add",
"list",
"\"k\"",
"list.add(\"l\")",
"list.add",
"list",
"\"l\"",
"list.add(\"m\")",
"list.add",
"list",
"\"m\"",
"list.add(\"n\")",
"list.add",
"list",
"\"n\"",
"list.add(\"o\")",
"list.add",
"list",
"\"o\"",
"list.add(\"p\")",
"list.add",
"list",
"\"p\"",
"list.add(\"q\")",
"list.add",
"list",
"\"q\"",
"list.add(\"r\")",
"list.add",
"list",
"\"r\"",
"list.add(\"s\")",
"list.add",
"list",
"\"s\"",
"list.add(\"t\")",
"list.add",
"list",
"\"t\"",
"list.add(\"u\")",
"list.add",
"list",
"\"u\"",
"list.add(\"v\")",
"list.add",
"list",
"\"v\"",
"list.add(\"w\")",
"list.add",
"list",
"\"w\"",
"list.add(\"x\")",
"list.add",
"list",
"\"x\"",
"list.add(\"y\")",
"list.add",
"list",
"\"y\"",
"list.add(\"z\")",
"list.add",
"list",
"\"z\"",
"List<Integer> list2 = new ArrayList<Integer>();",
"list2",
"new ArrayList<Integer>()",
"list2.add(0)",
"list2.add",
"list2",
"0",
"list2.add(0)",
"list2.add",
"list2",
"0",
"list2.add(0)",
"list2.add",
"list2",
"0",
"list2.add(0)",
"list2.add",
"list2",
"0",
"list2.add(0)",
"list2.add",
"list2",
"0",
"list2.add(0)",
"list2.add",
"list2",
"0",
"list2.add(0)",
"list2.add",
"list2",
"0",
"list2.add(0)",
"list2.add",
"list2",
"0",
"list2.add(0)",
"list2.add",
"list2",
"0",
"list2.add(0)",
"list2.add",
"list2",
"0",
"list2.add(0)",
"list2.add",
"list2",
"0",
"list2.add(0)",
"list2.add",
"list2",
"0",
"list2.add(0)",
"list2.add",
"list2",
"0",
"list2.add(0)",
"list2.add",
"list2",
"0",
"list2.add(0)",
"list2.add",
"list2",
"0",
"list2.add(0)",
"list2.add",
"list2",
"0",
"list2.add(0)",
"list2.add",
"list2",
"0",
"list2.add(0)",
"list2.add",
"list2",
"0",
"list2.add(0)",
"list2.add",
"list2",
"0",
"list2.add(0)",
"list2.add",
"list2",
"0",
"list2.add(0)",
"list2.add",
"list2",
"0",
"list2.add(0)",
"list2.add",
"list2",
"0",
"list2.add(0)",
"list2.add",
"list2",
"0",
"list2.add(0)",
"list2.add",
"list2",
"0",
"list2.add(0)",
"list2.add",
"list2",
"0",
"list2.add(0)",
"list2.add",
"list2",
"0",
"do {\n\n\t\t\t// ??????????????????\n\t\t\tString str = br.readLine();\n\t\t\t//System.out.println(str.length());\n\t\t\t//if (br.ready()) {\n\t\t\t//}else{\n\t\t\t//\tbreak;\n\t\t\t//}\n\n\t\t\t// ????????°????????????\n\t\t\tfor (int count = 0; count < str.length(); count++) {\n\t\t\t\tc = str.charAt(count);\n\t\t\t\t// ?????????????°????????????????\n\t\t\t\ts = String.valueOf(c).toLowerCase();\n\t\t\t\t// 26?????????????????????\n\t\t\t\tfor (int i = 0; i < 26; i++) {\n\t\t\t\t\t// ????????±???????????£?????´??????list2?????°??????+??????\n\t\t\t\t\tif (list.get(i).equals(s)) {\n\t\t\t\t\t\tlist2.set(i, list2.get(i) + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}while (br.ready());",
"br.ready()",
"br.ready",
"br",
"{\n\n\t\t\t// ??????????????????\n\t\t\tString str = br.readLine();\n\t\t\t//System.out.println(str.length());\n\t\t\t//if (br.ready()) {\n\t\t\t//}else{\n\t\t\t//\tbreak;\n\t\t\t//}\n\n\t\t\t// ????????°????????????\n\t\t\tfor (int count = 0; count < str.length(); count++) {\n\t\t\t\tc = str.charAt(count);\n\t\t\t\t// ?????????????°????????????????\n\t\t\t\ts = String.valueOf(c).toLowerCase();\n\t\t\t\t// 26?????????????????????\n\t\t\t\tfor (int i = 0; i < 26; i++) {\n\t\t\t\t\t// ????????±???????????£?????´??????list2?????°??????+??????\n\t\t\t\t\tif (list.get(i).equals(s)) {\n\t\t\t\t\t\tlist2.set(i, list2.get(i) + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"for (int count = 0; count < str.length(); count++) {\n\t\t\t\tc = str.charAt(count);\n\t\t\t\t// ?????????????°????????????????\n\t\t\t\ts = String.valueOf(c).toLowerCase();\n\t\t\t\t// 26?????????????????????\n\t\t\t\tfor (int i = 0; i < 26; i++) {\n\t\t\t\t\t// ????????±???????????£?????´??????list2?????°??????+??????\n\t\t\t\t\tif (list.get(i).equals(s)) {\n\t\t\t\t\t\tlist2.set(i, list2.get(i) + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int count = 0;",
"int count = 0;",
"count",
"0",
"count < str.length()",
"count",
"str.length()",
"str.length",
"str",
"count++",
"count++",
"count",
"{\n\t\t\t\tc = str.charAt(count);\n\t\t\t\t// ?????????????°????????????????\n\t\t\t\ts = String.valueOf(c).toLowerCase();\n\t\t\t\t// 26?????????????????????\n\t\t\t\tfor (int i = 0; i < 26; i++) {\n\t\t\t\t\t// ????????±???????????£?????´??????list2?????°??????+??????\n\t\t\t\t\tif (list.get(i).equals(s)) {\n\t\t\t\t\t\tlist2.set(i, list2.get(i) + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tc = str.charAt(count);\n\t\t\t\t// ?????????????°????????????????\n\t\t\t\ts = String.valueOf(c).toLowerCase();\n\t\t\t\t// 26?????????????????????\n\t\t\t\tfor (int i = 0; i < 26; i++) {\n\t\t\t\t\t// ????????±???????????£?????´??????list2?????°??????+??????\n\t\t\t\t\tif (list.get(i).equals(s)) {\n\t\t\t\t\t\tlist2.set(i, list2.get(i) + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"c = str.charAt(count)",
"c",
"str.charAt(count)",
"str.charAt",
"str",
"count",
"s = String.valueOf(c).toLowerCase()",
"s",
"String.valueOf(c).toLowerCase()",
"String.valueOf(c).toLowerCase",
"String.valueOf(c)",
"String.valueOf",
"String",
"c",
"for (int i = 0; i < 26; i++) {\n\t\t\t\t\t// ????????±???????????£?????´??????list2?????°??????+??????\n\t\t\t\t\tif (list.get(i).equals(s)) {\n\t\t\t\t\t\tlist2.set(i, list2.get(i) + 1);\n\t\t\t\t\t}\n\t\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\t\t\t// ????????±???????????£?????´??????list2?????°??????+??????\n\t\t\t\t\tif (list.get(i).equals(s)) {\n\t\t\t\t\t\tlist2.set(i, list2.get(i) + 1);\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\t// ????????±???????????£?????´??????list2?????°??????+??????\n\t\t\t\t\tif (list.get(i).equals(s)) {\n\t\t\t\t\t\tlist2.set(i, list2.get(i) + 1);\n\t\t\t\t\t}\n\t\t\t\t}",
"if (list.get(i).equals(s)) {\n\t\t\t\t\t\tlist2.set(i, list2.get(i) + 1);\n\t\t\t\t\t}",
"list.get(i).equals(s)",
"list.get(i).equals",
"list.get(i)",
"list.get",
"list",
"i",
"s",
"{\n\t\t\t\t\t\tlist2.set(i, list2.get(i) + 1);\n\t\t\t\t\t}",
"list2.set(i, list2.get(i) + 1)",
"list2.set",
"list2",
"i",
"list2.get(i) + 1",
"list2.get(i)",
"list2.get",
"list2",
"i",
"1",
"for (int count2 = 0; count2 < 26; count2++) {\n\t\t\tsb.append(list.get(count2));\n\t\t\tsb.append(\" : \");\n\t\t\tsb.append(list2.get(count2));\n\t\t\tsb.append(\"\\n\");\n\t\t}",
"int count2 = 0;",
"int count2 = 0;",
"count2",
"0",
"count2 < 26",
"count2",
"26",
"count2++",
"count2++",
"count2",
"{\n\t\t\tsb.append(list.get(count2));\n\t\t\tsb.append(\" : \");\n\t\t\tsb.append(list2.get(count2));\n\t\t\tsb.append(\"\\n\");\n\t\t}",
"{\n\t\t\tsb.append(list.get(count2));\n\t\t\tsb.append(\" : \");\n\t\t\tsb.append(list2.get(count2));\n\t\t\tsb.append(\"\\n\");\n\t\t}",
"sb.append(list.get(count2))",
"sb.append",
"sb",
"list.get(count2)",
"list.get",
"list",
"count2",
"sb.append(\" : \")",
"sb.append",
"sb",
"\" : \"",
"sb.append(list2.get(count2))",
"sb.append",
"sb",
"list2.get(count2)",
"list2.get",
"list2",
"count2",
"sb.append(\"\\n\")",
"sb.append",
"sb",
"\"\\n\"",
"sb.deleteCharAt(sb.length() - 1)",
"sb.deleteCharAt",
"sb",
"sb.length() - 1",
"sb.length()",
"sb.length",
"sb",
"1",
"System.out.println(new String(sb))",
"System.out.println",
"System.out",
"System",
"System.out",
"new String(sb)",
"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\tStringBuilder sb = new StringBuilder();\n\t\tchar c;\n\t\tString s;\n\t\ts = \"\";// ?????????\n\n\t\t// a~z?????§???????????????????´????????????????\n\t\tList<String> list = new ArrayList<String>();\n\t\t// a~z?????§???????´?(26??????\n\t\tlist.add(\"a\");\n\t\tlist.add(\"b\");\n\t\tlist.add(\"c\");\n\t\tlist.add(\"d\");\n\t\tlist.add(\"e\");\n\t\tlist.add(\"f\");\n\t\tlist.add(\"g\");\n\t\tlist.add(\"h\");\n\t\tlist.add(\"i\");\n\t\tlist.add(\"j\");\n\t\tlist.add(\"k\");\n\t\tlist.add(\"l\");\n\t\tlist.add(\"m\");\n\t\tlist.add(\"n\");\n\t\tlist.add(\"o\");\n\t\tlist.add(\"p\");\n\t\tlist.add(\"q\");\n\t\tlist.add(\"r\");\n\t\tlist.add(\"s\");\n\t\tlist.add(\"t\");\n\t\tlist.add(\"u\");\n\t\tlist.add(\"v\");\n\t\tlist.add(\"w\");\n\t\tlist.add(\"x\");\n\t\tlist.add(\"y\");\n\t\tlist.add(\"z\");\n\n\t\t// ?????°???????´????????????????\n\t\tList<Integer> list2 = new ArrayList<Integer>();\n\t\t// ?????????0???????´?(26??????\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\n\t\t// ??°???????????????\n\t\tdo {\n\n\t\t\t// ??????????????????\n\t\t\tString str = br.readLine();\n\t\t\t//System.out.println(str.length());\n\t\t\t//if (br.ready()) {\n\t\t\t//}else{\n\t\t\t//\tbreak;\n\t\t\t//}\n\n\t\t\t// ????????°????????????\n\t\t\tfor (int count = 0; count < str.length(); count++) {\n\t\t\t\tc = str.charAt(count);\n\t\t\t\t// ?????????????°????????????????\n\t\t\t\ts = String.valueOf(c).toLowerCase();\n\t\t\t\t// 26?????????????????????\n\t\t\t\tfor (int i = 0; i < 26; i++) {\n\t\t\t\t\t// ????????±???????????£?????´??????list2?????°??????+??????\n\t\t\t\t\tif (list.get(i).equals(s)) {\n\t\t\t\t\t\tlist2.set(i, list2.get(i) + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}while (br.ready());\n\t\t\n\t\t// ??¨?????????\n\t\tfor (int count2 = 0; count2 < 26; count2++) {\n\t\t\tsb.append(list.get(count2));\n\t\t\tsb.append(\" : \");\n\t\t\tsb.append(list2.get(count2));\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\t\n\t\t// ????????????????????????\n\t\tsb.deleteCharAt(sb.length() - 1);\n\t\tSystem.out.println(new String(sb));\n\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\tStringBuilder sb = new StringBuilder();\n\t\tchar c;\n\t\tString s;\n\t\ts = \"\";// ?????????\n\n\t\t// a~z?????§???????????????????´????????????????\n\t\tList<String> list = new ArrayList<String>();\n\t\t// a~z?????§???????´?(26??????\n\t\tlist.add(\"a\");\n\t\tlist.add(\"b\");\n\t\tlist.add(\"c\");\n\t\tlist.add(\"d\");\n\t\tlist.add(\"e\");\n\t\tlist.add(\"f\");\n\t\tlist.add(\"g\");\n\t\tlist.add(\"h\");\n\t\tlist.add(\"i\");\n\t\tlist.add(\"j\");\n\t\tlist.add(\"k\");\n\t\tlist.add(\"l\");\n\t\tlist.add(\"m\");\n\t\tlist.add(\"n\");\n\t\tlist.add(\"o\");\n\t\tlist.add(\"p\");\n\t\tlist.add(\"q\");\n\t\tlist.add(\"r\");\n\t\tlist.add(\"s\");\n\t\tlist.add(\"t\");\n\t\tlist.add(\"u\");\n\t\tlist.add(\"v\");\n\t\tlist.add(\"w\");\n\t\tlist.add(\"x\");\n\t\tlist.add(\"y\");\n\t\tlist.add(\"z\");\n\n\t\t// ?????°???????´????????????????\n\t\tList<Integer> list2 = new ArrayList<Integer>();\n\t\t// ?????????0???????´?(26??????\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\t\tlist2.add(0);\n\n\t\t// ??°???????????????\n\t\tdo {\n\n\t\t\t// ??????????????????\n\t\t\tString str = br.readLine();\n\t\t\t//System.out.println(str.length());\n\t\t\t//if (br.ready()) {\n\t\t\t//}else{\n\t\t\t//\tbreak;\n\t\t\t//}\n\n\t\t\t// ????????°????????????\n\t\t\tfor (int count = 0; count < str.length(); count++) {\n\t\t\t\tc = str.charAt(count);\n\t\t\t\t// ?????????????°????????????????\n\t\t\t\ts = String.valueOf(c).toLowerCase();\n\t\t\t\t// 26?????????????????????\n\t\t\t\tfor (int i = 0; i < 26; i++) {\n\t\t\t\t\t// ????????±???????????£?????´??????list2?????°??????+??????\n\t\t\t\t\tif (list.get(i).equals(s)) {\n\t\t\t\t\t\tlist2.set(i, list2.get(i) + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}while (br.ready());\n\t\t\n\t\t// ??¨?????????\n\t\tfor (int count2 = 0; count2 < 26; count2++) {\n\t\t\tsb.append(list.get(count2));\n\t\t\tsb.append(\" : \");\n\t\t\tsb.append(list2.get(count2));\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\t\n\t\t// ????????????????????????\n\t\tsb.deleteCharAt(sb.length() - 1);\n\t\tSystem.out.println(new String(sb));\n\n\t}\n}",
"Main"
]
|
import java.util.*;
import java.io.*;
public class Main{
public static void main(String args[]) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
char c;
String s;
s = "";// ?????????
// a~z?????§???????????????????´????????????????
List<String> list = new ArrayList<String>();
// a~z?????§???????´?(26??????
list.add("a");
list.add("b");
list.add("c");
list.add("d");
list.add("e");
list.add("f");
list.add("g");
list.add("h");
list.add("i");
list.add("j");
list.add("k");
list.add("l");
list.add("m");
list.add("n");
list.add("o");
list.add("p");
list.add("q");
list.add("r");
list.add("s");
list.add("t");
list.add("u");
list.add("v");
list.add("w");
list.add("x");
list.add("y");
list.add("z");
// ?????°???????´????????????????
List<Integer> list2 = new ArrayList<Integer>();
// ?????????0???????´?(26??????
list2.add(0);
list2.add(0);
list2.add(0);
list2.add(0);
list2.add(0);
list2.add(0);
list2.add(0);
list2.add(0);
list2.add(0);
list2.add(0);
list2.add(0);
list2.add(0);
list2.add(0);
list2.add(0);
list2.add(0);
list2.add(0);
list2.add(0);
list2.add(0);
list2.add(0);
list2.add(0);
list2.add(0);
list2.add(0);
list2.add(0);
list2.add(0);
list2.add(0);
list2.add(0);
// ??°???????????????
do {
// ??????????????????
String str = br.readLine();
//System.out.println(str.length());
//if (br.ready()) {
//}else{
// break;
//}
// ????????°????????????
for (int count = 0; count < str.length(); count++) {
c = str.charAt(count);
// ?????????????°????????????????
s = String.valueOf(c).toLowerCase();
// 26?????????????????????
for (int i = 0; i < 26; i++) {
// ????????±???????????£?????´??????list2?????°??????+??????
if (list.get(i).equals(s)) {
list2.set(i, list2.get(i) + 1);
}
}
}
}while (br.ready());
// ??¨?????????
for (int count2 = 0; count2 < 26; count2++) {
sb.append(list.get(count2));
sb.append(" : ");
sb.append(list2.get(count2));
sb.append("\n");
}
// ????????????????????????
sb.deleteCharAt(sb.length() - 1);
System.out.println(new String(sb));
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
17,
41,
13,
20,
41,
13,
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,
14,
4,
18,
13,
13,
30,
41,
13,
4,
18,
13,
13,
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,
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
],
[
107,
11
],
[
107,
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
],
[
14,
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
],
[
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
],
[
62,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
14,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
75,
85
],
[
85,
86
],
[
86,
87
],
[
75,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
96,
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\n// (1) ??¢??????????????????????????°???????´??????????????????°count???????????????\n// (2) ??????????????????????????????\n// (3) ??????????????????????????????????????°?????????1??????????????\\?????????????????????\n\t// (4.1) ????±???¨??????1?????????Char??????????????????\n\t\t// (4.1.1)??¢???????????????????????°???????????\\?????????????????????\n\t\t\t// (4.1.1.1) ??????????????????????´?????????¢????????????????????¨\n //\t\t ????±???¨??????1?????????ASCII?????????????????´????????´????????\\?????????????????????\n\t\t\t\t// (4.1.1.1.1) ?????°count?????°???????¢???????\n\t\t\t// (4.1.1.2) ?????????????±???¨??????1???????????§???????????´????????\\?????????????????????\n\t\t\t\t// (4.1.1.2.1) ?°??????????????????????\n\t\t\t\t\t// (4.1.1.2.1.1) ??????????°??????????????????????????????¨\n // ????±???¨??????1?????????ASCII?????????????????´????????´?????\\?????????????????????\n\t\t\t\t\t\t// (4.1.1.2.1.1.1) count?????°???????¢???????\n\t\t// (4.1.2) ??¢???????????????????????°????????\\?????????????????????\n\t\t\t// (4.1.2.1) ??¢????????????????????¨count??????????????¨?????????\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tfinal char ASCII_CODE_BASE = 97;\n\n\t\tint counts[] = new int[26];\n\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\t\twhile((str = br.readLine()) != null) {\n\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tchar c = str.charAt(i);\n\t\t\t\tif(Character.isAlphabetic(c)) {\n\t\t\t\t\tchar lowerChar = Character.toLowerCase(c);\n\t\t\t\t\tcounts[lowerChar - ASCII_CODE_BASE]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < counts.length; i++) {\n\t\t\tSystem.out.println((char)(i+ASCII_CODE_BASE) + \" : \" + counts[i]);\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",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tfinal char ASCII_CODE_BASE = 97;\n\n\t\tint counts[] = new int[26];\n\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\t\twhile((str = br.readLine()) != null) {\n\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tchar c = str.charAt(i);\n\t\t\t\tif(Character.isAlphabetic(c)) {\n\t\t\t\t\tchar lowerChar = Character.toLowerCase(c);\n\t\t\t\t\tcounts[lowerChar - ASCII_CODE_BASE]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < counts.length; i++) {\n\t\t\tSystem.out.println((char)(i+ASCII_CODE_BASE) + \" : \" + counts[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tfinal char ASCII_CODE_BASE = 97;\n\n\t\tint counts[] = new int[26];\n\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\t\twhile((str = br.readLine()) != null) {\n\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tchar c = str.charAt(i);\n\t\t\t\tif(Character.isAlphabetic(c)) {\n\t\t\t\t\tchar lowerChar = Character.toLowerCase(c);\n\t\t\t\t\tcounts[lowerChar - ASCII_CODE_BASE]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < counts.length; i++) {\n\t\t\tSystem.out.println((char)(i+ASCII_CODE_BASE) + \" : \" + counts[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tfinal char ASCII_CODE_BASE = 97;\n\n\t\tint counts[] = new int[26];\n\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\t\twhile((str = br.readLine()) != null) {\n\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tchar c = str.charAt(i);\n\t\t\t\tif(Character.isAlphabetic(c)) {\n\t\t\t\t\tchar lowerChar = Character.toLowerCase(c);\n\t\t\t\t\tcounts[lowerChar - ASCII_CODE_BASE]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < counts.length; i++) {\n\t\t\tSystem.out.println((char)(i+ASCII_CODE_BASE) + \" : \" + counts[i]);\n\t\t}\n\t}",
"final char ASCII_CODE_BASE = 97;",
"ASCII_CODE_BASE",
"97",
"int counts[] = new int[26];",
"counts",
"new int[26]",
"26",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str;",
"str",
"while((str = br.readLine()) != null) {\n\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tchar c = str.charAt(i);\n\t\t\t\tif(Character.isAlphabetic(c)) {\n\t\t\t\t\tchar lowerChar = Character.toLowerCase(c);\n\t\t\t\t\tcounts[lowerChar - ASCII_CODE_BASE]++;\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\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tchar c = str.charAt(i);\n\t\t\t\tif(Character.isAlphabetic(c)) {\n\t\t\t\t\tchar lowerChar = Character.toLowerCase(c);\n\t\t\t\t\tcounts[lowerChar - ASCII_CODE_BASE]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int i = 0; i < str.length(); i++) {\n\t\t\t\tchar c = str.charAt(i);\n\t\t\t\tif(Character.isAlphabetic(c)) {\n\t\t\t\t\tchar lowerChar = Character.toLowerCase(c);\n\t\t\t\t\tcounts[lowerChar - ASCII_CODE_BASE]++;\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\tchar c = str.charAt(i);\n\t\t\t\tif(Character.isAlphabetic(c)) {\n\t\t\t\t\tchar lowerChar = Character.toLowerCase(c);\n\t\t\t\t\tcounts[lowerChar - ASCII_CODE_BASE]++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tchar c = str.charAt(i);\n\t\t\t\tif(Character.isAlphabetic(c)) {\n\t\t\t\t\tchar lowerChar = Character.toLowerCase(c);\n\t\t\t\t\tcounts[lowerChar - ASCII_CODE_BASE]++;\n\t\t\t\t}\n\t\t\t}",
"char c = str.charAt(i);",
"c",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"if(Character.isAlphabetic(c)) {\n\t\t\t\t\tchar lowerChar = Character.toLowerCase(c);\n\t\t\t\t\tcounts[lowerChar - ASCII_CODE_BASE]++;\n\t\t\t\t}",
"Character.isAlphabetic(c)",
"Character.isAlphabetic",
"Character",
"c",
"{\n\t\t\t\t\tchar lowerChar = Character.toLowerCase(c);\n\t\t\t\t\tcounts[lowerChar - ASCII_CODE_BASE]++;\n\t\t\t\t}",
"char lowerChar = Character.toLowerCase(c);",
"lowerChar",
"Character.toLowerCase(c)",
"Character.toLowerCase",
"Character",
"c",
"counts[lowerChar - ASCII_CODE_BASE]++",
"counts[lowerChar - ASCII_CODE_BASE]",
"counts",
"lowerChar - ASCII_CODE_BASE",
"lowerChar",
"ASCII_CODE_BASE",
"for (int i = 0; i < counts.length; i++) {\n\t\t\tSystem.out.println((char)(i+ASCII_CODE_BASE) + \" : \" + counts[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < counts.length",
"i",
"counts.length",
"counts",
"counts.length",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println((char)(i+ASCII_CODE_BASE) + \" : \" + counts[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println((char)(i+ASCII_CODE_BASE) + \" : \" + counts[i]);\n\t\t}",
"System.out.println((char)(i+ASCII_CODE_BASE) + \" : \" + counts[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)(i+ASCII_CODE_BASE) + \" : \" + counts[i]",
"(char)(i+ASCII_CODE_BASE) + \" : \" + counts[i]",
"(char)(i+ASCII_CODE_BASE)",
"i",
"ASCII_CODE_BASE",
"\" : \"",
"counts[i]",
"counts",
"i",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tfinal char ASCII_CODE_BASE = 97;\n\n\t\tint counts[] = new int[26];\n\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\t\twhile((str = br.readLine()) != null) {\n\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tchar c = str.charAt(i);\n\t\t\t\tif(Character.isAlphabetic(c)) {\n\t\t\t\t\tchar lowerChar = Character.toLowerCase(c);\n\t\t\t\t\tcounts[lowerChar - ASCII_CODE_BASE]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < counts.length; i++) {\n\t\t\tSystem.out.println((char)(i+ASCII_CODE_BASE) + \" : \" + counts[i]);\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tfinal char ASCII_CODE_BASE = 97;\n\n\t\tint counts[] = new int[26];\n\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\t\twhile((str = br.readLine()) != null) {\n\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tchar c = str.charAt(i);\n\t\t\t\tif(Character.isAlphabetic(c)) {\n\t\t\t\t\tchar lowerChar = Character.toLowerCase(c);\n\t\t\t\t\tcounts[lowerChar - ASCII_CODE_BASE]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < counts.length; i++) {\n\t\t\tSystem.out.println((char)(i+ASCII_CODE_BASE) + \" : \" + counts[i]);\n\t\t}\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
// (1) ??¢??????????????????????????°???????´??????????????????°count???????????????
// (2) ??????????????????????????????
// (3) ??????????????????????????????????????°?????????1??????????????\?????????????????????
// (4.1) ????±???¨??????1?????????Char??????????????????
// (4.1.1)??¢???????????????????????°???????????\?????????????????????
// (4.1.1.1) ??????????????????????´?????????¢????????????????????¨
// ????±???¨??????1?????????ASCII?????????????????´????????´????????\?????????????????????
// (4.1.1.1.1) ?????°count?????°???????¢???????
// (4.1.1.2) ?????????????±???¨??????1???????????§???????????´????????\?????????????????????
// (4.1.1.2.1) ?°??????????????????????
// (4.1.1.2.1.1) ??????????°??????????????????????????????¨
// ????±???¨??????1?????????ASCII?????????????????´????????´?????\?????????????????????
// (4.1.1.2.1.1.1) count?????°???????¢???????
// (4.1.2) ??¢???????????????????????°????????\?????????????????????
// (4.1.2.1) ??¢????????????????????¨count??????????????¨?????????
public class Main {
public static void main(String[] args) throws IOException {
final char ASCII_CODE_BASE = 97;
int counts[] = new int[26];
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str;
while((str = br.readLine()) != null) {
for (int i = 0; i < str.length(); i++) {
char c = str.charAt(i);
if(Character.isAlphabetic(c)) {
char lowerChar = Character.toLowerCase(c);
counts[lowerChar - ASCII_CODE_BASE]++;
}
}
}
for (int i = 0; i < counts.length; i++) {
System.out.println((char)(i+ASCII_CODE_BASE) + " : " + counts[i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
20,
17,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
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,
4,
18,
18,
13,
13,
2,
2,
13,
17,
18,
13,
13,
40,
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
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
31,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
31,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
47,
57
],
[
57,
58
],
[
58,
59
],
[
47,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
8,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
82,
90
],
[
90,
91
],
[
91,
92
],
[
82,
93
],
[
94,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
101,
101
],
[
101,
102
],
[
101,
103
],
[
101,
104
],
[
104,
105
],
[
104,
106
],
[
94,
107
],
[
107,
108
],
[
6,
109
],
[
109,
110
]
]
| [
"import java.util.Scanner;\n//import java.io.*;\n\nclass Main {\n public static void main(String[] args){ \n \tScanner scan = new Scanner(System.in);\n \t \t \n \tString stR,str; \n char[] atoz;\n int ascii; \n char alpha = 'a';\n\n \n int [] AtoZ = new int[26];\n\n while(scan.hasNext()){\n stR = scan.nextLine();\n str = stR.toLowerCase(); //?°??????????\n atoz = str.toCharArray(); //char??????\n\n for(int ch = 0; ch < atoz.length; ch++){ //???????????¢?????????????????????\n ascii = atoz[ch] - 'a';\n if(ascii >=0 && ascii <26){\n \tAtoZ[ascii]++;\n }\n } \n }\n\n for(int j = 0; j < 26; j++){\n System.out.println(alpha+\" : \"+ AtoZ[j]);\n alpha++;\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String[] args){ \n \tScanner scan = new Scanner(System.in);\n \t \t \n \tString stR,str; \n char[] atoz;\n int ascii; \n char alpha = 'a';\n\n \n int [] AtoZ = new int[26];\n\n while(scan.hasNext()){\n stR = scan.nextLine();\n str = stR.toLowerCase(); //?°??????????\n atoz = str.toCharArray(); //char??????\n\n for(int ch = 0; ch < atoz.length; ch++){ //???????????¢?????????????????????\n ascii = atoz[ch] - 'a';\n if(ascii >=0 && ascii <26){\n \tAtoZ[ascii]++;\n }\n } \n }\n\n for(int j = 0; j < 26; j++){\n System.out.println(alpha+\" : \"+ AtoZ[j]);\n alpha++;\n }\n }\n}",
"Main",
"public static void main(String[] args){ \n \tScanner scan = new Scanner(System.in);\n \t \t \n \tString stR,str; \n char[] atoz;\n int ascii; \n char alpha = 'a';\n\n \n int [] AtoZ = new int[26];\n\n while(scan.hasNext()){\n stR = scan.nextLine();\n str = stR.toLowerCase(); //?°??????????\n atoz = str.toCharArray(); //char??????\n\n for(int ch = 0; ch < atoz.length; ch++){ //???????????¢?????????????????????\n ascii = atoz[ch] - 'a';\n if(ascii >=0 && ascii <26){\n \tAtoZ[ascii]++;\n }\n } \n }\n\n for(int j = 0; j < 26; j++){\n System.out.println(alpha+\" : \"+ AtoZ[j]);\n alpha++;\n }\n }",
"main",
"{ \n \tScanner scan = new Scanner(System.in);\n \t \t \n \tString stR,str; \n char[] atoz;\n int ascii; \n char alpha = 'a';\n\n \n int [] AtoZ = new int[26];\n\n while(scan.hasNext()){\n stR = scan.nextLine();\n str = stR.toLowerCase(); //?°??????????\n atoz = str.toCharArray(); //char??????\n\n for(int ch = 0; ch < atoz.length; ch++){ //???????????¢?????????????????????\n ascii = atoz[ch] - 'a';\n if(ascii >=0 && ascii <26){\n \tAtoZ[ascii]++;\n }\n } \n }\n\n for(int j = 0; j < 26; j++){\n System.out.println(alpha+\" : \"+ AtoZ[j]);\n alpha++;\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String stR",
"stR",
"str;",
"str",
"char[] atoz;",
"atoz",
"int ascii;",
"ascii",
"char alpha = 'a';",
"alpha",
"'a'",
"int [] AtoZ = new int[26];",
"AtoZ",
"new int[26]",
"26",
"while(scan.hasNext()){\n stR = scan.nextLine();\n str = stR.toLowerCase(); //?°??????????\n atoz = str.toCharArray(); //char??????\n\n for(int ch = 0; ch < atoz.length; ch++){ //???????????¢?????????????????????\n ascii = atoz[ch] - 'a';\n if(ascii >=0 && ascii <26){\n \tAtoZ[ascii]++;\n }\n } \n }",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n stR = scan.nextLine();\n str = stR.toLowerCase(); //?°??????????\n atoz = str.toCharArray(); //char??????\n\n for(int ch = 0; ch < atoz.length; ch++){ //???????????¢?????????????????????\n ascii = atoz[ch] - 'a';\n if(ascii >=0 && ascii <26){\n \tAtoZ[ascii]++;\n }\n } \n }",
"stR = scan.nextLine()",
"stR",
"scan.nextLine()",
"scan.nextLine",
"scan",
"str = stR.toLowerCase()",
"str",
"stR.toLowerCase()",
"stR.toLowerCase",
"stR",
"atoz = str.toCharArray()",
"atoz",
"str.toCharArray()",
"str.toCharArray",
"str",
"for(int ch = 0; ch < atoz.length; ch++){ //???????????¢?????????????????????\n ascii = atoz[ch] - 'a';\n if(ascii >=0 && ascii <26){\n \tAtoZ[ascii]++;\n }\n }",
"int ch = 0;",
"int ch = 0;",
"ch",
"0",
"ch < atoz.length",
"ch",
"atoz.length",
"atoz",
"atoz.length",
"ch++",
"ch++",
"ch",
"{ //???????????¢?????????????????????\n ascii = atoz[ch] - 'a';\n if(ascii >=0 && ascii <26){\n \tAtoZ[ascii]++;\n }\n }",
"{ //???????????¢?????????????????????\n ascii = atoz[ch] - 'a';\n if(ascii >=0 && ascii <26){\n \tAtoZ[ascii]++;\n }\n }",
"ascii = atoz[ch] - 'a'",
"ascii",
"atoz[ch] - 'a'",
"atoz[ch]",
"atoz",
"ch",
"'a'",
"if(ascii >=0 && ascii <26){\n \tAtoZ[ascii]++;\n }",
"ascii >=0 && ascii <26",
"ascii >=0",
"ascii",
"0",
"ascii <26",
"ascii",
"26",
"{\n \tAtoZ[ascii]++;\n }",
"AtoZ[ascii]++",
"AtoZ[ascii]",
"AtoZ",
"ascii",
"for(int j = 0; j < 26; j++){\n System.out.println(alpha+\" : \"+ AtoZ[j]);\n alpha++;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 26",
"j",
"26",
"j++",
"j++",
"j",
"{\n System.out.println(alpha+\" : \"+ AtoZ[j]);\n alpha++;\n }",
"{\n System.out.println(alpha+\" : \"+ AtoZ[j]);\n alpha++;\n }",
"System.out.println(alpha+\" : \"+ AtoZ[j])",
"System.out.println",
"System.out",
"System",
"System.out",
"alpha+\" : \"+ AtoZ[j]",
"alpha+\" : \"+ AtoZ[j]",
"alpha",
"\" : \"",
"AtoZ[j]",
"AtoZ",
"j",
"alpha++",
"alpha",
"String[] args",
"args"
]
| import java.util.Scanner;
//import java.io.*;
class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
String stR,str;
char[] atoz;
int ascii;
char alpha = 'a';
int [] AtoZ = new int[26];
while(scan.hasNext()){
stR = scan.nextLine();
str = stR.toLowerCase(); //?°??????????
atoz = str.toCharArray(); //char??????
for(int ch = 0; ch < atoz.length; ch++){ //???????????¢?????????????????????
ascii = atoz[ch] - 'a';
if(ascii >=0 && ascii <26){
AtoZ[ascii]++;
}
}
}
for(int j = 0; j < 26; j++){
System.out.println(alpha+" : "+ AtoZ[j]);
alpha++;
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
20,
41,
13,
41,
13,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
38,
5,
13,
30,
3,
30,
4,
18,
13,
4,
18,
13,
0,
13,
4,
18,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
17,
28,
13,
13,
30,
30,
14,
2,
2,
13,
13,
2,
13,
4,
18,
13,
13,
30,
40,
13,
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
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
24,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
32,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
42,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
51,
62
],
[
63,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
67,
69
],
[
67,
70
],
[
71,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
72,
83
],
[
83,
84
],
[
84,
85
],
[
63,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
92,
92
],
[
92,
93
],
[
92,
94
],
[
92,
95
],
[
6,
96
],
[
96,
97
]
]
| [
"import java.io.*;\n\nclass Main {\n public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n StringBuilder sb = new StringBuilder();\n char[] charArr;\n char c;\n int count;\n while ((str = br.readLine()) != null) {\n try {\n sb.append(str.toCharArray());\n } catch (Exception e) {\n break;\n }\n \n }\n charArr = sb.toString().toCharArray();\n for (c = 'a'; c <= 'z'; c++) {\n count = 0;\n for (char x : charArr) {\n if (x == c || x == Character.toUpperCase(c)) {\n count++;\n }\n }\n System.out.println(c + \" : \" + count);\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"class Main {\n public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n StringBuilder sb = new StringBuilder();\n char[] charArr;\n char c;\n int count;\n while ((str = br.readLine()) != null) {\n try {\n sb.append(str.toCharArray());\n } catch (Exception e) {\n break;\n }\n \n }\n charArr = sb.toString().toCharArray();\n for (c = 'a'; c <= 'z'; c++) {\n count = 0;\n for (char x : charArr) {\n if (x == c || x == Character.toUpperCase(c)) {\n count++;\n }\n }\n System.out.println(c + \" : \" + count);\n }\n }\n}",
"Main",
"public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n StringBuilder sb = new StringBuilder();\n char[] charArr;\n char c;\n int count;\n while ((str = br.readLine()) != null) {\n try {\n sb.append(str.toCharArray());\n } catch (Exception e) {\n break;\n }\n \n }\n charArr = sb.toString().toCharArray();\n for (c = 'a'; c <= 'z'; c++) {\n count = 0;\n for (char x : charArr) {\n if (x == c || x == Character.toUpperCase(c)) {\n count++;\n }\n }\n System.out.println(c + \" : \" + count);\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n StringBuilder sb = new StringBuilder();\n char[] charArr;\n char c;\n int count;\n while ((str = br.readLine()) != null) {\n try {\n sb.append(str.toCharArray());\n } catch (Exception e) {\n break;\n }\n \n }\n charArr = sb.toString().toCharArray();\n for (c = 'a'; c <= 'z'; c++) {\n count = 0;\n for (char x : charArr) {\n if (x == c || x == Character.toUpperCase(c)) {\n count++;\n }\n }\n System.out.println(c + \" : \" + count);\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str;",
"str",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"char[] charArr;",
"charArr",
"char c;",
"c",
"int count;",
"count",
"while ((str = br.readLine()) != null) {\n try {\n sb.append(str.toCharArray());\n } catch (Exception e) {\n break;\n }\n \n }",
"(str = br.readLine()) != null",
"(str = br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n try {\n sb.append(str.toCharArray());\n } catch (Exception e) {\n break;\n }\n \n }",
"try {\n sb.append(str.toCharArray());\n } catch (Exception e) {\n break;\n }",
"catch (Exception e) {\n break;\n }",
"Exception e",
"{\n break;\n }",
"break;",
"{\n sb.append(str.toCharArray());\n }",
"sb.append(str.toCharArray())",
"sb.append",
"sb",
"str.toCharArray()",
"str.toCharArray",
"str",
"charArr = sb.toString().toCharArray()",
"charArr",
"sb.toString().toCharArray()",
"sb.toString().toCharArray",
"sb.toString()",
"sb.toString",
"sb",
"for (c = 'a'; c <= 'z'; c++) {\n count = 0;\n for (char x : charArr) {\n if (x == c || x == Character.toUpperCase(c)) {\n count++;\n }\n }\n System.out.println(c + \" : \" + count);\n }",
"c = 'a';",
"c = 'a'",
"c",
"'a'",
"c <= 'z'",
"c",
"'z'",
"c++",
"c++",
"c",
"{\n count = 0;\n for (char x : charArr) {\n if (x == c || x == Character.toUpperCase(c)) {\n count++;\n }\n }\n System.out.println(c + \" : \" + count);\n }",
"{\n count = 0;\n for (char x : charArr) {\n if (x == c || x == Character.toUpperCase(c)) {\n count++;\n }\n }\n System.out.println(c + \" : \" + count);\n }",
"count = 0",
"count",
"0",
"for (char x : charArr) {\n if (x == c || x == Character.toUpperCase(c)) {\n count++;\n }\n }",
"char x",
"charArr",
"{\n if (x == c || x == Character.toUpperCase(c)) {\n count++;\n }\n }",
"{\n if (x == c || x == Character.toUpperCase(c)) {\n count++;\n }\n }",
"if (x == c || x == Character.toUpperCase(c)) {\n count++;\n }",
"x == c || x == Character.toUpperCase(c)",
"x == c",
"x",
"c",
"x == Character.toUpperCase(c)",
"x",
"Character.toUpperCase(c)",
"Character.toUpperCase",
"Character",
"c",
"{\n count++;\n }",
"count++",
"count",
"System.out.println(c + \" : \" + count)",
"System.out.println",
"System.out",
"System",
"System.out",
"c + \" : \" + count",
"c + \" : \" + count",
"c",
"\" : \"",
"count",
"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 str;
StringBuilder sb = new StringBuilder();
char[] charArr;
char c;
int count;
while ((str = br.readLine()) != null) {
try {
sb.append(str.toCharArray());
} catch (Exception e) {
break;
}
}
charArr = sb.toString().toCharArray();
for (c = 'a'; c <= 'z'; c++) {
count = 0;
for (char x : charArr) {
if (x == c || x == Character.toUpperCase(c)) {
count++;
}
}
System.out.println(c + " : " + count);
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
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,
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,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
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,
17,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
133,
5
],
[
133,
6
],
[
6,
7
],
[
6,
8
],
[
133,
9
],
[
9,
10
],
[
9,
11
],
[
11,
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
],
[
11,
41
],
[
41,
42
],
[
41,
43
],
[
11,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
49,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
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
],
[
83,
85
],
[
81,
86
],
[
86,
87
],
[
86,
88
],
[
81,
89
],
[
89,
90
],
[
90,
91
],
[
81,
92
],
[
93,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
97,
99
],
[
94,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
11,
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
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
118,
124
],
[
124,
125
],
[
124,
126
],
[
118,
127
],
[
127,
128
],
[
127,
129
],
[
9,
130
],
[
130,
131
],
[
0,
132
],
[
132,
133
],
[
132,
134
]
]
| [
"import java.util.*;\n\npublic class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tchar[] alp = { '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\twhile(scan.hasNext()){\n\t\t\tString word = scan.next();\n\t\t\tword = word.toLowerCase();\n\t\t\tfor(int i = 0; i < word.length(); i++){\n\t\t\t\tchar ch = word.charAt(i);\n\t\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\t\tif(ch == alp[j]){\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\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.printf(\"%c : %d\\n\", alp[i], count[i]);\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tchar[] alp = { '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\twhile(scan.hasNext()){\n\t\t\tString word = scan.next();\n\t\t\tword = word.toLowerCase();\n\t\t\tfor(int i = 0; i < word.length(); i++){\n\t\t\t\tchar ch = word.charAt(i);\n\t\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\t\tif(ch == alp[j]){\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\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.printf(\"%c : %d\\n\", alp[i], count[i]);\n\t\t}\n\t}\n}",
"Main",
"private static final Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"public static void main(String[] args){\n\t\tchar[] alp = { '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\twhile(scan.hasNext()){\n\t\t\tString word = scan.next();\n\t\t\tword = word.toLowerCase();\n\t\t\tfor(int i = 0; i < word.length(); i++){\n\t\t\t\tchar ch = word.charAt(i);\n\t\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\t\tif(ch == alp[j]){\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\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.printf(\"%c : %d\\n\", alp[i], count[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tchar[] alp = { '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\twhile(scan.hasNext()){\n\t\t\tString word = scan.next();\n\t\t\tword = word.toLowerCase();\n\t\t\tfor(int i = 0; i < word.length(); i++){\n\t\t\t\tchar ch = word.charAt(i);\n\t\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\t\tif(ch == alp[j]){\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\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.printf(\"%c : %d\\n\", alp[i], count[i]);\n\t\t}\n\t}",
"char[] alp = { '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'};",
"alp",
"{ '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",
"while(scan.hasNext()){\n\t\t\tString word = scan.next();\n\t\t\tword = word.toLowerCase();\n\t\t\tfor(int i = 0; i < word.length(); i++){\n\t\t\t\tchar ch = word.charAt(i);\n\t\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\t\tif(ch == alp[j]){\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n\t\t\tString word = scan.next();\n\t\t\tword = word.toLowerCase();\n\t\t\tfor(int i = 0; i < word.length(); i++){\n\t\t\t\tchar ch = word.charAt(i);\n\t\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\t\tif(ch == alp[j]){\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"String word = scan.next();",
"word",
"scan.next()",
"scan.next",
"scan",
"word = word.toLowerCase()",
"word",
"word.toLowerCase()",
"word.toLowerCase",
"word",
"for(int i = 0; i < word.length(); i++){\n\t\t\t\tchar ch = word.charAt(i);\n\t\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\t\tif(ch == alp[j]){\n\t\t\t\t\t\tcount[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 < word.length()",
"i",
"word.length()",
"word.length",
"word",
"i++",
"i++",
"i",
"{\n\t\t\t\tchar ch = word.charAt(i);\n\t\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\t\tif(ch == alp[j]){\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tchar ch = word.charAt(i);\n\t\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\t\tif(ch == alp[j]){\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"char ch = word.charAt(i);",
"ch",
"word.charAt(i)",
"word.charAt",
"word",
"i",
"for(int j = 0; j < 26; j++){\n\t\t\t\t\tif(ch == alp[j]){\n\t\t\t\t\t\tcount[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(ch == alp[j]){\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif(ch == alp[j]){\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"if(ch == alp[j]){\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}",
"ch == alp[j]",
"ch",
"alp[j]",
"alp",
"j",
"{\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}",
"count[j]++",
"count[j]",
"count",
"j",
"for(int i = 0; i < 26; i++){\n\t\t\tSystem.out.printf(\"%c : %d\\n\", alp[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.printf(\"%c : %d\\n\", alp[i], count[i]);\n\t\t}",
"{\n\t\t\tSystem.out.printf(\"%c : %d\\n\", alp[i], count[i]);\n\t\t}",
"System.out.printf(\"%c : %d\\n\", alp[i], count[i])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c : %d\\n\"",
"alp[i]",
"alp",
"i",
"count[i]",
"count",
"i",
"String[] args",
"args",
"public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tchar[] alp = { '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\twhile(scan.hasNext()){\n\t\t\tString word = scan.next();\n\t\t\tword = word.toLowerCase();\n\t\t\tfor(int i = 0; i < word.length(); i++){\n\t\t\t\tchar ch = word.charAt(i);\n\t\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\t\tif(ch == alp[j]){\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\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.printf(\"%c : %d\\n\", alp[i], count[i]);\n\t\t}\n\t}\n}",
"public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tchar[] alp = { '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\twhile(scan.hasNext()){\n\t\t\tString word = scan.next();\n\t\t\tword = word.toLowerCase();\n\t\t\tfor(int i = 0; i < word.length(); i++){\n\t\t\t\tchar ch = word.charAt(i);\n\t\t\t\tfor(int j = 0; j < 26; j++){\n\t\t\t\t\tif(ch == alp[j]){\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t}\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.printf(\"%c : %d\\n\", alp[i], count[i]);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in);
public static void main(String[] args){
char[] alp = { '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];
while(scan.hasNext()){
String word = scan.next();
word = word.toLowerCase();
for(int i = 0; i < word.length(); i++){
char ch = word.charAt(i);
for(int j = 0; j < 26; j++){
if(ch == alp[j]){
count[j]++;
}
}
}
}
for(int i = 0; i < 26; i++){
System.out.printf("%c : %d\n", alp[i], 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,
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,
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
],
[
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
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
34,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
47,
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
],
[
26,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
65,
75
],
[
75,
76
],
[
76,
77
],
[
65,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
9,
94
],
[
94,
95
]
]
| [
"/* 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 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 System.out.println((char)('a' + i) + \" : \" + count[i]);\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 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 System.out.println((char)('a' + i) + \" : \" + count[i]);\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 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 System.out.println((char)('a' + i) + \" : \" + count[i]);\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 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 System.out.println((char)('a' + i) + \" : \" + count[i]);\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 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 System.out.println((char)('a' + i) + \" : \" + count[i]);\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 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 System.out.println((char)('a' + i) + \" : \" + count[i]);\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"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 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"
]
| /* 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));
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++){
System.out.println((char)('a' + i) + " : " + count[i]);
}
}catch(Exception e){
System.out.println(e);
}
}
} |
[
7,
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,
0,
18,
13,
13,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
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,
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,
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
],
[
115,
5
],
[
115,
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
],
[
16,
24
],
[
24,
25
],
[
25,
26
],
[
16,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
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
],
[
37,
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
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
65,
70
],
[
64,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
71,
76
],
[
63,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
80,
85
],
[
8,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
86,
94
],
[
94,
95
],
[
95,
96
],
[
86,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
104,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
104,
109
],
[
109,
110
],
[
109,
111
],
[
6,
112
],
[
112,
113
],
[
0,
114
],
[
114,
115
],
[
114,
116
]
]
| [
"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 for (int i = 0; i < 26; i++)\n count[i] = 0;\n\n while(sc.hasNext()){\n String input = sc.nextLine();\n String lowed = input.toLowerCase();\n for (int i = 0; i < lowed.length(); i++) {\n if (lowed.charAt(i) >= 'a' && lowed.charAt(i) <= 'z')\n count[lowed.charAt(i) - 'a']++;\n }\n }\n\n for (int i = 0; i < 26; i++)\n System.out.println((char) ('a' + i) + \" : \" + count[i]);\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 for (int i = 0; i < 26; i++)\n count[i] = 0;\n\n while(sc.hasNext()){\n String input = sc.nextLine();\n String lowed = input.toLowerCase();\n for (int i = 0; i < lowed.length(); i++) {\n if (lowed.charAt(i) >= 'a' && lowed.charAt(i) <= 'z')\n count[lowed.charAt(i) - 'a']++;\n }\n }\n\n for (int i = 0; i < 26; i++)\n System.out.println((char) ('a' + i) + \" : \" + count[i]);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] count = new int[26];\n for (int i = 0; i < 26; i++)\n count[i] = 0;\n\n while(sc.hasNext()){\n String input = sc.nextLine();\n String lowed = input.toLowerCase();\n for (int i = 0; i < lowed.length(); i++) {\n if (lowed.charAt(i) >= 'a' && lowed.charAt(i) <= 'z')\n count[lowed.charAt(i) - 'a']++;\n }\n }\n\n for (int i = 0; i < 26; i++)\n System.out.println((char) ('a' + i) + \" : \" + count[i]);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int[] count = new int[26];\n for (int i = 0; i < 26; i++)\n count[i] = 0;\n\n while(sc.hasNext()){\n String input = sc.nextLine();\n String lowed = input.toLowerCase();\n for (int i = 0; i < lowed.length(); i++) {\n if (lowed.charAt(i) >= 'a' && lowed.charAt(i) <= 'z')\n count[lowed.charAt(i) - 'a']++;\n }\n }\n\n for (int i = 0; i < 26; i++)\n System.out.println((char) ('a' + i) + \" : \" + count[i]);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] count = new int[26];",
"count",
"new int[26]",
"26",
"for (int i = 0; i < 26; i++)\n count[i] = 0;",
"int i = 0;",
"int 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 String input = sc.nextLine();\n String lowed = input.toLowerCase();\n for (int i = 0; i < lowed.length(); i++) {\n if (lowed.charAt(i) >= 'a' && lowed.charAt(i) <= 'z')\n count[lowed.charAt(i) - 'a']++;\n }\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n String input = sc.nextLine();\n String lowed = input.toLowerCase();\n for (int i = 0; i < lowed.length(); i++) {\n if (lowed.charAt(i) >= 'a' && lowed.charAt(i) <= 'z')\n count[lowed.charAt(i) - 'a']++;\n }\n }",
"String input = sc.nextLine();",
"input",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String lowed = input.toLowerCase();",
"lowed",
"input.toLowerCase()",
"input.toLowerCase",
"input",
"for (int i = 0; i < lowed.length(); i++) {\n if (lowed.charAt(i) >= 'a' && lowed.charAt(i) <= 'z')\n count[lowed.charAt(i) - 'a']++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < lowed.length()",
"i",
"lowed.length()",
"lowed.length",
"lowed",
"i++",
"i++",
"i",
"{\n if (lowed.charAt(i) >= 'a' && lowed.charAt(i) <= 'z')\n count[lowed.charAt(i) - 'a']++;\n }",
"{\n if (lowed.charAt(i) >= 'a' && lowed.charAt(i) <= 'z')\n count[lowed.charAt(i) - 'a']++;\n }",
"if (lowed.charAt(i) >= 'a' && lowed.charAt(i) <= 'z')\n count[lowed.charAt(i) - 'a']++;",
"lowed.charAt(i) >= 'a' && lowed.charAt(i) <= 'z'",
"lowed.charAt(i) >= 'a'",
"lowed.charAt(i)",
"lowed.charAt",
"lowed",
"i",
"'a'",
"lowed.charAt(i) <= 'z'",
"lowed.charAt(i)",
"lowed.charAt",
"lowed",
"i",
"'z'",
"count[lowed.charAt(i) - 'a']++",
"count[lowed.charAt(i) - 'a']",
"count",
"lowed.charAt(i) - 'a'",
"lowed.charAt(i)",
"lowed.charAt",
"lowed",
"i",
"'a'",
"for (int i = 0; i < 26; i++)\n System.out.println((char) ('a' + i) + \" : \" + count[i]);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"System.out.println((char) ('a' + i) + \" : \" + count[i]);",
"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 for (int i = 0; i < 26; i++)\n count[i] = 0;\n\n while(sc.hasNext()){\n String input = sc.nextLine();\n String lowed = input.toLowerCase();\n for (int i = 0; i < lowed.length(); i++) {\n if (lowed.charAt(i) >= 'a' && lowed.charAt(i) <= 'z')\n count[lowed.charAt(i) - 'a']++;\n }\n }\n\n for (int i = 0; i < 26; i++)\n System.out.println((char) ('a' + i) + \" : \" + count[i]);\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 for (int i = 0; i < 26; i++)\n count[i] = 0;\n\n while(sc.hasNext()){\n String input = sc.nextLine();\n String lowed = input.toLowerCase();\n for (int i = 0; i < lowed.length(); i++) {\n if (lowed.charAt(i) >= 'a' && lowed.charAt(i) <= 'z')\n count[lowed.charAt(i) - 'a']++;\n }\n }\n\n for (int i = 0; i < 26; i++)\n System.out.println((char) ('a' + i) + \" : \" + count[i]);\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];
for (int i = 0; i < 26; i++)
count[i] = 0;
while(sc.hasNext()){
String input = sc.nextLine();
String lowed = input.toLowerCase();
for (int i = 0; i < lowed.length(); i++) {
if (lowed.charAt(i) >= 'a' && lowed.charAt(i) <= 'z')
count[lowed.charAt(i) - 'a']++;
}
}
for (int i = 0; i < 26; i++)
System.out.println((char) ('a' + i) + " : " + count[i]);
}
}
|
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
20,
17,
11,
1,
4,
18,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
20,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
13,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
0,
18,
13,
13,
2,
17,
17,
14,
2,
2,
18,
13,
13,
17,
2,
18,
13,
13,
17,
30,
40,
18,
13,
2,
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,
4,
18,
13,
23,
13,
23,
13,
12,
13,
30,
4,
18,
20,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
162,
2
],
[
162,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
5,
11
],
[
11,
12
],
[
5,
13
],
[
13,
14
],
[
5,
15
],
[
15,
16
],
[
5,
17
],
[
17,
18
],
[
5,
19
],
[
19,
20
],
[
5,
21
],
[
21,
22
],
[
5,
23
],
[
23,
24
],
[
23,
25
],
[
5,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
27,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
33,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
44,
45
],
[
44,
46
],
[
33,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
60,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
70,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
69,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
86,
88
],
[
60,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
90,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
89,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
5,
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
],
[
123,
125
],
[
125,
126
],
[
125,
127
],
[
122,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
134,
134
],
[
134,
135
],
[
134,
136
],
[
134,
137
],
[
137,
138
],
[
137,
139
],
[
5,
140
],
[
140,
141
],
[
141,
142
],
[
3,
143
],
[
143,
144
],
[
3,
145
],
[
145,
146
],
[
162,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
150,
153
],
[
153,
154
],
[
153,
155
],
[
150,
156
],
[
156,
157
],
[
156,
158
],
[
147,
159
],
[
159,
160
],
[
0,
161
],
[
161,
162
],
[
161,
163
]
]
| [
"public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n String str;\n char[] ch;\n int i, n, m;\n int[] count;\n char c;\n\n count = new int[26];\n\n for(;sc.hasNextLine();){\n str = sc.nextLine();\n m = str.length();\n ch = new char[m];\n for(i = 0;i < m;i++){\n ch[i] = str.charAt(i);\n if(ch[i] >= 'a' && ch[i] <= 'z'){\n ch[i] -= 'a' - 'A';\n }\n if(ch[i] >= 'A' && ch[i] <= 'Z'){\n count[ch[i] - 'A']++;\n }\n }\n\n }\n\n for(i = 0;i < 26;i++){\n c = (char)('a' + i);\n System.out.println(c + \" : \" + count[i]);\n }\n\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}",
"public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n String str;\n char[] ch;\n int i, n, m;\n int[] count;\n char c;\n\n count = new int[26];\n\n for(;sc.hasNextLine();){\n str = sc.nextLine();\n m = str.length();\n ch = new char[m];\n for(i = 0;i < m;i++){\n ch[i] = str.charAt(i);\n if(ch[i] >= 'a' && ch[i] <= 'z'){\n ch[i] -= 'a' - 'A';\n }\n if(ch[i] >= 'A' && ch[i] <= 'Z'){\n count[ch[i] - 'A']++;\n }\n }\n\n }\n\n for(i = 0;i < 26;i++){\n c = (char)('a' + i);\n System.out.println(c + \" : \" + count[i]);\n }\n\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}",
"Main",
"public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n String str;\n char[] ch;\n int i, n, m;\n int[] count;\n char c;\n\n count = new int[26];\n\n for(;sc.hasNextLine();){\n str = sc.nextLine();\n m = str.length();\n ch = new char[m];\n for(i = 0;i < m;i++){\n ch[i] = str.charAt(i);\n if(ch[i] >= 'a' && ch[i] <= 'z'){\n ch[i] -= 'a' - 'A';\n }\n if(ch[i] >= 'A' && ch[i] <= 'Z'){\n count[ch[i] - 'A']++;\n }\n }\n\n }\n\n for(i = 0;i < 26;i++){\n c = (char)('a' + i);\n System.out.println(c + \" : \" + count[i]);\n }\n\n\n sc.close();\n }",
"run",
"{\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n String str;\n char[] ch;\n int i, n, m;\n int[] count;\n char c;\n\n count = new int[26];\n\n for(;sc.hasNextLine();){\n str = sc.nextLine();\n m = str.length();\n ch = new char[m];\n for(i = 0;i < m;i++){\n ch[i] = str.charAt(i);\n if(ch[i] >= 'a' && ch[i] <= 'z'){\n ch[i] -= 'a' - 'A';\n }\n if(ch[i] >= 'A' && ch[i] <= 'Z'){\n count[ch[i] - 'A']++;\n }\n }\n\n }\n\n for(i = 0;i < 26;i++){\n c = (char)('a' + i);\n System.out.println(c + \" : \" + count[i]);\n }\n\n\n sc.close();\n }",
"java.util.Scanner sc = new java.util.Scanner(in);",
"sc",
"new java.util.Scanner(in)",
"String str;",
"str",
"char[] ch;",
"ch",
"int i",
"i",
"n",
"n",
"m;",
"m",
"int[] count;",
"count",
"char c;",
"c",
"count = new int[26]",
"count",
"new int[26]",
"26",
"for(;sc.hasNextLine();){\n str = sc.nextLine();\n m = str.length();\n ch = new char[m];\n for(i = 0;i < m;i++){\n ch[i] = str.charAt(i);\n if(ch[i] >= 'a' && ch[i] <= 'z'){\n ch[i] -= 'a' - 'A';\n }\n if(ch[i] >= 'A' && ch[i] <= 'Z'){\n count[ch[i] - 'A']++;\n }\n }\n\n }",
";",
"sc.hasNextLine()",
"sc.hasNextLine",
"sc",
"{\n str = sc.nextLine();\n m = str.length();\n ch = new char[m];\n for(i = 0;i < m;i++){\n ch[i] = str.charAt(i);\n if(ch[i] >= 'a' && ch[i] <= 'z'){\n ch[i] -= 'a' - 'A';\n }\n if(ch[i] >= 'A' && ch[i] <= 'Z'){\n count[ch[i] - 'A']++;\n }\n }\n\n }",
"{\n str = sc.nextLine();\n m = str.length();\n ch = new char[m];\n for(i = 0;i < m;i++){\n ch[i] = str.charAt(i);\n if(ch[i] >= 'a' && ch[i] <= 'z'){\n ch[i] -= 'a' - 'A';\n }\n if(ch[i] >= 'A' && ch[i] <= 'Z'){\n count[ch[i] - 'A']++;\n }\n }\n\n }",
"str = sc.nextLine()",
"str",
"sc.nextLine()",
"sc.nextLine",
"sc",
"m = str.length()",
"m",
"str.length()",
"str.length",
"str",
"ch = new char[m]",
"ch",
"new char[m]",
"m",
"for(i = 0;i < m;i++){\n ch[i] = str.charAt(i);\n if(ch[i] >= 'a' && ch[i] <= 'z'){\n ch[i] -= 'a' - 'A';\n }\n if(ch[i] >= 'A' && ch[i] <= 'Z'){\n count[ch[i] - 'A']++;\n }\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n ch[i] = str.charAt(i);\n if(ch[i] >= 'a' && ch[i] <= 'z'){\n ch[i] -= 'a' - 'A';\n }\n if(ch[i] >= 'A' && ch[i] <= 'Z'){\n count[ch[i] - 'A']++;\n }\n }",
"{\n ch[i] = str.charAt(i);\n if(ch[i] >= 'a' && ch[i] <= 'z'){\n ch[i] -= 'a' - 'A';\n }\n if(ch[i] >= 'A' && ch[i] <= 'Z'){\n count[ch[i] - 'A']++;\n }\n }",
"ch[i] = str.charAt(i)",
"ch[i]",
"ch",
"i",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"if(ch[i] >= 'a' && ch[i] <= 'z'){\n ch[i] -= 'a' - 'A';\n }",
"ch[i] >= 'a' && ch[i] <= 'z'",
"ch[i] >= 'a'",
"ch[i]",
"ch",
"i",
"'a'",
"ch[i] <= 'z'",
"ch[i]",
"ch",
"i",
"'z'",
"{\n ch[i] -= 'a' - 'A';\n }",
"ch[i] -= 'a' - 'A'",
"ch[i]",
"ch",
"i",
"'a' - 'A'",
"'a'",
"'A'",
"if(ch[i] >= 'A' && ch[i] <= 'Z'){\n count[ch[i] - 'A']++;\n }",
"ch[i] >= 'A' && ch[i] <= 'Z'",
"ch[i] >= 'A'",
"ch[i]",
"ch",
"i",
"'A'",
"ch[i] <= 'Z'",
"ch[i]",
"ch",
"i",
"'Z'",
"{\n count[ch[i] - 'A']++;\n }",
"count[ch[i] - 'A']++",
"count[ch[i] - 'A']",
"count",
"ch[i] - 'A'",
"ch[i]",
"ch",
"i",
"'A'",
"for(i = 0;i < 26;i++){\n c = (char)('a' + i);\n System.out.println(c + \" : \" + count[i]);\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n c = (char)('a' + i);\n System.out.println(c + \" : \" + count[i]);\n }",
"{\n c = (char)('a' + i);\n System.out.println(c + \" : \" + count[i]);\n }",
"c = (char)('a' + i)",
"c",
"(char)('a' + i)",
"'a'",
"i",
"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",
"java.io.InputStream in",
"in",
"java.io.PrintStream out",
"out",
"public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }",
"main",
"{\n (new Main()).run(System.in, System.out);\n }",
"(new Main()).run(System.in, System.out)",
"(new Main()).run",
"(new Main())",
"System.in",
"System",
"System.in",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n String str;\n char[] ch;\n int i, n, m;\n int[] count;\n char c;\n\n count = new int[26];\n\n for(;sc.hasNextLine();){\n str = sc.nextLine();\n m = str.length();\n ch = new char[m];\n for(i = 0;i < m;i++){\n ch[i] = str.charAt(i);\n if(ch[i] >= 'a' && ch[i] <= 'z'){\n ch[i] -= 'a' - 'A';\n }\n if(ch[i] >= 'A' && ch[i] <= 'Z'){\n count[ch[i] - 'A']++;\n }\n }\n\n }\n\n for(i = 0;i < 26;i++){\n c = (char)('a' + i);\n System.out.println(c + \" : \" + count[i]);\n }\n\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}",
"public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n String str;\n char[] ch;\n int i, n, m;\n int[] count;\n char c;\n\n count = new int[26];\n\n for(;sc.hasNextLine();){\n str = sc.nextLine();\n m = str.length();\n ch = new char[m];\n for(i = 0;i < m;i++){\n ch[i] = str.charAt(i);\n if(ch[i] >= 'a' && ch[i] <= 'z'){\n ch[i] -= 'a' - 'A';\n }\n if(ch[i] >= 'A' && ch[i] <= 'Z'){\n count[ch[i] - 'A']++;\n }\n }\n\n }\n\n for(i = 0;i < 26;i++){\n c = (char)('a' + i);\n System.out.println(c + \" : \" + count[i]);\n }\n\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}",
"Main"
]
| public class Main{
public void run(java.io.InputStream in, java.io.PrintStream out){
java.util.Scanner sc = new java.util.Scanner(in);
/*answer*/
String str;
char[] ch;
int i, n, m;
int[] count;
char c;
count = new int[26];
for(;sc.hasNextLine();){
str = sc.nextLine();
m = str.length();
ch = new char[m];
for(i = 0;i < m;i++){
ch[i] = str.charAt(i);
if(ch[i] >= 'a' && ch[i] <= 'z'){
ch[i] -= 'a' - 'A';
}
if(ch[i] >= 'A' && ch[i] <= 'Z'){
count[ch[i] - 'A']++;
}
}
}
for(i = 0;i < 26;i++){
c = (char)('a' + i);
System.out.println(c + " : " + count[i]);
}
sc.close();
}
public static void main(String[] args){
(new Main()).run(System.in, System.out);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
17,
12,
13,
30,
41,
13,
20,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
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,
14,
2,
13,
40,
17,
30,
3,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
4,
18,
4,
18,
4,
18,
13,
2,
13,
17,
17,
18,
13,
13,
8,
2,
13,
17,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
114,
11
],
[
114,
12
],
[
12,
13
],
[
12,
14
],
[
114,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
18,
22
],
[
22,
23
],
[
22,
24
],
[
18,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
33,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
48,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
63,
68
],
[
68,
69
],
[
18,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
92,
94
],
[
87,
95
],
[
85,
96
],
[
96,
97
],
[
96,
98
],
[
83,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
99,
104
],
[
18,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
16,
111
],
[
111,
112
],
[
0,
113
],
[
113,
114
],
[
113,
115
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static int[] charCount = new int[26];\n\n\tpublic static void main(String... args) throws IOException {\n\t\tfinal StringBuilder sb = new StringBuilder();\n\t\tfinal BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tfinal int charactor = br.read();\n\t\t\tif (97 <= charactor && charactor <= 123) {\n\t\t\t\tcharCount[charactor - 97]++;\n\t\t\t} else if (65 <= charactor && charactor <= 91) {\n\t\t\t\tcharCount[charactor - 65]++;\n\t\t\t} else if (charactor == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tsb.append(((char) (i + 97))).append(\" : \").append(charCount[i]).append(i != 25 ? '\\n' : \"\");\n\t\t}\n\n\t\tSystem.out.println(sb);\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\tpublic static int[] charCount = new int[26];\n\n\tpublic static void main(String... args) throws IOException {\n\t\tfinal StringBuilder sb = new StringBuilder();\n\t\tfinal BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tfinal int charactor = br.read();\n\t\t\tif (97 <= charactor && charactor <= 123) {\n\t\t\t\tcharCount[charactor - 97]++;\n\t\t\t} else if (65 <= charactor && charactor <= 91) {\n\t\t\t\tcharCount[charactor - 65]++;\n\t\t\t} else if (charactor == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tsb.append(((char) (i + 97))).append(\" : \").append(charCount[i]).append(i != 25 ? '\\n' : \"\");\n\t\t}\n\n\t\tSystem.out.println(sb);\n\t}\n}",
"Main",
"public static int[] charCount = new int[26];",
"charCount",
"new int[26]",
"26",
"public static void main(String... args) throws IOException {\n\t\tfinal StringBuilder sb = new StringBuilder();\n\t\tfinal BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tfinal int charactor = br.read();\n\t\t\tif (97 <= charactor && charactor <= 123) {\n\t\t\t\tcharCount[charactor - 97]++;\n\t\t\t} else if (65 <= charactor && charactor <= 91) {\n\t\t\t\tcharCount[charactor - 65]++;\n\t\t\t} else if (charactor == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tsb.append(((char) (i + 97))).append(\" : \").append(charCount[i]).append(i != 25 ? '\\n' : \"\");\n\t\t}\n\n\t\tSystem.out.println(sb);\n\t}",
"main",
"{\n\t\tfinal StringBuilder sb = new StringBuilder();\n\t\tfinal BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tfinal int charactor = br.read();\n\t\t\tif (97 <= charactor && charactor <= 123) {\n\t\t\t\tcharCount[charactor - 97]++;\n\t\t\t} else if (65 <= charactor && charactor <= 91) {\n\t\t\t\tcharCount[charactor - 65]++;\n\t\t\t} else if (charactor == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tsb.append(((char) (i + 97))).append(\" : \").append(charCount[i]).append(i != 25 ? '\\n' : \"\");\n\t\t}\n\n\t\tSystem.out.println(sb);\n\t}",
"final StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"while (true) {\n\t\t\tfinal int charactor = br.read();\n\t\t\tif (97 <= charactor && charactor <= 123) {\n\t\t\t\tcharCount[charactor - 97]++;\n\t\t\t} else if (65 <= charactor && charactor <= 91) {\n\t\t\t\tcharCount[charactor - 65]++;\n\t\t\t} else if (charactor == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"true",
"{\n\t\t\tfinal int charactor = br.read();\n\t\t\tif (97 <= charactor && charactor <= 123) {\n\t\t\t\tcharCount[charactor - 97]++;\n\t\t\t} else if (65 <= charactor && charactor <= 91) {\n\t\t\t\tcharCount[charactor - 65]++;\n\t\t\t} else if (charactor == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"final int charactor = br.read();",
"charactor",
"br.read()",
"br.read",
"br",
"if (97 <= charactor && charactor <= 123) {\n\t\t\t\tcharCount[charactor - 97]++;\n\t\t\t} else if (65 <= charactor && charactor <= 91) {\n\t\t\t\tcharCount[charactor - 65]++;\n\t\t\t} else if (charactor == -1) {\n\t\t\t\tbreak;\n\t\t\t}",
"97 <= charactor && charactor <= 123",
"97 <= charactor",
"97",
"charactor",
"charactor <= 123",
"charactor",
"123",
"{\n\t\t\t\tcharCount[charactor - 97]++;\n\t\t\t}",
"charCount[charactor - 97]++",
"charCount[charactor - 97]",
"charCount",
"charactor - 97",
"charactor",
"97",
"if (65 <= charactor && charactor <= 91) {\n\t\t\t\tcharCount[charactor - 65]++;\n\t\t\t} else if (charactor == -1) {\n\t\t\t\tbreak;\n\t\t\t}",
"65 <= charactor && charactor <= 91",
"65 <= charactor",
"65",
"charactor",
"charactor <= 91",
"charactor",
"91",
"{\n\t\t\t\tcharCount[charactor - 65]++;\n\t\t\t}",
"charCount[charactor - 65]++",
"charCount[charactor - 65]",
"charCount",
"charactor - 65",
"charactor",
"65",
"if (charactor == -1) {\n\t\t\t\tbreak;\n\t\t\t}",
"charactor == -1",
"charactor",
"-1",
"1",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"for (int i = 0; i < 26; i++) {\n\t\t\tsb.append(((char) (i + 97))).append(\" : \").append(charCount[i]).append(i != 25 ? '\\n' : \"\");\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tsb.append(((char) (i + 97))).append(\" : \").append(charCount[i]).append(i != 25 ? '\\n' : \"\");\n\t\t}",
"{\n\t\t\tsb.append(((char) (i + 97))).append(\" : \").append(charCount[i]).append(i != 25 ? '\\n' : \"\");\n\t\t}",
"sb.append(((char) (i + 97))).append(\" : \").append(charCount[i]).append(i != 25 ? '\\n' : \"\")",
"sb.append(((char) (i + 97))).append(\" : \").append(charCount[i]).append",
"sb.append(((char) (i + 97))).append(\" : \").append(charCount[i])",
"sb.append(((char) (i + 97))).append(\" : \").append",
"sb.append(((char) (i + 97))).append(\" : \")",
"sb.append(((char) (i + 97))).append",
"sb.append(((char) (i + 97)))",
"sb.append",
"sb",
"((char) (i + 97))",
"i",
"97",
"\" : \"",
"charCount[i]",
"charCount",
"i",
"i != 25 ? '\\n' : \"\"",
"i != 25",
"i",
"25",
"'\\n'",
"\"\"",
"System.out.println(sb)",
"System.out.println",
"System.out",
"System",
"System.out",
"sb",
"String... args",
"args",
"public class Main {\n\tpublic static int[] charCount = new int[26];\n\n\tpublic static void main(String... args) throws IOException {\n\t\tfinal StringBuilder sb = new StringBuilder();\n\t\tfinal BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tfinal int charactor = br.read();\n\t\t\tif (97 <= charactor && charactor <= 123) {\n\t\t\t\tcharCount[charactor - 97]++;\n\t\t\t} else if (65 <= charactor && charactor <= 91) {\n\t\t\t\tcharCount[charactor - 65]++;\n\t\t\t} else if (charactor == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tsb.append(((char) (i + 97))).append(\" : \").append(charCount[i]).append(i != 25 ? '\\n' : \"\");\n\t\t}\n\n\t\tSystem.out.println(sb);\n\t}\n}",
"public class Main {\n\tpublic static int[] charCount = new int[26];\n\n\tpublic static void main(String... args) throws IOException {\n\t\tfinal StringBuilder sb = new StringBuilder();\n\t\tfinal BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tfinal int charactor = br.read();\n\t\t\tif (97 <= charactor && charactor <= 123) {\n\t\t\t\tcharCount[charactor - 97]++;\n\t\t\t} else if (65 <= charactor && charactor <= 91) {\n\t\t\t\tcharCount[charactor - 65]++;\n\t\t\t} else if (charactor == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tsb.append(((char) (i + 97))).append(\" : \").append(charCount[i]).append(i != 25 ? '\\n' : \"\");\n\t\t}\n\n\t\tSystem.out.println(sb);\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static int[] charCount = new int[26];
public static void main(String... args) throws IOException {
final StringBuilder sb = new StringBuilder();
final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
while (true) {
final int charactor = br.read();
if (97 <= charactor && charactor <= 123) {
charCount[charactor - 97]++;
} else if (65 <= charactor && charactor <= 91) {
charCount[charactor - 65]++;
} else if (charactor == -1) {
break;
}
}
for (int i = 0; i < 26; i++) {
sb.append(((char) (i + 97))).append(" : ").append(charCount[i]).append(i != 25 ? '\n' : "");
}
System.out.println(sb);
}
} |
[
7,
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,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
17,
30,
3,
4,
18,
13,
13,
41,
13,
4,
18,
4,
18,
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,
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,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
145,
5
],
[
145,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
18,
20
],
[
18,
21
],
[
18,
22
],
[
18,
23
],
[
18,
24
],
[
18,
25
],
[
18,
26
],
[
18,
27
],
[
18,
28
],
[
18,
29
],
[
18,
30
],
[
18,
31
],
[
18,
32
],
[
18,
33
],
[
18,
34
],
[
18,
35
],
[
18,
36
],
[
18,
37
],
[
18,
38
],
[
18,
39
],
[
18,
40
],
[
18,
41
],
[
18,
42
],
[
18,
43
],
[
18,
44
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
59,
63
],
[
58,
64
],
[
64,
65
],
[
52,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
8,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
8,
79
],
[
79,
80
],
[
79,
81
],
[
79,
82
],
[
83,
83
],
[
83,
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
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
99,
105
],
[
105,
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
],
[
8,
139
],
[
139,
140
],
[
140,
141
],
[
6,
142
],
[
142,
143
],
[
0,
144
],
[
144,
145
],
[
144,
146
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n int[] count = new int[26];\n 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'};\n\n StringBuilder input = new StringBuilder();\n\n while(scanner.hasNextLine()){\n String x = scanner.nextLine();\n if(x.length() == 0){\n break;\n }\n input.append(x);\n }\n\n\n\n char[] text = input.toString().toLowerCase().toCharArray();\n\n for(char txt : text){\n for(int i = 0; i < alpha.length; i++){\n if(txt == alpha[i]){\n count[i]++;\n }\n }\n }\n\n for(int i = 0; i < alpha.length; i++){\n System.out.println(alpha[i] + \" : \" + count[i]);\n }\n\n scanner.close();\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n int[] count = new int[26];\n 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'};\n\n StringBuilder input = new StringBuilder();\n\n while(scanner.hasNextLine()){\n String x = scanner.nextLine();\n if(x.length() == 0){\n break;\n }\n input.append(x);\n }\n\n\n\n char[] text = input.toString().toLowerCase().toCharArray();\n\n for(char txt : text){\n for(int i = 0; i < alpha.length; i++){\n if(txt == alpha[i]){\n count[i]++;\n }\n }\n }\n\n for(int i = 0; i < alpha.length; i++){\n System.out.println(alpha[i] + \" : \" + count[i]);\n }\n\n scanner.close();\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n int[] count = new int[26];\n 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'};\n\n StringBuilder input = new StringBuilder();\n\n while(scanner.hasNextLine()){\n String x = scanner.nextLine();\n if(x.length() == 0){\n break;\n }\n input.append(x);\n }\n\n\n\n char[] text = input.toString().toLowerCase().toCharArray();\n\n for(char txt : text){\n for(int i = 0; i < alpha.length; i++){\n if(txt == alpha[i]){\n count[i]++;\n }\n }\n }\n\n for(int i = 0; i < alpha.length; i++){\n System.out.println(alpha[i] + \" : \" + count[i]);\n }\n\n scanner.close();\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n\n int[] count = new int[26];\n 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'};\n\n StringBuilder input = new StringBuilder();\n\n while(scanner.hasNextLine()){\n String x = scanner.nextLine();\n if(x.length() == 0){\n break;\n }\n input.append(x);\n }\n\n\n\n char[] text = input.toString().toLowerCase().toCharArray();\n\n for(char txt : text){\n for(int i = 0; i < alpha.length; i++){\n if(txt == alpha[i]){\n count[i]++;\n }\n }\n }\n\n for(int i = 0; i < alpha.length; i++){\n System.out.println(alpha[i] + \" : \" + count[i]);\n }\n\n scanner.close();\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int[] count = new int[26];",
"count",
"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', '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'",
"StringBuilder input = new StringBuilder();",
"input",
"new StringBuilder()",
"while(scanner.hasNextLine()){\n String x = scanner.nextLine();\n if(x.length() == 0){\n break;\n }\n input.append(x);\n }",
"scanner.hasNextLine()",
"scanner.hasNextLine",
"scanner",
"{\n String x = scanner.nextLine();\n if(x.length() == 0){\n break;\n }\n input.append(x);\n }",
"String x = scanner.nextLine();",
"x",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"if(x.length() == 0){\n break;\n }",
"x.length() == 0",
"x.length()",
"x.length",
"x",
"0",
"{\n break;\n }",
"break;",
"input.append(x)",
"input.append",
"input",
"x",
"char[] text = input.toString().toLowerCase().toCharArray();",
"text",
"input.toString().toLowerCase().toCharArray()",
"input.toString().toLowerCase().toCharArray",
"input.toString().toLowerCase()",
"input.toString().toLowerCase",
"input.toString()",
"input.toString",
"input",
"for(char txt : text){\n for(int i = 0; i < alpha.length; i++){\n if(txt == alpha[i]){\n count[i]++;\n }\n }\n }",
"char txt",
"text",
"{\n for(int i = 0; i < alpha.length; i++){\n if(txt == alpha[i]){\n count[i]++;\n }\n }\n }",
"{\n for(int i = 0; i < alpha.length; i++){\n if(txt == alpha[i]){\n count[i]++;\n }\n }\n }",
"for(int i = 0; i < alpha.length; i++){\n if(txt == alpha[i]){\n count[i]++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < alpha.length",
"i",
"alpha.length",
"alpha",
"alpha.length",
"i++",
"i++",
"i",
"{\n if(txt == alpha[i]){\n count[i]++;\n }\n }",
"{\n if(txt == alpha[i]){\n count[i]++;\n }\n }",
"if(txt == alpha[i]){\n count[i]++;\n }",
"txt == alpha[i]",
"txt",
"alpha[i]",
"alpha",
"i",
"{\n count[i]++;\n }",
"count[i]++",
"count[i]",
"count",
"i",
"for(int i = 0; i < alpha.length; i++){\n System.out.println(alpha[i] + \" : \" + count[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < alpha.length",
"i",
"alpha.length",
"alpha",
"alpha.length",
"i++",
"i++",
"i",
"{\n System.out.println(alpha[i] + \" : \" + count[i]);\n }",
"{\n System.out.println(alpha[i] + \" : \" + count[i]);\n }",
"System.out.println(alpha[i] + \" : \" + count[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"alpha[i] + \" : \" + count[i]",
"alpha[i] + \" : \" + count[i]",
"alpha[i]",
"alpha",
"i",
"\" : \"",
"count[i]",
"count",
"i",
"scanner.close()",
"scanner.close",
"scanner",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n int[] count = new int[26];\n 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'};\n\n StringBuilder input = new StringBuilder();\n\n while(scanner.hasNextLine()){\n String x = scanner.nextLine();\n if(x.length() == 0){\n break;\n }\n input.append(x);\n }\n\n\n\n char[] text = input.toString().toLowerCase().toCharArray();\n\n for(char txt : text){\n for(int i = 0; i < alpha.length; i++){\n if(txt == alpha[i]){\n count[i]++;\n }\n }\n }\n\n for(int i = 0; i < alpha.length; i++){\n System.out.println(alpha[i] + \" : \" + count[i]);\n }\n\n scanner.close();\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n int[] count = new int[26];\n 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'};\n\n StringBuilder input = new StringBuilder();\n\n while(scanner.hasNextLine()){\n String x = scanner.nextLine();\n if(x.length() == 0){\n break;\n }\n input.append(x);\n }\n\n\n\n char[] text = input.toString().toLowerCase().toCharArray();\n\n for(char txt : text){\n for(int i = 0; i < alpha.length; i++){\n if(txt == alpha[i]){\n count[i]++;\n }\n }\n }\n\n for(int i = 0; i < alpha.length; i++){\n System.out.println(alpha[i] + \" : \" + count[i]);\n }\n\n scanner.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int[] count = 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'};
StringBuilder input = new StringBuilder();
while(scanner.hasNextLine()){
String x = scanner.nextLine();
if(x.length() == 0){
break;
}
input.append(x);
}
char[] text = input.toString().toLowerCase().toCharArray();
for(char txt : text){
for(int i = 0; i < alpha.length; i++){
if(txt == alpha[i]){
count[i]++;
}
}
}
for(int i = 0; i < alpha.length; i++){
System.out.println(alpha[i] + " : " + count[i]);
}
scanner.close();
}
}
|
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
17,
41,
13,
20,
17,
41,
13,
17,
41,
13,
4,
18,
13,
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,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
13,
18,
13,
13,
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,
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
],
[
133,
2
],
[
133,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
10,
11
],
[
9,
12
],
[
5,
13
],
[
13,
14
],
[
13,
15
],
[
5,
17
],
[
17,
18
],
[
17,
19
],
[
5,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
5,
25
],
[
25,
26
],
[
25,
27
],
[
5,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
33,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
44,
54
],
[
54,
55
],
[
55,
56
],
[
44,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
63,
65
],
[
59,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
74,
75
],
[
74,
76
],
[
58,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
5,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
103,
111
],
[
111,
112
],
[
112,
113
],
[
103,
114
],
[
115,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
122,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
122,
127
],
[
127,
128
],
[
127,
129
],
[
3,
130
],
[
130,
131
],
[
0,
132
],
[
132,
133
],
[
132,
134
]
]
| [
"public class Main {\n\tpublic static void main(String[] args){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\t\tscan.useDelimiter(\"//n\");\n\t\t\tchar[] arr = new char[1200];\n\t\t\tString str2 =\"abcdefghijklmnopqrstuvwxyz\";\n\t\t\tchar[] arr2 = str2.toCharArray();\n\t\t\tint[] line = new int[26];\n\n\t\t\tdo{\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tarr = str.toCharArray();\n\n\t\t\t\tfor(int i = 0;i <arr.length;i++){\n\t\t\t\t\tif(Character.isUpperCase(arr[i])){\n\t\t\t\t\t\tarr[i] = Character.toLowerCase(arr[i]);\n\t\t\t\t\t}\n\t\t\t\t\tfor(int j = 0; j< 26;j++){\n\t\t\t\t\t\tif(arr[i] == arr2[j]){\n\t\t\t\t\t\t\tline[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}while(scan.hasNext());\n\t\tfor(int i = 0;i < 26;i++){\n\t\t\tSystem.out.println(arr2[i] + \" : \" +line[i]);\n\t\t}\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\t\tscan.useDelimiter(\"//n\");\n\t\t\tchar[] arr = new char[1200];\n\t\t\tString str2 =\"abcdefghijklmnopqrstuvwxyz\";\n\t\t\tchar[] arr2 = str2.toCharArray();\n\t\t\tint[] line = new int[26];\n\n\t\t\tdo{\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tarr = str.toCharArray();\n\n\t\t\t\tfor(int i = 0;i <arr.length;i++){\n\t\t\t\t\tif(Character.isUpperCase(arr[i])){\n\t\t\t\t\t\tarr[i] = Character.toLowerCase(arr[i]);\n\t\t\t\t\t}\n\t\t\t\t\tfor(int j = 0; j< 26;j++){\n\t\t\t\t\t\tif(arr[i] == arr2[j]){\n\t\t\t\t\t\t\tline[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}while(scan.hasNext());\n\t\tfor(int i = 0;i < 26;i++){\n\t\t\tSystem.out.println(arr2[i] + \" : \" +line[i]);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\t\tscan.useDelimiter(\"//n\");\n\t\t\tchar[] arr = new char[1200];\n\t\t\tString str2 =\"abcdefghijklmnopqrstuvwxyz\";\n\t\t\tchar[] arr2 = str2.toCharArray();\n\t\t\tint[] line = new int[26];\n\n\t\t\tdo{\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tarr = str.toCharArray();\n\n\t\t\t\tfor(int i = 0;i <arr.length;i++){\n\t\t\t\t\tif(Character.isUpperCase(arr[i])){\n\t\t\t\t\t\tarr[i] = Character.toLowerCase(arr[i]);\n\t\t\t\t\t}\n\t\t\t\t\tfor(int j = 0; j< 26;j++){\n\t\t\t\t\t\tif(arr[i] == arr2[j]){\n\t\t\t\t\t\t\tline[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}while(scan.hasNext());\n\t\tfor(int i = 0;i < 26;i++){\n\t\t\tSystem.out.println(arr2[i] + \" : \" +line[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\t\tscan.useDelimiter(\"//n\");\n\t\t\tchar[] arr = new char[1200];\n\t\t\tString str2 =\"abcdefghijklmnopqrstuvwxyz\";\n\t\t\tchar[] arr2 = str2.toCharArray();\n\t\t\tint[] line = new int[26];\n\n\t\t\tdo{\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tarr = str.toCharArray();\n\n\t\t\t\tfor(int i = 0;i <arr.length;i++){\n\t\t\t\t\tif(Character.isUpperCase(arr[i])){\n\t\t\t\t\t\tarr[i] = Character.toLowerCase(arr[i]);\n\t\t\t\t\t}\n\t\t\t\t\tfor(int j = 0; j< 26;j++){\n\t\t\t\t\t\tif(arr[i] == arr2[j]){\n\t\t\t\t\t\t\tline[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}while(scan.hasNext());\n\t\tfor(int i = 0;i < 26;i++){\n\t\t\tSystem.out.println(arr2[i] + \" : \" +line[i]);\n\t\t}\n\t}",
"java.util.Scanner scan = new java.util.Scanner(System.in);",
"scan",
"new java.util.Scanner(System.in)",
"scan.useDelimiter(\"//n\")",
"scan.useDelimiter",
"scan",
"\"//n\"",
"char[] arr = new char[1200];",
"arr",
"new char[1200]",
"1200",
"String str2 =\"abcdefghijklmnopqrstuvwxyz\";",
"str2",
"\"abcdefghijklmnopqrstuvwxyz\"",
"char[] arr2 = str2.toCharArray();",
"arr2",
"str2.toCharArray()",
"str2.toCharArray",
"str2",
"int[] line = new int[26];",
"line",
"new int[26]",
"26",
"do{\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tarr = str.toCharArray();\n\n\t\t\t\tfor(int i = 0;i <arr.length;i++){\n\t\t\t\t\tif(Character.isUpperCase(arr[i])){\n\t\t\t\t\t\tarr[i] = Character.toLowerCase(arr[i]);\n\t\t\t\t\t}\n\t\t\t\t\tfor(int j = 0; j< 26;j++){\n\t\t\t\t\t\tif(arr[i] == arr2[j]){\n\t\t\t\t\t\t\tline[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}while(scan.hasNext());",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tarr = str.toCharArray();\n\n\t\t\t\tfor(int i = 0;i <arr.length;i++){\n\t\t\t\t\tif(Character.isUpperCase(arr[i])){\n\t\t\t\t\t\tarr[i] = Character.toLowerCase(arr[i]);\n\t\t\t\t\t}\n\t\t\t\t\tfor(int j = 0; j< 26;j++){\n\t\t\t\t\t\tif(arr[i] == arr2[j]){\n\t\t\t\t\t\t\tline[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"String str = scan.nextLine();",
"str",
"scan.nextLine()",
"scan.nextLine",
"scan",
"arr = str.toCharArray()",
"arr",
"str.toCharArray()",
"str.toCharArray",
"str",
"for(int i = 0;i <arr.length;i++){\n\t\t\t\t\tif(Character.isUpperCase(arr[i])){\n\t\t\t\t\t\tarr[i] = Character.toLowerCase(arr[i]);\n\t\t\t\t\t}\n\t\t\t\t\tfor(int j = 0; j< 26;j++){\n\t\t\t\t\t\tif(arr[i] == arr2[j]){\n\t\t\t\t\t\t\tline[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\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\t\tif(Character.isUpperCase(arr[i])){\n\t\t\t\t\t\tarr[i] = Character.toLowerCase(arr[i]);\n\t\t\t\t\t}\n\t\t\t\t\tfor(int j = 0; j< 26;j++){\n\t\t\t\t\t\tif(arr[i] == arr2[j]){\n\t\t\t\t\t\t\tline[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif(Character.isUpperCase(arr[i])){\n\t\t\t\t\t\tarr[i] = Character.toLowerCase(arr[i]);\n\t\t\t\t\t}\n\t\t\t\t\tfor(int j = 0; j< 26;j++){\n\t\t\t\t\t\tif(arr[i] == arr2[j]){\n\t\t\t\t\t\t\tline[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"if(Character.isUpperCase(arr[i])){\n\t\t\t\t\t\tarr[i] = Character.toLowerCase(arr[i]);\n\t\t\t\t\t}",
"Character.isUpperCase(arr[i])",
"Character.isUpperCase",
"Character",
"arr[i]",
"arr",
"i",
"{\n\t\t\t\t\t\tarr[i] = Character.toLowerCase(arr[i]);\n\t\t\t\t\t}",
"arr[i] = Character.toLowerCase(arr[i])",
"arr[i]",
"arr",
"i",
"Character.toLowerCase(arr[i])",
"Character.toLowerCase",
"Character",
"arr[i]",
"arr",
"i",
"for(int j = 0; j< 26;j++){\n\t\t\t\t\t\tif(arr[i] == arr2[j]){\n\t\t\t\t\t\t\tline[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j< 26",
"j",
"26",
"j++",
"j++",
"j",
"{\n\t\t\t\t\t\tif(arr[i] == arr2[j]){\n\t\t\t\t\t\t\tline[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tif(arr[i] == arr2[j]){\n\t\t\t\t\t\t\tline[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"if(arr[i] == arr2[j]){\n\t\t\t\t\t\t\tline[j]++;\n\t\t\t\t\t\t}",
"arr[i] == arr2[j]",
"arr[i]",
"arr",
"i",
"arr2[j]",
"arr2",
"j",
"{\n\t\t\t\t\t\t\tline[j]++;\n\t\t\t\t\t\t}",
"line[j]++",
"line[j]",
"line",
"j",
"for(int i = 0;i < 26;i++){\n\t\t\tSystem.out.println(arr2[i] + \" : \" +line[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(arr2[i] + \" : \" +line[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(arr2[i] + \" : \" +line[i]);\n\t\t}",
"System.out.println(arr2[i] + \" : \" +line[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"arr2[i] + \" : \" +line[i]",
"arr2[i] + \" : \" +line[i]",
"arr2[i]",
"arr2",
"i",
"\" : \"",
"line[i]",
"line",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\t\tscan.useDelimiter(\"//n\");\n\t\t\tchar[] arr = new char[1200];\n\t\t\tString str2 =\"abcdefghijklmnopqrstuvwxyz\";\n\t\t\tchar[] arr2 = str2.toCharArray();\n\t\t\tint[] line = new int[26];\n\n\t\t\tdo{\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tarr = str.toCharArray();\n\n\t\t\t\tfor(int i = 0;i <arr.length;i++){\n\t\t\t\t\tif(Character.isUpperCase(arr[i])){\n\t\t\t\t\t\tarr[i] = Character.toLowerCase(arr[i]);\n\t\t\t\t\t}\n\t\t\t\t\tfor(int j = 0; j< 26;j++){\n\t\t\t\t\t\tif(arr[i] == arr2[j]){\n\t\t\t\t\t\t\tline[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}while(scan.hasNext());\n\t\tfor(int i = 0;i < 26;i++){\n\t\t\tSystem.out.println(arr2[i] + \" : \" +line[i]);\n\t\t}\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\t\tscan.useDelimiter(\"//n\");\n\t\t\tchar[] arr = new char[1200];\n\t\t\tString str2 =\"abcdefghijklmnopqrstuvwxyz\";\n\t\t\tchar[] arr2 = str2.toCharArray();\n\t\t\tint[] line = new int[26];\n\n\t\t\tdo{\n\t\t\t\tString str = scan.nextLine();\n\t\t\t\tarr = str.toCharArray();\n\n\t\t\t\tfor(int i = 0;i <arr.length;i++){\n\t\t\t\t\tif(Character.isUpperCase(arr[i])){\n\t\t\t\t\t\tarr[i] = Character.toLowerCase(arr[i]);\n\t\t\t\t\t}\n\t\t\t\t\tfor(int j = 0; j< 26;j++){\n\t\t\t\t\t\tif(arr[i] == arr2[j]){\n\t\t\t\t\t\t\tline[j]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}while(scan.hasNext());\n\t\tfor(int i = 0;i < 26;i++){\n\t\t\tSystem.out.println(arr2[i] + \" : \" +line[i]);\n\t\t}\n\t}\n\n}",
"Main"
]
| public class Main {
public static void main(String[] args){
java.util.Scanner scan = new java.util.Scanner(System.in);
scan.useDelimiter("//n");
char[] arr = new char[1200];
String str2 ="abcdefghijklmnopqrstuvwxyz";
char[] arr2 = str2.toCharArray();
int[] line = new int[26];
do{
String str = scan.nextLine();
arr = str.toCharArray();
for(int i = 0;i <arr.length;i++){
if(Character.isUpperCase(arr[i])){
arr[i] = Character.toLowerCase(arr[i]);
}
for(int j = 0; j< 26;j++){
if(arr[i] == arr2[j]){
line[j]++;
}
}
}
}while(scan.hasNext());
for(int i = 0;i < 26;i++){
System.out.println(arr2[i] + " : " +line[i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
0,
13,
20,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
41,
13,
20,
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,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
2,
4,
18,
13,
13,
4,
18,
13,
13,
2,
4,
18,
13,
13,
4,
18,
13,
13,
30,
40,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
4,
18,
13,
13,
17,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
150,
5
],
[
150,
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
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
23,
24
],
[
24,
25
],
[
8,
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
],
[
42,
44
],
[
41,
45
],
[
8,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
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
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
74,
84
],
[
84,
85
],
[
85,
86
],
[
74,
87
],
[
88,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
91,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
90,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
100,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
89,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
8,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
114,
124
],
[
124,
125
],
[
125,
126
],
[
114,
127
],
[
128,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
135,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
135,
140
],
[
135,
141
],
[
141,
142
],
[
141,
143
],
[
8,
144
],
[
144,
145
],
[
145,
146
],
[
6,
147
],
[
147,
148
],
[
0,
149
],
[
149,
150
],
[
149,
151
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tString low_az = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tString up_az = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\t\tString str=\"\";\n\t\tint[] cnt;\n\n\t\tcnt = new int[low_az.length()];\n\n\t\tfor ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\t\t\tcnt[i]=0;\n\t\t}\n\n\t\tScanner sc= new Scanner( System.in );\n\n\t\twhile( sc.hasNext() ) {\n\n\t\t\tstr = sc.nextLine();\n\n\t\t\tfor ( int j = 0 ; j < str.length() ; j++ ) {\n\t\t\t\tfor ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\t\t\t\t\tif ( str.charAt(j) == low_az.charAt(i) || str.charAt(j) == up_az.charAt(i) ) {\n\t\t\t\t\t\tcnt[i]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\n\t\t\tSystem.out.println( low_az.charAt(i) + \" : \" + cnt[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\n\t\tString low_az = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tString up_az = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\t\tString str=\"\";\n\t\tint[] cnt;\n\n\t\tcnt = new int[low_az.length()];\n\n\t\tfor ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\t\t\tcnt[i]=0;\n\t\t}\n\n\t\tScanner sc= new Scanner( System.in );\n\n\t\twhile( sc.hasNext() ) {\n\n\t\t\tstr = sc.nextLine();\n\n\t\t\tfor ( int j = 0 ; j < str.length() ; j++ ) {\n\t\t\t\tfor ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\t\t\t\t\tif ( str.charAt(j) == low_az.charAt(i) || str.charAt(j) == up_az.charAt(i) ) {\n\t\t\t\t\t\tcnt[i]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\n\t\t\tSystem.out.println( low_az.charAt(i) + \" : \" + cnt[i] );\n\t\t}\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tString low_az = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tString up_az = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\t\tString str=\"\";\n\t\tint[] cnt;\n\n\t\tcnt = new int[low_az.length()];\n\n\t\tfor ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\t\t\tcnt[i]=0;\n\t\t}\n\n\t\tScanner sc= new Scanner( System.in );\n\n\t\twhile( sc.hasNext() ) {\n\n\t\t\tstr = sc.nextLine();\n\n\t\t\tfor ( int j = 0 ; j < str.length() ; j++ ) {\n\t\t\t\tfor ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\t\t\t\t\tif ( str.charAt(j) == low_az.charAt(i) || str.charAt(j) == up_az.charAt(i) ) {\n\t\t\t\t\t\tcnt[i]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\n\t\t\tSystem.out.println( low_az.charAt(i) + \" : \" + cnt[i] );\n\t\t}\n\t\tsc.close();\n\t}",
"main",
"{\n\n\t\tString low_az = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tString up_az = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\t\tString str=\"\";\n\t\tint[] cnt;\n\n\t\tcnt = new int[low_az.length()];\n\n\t\tfor ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\t\t\tcnt[i]=0;\n\t\t}\n\n\t\tScanner sc= new Scanner( System.in );\n\n\t\twhile( sc.hasNext() ) {\n\n\t\t\tstr = sc.nextLine();\n\n\t\t\tfor ( int j = 0 ; j < str.length() ; j++ ) {\n\t\t\t\tfor ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\t\t\t\t\tif ( str.charAt(j) == low_az.charAt(i) || str.charAt(j) == up_az.charAt(i) ) {\n\t\t\t\t\t\tcnt[i]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\n\t\t\tSystem.out.println( low_az.charAt(i) + \" : \" + cnt[i] );\n\t\t}\n\t\tsc.close();\n\t}",
"String low_az = \"abcdefghijklmnopqrstuvwxyz\";",
"low_az",
"\"abcdefghijklmnopqrstuvwxyz\"",
"String up_az = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";",
"up_az",
"\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"",
"String str=\"\";",
"str",
"\"\"",
"int[] cnt;",
"cnt",
"cnt = new int[low_az.length()]",
"cnt",
"new int[low_az.length()]",
"low_az.length()",
"low_az.length",
"low_az",
"for ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\t\t\tcnt[i]=0;\n\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < low_az.length()",
"i",
"low_az.length()",
"low_az.length",
"low_az",
"i ++",
"i ++",
"i",
"{\n\t\t\tcnt[i]=0;\n\t\t}",
"{\n\t\t\tcnt[i]=0;\n\t\t}",
"cnt[i]=0",
"cnt[i]",
"cnt",
"i",
"0",
"Scanner sc= new Scanner( System.in );",
"sc",
"new Scanner( System.in )",
"while( sc.hasNext() ) {\n\n\t\t\tstr = sc.nextLine();\n\n\t\t\tfor ( int j = 0 ; j < str.length() ; j++ ) {\n\t\t\t\tfor ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\t\t\t\t\tif ( str.charAt(j) == low_az.charAt(i) || str.charAt(j) == up_az.charAt(i) ) {\n\t\t\t\t\t\tcnt[i]++;\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\tstr = sc.nextLine();\n\n\t\t\tfor ( int j = 0 ; j < str.length() ; j++ ) {\n\t\t\t\tfor ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\t\t\t\t\tif ( str.charAt(j) == low_az.charAt(i) || str.charAt(j) == up_az.charAt(i) ) {\n\t\t\t\t\t\tcnt[i]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"str = sc.nextLine()",
"str",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for ( int j = 0 ; j < str.length() ; j++ ) {\n\t\t\t\tfor ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\t\t\t\t\tif ( str.charAt(j) == low_az.charAt(i) || str.charAt(j) == up_az.charAt(i) ) {\n\t\t\t\t\t\tcnt[i]++;\n\t\t\t\t\t}\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\tfor ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\t\t\t\t\tif ( str.charAt(j) == low_az.charAt(i) || str.charAt(j) == up_az.charAt(i) ) {\n\t\t\t\t\t\tcnt[i]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\t\t\t\t\tif ( str.charAt(j) == low_az.charAt(i) || str.charAt(j) == up_az.charAt(i) ) {\n\t\t\t\t\t\tcnt[i]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"for ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\t\t\t\t\tif ( str.charAt(j) == low_az.charAt(i) || str.charAt(j) == up_az.charAt(i) ) {\n\t\t\t\t\t\tcnt[i]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < low_az.length()",
"i",
"low_az.length()",
"low_az.length",
"low_az",
"i ++",
"i ++",
"i",
"{\n\t\t\t\t\tif ( str.charAt(j) == low_az.charAt(i) || str.charAt(j) == up_az.charAt(i) ) {\n\t\t\t\t\t\tcnt[i]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif ( str.charAt(j) == low_az.charAt(i) || str.charAt(j) == up_az.charAt(i) ) {\n\t\t\t\t\t\tcnt[i]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"if ( str.charAt(j) == low_az.charAt(i) || str.charAt(j) == up_az.charAt(i) ) {\n\t\t\t\t\t\tcnt[i]++;\n\t\t\t\t\t}",
"str.charAt(j) == low_az.charAt(i) || str.charAt(j) == up_az.charAt(i)",
"str.charAt(j) == low_az.charAt(i)",
"str.charAt(j)",
"str.charAt",
"str",
"j",
"low_az.charAt(i)",
"low_az.charAt",
"low_az",
"i",
"str.charAt(j) == up_az.charAt(i)",
"str.charAt(j)",
"str.charAt",
"str",
"j",
"up_az.charAt(i)",
"up_az.charAt",
"up_az",
"i",
"{\n\t\t\t\t\t\tcnt[i]++;\n\t\t\t\t\t}",
"cnt[i]++",
"cnt[i]",
"cnt",
"i",
"for ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\n\t\t\tSystem.out.println( low_az.charAt(i) + \" : \" + cnt[i] );\n\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < low_az.length()",
"i",
"low_az.length()",
"low_az.length",
"low_az",
"i ++",
"i ++",
"i",
"{\n\n\t\t\tSystem.out.println( low_az.charAt(i) + \" : \" + cnt[i] );\n\t\t}",
"{\n\n\t\t\tSystem.out.println( low_az.charAt(i) + \" : \" + cnt[i] );\n\t\t}",
"System.out.println( low_az.charAt(i) + \" : \" + cnt[i] )",
"System.out.println",
"System.out",
"System",
"System.out",
"low_az.charAt(i) + \" : \" + cnt[i]",
"low_az.charAt(i) + \" : \" + cnt[i]",
"low_az.charAt(i)",
"low_az.charAt",
"low_az",
"i",
"\" : \"",
"cnt[i]",
"cnt",
"i",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tString low_az = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tString up_az = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\t\tString str=\"\";\n\t\tint[] cnt;\n\n\t\tcnt = new int[low_az.length()];\n\n\t\tfor ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\t\t\tcnt[i]=0;\n\t\t}\n\n\t\tScanner sc= new Scanner( System.in );\n\n\t\twhile( sc.hasNext() ) {\n\n\t\t\tstr = sc.nextLine();\n\n\t\t\tfor ( int j = 0 ; j < str.length() ; j++ ) {\n\t\t\t\tfor ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\t\t\t\t\tif ( str.charAt(j) == low_az.charAt(i) || str.charAt(j) == up_az.charAt(i) ) {\n\t\t\t\t\t\tcnt[i]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\n\t\t\tSystem.out.println( low_az.charAt(i) + \" : \" + cnt[i] );\n\t\t}\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tString low_az = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tString up_az = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\t\tString str=\"\";\n\t\tint[] cnt;\n\n\t\tcnt = new int[low_az.length()];\n\n\t\tfor ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\t\t\tcnt[i]=0;\n\t\t}\n\n\t\tScanner sc= new Scanner( System.in );\n\n\t\twhile( sc.hasNext() ) {\n\n\t\t\tstr = sc.nextLine();\n\n\t\t\tfor ( int j = 0 ; j < str.length() ; j++ ) {\n\t\t\t\tfor ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\t\t\t\t\tif ( str.charAt(j) == low_az.charAt(i) || str.charAt(j) == up_az.charAt(i) ) {\n\t\t\t\t\t\tcnt[i]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor ( int i = 0 ; i < low_az.length() ; i ++ ) {\n\n\t\t\tSystem.out.println( low_az.charAt(i) + \" : \" + cnt[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) {
String low_az = "abcdefghijklmnopqrstuvwxyz";
String up_az = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
String str="";
int[] cnt;
cnt = new int[low_az.length()];
for ( int i = 0 ; i < low_az.length() ; i ++ ) {
cnt[i]=0;
}
Scanner sc= new Scanner( System.in );
while( sc.hasNext() ) {
str = sc.nextLine();
for ( int j = 0 ; j < str.length() ; j++ ) {
for ( int i = 0 ; i < low_az.length() ; i ++ ) {
if ( str.charAt(j) == low_az.charAt(i) || str.charAt(j) == up_az.charAt(i) ) {
cnt[i]++;
}
}
}
}
for ( int i = 0 ; i < low_az.length() ; i ++ ) {
System.out.println( low_az.charAt(i) + " : " + cnt[i] );
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
20,
17,
41,
13,
42,
4,
18,
13,
30,
0,
13,
4,
18,
4,
18,
13,
11,
1,
0,
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,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
85,
5
],
[
85,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
20,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
24,
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
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
54,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
73,
73
],
[
73,
74
],
[
73,
75
],
[
73,
76
],
[
76,
77
],
[
76,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
6,
82
],
[
82,
83
],
[
0,
84
],
[
84,
85
],
[
84,
86
]
]
| [
"\nimport 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 int[] a = new int[128];\n int i; \n while(sc.hasNext()){\n str = sc.nextLine().toLowerCase();\n for(i=0;i<str.length();i++){\n a[str.charAt(i)]++;;\n }\n }\n for(char ch='a';ch<='z';ch++){\n System.out.println(ch+\" : \"+a[ch]);\n }\n sc.close();\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 String str ;\n int[] a = new int[128];\n int i; \n while(sc.hasNext()){\n str = sc.nextLine().toLowerCase();\n for(i=0;i<str.length();i++){\n a[str.charAt(i)]++;;\n }\n }\n for(char ch='a';ch<='z';ch++){\n System.out.println(ch+\" : \"+a[ch]);\n }\n sc.close();\n \n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str ;\n int[] a = new int[128];\n int i; \n while(sc.hasNext()){\n str = sc.nextLine().toLowerCase();\n for(i=0;i<str.length();i++){\n a[str.charAt(i)]++;;\n }\n }\n for(char ch='a';ch<='z';ch++){\n System.out.println(ch+\" : \"+a[ch]);\n }\n sc.close();\n \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String str ;\n int[] a = new int[128];\n int i; \n while(sc.hasNext()){\n str = sc.nextLine().toLowerCase();\n for(i=0;i<str.length();i++){\n a[str.charAt(i)]++;;\n }\n }\n for(char ch='a';ch<='z';ch++){\n System.out.println(ch+\" : \"+a[ch]);\n }\n sc.close();\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String str ;",
"str",
"int[] a = new int[128];",
"a",
"new int[128]",
"128",
"int i;",
"i",
"while(sc.hasNext()){\n str = sc.nextLine().toLowerCase();\n for(i=0;i<str.length();i++){\n a[str.charAt(i)]++;;\n }\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n str = sc.nextLine().toLowerCase();\n for(i=0;i<str.length();i++){\n a[str.charAt(i)]++;;\n }\n }",
"str = sc.nextLine().toLowerCase()",
"str",
"sc.nextLine().toLowerCase()",
"sc.nextLine().toLowerCase",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for(i=0;i<str.length();i++){\n a[str.charAt(i)]++;;\n }",
"i=0;",
"i=0",
"i",
"0",
"i<str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n a[str.charAt(i)]++;;\n }",
"{\n a[str.charAt(i)]++;;\n }",
"a[str.charAt(i)]++",
"a[str.charAt(i)]",
"a",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"for(char ch='a';ch<='z';ch++){\n System.out.println(ch+\" : \"+a[ch]);\n }",
"char ch='a';",
"char ch='a';",
"ch",
"'a'",
"ch<='z'",
"ch",
"'z'",
"ch++",
"ch++",
"ch",
"{\n System.out.println(ch+\" : \"+a[ch]);\n }",
"{\n System.out.println(ch+\" : \"+a[ch]);\n }",
"System.out.println(ch+\" : \"+a[ch])",
"System.out.println",
"System.out",
"System",
"System.out",
"ch+\" : \"+a[ch]",
"ch+\" : \"+a[ch]",
"ch",
"\" : \"",
"a[ch]",
"a",
"ch",
"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 int[] a = new int[128];\n int i; \n while(sc.hasNext()){\n str = sc.nextLine().toLowerCase();\n for(i=0;i<str.length();i++){\n a[str.charAt(i)]++;;\n }\n }\n for(char ch='a';ch<='z';ch++){\n System.out.println(ch+\" : \"+a[ch]);\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 String str ;\n int[] a = new int[128];\n int i; \n while(sc.hasNext()){\n str = sc.nextLine().toLowerCase();\n for(i=0;i<str.length();i++){\n a[str.charAt(i)]++;;\n }\n }\n for(char ch='a';ch<='z';ch++){\n System.out.println(ch+\" : \"+a[ch]);\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);
String str ;
int[] a = new int[128];
int i;
while(sc.hasNext()){
str = sc.nextLine().toLowerCase();
for(i=0;i<str.length();i++){
a[str.charAt(i)]++;;
}
}
for(char ch='a';ch<='z';ch++){
System.out.println(ch+" : "+a[ch]);
}
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,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
14,
4,
18,
13,
13,
40,
18,
13,
2,
13,
17,
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,
2,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
96,
5
],
[
96,
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
],
[
51,
54
],
[
50,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
61,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
73,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
85,
85
],
[
85,
86
],
[
85,
87
],
[
85,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
6,
93
],
[
93,
94
],
[
0,
95
],
[
95,
96
],
[
95,
97
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint table[] = new int[26];\n\t\twhile(in.hasNext()) {\n\t\t\tString s = in.nextLine();\n\t\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\t\tchar ch = Character.toLowerCase(s.charAt(i));\n\t\t\t\tif (Character.isAlphabetic(ch))\n\t\t\t\t\ttable[ch - 'a']++;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++) {\n\t\t\tchar ch = (char) ('a' + i);\n\t\t\tSystem.out.println(ch + \" : \" + table[ch - 'a']);\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 in = new Scanner(System.in);\n\t\tint table[] = new int[26];\n\t\twhile(in.hasNext()) {\n\t\t\tString s = in.nextLine();\n\t\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\t\tchar ch = Character.toLowerCase(s.charAt(i));\n\t\t\t\tif (Character.isAlphabetic(ch))\n\t\t\t\t\ttable[ch - 'a']++;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++) {\n\t\t\tchar ch = (char) ('a' + i);\n\t\t\tSystem.out.println(ch + \" : \" + table[ch - 'a']);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint table[] = new int[26];\n\t\twhile(in.hasNext()) {\n\t\t\tString s = in.nextLine();\n\t\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\t\tchar ch = Character.toLowerCase(s.charAt(i));\n\t\t\t\tif (Character.isAlphabetic(ch))\n\t\t\t\t\ttable[ch - 'a']++;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++) {\n\t\t\tchar ch = (char) ('a' + i);\n\t\t\tSystem.out.println(ch + \" : \" + table[ch - 'a']);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner in = new Scanner(System.in);\n\t\tint table[] = new int[26];\n\t\twhile(in.hasNext()) {\n\t\t\tString s = in.nextLine();\n\t\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\t\tchar ch = Character.toLowerCase(s.charAt(i));\n\t\t\t\tif (Character.isAlphabetic(ch))\n\t\t\t\t\ttable[ch - 'a']++;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++) {\n\t\t\tchar ch = (char) ('a' + i);\n\t\t\tSystem.out.println(ch + \" : \" + table[ch - 'a']);\n\t\t}\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int table[] = new int[26];",
"table",
"new int[26]",
"26",
"while(in.hasNext()) {\n\t\t\tString s = in.nextLine();\n\t\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\t\tchar ch = Character.toLowerCase(s.charAt(i));\n\t\t\t\tif (Character.isAlphabetic(ch))\n\t\t\t\t\ttable[ch - 'a']++;\n\t\t\t}\n\t\t}",
"in.hasNext()",
"in.hasNext",
"in",
"{\n\t\t\tString s = in.nextLine();\n\t\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\t\tchar ch = Character.toLowerCase(s.charAt(i));\n\t\t\t\tif (Character.isAlphabetic(ch))\n\t\t\t\t\ttable[ch - 'a']++;\n\t\t\t}\n\t\t}",
"String s = in.nextLine();",
"s",
"in.nextLine()",
"in.nextLine",
"in",
"for (int i = 0; i < s.length(); i++) {\n\t\t\t\tchar ch = Character.toLowerCase(s.charAt(i));\n\t\t\t\tif (Character.isAlphabetic(ch))\n\t\t\t\t\ttable[ch - 'a']++;\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\tchar ch = Character.toLowerCase(s.charAt(i));\n\t\t\t\tif (Character.isAlphabetic(ch))\n\t\t\t\t\ttable[ch - 'a']++;\n\t\t\t}",
"{\n\t\t\t\tchar ch = Character.toLowerCase(s.charAt(i));\n\t\t\t\tif (Character.isAlphabetic(ch))\n\t\t\t\t\ttable[ch - 'a']++;\n\t\t\t}",
"char ch = Character.toLowerCase(s.charAt(i));",
"ch",
"Character.toLowerCase(s.charAt(i))",
"Character.toLowerCase",
"Character",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"if (Character.isAlphabetic(ch))\n\t\t\t\t\ttable[ch - 'a']++;",
"Character.isAlphabetic(ch)",
"Character.isAlphabetic",
"Character",
"ch",
"table[ch - 'a']++",
"table[ch - 'a']",
"table",
"ch - 'a'",
"ch",
"'a'",
"for(int i=0;i<26;i++) {\n\t\t\tchar ch = (char) ('a' + i);\n\t\t\tSystem.out.println(ch + \" : \" + table[ch - 'a']);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tchar ch = (char) ('a' + i);\n\t\t\tSystem.out.println(ch + \" : \" + table[ch - 'a']);\n\t\t}",
"{\n\t\t\tchar ch = (char) ('a' + i);\n\t\t\tSystem.out.println(ch + \" : \" + table[ch - 'a']);\n\t\t}",
"char ch = (char) ('a' + i);",
"ch",
"(char) ('a' + i)",
"'a'",
"i",
"System.out.println(ch + \" : \" + table[ch - 'a'])",
"System.out.println",
"System.out",
"System",
"System.out",
"ch + \" : \" + table[ch - 'a']",
"ch + \" : \" + table[ch - 'a']",
"ch",
"\" : \"",
"table[ch - 'a']",
"table",
"ch - 'a'",
"ch",
"'a'",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint table[] = new int[26];\n\t\twhile(in.hasNext()) {\n\t\t\tString s = in.nextLine();\n\t\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\t\tchar ch = Character.toLowerCase(s.charAt(i));\n\t\t\t\tif (Character.isAlphabetic(ch))\n\t\t\t\t\ttable[ch - 'a']++;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++) {\n\t\t\tchar ch = (char) ('a' + i);\n\t\t\tSystem.out.println(ch + \" : \" + table[ch - 'a']);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint table[] = new int[26];\n\t\twhile(in.hasNext()) {\n\t\t\tString s = in.nextLine();\n\t\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\t\tchar ch = Character.toLowerCase(s.charAt(i));\n\t\t\t\tif (Character.isAlphabetic(ch))\n\t\t\t\t\ttable[ch - 'a']++;\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++) {\n\t\t\tchar ch = (char) ('a' + i);\n\t\t\tSystem.out.println(ch + \" : \" + table[ch - 'a']);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int table[] = new int[26];
while(in.hasNext()) {
String s = in.nextLine();
for (int i = 0; i < s.length(); i++) {
char ch = Character.toLowerCase(s.charAt(i));
if (Character.isAlphabetic(ch))
table[ch - 'a']++;
}
}
for(int i=0;i<26;i++) {
char ch = (char) ('a' + i);
System.out.println(ch + " : " + table[ch - 'a']);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
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,
41,
13,
20,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
2,
4,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
18,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
40,
18,
13,
13,
14,
2,
2,
13,
40,
17,
2,
13,
40,
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,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
146,
14
],
[
146,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
25,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
29,
35
],
[
35,
36
],
[
35,
37
],
[
38,
39
],
[
39,
40
],
[
29,
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
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
60,
65
],
[
29,
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
],
[
87,
91
],
[
91,
92
],
[
91,
93
],
[
86,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
86,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
99,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
113,
115
],
[
17,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
121,
122
],
[
121,
123
],
[
116,
124
],
[
124,
125
],
[
125,
126
],
[
116,
127
],
[
128,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
135,
135
],
[
135,
136
],
[
135,
137
],
[
135,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
140,
142
],
[
15,
143
],
[
143,
144
],
[
0,
145
],
[
145,
146
],
[
145,
147
]
]
| [
"import java.io.File;\nimport java.io.FileInputStream;\nimport java.io.FileNotFoundException;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) throws FileNotFoundException {\n Scanner sc =new Scanner(System.in);\n int[] counter = new int[26];\n while (sc.hasNextLine()) {\n String str = sc.nextLine();\n int[] array = new int[str.length()];\n // System.out.println(\"str.length = \" + str.length());\n for (int i = 0; i < str.length(); i++) {\n array[i] = str.charAt(i) - 'a';\n // System.out.println(\"array[\" + i + \"] = \" + array[i]);\n }\n for (int j = 0; j < array.length; j++) {\n int value = array[j];\n // System.out.println(\"value = \" + value);\n if ((value >= 0) && (value <= 25)) {\n counter[value]++;\n // System.out.println(\"counter[\" + value + \"] = \" + counter[value]);\n } else if ((value >= -32) && (value <= -7)) {\n counter[value + 32]++;\n // System.out.println(\"counter[\" + (value + 32) + \"] = \" + counter[value + 32]);\n }\n }\n }\n for (char ch = 'a'; ch <= 'z'; ch++) {\n // System.out.println(\"ch - 'a' = \" + (ch - 'a'));\n System.out.println(ch + \" : \" + counter[ch - 'a']);\n }\n }\n}",
"import java.io.File;",
"File",
"java.io",
"import java.io.FileInputStream;",
"FileInputStream",
"java.io",
"import java.io.FileNotFoundException;",
"FileNotFoundException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) throws FileNotFoundException {\n Scanner sc =new Scanner(System.in);\n int[] counter = new int[26];\n while (sc.hasNextLine()) {\n String str = sc.nextLine();\n int[] array = new int[str.length()];\n // System.out.println(\"str.length = \" + str.length());\n for (int i = 0; i < str.length(); i++) {\n array[i] = str.charAt(i) - 'a';\n // System.out.println(\"array[\" + i + \"] = \" + array[i]);\n }\n for (int j = 0; j < array.length; j++) {\n int value = array[j];\n // System.out.println(\"value = \" + value);\n if ((value >= 0) && (value <= 25)) {\n counter[value]++;\n // System.out.println(\"counter[\" + value + \"] = \" + counter[value]);\n } else if ((value >= -32) && (value <= -7)) {\n counter[value + 32]++;\n // System.out.println(\"counter[\" + (value + 32) + \"] = \" + counter[value + 32]);\n }\n }\n }\n for (char ch = 'a'; ch <= 'z'; ch++) {\n // System.out.println(\"ch - 'a' = \" + (ch - 'a'));\n System.out.println(ch + \" : \" + counter[ch - 'a']);\n }\n }\n}",
"Main",
"public static void main(String[] args) throws FileNotFoundException {\n Scanner sc =new Scanner(System.in);\n int[] counter = new int[26];\n while (sc.hasNextLine()) {\n String str = sc.nextLine();\n int[] array = new int[str.length()];\n // System.out.println(\"str.length = \" + str.length());\n for (int i = 0; i < str.length(); i++) {\n array[i] = str.charAt(i) - 'a';\n // System.out.println(\"array[\" + i + \"] = \" + array[i]);\n }\n for (int j = 0; j < array.length; j++) {\n int value = array[j];\n // System.out.println(\"value = \" + value);\n if ((value >= 0) && (value <= 25)) {\n counter[value]++;\n // System.out.println(\"counter[\" + value + \"] = \" + counter[value]);\n } else if ((value >= -32) && (value <= -7)) {\n counter[value + 32]++;\n // System.out.println(\"counter[\" + (value + 32) + \"] = \" + counter[value + 32]);\n }\n }\n }\n for (char ch = 'a'; ch <= 'z'; ch++) {\n // System.out.println(\"ch - 'a' = \" + (ch - 'a'));\n System.out.println(ch + \" : \" + counter[ch - 'a']);\n }\n }",
"main",
"{\n Scanner sc =new Scanner(System.in);\n int[] counter = new int[26];\n while (sc.hasNextLine()) {\n String str = sc.nextLine();\n int[] array = new int[str.length()];\n // System.out.println(\"str.length = \" + str.length());\n for (int i = 0; i < str.length(); i++) {\n array[i] = str.charAt(i) - 'a';\n // System.out.println(\"array[\" + i + \"] = \" + array[i]);\n }\n for (int j = 0; j < array.length; j++) {\n int value = array[j];\n // System.out.println(\"value = \" + value);\n if ((value >= 0) && (value <= 25)) {\n counter[value]++;\n // System.out.println(\"counter[\" + value + \"] = \" + counter[value]);\n } else if ((value >= -32) && (value <= -7)) {\n counter[value + 32]++;\n // System.out.println(\"counter[\" + (value + 32) + \"] = \" + counter[value + 32]);\n }\n }\n }\n for (char ch = 'a'; ch <= 'z'; ch++) {\n // System.out.println(\"ch - 'a' = \" + (ch - 'a'));\n System.out.println(ch + \" : \" + counter[ch - 'a']);\n }\n }",
"Scanner sc =new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] counter = new int[26];",
"counter",
"new int[26]",
"26",
"while (sc.hasNextLine()) {\n String str = sc.nextLine();\n int[] array = new int[str.length()];\n // System.out.println(\"str.length = \" + str.length());\n for (int i = 0; i < str.length(); i++) {\n array[i] = str.charAt(i) - 'a';\n // System.out.println(\"array[\" + i + \"] = \" + array[i]);\n }\n for (int j = 0; j < array.length; j++) {\n int value = array[j];\n // System.out.println(\"value = \" + value);\n if ((value >= 0) && (value <= 25)) {\n counter[value]++;\n // System.out.println(\"counter[\" + value + \"] = \" + counter[value]);\n } else if ((value >= -32) && (value <= -7)) {\n counter[value + 32]++;\n // System.out.println(\"counter[\" + (value + 32) + \"] = \" + counter[value + 32]);\n }\n }\n }",
"sc.hasNextLine()",
"sc.hasNextLine",
"sc",
"{\n String str = sc.nextLine();\n int[] array = new int[str.length()];\n // System.out.println(\"str.length = \" + str.length());\n for (int i = 0; i < str.length(); i++) {\n array[i] = str.charAt(i) - 'a';\n // System.out.println(\"array[\" + i + \"] = \" + array[i]);\n }\n for (int j = 0; j < array.length; j++) {\n int value = array[j];\n // System.out.println(\"value = \" + value);\n if ((value >= 0) && (value <= 25)) {\n counter[value]++;\n // System.out.println(\"counter[\" + value + \"] = \" + counter[value]);\n } else if ((value >= -32) && (value <= -7)) {\n counter[value + 32]++;\n // System.out.println(\"counter[\" + (value + 32) + \"] = \" + counter[value + 32]);\n }\n }\n }",
"String str = sc.nextLine();",
"str",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int[] array = new int[str.length()];",
"array",
"new int[str.length()]",
"str.length()",
"str.length",
"str",
"for (int i = 0; i < str.length(); i++) {\n array[i] = str.charAt(i) - 'a';\n // System.out.println(\"array[\" + i + \"] = \" + array[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n array[i] = str.charAt(i) - 'a';\n // System.out.println(\"array[\" + i + \"] = \" + array[i]);\n }",
"{\n array[i] = str.charAt(i) - 'a';\n // System.out.println(\"array[\" + i + \"] = \" + array[i]);\n }",
"array[i] = str.charAt(i) - 'a'",
"array[i]",
"array",
"i",
"str.charAt(i) - 'a'",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"'a'",
"for (int j = 0; j < array.length; j++) {\n int value = array[j];\n // System.out.println(\"value = \" + value);\n if ((value >= 0) && (value <= 25)) {\n counter[value]++;\n // System.out.println(\"counter[\" + value + \"] = \" + counter[value]);\n } else if ((value >= -32) && (value <= -7)) {\n counter[value + 32]++;\n // System.out.println(\"counter[\" + (value + 32) + \"] = \" + counter[value + 32]);\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < array.length",
"j",
"array.length",
"array",
"array.length",
"j++",
"j++",
"j",
"{\n int value = array[j];\n // System.out.println(\"value = \" + value);\n if ((value >= 0) && (value <= 25)) {\n counter[value]++;\n // System.out.println(\"counter[\" + value + \"] = \" + counter[value]);\n } else if ((value >= -32) && (value <= -7)) {\n counter[value + 32]++;\n // System.out.println(\"counter[\" + (value + 32) + \"] = \" + counter[value + 32]);\n }\n }",
"{\n int value = array[j];\n // System.out.println(\"value = \" + value);\n if ((value >= 0) && (value <= 25)) {\n counter[value]++;\n // System.out.println(\"counter[\" + value + \"] = \" + counter[value]);\n } else if ((value >= -32) && (value <= -7)) {\n counter[value + 32]++;\n // System.out.println(\"counter[\" + (value + 32) + \"] = \" + counter[value + 32]);\n }\n }",
"int value = array[j];",
"value",
"array[j]",
"array",
"j",
"if ((value >= 0) && (value <= 25)) {\n counter[value]++;\n // System.out.println(\"counter[\" + value + \"] = \" + counter[value]);\n } else if ((value >= -32) && (value <= -7)) {\n counter[value + 32]++;\n // System.out.println(\"counter[\" + (value + 32) + \"] = \" + counter[value + 32]);\n }",
"(value >= 0) && (value <= 25)",
"(value >= 0)",
"value",
"0",
"(value <= 25)",
"value",
"25",
"{\n counter[value]++;\n // System.out.println(\"counter[\" + value + \"] = \" + counter[value]);\n }",
"counter[value]++",
"counter[value]",
"counter",
"value",
"if ((value >= -32) && (value <= -7)) {\n counter[value + 32]++;\n // System.out.println(\"counter[\" + (value + 32) + \"] = \" + counter[value + 32]);\n }",
"(value >= -32) && (value <= -7)",
"(value >= -32)",
"value",
"-32",
"32",
"(value <= -7)",
"value",
"-7",
"7",
"{\n counter[value + 32]++;\n // System.out.println(\"counter[\" + (value + 32) + \"] = \" + counter[value + 32]);\n }",
"counter[value + 32]++",
"counter[value + 32]",
"counter",
"value + 32",
"value",
"32",
"for (char ch = 'a'; ch <= 'z'; ch++) {\n // System.out.println(\"ch - 'a' = \" + (ch - 'a'));\n System.out.println(ch + \" : \" + counter[ch - 'a']);\n }",
"char ch = 'a';",
"char ch = 'a';",
"ch",
"'a'",
"ch <= 'z'",
"ch",
"'z'",
"ch++",
"ch++",
"ch",
"{\n // System.out.println(\"ch - 'a' = \" + (ch - 'a'));\n System.out.println(ch + \" : \" + counter[ch - 'a']);\n }",
"{\n // System.out.println(\"ch - 'a' = \" + (ch - 'a'));\n System.out.println(ch + \" : \" + counter[ch - 'a']);\n }",
"System.out.println(ch + \" : \" + counter[ch - 'a'])",
"System.out.println",
"System.out",
"System",
"System.out",
"ch + \" : \" + counter[ch - 'a']",
"ch + \" : \" + counter[ch - 'a']",
"ch",
"\" : \"",
"counter[ch - 'a']",
"counter",
"ch - 'a'",
"ch",
"'a'",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws FileNotFoundException {\n Scanner sc =new Scanner(System.in);\n int[] counter = new int[26];\n while (sc.hasNextLine()) {\n String str = sc.nextLine();\n int[] array = new int[str.length()];\n // System.out.println(\"str.length = \" + str.length());\n for (int i = 0; i < str.length(); i++) {\n array[i] = str.charAt(i) - 'a';\n // System.out.println(\"array[\" + i + \"] = \" + array[i]);\n }\n for (int j = 0; j < array.length; j++) {\n int value = array[j];\n // System.out.println(\"value = \" + value);\n if ((value >= 0) && (value <= 25)) {\n counter[value]++;\n // System.out.println(\"counter[\" + value + \"] = \" + counter[value]);\n } else if ((value >= -32) && (value <= -7)) {\n counter[value + 32]++;\n // System.out.println(\"counter[\" + (value + 32) + \"] = \" + counter[value + 32]);\n }\n }\n }\n for (char ch = 'a'; ch <= 'z'; ch++) {\n // System.out.println(\"ch - 'a' = \" + (ch - 'a'));\n System.out.println(ch + \" : \" + counter[ch - 'a']);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws FileNotFoundException {\n Scanner sc =new Scanner(System.in);\n int[] counter = new int[26];\n while (sc.hasNextLine()) {\n String str = sc.nextLine();\n int[] array = new int[str.length()];\n // System.out.println(\"str.length = \" + str.length());\n for (int i = 0; i < str.length(); i++) {\n array[i] = str.charAt(i) - 'a';\n // System.out.println(\"array[\" + i + \"] = \" + array[i]);\n }\n for (int j = 0; j < array.length; j++) {\n int value = array[j];\n // System.out.println(\"value = \" + value);\n if ((value >= 0) && (value <= 25)) {\n counter[value]++;\n // System.out.println(\"counter[\" + value + \"] = \" + counter[value]);\n } else if ((value >= -32) && (value <= -7)) {\n counter[value + 32]++;\n // System.out.println(\"counter[\" + (value + 32) + \"] = \" + counter[value + 32]);\n }\n }\n }\n for (char ch = 'a'; ch <= 'z'; ch++) {\n // System.out.println(\"ch - 'a' = \" + (ch - 'a'));\n System.out.println(ch + \" : \" + counter[ch - 'a']);\n }\n }\n}",
"Main"
]
| import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws FileNotFoundException {
Scanner sc =new Scanner(System.in);
int[] counter = new int[26];
while (sc.hasNextLine()) {
String str = sc.nextLine();
int[] array = new int[str.length()];
// System.out.println("str.length = " + str.length());
for (int i = 0; i < str.length(); i++) {
array[i] = str.charAt(i) - 'a';
// System.out.println("array[" + i + "] = " + array[i]);
}
for (int j = 0; j < array.length; j++) {
int value = array[j];
// System.out.println("value = " + value);
if ((value >= 0) && (value <= 25)) {
counter[value]++;
// System.out.println("counter[" + value + "] = " + counter[value]);
} else if ((value >= -32) && (value <= -7)) {
counter[value + 32]++;
// System.out.println("counter[" + (value + 32) + "] = " + counter[value + 32]);
}
}
}
for (char ch = 'a'; ch <= 'z'; ch++) {
// System.out.println("ch - 'a' = " + (ch - 'a'));
System.out.println(ch + " : " + counter[ch - 'a']);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
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,
18,
13,
13,
41,
13,
20,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
17,
41,
13,
20,
41,
13,
20,
28,
13,
13,
30,
30,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
4,
18,
13,
13,
30,
0,
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,
2,
2,
18,
13,
13,
17,
17,
17,
18,
13,
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
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
26,
28
],
[
26,
29
],
[
26,
30
],
[
26,
31
],
[
26,
32
],
[
26,
33
],
[
26,
34
],
[
26,
35
],
[
26,
36
],
[
26,
37
],
[
26,
38
],
[
26,
39
],
[
26,
40
],
[
26,
41
],
[
26,
42
],
[
26,
43
],
[
26,
44
],
[
26,
45
],
[
26,
46
],
[
26,
47
],
[
26,
48
],
[
26,
49
],
[
26,
50
],
[
26,
51
],
[
26,
52
],
[
23,
53
],
[
53,
54
],
[
53,
55
],
[
56,
57
],
[
56,
58
],
[
23,
59
],
[
59,
60
],
[
59,
61
],
[
23,
62
],
[
62,
63
],
[
23,
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
],
[
75,
78
],
[
72,
79
],
[
79,
80
],
[
79,
81
],
[
72,
82
],
[
82,
83
],
[
82,
84
],
[
72,
85
],
[
85,
86
],
[
85,
87
],
[
85,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
94,
95
],
[
72,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
96,
106
],
[
106,
107
],
[
107,
108
],
[
96,
109
],
[
110,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
72,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
72,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
129,
131
],
[
122,
132
],
[
132,
133
],
[
133,
134
],
[
122,
135
],
[
136,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
137,
147
],
[
147,
148
],
[
148,
149
],
[
137,
150
],
[
151,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
153,
158
],
[
158,
159
],
[
159,
160
],
[
158,
161
],
[
152,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
163,
167
],
[
23,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
175,
177
],
[
168,
178
],
[
178,
179
],
[
179,
180
],
[
168,
181
],
[
182,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
183,
188
],
[
192,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
192,
196
],
[
191,
197
],
[
190,
198
],
[
189,
199
],
[
199,
200
],
[
199,
201
],
[
192,
202
],
[
21,
203
],
[
203,
204
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.List;\n\nclass Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tCharacter[] ch = { '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\tint[] sum = new int[ch.length];\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\n\t\twhile ((str = br.readLine()) !=null) {\n\n\n\n\n\t\tString[] str2 = str.split(\" \");\n\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tList<Character> liststr = new ArrayList<>();\n\n\t\tfor (String s : str2) {\n\n\t\t\tbuilder.append(s.toLowerCase());\n\t\t}\n\t\tfor (int i = 0; i < builder.length(); i++) {\n\n\t\t\tliststr.add(builder.charAt(i));\n\t\t}\n\n\t\tCollections.sort(liststr);\n\n\n\t\tfor(int i =0; i<ch.length; i++){\n\t\t\tfor(int j=0; j<liststr.size(); j++){\n\t\t\t\tif(ch[i].equals(liststr.get(j))){\n\t\t\t\t\tsum[i] +=1;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\t}\n\n\t\tfor(int i =0; i<ch.length; i++){\n\t\t\tSystem.out.print(ch[i]+\" \"+\":\"+\" \"+sum[i]+\"\\n\");\n\t\t}\n\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",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.List;",
"List",
"java.util",
"class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tCharacter[] ch = { '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\tint[] sum = new int[ch.length];\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\n\t\twhile ((str = br.readLine()) !=null) {\n\n\n\n\n\t\tString[] str2 = str.split(\" \");\n\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tList<Character> liststr = new ArrayList<>();\n\n\t\tfor (String s : str2) {\n\n\t\t\tbuilder.append(s.toLowerCase());\n\t\t}\n\t\tfor (int i = 0; i < builder.length(); i++) {\n\n\t\t\tliststr.add(builder.charAt(i));\n\t\t}\n\n\t\tCollections.sort(liststr);\n\n\n\t\tfor(int i =0; i<ch.length; i++){\n\t\t\tfor(int j=0; j<liststr.size(); j++){\n\t\t\t\tif(ch[i].equals(liststr.get(j))){\n\t\t\t\t\tsum[i] +=1;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\t}\n\n\t\tfor(int i =0; i<ch.length; i++){\n\t\t\tSystem.out.print(ch[i]+\" \"+\":\"+\" \"+sum[i]+\"\\n\");\n\t\t}\n\n\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n\t\tCharacter[] ch = { '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\tint[] sum = new int[ch.length];\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\n\t\twhile ((str = br.readLine()) !=null) {\n\n\n\n\n\t\tString[] str2 = str.split(\" \");\n\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tList<Character> liststr = new ArrayList<>();\n\n\t\tfor (String s : str2) {\n\n\t\t\tbuilder.append(s.toLowerCase());\n\t\t}\n\t\tfor (int i = 0; i < builder.length(); i++) {\n\n\t\t\tliststr.add(builder.charAt(i));\n\t\t}\n\n\t\tCollections.sort(liststr);\n\n\n\t\tfor(int i =0; i<ch.length; i++){\n\t\t\tfor(int j=0; j<liststr.size(); j++){\n\t\t\t\tif(ch[i].equals(liststr.get(j))){\n\t\t\t\t\tsum[i] +=1;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\t}\n\n\t\tfor(int i =0; i<ch.length; i++){\n\t\t\tSystem.out.print(ch[i]+\" \"+\":\"+\" \"+sum[i]+\"\\n\");\n\t\t}\n\n\n\t}",
"main",
"{\n\n\t\tCharacter[] ch = { '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\tint[] sum = new int[ch.length];\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\n\t\twhile ((str = br.readLine()) !=null) {\n\n\n\n\n\t\tString[] str2 = str.split(\" \");\n\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tList<Character> liststr = new ArrayList<>();\n\n\t\tfor (String s : str2) {\n\n\t\t\tbuilder.append(s.toLowerCase());\n\t\t}\n\t\tfor (int i = 0; i < builder.length(); i++) {\n\n\t\t\tliststr.add(builder.charAt(i));\n\t\t}\n\n\t\tCollections.sort(liststr);\n\n\n\t\tfor(int i =0; i<ch.length; i++){\n\t\t\tfor(int j=0; j<liststr.size(); j++){\n\t\t\t\tif(ch[i].equals(liststr.get(j))){\n\t\t\t\t\tsum[i] +=1;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\t}\n\n\t\tfor(int i =0; i<ch.length; i++){\n\t\t\tSystem.out.print(ch[i]+\" \"+\":\"+\" \"+sum[i]+\"\\n\");\n\t\t}\n\n\n\t}",
"Character[] ch = { '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' };",
"ch",
"{ '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'",
"int[] sum = new int[ch.length];",
"sum",
"new int[ch.length]",
"ch.length",
"ch",
"ch.length",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str;",
"str",
"while ((str = br.readLine()) !=null) {\n\n\n\n\n\t\tString[] str2 = str.split(\" \");\n\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tList<Character> liststr = new ArrayList<>();\n\n\t\tfor (String s : str2) {\n\n\t\t\tbuilder.append(s.toLowerCase());\n\t\t}\n\t\tfor (int i = 0; i < builder.length(); i++) {\n\n\t\t\tliststr.add(builder.charAt(i));\n\t\t}\n\n\t\tCollections.sort(liststr);\n\n\n\t\tfor(int i =0; i<ch.length; i++){\n\t\t\tfor(int j=0; j<liststr.size(); j++){\n\t\t\t\tif(ch[i].equals(liststr.get(j))){\n\t\t\t\t\tsum[i] +=1;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\t}",
"(str = br.readLine()) !=null",
"(str = br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\n\n\n\n\t\tString[] str2 = str.split(\" \");\n\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tList<Character> liststr = new ArrayList<>();\n\n\t\tfor (String s : str2) {\n\n\t\t\tbuilder.append(s.toLowerCase());\n\t\t}\n\t\tfor (int i = 0; i < builder.length(); i++) {\n\n\t\t\tliststr.add(builder.charAt(i));\n\t\t}\n\n\t\tCollections.sort(liststr);\n\n\n\t\tfor(int i =0; i<ch.length; i++){\n\t\t\tfor(int j=0; j<liststr.size(); j++){\n\t\t\t\tif(ch[i].equals(liststr.get(j))){\n\t\t\t\t\tsum[i] +=1;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\t}",
"String[] str2 = str.split(\" \");",
"str2",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"StringBuilder builder = new StringBuilder();",
"builder",
"new StringBuilder()",
"List<Character> liststr = new ArrayList<>();",
"liststr",
"new ArrayList<>()",
"for (String s : str2) {\n\n\t\t\tbuilder.append(s.toLowerCase());\n\t\t}",
"String s",
"str2",
"{\n\n\t\t\tbuilder.append(s.toLowerCase());\n\t\t}",
"{\n\n\t\t\tbuilder.append(s.toLowerCase());\n\t\t}",
"builder.append(s.toLowerCase())",
"builder.append",
"builder",
"s.toLowerCase()",
"s.toLowerCase",
"s",
"for (int i = 0; i < builder.length(); i++) {\n\n\t\t\tliststr.add(builder.charAt(i));\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < builder.length()",
"i",
"builder.length()",
"builder.length",
"builder",
"i++",
"i++",
"i",
"{\n\n\t\t\tliststr.add(builder.charAt(i));\n\t\t}",
"{\n\n\t\t\tliststr.add(builder.charAt(i));\n\t\t}",
"liststr.add(builder.charAt(i))",
"liststr.add",
"liststr",
"builder.charAt(i)",
"builder.charAt",
"builder",
"i",
"Collections.sort(liststr)",
"Collections.sort",
"Collections",
"liststr",
"for(int i =0; i<ch.length; i++){\n\t\t\tfor(int j=0; j<liststr.size(); j++){\n\t\t\t\tif(ch[i].equals(liststr.get(j))){\n\t\t\t\t\tsum[i] +=1;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"int i =0;",
"int i =0;",
"i",
"0",
"i<ch.length",
"i",
"ch.length",
"ch",
"ch.length",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0; j<liststr.size(); j++){\n\t\t\t\tif(ch[i].equals(liststr.get(j))){\n\t\t\t\t\tsum[i] +=1;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int j=0; j<liststr.size(); j++){\n\t\t\t\tif(ch[i].equals(liststr.get(j))){\n\t\t\t\t\tsum[i] +=1;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"for(int j=0; j<liststr.size(); j++){\n\t\t\t\tif(ch[i].equals(liststr.get(j))){\n\t\t\t\t\tsum[i] +=1;\n\t\t\t\t}\n\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<liststr.size()",
"j",
"liststr.size()",
"liststr.size",
"liststr",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(ch[i].equals(liststr.get(j))){\n\t\t\t\t\tsum[i] +=1;\n\t\t\t\t}\n\n\t\t\t}",
"{\n\t\t\t\tif(ch[i].equals(liststr.get(j))){\n\t\t\t\t\tsum[i] +=1;\n\t\t\t\t}\n\n\t\t\t}",
"if(ch[i].equals(liststr.get(j))){\n\t\t\t\t\tsum[i] +=1;\n\t\t\t\t}",
"ch[i].equals(liststr.get(j))",
"ch[i].equals",
"ch[i]",
"ch",
"i",
"liststr.get(j)",
"liststr.get",
"liststr",
"j",
"{\n\t\t\t\t\tsum[i] +=1;\n\t\t\t\t}",
"sum[i] +=1",
"sum[i]",
"sum",
"i",
"1",
"for(int i =0; i<ch.length; i++){\n\t\t\tSystem.out.print(ch[i]+\" \"+\":\"+\" \"+sum[i]+\"\\n\");\n\t\t}",
"int i =0;",
"int i =0;",
"i",
"0",
"i<ch.length",
"i",
"ch.length",
"ch",
"ch.length",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.print(ch[i]+\" \"+\":\"+\" \"+sum[i]+\"\\n\");\n\t\t}",
"{\n\t\t\tSystem.out.print(ch[i]+\" \"+\":\"+\" \"+sum[i]+\"\\n\");\n\t\t}",
"System.out.print(ch[i]+\" \"+\":\"+\" \"+sum[i]+\"\\n\")",
"System.out.print",
"System.out",
"System",
"System.out",
"ch[i]+\" \"+\":\"+\" \"+sum[i]+\"\\n\"",
"sum[i]",
"\" \"",
"\":\"",
"ch[i]+\" \"+\":\"+\" \"+sum[i]+\"\\n\"",
"ch[i]",
"ch",
"i",
"\" \"",
"\":\"",
"\" \"",
"sum[i]",
"sum",
"i",
"\"\\n\"",
"String[] args",
"args"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
class Main {
public static void main(String[] args) throws IOException {
Character[] ch = { '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[] sum = new int[ch.length];
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str;
while ((str = br.readLine()) !=null) {
String[] str2 = str.split(" ");
StringBuilder builder = new StringBuilder();
List<Character> liststr = new ArrayList<>();
for (String s : str2) {
builder.append(s.toLowerCase());
}
for (int i = 0; i < builder.length(); i++) {
liststr.add(builder.charAt(i));
}
Collections.sort(liststr);
for(int i =0; i<ch.length; i++){
for(int j=0; j<liststr.size(); j++){
if(ch[i].equals(liststr.get(j))){
sum[i] +=1;
}
}
}
}
for(int i =0; i<ch.length; i++){
System.out.print(ch[i]+" "+":"+" "+sum[i]+"\n");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
20,
2,
2,
17,
17,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
4,
18,
4,
18,
13,
28,
13,
13,
30,
30,
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,
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
],
[
84,
5
],
[
84,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
18,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
27,
37
],
[
37,
38
],
[
37,
39
],
[
37,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
42,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
54,
64
],
[
64,
65
],
[
65,
66
],
[
54,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
69,
75
],
[
75,
76
],
[
75,
77
],
[
69,
78
],
[
78,
79
],
[
78,
80
],
[
6,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tboolean f = true;\n\t\tint[] c = new int['z' - 'a' + 1];\n\t\twhile (s.hasNext()) {\n\t\t\tchar[] chars = s.next().toLowerCase().toCharArray();\n\t\t\tfor (char ch : chars) {\n\t\t\t\tif (Character.isLetter(ch)) {\n\t\t\t\t\tc[ch - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < c.length; ++i) {\n\t\t\tSystem.out.printf(\"%c : %d\\n\", (char)('a' + i), c[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 s = new Scanner(System.in);\n\t\tboolean f = true;\n\t\tint[] c = new int['z' - 'a' + 1];\n\t\twhile (s.hasNext()) {\n\t\t\tchar[] chars = s.next().toLowerCase().toCharArray();\n\t\t\tfor (char ch : chars) {\n\t\t\t\tif (Character.isLetter(ch)) {\n\t\t\t\t\tc[ch - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < c.length; ++i) {\n\t\t\tSystem.out.printf(\"%c : %d\\n\", (char)('a' + i), c[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tboolean f = true;\n\t\tint[] c = new int['z' - 'a' + 1];\n\t\twhile (s.hasNext()) {\n\t\t\tchar[] chars = s.next().toLowerCase().toCharArray();\n\t\t\tfor (char ch : chars) {\n\t\t\t\tif (Character.isLetter(ch)) {\n\t\t\t\t\tc[ch - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < c.length; ++i) {\n\t\t\tSystem.out.printf(\"%c : %d\\n\", (char)('a' + i), c[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner s = new Scanner(System.in);\n\t\tboolean f = true;\n\t\tint[] c = new int['z' - 'a' + 1];\n\t\twhile (s.hasNext()) {\n\t\t\tchar[] chars = s.next().toLowerCase().toCharArray();\n\t\t\tfor (char ch : chars) {\n\t\t\t\tif (Character.isLetter(ch)) {\n\t\t\t\t\tc[ch - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < c.length; ++i) {\n\t\t\tSystem.out.printf(\"%c : %d\\n\", (char)('a' + i), c[i]);\n\t\t}\n\t}",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"boolean f = true;",
"f",
"true",
"int[] c = new int['z' - 'a' + 1];",
"c",
"new int['z' - 'a' + 1]",
"'z' - 'a' + 1",
"'z' - 'a'",
"'z'",
"'a'",
"1",
"while (s.hasNext()) {\n\t\t\tchar[] chars = s.next().toLowerCase().toCharArray();\n\t\t\tfor (char ch : chars) {\n\t\t\t\tif (Character.isLetter(ch)) {\n\t\t\t\t\tc[ch - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"s.hasNext()",
"s.hasNext",
"s",
"{\n\t\t\tchar[] chars = s.next().toLowerCase().toCharArray();\n\t\t\tfor (char ch : chars) {\n\t\t\t\tif (Character.isLetter(ch)) {\n\t\t\t\t\tc[ch - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"char[] chars = s.next().toLowerCase().toCharArray();",
"chars",
"s.next().toLowerCase().toCharArray()",
"s.next().toLowerCase().toCharArray",
"s.next().toLowerCase()",
"s.next().toLowerCase",
"s.next()",
"s.next",
"s",
"for (char ch : chars) {\n\t\t\t\tif (Character.isLetter(ch)) {\n\t\t\t\t\tc[ch - 'a']++;\n\t\t\t\t}\n\t\t\t}",
"char ch",
"chars",
"{\n\t\t\t\tif (Character.isLetter(ch)) {\n\t\t\t\t\tc[ch - 'a']++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif (Character.isLetter(ch)) {\n\t\t\t\t\tc[ch - 'a']++;\n\t\t\t\t}\n\t\t\t}",
"if (Character.isLetter(ch)) {\n\t\t\t\t\tc[ch - 'a']++;\n\t\t\t\t}",
"Character.isLetter(ch)",
"Character.isLetter",
"Character",
"ch",
"{\n\t\t\t\t\tc[ch - 'a']++;\n\t\t\t\t}",
"c[ch - 'a']++",
"c[ch - 'a']",
"c",
"ch - 'a'",
"ch",
"'a'",
"for (int i = 0; i < c.length; ++i) {\n\t\t\tSystem.out.printf(\"%c : %d\\n\", (char)('a' + i), c[i]);\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\tSystem.out.printf(\"%c : %d\\n\", (char)('a' + i), c[i]);\n\t\t}",
"{\n\t\t\tSystem.out.printf(\"%c : %d\\n\", (char)('a' + i), c[i]);\n\t\t}",
"System.out.printf(\"%c : %d\\n\", (char)('a' + i), c[i])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c : %d\\n\"",
"(char)('a' + i)",
"'a'",
"i",
"c[i]",
"c",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tboolean f = true;\n\t\tint[] c = new int['z' - 'a' + 1];\n\t\twhile (s.hasNext()) {\n\t\t\tchar[] chars = s.next().toLowerCase().toCharArray();\n\t\t\tfor (char ch : chars) {\n\t\t\t\tif (Character.isLetter(ch)) {\n\t\t\t\t\tc[ch - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < c.length; ++i) {\n\t\t\tSystem.out.printf(\"%c : %d\\n\", (char)('a' + i), c[i]);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tboolean f = true;\n\t\tint[] c = new int['z' - 'a' + 1];\n\t\twhile (s.hasNext()) {\n\t\t\tchar[] chars = s.next().toLowerCase().toCharArray();\n\t\t\tfor (char ch : chars) {\n\t\t\t\tif (Character.isLetter(ch)) {\n\t\t\t\t\tc[ch - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < c.length; ++i) {\n\t\t\tSystem.out.printf(\"%c : %d\\n\", (char)('a' + i), c[i]);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
boolean f = true;
int[] c = new int['z' - 'a' + 1];
while (s.hasNext()) {
char[] chars = s.next().toLowerCase().toCharArray();
for (char ch : chars) {
if (Character.isLetter(ch)) {
c[ch - 'a']++;
}
}
}
for (int i = 0; i < c.length; ++i) {
System.out.printf("%c : %d\n", (char)('a' + i), c[i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
41,
13,
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,
41,
13,
2,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
2,
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,
4,
18,
18,
13,
13,
2,
2,
4,
18,
13,
13,
17,
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,
16
],
[
16,
17
],
[
16,
18
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
19,
27
],
[
27,
28
],
[
28,
29
],
[
19,
30
],
[
31,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
8,
37
],
[
37,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
39,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
49,
59
],
[
59,
60
],
[
60,
61
],
[
49,
62
],
[
63,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
63,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
63,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
80,
82
],
[
75,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
83,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
8,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
110,
111
],
[
111,
112
],
[
102,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
121,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
121,
126
],
[
121,
127
],
[
127,
128
],
[
127,
129
],
[
8,
130
],
[
130,
131
],
[
131,
132
],
[
6,
133
],
[
133,
134
]
]
| [
"\nimport java.util.*;\nclass Main {\n public static void main(String[] args)\n {\n Scanner scan = new Scanner(System.in);\n int cnt[] = new int[26];\n String alphabet=\"abcdefghijklmnopqrstuvwxyz\";\n for(int i=0; i<26; i++)\n {\n cnt[i]=0;\n }\n char ch;\n while(scan.hasNext())\n {\n String text = scan.next();\n for(int i=0; i<text.length(); i++)\n {\n ch=text.charAt(i);\n int n=ch-'A';\n if(n<64 && n>=0) {\n n=n%32;\n if(n>=0 && n<26) {\n cnt[n]++;\n }\n }\n }\n }\n for(int i=0; i<26; i++)\n {\n System.out.println(alphabet.charAt(i)+\" : \"+cnt[i]);\n }\n scan.close();\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String[] args)\n {\n Scanner scan = new Scanner(System.in);\n int cnt[] = new int[26];\n String alphabet=\"abcdefghijklmnopqrstuvwxyz\";\n for(int i=0; i<26; i++)\n {\n cnt[i]=0;\n }\n char ch;\n while(scan.hasNext())\n {\n String text = scan.next();\n for(int i=0; i<text.length(); i++)\n {\n ch=text.charAt(i);\n int n=ch-'A';\n if(n<64 && n>=0) {\n n=n%32;\n if(n>=0 && n<26) {\n cnt[n]++;\n }\n }\n }\n }\n for(int i=0; i<26; i++)\n {\n System.out.println(alphabet.charAt(i)+\" : \"+cnt[i]);\n }\n scan.close();\n\n }\n}",
"Main",
"public static void main(String[] args)\n {\n Scanner scan = new Scanner(System.in);\n int cnt[] = new int[26];\n String alphabet=\"abcdefghijklmnopqrstuvwxyz\";\n for(int i=0; i<26; i++)\n {\n cnt[i]=0;\n }\n char ch;\n while(scan.hasNext())\n {\n String text = scan.next();\n for(int i=0; i<text.length(); i++)\n {\n ch=text.charAt(i);\n int n=ch-'A';\n if(n<64 && n>=0) {\n n=n%32;\n if(n>=0 && n<26) {\n cnt[n]++;\n }\n }\n }\n }\n for(int i=0; i<26; i++)\n {\n System.out.println(alphabet.charAt(i)+\" : \"+cnt[i]);\n }\n scan.close();\n\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int cnt[] = new int[26];\n String alphabet=\"abcdefghijklmnopqrstuvwxyz\";\n for(int i=0; i<26; i++)\n {\n cnt[i]=0;\n }\n char ch;\n while(scan.hasNext())\n {\n String text = scan.next();\n for(int i=0; i<text.length(); i++)\n {\n ch=text.charAt(i);\n int n=ch-'A';\n if(n<64 && n>=0) {\n n=n%32;\n if(n>=0 && n<26) {\n cnt[n]++;\n }\n }\n }\n }\n for(int i=0; i<26; i++)\n {\n System.out.println(alphabet.charAt(i)+\" : \"+cnt[i]);\n }\n scan.close();\n\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int cnt[] = new int[26];",
"cnt",
"new int[26]",
"26",
"String alphabet=\"abcdefghijklmnopqrstuvwxyz\";",
"alphabet",
"\"abcdefghijklmnopqrstuvwxyz\"",
"for(int i=0; i<26; i++)\n {\n cnt[i]=0;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n cnt[i]=0;\n }",
"{\n cnt[i]=0;\n }",
"cnt[i]=0",
"cnt[i]",
"cnt",
"i",
"0",
"char ch;",
"ch",
"while(scan.hasNext())\n {\n String text = scan.next();\n for(int i=0; i<text.length(); i++)\n {\n ch=text.charAt(i);\n int n=ch-'A';\n if(n<64 && n>=0) {\n n=n%32;\n if(n>=0 && n<26) {\n cnt[n]++;\n }\n }\n }\n }",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n String text = scan.next();\n for(int i=0; i<text.length(); i++)\n {\n ch=text.charAt(i);\n int n=ch-'A';\n if(n<64 && n>=0) {\n n=n%32;\n if(n>=0 && n<26) {\n cnt[n]++;\n }\n }\n }\n }",
"String text = scan.next();",
"text",
"scan.next()",
"scan.next",
"scan",
"for(int i=0; i<text.length(); i++)\n {\n ch=text.charAt(i);\n int n=ch-'A';\n if(n<64 && n>=0) {\n n=n%32;\n if(n>=0 && n<26) {\n cnt[n]++;\n }\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<text.length()",
"i",
"text.length()",
"text.length",
"text",
"i++",
"i++",
"i",
"{\n ch=text.charAt(i);\n int n=ch-'A';\n if(n<64 && n>=0) {\n n=n%32;\n if(n>=0 && n<26) {\n cnt[n]++;\n }\n }\n }",
"{\n ch=text.charAt(i);\n int n=ch-'A';\n if(n<64 && n>=0) {\n n=n%32;\n if(n>=0 && n<26) {\n cnt[n]++;\n }\n }\n }",
"ch=text.charAt(i)",
"ch",
"text.charAt(i)",
"text.charAt",
"text",
"i",
"int n=ch-'A';",
"n",
"ch-'A'",
"ch",
"'A'",
"if(n<64 && n>=0) {\n n=n%32;\n if(n>=0 && n<26) {\n cnt[n]++;\n }\n }",
"n<64 && n>=0",
"n<64",
"n",
"64",
"n>=0",
"n",
"0",
"{\n n=n%32;\n if(n>=0 && n<26) {\n cnt[n]++;\n }\n }",
"n=n%32",
"n",
"n%32",
"n",
"32",
"if(n>=0 && n<26) {\n cnt[n]++;\n }",
"n>=0 && n<26",
"n>=0",
"n",
"0",
"n<26",
"n",
"26",
"{\n cnt[n]++;\n }",
"cnt[n]++",
"cnt[n]",
"cnt",
"n",
"for(int i=0; i<26; i++)\n {\n System.out.println(alphabet.charAt(i)+\" : \"+cnt[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n System.out.println(alphabet.charAt(i)+\" : \"+cnt[i]);\n }",
"{\n System.out.println(alphabet.charAt(i)+\" : \"+cnt[i]);\n }",
"System.out.println(alphabet.charAt(i)+\" : \"+cnt[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"alphabet.charAt(i)+\" : \"+cnt[i]",
"alphabet.charAt(i)+\" : \"+cnt[i]",
"alphabet.charAt(i)",
"alphabet.charAt",
"alphabet",
"i",
"\" : \"",
"cnt[i]",
"cnt",
"i",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args"
]
|
import java.util.*;
class Main {
public static void main(String[] args)
{
Scanner scan = new Scanner(System.in);
int cnt[] = new int[26];
String alphabet="abcdefghijklmnopqrstuvwxyz";
for(int i=0; i<26; i++)
{
cnt[i]=0;
}
char ch;
while(scan.hasNext())
{
String text = scan.next();
for(int i=0; i<text.length(); i++)
{
ch=text.charAt(i);
int n=ch-'A';
if(n<64 && n>=0) {
n=n%32;
if(n>=0 && n<26) {
cnt[n]++;
}
}
}
}
for(int i=0; i<26; i++)
{
System.out.println(alphabet.charAt(i)+" : "+cnt[i]);
}
scan.close();
}
} |
[
7,
15,
13,
17,
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,
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,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
2,
17,
2,
13,
17,
17,
18,
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,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
19,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
31,
41
],
[
41,
42
],
[
42,
43
],
[
31,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
46,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
45,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
67,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
11,
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
],
[
108,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
110,
112
],
[
107,
113
],
[
108,
114
],
[
114,
115
],
[
114,
116
],
[
9,
117
],
[
117,
118
]
]
| [
"import java.util.*;\nimport java.text.*;\n\nclass Main {\n public static void main(String[]args)throws Exception {\n Scanner sc = new Scanner(System.in);\n int [] cnt = new int[26];\n while(sc.hasNext()) {\n char [] cs = sc.nextLine().toCharArray();\n for(int i = 0; i < cs.length; i++) {\n if(cs[i] >= 'A' && cs[i] <= 'Z') {\n cnt[cs[i]-'A']++;\n }\n if(cs[i] >= 'a' && cs[i] <= 'z') {\n cnt[cs[i]-'a']++;\n }\n }\n }\n for(int i = 0; i < 26; i++) {\n System.out.println(\"\" + ((char)(i+'a')) + \" : \" + cnt[i]);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.text.*;",
"text.*",
"java",
"class Main {\n public static void main(String[]args)throws Exception {\n Scanner sc = new Scanner(System.in);\n int [] cnt = new int[26];\n while(sc.hasNext()) {\n char [] cs = sc.nextLine().toCharArray();\n for(int i = 0; i < cs.length; i++) {\n if(cs[i] >= 'A' && cs[i] <= 'Z') {\n cnt[cs[i]-'A']++;\n }\n if(cs[i] >= 'a' && cs[i] <= 'z') {\n cnt[cs[i]-'a']++;\n }\n }\n }\n for(int i = 0; i < 26; i++) {\n System.out.println(\"\" + ((char)(i+'a')) + \" : \" + cnt[i]);\n }\n }\n}",
"Main",
"public static void main(String[]args)throws Exception {\n Scanner sc = new Scanner(System.in);\n int [] cnt = new int[26];\n while(sc.hasNext()) {\n char [] cs = sc.nextLine().toCharArray();\n for(int i = 0; i < cs.length; i++) {\n if(cs[i] >= 'A' && cs[i] <= 'Z') {\n cnt[cs[i]-'A']++;\n }\n if(cs[i] >= 'a' && cs[i] <= 'z') {\n cnt[cs[i]-'a']++;\n }\n }\n }\n for(int i = 0; i < 26; i++) {\n System.out.println(\"\" + ((char)(i+'a')) + \" : \" + cnt[i]);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int [] cnt = new int[26];\n while(sc.hasNext()) {\n char [] cs = sc.nextLine().toCharArray();\n for(int i = 0; i < cs.length; i++) {\n if(cs[i] >= 'A' && cs[i] <= 'Z') {\n cnt[cs[i]-'A']++;\n }\n if(cs[i] >= 'a' && cs[i] <= 'z') {\n cnt[cs[i]-'a']++;\n }\n }\n }\n for(int i = 0; i < 26; i++) {\n System.out.println(\"\" + ((char)(i+'a')) + \" : \" + cnt[i]);\n }\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 char [] cs = sc.nextLine().toCharArray();\n for(int i = 0; i < cs.length; i++) {\n if(cs[i] >= 'A' && cs[i] <= 'Z') {\n cnt[cs[i]-'A']++;\n }\n if(cs[i] >= 'a' && cs[i] <= 'z') {\n cnt[cs[i]-'a']++;\n }\n }\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n char [] cs = sc.nextLine().toCharArray();\n for(int i = 0; i < cs.length; i++) {\n if(cs[i] >= 'A' && cs[i] <= 'Z') {\n cnt[cs[i]-'A']++;\n }\n if(cs[i] >= 'a' && cs[i] <= 'z') {\n cnt[cs[i]-'a']++;\n }\n }\n }",
"char [] cs = sc.nextLine().toCharArray();",
"cs",
"sc.nextLine().toCharArray()",
"sc.nextLine().toCharArray",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for(int i = 0; i < cs.length; i++) {\n if(cs[i] >= 'A' && cs[i] <= 'Z') {\n cnt[cs[i]-'A']++;\n }\n if(cs[i] >= 'a' && cs[i] <= 'z') {\n cnt[cs[i]-'a']++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < cs.length",
"i",
"cs.length",
"cs",
"cs.length",
"i++",
"i++",
"i",
"{\n if(cs[i] >= 'A' && cs[i] <= 'Z') {\n cnt[cs[i]-'A']++;\n }\n if(cs[i] >= 'a' && cs[i] <= 'z') {\n cnt[cs[i]-'a']++;\n }\n }",
"{\n if(cs[i] >= 'A' && cs[i] <= 'Z') {\n cnt[cs[i]-'A']++;\n }\n if(cs[i] >= 'a' && cs[i] <= 'z') {\n cnt[cs[i]-'a']++;\n }\n }",
"if(cs[i] >= 'A' && cs[i] <= 'Z') {\n cnt[cs[i]-'A']++;\n }",
"cs[i] >= 'A' && cs[i] <= 'Z'",
"cs[i] >= 'A'",
"cs[i]",
"cs",
"i",
"'A'",
"cs[i] <= 'Z'",
"cs[i]",
"cs",
"i",
"'Z'",
"{\n cnt[cs[i]-'A']++;\n }",
"cnt[cs[i]-'A']++",
"cnt[cs[i]-'A']",
"cnt",
"cs[i]-'A'",
"cs[i]",
"cs",
"i",
"'A'",
"if(cs[i] >= 'a' && cs[i] <= 'z') {\n cnt[cs[i]-'a']++;\n }",
"cs[i] >= 'a' && cs[i] <= 'z'",
"cs[i] >= 'a'",
"cs[i]",
"cs",
"i",
"'a'",
"cs[i] <= 'z'",
"cs[i]",
"cs",
"i",
"'z'",
"{\n cnt[cs[i]-'a']++;\n }",
"cnt[cs[i]-'a']++",
"cnt[cs[i]-'a']",
"cnt",
"cs[i]-'a'",
"cs[i]",
"cs",
"i",
"'a'",
"for(int i = 0; i < 26; i++) {\n System.out.println(\"\" + ((char)(i+'a')) + \" : \" + cnt[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n System.out.println(\"\" + ((char)(i+'a')) + \" : \" + cnt[i]);\n }",
"{\n System.out.println(\"\" + ((char)(i+'a')) + \" : \" + cnt[i]);\n }",
"System.out.println(\"\" + ((char)(i+'a')) + \" : \" + cnt[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\" + ((char)(i+'a')) + \" : \" + cnt[i]",
"\" : \"",
"\"\" + ((char)(i+'a')) + \" : \" + cnt[i]",
"\"\"",
"((char)(i+'a'))",
"i",
"'a'",
"\" : \"",
"cnt[i]",
"cnt",
"i",
"String[]args",
"args"
]
| import java.util.*;
import java.text.*;
class Main {
public static void main(String[]args)throws Exception {
Scanner sc = new Scanner(System.in);
int [] cnt = new int[26];
while(sc.hasNext()) {
char [] cs = sc.nextLine().toCharArray();
for(int i = 0; i < cs.length; i++) {
if(cs[i] >= 'A' && cs[i] <= 'Z') {
cnt[cs[i]-'A']++;
}
if(cs[i] >= 'a' && cs[i] <= 'z') {
cnt[cs[i]-'a']++;
}
}
}
for(int i = 0; i < 26; i++) {
System.out.println("" + ((char)(i+'a')) + " : " + cnt[i]);
}
}
} |
[
7,
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,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
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
],
[
115,
5
],
[
115,
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
],
[
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
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
41,
51
],
[
51,
52
],
[
51,
53
],
[
41,
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
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
68,
78
],
[
78,
79
],
[
8,
80
],
[
80,
81
],
[
80,
82
],
[
8,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
83,
93
],
[
93,
94
],
[
94,
95
],
[
83,
96
],
[
97,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
104,
104
],
[
104,
105
],
[
104,
106
],
[
104,
107
],
[
107,
108
],
[
107,
109
],
[
97,
110
],
[
110,
111
],
[
6,
112
],
[
112,
113
],
[
0,
114
],
[
114,
115
],
[
114,
116
]
]
| [
"import java.io.*;\n \npublic class Main {\n \n public static void main(String[] args) throws IOException{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n \n int[] counter=new int[26];\n String text;\n \n while((text=br.readLine())!=null){\n for(int i=0;i<text.length();i++){\n char character=Character.toLowerCase(text.charAt(i));\n char alpha='a';\n for(int j=0;j<counter.length;j++){\n if(character==alpha){\n counter[j]++;\n }\n alpha++;\n }\n }\n }\n \n char alpha='a';\n for(int i=0;i<counter.length;i++){\n System.out.println(alpha+\" : \"+counter[i]);\n alpha++;\n }\n \n }\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n \n public static void main(String[] args) throws IOException{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n \n int[] counter=new int[26];\n String text;\n \n while((text=br.readLine())!=null){\n for(int i=0;i<text.length();i++){\n char character=Character.toLowerCase(text.charAt(i));\n char alpha='a';\n for(int j=0;j<counter.length;j++){\n if(character==alpha){\n counter[j]++;\n }\n alpha++;\n }\n }\n }\n \n char alpha='a';\n for(int i=0;i<counter.length;i++){\n System.out.println(alpha+\" : \"+counter[i]);\n alpha++;\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[] counter=new int[26];\n String text;\n \n while((text=br.readLine())!=null){\n for(int i=0;i<text.length();i++){\n char character=Character.toLowerCase(text.charAt(i));\n char alpha='a';\n for(int j=0;j<counter.length;j++){\n if(character==alpha){\n counter[j]++;\n }\n alpha++;\n }\n }\n }\n \n char alpha='a';\n for(int i=0;i<counter.length;i++){\n System.out.println(alpha+\" : \"+counter[i]);\n alpha++;\n }\n \n }",
"main",
"{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n \n int[] counter=new int[26];\n String text;\n \n while((text=br.readLine())!=null){\n for(int i=0;i<text.length();i++){\n char character=Character.toLowerCase(text.charAt(i));\n char alpha='a';\n for(int j=0;j<counter.length;j++){\n if(character==alpha){\n counter[j]++;\n }\n alpha++;\n }\n }\n }\n \n char alpha='a';\n for(int i=0;i<counter.length;i++){\n System.out.println(alpha+\" : \"+counter[i]);\n alpha++;\n }\n \n }",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int[] counter=new int[26];",
"counter",
"new int[26]",
"26",
"String text;",
"text",
"while((text=br.readLine())!=null){\n for(int i=0;i<text.length();i++){\n char character=Character.toLowerCase(text.charAt(i));\n char alpha='a';\n for(int j=0;j<counter.length;j++){\n if(character==alpha){\n counter[j]++;\n }\n alpha++;\n }\n }\n }",
"(text=br.readLine())!=null",
"(text=br.readLine())",
"text",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n for(int i=0;i<text.length();i++){\n char character=Character.toLowerCase(text.charAt(i));\n char alpha='a';\n for(int j=0;j<counter.length;j++){\n if(character==alpha){\n counter[j]++;\n }\n alpha++;\n }\n }\n }",
"for(int i=0;i<text.length();i++){\n char character=Character.toLowerCase(text.charAt(i));\n char alpha='a';\n for(int j=0;j<counter.length;j++){\n if(character==alpha){\n counter[j]++;\n }\n alpha++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<text.length()",
"i",
"text.length()",
"text.length",
"text",
"i++",
"i++",
"i",
"{\n char character=Character.toLowerCase(text.charAt(i));\n char alpha='a';\n for(int j=0;j<counter.length;j++){\n if(character==alpha){\n counter[j]++;\n }\n alpha++;\n }\n }",
"{\n char character=Character.toLowerCase(text.charAt(i));\n char alpha='a';\n for(int j=0;j<counter.length;j++){\n if(character==alpha){\n counter[j]++;\n }\n alpha++;\n }\n }",
"char character=Character.toLowerCase(text.charAt(i));",
"character",
"Character.toLowerCase(text.charAt(i))",
"Character.toLowerCase",
"Character",
"text.charAt(i)",
"text.charAt",
"text",
"i",
"char alpha='a';",
"alpha",
"'a'",
"for(int j=0;j<counter.length;j++){\n if(character==alpha){\n counter[j]++;\n }\n alpha++;\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<counter.length",
"j",
"counter.length",
"counter",
"counter.length",
"j++",
"j++",
"j",
"{\n if(character==alpha){\n counter[j]++;\n }\n alpha++;\n }",
"{\n if(character==alpha){\n counter[j]++;\n }\n alpha++;\n }",
"if(character==alpha){\n counter[j]++;\n }",
"character==alpha",
"character",
"alpha",
"{\n counter[j]++;\n }",
"counter[j]++",
"counter[j]",
"counter",
"j",
"alpha++",
"alpha",
"char alpha='a';",
"alpha",
"'a'",
"for(int i=0;i<counter.length;i++){\n System.out.println(alpha+\" : \"+counter[i]);\n alpha++;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<counter.length",
"i",
"counter.length",
"counter",
"counter.length",
"i++",
"i++",
"i",
"{\n System.out.println(alpha+\" : \"+counter[i]);\n alpha++;\n }",
"{\n System.out.println(alpha+\" : \"+counter[i]);\n alpha++;\n }",
"System.out.println(alpha+\" : \"+counter[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"alpha+\" : \"+counter[i]",
"alpha+\" : \"+counter[i]",
"alpha",
"\" : \"",
"counter[i]",
"counter",
"i",
"alpha++",
"alpha",
"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 \n int[] counter=new int[26];\n String text;\n \n while((text=br.readLine())!=null){\n for(int i=0;i<text.length();i++){\n char character=Character.toLowerCase(text.charAt(i));\n char alpha='a';\n for(int j=0;j<counter.length;j++){\n if(character==alpha){\n counter[j]++;\n }\n alpha++;\n }\n }\n }\n \n char alpha='a';\n for(int i=0;i<counter.length;i++){\n System.out.println(alpha+\" : \"+counter[i]);\n alpha++;\n }\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 \n int[] counter=new int[26];\n String text;\n \n while((text=br.readLine())!=null){\n for(int i=0;i<text.length();i++){\n char character=Character.toLowerCase(text.charAt(i));\n char alpha='a';\n for(int j=0;j<counter.length;j++){\n if(character==alpha){\n counter[j]++;\n }\n alpha++;\n }\n }\n }\n \n char alpha='a';\n for(int i=0;i<counter.length;i++){\n System.out.println(alpha+\" : \"+counter[i]);\n alpha++;\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));
int[] counter=new int[26];
String text;
while((text=br.readLine())!=null){
for(int i=0;i<text.length();i++){
char character=Character.toLowerCase(text.charAt(i));
char alpha='a';
for(int j=0;j<counter.length;j++){
if(character==alpha){
counter[j]++;
}
alpha++;
}
}
}
char alpha='a';
for(int i=0;i<counter.length;i++){
System.out.println(alpha+" : "+counter[i]);
alpha++;
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
41,
13,
20,
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,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
14,
2,
13,
17,
40,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
2,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
553,
5
],
[
553,
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
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
8,
34
],
[
34,
35
],
[
8,
36
],
[
36,
37
],
[
8,
38
],
[
38,
39
],
[
8,
40
],
[
40,
41
],
[
8,
42
],
[
42,
43
],
[
8,
44
],
[
44,
45
],
[
8,
46
],
[
46,
47
],
[
8,
48
],
[
48,
49
],
[
8,
50
],
[
50,
51
],
[
8,
52
],
[
52,
53
],
[
8,
54
],
[
54,
55
],
[
8,
56
],
[
56,
57
],
[
8,
58
],
[
58,
59
],
[
8,
60
],
[
60,
61
],
[
8,
62
],
[
62,
63
],
[
8,
64
],
[
64,
65
],
[
64,
66
],
[
8,
67
],
[
67,
68
],
[
67,
69
],
[
8,
70
],
[
70,
71
],
[
70,
72
],
[
8,
73
],
[
73,
74
],
[
73,
75
],
[
8,
76
],
[
76,
77
],
[
76,
78
],
[
8,
79
],
[
79,
80
],
[
79,
81
],
[
8,
82
],
[
82,
83
],
[
82,
84
],
[
8,
85
],
[
85,
86
],
[
85,
87
],
[
8,
88
],
[
88,
89
],
[
88,
90
],
[
8,
91
],
[
91,
92
],
[
91,
93
],
[
8,
94
],
[
94,
95
],
[
94,
96
],
[
8,
97
],
[
97,
98
],
[
97,
99
],
[
8,
100
],
[
100,
101
],
[
100,
102
],
[
8,
103
],
[
103,
104
],
[
103,
105
],
[
8,
106
],
[
106,
107
],
[
106,
108
],
[
8,
109
],
[
109,
110
],
[
109,
111
],
[
8,
112
],
[
112,
113
],
[
112,
114
],
[
8,
115
],
[
115,
116
],
[
115,
117
],
[
8,
118
],
[
118,
119
],
[
118,
120
],
[
8,
121
],
[
121,
122
],
[
121,
123
],
[
8,
124
],
[
124,
125
],
[
124,
126
],
[
8,
127
],
[
127,
128
],
[
127,
129
],
[
8,
130
],
[
130,
131
],
[
130,
132
],
[
8,
133
],
[
133,
134
],
[
133,
135
],
[
8,
136
],
[
136,
137
],
[
136,
138
],
[
8,
139
],
[
139,
140
],
[
139,
141
],
[
8,
142
],
[
142,
143
],
[
142,
144
],
[
8,
145
],
[
145,
146
],
[
145,
147
],
[
8,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
153,
154
],
[
149,
155
],
[
148,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
156,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
167,
168
],
[
167,
169
],
[
162,
170
],
[
170,
171
],
[
171,
172
],
[
162,
173
],
[
174,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
178,
179
],
[
174,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
183,
184
],
[
182,
185
],
[
174,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
186,
190
],
[
190,
191
],
[
186,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
192,
196
],
[
196,
197
],
[
192,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
202
],
[
202,
203
],
[
198,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
204,
208
],
[
208,
209
],
[
204,
210
],
[
210,
211
],
[
211,
212
],
[
211,
213
],
[
210,
214
],
[
214,
215
],
[
210,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
216,
220
],
[
220,
221
],
[
216,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
222,
226
],
[
226,
227
],
[
222,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
228,
232
],
[
232,
233
],
[
228,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
234,
238
],
[
238,
239
],
[
234,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
240,
244
],
[
244,
245
],
[
240,
246
],
[
246,
247
],
[
247,
248
],
[
247,
249
],
[
246,
250
],
[
250,
251
],
[
246,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
252,
256
],
[
256,
257
],
[
252,
258
],
[
258,
259
],
[
259,
260
],
[
259,
261
],
[
258,
262
],
[
262,
263
],
[
258,
264
],
[
264,
265
],
[
265,
266
],
[
265,
267
],
[
264,
268
],
[
268,
269
],
[
264,
270
],
[
270,
271
],
[
271,
272
],
[
271,
273
],
[
270,
274
],
[
274,
275
],
[
270,
276
],
[
276,
277
],
[
277,
278
],
[
277,
279
],
[
276,
280
],
[
280,
281
],
[
276,
282
],
[
282,
283
],
[
283,
284
],
[
283,
285
],
[
282,
286
],
[
286,
287
],
[
282,
288
],
[
288,
289
],
[
289,
290
],
[
289,
291
],
[
288,
292
],
[
292,
293
],
[
288,
294
],
[
294,
295
],
[
295,
296
],
[
295,
297
],
[
294,
298
],
[
298,
299
],
[
294,
300
],
[
300,
301
],
[
301,
302
],
[
301,
303
],
[
300,
304
],
[
304,
305
],
[
300,
306
],
[
306,
307
],
[
307,
308
],
[
307,
309
],
[
306,
310
],
[
310,
311
],
[
306,
312
],
[
312,
313
],
[
313,
314
],
[
313,
315
],
[
312,
316
],
[
316,
317
],
[
312,
318
],
[
318,
319
],
[
319,
320
],
[
319,
321
],
[
318,
322
],
[
322,
323
],
[
318,
324
],
[
324,
325
],
[
325,
326
],
[
325,
327
],
[
324,
328
],
[
328,
329
],
[
324,
330
],
[
330,
331
],
[
331,
332
],
[
331,
333
],
[
330,
334
],
[
334,
335
],
[
330,
336
],
[
336,
337
],
[
337,
338
],
[
337,
339
],
[
336,
340
],
[
340,
341
],
[
8,
342
],
[
342,
343
],
[
343,
344
],
[
344,
345
],
[
344,
346
],
[
342,
347
],
[
347,
348
],
[
347,
349
],
[
8,
350
],
[
350,
351
],
[
351,
352
],
[
352,
353
],
[
352,
354
],
[
350,
355
],
[
355,
356
],
[
355,
357
],
[
8,
358
],
[
358,
359
],
[
359,
360
],
[
360,
361
],
[
360,
362
],
[
358,
363
],
[
363,
364
],
[
363,
365
],
[
8,
366
],
[
366,
367
],
[
367,
368
],
[
368,
369
],
[
368,
370
],
[
366,
371
],
[
371,
372
],
[
371,
373
],
[
8,
374
],
[
374,
375
],
[
375,
376
],
[
376,
377
],
[
376,
378
],
[
374,
379
],
[
379,
380
],
[
379,
381
],
[
8,
382
],
[
382,
383
],
[
383,
384
],
[
384,
385
],
[
384,
386
],
[
382,
387
],
[
387,
388
],
[
387,
389
],
[
8,
390
],
[
390,
391
],
[
391,
392
],
[
392,
393
],
[
392,
394
],
[
390,
395
],
[
395,
396
],
[
395,
397
],
[
8,
398
],
[
398,
399
],
[
399,
400
],
[
400,
401
],
[
400,
402
],
[
398,
403
],
[
403,
404
],
[
403,
405
],
[
8,
406
],
[
406,
407
],
[
407,
408
],
[
408,
409
],
[
408,
410
],
[
406,
411
],
[
411,
412
],
[
411,
413
],
[
8,
414
],
[
414,
415
],
[
415,
416
],
[
416,
417
],
[
416,
418
],
[
414,
419
],
[
419,
420
],
[
419,
421
],
[
8,
422
],
[
422,
423
],
[
423,
424
],
[
424,
425
],
[
424,
426
],
[
422,
427
],
[
427,
428
],
[
427,
429
],
[
8,
430
],
[
430,
431
],
[
431,
432
],
[
432,
433
],
[
432,
434
],
[
430,
435
],
[
435,
436
],
[
435,
437
],
[
8,
438
],
[
438,
439
],
[
439,
440
],
[
440,
441
],
[
440,
442
],
[
438,
443
],
[
443,
444
],
[
443,
445
],
[
8,
446
],
[
446,
447
],
[
447,
448
],
[
448,
449
],
[
448,
450
],
[
446,
451
],
[
451,
452
],
[
451,
453
],
[
8,
454
],
[
454,
455
],
[
455,
456
],
[
456,
457
],
[
456,
458
],
[
454,
459
],
[
459,
460
],
[
459,
461
],
[
8,
462
],
[
462,
463
],
[
463,
464
],
[
464,
465
],
[
464,
466
],
[
462,
467
],
[
467,
468
],
[
467,
469
],
[
8,
470
],
[
470,
471
],
[
471,
472
],
[
472,
473
],
[
472,
474
],
[
470,
475
],
[
475,
476
],
[
475,
477
],
[
8,
478
],
[
478,
479
],
[
479,
480
],
[
480,
481
],
[
480,
482
],
[
478,
483
],
[
483,
484
],
[
483,
485
],
[
8,
486
],
[
486,
487
],
[
487,
488
],
[
488,
489
],
[
488,
490
],
[
486,
491
],
[
491,
492
],
[
491,
493
],
[
8,
494
],
[
494,
495
],
[
495,
496
],
[
496,
497
],
[
496,
498
],
[
494,
499
],
[
499,
500
],
[
499,
501
],
[
8,
502
],
[
502,
503
],
[
503,
504
],
[
504,
505
],
[
504,
506
],
[
502,
507
],
[
507,
508
],
[
507,
509
],
[
8,
510
],
[
510,
511
],
[
511,
512
],
[
512,
513
],
[
512,
514
],
[
510,
515
],
[
515,
516
],
[
515,
517
],
[
8,
518
],
[
518,
519
],
[
519,
520
],
[
520,
521
],
[
520,
522
],
[
518,
523
],
[
523,
524
],
[
523,
525
],
[
8,
526
],
[
526,
527
],
[
527,
528
],
[
528,
529
],
[
528,
530
],
[
526,
531
],
[
531,
532
],
[
531,
533
],
[
8,
534
],
[
534,
535
],
[
535,
536
],
[
536,
537
],
[
536,
538
],
[
534,
539
],
[
539,
540
],
[
539,
541
],
[
8,
542
],
[
542,
543
],
[
543,
544
],
[
544,
545
],
[
544,
546
],
[
542,
547
],
[
547,
548
],
[
547,
549
],
[
6,
550
],
[
550,
551
],
[
0,
552
],
[
552,
553
],
[
552,
554
]
]
| [
"import java.io.*;\n\npublic class Main{\n public static void main(String[] args) throws IOException\n {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int 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 a = 0;b = 0;c=0;d=0;e=0;e=0;f=0;g=0;h=0;i=0;j=0;k=0;l=0;m=0;n=0;o=0;p=0;\n q=0;r=0;s=0;t=0;u=0;v=0;w=0;x=0;y=0;z=0;\n\n String line = new String();\n while((line = reader.readLine())!=null){\n int len = line.length();\n for(int num =0;num < len;num++){\n String ch = line.toLowerCase();\n char ch2 = ch.charAt(num);\n\n if(ch2 =='a')a++;\n else if(ch2 =='b')b++;\n else if(ch2 =='c')c++;\n else if(ch2 =='d')d++;\n else if(ch2 =='e')e++;\n else if(ch2 =='f')f++;\n else if(ch2 =='g')g++;\n else if(ch2=='h')h++;\n else if(ch2 =='i')i++;\n else if(ch2 =='j')j++;\n else if(ch2 =='k')k++;\n else if(ch2=='l')l++;\n else if(ch2=='m')m++;\n else if(ch2=='n')n++;\n else if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;\n \n\n\n }\n }\n System.out.println(\"a : \"+a);\n System.out.println(\"b : \"+b);\n System.out.println(\"c : \"+c);\n System.out.println(\"d : \"+d);\n System.out.println(\"e : \"+e);\n System.out.println(\"f : \"+f);\n System.out.println(\"g : \"+g);\n System.out.println(\"h : \"+h);\n System.out.println(\"i : \"+i);\n System.out.println(\"j : \"+j);\n System.out.println(\"k : \"+k);\n System.out.println(\"l : \"+l);\n System.out.println(\"m : \"+m);\n System.out.println(\"n : \"+n);\n System.out.println(\"o : \"+o);\n System.out.println(\"p : \"+p);\n System.out.println(\"q : \"+q);\n System.out.println(\"r : \"+r);\n System.out.println(\"s : \"+s);\n System.out.println(\"t : \"+t);\n System.out.println(\"u : \"+u);\n System.out.println(\"v : \"+v);\n System.out.println(\"w : \"+w);\n System.out.println(\"x : \"+x);\n System.out.println(\"y : \"+y);\n System.out.println(\"z : \"+z);\n\n }\n }\n\n\n",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n public static void main(String[] args) throws IOException\n {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int 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 a = 0;b = 0;c=0;d=0;e=0;e=0;f=0;g=0;h=0;i=0;j=0;k=0;l=0;m=0;n=0;o=0;p=0;\n q=0;r=0;s=0;t=0;u=0;v=0;w=0;x=0;y=0;z=0;\n\n String line = new String();\n while((line = reader.readLine())!=null){\n int len = line.length();\n for(int num =0;num < len;num++){\n String ch = line.toLowerCase();\n char ch2 = ch.charAt(num);\n\n if(ch2 =='a')a++;\n else if(ch2 =='b')b++;\n else if(ch2 =='c')c++;\n else if(ch2 =='d')d++;\n else if(ch2 =='e')e++;\n else if(ch2 =='f')f++;\n else if(ch2 =='g')g++;\n else if(ch2=='h')h++;\n else if(ch2 =='i')i++;\n else if(ch2 =='j')j++;\n else if(ch2 =='k')k++;\n else if(ch2=='l')l++;\n else if(ch2=='m')m++;\n else if(ch2=='n')n++;\n else if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;\n \n\n\n }\n }\n System.out.println(\"a : \"+a);\n System.out.println(\"b : \"+b);\n System.out.println(\"c : \"+c);\n System.out.println(\"d : \"+d);\n System.out.println(\"e : \"+e);\n System.out.println(\"f : \"+f);\n System.out.println(\"g : \"+g);\n System.out.println(\"h : \"+h);\n System.out.println(\"i : \"+i);\n System.out.println(\"j : \"+j);\n System.out.println(\"k : \"+k);\n System.out.println(\"l : \"+l);\n System.out.println(\"m : \"+m);\n System.out.println(\"n : \"+n);\n System.out.println(\"o : \"+o);\n System.out.println(\"p : \"+p);\n System.out.println(\"q : \"+q);\n System.out.println(\"r : \"+r);\n System.out.println(\"s : \"+s);\n System.out.println(\"t : \"+t);\n System.out.println(\"u : \"+u);\n System.out.println(\"v : \"+v);\n System.out.println(\"w : \"+w);\n System.out.println(\"x : \"+x);\n System.out.println(\"y : \"+y);\n System.out.println(\"z : \"+z);\n\n }\n }",
"Main",
"public static void main(String[] args) throws IOException\n {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int 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 a = 0;b = 0;c=0;d=0;e=0;e=0;f=0;g=0;h=0;i=0;j=0;k=0;l=0;m=0;n=0;o=0;p=0;\n q=0;r=0;s=0;t=0;u=0;v=0;w=0;x=0;y=0;z=0;\n\n String line = new String();\n while((line = reader.readLine())!=null){\n int len = line.length();\n for(int num =0;num < len;num++){\n String ch = line.toLowerCase();\n char ch2 = ch.charAt(num);\n\n if(ch2 =='a')a++;\n else if(ch2 =='b')b++;\n else if(ch2 =='c')c++;\n else if(ch2 =='d')d++;\n else if(ch2 =='e')e++;\n else if(ch2 =='f')f++;\n else if(ch2 =='g')g++;\n else if(ch2=='h')h++;\n else if(ch2 =='i')i++;\n else if(ch2 =='j')j++;\n else if(ch2 =='k')k++;\n else if(ch2=='l')l++;\n else if(ch2=='m')m++;\n else if(ch2=='n')n++;\n else if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;\n \n\n\n }\n }\n System.out.println(\"a : \"+a);\n System.out.println(\"b : \"+b);\n System.out.println(\"c : \"+c);\n System.out.println(\"d : \"+d);\n System.out.println(\"e : \"+e);\n System.out.println(\"f : \"+f);\n System.out.println(\"g : \"+g);\n System.out.println(\"h : \"+h);\n System.out.println(\"i : \"+i);\n System.out.println(\"j : \"+j);\n System.out.println(\"k : \"+k);\n System.out.println(\"l : \"+l);\n System.out.println(\"m : \"+m);\n System.out.println(\"n : \"+n);\n System.out.println(\"o : \"+o);\n System.out.println(\"p : \"+p);\n System.out.println(\"q : \"+q);\n System.out.println(\"r : \"+r);\n System.out.println(\"s : \"+s);\n System.out.println(\"t : \"+t);\n System.out.println(\"u : \"+u);\n System.out.println(\"v : \"+v);\n System.out.println(\"w : \"+w);\n System.out.println(\"x : \"+x);\n System.out.println(\"y : \"+y);\n System.out.println(\"z : \"+z);\n\n }",
"main",
"{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int 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 a = 0;b = 0;c=0;d=0;e=0;e=0;f=0;g=0;h=0;i=0;j=0;k=0;l=0;m=0;n=0;o=0;p=0;\n q=0;r=0;s=0;t=0;u=0;v=0;w=0;x=0;y=0;z=0;\n\n String line = new String();\n while((line = reader.readLine())!=null){\n int len = line.length();\n for(int num =0;num < len;num++){\n String ch = line.toLowerCase();\n char ch2 = ch.charAt(num);\n\n if(ch2 =='a')a++;\n else if(ch2 =='b')b++;\n else if(ch2 =='c')c++;\n else if(ch2 =='d')d++;\n else if(ch2 =='e')e++;\n else if(ch2 =='f')f++;\n else if(ch2 =='g')g++;\n else if(ch2=='h')h++;\n else if(ch2 =='i')i++;\n else if(ch2 =='j')j++;\n else if(ch2 =='k')k++;\n else if(ch2=='l')l++;\n else if(ch2=='m')m++;\n else if(ch2=='n')n++;\n else if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;\n \n\n\n }\n }\n System.out.println(\"a : \"+a);\n System.out.println(\"b : \"+b);\n System.out.println(\"c : \"+c);\n System.out.println(\"d : \"+d);\n System.out.println(\"e : \"+e);\n System.out.println(\"f : \"+f);\n System.out.println(\"g : \"+g);\n System.out.println(\"h : \"+h);\n System.out.println(\"i : \"+i);\n System.out.println(\"j : \"+j);\n System.out.println(\"k : \"+k);\n System.out.println(\"l : \"+l);\n System.out.println(\"m : \"+m);\n System.out.println(\"n : \"+n);\n System.out.println(\"o : \"+o);\n System.out.println(\"p : \"+p);\n System.out.println(\"q : \"+q);\n System.out.println(\"r : \"+r);\n System.out.println(\"s : \"+s);\n System.out.println(\"t : \"+t);\n System.out.println(\"u : \"+u);\n System.out.println(\"v : \"+v);\n System.out.println(\"w : \"+w);\n System.out.println(\"x : \"+x);\n System.out.println(\"y : \"+y);\n System.out.println(\"z : \"+z);\n\n }",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"int a",
"a",
"b",
"b",
"c",
"c",
"d",
"d",
"e",
"e",
"f",
"f",
"g",
"g",
"h",
"h",
"i",
"i",
"j",
"j",
"k",
"k",
"l",
"l",
"m",
"m",
"n",
"n",
"o",
"o",
"p",
"p",
"q",
"q",
"r",
"r",
"s",
"s",
"t",
"t",
"u",
"u",
"v",
"v",
"w",
"w",
"x",
"x",
"y",
"y",
"z;",
"z",
"a = 0",
"a",
"0",
"b = 0",
"b",
"0",
"c=0",
"c",
"0",
"d=0",
"d",
"0",
"e=0",
"e",
"0",
"e=0",
"e",
"0",
"f=0",
"f",
"0",
"g=0",
"g",
"0",
"h=0",
"h",
"0",
"i=0",
"i",
"0",
"j=0",
"j",
"0",
"k=0",
"k",
"0",
"l=0",
"l",
"0",
"m=0",
"m",
"0",
"n=0",
"n",
"0",
"o=0",
"o",
"0",
"p=0",
"p",
"0",
"q=0",
"q",
"0",
"r=0",
"r",
"0",
"s=0",
"s",
"0",
"t=0",
"t",
"0",
"u=0",
"u",
"0",
"v=0",
"v",
"0",
"w=0",
"w",
"0",
"x=0",
"x",
"0",
"y=0",
"y",
"0",
"z=0",
"z",
"0",
"String line = new String();",
"line",
"new String()",
"while((line = reader.readLine())!=null){\n int len = line.length();\n for(int num =0;num < len;num++){\n String ch = line.toLowerCase();\n char ch2 = ch.charAt(num);\n\n if(ch2 =='a')a++;\n else if(ch2 =='b')b++;\n else if(ch2 =='c')c++;\n else if(ch2 =='d')d++;\n else if(ch2 =='e')e++;\n else if(ch2 =='f')f++;\n else if(ch2 =='g')g++;\n else if(ch2=='h')h++;\n else if(ch2 =='i')i++;\n else if(ch2 =='j')j++;\n else if(ch2 =='k')k++;\n else if(ch2=='l')l++;\n else if(ch2=='m')m++;\n else if(ch2=='n')n++;\n else if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;\n \n\n\n }\n }",
"(line = reader.readLine())!=null",
"(line = reader.readLine())",
"line",
"reader.readLine()",
"reader.readLine",
"reader",
"null",
"{\n int len = line.length();\n for(int num =0;num < len;num++){\n String ch = line.toLowerCase();\n char ch2 = ch.charAt(num);\n\n if(ch2 =='a')a++;\n else if(ch2 =='b')b++;\n else if(ch2 =='c')c++;\n else if(ch2 =='d')d++;\n else if(ch2 =='e')e++;\n else if(ch2 =='f')f++;\n else if(ch2 =='g')g++;\n else if(ch2=='h')h++;\n else if(ch2 =='i')i++;\n else if(ch2 =='j')j++;\n else if(ch2 =='k')k++;\n else if(ch2=='l')l++;\n else if(ch2=='m')m++;\n else if(ch2=='n')n++;\n else if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;\n \n\n\n }\n }",
"int len = line.length();",
"len",
"line.length()",
"line.length",
"line",
"for(int num =0;num < len;num++){\n String ch = line.toLowerCase();\n char ch2 = ch.charAt(num);\n\n if(ch2 =='a')a++;\n else if(ch2 =='b')b++;\n else if(ch2 =='c')c++;\n else if(ch2 =='d')d++;\n else if(ch2 =='e')e++;\n else if(ch2 =='f')f++;\n else if(ch2 =='g')g++;\n else if(ch2=='h')h++;\n else if(ch2 =='i')i++;\n else if(ch2 =='j')j++;\n else if(ch2 =='k')k++;\n else if(ch2=='l')l++;\n else if(ch2=='m')m++;\n else if(ch2=='n')n++;\n else if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;\n \n\n\n }",
"int num =0;",
"int num =0;",
"num",
"0",
"num < len",
"num",
"len",
"num++",
"num++",
"num",
"{\n String ch = line.toLowerCase();\n char ch2 = ch.charAt(num);\n\n if(ch2 =='a')a++;\n else if(ch2 =='b')b++;\n else if(ch2 =='c')c++;\n else if(ch2 =='d')d++;\n else if(ch2 =='e')e++;\n else if(ch2 =='f')f++;\n else if(ch2 =='g')g++;\n else if(ch2=='h')h++;\n else if(ch2 =='i')i++;\n else if(ch2 =='j')j++;\n else if(ch2 =='k')k++;\n else if(ch2=='l')l++;\n else if(ch2=='m')m++;\n else if(ch2=='n')n++;\n else if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;\n \n\n\n }",
"{\n String ch = line.toLowerCase();\n char ch2 = ch.charAt(num);\n\n if(ch2 =='a')a++;\n else if(ch2 =='b')b++;\n else if(ch2 =='c')c++;\n else if(ch2 =='d')d++;\n else if(ch2 =='e')e++;\n else if(ch2 =='f')f++;\n else if(ch2 =='g')g++;\n else if(ch2=='h')h++;\n else if(ch2 =='i')i++;\n else if(ch2 =='j')j++;\n else if(ch2 =='k')k++;\n else if(ch2=='l')l++;\n else if(ch2=='m')m++;\n else if(ch2=='n')n++;\n else if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;\n \n\n\n }",
"String ch = line.toLowerCase();",
"ch",
"line.toLowerCase()",
"line.toLowerCase",
"line",
"char ch2 = ch.charAt(num);",
"ch2",
"ch.charAt(num)",
"ch.charAt",
"ch",
"num",
"if(ch2 =='a')a++;\n else if(ch2 =='b')b++;\n else if(ch2 =='c')c++;\n else if(ch2 =='d')d++;\n else if(ch2 =='e')e++;\n else if(ch2 =='f')f++;\n else if(ch2 =='g')g++;\n else if(ch2=='h')h++;\n else if(ch2 =='i')i++;\n else if(ch2 =='j')j++;\n else if(ch2 =='k')k++;\n else if(ch2=='l')l++;\n else if(ch2=='m')m++;\n else if(ch2=='n')n++;\n else if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;",
"ch2 =='a'",
"ch2",
"'a'",
"a++",
"a",
"if(ch2 =='b')b++;\n else if(ch2 =='c')c++;\n else if(ch2 =='d')d++;\n else if(ch2 =='e')e++;\n else if(ch2 =='f')f++;\n else if(ch2 =='g')g++;\n else if(ch2=='h')h++;\n else if(ch2 =='i')i++;\n else if(ch2 =='j')j++;\n else if(ch2 =='k')k++;\n else if(ch2=='l')l++;\n else if(ch2=='m')m++;\n else if(ch2=='n')n++;\n else if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;",
"ch2 =='b'",
"ch2",
"'b'",
"b++",
"b",
"if(ch2 =='c')c++;\n else if(ch2 =='d')d++;\n else if(ch2 =='e')e++;\n else if(ch2 =='f')f++;\n else if(ch2 =='g')g++;\n else if(ch2=='h')h++;\n else if(ch2 =='i')i++;\n else if(ch2 =='j')j++;\n else if(ch2 =='k')k++;\n else if(ch2=='l')l++;\n else if(ch2=='m')m++;\n else if(ch2=='n')n++;\n else if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;",
"ch2 =='c'",
"ch2",
"'c'",
"c++",
"c",
"if(ch2 =='d')d++;\n else if(ch2 =='e')e++;\n else if(ch2 =='f')f++;\n else if(ch2 =='g')g++;\n else if(ch2=='h')h++;\n else if(ch2 =='i')i++;\n else if(ch2 =='j')j++;\n else if(ch2 =='k')k++;\n else if(ch2=='l')l++;\n else if(ch2=='m')m++;\n else if(ch2=='n')n++;\n else if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;",
"ch2 =='d'",
"ch2",
"'d'",
"d++",
"d",
"if(ch2 =='e')e++;\n else if(ch2 =='f')f++;\n else if(ch2 =='g')g++;\n else if(ch2=='h')h++;\n else if(ch2 =='i')i++;\n else if(ch2 =='j')j++;\n else if(ch2 =='k')k++;\n else if(ch2=='l')l++;\n else if(ch2=='m')m++;\n else if(ch2=='n')n++;\n else if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;",
"ch2 =='e'",
"ch2",
"'e'",
"e++",
"e",
"if(ch2 =='f')f++;\n else if(ch2 =='g')g++;\n else if(ch2=='h')h++;\n else if(ch2 =='i')i++;\n else if(ch2 =='j')j++;\n else if(ch2 =='k')k++;\n else if(ch2=='l')l++;\n else if(ch2=='m')m++;\n else if(ch2=='n')n++;\n else if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;",
"ch2 =='f'",
"ch2",
"'f'",
"f++",
"f",
"if(ch2 =='g')g++;\n else if(ch2=='h')h++;\n else if(ch2 =='i')i++;\n else if(ch2 =='j')j++;\n else if(ch2 =='k')k++;\n else if(ch2=='l')l++;\n else if(ch2=='m')m++;\n else if(ch2=='n')n++;\n else if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;",
"ch2 =='g'",
"ch2",
"'g'",
"g++",
"g",
"if(ch2=='h')h++;\n else if(ch2 =='i')i++;\n else if(ch2 =='j')j++;\n else if(ch2 =='k')k++;\n else if(ch2=='l')l++;\n else if(ch2=='m')m++;\n else if(ch2=='n')n++;\n else if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;",
"ch2=='h'",
"ch2",
"'h'",
"h++",
"h",
"if(ch2 =='i')i++;\n else if(ch2 =='j')j++;\n else if(ch2 =='k')k++;\n else if(ch2=='l')l++;\n else if(ch2=='m')m++;\n else if(ch2=='n')n++;\n else if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;",
"ch2 =='i'",
"ch2",
"'i'",
"i++",
"i",
"if(ch2 =='j')j++;\n else if(ch2 =='k')k++;\n else if(ch2=='l')l++;\n else if(ch2=='m')m++;\n else if(ch2=='n')n++;\n else if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;",
"ch2 =='j'",
"ch2",
"'j'",
"j++",
"j",
"if(ch2 =='k')k++;\n else if(ch2=='l')l++;\n else if(ch2=='m')m++;\n else if(ch2=='n')n++;\n else if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;",
"ch2 =='k'",
"ch2",
"'k'",
"k++",
"k",
"if(ch2=='l')l++;\n else if(ch2=='m')m++;\n else if(ch2=='n')n++;\n else if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;",
"ch2=='l'",
"ch2",
"'l'",
"l++",
"l",
"if(ch2=='m')m++;\n else if(ch2=='n')n++;\n else if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;",
"ch2=='m'",
"ch2",
"'m'",
"m++",
"m",
"if(ch2=='n')n++;\n else if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;",
"ch2=='n'",
"ch2",
"'n'",
"n++",
"n",
"if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;",
"ch2=='o'",
"ch2",
"'o'",
"o++",
"o",
"if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;",
"ch2=='p'",
"ch2",
"'p'",
"p++",
"p",
"if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;",
"ch2=='q'",
"ch2",
"'q'",
"q++",
"q",
"if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;",
"ch2=='r'",
"ch2",
"'r'",
"r++",
"r",
"if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;",
"ch2=='s'",
"ch2",
"'s'",
"s++",
"s",
"if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;",
"ch2=='t'",
"ch2",
"'t'",
"t++",
"t",
"if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;",
"ch2=='u'",
"ch2",
"'u'",
"u++",
"u",
"if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;",
"ch2=='v'",
"ch2",
"'v'",
"v++",
"v",
"if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;",
"ch2=='w'",
"ch2",
"'w'",
"w++",
"w",
"if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;",
"ch2=='x'",
"ch2",
"'x'",
"x++",
"x",
"if(ch2=='y') y++;\n else if(ch2=='z') z++;",
"ch2=='y'",
"ch2",
"'y'",
"y++",
"y",
"if(ch2=='z') z++;",
"ch2=='z'",
"ch2",
"'z'",
"z++",
"z",
"System.out.println(\"a : \"+a)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"a : \"+a",
"\"a : \"",
"a",
"System.out.println(\"b : \"+b)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"b : \"+b",
"\"b : \"",
"b",
"System.out.println(\"c : \"+c)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"c : \"+c",
"\"c : \"",
"c",
"System.out.println(\"d : \"+d)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"d : \"+d",
"\"d : \"",
"d",
"System.out.println(\"e : \"+e)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"e : \"+e",
"\"e : \"",
"e",
"System.out.println(\"f : \"+f)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"f : \"+f",
"\"f : \"",
"f",
"System.out.println(\"g : \"+g)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"g : \"+g",
"\"g : \"",
"g",
"System.out.println(\"h : \"+h)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"h : \"+h",
"\"h : \"",
"h",
"System.out.println(\"i : \"+i)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"i : \"+i",
"\"i : \"",
"i",
"System.out.println(\"j : \"+j)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"j : \"+j",
"\"j : \"",
"j",
"System.out.println(\"k : \"+k)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"k : \"+k",
"\"k : \"",
"k",
"System.out.println(\"l : \"+l)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"l : \"+l",
"\"l : \"",
"l",
"System.out.println(\"m : \"+m)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"m : \"+m",
"\"m : \"",
"m",
"System.out.println(\"n : \"+n)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"n : \"+n",
"\"n : \"",
"n",
"System.out.println(\"o : \"+o)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"o : \"+o",
"\"o : \"",
"o",
"System.out.println(\"p : \"+p)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"p : \"+p",
"\"p : \"",
"p",
"System.out.println(\"q : \"+q)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"q : \"+q",
"\"q : \"",
"q",
"System.out.println(\"r : \"+r)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"r : \"+r",
"\"r : \"",
"r",
"System.out.println(\"s : \"+s)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"s : \"+s",
"\"s : \"",
"s",
"System.out.println(\"t : \"+t)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"t : \"+t",
"\"t : \"",
"t",
"System.out.println(\"u : \"+u)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"u : \"+u",
"\"u : \"",
"u",
"System.out.println(\"v : \"+v)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"v : \"+v",
"\"v : \"",
"v",
"System.out.println(\"w : \"+w)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"w : \"+w",
"\"w : \"",
"w",
"System.out.println(\"x : \"+x)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"x : \"+x",
"\"x : \"",
"x",
"System.out.println(\"y : \"+y)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"y : \"+y",
"\"y : \"",
"y",
"System.out.println(\"z : \"+z)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"z : \"+z",
"\"z : \"",
"z",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) throws IOException\n {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int 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 a = 0;b = 0;c=0;d=0;e=0;e=0;f=0;g=0;h=0;i=0;j=0;k=0;l=0;m=0;n=0;o=0;p=0;\n q=0;r=0;s=0;t=0;u=0;v=0;w=0;x=0;y=0;z=0;\n\n String line = new String();\n while((line = reader.readLine())!=null){\n int len = line.length();\n for(int num =0;num < len;num++){\n String ch = line.toLowerCase();\n char ch2 = ch.charAt(num);\n\n if(ch2 =='a')a++;\n else if(ch2 =='b')b++;\n else if(ch2 =='c')c++;\n else if(ch2 =='d')d++;\n else if(ch2 =='e')e++;\n else if(ch2 =='f')f++;\n else if(ch2 =='g')g++;\n else if(ch2=='h')h++;\n else if(ch2 =='i')i++;\n else if(ch2 =='j')j++;\n else if(ch2 =='k')k++;\n else if(ch2=='l')l++;\n else if(ch2=='m')m++;\n else if(ch2=='n')n++;\n else if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;\n \n\n\n }\n }\n System.out.println(\"a : \"+a);\n System.out.println(\"b : \"+b);\n System.out.println(\"c : \"+c);\n System.out.println(\"d : \"+d);\n System.out.println(\"e : \"+e);\n System.out.println(\"f : \"+f);\n System.out.println(\"g : \"+g);\n System.out.println(\"h : \"+h);\n System.out.println(\"i : \"+i);\n System.out.println(\"j : \"+j);\n System.out.println(\"k : \"+k);\n System.out.println(\"l : \"+l);\n System.out.println(\"m : \"+m);\n System.out.println(\"n : \"+n);\n System.out.println(\"o : \"+o);\n System.out.println(\"p : \"+p);\n System.out.println(\"q : \"+q);\n System.out.println(\"r : \"+r);\n System.out.println(\"s : \"+s);\n System.out.println(\"t : \"+t);\n System.out.println(\"u : \"+u);\n System.out.println(\"v : \"+v);\n System.out.println(\"w : \"+w);\n System.out.println(\"x : \"+x);\n System.out.println(\"y : \"+y);\n System.out.println(\"z : \"+z);\n\n }\n }",
"public class Main{\n public static void main(String[] args) throws IOException\n {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int 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 a = 0;b = 0;c=0;d=0;e=0;e=0;f=0;g=0;h=0;i=0;j=0;k=0;l=0;m=0;n=0;o=0;p=0;\n q=0;r=0;s=0;t=0;u=0;v=0;w=0;x=0;y=0;z=0;\n\n String line = new String();\n while((line = reader.readLine())!=null){\n int len = line.length();\n for(int num =0;num < len;num++){\n String ch = line.toLowerCase();\n char ch2 = ch.charAt(num);\n\n if(ch2 =='a')a++;\n else if(ch2 =='b')b++;\n else if(ch2 =='c')c++;\n else if(ch2 =='d')d++;\n else if(ch2 =='e')e++;\n else if(ch2 =='f')f++;\n else if(ch2 =='g')g++;\n else if(ch2=='h')h++;\n else if(ch2 =='i')i++;\n else if(ch2 =='j')j++;\n else if(ch2 =='k')k++;\n else if(ch2=='l')l++;\n else if(ch2=='m')m++;\n else if(ch2=='n')n++;\n else if(ch2=='o')o++;\n else if(ch2=='p')p++;\n else if(ch2=='q')q++;\n else if(ch2=='r') r++;\n else if(ch2=='s') s++;\n else if(ch2=='t') t++;\n else if(ch2=='u') u++;\n else if(ch2=='v') v++;\n else if(ch2=='w') w++;\n else if(ch2=='x') x++;\n else if(ch2=='y') y++;\n else if(ch2=='z') z++;\n \n\n\n }\n }\n System.out.println(\"a : \"+a);\n System.out.println(\"b : \"+b);\n System.out.println(\"c : \"+c);\n System.out.println(\"d : \"+d);\n System.out.println(\"e : \"+e);\n System.out.println(\"f : \"+f);\n System.out.println(\"g : \"+g);\n System.out.println(\"h : \"+h);\n System.out.println(\"i : \"+i);\n System.out.println(\"j : \"+j);\n System.out.println(\"k : \"+k);\n System.out.println(\"l : \"+l);\n System.out.println(\"m : \"+m);\n System.out.println(\"n : \"+n);\n System.out.println(\"o : \"+o);\n System.out.println(\"p : \"+p);\n System.out.println(\"q : \"+q);\n System.out.println(\"r : \"+r);\n System.out.println(\"s : \"+s);\n System.out.println(\"t : \"+t);\n System.out.println(\"u : \"+u);\n System.out.println(\"v : \"+v);\n System.out.println(\"w : \"+w);\n System.out.println(\"x : \"+x);\n System.out.println(\"y : \"+y);\n System.out.println(\"z : \"+z);\n\n }\n }",
"Main"
]
| import java.io.*;
public class Main{
public static void main(String[] args) throws IOException
{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int 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 = 0;b = 0;c=0;d=0;e=0;e=0;f=0;g=0;h=0;i=0;j=0;k=0;l=0;m=0;n=0;o=0;p=0;
q=0;r=0;s=0;t=0;u=0;v=0;w=0;x=0;y=0;z=0;
String line = new String();
while((line = reader.readLine())!=null){
int len = line.length();
for(int num =0;num < len;num++){
String ch = line.toLowerCase();
char ch2 = ch.charAt(num);
if(ch2 =='a')a++;
else if(ch2 =='b')b++;
else if(ch2 =='c')c++;
else if(ch2 =='d')d++;
else if(ch2 =='e')e++;
else if(ch2 =='f')f++;
else if(ch2 =='g')g++;
else if(ch2=='h')h++;
else if(ch2 =='i')i++;
else if(ch2 =='j')j++;
else if(ch2 =='k')k++;
else if(ch2=='l')l++;
else if(ch2=='m')m++;
else if(ch2=='n')n++;
else if(ch2=='o')o++;
else if(ch2=='p')p++;
else if(ch2=='q')q++;
else if(ch2=='r') r++;
else if(ch2=='s') s++;
else if(ch2=='t') t++;
else if(ch2=='u') u++;
else if(ch2=='v') v++;
else if(ch2=='w') w++;
else if(ch2=='x') x++;
else if(ch2=='y') y++;
else if(ch2=='z') z++;
}
}
System.out.println("a : "+a);
System.out.println("b : "+b);
System.out.println("c : "+c);
System.out.println("d : "+d);
System.out.println("e : "+e);
System.out.println("f : "+f);
System.out.println("g : "+g);
System.out.println("h : "+h);
System.out.println("i : "+i);
System.out.println("j : "+j);
System.out.println("k : "+k);
System.out.println("l : "+l);
System.out.println("m : "+m);
System.out.println("n : "+n);
System.out.println("o : "+o);
System.out.println("p : "+p);
System.out.println("q : "+q);
System.out.println("r : "+r);
System.out.println("s : "+s);
System.out.println("t : "+t);
System.out.println("u : "+u);
System.out.println("v : "+v);
System.out.println("w : "+w);
System.out.println("x : "+x);
System.out.println("y : "+y);
System.out.println("z : "+z);
}
}
|
[
7,
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,
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,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
41,
13,
20,
41,
13,
42,
4,
18,
13,
30,
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,
0,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
4,
18,
18,
13,
13,
4,
18,
13,
13,
4,
18,
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,
18,
13,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
198,
5
],
[
198,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
11,
13
],
[
11,
14
],
[
11,
15
],
[
11,
16
],
[
11,
17
],
[
11,
18
],
[
11,
19
],
[
11,
20
],
[
11,
21
],
[
11,
22
],
[
11,
23
],
[
11,
24
],
[
11,
25
],
[
11,
26
],
[
11,
27
],
[
11,
28
],
[
11,
29
],
[
11,
30
],
[
11,
31
],
[
11,
32
],
[
11,
33
],
[
11,
34
],
[
11,
35
],
[
11,
36
],
[
11,
37
],
[
8,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
40,
43
],
[
40,
44
],
[
40,
45
],
[
40,
46
],
[
40,
47
],
[
40,
48
],
[
40,
49
],
[
40,
50
],
[
40,
51
],
[
40,
52
],
[
40,
53
],
[
40,
54
],
[
40,
55
],
[
40,
56
],
[
40,
57
],
[
40,
58
],
[
40,
59
],
[
40,
60
],
[
40,
61
],
[
40,
62
],
[
40,
63
],
[
40,
64
],
[
40,
65
],
[
40,
66
],
[
8,
67
],
[
67,
68
],
[
67,
69
],
[
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
],
[
85,
87
],
[
84,
88
],
[
8,
89
],
[
89,
90
],
[
89,
91
],
[
8,
92
],
[
92,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
94,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
98,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
98,
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
],
[
121,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
121,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
135,
136
],
[
135,
137
],
[
130,
138
],
[
138,
139
],
[
139,
140
],
[
130,
141
],
[
142,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
145,
150
],
[
150,
151
],
[
151,
152
],
[
150,
153
],
[
144,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
159,
160
],
[
160,
161
],
[
159,
162
],
[
143,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
8,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
173,
174
],
[
173,
175
],
[
168,
176
],
[
176,
177
],
[
177,
178
],
[
168,
179
],
[
180,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
181,
186
],
[
187,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
187,
192
],
[
192,
193
],
[
192,
194
],
[
6,
195
],
[
195,
196
],
[
0,
197
],
[
197,
198
],
[
197,
199
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tString[] Lary= {\"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 String[] Sary= {\"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 int[] ansBox=new int[26];\n\n //ansBox初期化\n for(int i=0;i<26;i++) {\n ansBox[i]=0;\n }\n\n //文字列を入力\n //BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n Scanner sc=new Scanner(System.in);\n String str;\n //while(true){\n while(sc.hasNext()) {\n str=sc.nextLine();\n //if(str.equals(\"\")){break;}\n //文字数をカウント\n int n=str.length();\n //n回廻す\n for(int i=0;i<n;i++) {\n //strからi個目の文字を切り出す\n char a;\n a=str.charAt(i);\n\n //それぞれをif文にかけ、アルファベットを判断\n for(int j=0;j<26;j++) {\n if(Lary[j].equals(String.valueOf(a)) || Sary[j].equals(String.valueOf(a))) {\n ansBox[j]++;\n }\n }\n }\n }\n for(int i=0;i<26;i++) {\n System.out.println(Sary[i]+\" : \"+ansBox[i]);\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\tString[] Lary= {\"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 String[] Sary= {\"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 int[] ansBox=new int[26];\n\n //ansBox初期化\n for(int i=0;i<26;i++) {\n ansBox[i]=0;\n }\n\n //文字列を入力\n //BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n Scanner sc=new Scanner(System.in);\n String str;\n //while(true){\n while(sc.hasNext()) {\n str=sc.nextLine();\n //if(str.equals(\"\")){break;}\n //文字数をカウント\n int n=str.length();\n //n回廻す\n for(int i=0;i<n;i++) {\n //strからi個目の文字を切り出す\n char a;\n a=str.charAt(i);\n\n //それぞれをif文にかけ、アルファベットを判断\n for(int j=0;j<26;j++) {\n if(Lary[j].equals(String.valueOf(a)) || Sary[j].equals(String.valueOf(a))) {\n ansBox[j]++;\n }\n }\n }\n }\n for(int i=0;i<26;i++) {\n System.out.println(Sary[i]+\" : \"+ansBox[i]);\n }\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tString[] Lary= {\"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 String[] Sary= {\"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 int[] ansBox=new int[26];\n\n //ansBox初期化\n for(int i=0;i<26;i++) {\n ansBox[i]=0;\n }\n\n //文字列を入力\n //BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n Scanner sc=new Scanner(System.in);\n String str;\n //while(true){\n while(sc.hasNext()) {\n str=sc.nextLine();\n //if(str.equals(\"\")){break;}\n //文字数をカウント\n int n=str.length();\n //n回廻す\n for(int i=0;i<n;i++) {\n //strからi個目の文字を切り出す\n char a;\n a=str.charAt(i);\n\n //それぞれをif文にかけ、アルファベットを判断\n for(int j=0;j<26;j++) {\n if(Lary[j].equals(String.valueOf(a)) || Sary[j].equals(String.valueOf(a))) {\n ansBox[j]++;\n }\n }\n }\n }\n for(int i=0;i<26;i++) {\n System.out.println(Sary[i]+\" : \"+ansBox[i]);\n }\n\t}",
"main",
"{\n\t\tString[] Lary= {\"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 String[] Sary= {\"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 int[] ansBox=new int[26];\n\n //ansBox初期化\n for(int i=0;i<26;i++) {\n ansBox[i]=0;\n }\n\n //文字列を入力\n //BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n Scanner sc=new Scanner(System.in);\n String str;\n //while(true){\n while(sc.hasNext()) {\n str=sc.nextLine();\n //if(str.equals(\"\")){break;}\n //文字数をカウント\n int n=str.length();\n //n回廻す\n for(int i=0;i<n;i++) {\n //strからi個目の文字を切り出す\n char a;\n a=str.charAt(i);\n\n //それぞれをif文にかけ、アルファベットを判断\n for(int j=0;j<26;j++) {\n if(Lary[j].equals(String.valueOf(a)) || Sary[j].equals(String.valueOf(a))) {\n ansBox[j]++;\n }\n }\n }\n }\n for(int i=0;i<26;i++) {\n System.out.println(Sary[i]+\" : \"+ansBox[i]);\n }\n\t}",
"String[] Lary= {\"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\"};",
"Lary",
"{\"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\"",
"String[] Sary= {\"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\"};",
"Sary",
"{\"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[] ansBox=new int[26];",
"ansBox",
"new int[26]",
"26",
"for(int i=0;i<26;i++) {\n ansBox[i]=0;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n ansBox[i]=0;\n }",
"{\n ansBox[i]=0;\n }",
"ansBox[i]=0",
"ansBox[i]",
"ansBox",
"i",
"0",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String str;",
"str",
"while(sc.hasNext()) {\n str=sc.nextLine();\n //if(str.equals(\"\")){break;}\n //文字数をカウント\n int n=str.length();\n //n回廻す\n for(int i=0;i<n;i++) {\n //strからi個目の文字を切り出す\n char a;\n a=str.charAt(i);\n\n //それぞれをif文にかけ、アルファベットを判断\n for(int j=0;j<26;j++) {\n if(Lary[j].equals(String.valueOf(a)) || Sary[j].equals(String.valueOf(a))) {\n ansBox[j]++;\n }\n }\n }\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n str=sc.nextLine();\n //if(str.equals(\"\")){break;}\n //文字数をカウント\n int n=str.length();\n //n回廻す\n for(int i=0;i<n;i++) {\n //strからi個目の文字を切り出す\n char a;\n a=str.charAt(i);\n\n //それぞれをif文にかけ、アルファベットを判断\n for(int j=0;j<26;j++) {\n if(Lary[j].equals(String.valueOf(a)) || Sary[j].equals(String.valueOf(a))) {\n ansBox[j]++;\n }\n }\n }\n }",
"str=sc.nextLine()",
"str",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int n=str.length();",
"n",
"str.length()",
"str.length",
"str",
"for(int i=0;i<n;i++) {\n //strからi個目の文字を切り出す\n char a;\n a=str.charAt(i);\n\n //それぞれをif文にかけ、アルファベットを判断\n for(int j=0;j<26;j++) {\n if(Lary[j].equals(String.valueOf(a)) || Sary[j].equals(String.valueOf(a))) {\n ansBox[j]++;\n }\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n //strからi個目の文字を切り出す\n char a;\n a=str.charAt(i);\n\n //それぞれをif文にかけ、アルファベットを判断\n for(int j=0;j<26;j++) {\n if(Lary[j].equals(String.valueOf(a)) || Sary[j].equals(String.valueOf(a))) {\n ansBox[j]++;\n }\n }\n }",
"{\n //strからi個目の文字を切り出す\n char a;\n a=str.charAt(i);\n\n //それぞれをif文にかけ、アルファベットを判断\n for(int j=0;j<26;j++) {\n if(Lary[j].equals(String.valueOf(a)) || Sary[j].equals(String.valueOf(a))) {\n ansBox[j]++;\n }\n }\n }",
"char a;",
"a",
"a=str.charAt(i)",
"a",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"for(int j=0;j<26;j++) {\n if(Lary[j].equals(String.valueOf(a)) || Sary[j].equals(String.valueOf(a))) {\n ansBox[j]++;\n }\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<26",
"j",
"26",
"j++",
"j++",
"j",
"{\n if(Lary[j].equals(String.valueOf(a)) || Sary[j].equals(String.valueOf(a))) {\n ansBox[j]++;\n }\n }",
"{\n if(Lary[j].equals(String.valueOf(a)) || Sary[j].equals(String.valueOf(a))) {\n ansBox[j]++;\n }\n }",
"if(Lary[j].equals(String.valueOf(a)) || Sary[j].equals(String.valueOf(a))) {\n ansBox[j]++;\n }",
"Lary[j].equals(String.valueOf(a)) || Sary[j].equals(String.valueOf(a))",
"Lary[j].equals(String.valueOf(a))",
"Lary[j].equals",
"Lary[j]",
"Lary",
"j",
"String.valueOf(a)",
"String.valueOf",
"String",
"a",
"Sary[j].equals(String.valueOf(a))",
"Sary[j].equals",
"Sary[j]",
"Sary",
"j",
"String.valueOf(a)",
"String.valueOf",
"String",
"a",
"{\n ansBox[j]++;\n }",
"ansBox[j]++",
"ansBox[j]",
"ansBox",
"j",
"for(int i=0;i<26;i++) {\n System.out.println(Sary[i]+\" : \"+ansBox[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n System.out.println(Sary[i]+\" : \"+ansBox[i]);\n }",
"{\n System.out.println(Sary[i]+\" : \"+ansBox[i]);\n }",
"System.out.println(Sary[i]+\" : \"+ansBox[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"Sary[i]+\" : \"+ansBox[i]",
"Sary[i]+\" : \"+ansBox[i]",
"Sary[i]",
"Sary",
"i",
"\" : \"",
"ansBox[i]",
"ansBox",
"i",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tString[] Lary= {\"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 String[] Sary= {\"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 int[] ansBox=new int[26];\n\n //ansBox初期化\n for(int i=0;i<26;i++) {\n ansBox[i]=0;\n }\n\n //文字列を入力\n //BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n Scanner sc=new Scanner(System.in);\n String str;\n //while(true){\n while(sc.hasNext()) {\n str=sc.nextLine();\n //if(str.equals(\"\")){break;}\n //文字数をカウント\n int n=str.length();\n //n回廻す\n for(int i=0;i<n;i++) {\n //strからi個目の文字を切り出す\n char a;\n a=str.charAt(i);\n\n //それぞれをif文にかけ、アルファベットを判断\n for(int j=0;j<26;j++) {\n if(Lary[j].equals(String.valueOf(a)) || Sary[j].equals(String.valueOf(a))) {\n ansBox[j]++;\n }\n }\n }\n }\n for(int i=0;i<26;i++) {\n System.out.println(Sary[i]+\" : \"+ansBox[i]);\n }\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tString[] Lary= {\"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 String[] Sary= {\"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 int[] ansBox=new int[26];\n\n //ansBox初期化\n for(int i=0;i<26;i++) {\n ansBox[i]=0;\n }\n\n //文字列を入力\n //BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n Scanner sc=new Scanner(System.in);\n String str;\n //while(true){\n while(sc.hasNext()) {\n str=sc.nextLine();\n //if(str.equals(\"\")){break;}\n //文字数をカウント\n int n=str.length();\n //n回廻す\n for(int i=0;i<n;i++) {\n //strからi個目の文字を切り出す\n char a;\n a=str.charAt(i);\n\n //それぞれをif文にかけ、アルファベットを判断\n for(int j=0;j<26;j++) {\n if(Lary[j].equals(String.valueOf(a)) || Sary[j].equals(String.valueOf(a))) {\n ansBox[j]++;\n }\n }\n }\n }\n for(int i=0;i<26;i++) {\n System.out.println(Sary[i]+\" : \"+ansBox[i]);\n }\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
String[] Lary= {"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"};
String[] Sary= {"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[] ansBox=new int[26];
//ansBox初期化
for(int i=0;i<26;i++) {
ansBox[i]=0;
}
//文字列を入力
//BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
Scanner sc=new Scanner(System.in);
String str;
//while(true){
while(sc.hasNext()) {
str=sc.nextLine();
//if(str.equals("")){break;}
//文字数をカウント
int n=str.length();
//n回廻す
for(int i=0;i<n;i++) {
//strからi個目の文字を切り出す
char a;
a=str.charAt(i);
//それぞれをif文にかけ、アルファベットを判断
for(int j=0;j<26;j++) {
if(Lary[j].equals(String.valueOf(a)) || Sary[j].equals(String.valueOf(a))) {
ansBox[j]++;
}
}
}
}
for(int i=0;i<26;i++) {
System.out.println(Sary[i]+" : "+ansBox[i]);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
17,
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,
4,
18,
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,
3,
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
],
[
131,
5
],
[
131,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
21,
31
],
[
31,
32
],
[
32,
33
],
[
21,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
45,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
55,
65
],
[
65,
66
],
[
66,
67
],
[
55,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
77,
79
],
[
70,
80
],
[
80,
81
],
[
81,
82
],
[
70,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
8,
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
],
[
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;\n\npublic class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tchar[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n\t\tint[] alphabetNum = new int[26];\n\t\tfor (int i = 0; i < alphabetNum.length; i++)\n\t\t{\n\t\t\talphabetNum[i] = 0;\n\t\t}\n\n\t\twhile (sc.hasNext())\n\t\t{\n\t\t\tchar[] input = sc.next().toLowerCase().toCharArray();\n\n\t\t\tfor (int i = 0; i < input.length; i++)\n\t\t\t{\n\t\t\t\tfor (int j = 0; j < alphabet.length; j++)\n\t\t\t\t{\n\t\t\t\t\tif (input[i] == alphabet[j])\n\t\t\t\t\t{\n\t\t\t\t\t\talphabetNum[j]++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < alphabetNum.length; i++)\n\t\t{\n\t\t\tSystem.out.println(alphabet[i] + \" : \" + alphabetNum[i]);\n\t\t}\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tchar[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n\t\tint[] alphabetNum = new int[26];\n\t\tfor (int i = 0; i < alphabetNum.length; i++)\n\t\t{\n\t\t\talphabetNum[i] = 0;\n\t\t}\n\n\t\twhile (sc.hasNext())\n\t\t{\n\t\t\tchar[] input = sc.next().toLowerCase().toCharArray();\n\n\t\t\tfor (int i = 0; i < input.length; i++)\n\t\t\t{\n\t\t\t\tfor (int j = 0; j < alphabet.length; j++)\n\t\t\t\t{\n\t\t\t\t\tif (input[i] == alphabet[j])\n\t\t\t\t\t{\n\t\t\t\t\t\talphabetNum[j]++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < alphabetNum.length; i++)\n\t\t{\n\t\t\tSystem.out.println(alphabet[i] + \" : \" + alphabetNum[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tchar[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n\t\tint[] alphabetNum = new int[26];\n\t\tfor (int i = 0; i < alphabetNum.length; i++)\n\t\t{\n\t\t\talphabetNum[i] = 0;\n\t\t}\n\n\t\twhile (sc.hasNext())\n\t\t{\n\t\t\tchar[] input = sc.next().toLowerCase().toCharArray();\n\n\t\t\tfor (int i = 0; i < input.length; i++)\n\t\t\t{\n\t\t\t\tfor (int j = 0; j < alphabet.length; j++)\n\t\t\t\t{\n\t\t\t\t\tif (input[i] == alphabet[j])\n\t\t\t\t\t{\n\t\t\t\t\t\talphabetNum[j]++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < alphabetNum.length; i++)\n\t\t{\n\t\t\tSystem.out.println(alphabet[i] + \" : \" + alphabetNum[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tchar[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n\t\tint[] alphabetNum = new int[26];\n\t\tfor (int i = 0; i < alphabetNum.length; i++)\n\t\t{\n\t\t\talphabetNum[i] = 0;\n\t\t}\n\n\t\twhile (sc.hasNext())\n\t\t{\n\t\t\tchar[] input = sc.next().toLowerCase().toCharArray();\n\n\t\t\tfor (int i = 0; i < input.length; i++)\n\t\t\t{\n\t\t\t\tfor (int j = 0; j < alphabet.length; j++)\n\t\t\t\t{\n\t\t\t\t\tif (input[i] == alphabet[j])\n\t\t\t\t\t{\n\t\t\t\t\t\talphabetNum[j]++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < alphabetNum.length; i++)\n\t\t{\n\t\t\tSystem.out.println(alphabet[i] + \" : \" + alphabetNum[i]);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"char[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();",
"alphabet",
"\"abcdefghijklmnopqrstuvwxyz\".toCharArray()",
"\"abcdefghijklmnopqrstuvwxyz\".toCharArray",
"\"abcdefghijklmnopqrstuvwxyz\"",
"int[] alphabetNum = new int[26];",
"alphabetNum",
"new int[26]",
"26",
"for (int i = 0; i < alphabetNum.length; i++)\n\t\t{\n\t\t\talphabetNum[i] = 0;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < alphabetNum.length",
"i",
"alphabetNum.length",
"alphabetNum",
"alphabetNum.length",
"i++",
"i++",
"i",
"{\n\t\t\talphabetNum[i] = 0;\n\t\t}",
"{\n\t\t\talphabetNum[i] = 0;\n\t\t}",
"alphabetNum[i] = 0",
"alphabetNum[i]",
"alphabetNum",
"i",
"0",
"while (sc.hasNext())\n\t\t{\n\t\t\tchar[] input = sc.next().toLowerCase().toCharArray();\n\n\t\t\tfor (int i = 0; i < input.length; i++)\n\t\t\t{\n\t\t\t\tfor (int j = 0; j < alphabet.length; j++)\n\t\t\t\t{\n\t\t\t\t\tif (input[i] == alphabet[j])\n\t\t\t\t\t{\n\t\t\t\t\t\talphabetNum[j]++;\n\t\t\t\t\t\tbreak;\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\tchar[] input = sc.next().toLowerCase().toCharArray();\n\n\t\t\tfor (int i = 0; i < input.length; i++)\n\t\t\t{\n\t\t\t\tfor (int j = 0; j < alphabet.length; j++)\n\t\t\t\t{\n\t\t\t\t\tif (input[i] == alphabet[j])\n\t\t\t\t\t{\n\t\t\t\t\t\talphabetNum[j]++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"char[] input = sc.next().toLowerCase().toCharArray();",
"input",
"sc.next().toLowerCase().toCharArray()",
"sc.next().toLowerCase().toCharArray",
"sc.next().toLowerCase()",
"sc.next().toLowerCase",
"sc.next()",
"sc.next",
"sc",
"for (int i = 0; i < input.length; i++)\n\t\t\t{\n\t\t\t\tfor (int j = 0; j < alphabet.length; j++)\n\t\t\t\t{\n\t\t\t\t\tif (input[i] == alphabet[j])\n\t\t\t\t\t{\n\t\t\t\t\t\talphabetNum[j]++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < input.length",
"i",
"input.length",
"input",
"input.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor (int j = 0; j < alphabet.length; j++)\n\t\t\t\t{\n\t\t\t\t\tif (input[i] == alphabet[j])\n\t\t\t\t\t{\n\t\t\t\t\t\talphabetNum[j]++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor (int j = 0; j < alphabet.length; j++)\n\t\t\t\t{\n\t\t\t\t\tif (input[i] == alphabet[j])\n\t\t\t\t\t{\n\t\t\t\t\t\talphabetNum[j]++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"for (int j = 0; j < alphabet.length; j++)\n\t\t\t\t{\n\t\t\t\t\tif (input[i] == alphabet[j])\n\t\t\t\t\t{\n\t\t\t\t\t\talphabetNum[j]++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < alphabet.length",
"j",
"alphabet.length",
"alphabet",
"alphabet.length",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tif (input[i] == alphabet[j])\n\t\t\t\t\t{\n\t\t\t\t\t\talphabetNum[j]++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif (input[i] == alphabet[j])\n\t\t\t\t\t{\n\t\t\t\t\t\talphabetNum[j]++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"if (input[i] == alphabet[j])\n\t\t\t\t\t{\n\t\t\t\t\t\talphabetNum[j]++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"input[i] == alphabet[j]",
"input[i]",
"input",
"i",
"alphabet[j]",
"alphabet",
"j",
"{\n\t\t\t\t\t\talphabetNum[j]++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"alphabetNum[j]++",
"alphabetNum[j]",
"alphabetNum",
"j",
"break;",
"for (int i = 0; i < alphabetNum.length; i++)\n\t\t{\n\t\t\tSystem.out.println(alphabet[i] + \" : \" + alphabetNum[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < alphabetNum.length",
"i",
"alphabetNum.length",
"alphabetNum",
"alphabetNum.length",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(alphabet[i] + \" : \" + alphabetNum[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(alphabet[i] + \" : \" + alphabetNum[i]);\n\t\t}",
"System.out.println(alphabet[i] + \" : \" + alphabetNum[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"alphabet[i] + \" : \" + alphabetNum[i]",
"alphabet[i] + \" : \" + alphabetNum[i]",
"alphabet[i]",
"alphabet",
"i",
"\" : \"",
"alphabetNum[i]",
"alphabetNum",
"i",
"String[] args",
"args",
"public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tchar[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n\t\tint[] alphabetNum = new int[26];\n\t\tfor (int i = 0; i < alphabetNum.length; i++)\n\t\t{\n\t\t\talphabetNum[i] = 0;\n\t\t}\n\n\t\twhile (sc.hasNext())\n\t\t{\n\t\t\tchar[] input = sc.next().toLowerCase().toCharArray();\n\n\t\t\tfor (int i = 0; i < input.length; i++)\n\t\t\t{\n\t\t\t\tfor (int j = 0; j < alphabet.length; j++)\n\t\t\t\t{\n\t\t\t\t\tif (input[i] == alphabet[j])\n\t\t\t\t\t{\n\t\t\t\t\t\talphabetNum[j]++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < alphabetNum.length; i++)\n\t\t{\n\t\t\tSystem.out.println(alphabet[i] + \" : \" + alphabetNum[i]);\n\t\t}\n\t}\n}",
"public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tchar[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n\t\tint[] alphabetNum = new int[26];\n\t\tfor (int i = 0; i < alphabetNum.length; i++)\n\t\t{\n\t\t\talphabetNum[i] = 0;\n\t\t}\n\n\t\twhile (sc.hasNext())\n\t\t{\n\t\t\tchar[] input = sc.next().toLowerCase().toCharArray();\n\n\t\t\tfor (int i = 0; i < input.length; i++)\n\t\t\t{\n\t\t\t\tfor (int j = 0; j < alphabet.length; j++)\n\t\t\t\t{\n\t\t\t\t\tif (input[i] == alphabet[j])\n\t\t\t\t\t{\n\t\t\t\t\t\talphabetNum[j]++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < alphabetNum.length; i++)\n\t\t{\n\t\t\tSystem.out.println(alphabet[i] + \" : \" + alphabetNum[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);
char[] alphabet = "abcdefghijklmnopqrstuvwxyz".toCharArray();
int[] alphabetNum = new int[26];
for (int i = 0; i < alphabetNum.length; i++)
{
alphabetNum[i] = 0;
}
while (sc.hasNext())
{
char[] input = sc.next().toLowerCase().toCharArray();
for (int i = 0; i < input.length; i++)
{
for (int j = 0; j < alphabet.length; j++)
{
if (input[i] == alphabet[j])
{
alphabetNum[j]++;
break;
}
}
}
}
for (int i = 0; i < alphabetNum.length; i++)
{
System.out.println(alphabet[i] + " : " + alphabetNum[i]);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
13,
17,
41,
13,
42,
4,
18,
13,
30,
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,
4,
18,
13,
4,
18,
13,
4,
18,
13,
18,
13,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
18,
13,
13,
2,
4,
18,
13,
4,
18,
13,
4,
18,
13,
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,
4,
18,
13,
4,
18,
13,
4,
18,
13,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
154,
11
],
[
154,
12
],
[
12,
13
],
[
12,
14
],
[
154,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
15,
21
],
[
21,
22
],
[
154,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
42,
49
],
[
25,
50
],
[
50,
51
],
[
25,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
56,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
56,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
67,
77
],
[
77,
78
],
[
78,
79
],
[
67,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
92,
94
],
[
82,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
104,
106
],
[
95,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
117,
118
],
[
117,
119
],
[
107,
120
],
[
25,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
126,
127
],
[
126,
128
],
[
121,
129
],
[
129,
130
],
[
130,
131
],
[
121,
132
],
[
133,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
140,
140
],
[
140,
141
],
[
140,
142
],
[
140,
143
],
[
143,
144
],
[
144,
145
],
[
143,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
149,
150
],
[
150,
151
],
[
149,
152
],
[
0,
153
],
[
153,
154
],
[
153,
155
]
]
| [
"import java.util.HashMap;\nimport java.util.Map;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n new Main().solve();\n }\n\n Scanner sc = new Scanner(System.in);\n\n void solve() {\n Map<String, Integer> map = new HashMap<String, Integer>();\n for (char c = 'a'; c <= 'z'; c++) {\n map.put(String.valueOf(c), 0);\n }\n String str;\n while (sc.hasNext()) {\n str = sc.nextLine();\n char[] strArr = str.toCharArray();\n for (int i = 0; i < strArr.length; ++i) {\n if (map.containsKey(String.valueOf(Character.toLowerCase(strArr[i]))))\n map.put(String.valueOf(Character.toLowerCase(strArr[i])),\n map.get(String.valueOf(Character.toLowerCase(strArr[i]))) + 1);\n }\n }\n for (char c = 'a'; c <= 'z'; c++) {\n System.out.println(c + \" : \" +\n map.get(String.valueOf(Character.toLowerCase(c))));\n }\n }\n}\n\n\n\n",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.Map;",
"Map",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n new Main().solve();\n }\n\n Scanner sc = new Scanner(System.in);\n\n void solve() {\n Map<String, Integer> map = new HashMap<String, Integer>();\n for (char c = 'a'; c <= 'z'; c++) {\n map.put(String.valueOf(c), 0);\n }\n String str;\n while (sc.hasNext()) {\n str = sc.nextLine();\n char[] strArr = str.toCharArray();\n for (int i = 0; i < strArr.length; ++i) {\n if (map.containsKey(String.valueOf(Character.toLowerCase(strArr[i]))))\n map.put(String.valueOf(Character.toLowerCase(strArr[i])),\n map.get(String.valueOf(Character.toLowerCase(strArr[i]))) + 1);\n }\n }\n for (char c = 'a'; c <= 'z'; c++) {\n System.out.println(c + \" : \" +\n map.get(String.valueOf(Character.toLowerCase(c))));\n }\n }\n}",
"Main",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) {\n new Main().solve();\n }",
"main",
"{\n new Main().solve();\n }",
"new Main().solve()",
"new Main().solve",
"new Main()",
"String[] args",
"args",
"void solve() {\n Map<String, Integer> map = new HashMap<String, Integer>();\n for (char c = 'a'; c <= 'z'; c++) {\n map.put(String.valueOf(c), 0);\n }\n String str;\n while (sc.hasNext()) {\n str = sc.nextLine();\n char[] strArr = str.toCharArray();\n for (int i = 0; i < strArr.length; ++i) {\n if (map.containsKey(String.valueOf(Character.toLowerCase(strArr[i]))))\n map.put(String.valueOf(Character.toLowerCase(strArr[i])),\n map.get(String.valueOf(Character.toLowerCase(strArr[i]))) + 1);\n }\n }\n for (char c = 'a'; c <= 'z'; c++) {\n System.out.println(c + \" : \" +\n map.get(String.valueOf(Character.toLowerCase(c))));\n }\n }",
"solve",
"{\n Map<String, Integer> map = new HashMap<String, Integer>();\n for (char c = 'a'; c <= 'z'; c++) {\n map.put(String.valueOf(c), 0);\n }\n String str;\n while (sc.hasNext()) {\n str = sc.nextLine();\n char[] strArr = str.toCharArray();\n for (int i = 0; i < strArr.length; ++i) {\n if (map.containsKey(String.valueOf(Character.toLowerCase(strArr[i]))))\n map.put(String.valueOf(Character.toLowerCase(strArr[i])),\n map.get(String.valueOf(Character.toLowerCase(strArr[i]))) + 1);\n }\n }\n for (char c = 'a'; c <= 'z'; c++) {\n System.out.println(c + \" : \" +\n map.get(String.valueOf(Character.toLowerCase(c))));\n }\n }",
"Map<String, Integer> map = new HashMap<String, Integer>();",
"map",
"new HashMap<String, Integer>()",
"for (char c = 'a'; c <= 'z'; c++) {\n map.put(String.valueOf(c), 0);\n }",
"char c = 'a';",
"char c = 'a';",
"c",
"'a'",
"c <= 'z'",
"c",
"'z'",
"c++",
"c++",
"c",
"{\n map.put(String.valueOf(c), 0);\n }",
"{\n map.put(String.valueOf(c), 0);\n }",
"map.put(String.valueOf(c), 0)",
"map.put",
"map",
"String.valueOf(c)",
"String.valueOf",
"String",
"c",
"0",
"String str;",
"str",
"while (sc.hasNext()) {\n str = sc.nextLine();\n char[] strArr = str.toCharArray();\n for (int i = 0; i < strArr.length; ++i) {\n if (map.containsKey(String.valueOf(Character.toLowerCase(strArr[i]))))\n map.put(String.valueOf(Character.toLowerCase(strArr[i])),\n map.get(String.valueOf(Character.toLowerCase(strArr[i]))) + 1);\n }\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n str = sc.nextLine();\n char[] strArr = str.toCharArray();\n for (int i = 0; i < strArr.length; ++i) {\n if (map.containsKey(String.valueOf(Character.toLowerCase(strArr[i]))))\n map.put(String.valueOf(Character.toLowerCase(strArr[i])),\n map.get(String.valueOf(Character.toLowerCase(strArr[i]))) + 1);\n }\n }",
"str = sc.nextLine()",
"str",
"sc.nextLine()",
"sc.nextLine",
"sc",
"char[] strArr = str.toCharArray();",
"strArr",
"str.toCharArray()",
"str.toCharArray",
"str",
"for (int i = 0; i < strArr.length; ++i) {\n if (map.containsKey(String.valueOf(Character.toLowerCase(strArr[i]))))\n map.put(String.valueOf(Character.toLowerCase(strArr[i])),\n map.get(String.valueOf(Character.toLowerCase(strArr[i]))) + 1);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < strArr.length",
"i",
"strArr.length",
"strArr",
"strArr.length",
"++i",
"++i",
"i",
"{\n if (map.containsKey(String.valueOf(Character.toLowerCase(strArr[i]))))\n map.put(String.valueOf(Character.toLowerCase(strArr[i])),\n map.get(String.valueOf(Character.toLowerCase(strArr[i]))) + 1);\n }",
"{\n if (map.containsKey(String.valueOf(Character.toLowerCase(strArr[i]))))\n map.put(String.valueOf(Character.toLowerCase(strArr[i])),\n map.get(String.valueOf(Character.toLowerCase(strArr[i]))) + 1);\n }",
"if (map.containsKey(String.valueOf(Character.toLowerCase(strArr[i]))))\n map.put(String.valueOf(Character.toLowerCase(strArr[i])),\n map.get(String.valueOf(Character.toLowerCase(strArr[i]))) + 1);",
"map.containsKey(String.valueOf(Character.toLowerCase(strArr[i])))",
"map.containsKey",
"map",
"String.valueOf(Character.toLowerCase(strArr[i]))",
"String.valueOf",
"String",
"Character.toLowerCase(strArr[i])",
"Character.toLowerCase",
"Character",
"strArr[i]",
"strArr",
"i",
"map.put(String.valueOf(Character.toLowerCase(strArr[i])),\n map.get(String.valueOf(Character.toLowerCase(strArr[i]))) + 1)",
"map.put",
"map",
"String.valueOf(Character.toLowerCase(strArr[i]))",
"String.valueOf",
"String",
"Character.toLowerCase(strArr[i])",
"Character.toLowerCase",
"Character",
"strArr[i]",
"strArr",
"i",
"map.get(String.valueOf(Character.toLowerCase(strArr[i]))) + 1",
"map.get(String.valueOf(Character.toLowerCase(strArr[i])))",
"map.get",
"map",
"String.valueOf(Character.toLowerCase(strArr[i]))",
"String.valueOf",
"String",
"Character.toLowerCase(strArr[i])",
"Character.toLowerCase",
"Character",
"strArr[i]",
"strArr",
"i",
"1",
"for (char c = 'a'; c <= 'z'; c++) {\n System.out.println(c + \" : \" +\n map.get(String.valueOf(Character.toLowerCase(c))));\n }",
"char c = 'a';",
"char c = 'a';",
"c",
"'a'",
"c <= 'z'",
"c",
"'z'",
"c++",
"c++",
"c",
"{\n System.out.println(c + \" : \" +\n map.get(String.valueOf(Character.toLowerCase(c))));\n }",
"{\n System.out.println(c + \" : \" +\n map.get(String.valueOf(Character.toLowerCase(c))));\n }",
"System.out.println(c + \" : \" +\n map.get(String.valueOf(Character.toLowerCase(c))))",
"System.out.println",
"System.out",
"System",
"System.out",
"c + \" : \" +\n map.get(String.valueOf(Character.toLowerCase(c)))",
"c + \" : \" +\n map.get(String.valueOf(Character.toLowerCase(c)))",
"c",
"\" : \"",
"map.get(String.valueOf(Character.toLowerCase(c)))",
"map.get",
"map",
"String.valueOf(Character.toLowerCase(c))",
"String.valueOf",
"String",
"Character.toLowerCase(c)",
"Character.toLowerCase",
"Character",
"c",
"public class Main {\n\n public static void main(String[] args) {\n new Main().solve();\n }\n\n Scanner sc = new Scanner(System.in);\n\n void solve() {\n Map<String, Integer> map = new HashMap<String, Integer>();\n for (char c = 'a'; c <= 'z'; c++) {\n map.put(String.valueOf(c), 0);\n }\n String str;\n while (sc.hasNext()) {\n str = sc.nextLine();\n char[] strArr = str.toCharArray();\n for (int i = 0; i < strArr.length; ++i) {\n if (map.containsKey(String.valueOf(Character.toLowerCase(strArr[i]))))\n map.put(String.valueOf(Character.toLowerCase(strArr[i])),\n map.get(String.valueOf(Character.toLowerCase(strArr[i]))) + 1);\n }\n }\n for (char c = 'a'; c <= 'z'; c++) {\n System.out.println(c + \" : \" +\n map.get(String.valueOf(Character.toLowerCase(c))));\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n new Main().solve();\n }\n\n Scanner sc = new Scanner(System.in);\n\n void solve() {\n Map<String, Integer> map = new HashMap<String, Integer>();\n for (char c = 'a'; c <= 'z'; c++) {\n map.put(String.valueOf(c), 0);\n }\n String str;\n while (sc.hasNext()) {\n str = sc.nextLine();\n char[] strArr = str.toCharArray();\n for (int i = 0; i < strArr.length; ++i) {\n if (map.containsKey(String.valueOf(Character.toLowerCase(strArr[i]))))\n map.put(String.valueOf(Character.toLowerCase(strArr[i])),\n map.get(String.valueOf(Character.toLowerCase(strArr[i]))) + 1);\n }\n }\n for (char c = 'a'; c <= 'z'; c++) {\n System.out.println(c + \" : \" +\n map.get(String.valueOf(Character.toLowerCase(c))));\n }\n }\n}",
"Main"
]
| import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
new Main().solve();
}
Scanner sc = new Scanner(System.in);
void solve() {
Map<String, Integer> map = new HashMap<String, Integer>();
for (char c = 'a'; c <= 'z'; c++) {
map.put(String.valueOf(c), 0);
}
String str;
while (sc.hasNext()) {
str = sc.nextLine();
char[] strArr = str.toCharArray();
for (int i = 0; i < strArr.length; ++i) {
if (map.containsKey(String.valueOf(Character.toLowerCase(strArr[i]))))
map.put(String.valueOf(Character.toLowerCase(strArr[i])),
map.get(String.valueOf(Character.toLowerCase(strArr[i]))) + 1);
}
}
for (char c = 'a'; c <= 'z'; c++) {
System.out.println(c + " : " +
map.get(String.valueOf(Character.toLowerCase(c))));
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
38,
30,
14,
2,
13,
17,
4,
18,
13,
30,
0,
13,
20,
41,
13,
20,
17,
41,
13,
17,
42,
4,
18,
13,
0,
13,
2,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
18,
13,
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,
2,
17,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
129,
5
],
[
129,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
19,
20
],
[
12,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
21,
25
],
[
25,
26
],
[
25,
27
],
[
21,
29
],
[
29,
30
],
[
29,
31
],
[
21,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
32,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
21,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
45,
50
],
[
21,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
51,
61
],
[
61,
62
],
[
62,
63
],
[
51,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
66,
78
],
[
78,
79
],
[
79,
80
],
[
66,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
85,
92
],
[
82,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
21,
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
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
118,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
6,
126
],
[
126,
127
],
[
0,
128
],
[
128,
129
],
[
128,
130
]
]
| [
"import java.util.Scanner;\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = null;\n\t\ttry{\n\t\t\tscan = new Scanner(System.in);\n\t\t\tint[] counter = new int[26];\n\t\t\tString str = \"\";\n\t\t\twhile(scan.hasNext())\n\t\t\tstr = str + scan.nextLine();\n\t\t\tString[] str2 = str.toLowerCase().split(\"[^a-z]\");\n\t\t\tfor(int i = 0; i < str2.length;i++){\n\t\t\t\tfor(int j = 0 ; j < str2[i].length();j++){\n\t\t\t\t\tint num = (int)str2[i].charAt(j) - (int)'a';\n\t\t\t\t\tcounter[num] ++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < counter.length;i++){\n\t\t\t\tSystem.out.println((char)((int)'a'+ i)+\" : \"+counter[i]);\n\t\t\t}\n\t\t}finally{\n\t\t\tif(scan!=null)scan.close();\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 = null;\n\t\ttry{\n\t\t\tscan = new Scanner(System.in);\n\t\t\tint[] counter = new int[26];\n\t\t\tString str = \"\";\n\t\t\twhile(scan.hasNext())\n\t\t\tstr = str + scan.nextLine();\n\t\t\tString[] str2 = str.toLowerCase().split(\"[^a-z]\");\n\t\t\tfor(int i = 0; i < str2.length;i++){\n\t\t\t\tfor(int j = 0 ; j < str2[i].length();j++){\n\t\t\t\t\tint num = (int)str2[i].charAt(j) - (int)'a';\n\t\t\t\t\tcounter[num] ++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < counter.length;i++){\n\t\t\t\tSystem.out.println((char)((int)'a'+ i)+\" : \"+counter[i]);\n\t\t\t}\n\t\t}finally{\n\t\t\tif(scan!=null)scan.close();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner scan = null;\n\t\ttry{\n\t\t\tscan = new Scanner(System.in);\n\t\t\tint[] counter = new int[26];\n\t\t\tString str = \"\";\n\t\t\twhile(scan.hasNext())\n\t\t\tstr = str + scan.nextLine();\n\t\t\tString[] str2 = str.toLowerCase().split(\"[^a-z]\");\n\t\t\tfor(int i = 0; i < str2.length;i++){\n\t\t\t\tfor(int j = 0 ; j < str2[i].length();j++){\n\t\t\t\t\tint num = (int)str2[i].charAt(j) - (int)'a';\n\t\t\t\t\tcounter[num] ++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < counter.length;i++){\n\t\t\t\tSystem.out.println((char)((int)'a'+ i)+\" : \"+counter[i]);\n\t\t\t}\n\t\t}finally{\n\t\t\tif(scan!=null)scan.close();\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = null;\n\t\ttry{\n\t\t\tscan = new Scanner(System.in);\n\t\t\tint[] counter = new int[26];\n\t\t\tString str = \"\";\n\t\t\twhile(scan.hasNext())\n\t\t\tstr = str + scan.nextLine();\n\t\t\tString[] str2 = str.toLowerCase().split(\"[^a-z]\");\n\t\t\tfor(int i = 0; i < str2.length;i++){\n\t\t\t\tfor(int j = 0 ; j < str2[i].length();j++){\n\t\t\t\t\tint num = (int)str2[i].charAt(j) - (int)'a';\n\t\t\t\t\tcounter[num] ++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < counter.length;i++){\n\t\t\t\tSystem.out.println((char)((int)'a'+ i)+\" : \"+counter[i]);\n\t\t\t}\n\t\t}finally{\n\t\t\tif(scan!=null)scan.close();\n\t\t}\n\t}",
"Scanner scan = null;",
"scan",
"null",
"try{\n\t\t\tscan = new Scanner(System.in);\n\t\t\tint[] counter = new int[26];\n\t\t\tString str = \"\";\n\t\t\twhile(scan.hasNext())\n\t\t\tstr = str + scan.nextLine();\n\t\t\tString[] str2 = str.toLowerCase().split(\"[^a-z]\");\n\t\t\tfor(int i = 0; i < str2.length;i++){\n\t\t\t\tfor(int j = 0 ; j < str2[i].length();j++){\n\t\t\t\t\tint num = (int)str2[i].charAt(j) - (int)'a';\n\t\t\t\t\tcounter[num] ++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < counter.length;i++){\n\t\t\t\tSystem.out.println((char)((int)'a'+ i)+\" : \"+counter[i]);\n\t\t\t}\n\t\t}finally{\n\t\t\tif(scan!=null)scan.close();\n\t\t}",
"{\n\t\t\tif(scan!=null)scan.close();\n\t\t}",
"if(scan!=null)scan.close();",
"scan!=null",
"scan",
"null",
"scan.close()",
"scan.close",
"scan",
"{\n\t\t\tscan = new Scanner(System.in);\n\t\t\tint[] counter = new int[26];\n\t\t\tString str = \"\";\n\t\t\twhile(scan.hasNext())\n\t\t\tstr = str + scan.nextLine();\n\t\t\tString[] str2 = str.toLowerCase().split(\"[^a-z]\");\n\t\t\tfor(int i = 0; i < str2.length;i++){\n\t\t\t\tfor(int j = 0 ; j < str2[i].length();j++){\n\t\t\t\t\tint num = (int)str2[i].charAt(j) - (int)'a';\n\t\t\t\t\tcounter[num] ++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < counter.length;i++){\n\t\t\t\tSystem.out.println((char)((int)'a'+ i)+\" : \"+counter[i]);\n\t\t\t}\n\t\t}",
"scan = new Scanner(System.in)",
"scan",
"new Scanner(System.in)",
"int[] counter = new int[26];",
"counter",
"new int[26]",
"26",
"String str = \"\";",
"str",
"\"\"",
"while(scan.hasNext())\n\t\t\tstr = str + scan.nextLine();",
"scan.hasNext()",
"scan.hasNext",
"scan",
"str = str + scan.nextLine()",
"str",
"str + scan.nextLine()",
"str",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String[] str2 = str.toLowerCase().split(\"[^a-z]\");",
"str2",
"str.toLowerCase().split(\"[^a-z]\")",
"str.toLowerCase().split",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"\"[^a-z]\"",
"for(int i = 0; i < str2.length;i++){\n\t\t\t\tfor(int j = 0 ; j < str2[i].length();j++){\n\t\t\t\t\tint num = (int)str2[i].charAt(j) - (int)'a';\n\t\t\t\t\tcounter[num] ++;\n\t\t\t\t}\n\t\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\t\tfor(int j = 0 ; j < str2[i].length();j++){\n\t\t\t\t\tint num = (int)str2[i].charAt(j) - (int)'a';\n\t\t\t\t\tcounter[num] ++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int j = 0 ; j < str2[i].length();j++){\n\t\t\t\t\tint num = (int)str2[i].charAt(j) - (int)'a';\n\t\t\t\t\tcounter[num] ++;\n\t\t\t\t}\n\t\t\t}",
"for(int j = 0 ; j < str2[i].length();j++){\n\t\t\t\t\tint num = (int)str2[i].charAt(j) - (int)'a';\n\t\t\t\t\tcounter[num] ++;\n\t\t\t\t}",
"int j = 0 ;",
"int j = 0 ;",
"j",
"0",
"j < str2[i].length()",
"j",
"str2[i].length()",
"str2[i].length",
"str2[i]",
"str2",
"i",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tint num = (int)str2[i].charAt(j) - (int)'a';\n\t\t\t\t\tcounter[num] ++;\n\t\t\t\t}",
"{\n\t\t\t\t\tint num = (int)str2[i].charAt(j) - (int)'a';\n\t\t\t\t\tcounter[num] ++;\n\t\t\t\t}",
"int num = (int)str2[i].charAt(j) - (int)'a';",
"num",
"(int)str2[i].charAt(j) - (int)'a'",
"(int)str2[i].charAt(j)",
"str2[i].charAt",
"str2[i]",
"str2",
"i",
"j",
"(int)'a'",
"counter[num] ++",
"counter[num]",
"counter",
"num",
"for(int i = 0 ; i < counter.length;i++){\n\t\t\t\tSystem.out.println((char)((int)'a'+ i)+\" : \"+counter[i]);\n\t\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\t\tSystem.out.println((char)((int)'a'+ i)+\" : \"+counter[i]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.println((char)((int)'a'+ i)+\" : \"+counter[i]);\n\t\t\t}",
"System.out.println((char)((int)'a'+ i)+\" : \"+counter[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)((int)'a'+ i)+\" : \"+counter[i]",
"(char)((int)'a'+ i)+\" : \"+counter[i]",
"(char)((int)'a'+ i)",
"(int)'a'",
"i",
"\" : \"",
"counter[i]",
"counter",
"i",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = null;\n\t\ttry{\n\t\t\tscan = new Scanner(System.in);\n\t\t\tint[] counter = new int[26];\n\t\t\tString str = \"\";\n\t\t\twhile(scan.hasNext())\n\t\t\tstr = str + scan.nextLine();\n\t\t\tString[] str2 = str.toLowerCase().split(\"[^a-z]\");\n\t\t\tfor(int i = 0; i < str2.length;i++){\n\t\t\t\tfor(int j = 0 ; j < str2[i].length();j++){\n\t\t\t\t\tint num = (int)str2[i].charAt(j) - (int)'a';\n\t\t\t\t\tcounter[num] ++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < counter.length;i++){\n\t\t\t\tSystem.out.println((char)((int)'a'+ i)+\" : \"+counter[i]);\n\t\t\t}\n\t\t}finally{\n\t\t\tif(scan!=null)scan.close();\n\t\t}\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = null;\n\t\ttry{\n\t\t\tscan = new Scanner(System.in);\n\t\t\tint[] counter = new int[26];\n\t\t\tString str = \"\";\n\t\t\twhile(scan.hasNext())\n\t\t\tstr = str + scan.nextLine();\n\t\t\tString[] str2 = str.toLowerCase().split(\"[^a-z]\");\n\t\t\tfor(int i = 0; i < str2.length;i++){\n\t\t\t\tfor(int j = 0 ; j < str2[i].length();j++){\n\t\t\t\t\tint num = (int)str2[i].charAt(j) - (int)'a';\n\t\t\t\t\tcounter[num] ++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < counter.length;i++){\n\t\t\t\tSystem.out.println((char)((int)'a'+ i)+\" : \"+counter[i]);\n\t\t\t}\n\t\t}finally{\n\t\t\tif(scan!=null)scan.close();\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = null;
try{
scan = new Scanner(System.in);
int[] counter = new int[26];
String str = "";
while(scan.hasNext())
str = str + scan.nextLine();
String[] str2 = str.toLowerCase().split("[^a-z]");
for(int i = 0; i < str2.length;i++){
for(int j = 0 ; j < str2[i].length();j++){
int num = (int)str2[i].charAt(j) - (int)'a';
counter[num] ++;
}
}
for(int i = 0 ; i < counter.length;i++){
System.out.println((char)((int)'a'+ i)+" : "+counter[i]);
}
}finally{
if(scan!=null)scan.close();
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
17,
41,
13,
41,
13,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
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,
14,
4,
18,
13,
18,
13,
13,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
41,
13,
2,
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,
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
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
15,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
29,
31
],
[
25,
32
],
[
32,
33
],
[
32,
34
],
[
25,
36
],
[
36,
37
],
[
25,
38
],
[
38,
39
],
[
38,
40
],
[
25,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
42,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
55,
65
],
[
65,
66
],
[
66,
67
],
[
55,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
70,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
87,
88
],
[
87,
89
],
[
83,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
98,
100
],
[
82,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
82,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
25,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
119,
121
],
[
112,
122
],
[
122,
123
],
[
123,
124
],
[
112,
125
],
[
126,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
133,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
133,
137
],
[
137,
138
],
[
137,
139
],
[
12,
140
],
[
140,
141
],
[
0,
142
],
[
142,
143
],
[
142,
144
]
]
| [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\npublic class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint[] counter = new int[26];\n\t\t\tString line; \n\t\t\t//line = br.readLine();\n\t\t\tchar ch = 'a';\n\t\t\t//char[] c = line.toCharArray();\n\t\t\twhile((line = br.readLine())!=null){\n\t\t\t\tchar[] c = line.toCharArray();\n\t\t\t\tfor(int i = 0; i < c.length; i++){\n\t\t\t\t\tif( c[i] >= 'A' && c[i] <= 'z' ){\n\t\t\t\t\t\tif( Character.isUpperCase(c[i]) ){\n\t\t\t\t\t\t\tc[i] = Character.toLowerCase(c[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint num = c[i] - 'a';\n\t\t\t\t\t\tcounter[num]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < counter.length; i++){\n\t\t\t\tSystem.out.println( ch++ + \" : \" + counter[i]);\n\t\t\t}\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint[] counter = new int[26];\n\t\t\tString line; \n\t\t\t//line = br.readLine();\n\t\t\tchar ch = 'a';\n\t\t\t//char[] c = line.toCharArray();\n\t\t\twhile((line = br.readLine())!=null){\n\t\t\t\tchar[] c = line.toCharArray();\n\t\t\t\tfor(int i = 0; i < c.length; i++){\n\t\t\t\t\tif( c[i] >= 'A' && c[i] <= 'z' ){\n\t\t\t\t\t\tif( Character.isUpperCase(c[i]) ){\n\t\t\t\t\t\t\tc[i] = Character.toLowerCase(c[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint num = c[i] - 'a';\n\t\t\t\t\t\tcounter[num]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < counter.length; i++){\n\t\t\t\tSystem.out.println( ch++ + \" : \" + counter[i]);\n\t\t\t}\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint[] counter = new int[26];\n\t\t\tString line; \n\t\t\t//line = br.readLine();\n\t\t\tchar ch = 'a';\n\t\t\t//char[] c = line.toCharArray();\n\t\t\twhile((line = br.readLine())!=null){\n\t\t\t\tchar[] c = line.toCharArray();\n\t\t\t\tfor(int i = 0; i < c.length; i++){\n\t\t\t\t\tif( c[i] >= 'A' && c[i] <= 'z' ){\n\t\t\t\t\t\tif( Character.isUpperCase(c[i]) ){\n\t\t\t\t\t\t\tc[i] = Character.toLowerCase(c[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint num = c[i] - 'a';\n\t\t\t\t\t\tcounter[num]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < counter.length; i++){\n\t\t\t\tSystem.out.println( ch++ + \" : \" + counter[i]);\n\t\t\t}\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}",
"main",
"{\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint[] counter = new int[26];\n\t\t\tString line; \n\t\t\t//line = br.readLine();\n\t\t\tchar ch = 'a';\n\t\t\t//char[] c = line.toCharArray();\n\t\t\twhile((line = br.readLine())!=null){\n\t\t\t\tchar[] c = line.toCharArray();\n\t\t\t\tfor(int i = 0; i < c.length; i++){\n\t\t\t\t\tif( c[i] >= 'A' && c[i] <= 'z' ){\n\t\t\t\t\t\tif( Character.isUpperCase(c[i]) ){\n\t\t\t\t\t\t\tc[i] = Character.toLowerCase(c[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint num = c[i] - 'a';\n\t\t\t\t\t\tcounter[num]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < counter.length; i++){\n\t\t\t\tSystem.out.println( ch++ + \" : \" + counter[i]);\n\t\t\t}\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}",
"try{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint[] counter = new int[26];\n\t\t\tString line; \n\t\t\t//line = br.readLine();\n\t\t\tchar ch = 'a';\n\t\t\t//char[] c = line.toCharArray();\n\t\t\twhile((line = br.readLine())!=null){\n\t\t\t\tchar[] c = line.toCharArray();\n\t\t\t\tfor(int i = 0; i < c.length; i++){\n\t\t\t\t\tif( c[i] >= 'A' && c[i] <= 'z' ){\n\t\t\t\t\t\tif( Character.isUpperCase(c[i]) ){\n\t\t\t\t\t\t\tc[i] = Character.toLowerCase(c[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint num = c[i] - 'a';\n\t\t\t\t\t\tcounter[num]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < counter.length; i++){\n\t\t\t\tSystem.out.println( ch++ + \" : \" + counter[i]);\n\t\t\t}\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 br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint[] counter = new int[26];\n\t\t\tString line; \n\t\t\t//line = br.readLine();\n\t\t\tchar ch = 'a';\n\t\t\t//char[] c = line.toCharArray();\n\t\t\twhile((line = br.readLine())!=null){\n\t\t\t\tchar[] c = line.toCharArray();\n\t\t\t\tfor(int i = 0; i < c.length; i++){\n\t\t\t\t\tif( c[i] >= 'A' && c[i] <= 'z' ){\n\t\t\t\t\t\tif( Character.isUpperCase(c[i]) ){\n\t\t\t\t\t\t\tc[i] = Character.toLowerCase(c[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint num = c[i] - 'a';\n\t\t\t\t\t\tcounter[num]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < counter.length; i++){\n\t\t\t\tSystem.out.println( ch++ + \" : \" + counter[i]);\n\t\t\t}\n\t\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int[] counter = new int[26];",
"counter",
"new int[26]",
"26",
"String line;",
"line",
"char ch = 'a';",
"ch",
"'a'",
"while((line = br.readLine())!=null){\n\t\t\t\tchar[] c = line.toCharArray();\n\t\t\t\tfor(int i = 0; i < c.length; i++){\n\t\t\t\t\tif( c[i] >= 'A' && c[i] <= 'z' ){\n\t\t\t\t\t\tif( Character.isUpperCase(c[i]) ){\n\t\t\t\t\t\t\tc[i] = Character.toLowerCase(c[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint num = c[i] - 'a';\n\t\t\t\t\t\tcounter[num]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"(line = br.readLine())!=null",
"(line = br.readLine())",
"line",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\t\t\t\tchar[] c = line.toCharArray();\n\t\t\t\tfor(int i = 0; i < c.length; i++){\n\t\t\t\t\tif( c[i] >= 'A' && c[i] <= 'z' ){\n\t\t\t\t\t\tif( Character.isUpperCase(c[i]) ){\n\t\t\t\t\t\t\tc[i] = Character.toLowerCase(c[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint num = c[i] - 'a';\n\t\t\t\t\t\tcounter[num]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"char[] c = line.toCharArray();",
"c",
"line.toCharArray()",
"line.toCharArray",
"line",
"for(int i = 0; i < c.length; i++){\n\t\t\t\t\tif( c[i] >= 'A' && c[i] <= 'z' ){\n\t\t\t\t\t\tif( Character.isUpperCase(c[i]) ){\n\t\t\t\t\t\t\tc[i] = Character.toLowerCase(c[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint num = c[i] - 'a';\n\t\t\t\t\t\tcounter[num]++;\n\t\t\t\t\t}\n\t\t\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\t\t\tif( c[i] >= 'A' && c[i] <= 'z' ){\n\t\t\t\t\t\tif( Character.isUpperCase(c[i]) ){\n\t\t\t\t\t\t\tc[i] = Character.toLowerCase(c[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint num = c[i] - 'a';\n\t\t\t\t\t\tcounter[num]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif( c[i] >= 'A' && c[i] <= 'z' ){\n\t\t\t\t\t\tif( Character.isUpperCase(c[i]) ){\n\t\t\t\t\t\t\tc[i] = Character.toLowerCase(c[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint num = c[i] - 'a';\n\t\t\t\t\t\tcounter[num]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"if( c[i] >= 'A' && c[i] <= 'z' ){\n\t\t\t\t\t\tif( Character.isUpperCase(c[i]) ){\n\t\t\t\t\t\t\tc[i] = Character.toLowerCase(c[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint num = c[i] - 'a';\n\t\t\t\t\t\tcounter[num]++;\n\t\t\t\t\t}",
"c[i] >= 'A' && c[i] <= 'z'",
"c[i] >= 'A'",
"c[i]",
"c",
"i",
"'A'",
"c[i] <= 'z'",
"c[i]",
"c",
"i",
"'z'",
"{\n\t\t\t\t\t\tif( Character.isUpperCase(c[i]) ){\n\t\t\t\t\t\t\tc[i] = Character.toLowerCase(c[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint num = c[i] - 'a';\n\t\t\t\t\t\tcounter[num]++;\n\t\t\t\t\t}",
"if( Character.isUpperCase(c[i]) ){\n\t\t\t\t\t\t\tc[i] = Character.toLowerCase(c[i]);\n\t\t\t\t\t\t}",
"Character.isUpperCase(c[i])",
"Character.isUpperCase",
"Character",
"c[i]",
"c",
"i",
"{\n\t\t\t\t\t\t\tc[i] = Character.toLowerCase(c[i]);\n\t\t\t\t\t\t}",
"c[i] = Character.toLowerCase(c[i])",
"c[i]",
"c",
"i",
"Character.toLowerCase(c[i])",
"Character.toLowerCase",
"Character",
"c[i]",
"c",
"i",
"int num = c[i] - 'a';",
"num",
"c[i] - 'a'",
"c[i]",
"c",
"i",
"'a'",
"counter[num]++",
"counter[num]",
"counter",
"num",
"for(int i = 0; i < counter.length; i++){\n\t\t\t\tSystem.out.println( ch++ + \" : \" + counter[i]);\n\t\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\t\tSystem.out.println( ch++ + \" : \" + counter[i]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.println( ch++ + \" : \" + counter[i]);\n\t\t\t}",
"System.out.println( ch++ + \" : \" + counter[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"ch++ + \" : \" + counter[i]",
"ch++ + \" : \" + counter[i]",
"ch++",
"ch",
"\" : \"",
"counter[i]",
"counter",
"i",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint[] counter = new int[26];\n\t\t\tString line; \n\t\t\t//line = br.readLine();\n\t\t\tchar ch = 'a';\n\t\t\t//char[] c = line.toCharArray();\n\t\t\twhile((line = br.readLine())!=null){\n\t\t\t\tchar[] c = line.toCharArray();\n\t\t\t\tfor(int i = 0; i < c.length; i++){\n\t\t\t\t\tif( c[i] >= 'A' && c[i] <= 'z' ){\n\t\t\t\t\t\tif( Character.isUpperCase(c[i]) ){\n\t\t\t\t\t\t\tc[i] = Character.toLowerCase(c[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint num = c[i] - 'a';\n\t\t\t\t\t\tcounter[num]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < counter.length; i++){\n\t\t\t\tSystem.out.println( ch++ + \" : \" + counter[i]);\n\t\t\t}\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint[] counter = new int[26];\n\t\t\tString line; \n\t\t\t//line = br.readLine();\n\t\t\tchar ch = 'a';\n\t\t\t//char[] c = line.toCharArray();\n\t\t\twhile((line = br.readLine())!=null){\n\t\t\t\tchar[] c = line.toCharArray();\n\t\t\t\tfor(int i = 0; i < c.length; i++){\n\t\t\t\t\tif( c[i] >= 'A' && c[i] <= 'z' ){\n\t\t\t\t\t\tif( Character.isUpperCase(c[i]) ){\n\t\t\t\t\t\t\tc[i] = Character.toLowerCase(c[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint num = c[i] - 'a';\n\t\t\t\t\t\tcounter[num]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < counter.length; i++){\n\t\t\t\tSystem.out.println( ch++ + \" : \" + counter[i]);\n\t\t\t}\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class Main{
public static void main(String[] args) throws IOException{
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
int[] counter = new int[26];
String line;
//line = br.readLine();
char ch = 'a';
//char[] c = line.toCharArray();
while((line = br.readLine())!=null){
char[] c = line.toCharArray();
for(int i = 0; i < c.length; i++){
if( c[i] >= 'A' && c[i] <= 'z' ){
if( Character.isUpperCase(c[i]) ){
c[i] = Character.toLowerCase(c[i]);
}
int num = c[i] - 'a';
counter[num]++;
}
}
}
for(int i = 0; i < counter.length; i++){
System.out.println( ch++ + " : " + counter[i]);
}
}catch(IOException e){
System.out.println(e);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
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,
0,
13,
4,
18,
13,
13,
2,
13,
17,
14,
2,
4,
18,
13,
4,
18,
13,
13,
2,
13,
17,
4,
18,
13,
4,
18,
13,
13,
2,
13,
17,
30,
40,
18,
13,
13,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
4,
18,
4,
18,
4,
18,
13,
4,
18,
13,
13,
2,
13,
17,
17,
4,
18,
13,
18,
13,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
160,
11
],
[
160,
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
],
[
28,
30
],
[
14,
31
],
[
31,
32
],
[
31,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
14,
37
],
[
37,
38
],
[
14,
39
],
[
39,
40
],
[
14,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
42,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
50,
60
],
[
60,
61
],
[
61,
62
],
[
50,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
65,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
80,
84
],
[
84,
85
],
[
84,
86
],
[
77,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
92,
96
],
[
96,
97
],
[
96,
98
],
[
88,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
102,
106
],
[
106,
107
],
[
106,
108
],
[
87,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
14,
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
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
136,
140
],
[
140,
141
],
[
140,
142
],
[
131,
143
],
[
129,
144
],
[
144,
145
],
[
145,
146
],
[
144,
147
],
[
147,
148
],
[
147,
149
],
[
127,
150
],
[
14,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
12,
157
],
[
157,
158
],
[
0,
159
],
[
159,
160
],
[
159,
161
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\tint number[] = new int[26];\n\t\tString AlHA = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\t\tString alha = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tString input;\n\t\tString a;\n\n\t\twhile(( input = br.readLine())!=null ){\n\t\t\tfor( i=0 ; i<input.length() ; i++ ){\n\t\t\t\tfor( j=0 ; j<26 ; j++ ){\n\t\t\t\t\ta = input.substring(i, i+1);\n\t\t\t\t\tif( a.equals(AlHA.substring(j, j+1)) || a.equals(alha.substring(j, j+1))){\n\t\t\t\t\t\tnumber[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor( i=0 ; i<26 ; i++ ){\n\t\t\tsb.append(alha.substring(i, i+1)).append(\" : \").append(Integer.toString(number[i])).append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\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\tpublic static void main(String[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\tint number[] = new int[26];\n\t\tString AlHA = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\t\tString alha = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tString input;\n\t\tString a;\n\n\t\twhile(( input = br.readLine())!=null ){\n\t\t\tfor( i=0 ; i<input.length() ; i++ ){\n\t\t\t\tfor( j=0 ; j<26 ; j++ ){\n\t\t\t\t\ta = input.substring(i, i+1);\n\t\t\t\t\tif( a.equals(AlHA.substring(j, j+1)) || a.equals(alha.substring(j, j+1))){\n\t\t\t\t\t\tnumber[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor( i=0 ; i<26 ; i++ ){\n\t\t\tsb.append(alha.substring(i, i+1)).append(\" : \").append(Integer.toString(number[i])).append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}",
"Main",
"public static void main(String[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\tint number[] = new int[26];\n\t\tString AlHA = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\t\tString alha = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tString input;\n\t\tString a;\n\n\t\twhile(( input = br.readLine())!=null ){\n\t\t\tfor( i=0 ; i<input.length() ; i++ ){\n\t\t\t\tfor( j=0 ; j<26 ; j++ ){\n\t\t\t\t\ta = input.substring(i, i+1);\n\t\t\t\t\tif( a.equals(AlHA.substring(j, j+1)) || a.equals(alha.substring(j, j+1))){\n\t\t\t\t\t\tnumber[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor( i=0 ; i<26 ; i++ ){\n\t\t\tsb.append(alha.substring(i, i+1)).append(\" : \").append(Integer.toString(number[i])).append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\tint number[] = new int[26];\n\t\tString AlHA = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\t\tString alha = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tString input;\n\t\tString a;\n\n\t\twhile(( input = br.readLine())!=null ){\n\t\t\tfor( i=0 ; i<input.length() ; i++ ){\n\t\t\t\tfor( j=0 ; j<26 ; j++ ){\n\t\t\t\t\ta = input.substring(i, i+1);\n\t\t\t\t\tif( a.equals(AlHA.substring(j, j+1)) || a.equals(alha.substring(j, j+1))){\n\t\t\t\t\t\tnumber[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor( i=0 ; i<26 ; i++ ){\n\t\t\tsb.append(alha.substring(i, i+1)).append(\" : \").append(Integer.toString(number[i])).append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuffer sb = new StringBuffer();",
"sb",
"new StringBuffer()",
"int number[] = new int[26];",
"number",
"new int[26]",
"26",
"String AlHA = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";",
"AlHA",
"\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"",
"String alha = \"abcdefghijklmnopqrstuvwxyz\";",
"alha",
"\"abcdefghijklmnopqrstuvwxyz\"",
"int i = 0;",
"i",
"0",
"int j = 0;",
"j",
"0",
"String input;",
"input",
"String a;",
"a",
"while(( input = br.readLine())!=null ){\n\t\t\tfor( i=0 ; i<input.length() ; i++ ){\n\t\t\t\tfor( j=0 ; j<26 ; j++ ){\n\t\t\t\t\ta = input.substring(i, i+1);\n\t\t\t\t\tif( a.equals(AlHA.substring(j, j+1)) || a.equals(alha.substring(j, j+1))){\n\t\t\t\t\t\tnumber[j]++;\n\t\t\t\t\t}\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\tfor( i=0 ; i<input.length() ; i++ ){\n\t\t\t\tfor( j=0 ; j<26 ; j++ ){\n\t\t\t\t\ta = input.substring(i, i+1);\n\t\t\t\t\tif( a.equals(AlHA.substring(j, j+1)) || a.equals(alha.substring(j, j+1))){\n\t\t\t\t\t\tnumber[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for( i=0 ; i<input.length() ; i++ ){\n\t\t\t\tfor( j=0 ; j<26 ; j++ ){\n\t\t\t\t\ta = input.substring(i, i+1);\n\t\t\t\t\tif( a.equals(AlHA.substring(j, j+1)) || a.equals(alha.substring(j, j+1))){\n\t\t\t\t\t\tnumber[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"i=0 ;",
"i=0",
"i",
"0",
"i<input.length()",
"i",
"input.length()",
"input.length",
"input",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor( j=0 ; j<26 ; j++ ){\n\t\t\t\t\ta = input.substring(i, i+1);\n\t\t\t\t\tif( a.equals(AlHA.substring(j, j+1)) || a.equals(alha.substring(j, j+1))){\n\t\t\t\t\t\tnumber[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor( j=0 ; j<26 ; j++ ){\n\t\t\t\t\ta = input.substring(i, i+1);\n\t\t\t\t\tif( a.equals(AlHA.substring(j, j+1)) || a.equals(alha.substring(j, j+1))){\n\t\t\t\t\t\tnumber[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"for( j=0 ; j<26 ; j++ ){\n\t\t\t\t\ta = input.substring(i, i+1);\n\t\t\t\t\tif( a.equals(AlHA.substring(j, j+1)) || a.equals(alha.substring(j, j+1))){\n\t\t\t\t\t\tnumber[j]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"j=0 ;",
"j=0",
"j",
"0",
"j<26",
"j",
"26",
"j++",
"j++",
"j",
"{\n\t\t\t\t\ta = input.substring(i, i+1);\n\t\t\t\t\tif( a.equals(AlHA.substring(j, j+1)) || a.equals(alha.substring(j, j+1))){\n\t\t\t\t\t\tnumber[j]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\ta = input.substring(i, i+1);\n\t\t\t\t\tif( a.equals(AlHA.substring(j, j+1)) || a.equals(alha.substring(j, j+1))){\n\t\t\t\t\t\tnumber[j]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"a = input.substring(i, i+1)",
"a",
"input.substring(i, i+1)",
"input.substring",
"input",
"i",
"i+1",
"i",
"1",
"if( a.equals(AlHA.substring(j, j+1)) || a.equals(alha.substring(j, j+1))){\n\t\t\t\t\t\tnumber[j]++;\n\t\t\t\t\t}",
"a.equals(AlHA.substring(j, j+1)) || a.equals(alha.substring(j, j+1))",
"a.equals(AlHA.substring(j, j+1))",
"a.equals",
"a",
"AlHA.substring(j, j+1)",
"AlHA.substring",
"AlHA",
"j",
"j+1",
"j",
"1",
"a.equals(alha.substring(j, j+1))",
"a.equals",
"a",
"alha.substring(j, j+1)",
"alha.substring",
"alha",
"j",
"j+1",
"j",
"1",
"{\n\t\t\t\t\t\tnumber[j]++;\n\t\t\t\t\t}",
"number[j]++",
"number[j]",
"number",
"j",
"for( i=0 ; i<26 ; i++ ){\n\t\t\tsb.append(alha.substring(i, i+1)).append(\" : \").append(Integer.toString(number[i])).append(\"\\n\");\n\t\t}",
"i=0 ;",
"i=0",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tsb.append(alha.substring(i, i+1)).append(\" : \").append(Integer.toString(number[i])).append(\"\\n\");\n\t\t}",
"{\n\t\t\tsb.append(alha.substring(i, i+1)).append(\" : \").append(Integer.toString(number[i])).append(\"\\n\");\n\t\t}",
"sb.append(alha.substring(i, i+1)).append(\" : \").append(Integer.toString(number[i])).append(\"\\n\")",
"sb.append(alha.substring(i, i+1)).append(\" : \").append(Integer.toString(number[i])).append",
"sb.append(alha.substring(i, i+1)).append(\" : \").append(Integer.toString(number[i]))",
"sb.append(alha.substring(i, i+1)).append(\" : \").append",
"sb.append(alha.substring(i, i+1)).append(\" : \")",
"sb.append(alha.substring(i, i+1)).append",
"sb.append(alha.substring(i, i+1))",
"sb.append",
"sb",
"alha.substring(i, i+1)",
"alha.substring",
"alha",
"i",
"i+1",
"i",
"1",
"\" : \"",
"Integer.toString(number[i])",
"Integer.toString",
"Integer",
"number[i]",
"number",
"i",
"\"\\n\"",
"System.out.print(sb)",
"System.out.print",
"System.out",
"System",
"System.out",
"sb",
"String[] age",
"age",
"public class Main {\n\tpublic static void main(String[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\tint number[] = new int[26];\n\t\tString AlHA = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\t\tString alha = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tString input;\n\t\tString a;\n\n\t\twhile(( input = br.readLine())!=null ){\n\t\t\tfor( i=0 ; i<input.length() ; i++ ){\n\t\t\t\tfor( j=0 ; j<26 ; j++ ){\n\t\t\t\t\ta = input.substring(i, i+1);\n\t\t\t\t\tif( a.equals(AlHA.substring(j, j+1)) || a.equals(alha.substring(j, j+1))){\n\t\t\t\t\t\tnumber[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor( i=0 ; i<26 ; i++ ){\n\t\t\tsb.append(alha.substring(i, i+1)).append(\" : \").append(Integer.toString(number[i])).append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\tint number[] = new int[26];\n\t\tString AlHA = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\t\tString alha = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tString input;\n\t\tString a;\n\n\t\twhile(( input = br.readLine())!=null ){\n\t\t\tfor( i=0 ; i<input.length() ; i++ ){\n\t\t\t\tfor( j=0 ; j<26 ; j++ ){\n\t\t\t\t\ta = input.substring(i, i+1);\n\t\t\t\t\tif( a.equals(AlHA.substring(j, j+1)) || a.equals(alha.substring(j, j+1))){\n\t\t\t\t\t\tnumber[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor( i=0 ; i<26 ; i++ ){\n\t\t\tsb.append(alha.substring(i, i+1)).append(\" : \").append(Integer.toString(number[i])).append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] age)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuffer sb = new StringBuffer();
int number[] = new int[26];
String AlHA = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
String alha = "abcdefghijklmnopqrstuvwxyz";
int i = 0;
int j = 0;
String input;
String a;
while(( input = br.readLine())!=null ){
for( i=0 ; i<input.length() ; i++ ){
for( j=0 ; j<26 ; j++ ){
a = input.substring(i, i+1);
if( a.equals(AlHA.substring(j, j+1)) || a.equals(alha.substring(j, j+1))){
number[j]++;
}
}
}
}
for( i=0 ; i<26 ; i++ ){
sb.append(alha.substring(i, i+1)).append(" : ").append(Integer.toString(number[i])).append("\n");
}
System.out.print(sb);
}
} |
[
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,
13,
14,
4,
18,
13,
13,
40,
18,
13,
2,
13,
17,
14,
4,
18,
13,
13,
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,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
97,
5
],
[
97,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
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
],
[
40,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
47,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
58,
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
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
69,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
82,
88
],
[
88,
89
],
[
88,
90
],
[
82,
91
],
[
91,
92
],
[
91,
93
],
[
6,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] cnt = new int[26];\n\t\t\n\t\twhile (sc.hasNext()) {\n\t\t\tString str = sc.nextLine();\n\t\t\t\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tchar c = str.charAt(i);\n\t\t\t\t\n\t\t\t\tif (Character.isUpperCase(c))\n\t\t\t\t\tcnt[c - 'A']++;\n\t\t\t\telse if (Character.isLowerCase(c))\n\t\t\t\t\tcnt[c - 'a']++;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.printf(\"%c : %d\\n\", 'a' + i, cnt[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\tint[] cnt = new int[26];\n\t\t\n\t\twhile (sc.hasNext()) {\n\t\t\tString str = sc.nextLine();\n\t\t\t\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tchar c = str.charAt(i);\n\t\t\t\t\n\t\t\t\tif (Character.isUpperCase(c))\n\t\t\t\t\tcnt[c - 'A']++;\n\t\t\t\telse if (Character.isLowerCase(c))\n\t\t\t\t\tcnt[c - 'a']++;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.printf(\"%c : %d\\n\", 'a' + i, cnt[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] cnt = new int[26];\n\t\t\n\t\twhile (sc.hasNext()) {\n\t\t\tString str = sc.nextLine();\n\t\t\t\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tchar c = str.charAt(i);\n\t\t\t\t\n\t\t\t\tif (Character.isUpperCase(c))\n\t\t\t\t\tcnt[c - 'A']++;\n\t\t\t\telse if (Character.isLowerCase(c))\n\t\t\t\t\tcnt[c - 'a']++;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.printf(\"%c : %d\\n\", 'a' + i, cnt[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] cnt = new int[26];\n\t\t\n\t\twhile (sc.hasNext()) {\n\t\t\tString str = sc.nextLine();\n\t\t\t\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tchar c = str.charAt(i);\n\t\t\t\t\n\t\t\t\tif (Character.isUpperCase(c))\n\t\t\t\t\tcnt[c - 'A']++;\n\t\t\t\telse if (Character.isLowerCase(c))\n\t\t\t\t\tcnt[c - 'a']++;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.printf(\"%c : %d\\n\", 'a' + i, cnt[i]);\n\t\t}\n\t}",
"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\t\t\tString str = sc.nextLine();\n\t\t\t\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tchar c = str.charAt(i);\n\t\t\t\t\n\t\t\t\tif (Character.isUpperCase(c))\n\t\t\t\t\tcnt[c - 'A']++;\n\t\t\t\telse if (Character.isLowerCase(c))\n\t\t\t\t\tcnt[c - 'a']++;\n\t\t\t}\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\tString str = sc.nextLine();\n\t\t\t\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tchar c = str.charAt(i);\n\t\t\t\t\n\t\t\t\tif (Character.isUpperCase(c))\n\t\t\t\t\tcnt[c - 'A']++;\n\t\t\t\telse if (Character.isLowerCase(c))\n\t\t\t\t\tcnt[c - 'a']++;\n\t\t\t}\n\t\t}",
"String str = sc.nextLine();",
"str",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for (int i = 0; i < str.length(); i++) {\n\t\t\t\tchar c = str.charAt(i);\n\t\t\t\t\n\t\t\t\tif (Character.isUpperCase(c))\n\t\t\t\t\tcnt[c - 'A']++;\n\t\t\t\telse if (Character.isLowerCase(c))\n\t\t\t\t\tcnt[c - 'a']++;\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\tchar c = str.charAt(i);\n\t\t\t\t\n\t\t\t\tif (Character.isUpperCase(c))\n\t\t\t\t\tcnt[c - 'A']++;\n\t\t\t\telse if (Character.isLowerCase(c))\n\t\t\t\t\tcnt[c - 'a']++;\n\t\t\t}",
"{\n\t\t\t\tchar c = str.charAt(i);\n\t\t\t\t\n\t\t\t\tif (Character.isUpperCase(c))\n\t\t\t\t\tcnt[c - 'A']++;\n\t\t\t\telse if (Character.isLowerCase(c))\n\t\t\t\t\tcnt[c - 'a']++;\n\t\t\t}",
"char c = str.charAt(i);",
"c",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"if (Character.isUpperCase(c))\n\t\t\t\t\tcnt[c - 'A']++;\n\t\t\t\telse if (Character.isLowerCase(c))\n\t\t\t\t\tcnt[c - 'a']++;",
"Character.isUpperCase(c)",
"Character.isUpperCase",
"Character",
"c",
"cnt[c - 'A']++",
"cnt[c - 'A']",
"cnt",
"c - 'A'",
"c",
"'A'",
"if (Character.isLowerCase(c))\n\t\t\t\t\tcnt[c - 'a']++;",
"Character.isLowerCase(c)",
"Character.isLowerCase",
"Character",
"c",
"cnt[c - 'a']++",
"cnt[c - 'a']",
"cnt",
"c - 'a'",
"c",
"'a'",
"for (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.printf(\"%c : %d\\n\", '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.printf(\"%c : %d\\n\", 'a' + i, cnt[i]);\n\t\t}",
"{\n\t\t\tSystem.out.printf(\"%c : %d\\n\", 'a' + i, cnt[i]);\n\t\t}",
"System.out.printf(\"%c : %d\\n\", 'a' + i, cnt[i])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c : %d\\n\"",
"'a' + i",
"'a'",
"i",
"cnt[i]",
"cnt",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] cnt = new int[26];\n\t\t\n\t\twhile (sc.hasNext()) {\n\t\t\tString str = sc.nextLine();\n\t\t\t\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tchar c = str.charAt(i);\n\t\t\t\t\n\t\t\t\tif (Character.isUpperCase(c))\n\t\t\t\t\tcnt[c - 'A']++;\n\t\t\t\telse if (Character.isLowerCase(c))\n\t\t\t\t\tcnt[c - 'a']++;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.printf(\"%c : %d\\n\", 'a' + i, cnt[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\tint[] cnt = new int[26];\n\t\t\n\t\twhile (sc.hasNext()) {\n\t\t\tString str = sc.nextLine();\n\t\t\t\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tchar c = str.charAt(i);\n\t\t\t\t\n\t\t\t\tif (Character.isUpperCase(c))\n\t\t\t\t\tcnt[c - 'A']++;\n\t\t\t\telse if (Character.isLowerCase(c))\n\t\t\t\t\tcnt[c - 'a']++;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tSystem.out.printf(\"%c : %d\\n\", 'a' + i, cnt[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);
int[] cnt = new int[26];
while (sc.hasNext()) {
String str = sc.nextLine();
for (int i = 0; i < str.length(); i++) {
char c = str.charAt(i);
if (Character.isUpperCase(c))
cnt[c - 'A']++;
else if (Character.isLowerCase(c))
cnt[c - 'a']++;
}
}
for (int i = 0; i < 26; i++) {
System.out.printf("%c : %d\n", 'a' + i, cnt[i]);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
20,
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,
41,
13,
4,
18,
13,
13,
14,
2,
2,
17,
13,
2,
17,
13,
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,
2,
2,
2,
13,
17,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
106,
5
],
[
106,
6
],
[
6,
7
],
[
6,
8
],
[
106,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
11,
14
],
[
14,
15
],
[
11,
16
],
[
16,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
11,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
25,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
11,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
11,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
40,
50
],
[
50,
51
],
[
51,
52
],
[
40,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
54,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
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
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
9,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
]
| [
"import java.util.*;\npublic class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \tString moji = \"\";\n \tint count[] = new int[26];\n\t while(sc.hasNextLine()) {\n\t \tmoji += sc.nextLine();\n\t }\n\t moji = moji.toLowerCase();\n\t \tfor(i = 0; i < moji.length(); i++) {\n\t \t\tchar c = moji.charAt(i);\n\t \t\tif('a' <= c && 'z' >= c) {\n\t \t\t\tcount[c - 'a']++;\n\t \t\t}\n\t \t}\n \tfor(i = 0; i < 26; i++) {\n \t\tSystem.out.println((char)(i + 'a') + \" : \" + count[i]);\n \t}\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \tString moji = \"\";\n \tint count[] = new int[26];\n\t while(sc.hasNextLine()) {\n\t \tmoji += sc.nextLine();\n\t }\n\t moji = moji.toLowerCase();\n\t \tfor(i = 0; i < moji.length(); i++) {\n\t \t\tchar c = moji.charAt(i);\n\t \t\tif('a' <= c && 'z' >= c) {\n\t \t\t\tcount[c - 'a']++;\n\t \t\t}\n\t \t}\n \tfor(i = 0; i < 26; i++) {\n \t\tSystem.out.println((char)(i + 'a') + \" : \" + count[i]);\n \t}\n }\n}",
"Main",
"public static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \tString moji = \"\";\n \tint count[] = new int[26];\n\t while(sc.hasNextLine()) {\n\t \tmoji += sc.nextLine();\n\t }\n\t moji = moji.toLowerCase();\n\t \tfor(i = 0; i < moji.length(); i++) {\n\t \t\tchar c = moji.charAt(i);\n\t \t\tif('a' <= c && 'z' >= c) {\n\t \t\t\tcount[c - 'a']++;\n\t \t\t}\n\t \t}\n \tfor(i = 0; i < 26; i++) {\n \t\tSystem.out.println((char)(i + 'a') + \" : \" + count[i]);\n \t}\n }",
"main",
"{\n \tint i, j, k;\n \tString moji = \"\";\n \tint count[] = new int[26];\n\t while(sc.hasNextLine()) {\n\t \tmoji += sc.nextLine();\n\t }\n\t moji = moji.toLowerCase();\n\t \tfor(i = 0; i < moji.length(); i++) {\n\t \t\tchar c = moji.charAt(i);\n\t \t\tif('a' <= c && 'z' >= c) {\n\t \t\t\tcount[c - 'a']++;\n\t \t\t}\n\t \t}\n \tfor(i = 0; i < 26; i++) {\n \t\tSystem.out.println((char)(i + 'a') + \" : \" + count[i]);\n \t}\n }",
"int i",
"i",
"j",
"j",
"k;",
"k",
"String moji = \"\";",
"moji",
"\"\"",
"int count[] = new int[26];",
"count",
"new int[26]",
"26",
"while(sc.hasNextLine()) {\n\t \tmoji += sc.nextLine();\n\t }",
"sc.hasNextLine()",
"sc.hasNextLine",
"sc",
"{\n\t \tmoji += sc.nextLine();\n\t }",
"moji += sc.nextLine()",
"moji",
"sc.nextLine()",
"sc.nextLine",
"sc",
"moji = moji.toLowerCase()",
"moji",
"moji.toLowerCase()",
"moji.toLowerCase",
"moji",
"for(i = 0; i < moji.length(); i++) {\n\t \t\tchar c = moji.charAt(i);\n\t \t\tif('a' <= c && 'z' >= c) {\n\t \t\t\tcount[c - 'a']++;\n\t \t\t}\n\t \t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < moji.length()",
"i",
"moji.length()",
"moji.length",
"moji",
"i++",
"i++",
"i",
"{\n\t \t\tchar c = moji.charAt(i);\n\t \t\tif('a' <= c && 'z' >= c) {\n\t \t\t\tcount[c - 'a']++;\n\t \t\t}\n\t \t}",
"{\n\t \t\tchar c = moji.charAt(i);\n\t \t\tif('a' <= c && 'z' >= c) {\n\t \t\t\tcount[c - 'a']++;\n\t \t\t}\n\t \t}",
"char c = moji.charAt(i);",
"c",
"moji.charAt(i)",
"moji.charAt",
"moji",
"i",
"if('a' <= c && 'z' >= c) {\n\t \t\t\tcount[c - 'a']++;\n\t \t\t}",
"'a' <= c && 'z' >= c",
"'a' <= c",
"'a'",
"c",
"'z' >= c",
"'z'",
"c",
"{\n\t \t\t\tcount[c - 'a']++;\n\t \t\t}",
"count[c - 'a']++",
"count[c - 'a']",
"count",
"c - 'a'",
"c",
"'a'",
"for(i = 0; i < 26; i++) {\n \t\tSystem.out.println((char)(i + 'a') + \" : \" + count[i]);\n \t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n \t\tSystem.out.println((char)(i + 'a') + \" : \" + count[i]);\n \t}",
"{\n \t\tSystem.out.println((char)(i + 'a') + \" : \" + count[i]);\n \t}",
"System.out.println((char)(i + 'a') + \" : \" + count[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)(i + 'a') + \" : \" + count[i]",
"(char)(i + 'a') + \" : \" + count[i]",
"(char)(i + 'a')",
"i",
"'a'",
"\" : \"",
"count[i]",
"count",
"i",
"String[] args",
"args",
"public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \tString moji = \"\";\n \tint count[] = new int[26];\n\t while(sc.hasNextLine()) {\n\t \tmoji += sc.nextLine();\n\t }\n\t moji = moji.toLowerCase();\n\t \tfor(i = 0; i < moji.length(); i++) {\n\t \t\tchar c = moji.charAt(i);\n\t \t\tif('a' <= c && 'z' >= c) {\n\t \t\t\tcount[c - 'a']++;\n\t \t\t}\n\t \t}\n \tfor(i = 0; i < 26; i++) {\n \t\tSystem.out.println((char)(i + 'a') + \" : \" + count[i]);\n \t}\n }\n}",
"public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \tString moji = \"\";\n \tint count[] = new int[26];\n\t while(sc.hasNextLine()) {\n\t \tmoji += sc.nextLine();\n\t }\n\t moji = moji.toLowerCase();\n\t \tfor(i = 0; i < moji.length(); i++) {\n\t \t\tchar c = moji.charAt(i);\n\t \t\tif('a' <= c && 'z' >= c) {\n\t \t\t\tcount[c - 'a']++;\n\t \t\t}\n\t \t}\n \tfor(i = 0; i < 26; i++) {\n \t\tSystem.out.println((char)(i + 'a') + \" : \" + count[i]);\n \t}\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static Scanner sc = new Scanner(System.in);
public static void main(String[] args) throws Exception {
int i, j, k;
String moji = "";
int count[] = new int[26];
while(sc.hasNextLine()) {
moji += sc.nextLine();
}
moji = moji.toLowerCase();
for(i = 0; i < moji.length(); i++) {
char c = moji.charAt(i);
if('a' <= c && 'z' >= c) {
count[c - 'a']++;
}
}
for(i = 0; i < 26; i++) {
System.out.println((char)(i + 'a') + " : " + count[i]);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
30,
41,
13,
4,
18,
4,
13,
41,
13,
4,
18,
13,
17,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
28,
13,
13,
30,
30,
14,
2,
2,
13,
13,
2,
13,
13,
30,
40,
18,
13,
2,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
2,
13,
13,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
42,
2,
13,
17,
30,
4,
18,
13,
2,
13,
4,
18,
13,
17,
0,
13,
4,
18,
13,
29,
4,
18,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
147,
8
],
[
147,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
15,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
19,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
19,
32
],
[
32,
33
],
[
32,
34
],
[
19,
36
],
[
36,
37
],
[
36,
38
],
[
19,
39
],
[
39,
40
],
[
39,
41
],
[
19,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
19,
60
],
[
60,
61
],
[
60,
62
],
[
60,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
77,
79
],
[
19,
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
],
[
9,
105
],
[
105,
106
],
[
147,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
114,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
128,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
127,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
109,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
0,
146
],
[
146,
147
],
[
146,
148
]
]
| [
"import java.util.Scanner;\nimport java.io.*;\n\n\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n try{\n String s = readAll().toLowerCase();\n byte[] b = s.getBytes(\"US-ASCII\");\n int[] al = new int[26];\n int a = 97;\n int z = 122;\n for(int i = 0; i < 26; i++){\n al[i] = 0;\n }\n\n for(int v: b){\n if(v >= a&& v <= z){\n al[v - a]++;\n }\n }\n for(int i = 0; i < 26; i++){\n System.out.printf(\"%c : %d\\n\", (char) (i + a), al[i]);\n }\n //System.out.printf(\"%s\\n\", s);\n }catch(Exception e){}\n }\n\n public static String readAll() throws IOException {\n StringBuilder builder = new StringBuilder();\n\n try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {\n String string = reader.readLine();\n while(string != null){\n builder.append(string + System.getProperty(\"line.separator\"));\n string = reader.readLine();\n }\n }\n\n return builder.toString();\n}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n try{\n String s = readAll().toLowerCase();\n byte[] b = s.getBytes(\"US-ASCII\");\n int[] al = new int[26];\n int a = 97;\n int z = 122;\n for(int i = 0; i < 26; i++){\n al[i] = 0;\n }\n\n for(int v: b){\n if(v >= a&& v <= z){\n al[v - a]++;\n }\n }\n for(int i = 0; i < 26; i++){\n System.out.printf(\"%c : %d\\n\", (char) (i + a), al[i]);\n }\n //System.out.printf(\"%s\\n\", s);\n }catch(Exception e){}\n }\n\n public static String readAll() throws IOException {\n StringBuilder builder = new StringBuilder();\n\n try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {\n String string = reader.readLine();\n while(string != null){\n builder.append(string + System.getProperty(\"line.separator\"));\n string = reader.readLine();\n }\n }\n\n return builder.toString();\n}\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n try{\n String s = readAll().toLowerCase();\n byte[] b = s.getBytes(\"US-ASCII\");\n int[] al = new int[26];\n int a = 97;\n int z = 122;\n for(int i = 0; i < 26; i++){\n al[i] = 0;\n }\n\n for(int v: b){\n if(v >= a&& v <= z){\n al[v - a]++;\n }\n }\n for(int i = 0; i < 26; i++){\n System.out.printf(\"%c : %d\\n\", (char) (i + a), al[i]);\n }\n //System.out.printf(\"%s\\n\", s);\n }catch(Exception e){}\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n try{\n String s = readAll().toLowerCase();\n byte[] b = s.getBytes(\"US-ASCII\");\n int[] al = new int[26];\n int a = 97;\n int z = 122;\n for(int i = 0; i < 26; i++){\n al[i] = 0;\n }\n\n for(int v: b){\n if(v >= a&& v <= z){\n al[v - a]++;\n }\n }\n for(int i = 0; i < 26; i++){\n System.out.printf(\"%c : %d\\n\", (char) (i + a), al[i]);\n }\n //System.out.printf(\"%s\\n\", s);\n }catch(Exception e){}\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"try{\n String s = readAll().toLowerCase();\n byte[] b = s.getBytes(\"US-ASCII\");\n int[] al = new int[26];\n int a = 97;\n int z = 122;\n for(int i = 0; i < 26; i++){\n al[i] = 0;\n }\n\n for(int v: b){\n if(v >= a&& v <= z){\n al[v - a]++;\n }\n }\n for(int i = 0; i < 26; i++){\n System.out.printf(\"%c : %d\\n\", (char) (i + a), al[i]);\n }\n //System.out.printf(\"%s\\n\", s);\n }catch(Exception e){}",
"catch(Exception e){}",
"Exception e",
"{}",
"{\n String s = readAll().toLowerCase();\n byte[] b = s.getBytes(\"US-ASCII\");\n int[] al = new int[26];\n int a = 97;\n int z = 122;\n for(int i = 0; i < 26; i++){\n al[i] = 0;\n }\n\n for(int v: b){\n if(v >= a&& v <= z){\n al[v - a]++;\n }\n }\n for(int i = 0; i < 26; i++){\n System.out.printf(\"%c : %d\\n\", (char) (i + a), al[i]);\n }\n //System.out.printf(\"%s\\n\", s);\n }",
"String s = readAll().toLowerCase();",
"s",
"readAll().toLowerCase()",
"readAll().toLowerCase",
"readAll()",
"readAll",
"byte[] b = s.getBytes(\"US-ASCII\");",
"b",
"s.getBytes(\"US-ASCII\")",
"s.getBytes",
"s",
"\"US-ASCII\"",
"int[] al = new int[26];",
"al",
"new int[26]",
"26",
"int a = 97;",
"a",
"97",
"int z = 122;",
"z",
"122",
"for(int i = 0; i < 26; i++){\n al[i] = 0;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n al[i] = 0;\n }",
"{\n al[i] = 0;\n }",
"al[i] = 0",
"al[i]",
"al",
"i",
"0",
"for(int v: b){\n if(v >= a&& v <= z){\n al[v - a]++;\n }\n }",
"int v",
"b",
"{\n if(v >= a&& v <= z){\n al[v - a]++;\n }\n }",
"{\n if(v >= a&& v <= z){\n al[v - a]++;\n }\n }",
"if(v >= a&& v <= z){\n al[v - a]++;\n }",
"v >= a&& v <= z",
"v >= a",
"v",
"a",
"v <= z",
"v",
"z",
"{\n al[v - a]++;\n }",
"al[v - a]++",
"al[v - a]",
"al",
"v - a",
"v",
"a",
"for(int i = 0; i < 26; i++){\n System.out.printf(\"%c : %d\\n\", (char) (i + a), al[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n System.out.printf(\"%c : %d\\n\", (char) (i + a), al[i]);\n }",
"{\n System.out.printf(\"%c : %d\\n\", (char) (i + a), al[i]);\n }",
"System.out.printf(\"%c : %d\\n\", (char) (i + a), al[i])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c : %d\\n\"",
"(char) (i + a)",
"i",
"a",
"al[i]",
"al",
"i",
"String[] args",
"args",
"public static String readAll() throws IOException {\n StringBuilder builder = new StringBuilder();\n\n try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {\n String string = reader.readLine();\n while(string != null){\n builder.append(string + System.getProperty(\"line.separator\"));\n string = reader.readLine();\n }\n }\n\n return builder.toString();\n}",
"readAll",
"{\n StringBuilder builder = new StringBuilder();\n\n try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {\n String string = reader.readLine();\n while(string != null){\n builder.append(string + System.getProperty(\"line.separator\"));\n string = reader.readLine();\n }\n }\n\n return builder.toString();\n}",
"StringBuilder builder = new StringBuilder();",
"builder",
"new StringBuilder()",
"try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {\n String string = reader.readLine();\n while(string != null){\n builder.append(string + System.getProperty(\"line.separator\"));\n string = reader.readLine();\n }\n }",
"{\n String string = reader.readLine();\n while(string != null){\n builder.append(string + System.getProperty(\"line.separator\"));\n string = reader.readLine();\n }\n }",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))",
"new BufferedReader(new InputStreamReader(System.in))",
"String string = reader.readLine();",
"string",
"reader.readLine()",
"reader.readLine",
"reader",
"while(string != null){\n builder.append(string + System.getProperty(\"line.separator\"));\n string = reader.readLine();\n }",
"string != null",
"string",
"null",
"{\n builder.append(string + System.getProperty(\"line.separator\"));\n string = reader.readLine();\n }",
"builder.append(string + System.getProperty(\"line.separator\"))",
"builder.append",
"builder",
"string + System.getProperty(\"line.separator\")",
"string",
"System.getProperty(\"line.separator\")",
"System.getProperty",
"System",
"\"line.separator\"",
"string = reader.readLine()",
"string",
"reader.readLine()",
"reader.readLine",
"reader",
"return builder.toString();",
"builder.toString()",
"builder.toString",
"builder",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n try{\n String s = readAll().toLowerCase();\n byte[] b = s.getBytes(\"US-ASCII\");\n int[] al = new int[26];\n int a = 97;\n int z = 122;\n for(int i = 0; i < 26; i++){\n al[i] = 0;\n }\n\n for(int v: b){\n if(v >= a&& v <= z){\n al[v - a]++;\n }\n }\n for(int i = 0; i < 26; i++){\n System.out.printf(\"%c : %d\\n\", (char) (i + a), al[i]);\n }\n //System.out.printf(\"%s\\n\", s);\n }catch(Exception e){}\n }\n\n public static String readAll() throws IOException {\n StringBuilder builder = new StringBuilder();\n\n try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {\n String string = reader.readLine();\n while(string != null){\n builder.append(string + System.getProperty(\"line.separator\"));\n string = reader.readLine();\n }\n }\n\n return builder.toString();\n}\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n try{\n String s = readAll().toLowerCase();\n byte[] b = s.getBytes(\"US-ASCII\");\n int[] al = new int[26];\n int a = 97;\n int z = 122;\n for(int i = 0; i < 26; i++){\n al[i] = 0;\n }\n\n for(int v: b){\n if(v >= a&& v <= z){\n al[v - a]++;\n }\n }\n for(int i = 0; i < 26; i++){\n System.out.printf(\"%c : %d\\n\", (char) (i + a), al[i]);\n }\n //System.out.printf(\"%s\\n\", s);\n }catch(Exception e){}\n }\n\n public static String readAll() throws IOException {\n StringBuilder builder = new StringBuilder();\n\n try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {\n String string = reader.readLine();\n while(string != null){\n builder.append(string + System.getProperty(\"line.separator\"));\n string = reader.readLine();\n }\n }\n\n return builder.toString();\n}\n}",
"Main"
]
| import java.util.Scanner;
import java.io.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
try{
String s = readAll().toLowerCase();
byte[] b = s.getBytes("US-ASCII");
int[] al = new int[26];
int a = 97;
int z = 122;
for(int i = 0; i < 26; i++){
al[i] = 0;
}
for(int v: b){
if(v >= a&& v <= z){
al[v - a]++;
}
}
for(int i = 0; i < 26; i++){
System.out.printf("%c : %d\n", (char) (i + a), al[i]);
}
//System.out.printf("%s\n", s);
}catch(Exception e){}
}
public static String readAll() throws IOException {
StringBuilder builder = new StringBuilder();
try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {
String string = reader.readLine();
while(string != null){
builder.append(string + System.getProperty("line.separator"));
string = reader.readLine();
}
}
return builder.toString();
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
41,
13,
41,
13,
17,
0,
13,
20,
41,
13,
20,
17,
41,
13,
41,
13,
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,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
30,
9,
0,
13,
2,
13,
17,
40,
18,
13,
13,
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
],
[
118,
5
],
[
118,
6
],
[
6,
7
],
[
118,
8
],
[
8,
9
],
[
8,
10
],
[
10,
11
],
[
11,
12
],
[
10,
13
],
[
13,
14
],
[
13,
15
],
[
10,
16
],
[
16,
17
],
[
16,
18
],
[
10,
19
],
[
19,
20
],
[
19,
21
],
[
10,
23
],
[
23,
24
],
[
10,
25
],
[
25,
26
],
[
10,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
37,
47
],
[
47,
48
],
[
48,
49
],
[
37,
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
],
[
67,
69
],
[
58,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
70,
79
],
[
79,
80
],
[
51,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
51,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
10,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
90,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
103,
109
],
[
109,
110
],
[
109,
111
],
[
103,
112
],
[
112,
113
],
[
112,
114
],
[
8,
115
],
[
115,
116
],
[
0,
117
],
[
117,
118
],
[
117,
119
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static Scanner sc;\n\tpublic static void main(String[] args) {\n\t\tint p;\n\t\tint i=0;\n sc =new Scanner(System.in); \n\t\tint count[] = new int[26];\n\t\tString str;\n\t\tchar c;\n\t\t\n\t \n\t\twhile(sc.hasNext()){\n\t\t\tstr=sc.next();\n\t\t\tfor(int j=0;j<str.length();j++) {\n\t\t\t\tc=str.charAt(j);\n\t\t\t\tif(c>='A'&&c<='Z') {\n\t\t\t\t\tc+=32;\n\t\t\t\t}else if(c>='a'&&c<='z') {\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tp= c-'a';\n\t\t\t\tcount[p]++;\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<26;i++) {\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+'a',count[i]);\n\t\t}\n\t}\n\t\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static Scanner sc;\n\tpublic static void main(String[] args) {\n\t\tint p;\n\t\tint i=0;\n sc =new Scanner(System.in); \n\t\tint count[] = new int[26];\n\t\tString str;\n\t\tchar c;\n\t\t\n\t \n\t\twhile(sc.hasNext()){\n\t\t\tstr=sc.next();\n\t\t\tfor(int j=0;j<str.length();j++) {\n\t\t\t\tc=str.charAt(j);\n\t\t\t\tif(c>='A'&&c<='Z') {\n\t\t\t\t\tc+=32;\n\t\t\t\t}else if(c>='a'&&c<='z') {\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tp= c-'a';\n\t\t\t\tcount[p]++;\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<26;i++) {\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+'a',count[i]);\n\t\t}\n\t}\n\t\n}",
"Main",
"public static Scanner sc;",
"sc",
"public static void main(String[] args) {\n\t\tint p;\n\t\tint i=0;\n sc =new Scanner(System.in); \n\t\tint count[] = new int[26];\n\t\tString str;\n\t\tchar c;\n\t\t\n\t \n\t\twhile(sc.hasNext()){\n\t\t\tstr=sc.next();\n\t\t\tfor(int j=0;j<str.length();j++) {\n\t\t\t\tc=str.charAt(j);\n\t\t\t\tif(c>='A'&&c<='Z') {\n\t\t\t\t\tc+=32;\n\t\t\t\t}else if(c>='a'&&c<='z') {\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tp= c-'a';\n\t\t\t\tcount[p]++;\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<26;i++) {\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+'a',count[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tint p;\n\t\tint i=0;\n sc =new Scanner(System.in); \n\t\tint count[] = new int[26];\n\t\tString str;\n\t\tchar c;\n\t\t\n\t \n\t\twhile(sc.hasNext()){\n\t\t\tstr=sc.next();\n\t\t\tfor(int j=0;j<str.length();j++) {\n\t\t\t\tc=str.charAt(j);\n\t\t\t\tif(c>='A'&&c<='Z') {\n\t\t\t\t\tc+=32;\n\t\t\t\t}else if(c>='a'&&c<='z') {\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tp= c-'a';\n\t\t\t\tcount[p]++;\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<26;i++) {\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+'a',count[i]);\n\t\t}\n\t}",
"int p;",
"p",
"int i=0;",
"i",
"0",
"sc =new Scanner(System.in)",
"sc",
"new Scanner(System.in)",
"int count[] = new int[26];",
"count",
"new int[26]",
"26",
"String str;",
"str",
"char c;",
"c",
"while(sc.hasNext()){\n\t\t\tstr=sc.next();\n\t\t\tfor(int j=0;j<str.length();j++) {\n\t\t\t\tc=str.charAt(j);\n\t\t\t\tif(c>='A'&&c<='Z') {\n\t\t\t\t\tc+=32;\n\t\t\t\t}else if(c>='a'&&c<='z') {\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tp= c-'a';\n\t\t\t\tcount[p]++;\n\t\t\t}\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\tstr=sc.next();\n\t\t\tfor(int j=0;j<str.length();j++) {\n\t\t\t\tc=str.charAt(j);\n\t\t\t\tif(c>='A'&&c<='Z') {\n\t\t\t\t\tc+=32;\n\t\t\t\t}else if(c>='a'&&c<='z') {\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tp= c-'a';\n\t\t\t\tcount[p]++;\n\t\t\t}\n\t\t}",
"str=sc.next()",
"str",
"sc.next()",
"sc.next",
"sc",
"for(int j=0;j<str.length();j++) {\n\t\t\t\tc=str.charAt(j);\n\t\t\t\tif(c>='A'&&c<='Z') {\n\t\t\t\t\tc+=32;\n\t\t\t\t}else if(c>='a'&&c<='z') {\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tp= c-'a';\n\t\t\t\tcount[p]++;\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\tc=str.charAt(j);\n\t\t\t\tif(c>='A'&&c<='Z') {\n\t\t\t\t\tc+=32;\n\t\t\t\t}else if(c>='a'&&c<='z') {\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tp= c-'a';\n\t\t\t\tcount[p]++;\n\t\t\t}",
"{\n\t\t\t\tc=str.charAt(j);\n\t\t\t\tif(c>='A'&&c<='Z') {\n\t\t\t\t\tc+=32;\n\t\t\t\t}else if(c>='a'&&c<='z') {\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tp= c-'a';\n\t\t\t\tcount[p]++;\n\t\t\t}",
"c=str.charAt(j)",
"c",
"str.charAt(j)",
"str.charAt",
"str",
"j",
"if(c>='A'&&c<='Z') {\n\t\t\t\t\tc+=32;\n\t\t\t\t}else if(c>='a'&&c<='z') {\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"c>='A'&&c<='Z'",
"c>='A'",
"c",
"'A'",
"c<='Z'",
"c",
"'Z'",
"{\n\t\t\t\t\tc+=32;\n\t\t\t\t}",
"c+=32",
"c",
"32",
"if(c>='a'&&c<='z') {\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"c>='a'&&c<='z'",
"c>='a'",
"c",
"'a'",
"c<='z'",
"c",
"'z'",
"{\n\t\t\t\t\t\n\t\t\t\t}",
"{\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"continue;",
"p= c-'a'",
"p",
"c-'a'",
"c",
"'a'",
"count[p]++",
"count[p]",
"count",
"p",
"for(i=0;i<26;i++) {\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+'a',count[i]);\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+'a',count[i]);\n\t\t}",
"{\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+'a',count[i]);\n\t\t}",
"System.out.printf(\"%c : %d\\n\",i+'a',count[i])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c : %d\\n\"",
"i+'a'",
"i",
"'a'",
"count[i]",
"count",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static Scanner sc;\n\tpublic static void main(String[] args) {\n\t\tint p;\n\t\tint i=0;\n sc =new Scanner(System.in); \n\t\tint count[] = new int[26];\n\t\tString str;\n\t\tchar c;\n\t\t\n\t \n\t\twhile(sc.hasNext()){\n\t\t\tstr=sc.next();\n\t\t\tfor(int j=0;j<str.length();j++) {\n\t\t\t\tc=str.charAt(j);\n\t\t\t\tif(c>='A'&&c<='Z') {\n\t\t\t\t\tc+=32;\n\t\t\t\t}else if(c>='a'&&c<='z') {\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tp= c-'a';\n\t\t\t\tcount[p]++;\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<26;i++) {\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+'a',count[i]);\n\t\t}\n\t}\n\t\n}",
"public class Main {\n\tpublic static Scanner sc;\n\tpublic static void main(String[] args) {\n\t\tint p;\n\t\tint i=0;\n sc =new Scanner(System.in); \n\t\tint count[] = new int[26];\n\t\tString str;\n\t\tchar c;\n\t\t\n\t \n\t\twhile(sc.hasNext()){\n\t\t\tstr=sc.next();\n\t\t\tfor(int j=0;j<str.length();j++) {\n\t\t\t\tc=str.charAt(j);\n\t\t\t\tif(c>='A'&&c<='Z') {\n\t\t\t\t\tc+=32;\n\t\t\t\t}else if(c>='a'&&c<='z') {\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tp= c-'a';\n\t\t\t\tcount[p]++;\n\t\t\t}\n\t\t}\n\t\tfor(i=0;i<26;i++) {\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+'a',count[i]);\n\t\t}\n\t}\n\t\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static Scanner sc;
public static void main(String[] args) {
int p;
int i=0;
sc =new Scanner(System.in);
int count[] = new int[26];
String str;
char c;
while(sc.hasNext()){
str=sc.next();
for(int j=0;j<str.length();j++) {
c=str.charAt(j);
if(c>='A'&&c<='Z') {
c+=32;
}else if(c>='a'&&c<='z') {
}else {
continue;
}
p= c-'a';
count[p]++;
}
}
for(i=0;i<26;i++) {
System.out.printf("%c : %d\n",i+'a',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,
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,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
35,
13,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
17,
1,
40,
18,
13,
17,
3,
34,
1,
3,
11,
1,
0,
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
],
[
335,
5
],
[
335,
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
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
8,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
54,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
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
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
84,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
91,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
91,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
91,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
91,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
91,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
91,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
143,
148
],
[
91,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
91,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
159,
164
],
[
91,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
91,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
175,
180
],
[
91,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
183,
188
],
[
91,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
191,
196
],
[
91,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
199,
204
],
[
91,
205
],
[
205,
206
],
[
205,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
207,
212
],
[
91,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
215,
220
],
[
91,
221
],
[
221,
222
],
[
221,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
223,
228
],
[
91,
229
],
[
229,
230
],
[
229,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
231,
236
],
[
91,
237
],
[
237,
238
],
[
237,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
239,
244
],
[
91,
245
],
[
245,
246
],
[
245,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
247,
252
],
[
91,
253
],
[
253,
254
],
[
253,
255
],
[
255,
256
],
[
256,
257
],
[
257,
258
],
[
257,
259
],
[
255,
260
],
[
91,
261
],
[
261,
262
],
[
261,
263
],
[
263,
264
],
[
264,
265
],
[
265,
266
],
[
265,
267
],
[
263,
268
],
[
91,
269
],
[
269,
270
],
[
269,
271
],
[
271,
272
],
[
272,
273
],
[
273,
274
],
[
273,
275
],
[
271,
276
],
[
91,
277
],
[
277,
278
],
[
277,
279
],
[
279,
280
],
[
280,
281
],
[
281,
282
],
[
281,
283
],
[
279,
284
],
[
91,
285
],
[
285,
286
],
[
285,
287
],
[
287,
288
],
[
288,
289
],
[
289,
290
],
[
289,
291
],
[
287,
292
],
[
91,
293
],
[
293,
294
],
[
293,
295
],
[
295,
296
],
[
296,
297
],
[
297,
298
],
[
297,
299
],
[
295,
300
],
[
91,
301
],
[
301,
302
],
[
302,
303
],
[
8,
304
],
[
304,
305
],
[
305,
306
],
[
306,
307
],
[
306,
308
],
[
304,
309
],
[
309,
310
],
[
309,
311
],
[
304,
312
],
[
312,
313
],
[
313,
314
],
[
304,
315
],
[
316,
316
],
[
316,
317
],
[
317,
318
],
[
318,
319
],
[
319,
320
],
[
319,
321
],
[
317,
322
],
[
323,
323
],
[
323,
324
],
[
324,
325
],
[
325,
326
],
[
324,
327
],
[
323,
328
],
[
323,
329
],
[
329,
330
],
[
329,
331
],
[
6,
332
],
[
332,
333
],
[
0,
334
],
[
334,
335
],
[
334,
336
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n, i, count[] = new int[26];\n\t\tString str = \"\", str1=\"\", eng = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tchar c;\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\tstr1=scan.next();\n\t\t\tstr+=str1;\n\t\t}\n\t\tstr = str.toLowerCase();\n\t\tn = str.length();\n\t\tfor (i = 0; i < 26; i++) {\n\t\t\tcount[i] = 0;\n\t\t}\n\t\tfor (i = 0; i < n; i++) {\n\t\t\tc = str.charAt(i);\n\t\t\tswitch (c) {\n\t\t\tcase 'a':\n\t\t\t\tcount[0]++;\n\t\t\t\tbreak;\n\t\t\tcase 'b':\n\t\t\t\tcount[1]++;\n\t\t\t\tbreak;\n\t\t\tcase 'c':\n\t\t\t\tcount[2]++;\n\t\t\t\tbreak;\n\t\t\tcase 'd':\n\t\t\t\tcount[3]++;\n\t\t\t\tbreak;\n\t\t\tcase 'e':\n\t\t\t\tcount[4]++;\n\t\t\t\tbreak;\n\t\t\tcase 'f':\n\t\t\t\tcount[5]++;\n\t\t\t\tbreak;\n\t\t\tcase 'g':\n\t\t\t\tcount[6]++;\n\t\t\t\tbreak;\n\t\t\tcase 'h':\n\t\t\t\tcount[7]++;\n\t\t\t\tbreak;\n\t\t\tcase 'i':\n\t\t\t\tcount[8]++;\n\t\t\t\tbreak;\n\t\t\tcase 'j':\n\t\t\t\tcount[9]++;\n\t\t\t\tbreak;\n\t\t\tcase 'k':\n\t\t\t\tcount[10]++;\n\t\t\t\tbreak;\n\t\t\tcase 'l':\n\t\t\t\tcount[11]++;\n\t\t\t\tbreak;\n\t\t\tcase 'm':\n\t\t\t\tcount[12]++;\n\t\t\t\tbreak;\n\t\t\tcase 'n':\n\t\t\t\tcount[13]++;\n\t\t\t\tbreak;\n\t\t\tcase 'o':\n\t\t\t\tcount[14]++;\n\t\t\t\tbreak;\n\t\t\tcase 'p':\n\t\t\t\tcount[15]++;\n\t\t\t\tbreak;\n\t\t\tcase 'q':\n\t\t\t\tcount[16]++;\n\t\t\t\tbreak;\n\t\t\tcase 'r':\n\t\t\t\tcount[17]++;\n\t\t\t\tbreak;\n\t\t\tcase 's':\n\t\t\t\tcount[18]++;\n\t\t\t\tbreak;\n\t\t\tcase 't':\n\t\t\t\tcount[19]++;\n\t\t\t\tbreak;\n\t\t\tcase 'u':\n\t\t\t\tcount[20]++;\n\t\t\t\tbreak;\n\t\t\tcase 'v':\n\t\t\t\tcount[21]++;\n\t\t\t\tbreak;\n\t\t\tcase 'w':\n\t\t\t\tcount[22]++;\n\t\t\t\tbreak;\n\t\t\tcase 'x':\n\t\t\t\tcount[23]++;\n\t\t\t\tbreak;\n\t\t\tcase 'y':\n\t\t\t\tcount[24]++;\n\t\t\t\tbreak;\n\t\t\tcase 'z':\n\t\t\t\tcount[25]++;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(eng.charAt(i) + \" : \" + count[i]);\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\tScanner scan = new Scanner(System.in);\n\t\tint n, i, count[] = new int[26];\n\t\tString str = \"\", str1=\"\", eng = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tchar c;\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\tstr1=scan.next();\n\t\t\tstr+=str1;\n\t\t}\n\t\tstr = str.toLowerCase();\n\t\tn = str.length();\n\t\tfor (i = 0; i < 26; i++) {\n\t\t\tcount[i] = 0;\n\t\t}\n\t\tfor (i = 0; i < n; i++) {\n\t\t\tc = str.charAt(i);\n\t\t\tswitch (c) {\n\t\t\tcase 'a':\n\t\t\t\tcount[0]++;\n\t\t\t\tbreak;\n\t\t\tcase 'b':\n\t\t\t\tcount[1]++;\n\t\t\t\tbreak;\n\t\t\tcase 'c':\n\t\t\t\tcount[2]++;\n\t\t\t\tbreak;\n\t\t\tcase 'd':\n\t\t\t\tcount[3]++;\n\t\t\t\tbreak;\n\t\t\tcase 'e':\n\t\t\t\tcount[4]++;\n\t\t\t\tbreak;\n\t\t\tcase 'f':\n\t\t\t\tcount[5]++;\n\t\t\t\tbreak;\n\t\t\tcase 'g':\n\t\t\t\tcount[6]++;\n\t\t\t\tbreak;\n\t\t\tcase 'h':\n\t\t\t\tcount[7]++;\n\t\t\t\tbreak;\n\t\t\tcase 'i':\n\t\t\t\tcount[8]++;\n\t\t\t\tbreak;\n\t\t\tcase 'j':\n\t\t\t\tcount[9]++;\n\t\t\t\tbreak;\n\t\t\tcase 'k':\n\t\t\t\tcount[10]++;\n\t\t\t\tbreak;\n\t\t\tcase 'l':\n\t\t\t\tcount[11]++;\n\t\t\t\tbreak;\n\t\t\tcase 'm':\n\t\t\t\tcount[12]++;\n\t\t\t\tbreak;\n\t\t\tcase 'n':\n\t\t\t\tcount[13]++;\n\t\t\t\tbreak;\n\t\t\tcase 'o':\n\t\t\t\tcount[14]++;\n\t\t\t\tbreak;\n\t\t\tcase 'p':\n\t\t\t\tcount[15]++;\n\t\t\t\tbreak;\n\t\t\tcase 'q':\n\t\t\t\tcount[16]++;\n\t\t\t\tbreak;\n\t\t\tcase 'r':\n\t\t\t\tcount[17]++;\n\t\t\t\tbreak;\n\t\t\tcase 's':\n\t\t\t\tcount[18]++;\n\t\t\t\tbreak;\n\t\t\tcase 't':\n\t\t\t\tcount[19]++;\n\t\t\t\tbreak;\n\t\t\tcase 'u':\n\t\t\t\tcount[20]++;\n\t\t\t\tbreak;\n\t\t\tcase 'v':\n\t\t\t\tcount[21]++;\n\t\t\t\tbreak;\n\t\t\tcase 'w':\n\t\t\t\tcount[22]++;\n\t\t\t\tbreak;\n\t\t\tcase 'x':\n\t\t\t\tcount[23]++;\n\t\t\t\tbreak;\n\t\t\tcase 'y':\n\t\t\t\tcount[24]++;\n\t\t\t\tbreak;\n\t\t\tcase 'z':\n\t\t\t\tcount[25]++;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(eng.charAt(i) + \" : \" + count[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n, i, count[] = new int[26];\n\t\tString str = \"\", str1=\"\", eng = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tchar c;\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\tstr1=scan.next();\n\t\t\tstr+=str1;\n\t\t}\n\t\tstr = str.toLowerCase();\n\t\tn = str.length();\n\t\tfor (i = 0; i < 26; i++) {\n\t\t\tcount[i] = 0;\n\t\t}\n\t\tfor (i = 0; i < n; i++) {\n\t\t\tc = str.charAt(i);\n\t\t\tswitch (c) {\n\t\t\tcase 'a':\n\t\t\t\tcount[0]++;\n\t\t\t\tbreak;\n\t\t\tcase 'b':\n\t\t\t\tcount[1]++;\n\t\t\t\tbreak;\n\t\t\tcase 'c':\n\t\t\t\tcount[2]++;\n\t\t\t\tbreak;\n\t\t\tcase 'd':\n\t\t\t\tcount[3]++;\n\t\t\t\tbreak;\n\t\t\tcase 'e':\n\t\t\t\tcount[4]++;\n\t\t\t\tbreak;\n\t\t\tcase 'f':\n\t\t\t\tcount[5]++;\n\t\t\t\tbreak;\n\t\t\tcase 'g':\n\t\t\t\tcount[6]++;\n\t\t\t\tbreak;\n\t\t\tcase 'h':\n\t\t\t\tcount[7]++;\n\t\t\t\tbreak;\n\t\t\tcase 'i':\n\t\t\t\tcount[8]++;\n\t\t\t\tbreak;\n\t\t\tcase 'j':\n\t\t\t\tcount[9]++;\n\t\t\t\tbreak;\n\t\t\tcase 'k':\n\t\t\t\tcount[10]++;\n\t\t\t\tbreak;\n\t\t\tcase 'l':\n\t\t\t\tcount[11]++;\n\t\t\t\tbreak;\n\t\t\tcase 'm':\n\t\t\t\tcount[12]++;\n\t\t\t\tbreak;\n\t\t\tcase 'n':\n\t\t\t\tcount[13]++;\n\t\t\t\tbreak;\n\t\t\tcase 'o':\n\t\t\t\tcount[14]++;\n\t\t\t\tbreak;\n\t\t\tcase 'p':\n\t\t\t\tcount[15]++;\n\t\t\t\tbreak;\n\t\t\tcase 'q':\n\t\t\t\tcount[16]++;\n\t\t\t\tbreak;\n\t\t\tcase 'r':\n\t\t\t\tcount[17]++;\n\t\t\t\tbreak;\n\t\t\tcase 's':\n\t\t\t\tcount[18]++;\n\t\t\t\tbreak;\n\t\t\tcase 't':\n\t\t\t\tcount[19]++;\n\t\t\t\tbreak;\n\t\t\tcase 'u':\n\t\t\t\tcount[20]++;\n\t\t\t\tbreak;\n\t\t\tcase 'v':\n\t\t\t\tcount[21]++;\n\t\t\t\tbreak;\n\t\t\tcase 'w':\n\t\t\t\tcount[22]++;\n\t\t\t\tbreak;\n\t\t\tcase 'x':\n\t\t\t\tcount[23]++;\n\t\t\t\tbreak;\n\t\t\tcase 'y':\n\t\t\t\tcount[24]++;\n\t\t\t\tbreak;\n\t\t\tcase 'z':\n\t\t\t\tcount[25]++;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(eng.charAt(i) + \" : \" + count[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n, i, count[] = new int[26];\n\t\tString str = \"\", str1=\"\", eng = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tchar c;\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\tstr1=scan.next();\n\t\t\tstr+=str1;\n\t\t}\n\t\tstr = str.toLowerCase();\n\t\tn = str.length();\n\t\tfor (i = 0; i < 26; i++) {\n\t\t\tcount[i] = 0;\n\t\t}\n\t\tfor (i = 0; i < n; i++) {\n\t\t\tc = str.charAt(i);\n\t\t\tswitch (c) {\n\t\t\tcase 'a':\n\t\t\t\tcount[0]++;\n\t\t\t\tbreak;\n\t\t\tcase 'b':\n\t\t\t\tcount[1]++;\n\t\t\t\tbreak;\n\t\t\tcase 'c':\n\t\t\t\tcount[2]++;\n\t\t\t\tbreak;\n\t\t\tcase 'd':\n\t\t\t\tcount[3]++;\n\t\t\t\tbreak;\n\t\t\tcase 'e':\n\t\t\t\tcount[4]++;\n\t\t\t\tbreak;\n\t\t\tcase 'f':\n\t\t\t\tcount[5]++;\n\t\t\t\tbreak;\n\t\t\tcase 'g':\n\t\t\t\tcount[6]++;\n\t\t\t\tbreak;\n\t\t\tcase 'h':\n\t\t\t\tcount[7]++;\n\t\t\t\tbreak;\n\t\t\tcase 'i':\n\t\t\t\tcount[8]++;\n\t\t\t\tbreak;\n\t\t\tcase 'j':\n\t\t\t\tcount[9]++;\n\t\t\t\tbreak;\n\t\t\tcase 'k':\n\t\t\t\tcount[10]++;\n\t\t\t\tbreak;\n\t\t\tcase 'l':\n\t\t\t\tcount[11]++;\n\t\t\t\tbreak;\n\t\t\tcase 'm':\n\t\t\t\tcount[12]++;\n\t\t\t\tbreak;\n\t\t\tcase 'n':\n\t\t\t\tcount[13]++;\n\t\t\t\tbreak;\n\t\t\tcase 'o':\n\t\t\t\tcount[14]++;\n\t\t\t\tbreak;\n\t\t\tcase 'p':\n\t\t\t\tcount[15]++;\n\t\t\t\tbreak;\n\t\t\tcase 'q':\n\t\t\t\tcount[16]++;\n\t\t\t\tbreak;\n\t\t\tcase 'r':\n\t\t\t\tcount[17]++;\n\t\t\t\tbreak;\n\t\t\tcase 's':\n\t\t\t\tcount[18]++;\n\t\t\t\tbreak;\n\t\t\tcase 't':\n\t\t\t\tcount[19]++;\n\t\t\t\tbreak;\n\t\t\tcase 'u':\n\t\t\t\tcount[20]++;\n\t\t\t\tbreak;\n\t\t\tcase 'v':\n\t\t\t\tcount[21]++;\n\t\t\t\tbreak;\n\t\t\tcase 'w':\n\t\t\t\tcount[22]++;\n\t\t\t\tbreak;\n\t\t\tcase 'x':\n\t\t\t\tcount[23]++;\n\t\t\t\tbreak;\n\t\t\tcase 'y':\n\t\t\t\tcount[24]++;\n\t\t\t\tbreak;\n\t\t\tcase 'z':\n\t\t\t\tcount[25]++;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(eng.charAt(i) + \" : \" + count[i]);\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n",
"n",
"i",
"i",
"count[] = new int[26];",
"count",
"new int[26]",
"26",
"String str = \"\"",
"str",
"\"\"",
"str1=\"\"",
"str1",
"\"\"",
"eng = \"abcdefghijklmnopqrstuvwxyz\";",
"eng",
"\"abcdefghijklmnopqrstuvwxyz\"",
"char c;",
"c",
"while(scan.hasNext()){\n\t\t\tstr1=scan.next();\n\t\t\tstr+=str1;\n\t\t}",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n\t\t\tstr1=scan.next();\n\t\t\tstr+=str1;\n\t\t}",
"str1=scan.next()",
"str1",
"scan.next()",
"scan.next",
"scan",
"str+=str1",
"str",
"str1",
"str = str.toLowerCase()",
"str",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"n = str.length()",
"n",
"str.length()",
"str.length",
"str",
"for (i = 0; i < 26; i++) {\n\t\t\tcount[i] = 0;\n\t\t}",
"i = 0;",
"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",
"for (i = 0; i < n; i++) {\n\t\t\tc = str.charAt(i);\n\t\t\tswitch (c) {\n\t\t\tcase 'a':\n\t\t\t\tcount[0]++;\n\t\t\t\tbreak;\n\t\t\tcase 'b':\n\t\t\t\tcount[1]++;\n\t\t\t\tbreak;\n\t\t\tcase 'c':\n\t\t\t\tcount[2]++;\n\t\t\t\tbreak;\n\t\t\tcase 'd':\n\t\t\t\tcount[3]++;\n\t\t\t\tbreak;\n\t\t\tcase 'e':\n\t\t\t\tcount[4]++;\n\t\t\t\tbreak;\n\t\t\tcase 'f':\n\t\t\t\tcount[5]++;\n\t\t\t\tbreak;\n\t\t\tcase 'g':\n\t\t\t\tcount[6]++;\n\t\t\t\tbreak;\n\t\t\tcase 'h':\n\t\t\t\tcount[7]++;\n\t\t\t\tbreak;\n\t\t\tcase 'i':\n\t\t\t\tcount[8]++;\n\t\t\t\tbreak;\n\t\t\tcase 'j':\n\t\t\t\tcount[9]++;\n\t\t\t\tbreak;\n\t\t\tcase 'k':\n\t\t\t\tcount[10]++;\n\t\t\t\tbreak;\n\t\t\tcase 'l':\n\t\t\t\tcount[11]++;\n\t\t\t\tbreak;\n\t\t\tcase 'm':\n\t\t\t\tcount[12]++;\n\t\t\t\tbreak;\n\t\t\tcase 'n':\n\t\t\t\tcount[13]++;\n\t\t\t\tbreak;\n\t\t\tcase 'o':\n\t\t\t\tcount[14]++;\n\t\t\t\tbreak;\n\t\t\tcase 'p':\n\t\t\t\tcount[15]++;\n\t\t\t\tbreak;\n\t\t\tcase 'q':\n\t\t\t\tcount[16]++;\n\t\t\t\tbreak;\n\t\t\tcase 'r':\n\t\t\t\tcount[17]++;\n\t\t\t\tbreak;\n\t\t\tcase 's':\n\t\t\t\tcount[18]++;\n\t\t\t\tbreak;\n\t\t\tcase 't':\n\t\t\t\tcount[19]++;\n\t\t\t\tbreak;\n\t\t\tcase 'u':\n\t\t\t\tcount[20]++;\n\t\t\t\tbreak;\n\t\t\tcase 'v':\n\t\t\t\tcount[21]++;\n\t\t\t\tbreak;\n\t\t\tcase 'w':\n\t\t\t\tcount[22]++;\n\t\t\t\tbreak;\n\t\t\tcase 'x':\n\t\t\t\tcount[23]++;\n\t\t\t\tbreak;\n\t\t\tcase 'y':\n\t\t\t\tcount[24]++;\n\t\t\t\tbreak;\n\t\t\tcase 'z':\n\t\t\t\tcount[25]++;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tc = str.charAt(i);\n\t\t\tswitch (c) {\n\t\t\tcase 'a':\n\t\t\t\tcount[0]++;\n\t\t\t\tbreak;\n\t\t\tcase 'b':\n\t\t\t\tcount[1]++;\n\t\t\t\tbreak;\n\t\t\tcase 'c':\n\t\t\t\tcount[2]++;\n\t\t\t\tbreak;\n\t\t\tcase 'd':\n\t\t\t\tcount[3]++;\n\t\t\t\tbreak;\n\t\t\tcase 'e':\n\t\t\t\tcount[4]++;\n\t\t\t\tbreak;\n\t\t\tcase 'f':\n\t\t\t\tcount[5]++;\n\t\t\t\tbreak;\n\t\t\tcase 'g':\n\t\t\t\tcount[6]++;\n\t\t\t\tbreak;\n\t\t\tcase 'h':\n\t\t\t\tcount[7]++;\n\t\t\t\tbreak;\n\t\t\tcase 'i':\n\t\t\t\tcount[8]++;\n\t\t\t\tbreak;\n\t\t\tcase 'j':\n\t\t\t\tcount[9]++;\n\t\t\t\tbreak;\n\t\t\tcase 'k':\n\t\t\t\tcount[10]++;\n\t\t\t\tbreak;\n\t\t\tcase 'l':\n\t\t\t\tcount[11]++;\n\t\t\t\tbreak;\n\t\t\tcase 'm':\n\t\t\t\tcount[12]++;\n\t\t\t\tbreak;\n\t\t\tcase 'n':\n\t\t\t\tcount[13]++;\n\t\t\t\tbreak;\n\t\t\tcase 'o':\n\t\t\t\tcount[14]++;\n\t\t\t\tbreak;\n\t\t\tcase 'p':\n\t\t\t\tcount[15]++;\n\t\t\t\tbreak;\n\t\t\tcase 'q':\n\t\t\t\tcount[16]++;\n\t\t\t\tbreak;\n\t\t\tcase 'r':\n\t\t\t\tcount[17]++;\n\t\t\t\tbreak;\n\t\t\tcase 's':\n\t\t\t\tcount[18]++;\n\t\t\t\tbreak;\n\t\t\tcase 't':\n\t\t\t\tcount[19]++;\n\t\t\t\tbreak;\n\t\t\tcase 'u':\n\t\t\t\tcount[20]++;\n\t\t\t\tbreak;\n\t\t\tcase 'v':\n\t\t\t\tcount[21]++;\n\t\t\t\tbreak;\n\t\t\tcase 'w':\n\t\t\t\tcount[22]++;\n\t\t\t\tbreak;\n\t\t\tcase 'x':\n\t\t\t\tcount[23]++;\n\t\t\t\tbreak;\n\t\t\tcase 'y':\n\t\t\t\tcount[24]++;\n\t\t\t\tbreak;\n\t\t\tcase 'z':\n\t\t\t\tcount[25]++;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tc = str.charAt(i);\n\t\t\tswitch (c) {\n\t\t\tcase 'a':\n\t\t\t\tcount[0]++;\n\t\t\t\tbreak;\n\t\t\tcase 'b':\n\t\t\t\tcount[1]++;\n\t\t\t\tbreak;\n\t\t\tcase 'c':\n\t\t\t\tcount[2]++;\n\t\t\t\tbreak;\n\t\t\tcase 'd':\n\t\t\t\tcount[3]++;\n\t\t\t\tbreak;\n\t\t\tcase 'e':\n\t\t\t\tcount[4]++;\n\t\t\t\tbreak;\n\t\t\tcase 'f':\n\t\t\t\tcount[5]++;\n\t\t\t\tbreak;\n\t\t\tcase 'g':\n\t\t\t\tcount[6]++;\n\t\t\t\tbreak;\n\t\t\tcase 'h':\n\t\t\t\tcount[7]++;\n\t\t\t\tbreak;\n\t\t\tcase 'i':\n\t\t\t\tcount[8]++;\n\t\t\t\tbreak;\n\t\t\tcase 'j':\n\t\t\t\tcount[9]++;\n\t\t\t\tbreak;\n\t\t\tcase 'k':\n\t\t\t\tcount[10]++;\n\t\t\t\tbreak;\n\t\t\tcase 'l':\n\t\t\t\tcount[11]++;\n\t\t\t\tbreak;\n\t\t\tcase 'm':\n\t\t\t\tcount[12]++;\n\t\t\t\tbreak;\n\t\t\tcase 'n':\n\t\t\t\tcount[13]++;\n\t\t\t\tbreak;\n\t\t\tcase 'o':\n\t\t\t\tcount[14]++;\n\t\t\t\tbreak;\n\t\t\tcase 'p':\n\t\t\t\tcount[15]++;\n\t\t\t\tbreak;\n\t\t\tcase 'q':\n\t\t\t\tcount[16]++;\n\t\t\t\tbreak;\n\t\t\tcase 'r':\n\t\t\t\tcount[17]++;\n\t\t\t\tbreak;\n\t\t\tcase 's':\n\t\t\t\tcount[18]++;\n\t\t\t\tbreak;\n\t\t\tcase 't':\n\t\t\t\tcount[19]++;\n\t\t\t\tbreak;\n\t\t\tcase 'u':\n\t\t\t\tcount[20]++;\n\t\t\t\tbreak;\n\t\t\tcase 'v':\n\t\t\t\tcount[21]++;\n\t\t\t\tbreak;\n\t\t\tcase 'w':\n\t\t\t\tcount[22]++;\n\t\t\t\tbreak;\n\t\t\tcase 'x':\n\t\t\t\tcount[23]++;\n\t\t\t\tbreak;\n\t\t\tcase 'y':\n\t\t\t\tcount[24]++;\n\t\t\t\tbreak;\n\t\t\tcase 'z':\n\t\t\t\tcount[25]++;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"c = str.charAt(i)",
"c",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"switch (c) {\n\t\t\tcase 'a':\n\t\t\t\tcount[0]++;\n\t\t\t\tbreak;\n\t\t\tcase 'b':\n\t\t\t\tcount[1]++;\n\t\t\t\tbreak;\n\t\t\tcase 'c':\n\t\t\t\tcount[2]++;\n\t\t\t\tbreak;\n\t\t\tcase 'd':\n\t\t\t\tcount[3]++;\n\t\t\t\tbreak;\n\t\t\tcase 'e':\n\t\t\t\tcount[4]++;\n\t\t\t\tbreak;\n\t\t\tcase 'f':\n\t\t\t\tcount[5]++;\n\t\t\t\tbreak;\n\t\t\tcase 'g':\n\t\t\t\tcount[6]++;\n\t\t\t\tbreak;\n\t\t\tcase 'h':\n\t\t\t\tcount[7]++;\n\t\t\t\tbreak;\n\t\t\tcase 'i':\n\t\t\t\tcount[8]++;\n\t\t\t\tbreak;\n\t\t\tcase 'j':\n\t\t\t\tcount[9]++;\n\t\t\t\tbreak;\n\t\t\tcase 'k':\n\t\t\t\tcount[10]++;\n\t\t\t\tbreak;\n\t\t\tcase 'l':\n\t\t\t\tcount[11]++;\n\t\t\t\tbreak;\n\t\t\tcase 'm':\n\t\t\t\tcount[12]++;\n\t\t\t\tbreak;\n\t\t\tcase 'n':\n\t\t\t\tcount[13]++;\n\t\t\t\tbreak;\n\t\t\tcase 'o':\n\t\t\t\tcount[14]++;\n\t\t\t\tbreak;\n\t\t\tcase 'p':\n\t\t\t\tcount[15]++;\n\t\t\t\tbreak;\n\t\t\tcase 'q':\n\t\t\t\tcount[16]++;\n\t\t\t\tbreak;\n\t\t\tcase 'r':\n\t\t\t\tcount[17]++;\n\t\t\t\tbreak;\n\t\t\tcase 's':\n\t\t\t\tcount[18]++;\n\t\t\t\tbreak;\n\t\t\tcase 't':\n\t\t\t\tcount[19]++;\n\t\t\t\tbreak;\n\t\t\tcase 'u':\n\t\t\t\tcount[20]++;\n\t\t\t\tbreak;\n\t\t\tcase 'v':\n\t\t\t\tcount[21]++;\n\t\t\t\tbreak;\n\t\t\tcase 'w':\n\t\t\t\tcount[22]++;\n\t\t\t\tbreak;\n\t\t\tcase 'x':\n\t\t\t\tcount[23]++;\n\t\t\t\tbreak;\n\t\t\tcase 'y':\n\t\t\t\tcount[24]++;\n\t\t\t\tbreak;\n\t\t\tcase 'z':\n\t\t\t\tcount[25]++;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}",
"c",
"case 'a':",
"'a'",
"case 'a':",
"count[0]++",
"count[0]",
"count",
"0",
"break;",
"case 'b':",
"'b'",
"case 'b':",
"count[1]++",
"count[1]",
"count",
"1",
"break;",
"case 'c':",
"'c'",
"case 'c':",
"count[2]++",
"count[2]",
"count",
"2",
"break;",
"case 'd':",
"'d'",
"case 'd':",
"count[3]++",
"count[3]",
"count",
"3",
"break;",
"case 'e':",
"'e'",
"case 'e':",
"count[4]++",
"count[4]",
"count",
"4",
"break;",
"case 'f':",
"'f'",
"case 'f':",
"count[5]++",
"count[5]",
"count",
"5",
"break;",
"case 'g':",
"'g'",
"case 'g':",
"count[6]++",
"count[6]",
"count",
"6",
"break;",
"case 'h':",
"'h'",
"case 'h':",
"count[7]++",
"count[7]",
"count",
"7",
"break;",
"case 'i':",
"'i'",
"case 'i':",
"count[8]++",
"count[8]",
"count",
"8",
"break;",
"case 'j':",
"'j'",
"case 'j':",
"count[9]++",
"count[9]",
"count",
"9",
"break;",
"case 'k':",
"'k'",
"case 'k':",
"count[10]++",
"count[10]",
"count",
"10",
"break;",
"case 'l':",
"'l'",
"case 'l':",
"count[11]++",
"count[11]",
"count",
"11",
"break;",
"case 'm':",
"'m'",
"case 'm':",
"count[12]++",
"count[12]",
"count",
"12",
"break;",
"case 'n':",
"'n'",
"case 'n':",
"count[13]++",
"count[13]",
"count",
"13",
"break;",
"case 'o':",
"'o'",
"case 'o':",
"count[14]++",
"count[14]",
"count",
"14",
"break;",
"case 'p':",
"'p'",
"case 'p':",
"count[15]++",
"count[15]",
"count",
"15",
"break;",
"case 'q':",
"'q'",
"case 'q':",
"count[16]++",
"count[16]",
"count",
"16",
"break;",
"case 'r':",
"'r'",
"case 'r':",
"count[17]++",
"count[17]",
"count",
"17",
"break;",
"case 's':",
"'s'",
"case 's':",
"count[18]++",
"count[18]",
"count",
"18",
"break;",
"case 't':",
"'t'",
"case 't':",
"count[19]++",
"count[19]",
"count",
"19",
"break;",
"case 'u':",
"'u'",
"case 'u':",
"count[20]++",
"count[20]",
"count",
"20",
"break;",
"case 'v':",
"'v'",
"case 'v':",
"count[21]++",
"count[21]",
"count",
"21",
"break;",
"case 'w':",
"'w'",
"case 'w':",
"count[22]++",
"count[22]",
"count",
"22",
"break;",
"case 'x':",
"'x'",
"case 'x':",
"count[23]++",
"count[23]",
"count",
"23",
"break;",
"case 'y':",
"'y'",
"case 'y':",
"count[24]++",
"count[24]",
"count",
"24",
"break;",
"case 'z':",
"'z'",
"case 'z':",
"count[25]++",
"count[25]",
"count",
"25",
"break;",
"default:",
"default:",
"break;",
"for (i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(eng.charAt(i) + \" : \" + count[i]);\n\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(eng.charAt(i) + \" : \" + count[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(eng.charAt(i) + \" : \" + count[i]);\n\t\t}",
"System.out.println(eng.charAt(i) + \" : \" + count[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"eng.charAt(i) + \" : \" + count[i]",
"eng.charAt(i) + \" : \" + count[i]",
"eng.charAt(i)",
"eng.charAt",
"eng",
"i",
"\" : \"",
"count[i]",
"count",
"i",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n, i, count[] = new int[26];\n\t\tString str = \"\", str1=\"\", eng = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tchar c;\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\tstr1=scan.next();\n\t\t\tstr+=str1;\n\t\t}\n\t\tstr = str.toLowerCase();\n\t\tn = str.length();\n\t\tfor (i = 0; i < 26; i++) {\n\t\t\tcount[i] = 0;\n\t\t}\n\t\tfor (i = 0; i < n; i++) {\n\t\t\tc = str.charAt(i);\n\t\t\tswitch (c) {\n\t\t\tcase 'a':\n\t\t\t\tcount[0]++;\n\t\t\t\tbreak;\n\t\t\tcase 'b':\n\t\t\t\tcount[1]++;\n\t\t\t\tbreak;\n\t\t\tcase 'c':\n\t\t\t\tcount[2]++;\n\t\t\t\tbreak;\n\t\t\tcase 'd':\n\t\t\t\tcount[3]++;\n\t\t\t\tbreak;\n\t\t\tcase 'e':\n\t\t\t\tcount[4]++;\n\t\t\t\tbreak;\n\t\t\tcase 'f':\n\t\t\t\tcount[5]++;\n\t\t\t\tbreak;\n\t\t\tcase 'g':\n\t\t\t\tcount[6]++;\n\t\t\t\tbreak;\n\t\t\tcase 'h':\n\t\t\t\tcount[7]++;\n\t\t\t\tbreak;\n\t\t\tcase 'i':\n\t\t\t\tcount[8]++;\n\t\t\t\tbreak;\n\t\t\tcase 'j':\n\t\t\t\tcount[9]++;\n\t\t\t\tbreak;\n\t\t\tcase 'k':\n\t\t\t\tcount[10]++;\n\t\t\t\tbreak;\n\t\t\tcase 'l':\n\t\t\t\tcount[11]++;\n\t\t\t\tbreak;\n\t\t\tcase 'm':\n\t\t\t\tcount[12]++;\n\t\t\t\tbreak;\n\t\t\tcase 'n':\n\t\t\t\tcount[13]++;\n\t\t\t\tbreak;\n\t\t\tcase 'o':\n\t\t\t\tcount[14]++;\n\t\t\t\tbreak;\n\t\t\tcase 'p':\n\t\t\t\tcount[15]++;\n\t\t\t\tbreak;\n\t\t\tcase 'q':\n\t\t\t\tcount[16]++;\n\t\t\t\tbreak;\n\t\t\tcase 'r':\n\t\t\t\tcount[17]++;\n\t\t\t\tbreak;\n\t\t\tcase 's':\n\t\t\t\tcount[18]++;\n\t\t\t\tbreak;\n\t\t\tcase 't':\n\t\t\t\tcount[19]++;\n\t\t\t\tbreak;\n\t\t\tcase 'u':\n\t\t\t\tcount[20]++;\n\t\t\t\tbreak;\n\t\t\tcase 'v':\n\t\t\t\tcount[21]++;\n\t\t\t\tbreak;\n\t\t\tcase 'w':\n\t\t\t\tcount[22]++;\n\t\t\t\tbreak;\n\t\t\tcase 'x':\n\t\t\t\tcount[23]++;\n\t\t\t\tbreak;\n\t\t\tcase 'y':\n\t\t\t\tcount[24]++;\n\t\t\t\tbreak;\n\t\t\tcase 'z':\n\t\t\t\tcount[25]++;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(eng.charAt(i) + \" : \" + count[i]);\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n, i, count[] = new int[26];\n\t\tString str = \"\", str1=\"\", eng = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tchar c;\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\tstr1=scan.next();\n\t\t\tstr+=str1;\n\t\t}\n\t\tstr = str.toLowerCase();\n\t\tn = str.length();\n\t\tfor (i = 0; i < 26; i++) {\n\t\t\tcount[i] = 0;\n\t\t}\n\t\tfor (i = 0; i < n; i++) {\n\t\t\tc = str.charAt(i);\n\t\t\tswitch (c) {\n\t\t\tcase 'a':\n\t\t\t\tcount[0]++;\n\t\t\t\tbreak;\n\t\t\tcase 'b':\n\t\t\t\tcount[1]++;\n\t\t\t\tbreak;\n\t\t\tcase 'c':\n\t\t\t\tcount[2]++;\n\t\t\t\tbreak;\n\t\t\tcase 'd':\n\t\t\t\tcount[3]++;\n\t\t\t\tbreak;\n\t\t\tcase 'e':\n\t\t\t\tcount[4]++;\n\t\t\t\tbreak;\n\t\t\tcase 'f':\n\t\t\t\tcount[5]++;\n\t\t\t\tbreak;\n\t\t\tcase 'g':\n\t\t\t\tcount[6]++;\n\t\t\t\tbreak;\n\t\t\tcase 'h':\n\t\t\t\tcount[7]++;\n\t\t\t\tbreak;\n\t\t\tcase 'i':\n\t\t\t\tcount[8]++;\n\t\t\t\tbreak;\n\t\t\tcase 'j':\n\t\t\t\tcount[9]++;\n\t\t\t\tbreak;\n\t\t\tcase 'k':\n\t\t\t\tcount[10]++;\n\t\t\t\tbreak;\n\t\t\tcase 'l':\n\t\t\t\tcount[11]++;\n\t\t\t\tbreak;\n\t\t\tcase 'm':\n\t\t\t\tcount[12]++;\n\t\t\t\tbreak;\n\t\t\tcase 'n':\n\t\t\t\tcount[13]++;\n\t\t\t\tbreak;\n\t\t\tcase 'o':\n\t\t\t\tcount[14]++;\n\t\t\t\tbreak;\n\t\t\tcase 'p':\n\t\t\t\tcount[15]++;\n\t\t\t\tbreak;\n\t\t\tcase 'q':\n\t\t\t\tcount[16]++;\n\t\t\t\tbreak;\n\t\t\tcase 'r':\n\t\t\t\tcount[17]++;\n\t\t\t\tbreak;\n\t\t\tcase 's':\n\t\t\t\tcount[18]++;\n\t\t\t\tbreak;\n\t\t\tcase 't':\n\t\t\t\tcount[19]++;\n\t\t\t\tbreak;\n\t\t\tcase 'u':\n\t\t\t\tcount[20]++;\n\t\t\t\tbreak;\n\t\t\tcase 'v':\n\t\t\t\tcount[21]++;\n\t\t\t\tbreak;\n\t\t\tcase 'w':\n\t\t\t\tcount[22]++;\n\t\t\t\tbreak;\n\t\t\tcase 'x':\n\t\t\t\tcount[23]++;\n\t\t\t\tbreak;\n\t\t\tcase 'y':\n\t\t\t\tcount[24]++;\n\t\t\t\tbreak;\n\t\t\tcase 'z':\n\t\t\t\tcount[25]++;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(eng.charAt(i) + \" : \" + count[i]);\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);
int n, i, count[] = new int[26];
String str = "", str1="", eng = "abcdefghijklmnopqrstuvwxyz";
char c;
while(scan.hasNext()){
str1=scan.next();
str+=str1;
}
str = str.toLowerCase();
n = str.length();
for (i = 0; i < 26; i++) {
count[i] = 0;
}
for (i = 0; i < n; i++) {
c = str.charAt(i);
switch (c) {
case 'a':
count[0]++;
break;
case 'b':
count[1]++;
break;
case 'c':
count[2]++;
break;
case 'd':
count[3]++;
break;
case 'e':
count[4]++;
break;
case 'f':
count[5]++;
break;
case 'g':
count[6]++;
break;
case 'h':
count[7]++;
break;
case 'i':
count[8]++;
break;
case 'j':
count[9]++;
break;
case 'k':
count[10]++;
break;
case 'l':
count[11]++;
break;
case 'm':
count[12]++;
break;
case 'n':
count[13]++;
break;
case 'o':
count[14]++;
break;
case 'p':
count[15]++;
break;
case 'q':
count[16]++;
break;
case 'r':
count[17]++;
break;
case 's':
count[18]++;
break;
case 't':
count[19]++;
break;
case 'u':
count[20]++;
break;
case 'v':
count[21]++;
break;
case 'w':
count[22]++;
break;
case 'x':
count[23]++;
break;
case 'y':
count[24]++;
break;
case 'z':
count[25]++;
break;
default:
break;
}
}
for (i = 0; i < 26; i++) {
System.out.println(eng.charAt(i) + " : " + count[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,
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,
41,
13,
2,
4,
18,
13,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
9,
14,
2,
13,
40,
17,
30,
0,
13,
17,
3,
40,
18,
13,
13,
14,
2,
13,
17,
30,
3,
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
],
[
118,
5
],
[
118,
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
],
[
53,
54
],
[
52,
55
],
[
51,
56
],
[
48,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
48,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
67,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
48,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
23,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
8,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
87,
95
],
[
95,
96
],
[
96,
97
],
[
87,
98
],
[
99,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
100,
106
],
[
106,
107
],
[
106,
108
],
[
100,
109
],
[
109,
110
],
[
109,
111
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
6,
115
],
[
115,
116
],
[
0,
117
],
[
117,
118
],
[
117,
119
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] counter = new int[27];\n int flag=0;\n while (sc.hasNext()) {\n String in = sc.nextLine();\n \n in=in.toLowerCase();\n for (int i = 0; i < in.length(); i++) {\n \n int value = in.charAt(i)-'a' ;\n if(value<0 || value>26){\n continue;\n }\n if(value==-51){\n flag=1;\n break;\n }\n \n \n counter[value]++;\n }\n \n if(flag==1){\n break;\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.printf(\"%c : %d\\n\", i + 'a', counter[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[] counter = new int[27];\n int flag=0;\n while (sc.hasNext()) {\n String in = sc.nextLine();\n \n in=in.toLowerCase();\n for (int i = 0; i < in.length(); i++) {\n \n int value = in.charAt(i)-'a' ;\n if(value<0 || value>26){\n continue;\n }\n if(value==-51){\n flag=1;\n break;\n }\n \n \n counter[value]++;\n }\n \n if(flag==1){\n break;\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.printf(\"%c : %d\\n\", i + 'a', counter[i]);\n }\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int[] counter = new int[27];\n int flag=0;\n while (sc.hasNext()) {\n String in = sc.nextLine();\n \n in=in.toLowerCase();\n for (int i = 0; i < in.length(); i++) {\n \n int value = in.charAt(i)-'a' ;\n if(value<0 || value>26){\n continue;\n }\n if(value==-51){\n flag=1;\n break;\n }\n \n \n counter[value]++;\n }\n \n if(flag==1){\n break;\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.printf(\"%c : %d\\n\", i + 'a', counter[i]);\n }\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int[] counter = new int[27];\n int flag=0;\n while (sc.hasNext()) {\n String in = sc.nextLine();\n \n in=in.toLowerCase();\n for (int i = 0; i < in.length(); i++) {\n \n int value = in.charAt(i)-'a' ;\n if(value<0 || value>26){\n continue;\n }\n if(value==-51){\n flag=1;\n break;\n }\n \n \n counter[value]++;\n }\n \n if(flag==1){\n break;\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.printf(\"%c : %d\\n\", i + 'a', counter[i]);\n }\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] counter = new int[27];",
"counter",
"new int[27]",
"27",
"int flag=0;",
"flag",
"0",
"while (sc.hasNext()) {\n String in = sc.nextLine();\n \n in=in.toLowerCase();\n for (int i = 0; i < in.length(); i++) {\n \n int value = in.charAt(i)-'a' ;\n if(value<0 || value>26){\n continue;\n }\n if(value==-51){\n flag=1;\n break;\n }\n \n \n counter[value]++;\n }\n \n if(flag==1){\n break;\n }\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n String in = sc.nextLine();\n \n in=in.toLowerCase();\n for (int i = 0; i < in.length(); i++) {\n \n int value = in.charAt(i)-'a' ;\n if(value<0 || value>26){\n continue;\n }\n if(value==-51){\n flag=1;\n break;\n }\n \n \n counter[value]++;\n }\n \n if(flag==1){\n break;\n }\n }",
"String in = sc.nextLine();",
"in",
"sc.nextLine()",
"sc.nextLine",
"sc",
"in=in.toLowerCase()",
"in",
"in.toLowerCase()",
"in.toLowerCase",
"in",
"for (int i = 0; i < in.length(); i++) {\n \n int value = in.charAt(i)-'a' ;\n if(value<0 || value>26){\n continue;\n }\n if(value==-51){\n flag=1;\n break;\n }\n \n \n counter[value]++;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < in.length()",
"i",
"in.length()",
"in.length",
"in",
"i++",
"i++",
"i",
"{\n \n int value = in.charAt(i)-'a' ;\n if(value<0 || value>26){\n continue;\n }\n if(value==-51){\n flag=1;\n break;\n }\n \n \n counter[value]++;\n }",
"{\n \n int value = in.charAt(i)-'a' ;\n if(value<0 || value>26){\n continue;\n }\n if(value==-51){\n flag=1;\n break;\n }\n \n \n counter[value]++;\n }",
"int value = in.charAt(i)-'a' ;",
"value",
"in.charAt(i)-'a'",
"in.charAt(i)",
"in.charAt",
"in",
"i",
"'a'",
"if(value<0 || value>26){\n continue;\n }",
"value<0 || value>26",
"value<0",
"value",
"0",
"value>26",
"value",
"26",
"{\n continue;\n }",
"continue;",
"if(value==-51){\n flag=1;\n break;\n }",
"value==-51",
"value",
"-51",
"51",
"{\n flag=1;\n break;\n }",
"flag=1",
"flag",
"1",
"break;",
"counter[value]++",
"counter[value]",
"counter",
"value",
"if(flag==1){\n break;\n }",
"flag==1",
"flag",
"1",
"{\n break;\n }",
"break;",
"for (int i = 0; i < 26; i++) {\n System.out.printf(\"%c : %d\\n\", i + 'a', counter[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', counter[i]);\n }",
"{\n System.out.printf(\"%c : %d\\n\", i + 'a', counter[i]);\n }",
"System.out.printf(\"%c : %d\\n\", i + 'a', counter[i])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c : %d\\n\"",
"i + 'a'",
"i",
"'a'",
"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 int[] counter = new int[27];\n int flag=0;\n while (sc.hasNext()) {\n String in = sc.nextLine();\n \n in=in.toLowerCase();\n for (int i = 0; i < in.length(); i++) {\n \n int value = in.charAt(i)-'a' ;\n if(value<0 || value>26){\n continue;\n }\n if(value==-51){\n flag=1;\n break;\n }\n \n \n counter[value]++;\n }\n \n if(flag==1){\n break;\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.printf(\"%c : %d\\n\", i + 'a', 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 int[] counter = new int[27];\n int flag=0;\n while (sc.hasNext()) {\n String in = sc.nextLine();\n \n in=in.toLowerCase();\n for (int i = 0; i < in.length(); i++) {\n \n int value = in.charAt(i)-'a' ;\n if(value<0 || value>26){\n continue;\n }\n if(value==-51){\n flag=1;\n break;\n }\n \n \n counter[value]++;\n }\n \n if(flag==1){\n break;\n }\n }\n for (int i = 0; i < 26; i++) {\n System.out.printf(\"%c : %d\\n\", i + 'a', counter[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[] counter = new int[27];
int flag=0;
while (sc.hasNext()) {
String in = sc.nextLine();
in=in.toLowerCase();
for (int i = 0; i < in.length(); i++) {
int value = in.charAt(i)-'a' ;
if(value<0 || value>26){
continue;
}
if(value==-51){
flag=1;
break;
}
counter[value]++;
}
if(flag==1){
break;
}
}
for (int i = 0; i < 26; i++) {
System.out.printf("%c : %d\n", i + 'a', counter[i]);
}
sc.close();
}
}
|
[
7,
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,
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,
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,
17,
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
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
16,
24
],
[
24,
25
],
[
25,
26
],
[
16,
27
],
[
28,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
8,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
44,
54
],
[
54,
55
],
[
55,
56
],
[
44,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
58,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
8,
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
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
6,
110
],
[
110,
111
],
[
0,
112
],
[
112,
113
],
[
112,
114
]
]
| [
"\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[] 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.hasNextLine()) {\n\t\t\tString S = sc.nextLine();\n\t\t\tfor (int i = 0; i < S.length(); i++) {\n\t\t\t\tchar c = Character.toLowerCase(S.charAt(i));\n\t\t\t\tif (c >= 'a' && 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\tSystem.out.println((char)('a' + i) + \" : \" + Count[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) {\n\t\tScanner sc = new Scanner(System.in);\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.hasNextLine()) {\n\t\t\tString S = sc.nextLine();\n\t\t\tfor (int i = 0; i < S.length(); i++) {\n\t\t\t\tchar c = Character.toLowerCase(S.charAt(i));\n\t\t\t\tif (c >= 'a' && 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\tSystem.out.println((char)('a' + i) + \" : \" + Count[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\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.hasNextLine()) {\n\t\t\tString S = sc.nextLine();\n\t\t\tfor (int i = 0; i < S.length(); i++) {\n\t\t\t\tchar c = Character.toLowerCase(S.charAt(i));\n\t\t\t\tif (c >= 'a' && 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\tSystem.out.println((char)('a' + i) + \" : \" + Count[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\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.hasNextLine()) {\n\t\t\tString S = sc.nextLine();\n\t\t\tfor (int i = 0; i < S.length(); i++) {\n\t\t\t\tchar c = Character.toLowerCase(S.charAt(i));\n\t\t\t\tif (c >= 'a' && 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\tSystem.out.println((char)('a' + i) + \" : \" + Count[i]);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"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.hasNextLine()) {\n\t\t\tString S = sc.nextLine();\n\t\t\tfor (int i = 0; i < S.length(); i++) {\n\t\t\t\tchar c = Character.toLowerCase(S.charAt(i));\n\t\t\t\tif (c >= 'a' && c <= 'z') {\n\t\t\t\t\tCount[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"sc.hasNextLine()",
"sc.hasNextLine",
"sc",
"{\n\t\t\tString S = sc.nextLine();\n\t\t\tfor (int i = 0; i < S.length(); i++) {\n\t\t\t\tchar c = Character.toLowerCase(S.charAt(i));\n\t\t\t\tif (c >= 'a' && c <= 'z') {\n\t\t\t\t\tCount[c - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"String S = sc.nextLine();",
"S",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for (int i = 0; i < S.length(); i++) {\n\t\t\t\tchar c = Character.toLowerCase(S.charAt(i));\n\t\t\t\tif (c >= 'a' && 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 < S.length()",
"i",
"S.length()",
"S.length",
"S",
"i++",
"i++",
"i",
"{\n\t\t\t\tchar c = Character.toLowerCase(S.charAt(i));\n\t\t\t\tif (c >= 'a' && c <= 'z') {\n\t\t\t\t\tCount[c - 'a']++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tchar c = Character.toLowerCase(S.charAt(i));\n\t\t\t\tif (c >= 'a' && c <= 'z') {\n\t\t\t\t\tCount[c - 'a']++;\n\t\t\t\t}\n\t\t\t}",
"char c = Character.toLowerCase(S.charAt(i));",
"c",
"Character.toLowerCase(S.charAt(i))",
"Character.toLowerCase",
"Character",
"S.charAt(i)",
"S.charAt",
"S",
"i",
"if (c >= 'a' && c <= 'z') {\n\t\t\t\t\tCount[c - 'a']++;\n\t\t\t\t}",
"c >= 'a' && c <= 'z'",
"c >= 'a'",
"c",
"'a'",
"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\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\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\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.hasNextLine()) {\n\t\t\tString S = sc.nextLine();\n\t\t\tfor (int i = 0; i < S.length(); i++) {\n\t\t\t\tchar c = Character.toLowerCase(S.charAt(i));\n\t\t\t\tif (c >= 'a' && 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\tSystem.out.println((char)('a' + i) + \" : \" + Count[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\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.hasNextLine()) {\n\t\t\tString S = sc.nextLine();\n\t\t\tfor (int i = 0; i < S.length(); i++) {\n\t\t\t\tchar c = Character.toLowerCase(S.charAt(i));\n\t\t\t\tif (c >= 'a' && 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\tSystem.out.println((char)('a' + i) + \" : \" + Count[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);
int[] Count = new int[26];
for (int i = 0; i < 26; i++) {
Count[i] = 0;
}
while (sc.hasNextLine()) {
String S = sc.nextLine();
for (int i = 0; i < S.length(); i++) {
char c = Character.toLowerCase(S.charAt(i));
if (c >= 'a' && c <= 'z') {
Count[c - 'a']++;
}
}
}
for (int i = 0; i < 26; 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,
4,
18,
13,
41,
13,
20,
17,
41,
13,
42,
2,
13,
17,
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,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
0,
18,
13,
2,
13,
17,
17,
0,
13,
4,
18,
13,
41,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
13,
17,
0,
13,
20,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
131,
11
],
[
131,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
27
],
[
27,
28
],
[
14,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
33,
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
],
[
56,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
53,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
64,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
63,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
76,
82
],
[
33,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
14,
88
],
[
88,
89
],
[
14,
90
],
[
90,
91
],
[
14,
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
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
110,
111
],
[
110,
112
],
[
104,
113
],
[
113,
114
],
[
113,
115
],
[
104,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
122,
122
],
[
122,
123
],
[
122,
124
],
[
122,
125
],
[
125,
126
],
[
125,
127
],
[
12,
128
],
[
128,
129
],
[
0,
130
],
[
130,
131
],
[
130,
132
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\t// Scanner???.nextLine()??§???????°????null???????´?????????????\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = input.readLine();\n\t\tint[] alphabet = new int[26];\n\t\tint check;\n\t\twhile(str != null) {\n\t\t\tstr = str.toLowerCase();\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tcheck = Character.getNumericValue(str.charAt(i));\n\t\t\t\tif (check - 10 >= 0 && check - 10 <= 25) {\n\t\t\t\t\talphabet[check - 10] += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tstr = input.readLine();\n\t\t}\n\t\tchar[] ch;\n\t\tString str2;\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tch = Character.toChars(i + 0x61);\n\t\t\tstr2 = new String(ch);\n\t\t\tSystem.out.println(str2 + \" : \" + 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",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\t// Scanner???.nextLine()??§???????°????null???????´?????????????\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = input.readLine();\n\t\tint[] alphabet = new int[26];\n\t\tint check;\n\t\twhile(str != null) {\n\t\t\tstr = str.toLowerCase();\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tcheck = Character.getNumericValue(str.charAt(i));\n\t\t\t\tif (check - 10 >= 0 && check - 10 <= 25) {\n\t\t\t\t\talphabet[check - 10] += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tstr = input.readLine();\n\t\t}\n\t\tchar[] ch;\n\t\tString str2;\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tch = Character.toChars(i + 0x61);\n\t\t\tstr2 = new String(ch);\n\t\t\tSystem.out.println(str2 + \" : \" + alphabet[i]);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\t// Scanner???.nextLine()??§???????°????null???????´?????????????\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = input.readLine();\n\t\tint[] alphabet = new int[26];\n\t\tint check;\n\t\twhile(str != null) {\n\t\t\tstr = str.toLowerCase();\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tcheck = Character.getNumericValue(str.charAt(i));\n\t\t\t\tif (check - 10 >= 0 && check - 10 <= 25) {\n\t\t\t\t\talphabet[check - 10] += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tstr = input.readLine();\n\t\t}\n\t\tchar[] ch;\n\t\tString str2;\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tch = Character.toChars(i + 0x61);\n\t\t\tstr2 = new String(ch);\n\t\t\tSystem.out.println(str2 + \" : \" + alphabet[i]);\n\t\t}\n\t}",
"main",
"{\n\t\t// Scanner???.nextLine()??§???????°????null???????´?????????????\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = input.readLine();\n\t\tint[] alphabet = new int[26];\n\t\tint check;\n\t\twhile(str != null) {\n\t\t\tstr = str.toLowerCase();\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tcheck = Character.getNumericValue(str.charAt(i));\n\t\t\t\tif (check - 10 >= 0 && check - 10 <= 25) {\n\t\t\t\t\talphabet[check - 10] += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tstr = input.readLine();\n\t\t}\n\t\tchar[] ch;\n\t\tString str2;\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tch = Character.toChars(i + 0x61);\n\t\t\tstr2 = new String(ch);\n\t\t\tSystem.out.println(str2 + \" : \" + alphabet[i]);\n\t\t}\n\t}",
"BufferedReader input = new BufferedReader(new InputStreamReader(System.in));",
"input",
"new BufferedReader(new InputStreamReader(System.in))",
"String str = input.readLine();",
"str",
"input.readLine()",
"input.readLine",
"input",
"int[] alphabet = new int[26];",
"alphabet",
"new int[26]",
"26",
"int check;",
"check",
"while(str != null) {\n\t\t\tstr = str.toLowerCase();\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tcheck = Character.getNumericValue(str.charAt(i));\n\t\t\t\tif (check - 10 >= 0 && check - 10 <= 25) {\n\t\t\t\t\talphabet[check - 10] += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tstr = input.readLine();\n\t\t}",
"str != null",
"str",
"null",
"{\n\t\t\tstr = str.toLowerCase();\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tcheck = Character.getNumericValue(str.charAt(i));\n\t\t\t\tif (check - 10 >= 0 && check - 10 <= 25) {\n\t\t\t\t\talphabet[check - 10] += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tstr = input.readLine();\n\t\t}",
"str = str.toLowerCase()",
"str",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"for (int i = 0; i < str.length(); i++) {\n\t\t\t\tcheck = Character.getNumericValue(str.charAt(i));\n\t\t\t\tif (check - 10 >= 0 && check - 10 <= 25) {\n\t\t\t\t\talphabet[check - 10] += 1;\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\tcheck = Character.getNumericValue(str.charAt(i));\n\t\t\t\tif (check - 10 >= 0 && check - 10 <= 25) {\n\t\t\t\t\talphabet[check - 10] += 1;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tcheck = Character.getNumericValue(str.charAt(i));\n\t\t\t\tif (check - 10 >= 0 && check - 10 <= 25) {\n\t\t\t\t\talphabet[check - 10] += 1;\n\t\t\t\t}\n\t\t\t}",
"check = Character.getNumericValue(str.charAt(i))",
"check",
"Character.getNumericValue(str.charAt(i))",
"Character.getNumericValue",
"Character",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"if (check - 10 >= 0 && check - 10 <= 25) {\n\t\t\t\t\talphabet[check - 10] += 1;\n\t\t\t\t}",
"check - 10 >= 0 && check - 10 <= 25",
"check - 10 >= 0",
"check - 10",
"check",
"10",
"0",
"check - 10 <= 25",
"check - 10",
"check",
"10",
"25",
"{\n\t\t\t\t\talphabet[check - 10] += 1;\n\t\t\t\t}",
"alphabet[check - 10] += 1",
"alphabet[check - 10]",
"alphabet",
"check - 10",
"check",
"10",
"1",
"str = input.readLine()",
"str",
"input.readLine()",
"input.readLine",
"input",
"char[] ch;",
"ch",
"String str2;",
"str2",
"for (int i = 0; i < 26; i++) {\n\t\t\tch = Character.toChars(i + 0x61);\n\t\t\tstr2 = new String(ch);\n\t\t\tSystem.out.println(str2 + \" : \" + alphabet[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tch = Character.toChars(i + 0x61);\n\t\t\tstr2 = new String(ch);\n\t\t\tSystem.out.println(str2 + \" : \" + alphabet[i]);\n\t\t}",
"{\n\t\t\tch = Character.toChars(i + 0x61);\n\t\t\tstr2 = new String(ch);\n\t\t\tSystem.out.println(str2 + \" : \" + alphabet[i]);\n\t\t}",
"ch = Character.toChars(i + 0x61)",
"ch",
"Character.toChars(i + 0x61)",
"Character.toChars",
"Character",
"i + 0x61",
"i",
"0x61",
"str2 = new String(ch)",
"str2",
"new String(ch)",
"System.out.println(str2 + \" : \" + alphabet[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"str2 + \" : \" + alphabet[i]",
"str2 + \" : \" + alphabet[i]",
"str2",
"\" : \"",
"alphabet[i]",
"alphabet",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\t// Scanner???.nextLine()??§???????°????null???????´?????????????\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = input.readLine();\n\t\tint[] alphabet = new int[26];\n\t\tint check;\n\t\twhile(str != null) {\n\t\t\tstr = str.toLowerCase();\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tcheck = Character.getNumericValue(str.charAt(i));\n\t\t\t\tif (check - 10 >= 0 && check - 10 <= 25) {\n\t\t\t\t\talphabet[check - 10] += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tstr = input.readLine();\n\t\t}\n\t\tchar[] ch;\n\t\tString str2;\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tch = Character.toChars(i + 0x61);\n\t\t\tstr2 = new String(ch);\n\t\t\tSystem.out.println(str2 + \" : \" + alphabet[i]);\n\t\t}\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\t// Scanner???.nextLine()??§???????°????null???????´?????????????\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = input.readLine();\n\t\tint[] alphabet = new int[26];\n\t\tint check;\n\t\twhile(str != null) {\n\t\t\tstr = str.toLowerCase();\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tcheck = Character.getNumericValue(str.charAt(i));\n\t\t\t\tif (check - 10 >= 0 && check - 10 <= 25) {\n\t\t\t\t\talphabet[check - 10] += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tstr = input.readLine();\n\t\t}\n\t\tchar[] ch;\n\t\tString str2;\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tch = Character.toChars(i + 0x61);\n\t\t\tstr2 = new String(ch);\n\t\t\tSystem.out.println(str2 + \" : \" + alphabet[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 {
// Scanner???.nextLine()??§???????°????null???????´?????????????
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
String str = input.readLine();
int[] alphabet = new int[26];
int check;
while(str != null) {
str = str.toLowerCase();
for (int i = 0; i < str.length(); i++) {
check = Character.getNumericValue(str.charAt(i));
if (check - 10 >= 0 && check - 10 <= 25) {
alphabet[check - 10] += 1;
}
}
str = input.readLine();
}
char[] ch;
String str2;
for (int i = 0; i < 26; i++) {
ch = Character.toChars(i + 0x61);
str2 = new String(ch);
System.out.println(str2 + " : " + alphabet[i]);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
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,
18,
13,
13,
41,
13,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
0,
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,
3,
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
],
[
155,
8
],
[
155,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
23,
26
],
[
23,
27
],
[
23,
28
],
[
23,
29
],
[
23,
30
],
[
23,
31
],
[
23,
32
],
[
23,
33
],
[
23,
34
],
[
23,
35
],
[
23,
36
],
[
23,
37
],
[
23,
38
],
[
23,
39
],
[
23,
40
],
[
23,
41
],
[
23,
42
],
[
23,
43
],
[
23,
44
],
[
23,
45
],
[
23,
46
],
[
23,
47
],
[
23,
48
],
[
23,
49
],
[
11,
50
],
[
50,
51
],
[
50,
52
],
[
53,
54
],
[
53,
55
],
[
11,
56
],
[
56,
57
],
[
11,
58
],
[
58,
59
],
[
11,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
68,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
79,
89
],
[
89,
90
],
[
90,
91
],
[
79,
92
],
[
93,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
101,
103
],
[
94,
104
],
[
104,
105
],
[
105,
106
],
[
94,
107
],
[
108,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
114,
116
],
[
109,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
11,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
123,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
130,
132
],
[
123,
133
],
[
133,
134
],
[
134,
135
],
[
123,
136
],
[
137,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
144,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
144,
149
],
[
149,
150
],
[
149,
151
],
[
9,
152
],
[
152,
153
],
[
0,
154
],
[
154,
155
],
[
154,
156
]
]
| [
"import java.util.Scanner;\nimport java.io.*;\n\npublic class Main {\n\tpublic static void main(String[] args)throws IOException {\n\t\tScanner scan = new Scanner(System.in);\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(is);\n\t\tchar smallL[] = {'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 A[] = new int[smallL.length];\n\t\tString str;\n\t\tchar[] charArray;\n\n\t\twhile((str = br.readLine()) != null){\n\t\t\tstr = str.toLowerCase();\n\t\t\tcharArray = str.toCharArray();\n\t\t\tfor(int i = 0 ; i < charArray.length ; i++){\n\t\t\t\tfor(int j = 0 ; j < smallL.length ; j++){\n\t\t\t\t\tif(charArray[i] == smallL[j]){\n\t\t\t\t\t\t++A[j];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0 ; i < smallL.length ; i++){\n\t\t\tSystem.out.println(smallL[i] + \" : \" + A[i]);\n\t\t}\n\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)throws IOException {\n\t\tScanner scan = new Scanner(System.in);\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(is);\n\t\tchar smallL[] = {'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 A[] = new int[smallL.length];\n\t\tString str;\n\t\tchar[] charArray;\n\n\t\twhile((str = br.readLine()) != null){\n\t\t\tstr = str.toLowerCase();\n\t\t\tcharArray = str.toCharArray();\n\t\t\tfor(int i = 0 ; i < charArray.length ; i++){\n\t\t\t\tfor(int j = 0 ; j < smallL.length ; j++){\n\t\t\t\t\tif(charArray[i] == smallL[j]){\n\t\t\t\t\t\t++A[j];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0 ; i < smallL.length ; i++){\n\t\t\tSystem.out.println(smallL[i] + \" : \" + A[i]);\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args)throws IOException {\n\t\tScanner scan = new Scanner(System.in);\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(is);\n\t\tchar smallL[] = {'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 A[] = new int[smallL.length];\n\t\tString str;\n\t\tchar[] charArray;\n\n\t\twhile((str = br.readLine()) != null){\n\t\t\tstr = str.toLowerCase();\n\t\t\tcharArray = str.toCharArray();\n\t\t\tfor(int i = 0 ; i < charArray.length ; i++){\n\t\t\t\tfor(int j = 0 ; j < smallL.length ; j++){\n\t\t\t\t\tif(charArray[i] == smallL[j]){\n\t\t\t\t\t\t++A[j];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0 ; i < smallL.length ; i++){\n\t\t\tSystem.out.println(smallL[i] + \" : \" + A[i]);\n\t\t}\n\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(is);\n\t\tchar smallL[] = {'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 A[] = new int[smallL.length];\n\t\tString str;\n\t\tchar[] charArray;\n\n\t\twhile((str = br.readLine()) != null){\n\t\t\tstr = str.toLowerCase();\n\t\t\tcharArray = str.toCharArray();\n\t\t\tfor(int i = 0 ; i < charArray.length ; i++){\n\t\t\t\tfor(int j = 0 ; j < smallL.length ; j++){\n\t\t\t\t\tif(charArray[i] == smallL[j]){\n\t\t\t\t\t\t++A[j];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0 ; i < smallL.length ; i++){\n\t\t\tSystem.out.println(smallL[i] + \" : \" + A[i]);\n\t\t}\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"InputStreamReader is = new InputStreamReader(System.in);",
"is",
"new InputStreamReader(System.in)",
"BufferedReader br = new BufferedReader(is);",
"br",
"new BufferedReader(is)",
"char smallL[] = {'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'};",
"smallL",
"{'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 A[] = new int[smallL.length];",
"A",
"new int[smallL.length]",
"smallL.length",
"smallL",
"smallL.length",
"String str;",
"str",
"char[] charArray;",
"charArray",
"while((str = br.readLine()) != null){\n\t\t\tstr = str.toLowerCase();\n\t\t\tcharArray = str.toCharArray();\n\t\t\tfor(int i = 0 ; i < charArray.length ; i++){\n\t\t\t\tfor(int j = 0 ; j < smallL.length ; j++){\n\t\t\t\t\tif(charArray[i] == smallL[j]){\n\t\t\t\t\t\t++A[j];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\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\tcharArray = str.toCharArray();\n\t\t\tfor(int i = 0 ; i < charArray.length ; i++){\n\t\t\t\tfor(int j = 0 ; j < smallL.length ; j++){\n\t\t\t\t\tif(charArray[i] == smallL[j]){\n\t\t\t\t\t\t++A[j];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"str = str.toLowerCase()",
"str",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"charArray = str.toCharArray()",
"charArray",
"str.toCharArray()",
"str.toCharArray",
"str",
"for(int i = 0 ; i < charArray.length ; i++){\n\t\t\t\tfor(int j = 0 ; j < smallL.length ; j++){\n\t\t\t\t\tif(charArray[i] == smallL[j]){\n\t\t\t\t\t\t++A[j];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < charArray.length",
"i",
"charArray.length",
"charArray",
"charArray.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(int j = 0 ; j < smallL.length ; j++){\n\t\t\t\t\tif(charArray[i] == smallL[j]){\n\t\t\t\t\t\t++A[j];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int j = 0 ; j < smallL.length ; j++){\n\t\t\t\t\tif(charArray[i] == smallL[j]){\n\t\t\t\t\t\t++A[j];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"for(int j = 0 ; j < smallL.length ; j++){\n\t\t\t\t\tif(charArray[i] == smallL[j]){\n\t\t\t\t\t\t++A[j];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"int j = 0 ;",
"int j = 0 ;",
"j",
"0",
"j < smallL.length",
"j",
"smallL.length",
"smallL",
"smallL.length",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tif(charArray[i] == smallL[j]){\n\t\t\t\t\t\t++A[j];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif(charArray[i] == smallL[j]){\n\t\t\t\t\t\t++A[j];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"if(charArray[i] == smallL[j]){\n\t\t\t\t\t\t++A[j];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"charArray[i] == smallL[j]",
"charArray[i]",
"charArray",
"i",
"smallL[j]",
"smallL",
"j",
"{\n\t\t\t\t\t\t++A[j];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"++A[j]",
"A[j]",
"A",
"j",
"break;",
"for(int i = 0 ; i < smallL.length ; i++){\n\t\t\tSystem.out.println(smallL[i] + \" : \" + A[i]);\n\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < smallL.length",
"i",
"smallL.length",
"smallL",
"smallL.length",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(smallL[i] + \" : \" + A[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(smallL[i] + \" : \" + A[i]);\n\t\t}",
"System.out.println(smallL[i] + \" : \" + A[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"smallL[i] + \" : \" + A[i]",
"smallL[i] + \" : \" + A[i]",
"smallL[i]",
"smallL",
"i",
"\" : \"",
"A[i]",
"A",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args)throws IOException {\n\t\tScanner scan = new Scanner(System.in);\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(is);\n\t\tchar smallL[] = {'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 A[] = new int[smallL.length];\n\t\tString str;\n\t\tchar[] charArray;\n\n\t\twhile((str = br.readLine()) != null){\n\t\t\tstr = str.toLowerCase();\n\t\t\tcharArray = str.toCharArray();\n\t\t\tfor(int i = 0 ; i < charArray.length ; i++){\n\t\t\t\tfor(int j = 0 ; j < smallL.length ; j++){\n\t\t\t\t\tif(charArray[i] == smallL[j]){\n\t\t\t\t\t\t++A[j];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0 ; i < smallL.length ; i++){\n\t\t\tSystem.out.println(smallL[i] + \" : \" + A[i]);\n\t\t}\n\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args)throws IOException {\n\t\tScanner scan = new Scanner(System.in);\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(is);\n\t\tchar smallL[] = {'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 A[] = new int[smallL.length];\n\t\tString str;\n\t\tchar[] charArray;\n\n\t\twhile((str = br.readLine()) != null){\n\t\t\tstr = str.toLowerCase();\n\t\t\tcharArray = str.toCharArray();\n\t\t\tfor(int i = 0 ; i < charArray.length ; i++){\n\t\t\t\tfor(int j = 0 ; j < smallL.length ; j++){\n\t\t\t\t\tif(charArray[i] == smallL[j]){\n\t\t\t\t\t\t++A[j];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor(int i = 0 ; i < smallL.length ; i++){\n\t\t\tSystem.out.println(smallL[i] + \" : \" + A[i]);\n\t\t}\n\n\t}\n}",
"Main"
]
| import java.util.Scanner;
import java.io.*;
public class Main {
public static void main(String[] args)throws IOException {
Scanner scan = new Scanner(System.in);
InputStreamReader is = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(is);
char smallL[] = {'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 A[] = new int[smallL.length];
String str;
char[] charArray;
while((str = br.readLine()) != null){
str = str.toLowerCase();
charArray = str.toCharArray();
for(int i = 0 ; i < charArray.length ; i++){
for(int j = 0 ; j < smallL.length ; j++){
if(charArray[i] == smallL[j]){
++A[j];
break;
}
}
}
}
for(int i = 0 ; i < smallL.length ; i++){
System.out.println(smallL[i] + " : " + A[i]);
}
}
} |
[
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,
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,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
13,
18,
13,
2,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
97,
5
],
[
97,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
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
],
[
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
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
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
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
69,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
82,
88
],
[
82,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
91,
93
],
[
6,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
]
| [
"import java.util.*;\n public class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int[] counter =new int[30];\n \n int i;\n while(sc.hasNext()){\n String str = sc.next();\n String str_low =str.toLowerCase();\n for(i=0;i<str.length();i++){\n \n \n char value = str_low.charAt(i);\n if(value<123 && value>=97){\n counter[value-97]++;\n }\n }\n }\n for(i=97;i<123;i++){\n System.out.printf(\"%c : %d\\n\",i,counter[i-97]);\n }\n }\n }",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int[] counter =new int[30];\n \n int i;\n while(sc.hasNext()){\n String str = sc.next();\n String str_low =str.toLowerCase();\n for(i=0;i<str.length();i++){\n \n \n char value = str_low.charAt(i);\n if(value<123 && value>=97){\n counter[value-97]++;\n }\n }\n }\n for(i=97;i<123;i++){\n System.out.printf(\"%c : %d\\n\",i,counter[i-97]);\n }\n }\n }",
"Main",
"public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int[] counter =new int[30];\n \n int i;\n while(sc.hasNext()){\n String str = sc.next();\n String str_low =str.toLowerCase();\n for(i=0;i<str.length();i++){\n \n \n char value = str_low.charAt(i);\n if(value<123 && value>=97){\n counter[value-97]++;\n }\n }\n }\n for(i=97;i<123;i++){\n System.out.printf(\"%c : %d\\n\",i,counter[i-97]);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int[] counter =new int[30];\n \n int i;\n while(sc.hasNext()){\n String str = sc.next();\n String str_low =str.toLowerCase();\n for(i=0;i<str.length();i++){\n \n \n char value = str_low.charAt(i);\n if(value<123 && value>=97){\n counter[value-97]++;\n }\n }\n }\n for(i=97;i<123;i++){\n System.out.printf(\"%c : %d\\n\",i,counter[i-97]);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] counter =new int[30];",
"counter",
"new int[30]",
"30",
"int i;",
"i",
"while(sc.hasNext()){\n String str = sc.next();\n String str_low =str.toLowerCase();\n for(i=0;i<str.length();i++){\n \n \n char value = str_low.charAt(i);\n if(value<123 && value>=97){\n counter[value-97]++;\n }\n }\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n String str = sc.next();\n String str_low =str.toLowerCase();\n for(i=0;i<str.length();i++){\n \n \n char value = str_low.charAt(i);\n if(value<123 && value>=97){\n counter[value-97]++;\n }\n }\n }",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"String str_low =str.toLowerCase();",
"str_low",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"for(i=0;i<str.length();i++){\n \n \n char value = str_low.charAt(i);\n if(value<123 && value>=97){\n counter[value-97]++;\n }\n }",
"i=0;",
"i=0",
"i",
"0",
"i<str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n \n \n char value = str_low.charAt(i);\n if(value<123 && value>=97){\n counter[value-97]++;\n }\n }",
"{\n \n \n char value = str_low.charAt(i);\n if(value<123 && value>=97){\n counter[value-97]++;\n }\n }",
"char value = str_low.charAt(i);",
"value",
"str_low.charAt(i)",
"str_low.charAt",
"str_low",
"i",
"if(value<123 && value>=97){\n counter[value-97]++;\n }",
"value<123 && value>=97",
"value<123",
"value",
"123",
"value>=97",
"value",
"97",
"{\n counter[value-97]++;\n }",
"counter[value-97]++",
"counter[value-97]",
"counter",
"value-97",
"value",
"97",
"for(i=97;i<123;i++){\n System.out.printf(\"%c : %d\\n\",i,counter[i-97]);\n }",
"i=97;",
"i=97",
"i",
"97",
"i<123",
"i",
"123",
"i++",
"i++",
"i",
"{\n System.out.printf(\"%c : %d\\n\",i,counter[i-97]);\n }",
"{\n System.out.printf(\"%c : %d\\n\",i,counter[i-97]);\n }",
"System.out.printf(\"%c : %d\\n\",i,counter[i-97])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c : %d\\n\"",
"i",
"counter[i-97]",
"counter",
"i-97",
"i",
"97",
"String args[]",
"args",
"public class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int[] counter =new int[30];\n \n int i;\n while(sc.hasNext()){\n String str = sc.next();\n String str_low =str.toLowerCase();\n for(i=0;i<str.length();i++){\n \n \n char value = str_low.charAt(i);\n if(value<123 && value>=97){\n counter[value-97]++;\n }\n }\n }\n for(i=97;i<123;i++){\n System.out.printf(\"%c : %d\\n\",i,counter[i-97]);\n }\n }\n }",
"public class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int[] counter =new int[30];\n \n int i;\n while(sc.hasNext()){\n String str = sc.next();\n String str_low =str.toLowerCase();\n for(i=0;i<str.length();i++){\n \n \n char value = str_low.charAt(i);\n if(value<123 && value>=97){\n counter[value-97]++;\n }\n }\n }\n for(i=97;i<123;i++){\n System.out.printf(\"%c : %d\\n\",i,counter[i-97]);\n }\n }\n }",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int[] counter =new int[30];
int i;
while(sc.hasNext()){
String str = sc.next();
String str_low =str.toLowerCase();
for(i=0;i<str.length();i++){
char value = str_low.charAt(i);
if(value<123 && value>=97){
counter[value-97]++;
}
}
}
for(i=97;i<123;i++){
System.out.printf("%c : %d\n",i,counter[i-97]);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
4,
18,
13,
17,
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,
41,
13,
20,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
17,
41,
13,
17,
41,
13,
13,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
18,
13,
13,
17,
0,
13,
4,
18,
13,
0,
18,
13,
13,
2,
13,
13,
0,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
165,
8
],
[
165,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
15,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
12,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
26,
28
],
[
26,
29
],
[
26,
30
],
[
26,
31
],
[
26,
32
],
[
26,
33
],
[
26,
34
],
[
26,
35
],
[
26,
36
],
[
26,
37
],
[
26,
38
],
[
26,
39
],
[
26,
40
],
[
26,
41
],
[
26,
42
],
[
26,
43
],
[
26,
44
],
[
26,
45
],
[
26,
46
],
[
26,
47
],
[
26,
48
],
[
26,
49
],
[
26,
50
],
[
26,
51
],
[
26,
52
],
[
23,
53
],
[
53,
54
],
[
53,
55
],
[
23,
57
],
[
57,
58
],
[
57,
59
],
[
23,
60
],
[
60,
61
],
[
23,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
63,
69
],
[
62,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
70,
77
],
[
77,
78
],
[
77,
79
],
[
70,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
70,
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
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
97,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
108,
109
],
[
108,
110
],
[
105,
111
],
[
97,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
97,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
121,
122
],
[
121,
123
],
[
97,
124
],
[
124,
125
],
[
124,
126
],
[
23,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
127,
135
],
[
135,
136
],
[
136,
137
],
[
127,
138
],
[
139,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
140,
145
],
[
145,
146
],
[
145,
147
],
[
139,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
139,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
159,
160
],
[
159,
161
],
[
9,
162
],
[
162,
163
],
[
0,
164
],
[
164,
165
],
[
164,
166
]
]
| [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tString[] alpha = { \"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\",\n\t\t\t\t\t\"j\", \"k\", \"l\", \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\",\n\t\t\t\t\t\"v\", \"w\", \"x\", \"y\", \"z\" };\n\t\t\tint[] alpha_int = new int[26];\n\n\t\t\tBufferedReader stdReader = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(System.in));\n\t\t\tString line;\n\t\t\twhile ((line = stdReader.readLine()) != null) {\n\n\t\t\t\tint length1 = 0;\n\t\t\t\tint length2 = 0;\n\n\n\t\t\t\t\tString s = line;\n\t\t\t\t\tlength1 = s.length();\n\t\t\t\t\tfor (int j = 0; j < 26; j++) {\n\t\t\t\t\t\ts = s.toLowerCase();\n\t\t\t\t\t\ts = s.replaceAll(alpha[j], \"\");\n\t\t\t\t\t\tlength2 = s.length();\n\t\t\t\t\t\talpha_int[j] += length1 - length2;\n\t\t\t\t\t\ts = line;\n\t\t\t\t\t}\n\n\t\t\t\t\n\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < 26; i++) {\n\t\t\t\tSystem.out.print(alpha[i]);\n\t\t\t\tSystem.out.print(\" : \");\n\t\t\t\tSystem.out.println(alpha_int[i]);\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.getStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t}\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\ttry {\n\t\t\tString[] alpha = { \"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\",\n\t\t\t\t\t\"j\", \"k\", \"l\", \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\",\n\t\t\t\t\t\"v\", \"w\", \"x\", \"y\", \"z\" };\n\t\t\tint[] alpha_int = new int[26];\n\n\t\t\tBufferedReader stdReader = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(System.in));\n\t\t\tString line;\n\t\t\twhile ((line = stdReader.readLine()) != null) {\n\n\t\t\t\tint length1 = 0;\n\t\t\t\tint length2 = 0;\n\n\n\t\t\t\t\tString s = line;\n\t\t\t\t\tlength1 = s.length();\n\t\t\t\t\tfor (int j = 0; j < 26; j++) {\n\t\t\t\t\t\ts = s.toLowerCase();\n\t\t\t\t\t\ts = s.replaceAll(alpha[j], \"\");\n\t\t\t\t\t\tlength2 = s.length();\n\t\t\t\t\t\talpha_int[j] += length1 - length2;\n\t\t\t\t\t\ts = line;\n\t\t\t\t\t}\n\n\t\t\t\t\n\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < 26; i++) {\n\t\t\t\tSystem.out.print(alpha[i]);\n\t\t\t\tSystem.out.print(\" : \");\n\t\t\t\tSystem.out.println(alpha_int[i]);\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.getStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\ttry {\n\t\t\tString[] alpha = { \"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\",\n\t\t\t\t\t\"j\", \"k\", \"l\", \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\",\n\t\t\t\t\t\"v\", \"w\", \"x\", \"y\", \"z\" };\n\t\t\tint[] alpha_int = new int[26];\n\n\t\t\tBufferedReader stdReader = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(System.in));\n\t\t\tString line;\n\t\t\twhile ((line = stdReader.readLine()) != null) {\n\n\t\t\t\tint length1 = 0;\n\t\t\t\tint length2 = 0;\n\n\n\t\t\t\t\tString s = line;\n\t\t\t\t\tlength1 = s.length();\n\t\t\t\t\tfor (int j = 0; j < 26; j++) {\n\t\t\t\t\t\ts = s.toLowerCase();\n\t\t\t\t\t\ts = s.replaceAll(alpha[j], \"\");\n\t\t\t\t\t\tlength2 = s.length();\n\t\t\t\t\t\talpha_int[j] += length1 - length2;\n\t\t\t\t\t\ts = line;\n\t\t\t\t\t}\n\n\t\t\t\t\n\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < 26; i++) {\n\t\t\t\tSystem.out.print(alpha[i]);\n\t\t\t\tSystem.out.print(\" : \");\n\t\t\t\tSystem.out.println(alpha_int[i]);\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.getStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"main",
"{\n\t\ttry {\n\t\t\tString[] alpha = { \"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\",\n\t\t\t\t\t\"j\", \"k\", \"l\", \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\",\n\t\t\t\t\t\"v\", \"w\", \"x\", \"y\", \"z\" };\n\t\t\tint[] alpha_int = new int[26];\n\n\t\t\tBufferedReader stdReader = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(System.in));\n\t\t\tString line;\n\t\t\twhile ((line = stdReader.readLine()) != null) {\n\n\t\t\t\tint length1 = 0;\n\t\t\t\tint length2 = 0;\n\n\n\t\t\t\t\tString s = line;\n\t\t\t\t\tlength1 = s.length();\n\t\t\t\t\tfor (int j = 0; j < 26; j++) {\n\t\t\t\t\t\ts = s.toLowerCase();\n\t\t\t\t\t\ts = s.replaceAll(alpha[j], \"\");\n\t\t\t\t\t\tlength2 = s.length();\n\t\t\t\t\t\talpha_int[j] += length1 - length2;\n\t\t\t\t\t\ts = line;\n\t\t\t\t\t}\n\n\t\t\t\t\n\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < 26; i++) {\n\t\t\t\tSystem.out.print(alpha[i]);\n\t\t\t\tSystem.out.print(\" : \");\n\t\t\t\tSystem.out.println(alpha_int[i]);\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.getStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"try {\n\t\t\tString[] alpha = { \"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\",\n\t\t\t\t\t\"j\", \"k\", \"l\", \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\",\n\t\t\t\t\t\"v\", \"w\", \"x\", \"y\", \"z\" };\n\t\t\tint[] alpha_int = new int[26];\n\n\t\t\tBufferedReader stdReader = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(System.in));\n\t\t\tString line;\n\t\t\twhile ((line = stdReader.readLine()) != null) {\n\n\t\t\t\tint length1 = 0;\n\t\t\t\tint length2 = 0;\n\n\n\t\t\t\t\tString s = line;\n\t\t\t\t\tlength1 = s.length();\n\t\t\t\t\tfor (int j = 0; j < 26; j++) {\n\t\t\t\t\t\ts = s.toLowerCase();\n\t\t\t\t\t\ts = s.replaceAll(alpha[j], \"\");\n\t\t\t\t\t\tlength2 = s.length();\n\t\t\t\t\t\talpha_int[j] += length1 - length2;\n\t\t\t\t\t\ts = line;\n\t\t\t\t\t}\n\n\t\t\t\t\n\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < 26; i++) {\n\t\t\t\tSystem.out.print(alpha[i]);\n\t\t\t\tSystem.out.print(\" : \");\n\t\t\t\tSystem.out.println(alpha_int[i]);\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.getStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}",
"catch (Exception e) {\n\t\t\te.getStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}",
"Exception e",
"{\n\t\t\te.getStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}",
"e.getStackTrace()",
"e.getStackTrace",
"e",
"System.exit(0)",
"System.exit",
"System",
"0",
"{\n\t\t\tString[] alpha = { \"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\",\n\t\t\t\t\t\"j\", \"k\", \"l\", \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\",\n\t\t\t\t\t\"v\", \"w\", \"x\", \"y\", \"z\" };\n\t\t\tint[] alpha_int = new int[26];\n\n\t\t\tBufferedReader stdReader = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(System.in));\n\t\t\tString line;\n\t\t\twhile ((line = stdReader.readLine()) != null) {\n\n\t\t\t\tint length1 = 0;\n\t\t\t\tint length2 = 0;\n\n\n\t\t\t\t\tString s = line;\n\t\t\t\t\tlength1 = s.length();\n\t\t\t\t\tfor (int j = 0; j < 26; j++) {\n\t\t\t\t\t\ts = s.toLowerCase();\n\t\t\t\t\t\ts = s.replaceAll(alpha[j], \"\");\n\t\t\t\t\t\tlength2 = s.length();\n\t\t\t\t\t\talpha_int[j] += length1 - length2;\n\t\t\t\t\t\ts = line;\n\t\t\t\t\t}\n\n\t\t\t\t\n\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < 26; i++) {\n\t\t\t\tSystem.out.print(alpha[i]);\n\t\t\t\tSystem.out.print(\" : \");\n\t\t\t\tSystem.out.println(alpha_int[i]);\n\t\t\t}\n\t\t\t\n\t\t}",
"String[] alpha = { \"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\",\n\t\t\t\t\t\"j\", \"k\", \"l\", \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\",\n\t\t\t\t\t\"v\", \"w\", \"x\", \"y\", \"z\" };",
"alpha",
"{ \"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\",\n\t\t\t\t\t\"j\", \"k\", \"l\", \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\",\n\t\t\t\t\t\"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[] alpha_int = new int[26];",
"alpha_int",
"new int[26]",
"26",
"BufferedReader stdReader = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(System.in));",
"stdReader",
"new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(System.in))",
"String line;",
"line",
"while ((line = stdReader.readLine()) != null) {\n\n\t\t\t\tint length1 = 0;\n\t\t\t\tint length2 = 0;\n\n\n\t\t\t\t\tString s = line;\n\t\t\t\t\tlength1 = s.length();\n\t\t\t\t\tfor (int j = 0; j < 26; j++) {\n\t\t\t\t\t\ts = s.toLowerCase();\n\t\t\t\t\t\ts = s.replaceAll(alpha[j], \"\");\n\t\t\t\t\t\tlength2 = s.length();\n\t\t\t\t\t\talpha_int[j] += length1 - length2;\n\t\t\t\t\t\ts = line;\n\t\t\t\t\t}\n\n\t\t\t\t\n\n\t\t\t}",
"(line = stdReader.readLine()) != null",
"(line = stdReader.readLine())",
"line",
"stdReader.readLine()",
"stdReader.readLine",
"stdReader",
"null",
"{\n\n\t\t\t\tint length1 = 0;\n\t\t\t\tint length2 = 0;\n\n\n\t\t\t\t\tString s = line;\n\t\t\t\t\tlength1 = s.length();\n\t\t\t\t\tfor (int j = 0; j < 26; j++) {\n\t\t\t\t\t\ts = s.toLowerCase();\n\t\t\t\t\t\ts = s.replaceAll(alpha[j], \"\");\n\t\t\t\t\t\tlength2 = s.length();\n\t\t\t\t\t\talpha_int[j] += length1 - length2;\n\t\t\t\t\t\ts = line;\n\t\t\t\t\t}\n\n\t\t\t\t\n\n\t\t\t}",
"int length1 = 0;",
"length1",
"0",
"int length2 = 0;",
"length2",
"0",
"String s = line;",
"s",
"line",
"length1 = s.length()",
"length1",
"s.length()",
"s.length",
"s",
"for (int j = 0; j < 26; j++) {\n\t\t\t\t\t\ts = s.toLowerCase();\n\t\t\t\t\t\ts = s.replaceAll(alpha[j], \"\");\n\t\t\t\t\t\tlength2 = s.length();\n\t\t\t\t\t\talpha_int[j] += length1 - length2;\n\t\t\t\t\t\ts = line;\n\t\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 26",
"j",
"26",
"j++",
"j++",
"j",
"{\n\t\t\t\t\t\ts = s.toLowerCase();\n\t\t\t\t\t\ts = s.replaceAll(alpha[j], \"\");\n\t\t\t\t\t\tlength2 = s.length();\n\t\t\t\t\t\talpha_int[j] += length1 - length2;\n\t\t\t\t\t\ts = line;\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\ts = s.toLowerCase();\n\t\t\t\t\t\ts = s.replaceAll(alpha[j], \"\");\n\t\t\t\t\t\tlength2 = s.length();\n\t\t\t\t\t\talpha_int[j] += length1 - length2;\n\t\t\t\t\t\ts = line;\n\t\t\t\t\t}",
"s = s.toLowerCase()",
"s",
"s.toLowerCase()",
"s.toLowerCase",
"s",
"s = s.replaceAll(alpha[j], \"\")",
"s",
"s.replaceAll(alpha[j], \"\")",
"s.replaceAll",
"s",
"alpha[j]",
"alpha",
"j",
"\"\"",
"length2 = s.length()",
"length2",
"s.length()",
"s.length",
"s",
"alpha_int[j] += length1 - length2",
"alpha_int[j]",
"alpha_int",
"j",
"length1 - length2",
"length1",
"length2",
"s = line",
"s",
"line",
"for (int i = 0; i < 26; i++) {\n\t\t\t\tSystem.out.print(alpha[i]);\n\t\t\t\tSystem.out.print(\" : \");\n\t\t\t\tSystem.out.println(alpha_int[i]);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\t\tSystem.out.print(alpha[i]);\n\t\t\t\tSystem.out.print(\" : \");\n\t\t\t\tSystem.out.println(alpha_int[i]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(alpha[i]);\n\t\t\t\tSystem.out.print(\" : \");\n\t\t\t\tSystem.out.println(alpha_int[i]);\n\t\t\t}",
"System.out.print(alpha[i])",
"System.out.print",
"System.out",
"System",
"System.out",
"alpha[i]",
"alpha",
"i",
"System.out.print(\" : \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" : \"",
"System.out.println(alpha_int[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"alpha_int[i]",
"alpha_int",
"i",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tString[] alpha = { \"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\",\n\t\t\t\t\t\"j\", \"k\", \"l\", \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\",\n\t\t\t\t\t\"v\", \"w\", \"x\", \"y\", \"z\" };\n\t\t\tint[] alpha_int = new int[26];\n\n\t\t\tBufferedReader stdReader = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(System.in));\n\t\t\tString line;\n\t\t\twhile ((line = stdReader.readLine()) != null) {\n\n\t\t\t\tint length1 = 0;\n\t\t\t\tint length2 = 0;\n\n\n\t\t\t\t\tString s = line;\n\t\t\t\t\tlength1 = s.length();\n\t\t\t\t\tfor (int j = 0; j < 26; j++) {\n\t\t\t\t\t\ts = s.toLowerCase();\n\t\t\t\t\t\ts = s.replaceAll(alpha[j], \"\");\n\t\t\t\t\t\tlength2 = s.length();\n\t\t\t\t\t\talpha_int[j] += length1 - length2;\n\t\t\t\t\t\ts = line;\n\t\t\t\t\t}\n\n\t\t\t\t\n\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < 26; i++) {\n\t\t\t\tSystem.out.print(alpha[i]);\n\t\t\t\tSystem.out.print(\" : \");\n\t\t\t\tSystem.out.println(alpha_int[i]);\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.getStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tString[] alpha = { \"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\",\n\t\t\t\t\t\"j\", \"k\", \"l\", \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\",\n\t\t\t\t\t\"v\", \"w\", \"x\", \"y\", \"z\" };\n\t\t\tint[] alpha_int = new int[26];\n\n\t\t\tBufferedReader stdReader = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(System.in));\n\t\t\tString line;\n\t\t\twhile ((line = stdReader.readLine()) != null) {\n\n\t\t\t\tint length1 = 0;\n\t\t\t\tint length2 = 0;\n\n\n\t\t\t\t\tString s = line;\n\t\t\t\t\tlength1 = s.length();\n\t\t\t\t\tfor (int j = 0; j < 26; j++) {\n\t\t\t\t\t\ts = s.toLowerCase();\n\t\t\t\t\t\ts = s.replaceAll(alpha[j], \"\");\n\t\t\t\t\t\tlength2 = s.length();\n\t\t\t\t\t\talpha_int[j] += length1 - length2;\n\t\t\t\t\t\ts = line;\n\t\t\t\t\t}\n\n\t\t\t\t\n\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < 26; i++) {\n\t\t\t\tSystem.out.print(alpha[i]);\n\t\t\t\tSystem.out.print(\" : \");\n\t\t\t\tSystem.out.println(alpha_int[i]);\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.getStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
try {
String[] 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[] alpha_int = new int[26];
BufferedReader stdReader = new BufferedReader(
new InputStreamReader(System.in));
String line;
while ((line = stdReader.readLine()) != null) {
int length1 = 0;
int length2 = 0;
String s = line;
length1 = s.length();
for (int j = 0; j < 26; j++) {
s = s.toLowerCase();
s = s.replaceAll(alpha[j], "");
length2 = s.length();
alpha_int[j] += length1 - length2;
s = line;
}
}
for (int i = 0; i < 26; i++) {
System.out.print(alpha[i]);
System.out.print(" : ");
System.out.println(alpha_int[i]);
}
} catch (Exception e) {
e.getStackTrace();
System.exit(0);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
42,
4,
18,
13,
30,
4,
18,
13,
4,
18,
4,
18,
13,
41,
13,
41,
13,
17,
41,
13,
20,
17,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
2,
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,
2,
13,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
118,
5
],
[
118,
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
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
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
],
[
49,
50
],
[
50,
51
],
[
42,
52
],
[
52,
53
],
[
53,
54
],
[
42,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
56,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
63,
74
],
[
75,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
76,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
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
],
[
107,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
6,
115
],
[
115,
116
],
[
0,
117
],
[
117,
118
],
[
117,
119
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n\n while(sc.hasNextLine()){\n sb.append(sc.nextLine().toLowerCase());\n }\n\n char now;\n char a = 'a';\n int[] data = new int[26];\n String line = sb.toString();\n\n for(int i = 0; i < line.length(); i++){\n now = line.charAt(i);\n for(int j = 0; j < 26; j++){\n if(now == (char)(a+j)){\n data[j]++;\n break;\n }\n }\n }\n\n for(int i = 0; i < 26; i++){\n System.out.println((char)(a+i) + \" : \" + data[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 StringBuilder sb = new StringBuilder();\n\n while(sc.hasNextLine()){\n sb.append(sc.nextLine().toLowerCase());\n }\n\n char now;\n char a = 'a';\n int[] data = new int[26];\n String line = sb.toString();\n\n for(int i = 0; i < line.length(); i++){\n now = line.charAt(i);\n for(int j = 0; j < 26; j++){\n if(now == (char)(a+j)){\n data[j]++;\n break;\n }\n }\n }\n\n for(int i = 0; i < 26; i++){\n System.out.println((char)(a+i) + \" : \" + data[i]);\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n\n while(sc.hasNextLine()){\n sb.append(sc.nextLine().toLowerCase());\n }\n\n char now;\n char a = 'a';\n int[] data = new int[26];\n String line = sb.toString();\n\n for(int i = 0; i < line.length(); i++){\n now = line.charAt(i);\n for(int j = 0; j < 26; j++){\n if(now == (char)(a+j)){\n data[j]++;\n break;\n }\n }\n }\n\n for(int i = 0; i < 26; i++){\n System.out.println((char)(a+i) + \" : \" + data[i]);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n\n while(sc.hasNextLine()){\n sb.append(sc.nextLine().toLowerCase());\n }\n\n char now;\n char a = 'a';\n int[] data = new int[26];\n String line = sb.toString();\n\n for(int i = 0; i < line.length(); i++){\n now = line.charAt(i);\n for(int j = 0; j < 26; j++){\n if(now == (char)(a+j)){\n data[j]++;\n break;\n }\n }\n }\n\n for(int i = 0; i < 26; i++){\n System.out.println((char)(a+i) + \" : \" + data[i]);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"while(sc.hasNextLine()){\n sb.append(sc.nextLine().toLowerCase());\n }",
"sc.hasNextLine()",
"sc.hasNextLine",
"sc",
"{\n sb.append(sc.nextLine().toLowerCase());\n }",
"sb.append(sc.nextLine().toLowerCase())",
"sb.append",
"sb",
"sc.nextLine().toLowerCase()",
"sc.nextLine().toLowerCase",
"sc.nextLine()",
"sc.nextLine",
"sc",
"char now;",
"now",
"char a = 'a';",
"a",
"'a'",
"int[] data = new int[26];",
"data",
"new int[26]",
"26",
"String line = sb.toString();",
"line",
"sb.toString()",
"sb.toString",
"sb",
"for(int i = 0; i < line.length(); i++){\n now = line.charAt(i);\n for(int j = 0; j < 26; j++){\n if(now == (char)(a+j)){\n data[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 now = line.charAt(i);\n for(int j = 0; j < 26; j++){\n if(now == (char)(a+j)){\n data[j]++;\n break;\n }\n }\n }",
"{\n now = line.charAt(i);\n for(int j = 0; j < 26; j++){\n if(now == (char)(a+j)){\n data[j]++;\n break;\n }\n }\n }",
"now = line.charAt(i)",
"now",
"line.charAt(i)",
"line.charAt",
"line",
"i",
"for(int j = 0; j < 26; j++){\n if(now == (char)(a+j)){\n data[j]++;\n break;\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 26",
"j",
"26",
"j++",
"j++",
"j",
"{\n if(now == (char)(a+j)){\n data[j]++;\n break;\n }\n }",
"{\n if(now == (char)(a+j)){\n data[j]++;\n break;\n }\n }",
"if(now == (char)(a+j)){\n data[j]++;\n break;\n }",
"now == (char)(a+j)",
"now",
"(char)(a+j)",
"a",
"j",
"{\n data[j]++;\n break;\n }",
"data[j]++",
"data[j]",
"data",
"j",
"break;",
"for(int i = 0; i < 26; i++){\n System.out.println((char)(a+i) + \" : \" + data[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n System.out.println((char)(a+i) + \" : \" + data[i]);\n }",
"{\n System.out.println((char)(a+i) + \" : \" + data[i]);\n }",
"System.out.println((char)(a+i) + \" : \" + data[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)(a+i) + \" : \" + data[i]",
"(char)(a+i) + \" : \" + data[i]",
"(char)(a+i)",
"a",
"i",
"\" : \"",
"data[i]",
"data",
"i",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n\n while(sc.hasNextLine()){\n sb.append(sc.nextLine().toLowerCase());\n }\n\n char now;\n char a = 'a';\n int[] data = new int[26];\n String line = sb.toString();\n\n for(int i = 0; i < line.length(); i++){\n now = line.charAt(i);\n for(int j = 0; j < 26; j++){\n if(now == (char)(a+j)){\n data[j]++;\n break;\n }\n }\n }\n\n for(int i = 0; i < 26; i++){\n System.out.println((char)(a+i) + \" : \" + data[i]);\n }\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n\n while(sc.hasNextLine()){\n sb.append(sc.nextLine().toLowerCase());\n }\n\n char now;\n char a = 'a';\n int[] data = new int[26];\n String line = sb.toString();\n\n for(int i = 0; i < line.length(); i++){\n now = line.charAt(i);\n for(int j = 0; j < 26; j++){\n if(now == (char)(a+j)){\n data[j]++;\n break;\n }\n }\n }\n\n for(int i = 0; i < 26; i++){\n System.out.println((char)(a+i) + \" : \" + data[i]);\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
StringBuilder sb = new StringBuilder();
while(sc.hasNextLine()){
sb.append(sc.nextLine().toLowerCase());
}
char now;
char a = 'a';
int[] data = new int[26];
String line = sb.toString();
for(int i = 0; i < line.length(); i++){
now = line.charAt(i);
for(int j = 0; j < 26; j++){
if(now == (char)(a+j)){
data[j]++;
break;
}
}
}
for(int i = 0; i < 26; i++){
System.out.println((char)(a+i) + " : " + data[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,
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,
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
],
[
103,
11
],
[
103,
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
],
[
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
],
[
52,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
14,
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
],
[
93,
95
],
[
92,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
12,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
]
| [
"import java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tfinal BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint a[]=new int[26];\n\t\twhile((str=br.readLine())!=null){\n\t\t\n\t\tstr=str.toLowerCase();\n\t\t\n\t\tfor(int i=0;i<str.length();i++){\n\t\t\tchar ch=str.charAt(i);\n\t\t\tif(ch<='z'&&ch>='a') a[ch-97]++;\n\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++){\n\t\t\tSystem.out.println((char)('a'+i) +\" : \"+a[i]);\n\t\t}\n\t\t\n\t\t\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"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 IOException{\n\t\tfinal BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint a[]=new int[26];\n\t\twhile((str=br.readLine())!=null){\n\t\t\n\t\tstr=str.toLowerCase();\n\t\t\n\t\tfor(int i=0;i<str.length();i++){\n\t\t\tchar ch=str.charAt(i);\n\t\t\tif(ch<='z'&&ch>='a') a[ch-97]++;\n\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++){\n\t\t\tSystem.out.println((char)('a'+i) +\" : \"+a[i]);\n\t\t}\n\t\t\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\t\tfinal BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint a[]=new int[26];\n\t\twhile((str=br.readLine())!=null){\n\t\t\n\t\tstr=str.toLowerCase();\n\t\t\n\t\tfor(int i=0;i<str.length();i++){\n\t\t\tchar ch=str.charAt(i);\n\t\t\tif(ch<='z'&&ch>='a') a[ch-97]++;\n\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++){\n\t\t\tSystem.out.println((char)('a'+i) +\" : \"+a[i]);\n\t\t}\n\t\t\n\t\t\n\t}",
"main",
"{\n\t\tfinal BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint a[]=new int[26];\n\t\twhile((str=br.readLine())!=null){\n\t\t\n\t\tstr=str.toLowerCase();\n\t\t\n\t\tfor(int i=0;i<str.length();i++){\n\t\t\tchar ch=str.charAt(i);\n\t\t\tif(ch<='z'&&ch>='a') a[ch-97]++;\n\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++){\n\t\t\tSystem.out.println((char)('a'+i) +\" : \"+a[i]);\n\t\t}\n\t\t\n\t\t\n\t}",
"final BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str;",
"str",
"int a[]=new int[26];",
"a",
"new int[26]",
"26",
"while((str=br.readLine())!=null){\n\t\t\n\t\tstr=str.toLowerCase();\n\t\t\n\t\tfor(int i=0;i<str.length();i++){\n\t\t\tchar ch=str.charAt(i);\n\t\t\tif(ch<='z'&&ch>='a') a[ch-97]++;\n\t\t}\n\t\t}",
"(str=br.readLine())!=null",
"(str=br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\t\t\n\t\tstr=str.toLowerCase();\n\t\t\n\t\tfor(int i=0;i<str.length();i++){\n\t\t\tchar ch=str.charAt(i);\n\t\t\tif(ch<='z'&&ch>='a') a[ch-97]++;\n\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\tchar ch=str.charAt(i);\n\t\t\tif(ch<='z'&&ch>='a') a[ch-97]++;\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 ch=str.charAt(i);\n\t\t\tif(ch<='z'&&ch>='a') a[ch-97]++;\n\t\t}",
"{\n\t\t\tchar ch=str.charAt(i);\n\t\t\tif(ch<='z'&&ch>='a') a[ch-97]++;\n\t\t}",
"char ch=str.charAt(i);",
"ch",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"if(ch<='z'&&ch>='a') a[ch-97]++;",
"ch<='z'&&ch>='a'",
"ch<='z'",
"ch",
"'z'",
"ch>='a'",
"ch",
"'a'",
"a[ch-97]++",
"a[ch-97]",
"a",
"ch-97",
"ch",
"97",
"for(int i=0;i<26;i++){\n\t\t\tSystem.out.println((char)('a'+i) +\" : \"+a[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) +\" : \"+a[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println((char)('a'+i) +\" : \"+a[i]);\n\t\t}",
"System.out.println((char)('a'+i) +\" : \"+a[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)('a'+i) +\" : \"+a[i]",
"(char)('a'+i) +\" : \"+a[i]",
"(char)('a'+i)",
"'a'",
"i",
"\" : \"",
"a[i]",
"a",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tfinal BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint a[]=new int[26];\n\t\twhile((str=br.readLine())!=null){\n\t\t\n\t\tstr=str.toLowerCase();\n\t\t\n\t\tfor(int i=0;i<str.length();i++){\n\t\t\tchar ch=str.charAt(i);\n\t\t\tif(ch<='z'&&ch>='a') a[ch-97]++;\n\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++){\n\t\t\tSystem.out.println((char)('a'+i) +\" : \"+a[i]);\n\t\t}\n\t\t\n\t\t\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tfinal BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint a[]=new int[26];\n\t\twhile((str=br.readLine())!=null){\n\t\t\n\t\tstr=str.toLowerCase();\n\t\t\n\t\tfor(int i=0;i<str.length();i++){\n\t\t\tchar ch=str.charAt(i);\n\t\t\tif(ch<='z'&&ch>='a') a[ch-97]++;\n\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++){\n\t\t\tSystem.out.println((char)('a'+i) +\" : \"+a[i]);\n\t\t}\n\t\t\n\t\t\n\t}\n}",
"Main"
]
| import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException{
final BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str;
int a[]=new int[26];
while((str=br.readLine())!=null){
str=str.toLowerCase();
for(int i=0;i<str.length();i++){
char ch=str.charAt(i);
if(ch<='z'&&ch>='a') a[ch-97]++;
}
}
for(int i=0;i<26;i++){
System.out.println((char)('a'+i) +" : "+a[i]);
}
}
} |
[
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,
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,
17,
18,
13,
13,
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,
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
],
[
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
],
[
23,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
23,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
39,
49
],
[
49,
50
],
[
50,
51
],
[
39,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
54,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
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.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString str = \"\";\n\t\tint[] cnt = new int[26];\n\t\t\n\t\twhile(sc.hasNext()) {\n\t\t\tstr = sc.nextLine();\n\t\t\tstr = str.toLowerCase();\n\t\t\tchar[] c = str.toCharArray();\n\t\t\tfor(int i = 0; i < c.length; i++) {\n\t\t\t\tif('a' <= c[i] && c[i] <= 'z') {\n\t\t\t\t\tcnt[c[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(((char)(i + 'a')) + \" : \" + cnt[i]);\n\t\t}\n\t\t//System.out.println();\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString str = \"\";\n\t\tint[] cnt = new int[26];\n\t\t\n\t\twhile(sc.hasNext()) {\n\t\t\tstr = sc.nextLine();\n\t\t\tstr = str.toLowerCase();\n\t\t\tchar[] c = str.toCharArray();\n\t\t\tfor(int i = 0; i < c.length; i++) {\n\t\t\t\tif('a' <= c[i] && c[i] <= 'z') {\n\t\t\t\t\tcnt[c[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(((char)(i + 'a')) + \" : \" + cnt[i]);\n\t\t}\n\t\t//System.out.println();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString str = \"\";\n\t\tint[] cnt = new int[26];\n\t\t\n\t\twhile(sc.hasNext()) {\n\t\t\tstr = sc.nextLine();\n\t\t\tstr = str.toLowerCase();\n\t\t\tchar[] c = str.toCharArray();\n\t\t\tfor(int i = 0; i < c.length; i++) {\n\t\t\t\tif('a' <= c[i] && c[i] <= 'z') {\n\t\t\t\t\tcnt[c[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(((char)(i + 'a')) + \" : \" + cnt[i]);\n\t\t}\n\t\t//System.out.println();\n\t}",
"main",
"{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString str = \"\";\n\t\tint[] cnt = new int[26];\n\t\t\n\t\twhile(sc.hasNext()) {\n\t\t\tstr = sc.nextLine();\n\t\t\tstr = str.toLowerCase();\n\t\t\tchar[] c = str.toCharArray();\n\t\t\tfor(int i = 0; i < c.length; i++) {\n\t\t\t\tif('a' <= c[i] && c[i] <= 'z') {\n\t\t\t\t\tcnt[c[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(((char)(i + 'a')) + \" : \" + cnt[i]);\n\t\t}\n\t\t//System.out.println();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String str = \"\";",
"str",
"\"\"",
"int[] cnt = new int[26];",
"cnt",
"new int[26]",
"26",
"while(sc.hasNext()) {\n\t\t\tstr = sc.nextLine();\n\t\t\tstr = str.toLowerCase();\n\t\t\tchar[] c = str.toCharArray();\n\t\t\tfor(int i = 0; i < c.length; i++) {\n\t\t\t\tif('a' <= c[i] && c[i] <= 'z') {\n\t\t\t\t\tcnt[c[i] - 'a']++;\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\tstr = str.toLowerCase();\n\t\t\tchar[] c = str.toCharArray();\n\t\t\tfor(int i = 0; i < c.length; i++) {\n\t\t\t\tif('a' <= c[i] && c[i] <= 'z') {\n\t\t\t\t\tcnt[c[i] - 'a']++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"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\t\t\t\tif('a' <= c[i] && c[i] <= 'z') {\n\t\t\t\t\tcnt[c[i] - 'a']++;\n\t\t\t\t}\n\t\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\t\tif('a' <= c[i] && c[i] <= 'z') {\n\t\t\t\t\tcnt[c[i] - 'a']++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif('a' <= c[i] && c[i] <= 'z') {\n\t\t\t\t\tcnt[c[i] - 'a']++;\n\t\t\t\t}\n\t\t\t}",
"if('a' <= c[i] && c[i] <= 'z') {\n\t\t\t\t\tcnt[c[i] - 'a']++;\n\t\t\t\t}",
"'a' <= c[i] && c[i] <= 'z'",
"'a' <= c[i]",
"'a'",
"c[i]",
"c",
"i",
"c[i] <= 'z'",
"c[i]",
"c",
"i",
"'z'",
"{\n\t\t\t\t\tcnt[c[i] - 'a']++;\n\t\t\t\t}",
"cnt[c[i] - 'a']++",
"cnt[c[i] - 'a']",
"cnt",
"c[i] - 'a'",
"c[i]",
"c",
"i",
"'a'",
"for(int i = 0; i < 26; i++) {\n\t\t\tSystem.out.println(((char)(i + 'a')) + \" : \" + 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)(i + 'a')) + \" : \" + cnt[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println(((char)(i + 'a')) + \" : \" + cnt[i]);\n\t\t}",
"System.out.println(((char)(i + 'a')) + \" : \" + cnt[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"((char)(i + 'a')) + \" : \" + cnt[i]",
"((char)(i + 'a')) + \" : \" + cnt[i]",
"((char)(i + 'a'))",
"i",
"'a'",
"\" : \"",
"cnt[i]",
"cnt",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString str = \"\";\n\t\tint[] cnt = new int[26];\n\t\t\n\t\twhile(sc.hasNext()) {\n\t\t\tstr = sc.nextLine();\n\t\t\tstr = str.toLowerCase();\n\t\t\tchar[] c = str.toCharArray();\n\t\t\tfor(int i = 0; i < c.length; i++) {\n\t\t\t\tif('a' <= c[i] && c[i] <= 'z') {\n\t\t\t\t\tcnt[c[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(((char)(i + 'a')) + \" : \" + cnt[i]);\n\t\t}\n\t\t//System.out.println();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString str = \"\";\n\t\tint[] cnt = new int[26];\n\t\t\n\t\twhile(sc.hasNext()) {\n\t\t\tstr = sc.nextLine();\n\t\t\tstr = str.toLowerCase();\n\t\t\tchar[] c = str.toCharArray();\n\t\t\tfor(int i = 0; i < c.length; i++) {\n\t\t\t\tif('a' <= c[i] && c[i] <= 'z') {\n\t\t\t\t\tcnt[c[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(((char)(i + 'a')) + \" : \" + cnt[i]);\n\t\t}\n\t\t//System.out.println();\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[] cnt = new int[26];
while(sc.hasNext()) {
str = sc.nextLine();
str = str.toLowerCase();
char[] c = str.toCharArray();
for(int i = 0; i < c.length; i++) {
if('a' <= c[i] && c[i] <= 'z') {
cnt[c[i] - 'a']++;
}
}
}
for(int i = 0; i < 26; i++) {
System.out.println(((char)(i + 'a')) + " : " + cnt[i]);
}
//System.out.println();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
2,
2,
17,
17,
17,
41,
13,
42,
2,
0,
13,
4,
18,
18,
13,
13,
40,
17,
30,
14,
4,
18,
13,
13,
30,
14,
4,
18,
13,
13,
0,
13,
4,
18,
13,
13,
40,
18,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
86,
8
],
[
86,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
15,
19
],
[
11,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
22,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
34,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
39,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
11,
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
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
71,
77
],
[
77,
78
],
[
77,
79
],
[
71,
80
],
[
80,
81
],
[
80,
82
],
[
9,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
]
| [
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n\n int[] count = new int['z' - 'a' + 1];\n\n int c;\n while ((c = System.in.read()) != -1) {\n if (Character.isLetter(c)) {\n if (Character.isUpperCase(c))\n c = Character.toLowerCase(c);\n count[c - 'a']++;\n }\n }\n\n for (int i = 0; i < count.length; i++)\n System.out.printf(\"%c : %d\\n\", 'a' + i, count[i]);\n }\n}\n",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] args) throws IOException {\n\n int[] count = new int['z' - 'a' + 1];\n\n int c;\n while ((c = System.in.read()) != -1) {\n if (Character.isLetter(c)) {\n if (Character.isUpperCase(c))\n c = Character.toLowerCase(c);\n count[c - 'a']++;\n }\n }\n\n for (int i = 0; i < count.length; i++)\n System.out.printf(\"%c : %d\\n\", 'a' + i, count[i]);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n int[] count = new int['z' - 'a' + 1];\n\n int c;\n while ((c = System.in.read()) != -1) {\n if (Character.isLetter(c)) {\n if (Character.isUpperCase(c))\n c = Character.toLowerCase(c);\n count[c - 'a']++;\n }\n }\n\n for (int i = 0; i < count.length; i++)\n System.out.printf(\"%c : %d\\n\", 'a' + i, count[i]);\n }",
"main",
"{\n\n int[] count = new int['z' - 'a' + 1];\n\n int c;\n while ((c = System.in.read()) != -1) {\n if (Character.isLetter(c)) {\n if (Character.isUpperCase(c))\n c = Character.toLowerCase(c);\n count[c - 'a']++;\n }\n }\n\n for (int i = 0; i < count.length; i++)\n System.out.printf(\"%c : %d\\n\", 'a' + i, count[i]);\n }",
"int[] count = new int['z' - 'a' + 1];",
"count",
"new int['z' - 'a' + 1]",
"'z' - 'a' + 1",
"'z' - 'a'",
"'z'",
"'a'",
"1",
"int c;",
"c",
"while ((c = System.in.read()) != -1) {\n if (Character.isLetter(c)) {\n if (Character.isUpperCase(c))\n c = Character.toLowerCase(c);\n count[c - 'a']++;\n }\n }",
"(c = System.in.read()) != -1",
"(c = System.in.read())",
"c",
"System.in.read()",
"System.in.read",
"System.in",
"System",
"System.in",
"-1",
"1",
"{\n if (Character.isLetter(c)) {\n if (Character.isUpperCase(c))\n c = Character.toLowerCase(c);\n count[c - 'a']++;\n }\n }",
"if (Character.isLetter(c)) {\n if (Character.isUpperCase(c))\n c = Character.toLowerCase(c);\n count[c - 'a']++;\n }",
"Character.isLetter(c)",
"Character.isLetter",
"Character",
"c",
"{\n if (Character.isUpperCase(c))\n c = Character.toLowerCase(c);\n count[c - 'a']++;\n }",
"if (Character.isUpperCase(c))\n c = Character.toLowerCase(c);",
"Character.isUpperCase(c)",
"Character.isUpperCase",
"Character",
"c",
"c = Character.toLowerCase(c)",
"c",
"Character.toLowerCase(c)",
"Character.toLowerCase",
"Character",
"c",
"count[c - 'a']++",
"count[c - 'a']",
"count",
"c - 'a'",
"c",
"'a'",
"for (int i = 0; i < count.length; i++)\n System.out.printf(\"%c : %d\\n\", 'a' + i, count[i]);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < count.length",
"i",
"count.length",
"count",
"count.length",
"i++",
"i++",
"i",
"System.out.printf(\"%c : %d\\n\", 'a' + i, count[i]);",
"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",
"public class Main {\n public static void main(String[] args) throws IOException {\n\n int[] count = new int['z' - 'a' + 1];\n\n int c;\n while ((c = System.in.read()) != -1) {\n if (Character.isLetter(c)) {\n if (Character.isUpperCase(c))\n c = Character.toLowerCase(c);\n count[c - 'a']++;\n }\n }\n\n for (int i = 0; i < count.length; i++)\n System.out.printf(\"%c : %d\\n\", 'a' + i, count[i]);\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n\n int[] count = new int['z' - 'a' + 1];\n\n int c;\n while ((c = System.in.read()) != -1) {\n if (Character.isLetter(c)) {\n if (Character.isUpperCase(c))\n c = Character.toLowerCase(c);\n count[c - 'a']++;\n }\n }\n\n for (int i = 0; i < count.length; i++)\n System.out.printf(\"%c : %d\\n\", 'a' + i, count[i]);\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
int[] count = new int['z' - 'a' + 1];
int c;
while ((c = System.in.read()) != -1) {
if (Character.isLetter(c)) {
if (Character.isUpperCase(c))
c = Character.toLowerCase(c);
count[c - 'a']++;
}
}
for (int i = 0; i < count.length; i++)
System.out.printf("%c : %d\n", 'a' + i, count[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,
11,
1,
41,
13,
17,
2,
13,
17,
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,
2,
4,
18,
4,
18,
13,
13,
13,
2,
4,
18,
13,
4,
18,
4,
18,
13,
13,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
21,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
14,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
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
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
66,
71
],
[
65,
72
],
[
64,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
77,
82
],
[
73,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
63,
87
],
[
87,
88
],
[
88,
89
],
[
44,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
96,
96
],
[
96,
97
],
[
96,
98
],
[
96,
99
],
[
12,
100
],
[
100,
101
]
]
| [
"import java.io.*;\nimport java.util.*;\nimport java.lang.*;\n\nclass Main{\n public static void main(String[] args) throws java.lang.NumberFormatException{\n Scanner scan=new Scanner(System.in);\n StringBuilder input=new StringBuilder();\n do{\n input.append(scan.nextLine());\n }while(scan.hasNext());\n\n for(char i='a';i<='z';i++){\n int count=0;\n for(int j=0;j<input.length();j++){\n if(input.toString().charAt(j)==i || Character.toUpperCase(input.toString().charAt(j))==Character.toUpperCase(i)){\n count++;\n }\n }\n System.out.println(i+\" : \"+count);\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"class Main{\n public static void main(String[] args) throws java.lang.NumberFormatException{\n Scanner scan=new Scanner(System.in);\n StringBuilder input=new StringBuilder();\n do{\n input.append(scan.nextLine());\n }while(scan.hasNext());\n\n for(char i='a';i<='z';i++){\n int count=0;\n for(int j=0;j<input.length();j++){\n if(input.toString().charAt(j)==i || Character.toUpperCase(input.toString().charAt(j))==Character.toUpperCase(i)){\n count++;\n }\n }\n System.out.println(i+\" : \"+count);\n }\n }\n}",
"Main",
"public static void main(String[] args) throws java.lang.NumberFormatException{\n Scanner scan=new Scanner(System.in);\n StringBuilder input=new StringBuilder();\n do{\n input.append(scan.nextLine());\n }while(scan.hasNext());\n\n for(char i='a';i<='z';i++){\n int count=0;\n for(int j=0;j<input.length();j++){\n if(input.toString().charAt(j)==i || Character.toUpperCase(input.toString().charAt(j))==Character.toUpperCase(i)){\n count++;\n }\n }\n System.out.println(i+\" : \"+count);\n }\n }",
"main",
"{\n Scanner scan=new Scanner(System.in);\n StringBuilder input=new StringBuilder();\n do{\n input.append(scan.nextLine());\n }while(scan.hasNext());\n\n for(char i='a';i<='z';i++){\n int count=0;\n for(int j=0;j<input.length();j++){\n if(input.toString().charAt(j)==i || Character.toUpperCase(input.toString().charAt(j))==Character.toUpperCase(i)){\n count++;\n }\n }\n System.out.println(i+\" : \"+count);\n }\n }",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"StringBuilder input=new StringBuilder();",
"input",
"new StringBuilder()",
"do{\n input.append(scan.nextLine());\n }while(scan.hasNext());",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n input.append(scan.nextLine());\n }",
"input.append(scan.nextLine())",
"input.append",
"input",
"scan.nextLine()",
"scan.nextLine",
"scan",
"for(char i='a';i<='z';i++){\n int count=0;\n for(int j=0;j<input.length();j++){\n if(input.toString().charAt(j)==i || Character.toUpperCase(input.toString().charAt(j))==Character.toUpperCase(i)){\n count++;\n }\n }\n System.out.println(i+\" : \"+count);\n }",
"char i='a';",
"char i='a';",
"i",
"'a'",
"i<='z'",
"i",
"'z'",
"i++",
"i++",
"i",
"{\n int count=0;\n for(int j=0;j<input.length();j++){\n if(input.toString().charAt(j)==i || Character.toUpperCase(input.toString().charAt(j))==Character.toUpperCase(i)){\n count++;\n }\n }\n System.out.println(i+\" : \"+count);\n }",
"{\n int count=0;\n for(int j=0;j<input.length();j++){\n if(input.toString().charAt(j)==i || Character.toUpperCase(input.toString().charAt(j))==Character.toUpperCase(i)){\n count++;\n }\n }\n System.out.println(i+\" : \"+count);\n }",
"int count=0;",
"count",
"0",
"for(int j=0;j<input.length();j++){\n if(input.toString().charAt(j)==i || Character.toUpperCase(input.toString().charAt(j))==Character.toUpperCase(i)){\n count++;\n }\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<input.length()",
"j",
"input.length()",
"input.length",
"input",
"j++",
"j++",
"j",
"{\n if(input.toString().charAt(j)==i || Character.toUpperCase(input.toString().charAt(j))==Character.toUpperCase(i)){\n count++;\n }\n }",
"{\n if(input.toString().charAt(j)==i || Character.toUpperCase(input.toString().charAt(j))==Character.toUpperCase(i)){\n count++;\n }\n }",
"if(input.toString().charAt(j)==i || Character.toUpperCase(input.toString().charAt(j))==Character.toUpperCase(i)){\n count++;\n }",
"input.toString().charAt(j)==i || Character.toUpperCase(input.toString().charAt(j))==Character.toUpperCase(i)",
"input.toString().charAt(j)==i",
"input.toString().charAt(j)",
"input.toString().charAt",
"input.toString()",
"input.toString",
"input",
"j",
"i",
"Character.toUpperCase(input.toString().charAt(j))==Character.toUpperCase(i)",
"Character.toUpperCase(input.toString().charAt(j))",
"Character.toUpperCase",
"Character",
"input.toString().charAt(j)",
"input.toString().charAt",
"input.toString()",
"input.toString",
"input",
"j",
"Character.toUpperCase(i)",
"Character.toUpperCase",
"Character",
"i",
"{\n count++;\n }",
"count++",
"count",
"System.out.println(i+\" : \"+count)",
"System.out.println",
"System.out",
"System",
"System.out",
"i+\" : \"+count",
"i+\" : \"+count",
"i",
"\" : \"",
"count",
"String[] args",
"args"
]
| import java.io.*;
import java.util.*;
import java.lang.*;
class Main{
public static void main(String[] args) throws java.lang.NumberFormatException{
Scanner scan=new Scanner(System.in);
StringBuilder input=new StringBuilder();
do{
input.append(scan.nextLine());
}while(scan.hasNext());
for(char i='a';i<='z';i++){
int count=0;
for(int j=0;j<input.length();j++){
if(input.toString().charAt(j)==i || Character.toUpperCase(input.toString().charAt(j))==Character.toUpperCase(i)){
count++;
}
}
System.out.println(i+" : "+count);
}
}
}
|
[
7,
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,
4,
18,
13,
30,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
28,
13,
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,
17,
2,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
99,
5
],
[
99,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
16,
24
],
[
24,
25
],
[
25,
26
],
[
16,
27
],
[
28,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
8,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
38,
54
],
[
54,
55
],
[
54,
56
],
[
54,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
59,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
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
],
[
86,
88
],
[
84,
89
],
[
84,
90
],
[
90,
91
],
[
90,
92
],
[
84,
93
],
[
93,
94
],
[
93,
95
],
[
6,
96
],
[
96,
97
],
[
0,
98
],
[
98,
99
],
[
98,
100
]
]
| [
"import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint al[] = new int[26];\n\t\tfor(int i=0;i<26;i++){\n\t\t\tal[i]=0;\n\t\t}\n\t\twhile(sc.hasNext()){\n\t\t\tString line = sc.next();\n\t\tline=line.toLowerCase();\n\t\tchar[] ar = line.toCharArray();\n\t\tfor(char ch: ar){\n\t\t\tif(Character.isLowerCase(ch)){\n\t\t\t\tal[ch-97]++;\n\t\t\t}\n\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++){\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+97,al[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\tint al[] = new int[26];\n\t\tfor(int i=0;i<26;i++){\n\t\t\tal[i]=0;\n\t\t}\n\t\twhile(sc.hasNext()){\n\t\t\tString line = sc.next();\n\t\tline=line.toLowerCase();\n\t\tchar[] ar = line.toCharArray();\n\t\tfor(char ch: ar){\n\t\t\tif(Character.isLowerCase(ch)){\n\t\t\t\tal[ch-97]++;\n\t\t\t}\n\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++){\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+97,al[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint al[] = new int[26];\n\t\tfor(int i=0;i<26;i++){\n\t\t\tal[i]=0;\n\t\t}\n\t\twhile(sc.hasNext()){\n\t\t\tString line = sc.next();\n\t\tline=line.toLowerCase();\n\t\tchar[] ar = line.toCharArray();\n\t\tfor(char ch: ar){\n\t\t\tif(Character.isLowerCase(ch)){\n\t\t\t\tal[ch-97]++;\n\t\t\t}\n\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++){\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+97,al[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint al[] = new int[26];\n\t\tfor(int i=0;i<26;i++){\n\t\t\tal[i]=0;\n\t\t}\n\t\twhile(sc.hasNext()){\n\t\t\tString line = sc.next();\n\t\tline=line.toLowerCase();\n\t\tchar[] ar = line.toCharArray();\n\t\tfor(char ch: ar){\n\t\t\tif(Character.isLowerCase(ch)){\n\t\t\t\tal[ch-97]++;\n\t\t\t}\n\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++){\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+97,al[i]);\n\t\t}\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int al[] = new int[26];",
"al",
"new int[26]",
"26",
"for(int i=0;i<26;i++){\n\t\t\tal[i]=0;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tal[i]=0;\n\t\t}",
"{\n\t\t\tal[i]=0;\n\t\t}",
"al[i]=0",
"al[i]",
"al",
"i",
"0",
"while(sc.hasNext()){\n\t\t\tString line = sc.next();\n\t\tline=line.toLowerCase();\n\t\tchar[] ar = line.toCharArray();\n\t\tfor(char ch: ar){\n\t\t\tif(Character.isLowerCase(ch)){\n\t\t\t\tal[ch-97]++;\n\t\t\t}\n\t\t}\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\tString line = sc.next();\n\t\tline=line.toLowerCase();\n\t\tchar[] ar = line.toCharArray();\n\t\tfor(char ch: ar){\n\t\t\tif(Character.isLowerCase(ch)){\n\t\t\t\tal[ch-97]++;\n\t\t\t}\n\t\t}\n\t\t}",
"String line = sc.next();",
"line",
"sc.next()",
"sc.next",
"sc",
"line=line.toLowerCase()",
"line",
"line.toLowerCase()",
"line.toLowerCase",
"line",
"char[] ar = line.toCharArray();",
"ar",
"line.toCharArray()",
"line.toCharArray",
"line",
"for(char ch: ar){\n\t\t\tif(Character.isLowerCase(ch)){\n\t\t\t\tal[ch-97]++;\n\t\t\t}\n\t\t}",
"char ch",
"ar",
"{\n\t\t\tif(Character.isLowerCase(ch)){\n\t\t\t\tal[ch-97]++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(Character.isLowerCase(ch)){\n\t\t\t\tal[ch-97]++;\n\t\t\t}\n\t\t}",
"if(Character.isLowerCase(ch)){\n\t\t\t\tal[ch-97]++;\n\t\t\t}",
"Character.isLowerCase(ch)",
"Character.isLowerCase",
"Character",
"ch",
"{\n\t\t\t\tal[ch-97]++;\n\t\t\t}",
"al[ch-97]++",
"al[ch-97]",
"al",
"ch-97",
"ch",
"97",
"for(int i=0;i<26;i++){\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+97,al[i]);\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\",i+97,al[i]);\n\t\t}",
"{\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+97,al[i]);\n\t\t}",
"System.out.printf(\"%c : %d\\n\",i+97,al[i])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c : %d\\n\"",
"i+97",
"i",
"97",
"al[i]",
"al",
"i",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint al[] = new int[26];\n\t\tfor(int i=0;i<26;i++){\n\t\t\tal[i]=0;\n\t\t}\n\t\twhile(sc.hasNext()){\n\t\t\tString line = sc.next();\n\t\tline=line.toLowerCase();\n\t\tchar[] ar = line.toCharArray();\n\t\tfor(char ch: ar){\n\t\t\tif(Character.isLowerCase(ch)){\n\t\t\t\tal[ch-97]++;\n\t\t\t}\n\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++){\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+97,al[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\tint al[] = new int[26];\n\t\tfor(int i=0;i<26;i++){\n\t\t\tal[i]=0;\n\t\t}\n\t\twhile(sc.hasNext()){\n\t\t\tString line = sc.next();\n\t\tline=line.toLowerCase();\n\t\tchar[] ar = line.toCharArray();\n\t\tfor(char ch: ar){\n\t\t\tif(Character.isLowerCase(ch)){\n\t\t\t\tal[ch-97]++;\n\t\t\t}\n\t\t}\n\t\t}\n\t\tfor(int i=0;i<26;i++){\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+97,al[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);
int al[] = new int[26];
for(int i=0;i<26;i++){
al[i]=0;
}
while(sc.hasNext()){
String line = sc.next();
line=line.toLowerCase();
char[] ar = line.toCharArray();
for(char ch: ar){
if(Character.isLowerCase(ch)){
al[ch-97]++;
}
}
}
for(int i=0;i<26;i++){
System.out.printf("%c : %d\n",i+97,al[i]);
}
}
} |
[
7,
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,
17,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
28,
13,
4,
18,
13,
30,
30,
14,
2,
2,
13,
2,
13,
13,
2,
13,
2,
2,
13,
13,
17,
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,
2,
13,
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,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
15,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
45,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
53,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
52,
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
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
71,
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
]
]
| [
"\nimport java.util.Scanner;\n\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str = \"\";\n\t\twhile(sc.hasNext()){\n\t\t\tstr += sc.nextLine();\n\t\t}\n\t\tchar c = 'a';\n\t\tint[] a = new int[26];\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tfor(char x: str.toCharArray()){\n\t\t\t\tif(x == (char)(c + i) || x == (char)(c + i - 32)){\n\t\t\t\t\ta[i]++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tSystem.out.println((char)(c + i) + \" : \" + a[i]);\n\t\t}\n\t}\n}\n\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str = \"\";\n\t\twhile(sc.hasNext()){\n\t\t\tstr += sc.nextLine();\n\t\t}\n\t\tchar c = 'a';\n\t\tint[] a = new int[26];\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tfor(char x: str.toCharArray()){\n\t\t\t\tif(x == (char)(c + i) || x == (char)(c + i - 32)){\n\t\t\t\t\ta[i]++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tSystem.out.println((char)(c + i) + \" : \" + a[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\twhile(sc.hasNext()){\n\t\t\tstr += sc.nextLine();\n\t\t}\n\t\tchar c = 'a';\n\t\tint[] a = new int[26];\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tfor(char x: str.toCharArray()){\n\t\t\t\tif(x == (char)(c + i) || x == (char)(c + i - 32)){\n\t\t\t\t\ta[i]++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tSystem.out.println((char)(c + i) + \" : \" + a[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str = \"\";\n\t\twhile(sc.hasNext()){\n\t\t\tstr += sc.nextLine();\n\t\t}\n\t\tchar c = 'a';\n\t\tint[] a = new int[26];\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tfor(char x: str.toCharArray()){\n\t\t\t\tif(x == (char)(c + i) || x == (char)(c + i - 32)){\n\t\t\t\t\ta[i]++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tSystem.out.println((char)(c + i) + \" : \" + a[i]);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String str = \"\";",
"str",
"\"\"",
"while(sc.hasNext()){\n\t\t\tstr += sc.nextLine();\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\tstr += sc.nextLine();\n\t\t}",
"str += sc.nextLine()",
"str",
"sc.nextLine()",
"sc.nextLine",
"sc",
"char c = 'a';",
"c",
"'a'",
"int[] a = new int[26];",
"a",
"new int[26]",
"26",
"for(int i = 0; i < 26; i++){\n\t\t\tfor(char x: str.toCharArray()){\n\t\t\t\tif(x == (char)(c + i) || x == (char)(c + i - 32)){\n\t\t\t\t\ta[i]++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tfor(char x: str.toCharArray()){\n\t\t\t\tif(x == (char)(c + i) || x == (char)(c + i - 32)){\n\t\t\t\t\ta[i]++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}",
"{\n\t\t\tfor(char x: str.toCharArray()){\n\t\t\t\tif(x == (char)(c + i) || x == (char)(c + i - 32)){\n\t\t\t\t\ta[i]++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}",
"for(char x: str.toCharArray()){\n\t\t\t\tif(x == (char)(c + i) || x == (char)(c + i - 32)){\n\t\t\t\t\ta[i]++;\n\t\t\t\t}\n\t\t\t}",
"char x",
"str.toCharArray()",
"str.toCharArray",
"str",
"{\n\t\t\t\tif(x == (char)(c + i) || x == (char)(c + i - 32)){\n\t\t\t\t\ta[i]++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(x == (char)(c + i) || x == (char)(c + i - 32)){\n\t\t\t\t\ta[i]++;\n\t\t\t\t}\n\t\t\t}",
"if(x == (char)(c + i) || x == (char)(c + i - 32)){\n\t\t\t\t\ta[i]++;\n\t\t\t\t}",
"x == (char)(c + i) || x == (char)(c + i - 32)",
"x == (char)(c + i)",
"x",
"(char)(c + i)",
"c",
"i",
"x == (char)(c + i - 32)",
"x",
"(char)(c + i - 32)",
"c + i",
"c",
"i",
"32",
"{\n\t\t\t\t\ta[i]++;\n\t\t\t\t}",
"a[i]++",
"a[i]",
"a",
"i",
"for(int i = 0; i < 26; i++){\n\t\t\tSystem.out.println((char)(c + i) + \" : \" + a[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)(c + i) + \" : \" + a[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println((char)(c + i) + \" : \" + a[i]);\n\t\t}",
"System.out.println((char)(c + i) + \" : \" + a[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)(c + i) + \" : \" + a[i]",
"(char)(c + i) + \" : \" + a[i]",
"(char)(c + i)",
"c",
"i",
"\" : \"",
"a[i]",
"a",
"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\twhile(sc.hasNext()){\n\t\t\tstr += sc.nextLine();\n\t\t}\n\t\tchar c = 'a';\n\t\tint[] a = new int[26];\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tfor(char x: str.toCharArray()){\n\t\t\t\tif(x == (char)(c + i) || x == (char)(c + i - 32)){\n\t\t\t\t\ta[i]++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tSystem.out.println((char)(c + i) + \" : \" + a[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\twhile(sc.hasNext()){\n\t\t\tstr += sc.nextLine();\n\t\t}\n\t\tchar c = 'a';\n\t\tint[] a = new int[26];\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tfor(char x: str.toCharArray()){\n\t\t\t\tif(x == (char)(c + i) || x == (char)(c + i - 32)){\n\t\t\t\t\ta[i]++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tfor(int i = 0; i < 26; i++){\n\t\t\tSystem.out.println((char)(c + i) + \" : \" + a[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 str = "";
while(sc.hasNext()){
str += sc.nextLine();
}
char c = 'a';
int[] a = new int[26];
for(int i = 0; i < 26; i++){
for(char x: str.toCharArray()){
if(x == (char)(c + i) || x == (char)(c + i - 32)){
a[i]++;
}
}
}
for(int i = 0; i < 26; i++){
System.out.println((char)(c + i) + " : " + a[i]);
}
}
}
|
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
17,
41,
13,
20,
18,
13,
13,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
2,
13,
17,
14,
4,
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
],
[
119,
2
],
[
119,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
5,
14
],
[
14,
15
],
[
14,
16
],
[
17,
18
],
[
17,
19
],
[
5,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
20,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
24,
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
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
50,
52
],
[
44,
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
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
67,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
77,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
5,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
94,
96
],
[
87,
97
],
[
97,
98
],
[
98,
99
],
[
87,
100
],
[
101,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
108,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
108,
113
],
[
113,
114
],
[
113,
115
],
[
3,
116
],
[
116,
117
],
[
0,
118
],
[
118,
119
],
[
118,
120
]
]
| [
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\t\tchar[] abc = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n\n\t\tint[] count = new int[abc.length];\n\n\t\twhile ( sc.hasNextLine() ) {\n\t\t\tString data = sc.nextLine();\n\n\t\t\tfor (int i=0; i < abc.length; i++) {\n\t\t\t\tString alfabet_i_th = String.valueOf( abc[i] );\n\n\t\t\t\tfor (int j=0; j < data.length(); j++) {\n\t\t\t\t\tString alfabetInData = data.substring(j, j+1);\n\n\t\t\t\t\tif ( alfabet_i_th.equalsIgnoreCase( alfabetInData ) ) {\n\t\t\t\t\t\tcount[i] ++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tfor ( int i=0; i < abc.length; i++) {\n\t\t\tSystem.out.println( abc[i] + \" : \" + count[i]);\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\t\tchar[] abc = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n\n\t\tint[] count = new int[abc.length];\n\n\t\twhile ( sc.hasNextLine() ) {\n\t\t\tString data = sc.nextLine();\n\n\t\t\tfor (int i=0; i < abc.length; i++) {\n\t\t\t\tString alfabet_i_th = String.valueOf( abc[i] );\n\n\t\t\t\tfor (int j=0; j < data.length(); j++) {\n\t\t\t\t\tString alfabetInData = data.substring(j, j+1);\n\n\t\t\t\t\tif ( alfabet_i_th.equalsIgnoreCase( alfabetInData ) ) {\n\t\t\t\t\t\tcount[i] ++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tfor ( int i=0; i < abc.length; i++) {\n\t\t\tSystem.out.println( abc[i] + \" : \" + count[i]);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\t\tchar[] abc = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n\n\t\tint[] count = new int[abc.length];\n\n\t\twhile ( sc.hasNextLine() ) {\n\t\t\tString data = sc.nextLine();\n\n\t\t\tfor (int i=0; i < abc.length; i++) {\n\t\t\t\tString alfabet_i_th = String.valueOf( abc[i] );\n\n\t\t\t\tfor (int j=0; j < data.length(); j++) {\n\t\t\t\t\tString alfabetInData = data.substring(j, j+1);\n\n\t\t\t\t\tif ( alfabet_i_th.equalsIgnoreCase( alfabetInData ) ) {\n\t\t\t\t\t\tcount[i] ++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tfor ( int i=0; i < abc.length; i++) {\n\t\t\tSystem.out.println( abc[i] + \" : \" + count[i]);\n\t\t}\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\t\tchar[] abc = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n\n\t\tint[] count = new int[abc.length];\n\n\t\twhile ( sc.hasNextLine() ) {\n\t\t\tString data = sc.nextLine();\n\n\t\t\tfor (int i=0; i < abc.length; i++) {\n\t\t\t\tString alfabet_i_th = String.valueOf( abc[i] );\n\n\t\t\t\tfor (int j=0; j < data.length(); j++) {\n\t\t\t\t\tString alfabetInData = data.substring(j, j+1);\n\n\t\t\t\t\tif ( alfabet_i_th.equalsIgnoreCase( alfabetInData ) ) {\n\t\t\t\t\t\tcount[i] ++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tfor ( int i=0; i < abc.length; i++) {\n\t\t\tSystem.out.println( abc[i] + \" : \" + count[i]);\n\t\t}\n\t}",
"java.util.Scanner sc = new java.util.Scanner(System.in);",
"sc",
"new java.util.Scanner(System.in)",
"char[] abc = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();",
"abc",
"\"abcdefghijklmnopqrstuvwxyz\".toCharArray()",
"\"abcdefghijklmnopqrstuvwxyz\".toCharArray",
"\"abcdefghijklmnopqrstuvwxyz\"",
"int[] count = new int[abc.length];",
"count",
"new int[abc.length]",
"abc.length",
"abc",
"abc.length",
"while ( sc.hasNextLine() ) {\n\t\t\tString data = sc.nextLine();\n\n\t\t\tfor (int i=0; i < abc.length; i++) {\n\t\t\t\tString alfabet_i_th = String.valueOf( abc[i] );\n\n\t\t\t\tfor (int j=0; j < data.length(); j++) {\n\t\t\t\t\tString alfabetInData = data.substring(j, j+1);\n\n\t\t\t\t\tif ( alfabet_i_th.equalsIgnoreCase( alfabetInData ) ) {\n\t\t\t\t\t\tcount[i] ++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"sc.hasNextLine()",
"sc.hasNextLine",
"sc",
"{\n\t\t\tString data = sc.nextLine();\n\n\t\t\tfor (int i=0; i < abc.length; i++) {\n\t\t\t\tString alfabet_i_th = String.valueOf( abc[i] );\n\n\t\t\t\tfor (int j=0; j < data.length(); j++) {\n\t\t\t\t\tString alfabetInData = data.substring(j, j+1);\n\n\t\t\t\t\tif ( alfabet_i_th.equalsIgnoreCase( alfabetInData ) ) {\n\t\t\t\t\t\tcount[i] ++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"String data = sc.nextLine();",
"data",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for (int i=0; i < abc.length; i++) {\n\t\t\t\tString alfabet_i_th = String.valueOf( abc[i] );\n\n\t\t\t\tfor (int j=0; j < data.length(); j++) {\n\t\t\t\t\tString alfabetInData = data.substring(j, j+1);\n\n\t\t\t\t\tif ( alfabet_i_th.equalsIgnoreCase( alfabetInData ) ) {\n\t\t\t\t\t\tcount[i] ++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\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\t\tString alfabet_i_th = String.valueOf( abc[i] );\n\n\t\t\t\tfor (int j=0; j < data.length(); j++) {\n\t\t\t\t\tString alfabetInData = data.substring(j, j+1);\n\n\t\t\t\t\tif ( alfabet_i_th.equalsIgnoreCase( alfabetInData ) ) {\n\t\t\t\t\t\tcount[i] ++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}",
"{\n\t\t\t\tString alfabet_i_th = String.valueOf( abc[i] );\n\n\t\t\t\tfor (int j=0; j < data.length(); j++) {\n\t\t\t\t\tString alfabetInData = data.substring(j, j+1);\n\n\t\t\t\t\tif ( alfabet_i_th.equalsIgnoreCase( alfabetInData ) ) {\n\t\t\t\t\t\tcount[i] ++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}",
"String alfabet_i_th = String.valueOf( abc[i] );",
"alfabet_i_th",
"String.valueOf( abc[i] )",
"String.valueOf",
"String",
"abc[i]",
"abc",
"i",
"for (int j=0; j < data.length(); j++) {\n\t\t\t\t\tString alfabetInData = data.substring(j, j+1);\n\n\t\t\t\t\tif ( alfabet_i_th.equalsIgnoreCase( alfabetInData ) ) {\n\t\t\t\t\t\tcount[i] ++;\n\t\t\t\t\t}\n\n\t\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j < data.length()",
"j",
"data.length()",
"data.length",
"data",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tString alfabetInData = data.substring(j, j+1);\n\n\t\t\t\t\tif ( alfabet_i_th.equalsIgnoreCase( alfabetInData ) ) {\n\t\t\t\t\t\tcount[i] ++;\n\t\t\t\t\t}\n\n\t\t\t\t}",
"{\n\t\t\t\t\tString alfabetInData = data.substring(j, j+1);\n\n\t\t\t\t\tif ( alfabet_i_th.equalsIgnoreCase( alfabetInData ) ) {\n\t\t\t\t\t\tcount[i] ++;\n\t\t\t\t\t}\n\n\t\t\t\t}",
"String alfabetInData = data.substring(j, j+1);",
"alfabetInData",
"data.substring(j, j+1)",
"data.substring",
"data",
"j",
"j+1",
"j",
"1",
"if ( alfabet_i_th.equalsIgnoreCase( alfabetInData ) ) {\n\t\t\t\t\t\tcount[i] ++;\n\t\t\t\t\t}",
"alfabet_i_th.equalsIgnoreCase( alfabetInData )",
"alfabet_i_th.equalsIgnoreCase",
"alfabet_i_th",
"alfabetInData",
"{\n\t\t\t\t\t\tcount[i] ++;\n\t\t\t\t\t}",
"count[i] ++",
"count[i]",
"count",
"i",
"for ( int i=0; i < abc.length; i++) {\n\t\t\tSystem.out.println( abc[i] + \" : \" + count[i]);\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( 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\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\t\tchar[] abc = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n\n\t\tint[] count = new int[abc.length];\n\n\t\twhile ( sc.hasNextLine() ) {\n\t\t\tString data = sc.nextLine();\n\n\t\t\tfor (int i=0; i < abc.length; i++) {\n\t\t\t\tString alfabet_i_th = String.valueOf( abc[i] );\n\n\t\t\t\tfor (int j=0; j < data.length(); j++) {\n\t\t\t\t\tString alfabetInData = data.substring(j, j+1);\n\n\t\t\t\t\tif ( alfabet_i_th.equalsIgnoreCase( alfabetInData ) ) {\n\t\t\t\t\t\tcount[i] ++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tfor ( int i=0; i < abc.length; i++) {\n\t\t\tSystem.out.println( abc[i] + \" : \" + count[i]);\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\n\t\tchar[] abc = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n\n\t\tint[] count = new int[abc.length];\n\n\t\twhile ( sc.hasNextLine() ) {\n\t\t\tString data = sc.nextLine();\n\n\t\t\tfor (int i=0; i < abc.length; i++) {\n\t\t\t\tString alfabet_i_th = String.valueOf( abc[i] );\n\n\t\t\t\tfor (int j=0; j < data.length(); j++) {\n\t\t\t\t\tString alfabetInData = data.substring(j, j+1);\n\n\t\t\t\t\tif ( alfabet_i_th.equalsIgnoreCase( alfabetInData ) ) {\n\t\t\t\t\t\tcount[i] ++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tfor ( int i=0; i < abc.length; i++) {\n\t\t\tSystem.out.println( abc[i] + \" : \" + count[i]);\n\t\t}\n\t}\n\n}",
"Main"
]
| public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
java.util.Scanner sc = new java.util.Scanner(System.in);
char[] abc = "abcdefghijklmnopqrstuvwxyz".toCharArray();
int[] count = new int[abc.length];
while ( sc.hasNextLine() ) {
String data = sc.nextLine();
for (int i=0; i < abc.length; i++) {
String alfabet_i_th = String.valueOf( abc[i] );
for (int j=0; j < data.length(); j++) {
String alfabetInData = data.substring(j, j+1);
if ( alfabet_i_th.equalsIgnoreCase( alfabetInData ) ) {
count[i] ++;
}
}
}
}
for ( int i=0; i < abc.length; i++) {
System.out.println( abc[i] + " : " + count[i]);
}
}
} |
[
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,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
2,
17,
4,
18,
13,
13,
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,
2,
13,
17,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
102,
5
],
[
102,
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
],
[
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
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
49,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
56,
61
],
[
48,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
66,
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
],
[
6,
99
],
[
99,
100
],
[
0,
101
],
[
101,
102
],
[
101,
103
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint[] answer = new int[26];\n\t\ttry(Scanner scanner = new Scanner(System.in)) {\n\t\t\twhile(scanner.hasNextLine()) {\n\t\t\t\tString S = scanner.nextLine();\n\t\t\t\tS = S.toLowerCase();\n\t\t\t\tfor(int i=0;i<S.length();i++) {\n\t\t\t\t\tif ('a'<=S.charAt(i)&&S.charAt(i)<='z') {\n\t\t\t\t\t\tanswer[S.charAt(i)-'a']++;\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((char)(i+'a') + \" : \" + answer[i]);\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\tint[] answer = new int[26];\n\t\ttry(Scanner scanner = new Scanner(System.in)) {\n\t\t\twhile(scanner.hasNextLine()) {\n\t\t\t\tString S = scanner.nextLine();\n\t\t\t\tS = S.toLowerCase();\n\t\t\t\tfor(int i=0;i<S.length();i++) {\n\t\t\t\t\tif ('a'<=S.charAt(i)&&S.charAt(i)<='z') {\n\t\t\t\t\t\tanswer[S.charAt(i)-'a']++;\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((char)(i+'a') + \" : \" + answer[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tint[] answer = new int[26];\n\t\ttry(Scanner scanner = new Scanner(System.in)) {\n\t\t\twhile(scanner.hasNextLine()) {\n\t\t\t\tString S = scanner.nextLine();\n\t\t\t\tS = S.toLowerCase();\n\t\t\t\tfor(int i=0;i<S.length();i++) {\n\t\t\t\t\tif ('a'<=S.charAt(i)&&S.charAt(i)<='z') {\n\t\t\t\t\t\tanswer[S.charAt(i)-'a']++;\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((char)(i+'a') + \" : \" + answer[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tint[] answer = new int[26];\n\t\ttry(Scanner scanner = new Scanner(System.in)) {\n\t\t\twhile(scanner.hasNextLine()) {\n\t\t\t\tString S = scanner.nextLine();\n\t\t\t\tS = S.toLowerCase();\n\t\t\t\tfor(int i=0;i<S.length();i++) {\n\t\t\t\t\tif ('a'<=S.charAt(i)&&S.charAt(i)<='z') {\n\t\t\t\t\t\tanswer[S.charAt(i)-'a']++;\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((char)(i+'a') + \" : \" + answer[i]);\n\t\t}\n\t}",
"int[] answer = new int[26];",
"answer",
"new int[26]",
"26",
"try(Scanner scanner = new Scanner(System.in)) {\n\t\t\twhile(scanner.hasNextLine()) {\n\t\t\t\tString S = scanner.nextLine();\n\t\t\t\tS = S.toLowerCase();\n\t\t\t\tfor(int i=0;i<S.length();i++) {\n\t\t\t\t\tif ('a'<=S.charAt(i)&&S.charAt(i)<='z') {\n\t\t\t\t\t\tanswer[S.charAt(i)-'a']++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\twhile(scanner.hasNextLine()) {\n\t\t\t\tString S = scanner.nextLine();\n\t\t\t\tS = S.toLowerCase();\n\t\t\t\tfor(int i=0;i<S.length();i++) {\n\t\t\t\t\tif ('a'<=S.charAt(i)&&S.charAt(i)<='z') {\n\t\t\t\t\t\tanswer[S.charAt(i)-'a']++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"Scanner scanner = new Scanner(System.in)",
"Scanner scanner = new Scanner(System.in)",
"new Scanner(System.in)",
"while(scanner.hasNextLine()) {\n\t\t\t\tString S = scanner.nextLine();\n\t\t\t\tS = S.toLowerCase();\n\t\t\t\tfor(int i=0;i<S.length();i++) {\n\t\t\t\t\tif ('a'<=S.charAt(i)&&S.charAt(i)<='z') {\n\t\t\t\t\t\tanswer[S.charAt(i)-'a']++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"scanner.hasNextLine()",
"scanner.hasNextLine",
"scanner",
"{\n\t\t\t\tString S = scanner.nextLine();\n\t\t\t\tS = S.toLowerCase();\n\t\t\t\tfor(int i=0;i<S.length();i++) {\n\t\t\t\t\tif ('a'<=S.charAt(i)&&S.charAt(i)<='z') {\n\t\t\t\t\t\tanswer[S.charAt(i)-'a']++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"String S = scanner.nextLine();",
"S",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"S = S.toLowerCase()",
"S",
"S.toLowerCase()",
"S.toLowerCase",
"S",
"for(int i=0;i<S.length();i++) {\n\t\t\t\t\tif ('a'<=S.charAt(i)&&S.charAt(i)<='z') {\n\t\t\t\t\t\tanswer[S.charAt(i)-'a']++;\n\t\t\t\t\t}\n\t\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\t\tif ('a'<=S.charAt(i)&&S.charAt(i)<='z') {\n\t\t\t\t\t\tanswer[S.charAt(i)-'a']++;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif ('a'<=S.charAt(i)&&S.charAt(i)<='z') {\n\t\t\t\t\t\tanswer[S.charAt(i)-'a']++;\n\t\t\t\t\t}\n\t\t\t\t}",
"if ('a'<=S.charAt(i)&&S.charAt(i)<='z') {\n\t\t\t\t\t\tanswer[S.charAt(i)-'a']++;\n\t\t\t\t\t}",
"'a'<=S.charAt(i)&&S.charAt(i)<='z'",
"'a'<=S.charAt(i)",
"'a'",
"S.charAt(i)",
"S.charAt",
"S",
"i",
"S.charAt(i)<='z'",
"S.charAt(i)",
"S.charAt",
"S",
"i",
"'z'",
"{\n\t\t\t\t\t\tanswer[S.charAt(i)-'a']++;\n\t\t\t\t\t}",
"answer[S.charAt(i)-'a']++",
"answer[S.charAt(i)-'a']",
"answer",
"S.charAt(i)-'a'",
"S.charAt(i)",
"S.charAt",
"S",
"i",
"'a'",
"for(int i=0;i<26;i++) {\n\t\t\tSystem.out.println((char)(i+'a') + \" : \" + answer[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+'a') + \" : \" + answer[i]);\n\t\t}",
"{\n\t\t\tSystem.out.println((char)(i+'a') + \" : \" + answer[i]);\n\t\t}",
"System.out.println((char)(i+'a') + \" : \" + answer[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)(i+'a') + \" : \" + answer[i]",
"(char)(i+'a') + \" : \" + answer[i]",
"(char)(i+'a')",
"i",
"'a'",
"\" : \"",
"answer[i]",
"answer",
"i",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint[] answer = new int[26];\n\t\ttry(Scanner scanner = new Scanner(System.in)) {\n\t\t\twhile(scanner.hasNextLine()) {\n\t\t\t\tString S = scanner.nextLine();\n\t\t\t\tS = S.toLowerCase();\n\t\t\t\tfor(int i=0;i<S.length();i++) {\n\t\t\t\t\tif ('a'<=S.charAt(i)&&S.charAt(i)<='z') {\n\t\t\t\t\t\tanswer[S.charAt(i)-'a']++;\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((char)(i+'a') + \" : \" + answer[i]);\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint[] answer = new int[26];\n\t\ttry(Scanner scanner = new Scanner(System.in)) {\n\t\t\twhile(scanner.hasNextLine()) {\n\t\t\t\tString S = scanner.nextLine();\n\t\t\t\tS = S.toLowerCase();\n\t\t\t\tfor(int i=0;i<S.length();i++) {\n\t\t\t\t\tif ('a'<=S.charAt(i)&&S.charAt(i)<='z') {\n\t\t\t\t\t\tanswer[S.charAt(i)-'a']++;\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((char)(i+'a') + \" : \" + answer[i]);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int[] answer = new int[26];
try(Scanner scanner = new Scanner(System.in)) {
while(scanner.hasNextLine()) {
String S = scanner.nextLine();
S = S.toLowerCase();
for(int i=0;i<S.length();i++) {
if ('a'<=S.charAt(i)&&S.charAt(i)<='z') {
answer[S.charAt(i)-'a']++;
}
}
}
}
for(int i=0;i<26;i++) {
System.out.println((char)(i+'a') + " : " + answer[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,
14,
2,
2,
4,
18,
13,
13,
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,
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
],
[
95,
5
],
[
95,
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
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
46,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
53,
58
],
[
45,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
62,
67
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
80,
86
],
[
86,
87
],
[
86,
88
],
[
80,
89
],
[
89,
90
],
[
89,
91
],
[
6,
92
],
[
92,
93
],
[
0,
94
],
[
94,
95
],
[
94,
96
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan=new Scanner(System.in);\n\t\tint[] a=new int[26];\n\t\twhile(scan.hasNext()){\n\t\t\n\t\t\tString str = scan.nextLine();\n\t\t\tstr = str.toLowerCase();\n\t\t\n\t\t\tfor(int i=0;i<str.length();i++)\n\t\t\t\tif(str.charAt(i) >= 'a' && str.charAt(i) <= 'z')\n\t\t\t\t\ta[str.charAt(i)-'a']++;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<26;i++)\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+'a',a[i]);\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\tint[] a=new int[26];\n\t\twhile(scan.hasNext()){\n\t\t\n\t\t\tString str = scan.nextLine();\n\t\t\tstr = str.toLowerCase();\n\t\t\n\t\t\tfor(int i=0;i<str.length();i++)\n\t\t\t\tif(str.charAt(i) >= 'a' && str.charAt(i) <= 'z')\n\t\t\t\t\ta[str.charAt(i)-'a']++;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<26;i++)\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+'a',a[i]);\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner scan=new Scanner(System.in);\n\t\tint[] a=new int[26];\n\t\twhile(scan.hasNext()){\n\t\t\n\t\t\tString str = scan.nextLine();\n\t\t\tstr = str.toLowerCase();\n\t\t\n\t\t\tfor(int i=0;i<str.length();i++)\n\t\t\t\tif(str.charAt(i) >= 'a' && str.charAt(i) <= 'z')\n\t\t\t\t\ta[str.charAt(i)-'a']++;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<26;i++)\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+'a',a[i]);\n\t}",
"main",
"{\n\t\tScanner scan=new Scanner(System.in);\n\t\tint[] a=new int[26];\n\t\twhile(scan.hasNext()){\n\t\t\n\t\t\tString str = scan.nextLine();\n\t\t\tstr = str.toLowerCase();\n\t\t\n\t\t\tfor(int i=0;i<str.length();i++)\n\t\t\t\tif(str.charAt(i) >= 'a' && str.charAt(i) <= 'z')\n\t\t\t\t\ta[str.charAt(i)-'a']++;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<26;i++)\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+'a',a[i]);\n\t}",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int[] a=new int[26];",
"a",
"new int[26]",
"26",
"while(scan.hasNext()){\n\t\t\n\t\t\tString str = scan.nextLine();\n\t\t\tstr = str.toLowerCase();\n\t\t\n\t\t\tfor(int i=0;i<str.length();i++)\n\t\t\t\tif(str.charAt(i) >= 'a' && str.charAt(i) <= 'z')\n\t\t\t\t\ta[str.charAt(i)-'a']++;\n\t\t}",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n\t\t\n\t\t\tString str = scan.nextLine();\n\t\t\tstr = str.toLowerCase();\n\t\t\n\t\t\tfor(int i=0;i<str.length();i++)\n\t\t\t\tif(str.charAt(i) >= 'a' && str.charAt(i) <= 'z')\n\t\t\t\t\ta[str.charAt(i)-'a']++;\n\t\t}",
"String str = scan.nextLine();",
"str",
"scan.nextLine()",
"scan.nextLine",
"scan",
"str = str.toLowerCase()",
"str",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"for(int i=0;i<str.length();i++)\n\t\t\t\tif(str.charAt(i) >= 'a' && str.charAt(i) <= 'z')\n\t\t\t\t\ta[str.charAt(i)-'a']++;",
"int i=0;",
"int i=0;",
"i",
"0",
"i<str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"if(str.charAt(i) >= 'a' && str.charAt(i) <= 'z')\n\t\t\t\t\ta[str.charAt(i)-'a']++;",
"if(str.charAt(i) >= 'a' && str.charAt(i) <= 'z')\n\t\t\t\t\ta[str.charAt(i)-'a']++;",
"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'",
"a[str.charAt(i)-'a']++",
"a[str.charAt(i)-'a']",
"a",
"str.charAt(i)-'a'",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"'a'",
"for(int i=0;i<26;i++)\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+'a',a[i]);",
"int i=0;",
"int i=0;",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"System.out.printf(\"%c : %d\\n\",i+'a',a[i]);",
"System.out.printf(\"%c : %d\\n\",i+'a',a[i])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%c : %d\\n\"",
"i+'a'",
"i",
"'a'",
"a[i]",
"a",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan=new Scanner(System.in);\n\t\tint[] a=new int[26];\n\t\twhile(scan.hasNext()){\n\t\t\n\t\t\tString str = scan.nextLine();\n\t\t\tstr = str.toLowerCase();\n\t\t\n\t\t\tfor(int i=0;i<str.length();i++)\n\t\t\t\tif(str.charAt(i) >= 'a' && str.charAt(i) <= 'z')\n\t\t\t\t\ta[str.charAt(i)-'a']++;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<26;i++)\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+'a',a[i]);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan=new Scanner(System.in);\n\t\tint[] a=new int[26];\n\t\twhile(scan.hasNext()){\n\t\t\n\t\t\tString str = scan.nextLine();\n\t\t\tstr = str.toLowerCase();\n\t\t\n\t\t\tfor(int i=0;i<str.length();i++)\n\t\t\t\tif(str.charAt(i) >= 'a' && str.charAt(i) <= 'z')\n\t\t\t\t\ta[str.charAt(i)-'a']++;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<26;i++)\n\t\t\tSystem.out.printf(\"%c : %d\\n\",i+'a',a[i]);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int[] a=new int[26];
while(scan.hasNext()){
String str = scan.nextLine();
str = str.toLowerCase();
for(int i=0;i<str.length();i++)
if(str.charAt(i) >= 'a' && str.charAt(i) <= 'z')
a[str.charAt(i)-'a']++;
}
for(int i=0;i<26;i++)
System.out.printf("%c : %d\n",i+'a',a[i]);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
42,
4,
18,
13,
30,
4,
18,
13,
4,
18,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
17,
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,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
18,
4,
18,
13,
2,
13,
17,
17,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
110,
5
],
[
110,
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
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
37,
47
],
[
47,
48
],
[
48,
49
],
[
37,
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
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
73,
83
],
[
83,
84
],
[
84,
85
],
[
73,
86
],
[
87,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
94,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
99,
100
],
[
99,
101
],
[
95,
102
],
[
94,
103
],
[
94,
104
],
[
104,
105
],
[
104,
106
],
[
6,
107
],
[
107,
108
],
[
0,
109
],
[
109,
110
],
[
109,
111
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n while (sc.hasNext()) {\n sb.append(sc.nextLine().toLowerCase());\n }\n String s = sb.toString();\n int[] count = new int[26];\n for (int i = 0; i < s.length(); i++) {\n int point = s.codePointAt(i);\n if (97 <= point && point <= 122) {\n count[point - 97]++;\n }\n }\n for (int i = 0; i < count.length; i++) {\n System.out.println(Character.toChars(i + 97)[0] + \" : \" + count[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 StringBuilder sb = new StringBuilder();\n while (sc.hasNext()) {\n sb.append(sc.nextLine().toLowerCase());\n }\n String s = sb.toString();\n int[] count = new int[26];\n for (int i = 0; i < s.length(); i++) {\n int point = s.codePointAt(i);\n if (97 <= point && point <= 122) {\n count[point - 97]++;\n }\n }\n for (int i = 0; i < count.length; i++) {\n System.out.println(Character.toChars(i + 97)[0] + \" : \" + count[i]);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n while (sc.hasNext()) {\n sb.append(sc.nextLine().toLowerCase());\n }\n String s = sb.toString();\n int[] count = new int[26];\n for (int i = 0; i < s.length(); i++) {\n int point = s.codePointAt(i);\n if (97 <= point && point <= 122) {\n count[point - 97]++;\n }\n }\n for (int i = 0; i < count.length; i++) {\n System.out.println(Character.toChars(i + 97)[0] + \" : \" + count[i]);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n while (sc.hasNext()) {\n sb.append(sc.nextLine().toLowerCase());\n }\n String s = sb.toString();\n int[] count = new int[26];\n for (int i = 0; i < s.length(); i++) {\n int point = s.codePointAt(i);\n if (97 <= point && point <= 122) {\n count[point - 97]++;\n }\n }\n for (int i = 0; i < count.length; i++) {\n System.out.println(Character.toChars(i + 97)[0] + \" : \" + count[i]);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"while (sc.hasNext()) {\n sb.append(sc.nextLine().toLowerCase());\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n sb.append(sc.nextLine().toLowerCase());\n }",
"sb.append(sc.nextLine().toLowerCase())",
"sb.append",
"sb",
"sc.nextLine().toLowerCase()",
"sc.nextLine().toLowerCase",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String s = sb.toString();",
"s",
"sb.toString()",
"sb.toString",
"sb",
"int[] count = new int[26];",
"count",
"new int[26]",
"26",
"for (int i = 0; i < s.length(); i++) {\n int point = s.codePointAt(i);\n if (97 <= point && point <= 122) {\n count[point - 97]++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n int point = s.codePointAt(i);\n if (97 <= point && point <= 122) {\n count[point - 97]++;\n }\n }",
"{\n int point = s.codePointAt(i);\n if (97 <= point && point <= 122) {\n count[point - 97]++;\n }\n }",
"int point = s.codePointAt(i);",
"point",
"s.codePointAt(i)",
"s.codePointAt",
"s",
"i",
"if (97 <= point && point <= 122) {\n count[point - 97]++;\n }",
"97 <= point && point <= 122",
"97 <= point",
"97",
"point",
"point <= 122",
"point",
"122",
"{\n count[point - 97]++;\n }",
"count[point - 97]++",
"count[point - 97]",
"count",
"point - 97",
"point",
"97",
"for (int i = 0; i < count.length; i++) {\n System.out.println(Character.toChars(i + 97)[0] + \" : \" + 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.toChars(i + 97)[0] + \" : \" + count[i]);\n }",
"{\n System.out.println(Character.toChars(i + 97)[0] + \" : \" + count[i]);\n }",
"System.out.println(Character.toChars(i + 97)[0] + \" : \" + count[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"Character.toChars(i + 97)[0] + \" : \" + count[i]",
"Character.toChars(i + 97)[0] + \" : \" + count[i]",
"Character.toChars(i + 97)[0]",
"Character.toChars(i + 97)",
"Character.toChars",
"Character",
"i + 97",
"i",
"97",
"0",
"\" : \"",
"count[i]",
"count",
"i",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n while (sc.hasNext()) {\n sb.append(sc.nextLine().toLowerCase());\n }\n String s = sb.toString();\n int[] count = new int[26];\n for (int i = 0; i < s.length(); i++) {\n int point = s.codePointAt(i);\n if (97 <= point && point <= 122) {\n count[point - 97]++;\n }\n }\n for (int i = 0; i < count.length; i++) {\n System.out.println(Character.toChars(i + 97)[0] + \" : \" + count[i]);\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n while (sc.hasNext()) {\n sb.append(sc.nextLine().toLowerCase());\n }\n String s = sb.toString();\n int[] count = new int[26];\n for (int i = 0; i < s.length(); i++) {\n int point = s.codePointAt(i);\n if (97 <= point && point <= 122) {\n count[point - 97]++;\n }\n }\n for (int i = 0; i < count.length; i++) {\n System.out.println(Character.toChars(i + 97)[0] + \" : \" + 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);
StringBuilder sb = new StringBuilder();
while (sc.hasNext()) {
sb.append(sc.nextLine().toLowerCase());
}
String s = sb.toString();
int[] count = new int[26];
for (int i = 0; i < s.length(); i++) {
int point = s.codePointAt(i);
if (97 <= point && point <= 122) {
count[point - 97]++;
}
}
for (int i = 0; i < count.length; i++) {
System.out.println(Character.toChars(i + 97)[0] + " : " + count[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,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
13,
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,
13,
17,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
99,
5
],
[
99,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
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
],
[
43,
48
],
[
40,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
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
],
[
86,
88
],
[
84,
89
],
[
90,
90
],
[
90,
91
],
[
90,
92
],
[
90,
93
],
[
93,
94
],
[
93,
95
],
[
6,
96
],
[
96,
97
],
[
0,
98
],
[
98,
99
],
[
98,
100
]
]
| [
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int[] chars = new int[256];\n while(scanner.hasNextLine()){\n String line = scanner.nextLine();\n for(int i = 0; i < line.length(); i++){\n char c = line.toLowerCase().charAt(i);\n for(char j = 'a'; j <= 'z'; j++){\n if(c == j) chars[j] += 1;\n }\n }\n }\n for(char ch = 'a'; ch <= 'z'; ch++){\n System.out.println(ch + \" : \" + chars[ch]);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n int[] chars = new int[256];\n while(scanner.hasNextLine()){\n String line = scanner.nextLine();\n for(int i = 0; i < line.length(); i++){\n char c = line.toLowerCase().charAt(i);\n for(char j = 'a'; j <= 'z'; j++){\n if(c == j) chars[j] += 1;\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 scanner = new Scanner(System.in);\n int[] chars = new int[256];\n while(scanner.hasNextLine()){\n String line = scanner.nextLine();\n for(int i = 0; i < line.length(); i++){\n char c = line.toLowerCase().charAt(i);\n for(char j = 'a'; j <= 'z'; j++){\n if(c == j) chars[j] += 1;\n }\n }\n }\n for(char ch = 'a'; ch <= 'z'; ch++){\n System.out.println(ch + \" : \" + chars[ch]);\n }\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int[] chars = new int[256];\n while(scanner.hasNextLine()){\n String line = scanner.nextLine();\n for(int i = 0; i < line.length(); i++){\n char c = line.toLowerCase().charAt(i);\n for(char j = 'a'; j <= 'z'; j++){\n if(c == j) chars[j] += 1;\n }\n }\n }\n for(char ch = 'a'; ch <= 'z'; ch++){\n System.out.println(ch + \" : \" + chars[ch]);\n }\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int[] chars = new int[256];",
"chars",
"new int[256]",
"256",
"while(scanner.hasNextLine()){\n String line = scanner.nextLine();\n for(int i = 0; i < line.length(); i++){\n char c = line.toLowerCase().charAt(i);\n for(char j = 'a'; j <= 'z'; j++){\n if(c == j) chars[j] += 1;\n }\n }\n }",
"scanner.hasNextLine()",
"scanner.hasNextLine",
"scanner",
"{\n String line = scanner.nextLine();\n for(int i = 0; i < line.length(); i++){\n char c = line.toLowerCase().charAt(i);\n for(char j = 'a'; j <= 'z'; j++){\n if(c == j) chars[j] += 1;\n }\n }\n }",
"String line = scanner.nextLine();",
"line",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"for(int i = 0; i < line.length(); i++){\n char c = line.toLowerCase().charAt(i);\n for(char j = 'a'; j <= 'z'; j++){\n if(c == j) chars[j] += 1;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < line.length()",
"i",
"line.length()",
"line.length",
"line",
"i++",
"i++",
"i",
"{\n char c = line.toLowerCase().charAt(i);\n for(char j = 'a'; j <= 'z'; j++){\n if(c == j) chars[j] += 1;\n }\n }",
"{\n char c = line.toLowerCase().charAt(i);\n for(char j = 'a'; j <= 'z'; j++){\n if(c == j) chars[j] += 1;\n }\n }",
"char c = line.toLowerCase().charAt(i);",
"c",
"line.toLowerCase().charAt(i)",
"line.toLowerCase().charAt",
"line.toLowerCase()",
"line.toLowerCase",
"line",
"i",
"for(char j = 'a'; j <= 'z'; j++){\n if(c == j) chars[j] += 1;\n }",
"char j = 'a';",
"char j = 'a';",
"j",
"'a'",
"j <= 'z'",
"j",
"'z'",
"j++",
"j++",
"j",
"{\n if(c == j) chars[j] += 1;\n }",
"{\n if(c == j) chars[j] += 1;\n }",
"if(c == j) chars[j] += 1;",
"c == j",
"c",
"j",
"chars[j] += 1",
"chars[j]",
"chars",
"j",
"1",
"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 scanner = new Scanner(System.in);\n int[] chars = new int[256];\n while(scanner.hasNextLine()){\n String line = scanner.nextLine();\n for(int i = 0; i < line.length(); i++){\n char c = line.toLowerCase().charAt(i);\n for(char j = 'a'; j <= 'z'; j++){\n if(c == j) chars[j] += 1;\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 scanner = new Scanner(System.in);\n int[] chars = new int[256];\n while(scanner.hasNextLine()){\n String line = scanner.nextLine();\n for(int i = 0; i < line.length(); i++){\n char c = line.toLowerCase().charAt(i);\n for(char j = 'a'; j <= 'z'; j++){\n if(c == j) chars[j] += 1;\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.*;
public class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int[] chars = new int[256];
while(scanner.hasNextLine()){
String line = scanner.nextLine();
for(int i = 0; i < line.length(); i++){
char c = line.toLowerCase().charAt(i);
for(char j = 'a'; j <= 'z'; j++){
if(c == j) chars[j] += 1;
}
}
}
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,
20,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
13,
18,
13,
13,
30,
40,
18,
13,
2,
4,
18,
13,
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
],
[
98,
5
],
[
98,
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
],
[
20,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
34,
44
],
[
44,
45
],
[
45,
46
],
[
34,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
53,
55
],
[
49,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
64,
66
],
[
60,
67
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
87,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
87,
92
],
[
92,
93
],
[
92,
94
],
[
6,
95
],
[
95,
96
],
[
0,
97
],
[
97,
98
],
[
97,
99
]
]
| [
"import java.util.Scanner;\npublic class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint[] alpabetDict = new int[26];\n\twhile (scan.hasNext()) {\n\t String input = scan.nextLine();\n\t char[] inputArray = input.toCharArray();\n\t int count = 0;\n\t for (int i = 0; i < inputArray.length; i++) {\n\t\tif (Character.isLetter(inputArray[i])) {\n\t\t alpabetDict[(int)Character.toLowerCase(inputArray[i]) - 'a']++;\n\t\t}\n\t }\n\t}\n\tfor (int i = 0; i < 26; i++) {\n\t System.out.println((char)(i+'a') + \" : \" + alpabetDict[i]);\n\t}\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint[] alpabetDict = new int[26];\n\twhile (scan.hasNext()) {\n\t String input = scan.nextLine();\n\t char[] inputArray = input.toCharArray();\n\t int count = 0;\n\t for (int i = 0; i < inputArray.length; i++) {\n\t\tif (Character.isLetter(inputArray[i])) {\n\t\t alpabetDict[(int)Character.toLowerCase(inputArray[i]) - 'a']++;\n\t\t}\n\t }\n\t}\n\tfor (int i = 0; i < 26; i++) {\n\t System.out.println((char)(i+'a') + \" : \" + alpabetDict[i]);\n\t}\n }\n}",
"Main",
"public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint[] alpabetDict = new int[26];\n\twhile (scan.hasNext()) {\n\t String input = scan.nextLine();\n\t char[] inputArray = input.toCharArray();\n\t int count = 0;\n\t for (int i = 0; i < inputArray.length; i++) {\n\t\tif (Character.isLetter(inputArray[i])) {\n\t\t alpabetDict[(int)Character.toLowerCase(inputArray[i]) - 'a']++;\n\t\t}\n\t }\n\t}\n\tfor (int i = 0; i < 26; i++) {\n\t System.out.println((char)(i+'a') + \" : \" + alpabetDict[i]);\n\t}\n }",
"main",
"{\n\tScanner scan = new Scanner(System.in);\n\tint[] alpabetDict = new int[26];\n\twhile (scan.hasNext()) {\n\t String input = scan.nextLine();\n\t char[] inputArray = input.toCharArray();\n\t int count = 0;\n\t for (int i = 0; i < inputArray.length; i++) {\n\t\tif (Character.isLetter(inputArray[i])) {\n\t\t alpabetDict[(int)Character.toLowerCase(inputArray[i]) - 'a']++;\n\t\t}\n\t }\n\t}\n\tfor (int i = 0; i < 26; i++) {\n\t System.out.println((char)(i+'a') + \" : \" + alpabetDict[i]);\n\t}\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int[] alpabetDict = new int[26];",
"alpabetDict",
"new int[26]",
"26",
"while (scan.hasNext()) {\n\t String input = scan.nextLine();\n\t char[] inputArray = input.toCharArray();\n\t int count = 0;\n\t for (int i = 0; i < inputArray.length; i++) {\n\t\tif (Character.isLetter(inputArray[i])) {\n\t\t alpabetDict[(int)Character.toLowerCase(inputArray[i]) - 'a']++;\n\t\t}\n\t }\n\t}",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n\t String input = scan.nextLine();\n\t char[] inputArray = input.toCharArray();\n\t int count = 0;\n\t for (int i = 0; i < inputArray.length; i++) {\n\t\tif (Character.isLetter(inputArray[i])) {\n\t\t alpabetDict[(int)Character.toLowerCase(inputArray[i]) - 'a']++;\n\t\t}\n\t }\n\t}",
"String input = scan.nextLine();",
"input",
"scan.nextLine()",
"scan.nextLine",
"scan",
"char[] inputArray = input.toCharArray();",
"inputArray",
"input.toCharArray()",
"input.toCharArray",
"input",
"int count = 0;",
"count",
"0",
"for (int i = 0; i < inputArray.length; i++) {\n\t\tif (Character.isLetter(inputArray[i])) {\n\t\t alpabetDict[(int)Character.toLowerCase(inputArray[i]) - 'a']++;\n\t\t}\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < inputArray.length",
"i",
"inputArray.length",
"inputArray",
"inputArray.length",
"i++",
"i++",
"i",
"{\n\t\tif (Character.isLetter(inputArray[i])) {\n\t\t alpabetDict[(int)Character.toLowerCase(inputArray[i]) - 'a']++;\n\t\t}\n\t }",
"{\n\t\tif (Character.isLetter(inputArray[i])) {\n\t\t alpabetDict[(int)Character.toLowerCase(inputArray[i]) - 'a']++;\n\t\t}\n\t }",
"if (Character.isLetter(inputArray[i])) {\n\t\t alpabetDict[(int)Character.toLowerCase(inputArray[i]) - 'a']++;\n\t\t}",
"Character.isLetter(inputArray[i])",
"Character.isLetter",
"Character",
"inputArray[i]",
"inputArray",
"i",
"{\n\t\t alpabetDict[(int)Character.toLowerCase(inputArray[i]) - 'a']++;\n\t\t}",
"alpabetDict[(int)Character.toLowerCase(inputArray[i]) - 'a']++",
"alpabetDict[(int)Character.toLowerCase(inputArray[i]) - 'a']",
"alpabetDict",
"(int)Character.toLowerCase(inputArray[i]) - 'a'",
"(int)Character.toLowerCase(inputArray[i])",
"Character.toLowerCase",
"Character",
"inputArray[i]",
"inputArray",
"i",
"'a'",
"for (int i = 0; i < 26; i++) {\n\t System.out.println((char)(i+'a') + \" : \" + alpabetDict[i]);\n\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t System.out.println((char)(i+'a') + \" : \" + alpabetDict[i]);\n\t}",
"{\n\t System.out.println((char)(i+'a') + \" : \" + alpabetDict[i]);\n\t}",
"System.out.println((char)(i+'a') + \" : \" + alpabetDict[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char)(i+'a') + \" : \" + alpabetDict[i]",
"(char)(i+'a') + \" : \" + alpabetDict[i]",
"(char)(i+'a')",
"i",
"'a'",
"\" : \"",
"alpabetDict[i]",
"alpabetDict",
"i",
"String[] args",
"args",
"public class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint[] alpabetDict = new int[26];\n\twhile (scan.hasNext()) {\n\t String input = scan.nextLine();\n\t char[] inputArray = input.toCharArray();\n\t int count = 0;\n\t for (int i = 0; i < inputArray.length; i++) {\n\t\tif (Character.isLetter(inputArray[i])) {\n\t\t alpabetDict[(int)Character.toLowerCase(inputArray[i]) - 'a']++;\n\t\t}\n\t }\n\t}\n\tfor (int i = 0; i < 26; i++) {\n\t System.out.println((char)(i+'a') + \" : \" + alpabetDict[i]);\n\t}\n }\n}",
"public class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint[] alpabetDict = new int[26];\n\twhile (scan.hasNext()) {\n\t String input = scan.nextLine();\n\t char[] inputArray = input.toCharArray();\n\t int count = 0;\n\t for (int i = 0; i < inputArray.length; i++) {\n\t\tif (Character.isLetter(inputArray[i])) {\n\t\t alpabetDict[(int)Character.toLowerCase(inputArray[i]) - 'a']++;\n\t\t}\n\t }\n\t}\n\tfor (int i = 0; i < 26; i++) {\n\t System.out.println((char)(i+'a') + \" : \" + alpabetDict[i]);\n\t}\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main (String[] args) {
Scanner scan = new Scanner(System.in);
int[] alpabetDict = new int[26];
while (scan.hasNext()) {
String input = scan.nextLine();
char[] inputArray = input.toCharArray();
int count = 0;
for (int i = 0; i < inputArray.length; i++) {
if (Character.isLetter(inputArray[i])) {
alpabetDict[(int)Character.toLowerCase(inputArray[i]) - 'a']++;
}
}
}
for (int i = 0; i < 26; i++) {
System.out.println((char)(i+'a') + " : " + alpabetDict[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,
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 stdIn = new Scanner(System.in);\n int[] counter = new int[128];\n while(stdIn.hasNext()) {\n String str = stdIn.nextLine().toLowerCase();\n for(int i = 0; i < str.length(); i++) {\n counter[str.charAt(i)]++;\n }\n }\n for(char ch = 'a'; ch <= 'z'; ch++) {\n System.out.println(ch + \" : \" + counter[ch]);\n }\n \n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n int[] counter = new int[128];\n while(stdIn.hasNext()) {\n String str = stdIn.nextLine().toLowerCase();\n for(int i = 0; i < str.length(); i++) {\n counter[str.charAt(i)]++;\n }\n }\n for(char ch = 'a'; ch <= 'z'; ch++) {\n System.out.println(ch + \" : \" + counter[ch]);\n }\n \n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n int[] counter = new int[128];\n while(stdIn.hasNext()) {\n String str = stdIn.nextLine().toLowerCase();\n for(int i = 0; i < str.length(); i++) {\n counter[str.charAt(i)]++;\n }\n }\n for(char ch = 'a'; ch <= 'z'; ch++) {\n System.out.println(ch + \" : \" + counter[ch]);\n }\n \n }",
"main",
"{\n Scanner stdIn = new Scanner(System.in);\n int[] counter = new int[128];\n while(stdIn.hasNext()) {\n String str = stdIn.nextLine().toLowerCase();\n for(int i = 0; i < str.length(); i++) {\n counter[str.charAt(i)]++;\n }\n }\n for(char ch = 'a'; ch <= 'z'; ch++) {\n System.out.println(ch + \" : \" + counter[ch]);\n }\n \n }",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int[] counter = new int[128];",
"counter",
"new int[128]",
"128",
"while(stdIn.hasNext()) {\n String str = stdIn.nextLine().toLowerCase();\n for(int i = 0; i < str.length(); i++) {\n counter[str.charAt(i)]++;\n }\n }",
"stdIn.hasNext()",
"stdIn.hasNext",
"stdIn",
"{\n String str = stdIn.nextLine().toLowerCase();\n for(int i = 0; i < str.length(); i++) {\n counter[str.charAt(i)]++;\n }\n }",
"String str = stdIn.nextLine().toLowerCase();",
"str",
"stdIn.nextLine().toLowerCase()",
"stdIn.nextLine().toLowerCase",
"stdIn.nextLine()",
"stdIn.nextLine",
"stdIn",
"for(int i = 0; i < str.length(); i++) {\n counter[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 counter[str.charAt(i)]++;\n }",
"{\n counter[str.charAt(i)]++;\n }",
"counter[str.charAt(i)]++",
"counter[str.charAt(i)]",
"counter",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"for(char ch = 'a'; ch <= 'z'; ch++) {\n System.out.println(ch + \" : \" + counter[ch]);\n }",
"char ch = 'a';",
"char ch = 'a';",
"ch",
"'a'",
"ch <= 'z'",
"ch",
"'z'",
"ch++",
"ch++",
"ch",
"{\n System.out.println(ch + \" : \" + counter[ch]);\n }",
"{\n System.out.println(ch + \" : \" + counter[ch]);\n }",
"System.out.println(ch + \" : \" + counter[ch])",
"System.out.println",
"System.out",
"System",
"System.out",
"ch + \" : \" + counter[ch]",
"ch + \" : \" + counter[ch]",
"ch",
"\" : \"",
"counter[ch]",
"counter",
"ch",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n int[] counter = new int[128];\n while(stdIn.hasNext()) {\n String str = stdIn.nextLine().toLowerCase();\n for(int i = 0; i < str.length(); i++) {\n counter[str.charAt(i)]++;\n }\n }\n for(char ch = 'a'; ch <= 'z'; ch++) {\n System.out.println(ch + \" : \" + counter[ch]);\n }\n \n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n int[] counter = new int[128];\n while(stdIn.hasNext()) {\n String str = stdIn.nextLine().toLowerCase();\n for(int i = 0; i < str.length(); i++) {\n counter[str.charAt(i)]++;\n }\n }\n for(char ch = 'a'; ch <= 'z'; ch++) {\n System.out.println(ch + \" : \" + counter[ch]);\n }\n \n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int[] counter = new int[128];
while(stdIn.hasNext()) {
String str = stdIn.nextLine().toLowerCase();
for(int i = 0; i < str.length(); i++) {
counter[str.charAt(i)]++;
}
}
for(char ch = 'a'; ch <= 'z'; ch++) {
System.out.println(ch + " : " + counter[ch]);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
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,
2,
17,
13,
17,
41,
13,
41,
13,
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,
4,
18,
13,
13,
2,
4,
18,
13,
13,
17,
28,
13,
4,
18,
13,
30,
30,
4,
18,
18,
13,
13,
2,
2,
4,
18,
13,
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
],
[
123,
14
],
[
123,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
29,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
24,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
40,
42
],
[
37,
43
],
[
17,
44
],
[
44,
45
],
[
17,
46
],
[
46,
47
],
[
17,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
49,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
56,
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
],
[
84,
87
],
[
83,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
89,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
93,
98
],
[
17,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
99,
104
],
[
105,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
112,
116
],
[
112,
117
],
[
117,
118
],
[
118,
119
],
[
15,
120
],
[
120,
121
],
[
0,
122
],
[
122,
123
],
[
122,
124
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.HashMap;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n HashMap<Character,Integer> map = new HashMap<>();\n for(int i=0;i<26;i++){\n map.put((char)('a'+i),0);\n }\n String str,str1;\n while((str = br.readLine())!=null){\n str1 = str.toLowerCase();\n for(int i=0;i<str1.length();i++){\n char c = str1.charAt(i);\n if(map.containsKey(c)){\n map.put(c,map.get(c)+1);\n }\n }\n }\n for(HashMap.Entry<Character,Integer> entry:map.entrySet()){\n System.out.println(entry.getKey()+\" : \"+entry.getValue());\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.HashMap;",
"HashMap",
"java.util",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n HashMap<Character,Integer> map = new HashMap<>();\n for(int i=0;i<26;i++){\n map.put((char)('a'+i),0);\n }\n String str,str1;\n while((str = br.readLine())!=null){\n str1 = str.toLowerCase();\n for(int i=0;i<str1.length();i++){\n char c = str1.charAt(i);\n if(map.containsKey(c)){\n map.put(c,map.get(c)+1);\n }\n }\n }\n for(HashMap.Entry<Character,Integer> entry:map.entrySet()){\n System.out.println(entry.getKey()+\" : \"+entry.getValue());\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n HashMap<Character,Integer> map = new HashMap<>();\n for(int i=0;i<26;i++){\n map.put((char)('a'+i),0);\n }\n String str,str1;\n while((str = br.readLine())!=null){\n str1 = str.toLowerCase();\n for(int i=0;i<str1.length();i++){\n char c = str1.charAt(i);\n if(map.containsKey(c)){\n map.put(c,map.get(c)+1);\n }\n }\n }\n for(HashMap.Entry<Character,Integer> entry:map.entrySet()){\n System.out.println(entry.getKey()+\" : \"+entry.getValue());\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n HashMap<Character,Integer> map = new HashMap<>();\n for(int i=0;i<26;i++){\n map.put((char)('a'+i),0);\n }\n String str,str1;\n while((str = br.readLine())!=null){\n str1 = str.toLowerCase();\n for(int i=0;i<str1.length();i++){\n char c = str1.charAt(i);\n if(map.containsKey(c)){\n map.put(c,map.get(c)+1);\n }\n }\n }\n for(HashMap.Entry<Character,Integer> entry:map.entrySet()){\n System.out.println(entry.getKey()+\" : \"+entry.getValue());\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"HashMap<Character,Integer> map = new HashMap<>();",
"map",
"new HashMap<>()",
"for(int i=0;i<26;i++){\n map.put((char)('a'+i),0);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n map.put((char)('a'+i),0);\n }",
"{\n map.put((char)('a'+i),0);\n }",
"map.put((char)('a'+i),0)",
"map.put",
"map",
"(char)('a'+i)",
"'a'",
"i",
"0",
"String str",
"str",
"str1;",
"str1",
"while((str = br.readLine())!=null){\n str1 = str.toLowerCase();\n for(int i=0;i<str1.length();i++){\n char c = str1.charAt(i);\n if(map.containsKey(c)){\n map.put(c,map.get(c)+1);\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 char c = str1.charAt(i);\n if(map.containsKey(c)){\n map.put(c,map.get(c)+1);\n }\n }\n }",
"str1 = str.toLowerCase()",
"str1",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"for(int i=0;i<str1.length();i++){\n char c = str1.charAt(i);\n if(map.containsKey(c)){\n map.put(c,map.get(c)+1);\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<str1.length()",
"i",
"str1.length()",
"str1.length",
"str1",
"i++",
"i++",
"i",
"{\n char c = str1.charAt(i);\n if(map.containsKey(c)){\n map.put(c,map.get(c)+1);\n }\n }",
"{\n char c = str1.charAt(i);\n if(map.containsKey(c)){\n map.put(c,map.get(c)+1);\n }\n }",
"char c = str1.charAt(i);",
"c",
"str1.charAt(i)",
"str1.charAt",
"str1",
"i",
"if(map.containsKey(c)){\n map.put(c,map.get(c)+1);\n }",
"map.containsKey(c)",
"map.containsKey",
"map",
"c",
"{\n map.put(c,map.get(c)+1);\n }",
"map.put(c,map.get(c)+1)",
"map.put",
"map",
"c",
"map.get(c)+1",
"map.get(c)",
"map.get",
"map",
"c",
"1",
"for(HashMap.Entry<Character,Integer> entry:map.entrySet()){\n System.out.println(entry.getKey()+\" : \"+entry.getValue());\n }",
"HashMap.Entry<Character,Integer> entry",
"map.entrySet()",
"map.entrySet",
"map",
"{\n System.out.println(entry.getKey()+\" : \"+entry.getValue());\n }",
"{\n System.out.println(entry.getKey()+\" : \"+entry.getValue());\n }",
"System.out.println(entry.getKey()+\" : \"+entry.getValue())",
"System.out.println",
"System.out",
"System",
"System.out",
"entry.getKey()+\" : \"+entry.getValue()",
"entry.getKey()+\" : \"+entry.getValue()",
"entry.getKey()",
"entry.getKey",
"entry",
"\" : \"",
"entry.getValue()",
"entry.getValue",
"entry",
"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 HashMap<Character,Integer> map = new HashMap<>();\n for(int i=0;i<26;i++){\n map.put((char)('a'+i),0);\n }\n String str,str1;\n while((str = br.readLine())!=null){\n str1 = str.toLowerCase();\n for(int i=0;i<str1.length();i++){\n char c = str1.charAt(i);\n if(map.containsKey(c)){\n map.put(c,map.get(c)+1);\n }\n }\n }\n for(HashMap.Entry<Character,Integer> entry:map.entrySet()){\n System.out.println(entry.getKey()+\" : \"+entry.getValue());\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 HashMap<Character,Integer> map = new HashMap<>();\n for(int i=0;i<26;i++){\n map.put((char)('a'+i),0);\n }\n String str,str1;\n while((str = br.readLine())!=null){\n str1 = str.toLowerCase();\n for(int i=0;i<str1.length();i++){\n char c = str1.charAt(i);\n if(map.containsKey(c)){\n map.put(c,map.get(c)+1);\n }\n }\n }\n for(HashMap.Entry<Character,Integer> entry:map.entrySet()){\n System.out.println(entry.getKey()+\" : \"+entry.getValue());\n }\n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
HashMap<Character,Integer> map = new HashMap<>();
for(int i=0;i<26;i++){
map.put((char)('a'+i),0);
}
String str,str1;
while((str = br.readLine())!=null){
str1 = str.toLowerCase();
for(int i=0;i<str1.length();i++){
char c = str1.charAt(i);
if(map.containsKey(c)){
map.put(c,map.get(c)+1);
}
}
}
for(HashMap.Entry<Character,Integer> entry:map.entrySet()){
System.out.println(entry.getKey()+" : "+entry.getValue());
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
17,
41,
13,
0,
13,
20,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
28,
13,
13,
30,
30,
41,
13,
13,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
40,
18,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
2,
13,
17,
41,
13,
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
],
[
110,
5
],
[
110,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[
12,
15
],
[
8,
16
],
[
16,
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
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
26,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
26,
47
],
[
47,
48
],
[
47,
49
],
[
47,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
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
],
[
71,
73
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
74,
82
],
[
82,
83
],
[
83,
84
],
[
74,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
89,
91
],
[
86,
92
],
[
92,
93
],
[
92,
94
],
[
86,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
101,
101
],
[
101,
102
],
[
101,
103
],
[
101,
104
],
[
104,
105
],
[
104,
106
],
[
6,
107
],
[
107,
108
],
[
0,
109
],
[
109,
110
],
[
109,
111
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t\n\t\t// ??\\???\n\t\tScanner scan = new Scanner(System.in);\n\t\tscan.useDelimiter(\"\\\\r\\\\n\");\n\t\t\n\t\t// ??????\n\t\tint count[];\n\t\tcount = new int[26];\n\t\twhile(scan.hasNext()) {\n\t\t\tString S = scan.nextLine();\n\t\t\t// ???????????????\n\t\t\tint sl = S.length();\n\t\t\t// ?°???????????????????\n\t\t\tString s = S.toLowerCase();\n\t\t\t// 1????????\\???char??????????´?\n\t\t\tchar[] charArray = s.toCharArray();\n\t\t\tfor (char ch : charArray) {\n\t\t\t\tint CH = ch;\n\t\t\t\t// a-z?????°??????\n\t\t\t\tif(((CH-97)>=0) && ((CH-97)<26)){\n\t\t\t\t\tcount[CH-97]++;\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\tint cords = i + 97;\n\t\t\tchar c = (char)cords;\n\t\t\tSystem.out.println(c + \" : \" + count[i]);\n\t\t}\n\n\t\t\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t\n\t\t// ??\\???\n\t\tScanner scan = new Scanner(System.in);\n\t\tscan.useDelimiter(\"\\\\r\\\\n\");\n\t\t\n\t\t// ??????\n\t\tint count[];\n\t\tcount = new int[26];\n\t\twhile(scan.hasNext()) {\n\t\t\tString S = scan.nextLine();\n\t\t\t// ???????????????\n\t\t\tint sl = S.length();\n\t\t\t// ?°???????????????????\n\t\t\tString s = S.toLowerCase();\n\t\t\t// 1????????\\???char??????????´?\n\t\t\tchar[] charArray = s.toCharArray();\n\t\t\tfor (char ch : charArray) {\n\t\t\t\tint CH = ch;\n\t\t\t\t// a-z?????°??????\n\t\t\t\tif(((CH-97)>=0) && ((CH-97)<26)){\n\t\t\t\t\tcount[CH-97]++;\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\tint cords = i + 97;\n\t\t\tchar c = (char)cords;\n\t\t\tSystem.out.println(c + \" : \" + count[i]);\n\t\t}\n\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t\n\t\t// ??\\???\n\t\tScanner scan = new Scanner(System.in);\n\t\tscan.useDelimiter(\"\\\\r\\\\n\");\n\t\t\n\t\t// ??????\n\t\tint count[];\n\t\tcount = new int[26];\n\t\twhile(scan.hasNext()) {\n\t\t\tString S = scan.nextLine();\n\t\t\t// ???????????????\n\t\t\tint sl = S.length();\n\t\t\t// ?°???????????????????\n\t\t\tString s = S.toLowerCase();\n\t\t\t// 1????????\\???char??????????´?\n\t\t\tchar[] charArray = s.toCharArray();\n\t\t\tfor (char ch : charArray) {\n\t\t\t\tint CH = ch;\n\t\t\t\t// a-z?????°??????\n\t\t\t\tif(((CH-97)>=0) && ((CH-97)<26)){\n\t\t\t\t\tcount[CH-97]++;\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\tint cords = i + 97;\n\t\t\tchar c = (char)cords;\n\t\t\tSystem.out.println(c + \" : \" + count[i]);\n\t\t}\n\n\t\t\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t\n\t\t// ??\\???\n\t\tScanner scan = new Scanner(System.in);\n\t\tscan.useDelimiter(\"\\\\r\\\\n\");\n\t\t\n\t\t// ??????\n\t\tint count[];\n\t\tcount = new int[26];\n\t\twhile(scan.hasNext()) {\n\t\t\tString S = scan.nextLine();\n\t\t\t// ???????????????\n\t\t\tint sl = S.length();\n\t\t\t// ?°???????????????????\n\t\t\tString s = S.toLowerCase();\n\t\t\t// 1????????\\???char??????????´?\n\t\t\tchar[] charArray = s.toCharArray();\n\t\t\tfor (char ch : charArray) {\n\t\t\t\tint CH = ch;\n\t\t\t\t// a-z?????°??????\n\t\t\t\tif(((CH-97)>=0) && ((CH-97)<26)){\n\t\t\t\t\tcount[CH-97]++;\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\tint cords = i + 97;\n\t\t\tchar c = (char)cords;\n\t\t\tSystem.out.println(c + \" : \" + count[i]);\n\t\t}\n\n\t\t\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"scan.useDelimiter(\"\\\\r\\\\n\")",
"scan.useDelimiter",
"scan",
"\"\\\\r\\\\n\"",
"int count[];",
"count",
"count = new int[26]",
"count",
"new int[26]",
"26",
"while(scan.hasNext()) {\n\t\t\tString S = scan.nextLine();\n\t\t\t// ???????????????\n\t\t\tint sl = S.length();\n\t\t\t// ?°???????????????????\n\t\t\tString s = S.toLowerCase();\n\t\t\t// 1????????\\???char??????????´?\n\t\t\tchar[] charArray = s.toCharArray();\n\t\t\tfor (char ch : charArray) {\n\t\t\t\tint CH = ch;\n\t\t\t\t// a-z?????°??????\n\t\t\t\tif(((CH-97)>=0) && ((CH-97)<26)){\n\t\t\t\t\tcount[CH-97]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n\t\t\tString S = scan.nextLine();\n\t\t\t// ???????????????\n\t\t\tint sl = S.length();\n\t\t\t// ?°???????????????????\n\t\t\tString s = S.toLowerCase();\n\t\t\t// 1????????\\???char??????????´?\n\t\t\tchar[] charArray = s.toCharArray();\n\t\t\tfor (char ch : charArray) {\n\t\t\t\tint CH = ch;\n\t\t\t\t// a-z?????°??????\n\t\t\t\tif(((CH-97)>=0) && ((CH-97)<26)){\n\t\t\t\t\tcount[CH-97]++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"String S = scan.nextLine();",
"S",
"scan.nextLine()",
"scan.nextLine",
"scan",
"int sl = S.length();",
"sl",
"S.length()",
"S.length",
"S",
"String s = S.toLowerCase();",
"s",
"S.toLowerCase()",
"S.toLowerCase",
"S",
"char[] charArray = s.toCharArray();",
"charArray",
"s.toCharArray()",
"s.toCharArray",
"s",
"for (char ch : charArray) {\n\t\t\t\tint CH = ch;\n\t\t\t\t// a-z?????°??????\n\t\t\t\tif(((CH-97)>=0) && ((CH-97)<26)){\n\t\t\t\t\tcount[CH-97]++;\n\t\t\t\t}\n\t\t\t}",
"char ch",
"charArray",
"{\n\t\t\t\tint CH = ch;\n\t\t\t\t// a-z?????°??????\n\t\t\t\tif(((CH-97)>=0) && ((CH-97)<26)){\n\t\t\t\t\tcount[CH-97]++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tint CH = ch;\n\t\t\t\t// a-z?????°??????\n\t\t\t\tif(((CH-97)>=0) && ((CH-97)<26)){\n\t\t\t\t\tcount[CH-97]++;\n\t\t\t\t}\n\t\t\t}",
"int CH = ch;",
"CH",
"ch",
"if(((CH-97)>=0) && ((CH-97)<26)){\n\t\t\t\t\tcount[CH-97]++;\n\t\t\t\t}",
"((CH-97)>=0) && ((CH-97)<26)",
"((CH-97)>=0)",
"(CH-97)",
"CH",
"97",
"0",
"((CH-97)<26)",
"(CH-97)",
"CH",
"97",
"26",
"{\n\t\t\t\t\tcount[CH-97]++;\n\t\t\t\t}",
"count[CH-97]++",
"count[CH-97]",
"count",
"CH-97",
"CH",
"97",
"for (int i=0; i<26; i++) {\n\t\t\tint cords = i + 97;\n\t\t\tchar c = (char)cords;\n\t\t\tSystem.out.println(c + \" : \" + count[i]);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tint cords = i + 97;\n\t\t\tchar c = (char)cords;\n\t\t\tSystem.out.println(c + \" : \" + count[i]);\n\t\t}",
"{\n\t\t\tint cords = i + 97;\n\t\t\tchar c = (char)cords;\n\t\t\tSystem.out.println(c + \" : \" + count[i]);\n\t\t}",
"int cords = i + 97;",
"cords",
"i + 97",
"i",
"97",
"char c = (char)cords;",
"c",
"(char)cords",
"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",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t\n\t\t// ??\\???\n\t\tScanner scan = new Scanner(System.in);\n\t\tscan.useDelimiter(\"\\\\r\\\\n\");\n\t\t\n\t\t// ??????\n\t\tint count[];\n\t\tcount = new int[26];\n\t\twhile(scan.hasNext()) {\n\t\t\tString S = scan.nextLine();\n\t\t\t// ???????????????\n\t\t\tint sl = S.length();\n\t\t\t// ?°???????????????????\n\t\t\tString s = S.toLowerCase();\n\t\t\t// 1????????\\???char??????????´?\n\t\t\tchar[] charArray = s.toCharArray();\n\t\t\tfor (char ch : charArray) {\n\t\t\t\tint CH = ch;\n\t\t\t\t// a-z?????°??????\n\t\t\t\tif(((CH-97)>=0) && ((CH-97)<26)){\n\t\t\t\t\tcount[CH-97]++;\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\tint cords = i + 97;\n\t\t\tchar c = (char)cords;\n\t\t\tSystem.out.println(c + \" : \" + count[i]);\n\t\t}\n\n\t\t\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t\n\t\t// ??\\???\n\t\tScanner scan = new Scanner(System.in);\n\t\tscan.useDelimiter(\"\\\\r\\\\n\");\n\t\t\n\t\t// ??????\n\t\tint count[];\n\t\tcount = new int[26];\n\t\twhile(scan.hasNext()) {\n\t\t\tString S = scan.nextLine();\n\t\t\t// ???????????????\n\t\t\tint sl = S.length();\n\t\t\t// ?°???????????????????\n\t\t\tString s = S.toLowerCase();\n\t\t\t// 1????????\\???char??????????´?\n\t\t\tchar[] charArray = s.toCharArray();\n\t\t\tfor (char ch : charArray) {\n\t\t\t\tint CH = ch;\n\t\t\t\t// a-z?????°??????\n\t\t\t\tif(((CH-97)>=0) && ((CH-97)<26)){\n\t\t\t\t\tcount[CH-97]++;\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\tint cords = i + 97;\n\t\t\tchar c = (char)cords;\n\t\t\tSystem.out.println(c + \" : \" + count[i]);\n\t\t}\n\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);
scan.useDelimiter("\\r\\n");
// ??????
int count[];
count = new int[26];
while(scan.hasNext()) {
String S = scan.nextLine();
// ???????????????
int sl = S.length();
// ?°???????????????????
String s = S.toLowerCase();
// 1????????\???char??????????´?
char[] charArray = s.toCharArray();
for (char ch : charArray) {
int CH = ch;
// a-z?????°??????
if(((CH-97)>=0) && ((CH-97)<26)){
count[CH-97]++;
}
}
}
// ??????
for (int i=0; i<26; i++) {
int cords = i + 97;
char c = (char)cords;
System.out.println(c + " : " + count[i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
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,
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,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
4,
18,
13,
4,
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
],
[
138,
5
],
[
138,
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
],
[
21,
22
],
[
21,
23
],
[
21,
24
],
[
21,
25
],
[
21,
26
],
[
21,
27
],
[
21,
28
],
[
21,
29
],
[
21,
30
],
[
21,
31
],
[
21,
32
],
[
21,
33
],
[
21,
34
],
[
21,
35
],
[
21,
36
],
[
21,
37
],
[
21,
38
],
[
21,
39
],
[
21,
40
],
[
21,
41
],
[
21,
42
],
[
21,
43
],
[
21,
44
],
[
21,
45
],
[
21,
46
],
[
21,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
58,
68
],
[
68,
69
],
[
69,
70
],
[
58,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
73,
83
],
[
83,
84
],
[
84,
85
],
[
73,
86
],
[
87,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
88,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
8,
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
],
[
121,
126
],
[
127,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
6,
135
],
[
135,
136
],
[
0,
137
],
[
137,
138
],
[
137,
139
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n//\t\tList<Integer> x =new ArrayList<Integer>();\n\t\tString str=new String();\n\t\tint[] a = new int[26];\n\t\tString[] eng = {\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\"\n\t\t\t\t ,\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\"};\n\t\tdo{\n\t\t\tstr = scan.next();\n\t\t\tfor(int i=0;i<str.length() ;i++){\n\t\t\t\tfor(int j = 0 ; j < eng.length ;j++ ){\n\t\t\t\t\tif( eng[j].equalsIgnoreCase(String.valueOf(str.charAt(i)))){\n\t\t\t\t\t\ta[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}while(scan.hasNext());\n\n\n\t\t\n\t\tfor(int j = 0 ; j < eng.length ;j++ ){\n\t\t\tSystem.out.println(eng[j]+\" : \"+a[j]);\n\t\t\t}\n\n\t}\n}\n\n\n\n\n\n\n\n//\n//import java.util.ArrayList;\n//import java.util.List;\n//import java.util.Scanner;\n//\n//public class Main {\n//\tpublic static void main(String[] args) {\n//\t\tScanner scan = new Scanner(System.in);\n//\t\tList<Integer> n = new ArrayList<Integer>();\n//\t\tList<Integer> x = new ArrayList<Integer>();\n//\t\tList<Integer> count = new ArrayList<Integer>();\n//\n//\t\t for(int i=0;;i++){\n//\t\t\t n.add(i, scan.nextInt());\n//\t\t\t x.add(i, scan.nextInt());\n//\t\t\t count.add(i, 0);\n//\t\t\t if(n.get(i)==0 && x.get(i)==0) break;\n//\t\t }\n//\n//\n//\n// for(int h=0;;h++){\n//\t\t if(n.get(h)==0 && x.get(h)==0) break;\n//\t\t for(int i=1;i<=n.get(h);i++){\n//\t\t\t for(int j=i;j<=n.get(h);j++){\n//\t\t\t\t if(i==j)continue;\n//\t\t\t\t for(int k=j;k <= n.get(h);k++){\n//\t\t\t\t\t if(i==k || j==k)continue;\n//\t\t\t\t\t if(i+j+k == x.get(h)) count.set(h, count.get(h)+1 );\n//\t\t\t\t }\n//\t\t\t }\n//\t\t }\n//\n//\t\t\tSystem.out.println(count.get(h));\n// }\n//\t}\n//\n//}\n//\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\tList<Integer> x =new ArrayList<Integer>();\n\t\tString str=new String();\n\t\tint[] a = new int[26];\n\t\tString[] eng = {\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\"\n\t\t\t\t ,\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\"};\n\t\tdo{\n\t\t\tstr = scan.next();\n\t\t\tfor(int i=0;i<str.length() ;i++){\n\t\t\t\tfor(int j = 0 ; j < eng.length ;j++ ){\n\t\t\t\t\tif( eng[j].equalsIgnoreCase(String.valueOf(str.charAt(i)))){\n\t\t\t\t\t\ta[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}while(scan.hasNext());\n\n\n\t\t\n\t\tfor(int j = 0 ; j < eng.length ;j++ ){\n\t\t\tSystem.out.println(eng[j]+\" : \"+a[j]);\n\t\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n//\t\tList<Integer> x =new ArrayList<Integer>();\n\t\tString str=new String();\n\t\tint[] a = new int[26];\n\t\tString[] eng = {\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\"\n\t\t\t\t ,\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\"};\n\t\tdo{\n\t\t\tstr = scan.next();\n\t\t\tfor(int i=0;i<str.length() ;i++){\n\t\t\t\tfor(int j = 0 ; j < eng.length ;j++ ){\n\t\t\t\t\tif( eng[j].equalsIgnoreCase(String.valueOf(str.charAt(i)))){\n\t\t\t\t\t\ta[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}while(scan.hasNext());\n\n\n\t\t\n\t\tfor(int j = 0 ; j < eng.length ;j++ ){\n\t\t\tSystem.out.println(eng[j]+\" : \"+a[j]);\n\t\t\t}\n\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n//\t\tList<Integer> x =new ArrayList<Integer>();\n\t\tString str=new String();\n\t\tint[] a = new int[26];\n\t\tString[] eng = {\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\"\n\t\t\t\t ,\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\"};\n\t\tdo{\n\t\t\tstr = scan.next();\n\t\t\tfor(int i=0;i<str.length() ;i++){\n\t\t\t\tfor(int j = 0 ; j < eng.length ;j++ ){\n\t\t\t\t\tif( eng[j].equalsIgnoreCase(String.valueOf(str.charAt(i)))){\n\t\t\t\t\t\ta[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}while(scan.hasNext());\n\n\n\t\t\n\t\tfor(int j = 0 ; j < eng.length ;j++ ){\n\t\t\tSystem.out.println(eng[j]+\" : \"+a[j]);\n\t\t\t}\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String str=new String();",
"str",
"new String()",
"int[] a = new int[26];",
"a",
"new int[26]",
"26",
"String[] eng = {\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\"\n\t\t\t\t ,\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\"};",
"eng",
"{\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\"\n\t\t\t\t ,\"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\"",
"do{\n\t\t\tstr = scan.next();\n\t\t\tfor(int i=0;i<str.length() ;i++){\n\t\t\t\tfor(int j = 0 ; j < eng.length ;j++ ){\n\t\t\t\t\tif( eng[j].equalsIgnoreCase(String.valueOf(str.charAt(i)))){\n\t\t\t\t\t\ta[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}while(scan.hasNext());",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n\t\t\tstr = scan.next();\n\t\t\tfor(int i=0;i<str.length() ;i++){\n\t\t\t\tfor(int j = 0 ; j < eng.length ;j++ ){\n\t\t\t\t\tif( eng[j].equalsIgnoreCase(String.valueOf(str.charAt(i)))){\n\t\t\t\t\t\ta[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"str = scan.next()",
"str",
"scan.next()",
"scan.next",
"scan",
"for(int i=0;i<str.length() ;i++){\n\t\t\t\tfor(int j = 0 ; j < eng.length ;j++ ){\n\t\t\t\t\tif( eng[j].equalsIgnoreCase(String.valueOf(str.charAt(i)))){\n\t\t\t\t\t\ta[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\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\tfor(int j = 0 ; j < eng.length ;j++ ){\n\t\t\t\t\tif( eng[j].equalsIgnoreCase(String.valueOf(str.charAt(i)))){\n\t\t\t\t\t\ta[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}",
"{\n\t\t\t\tfor(int j = 0 ; j < eng.length ;j++ ){\n\t\t\t\t\tif( eng[j].equalsIgnoreCase(String.valueOf(str.charAt(i)))){\n\t\t\t\t\t\ta[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}",
"for(int j = 0 ; j < eng.length ;j++ ){\n\t\t\t\t\tif( eng[j].equalsIgnoreCase(String.valueOf(str.charAt(i)))){\n\t\t\t\t\t\ta[j]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"int j = 0 ;",
"int j = 0 ;",
"j",
"0",
"j < eng.length",
"j",
"eng.length",
"eng",
"eng.length",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tif( eng[j].equalsIgnoreCase(String.valueOf(str.charAt(i)))){\n\t\t\t\t\t\ta[j]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif( eng[j].equalsIgnoreCase(String.valueOf(str.charAt(i)))){\n\t\t\t\t\t\ta[j]++;\n\t\t\t\t\t}\n\t\t\t\t}",
"if( eng[j].equalsIgnoreCase(String.valueOf(str.charAt(i)))){\n\t\t\t\t\t\ta[j]++;\n\t\t\t\t\t}",
"eng[j].equalsIgnoreCase(String.valueOf(str.charAt(i)))",
"eng[j].equalsIgnoreCase",
"eng[j]",
"eng",
"j",
"String.valueOf(str.charAt(i))",
"String.valueOf",
"String",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"{\n\t\t\t\t\t\ta[j]++;\n\t\t\t\t\t}",
"a[j]++",
"a[j]",
"a",
"j",
"for(int j = 0 ; j < eng.length ;j++ ){\n\t\t\tSystem.out.println(eng[j]+\" : \"+a[j]);\n\t\t\t}",
"int j = 0 ;",
"int j = 0 ;",
"j",
"0",
"j < eng.length",
"j",
"eng.length",
"eng",
"eng.length",
"j++",
"j++",
"j",
"{\n\t\t\tSystem.out.println(eng[j]+\" : \"+a[j]);\n\t\t\t}",
"{\n\t\t\tSystem.out.println(eng[j]+\" : \"+a[j]);\n\t\t\t}",
"System.out.println(eng[j]+\" : \"+a[j])",
"System.out.println",
"System.out",
"System",
"System.out",
"eng[j]+\" : \"+a[j]",
"eng[j]+\" : \"+a[j]",
"eng[j]",
"eng",
"j",
"\" : \"",
"a[j]",
"a",
"j",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n//\t\tList<Integer> x =new ArrayList<Integer>();\n\t\tString str=new String();\n\t\tint[] a = new int[26];\n\t\tString[] eng = {\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\"\n\t\t\t\t ,\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\"};\n\t\tdo{\n\t\t\tstr = scan.next();\n\t\t\tfor(int i=0;i<str.length() ;i++){\n\t\t\t\tfor(int j = 0 ; j < eng.length ;j++ ){\n\t\t\t\t\tif( eng[j].equalsIgnoreCase(String.valueOf(str.charAt(i)))){\n\t\t\t\t\t\ta[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}while(scan.hasNext());\n\n\n\t\t\n\t\tfor(int j = 0 ; j < eng.length ;j++ ){\n\t\t\tSystem.out.println(eng[j]+\" : \"+a[j]);\n\t\t\t}\n\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n//\t\tList<Integer> x =new ArrayList<Integer>();\n\t\tString str=new String();\n\t\tint[] a = new int[26];\n\t\tString[] eng = {\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\"\n\t\t\t\t ,\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\"};\n\t\tdo{\n\t\t\tstr = scan.next();\n\t\t\tfor(int i=0;i<str.length() ;i++){\n\t\t\t\tfor(int j = 0 ; j < eng.length ;j++ ){\n\t\t\t\t\tif( eng[j].equalsIgnoreCase(String.valueOf(str.charAt(i)))){\n\t\t\t\t\t\ta[j]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}while(scan.hasNext());\n\n\n\t\t\n\t\tfor(int j = 0 ; j < eng.length ;j++ ){\n\t\t\tSystem.out.println(eng[j]+\" : \"+a[j]);\n\t\t\t}\n\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
// List<Integer> x =new ArrayList<Integer>();
String str=new String();
int[] a = new int[26];
String[] eng = {"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"};
do{
str = scan.next();
for(int i=0;i<str.length() ;i++){
for(int j = 0 ; j < eng.length ;j++ ){
if( eng[j].equalsIgnoreCase(String.valueOf(str.charAt(i)))){
a[j]++;
}
}
}
}while(scan.hasNext());
for(int j = 0 ; j < eng.length ;j++ ){
System.out.println(eng[j]+" : "+a[j]);
}
}
}
//
//import java.util.ArrayList;
//import java.util.List;
//import java.util.Scanner;
//
//public class Main {
// public static void main(String[] args) {
// Scanner scan = new Scanner(System.in);
// List<Integer> n = new ArrayList<Integer>();
// List<Integer> x = new ArrayList<Integer>();
// List<Integer> count = new ArrayList<Integer>();
//
// for(int i=0;;i++){
// n.add(i, scan.nextInt());
// x.add(i, scan.nextInt());
// count.add(i, 0);
// if(n.get(i)==0 && x.get(i)==0) break;
// }
//
//
//
// for(int h=0;;h++){
// if(n.get(h)==0 && x.get(h)==0) break;
// for(int i=1;i<=n.get(h);i++){
// for(int j=i;j<=n.get(h);j++){
// if(i==j)continue;
// for(int k=j;k <= n.get(h);k++){
// if(i==k || j==k)continue;
// if(i+j+k == x.get(h)) count.set(h, count.get(h)+1 );
// }
// }
// }
//
// System.out.println(count.get(h));
// }
// }
//
//}
//
// |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
28,
13,
13,
30,
30,
0,
13,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
28,
13,
13,
30,
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,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
85,
5
],
[
85,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
16,
19
],
[
20,
20
],
[
20,
21
],
[
21,
22
],
[
21,
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
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
28,
44
],
[
44,
45
],
[
44,
46
],
[
44,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
74,
74
],
[
74,
75
],
[
74,
76
],
[
74,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
6,
82
],
[
82,
83
],
[
0,
84
],
[
84,
85
],
[
84,
86
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n \n int[] count=new int['z'];\n for(int i:count){\n i=0;\n }\n while(sc.hasNext()){\n \n String s=sc.next();\n s=s.toLowerCase();\n char[] c=s.toCharArray();\n \n \n for(char a:c){\n \n count[a-1]++;\n }\n }\n \n for(int i='a';i<='z';i++){\n \n System.out.println((char) i+\" : \"+count[i-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 \n int[] count=new int['z'];\n for(int i:count){\n i=0;\n }\n while(sc.hasNext()){\n \n String s=sc.next();\n s=s.toLowerCase();\n char[] c=s.toCharArray();\n \n \n for(char a:c){\n \n count[a-1]++;\n }\n }\n \n for(int i='a';i<='z';i++){\n \n System.out.println((char) i+\" : \"+count[i-1]);\n }\n \n \n \n \n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n \n int[] count=new int['z'];\n for(int i:count){\n i=0;\n }\n while(sc.hasNext()){\n \n String s=sc.next();\n s=s.toLowerCase();\n char[] c=s.toCharArray();\n \n \n for(char a:c){\n \n count[a-1]++;\n }\n }\n \n for(int i='a';i<='z';i++){\n \n System.out.println((char) i+\" : \"+count[i-1]);\n }\n \n \n \n \n }",
"main",
"{\n Scanner sc= new Scanner(System.in);\n \n int[] count=new int['z'];\n for(int i:count){\n i=0;\n }\n while(sc.hasNext()){\n \n String s=sc.next();\n s=s.toLowerCase();\n char[] c=s.toCharArray();\n \n \n for(char a:c){\n \n count[a-1]++;\n }\n }\n \n for(int i='a';i<='z';i++){\n \n System.out.println((char) i+\" : \"+count[i-1]);\n }\n \n \n \n \n }",
"Scanner sc= new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] count=new int['z'];",
"count",
"new int['z']",
"'z'",
"for(int i:count){\n i=0;\n }",
"int i",
"count",
"{\n i=0;\n }",
"{\n i=0;\n }",
"i=0",
"i",
"0",
"while(sc.hasNext()){\n \n String s=sc.next();\n s=s.toLowerCase();\n char[] c=s.toCharArray();\n \n \n for(char a:c){\n \n count[a-1]++;\n }\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n \n String s=sc.next();\n s=s.toLowerCase();\n char[] c=s.toCharArray();\n \n \n for(char a:c){\n \n count[a-1]++;\n }\n }",
"String s=sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"s=s.toLowerCase()",
"s",
"s.toLowerCase()",
"s.toLowerCase",
"s",
"char[] c=s.toCharArray();",
"c",
"s.toCharArray()",
"s.toCharArray",
"s",
"for(char a:c){\n \n count[a-1]++;\n }",
"char a",
"c",
"{\n \n count[a-1]++;\n }",
"{\n \n count[a-1]++;\n }",
"count[a-1]++",
"count[a-1]",
"count",
"a-1",
"a",
"1",
"for(int i='a';i<='z';i++){\n \n System.out.println((char) i+\" : \"+count[i-1]);\n }",
"int i='a';",
"int i='a';",
"i",
"'a'",
"i<='z'",
"i",
"'z'",
"i++",
"i++",
"i",
"{\n \n System.out.println((char) i+\" : \"+count[i-1]);\n }",
"{\n \n System.out.println((char) i+\" : \"+count[i-1]);\n }",
"System.out.println((char) i+\" : \"+count[i-1])",
"System.out.println",
"System.out",
"System",
"System.out",
"(char) i+\" : \"+count[i-1]",
"(char) i+\" : \"+count[i-1]",
"(char) i",
"\" : \"",
"count[i-1]",
"count",
"i-1",
"i",
"1",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n \n int[] count=new int['z'];\n for(int i:count){\n i=0;\n }\n while(sc.hasNext()){\n \n String s=sc.next();\n s=s.toLowerCase();\n char[] c=s.toCharArray();\n \n \n for(char a:c){\n \n count[a-1]++;\n }\n }\n \n for(int i='a';i<='z';i++){\n \n System.out.println((char) i+\" : \"+count[i-1]);\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 \n int[] count=new int['z'];\n for(int i:count){\n i=0;\n }\n while(sc.hasNext()){\n \n String s=sc.next();\n s=s.toLowerCase();\n char[] c=s.toCharArray();\n \n \n for(char a:c){\n \n count[a-1]++;\n }\n }\n \n for(int i='a';i<='z';i++){\n \n System.out.println((char) i+\" : \"+count[i-1]);\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);
int[] count=new int['z'];
for(int i:count){
i=0;
}
while(sc.hasNext()){
String s=sc.next();
s=s.toLowerCase();
char[] c=s.toCharArray();
for(char a:c){
count[a-1]++;
}
}
for(int i='a';i<='z';i++){
System.out.println((char) i+" : "+count[i-1]);
}
}
}
|
[
7,
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,
0,
18,
13,
13,
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,
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,
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
],
[
113,
5
],
[
113,
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
],
[
16,
24
],
[
24,
25
],
[
25,
26
],
[
16,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
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
],
[
37,
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
],
[
65,
68
],
[
62,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
8,
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
],
[
102,
102
],
[
102,
103
],
[
102,
104
],
[
102,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
107,
109
],
[
6,
110
],
[
110,
111
],
[
0,
112
],
[
112,
113
],
[
112,
114
]
]
| [
"import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int result[] = new int[26];\n for(int i = 0 ; i < 26 ; i++)\n result[i] = 0;\n while(sc.hasNext())\n {\n String str = sc.next();\n str = str.toLowerCase();\n for(int i = 0 ; i < str.length() ; i++)\n {\n char c = str.charAt(i);\n if(c >= 'a' && c <= 'z')\n result[c - 'a']++;\n }\n }\n for(char ch = 'a' ; ch <= 'z' ; ch++)\n {\n System.out.println(ch + \" : \" + result[ch - 'a']);\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 result[] = new int[26];\n for(int i = 0 ; i < 26 ; i++)\n result[i] = 0;\n while(sc.hasNext())\n {\n String str = sc.next();\n str = str.toLowerCase();\n for(int i = 0 ; i < str.length() ; i++)\n {\n char c = str.charAt(i);\n if(c >= 'a' && c <= 'z')\n result[c - 'a']++;\n }\n }\n for(char ch = 'a' ; ch <= 'z' ; ch++)\n {\n System.out.println(ch + \" : \" + result[ch - 'a']);\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int result[] = new int[26];\n for(int i = 0 ; i < 26 ; i++)\n result[i] = 0;\n while(sc.hasNext())\n {\n String str = sc.next();\n str = str.toLowerCase();\n for(int i = 0 ; i < str.length() ; i++)\n {\n char c = str.charAt(i);\n if(c >= 'a' && c <= 'z')\n result[c - 'a']++;\n }\n }\n for(char ch = 'a' ; ch <= 'z' ; ch++)\n {\n System.out.println(ch + \" : \" + result[ch - 'a']);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int result[] = new int[26];\n for(int i = 0 ; i < 26 ; i++)\n result[i] = 0;\n while(sc.hasNext())\n {\n String str = sc.next();\n str = str.toLowerCase();\n for(int i = 0 ; i < str.length() ; i++)\n {\n char c = str.charAt(i);\n if(c >= 'a' && c <= 'z')\n result[c - 'a']++;\n }\n }\n for(char ch = 'a' ; ch <= 'z' ; ch++)\n {\n System.out.println(ch + \" : \" + result[ch - 'a']);\n }\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 < 26 ; i++)\n result[i] = 0;",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"result[i] = 0;",
"result[i] = 0",
"result[i]",
"result",
"i",
"0",
"while(sc.hasNext())\n {\n String str = sc.next();\n str = str.toLowerCase();\n for(int i = 0 ; i < str.length() ; i++)\n {\n char c = str.charAt(i);\n if(c >= 'a' && c <= 'z')\n result[c - 'a']++;\n }\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n String str = sc.next();\n str = str.toLowerCase();\n for(int i = 0 ; i < str.length() ; i++)\n {\n char c = str.charAt(i);\n if(c >= 'a' && c <= 'z')\n result[c - 'a']++;\n }\n }",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"str = str.toLowerCase()",
"str",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"for(int i = 0 ; i < str.length() ; i++)\n {\n char c = str.charAt(i);\n if(c >= 'a' && c <= 'z')\n result[c - 'a']++;\n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n char c = str.charAt(i);\n if(c >= 'a' && c <= 'z')\n result[c - 'a']++;\n }",
"{\n char c = str.charAt(i);\n if(c >= 'a' && c <= 'z')\n result[c - 'a']++;\n }",
"char c = str.charAt(i);",
"c",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"if(c >= 'a' && c <= 'z')\n result[c - 'a']++;",
"c >= 'a' && c <= 'z'",
"c >= 'a'",
"c",
"'a'",
"c <= 'z'",
"c",
"'z'",
"result[c - 'a']++",
"result[c - 'a']",
"result",
"c - 'a'",
"c",
"'a'",
"for(char ch = 'a' ; ch <= 'z' ; ch++)\n {\n System.out.println(ch + \" : \" + result[ch - 'a']);\n }",
"char ch = 'a' ;",
"char ch = 'a' ;",
"ch",
"'a'",
"ch <= 'z'",
"ch",
"'z'",
"ch++",
"ch++",
"ch",
"{\n System.out.println(ch + \" : \" + result[ch - 'a']);\n }",
"{\n System.out.println(ch + \" : \" + result[ch - 'a']);\n }",
"System.out.println(ch + \" : \" + result[ch - 'a'])",
"System.out.println",
"System.out",
"System",
"System.out",
"ch + \" : \" + result[ch - 'a']",
"ch + \" : \" + result[ch - 'a']",
"ch",
"\" : \"",
"result[ch - 'a']",
"result",
"ch - 'a'",
"ch",
"'a'",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int result[] = new int[26];\n for(int i = 0 ; i < 26 ; i++)\n result[i] = 0;\n while(sc.hasNext())\n {\n String str = sc.next();\n str = str.toLowerCase();\n for(int i = 0 ; i < str.length() ; i++)\n {\n char c = str.charAt(i);\n if(c >= 'a' && c <= 'z')\n result[c - 'a']++;\n }\n }\n for(char ch = 'a' ; ch <= 'z' ; ch++)\n {\n System.out.println(ch + \" : \" + result[ch - 'a']);\n }\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int result[] = new int[26];\n for(int i = 0 ; i < 26 ; i++)\n result[i] = 0;\n while(sc.hasNext())\n {\n String str = sc.next();\n str = str.toLowerCase();\n for(int i = 0 ; i < str.length() ; i++)\n {\n char c = str.charAt(i);\n if(c >= 'a' && c <= 'z')\n result[c - 'a']++;\n }\n }\n for(char ch = 'a' ; ch <= 'z' ; ch++)\n {\n System.out.println(ch + \" : \" + result[ch - '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 result[] = new int[26];
for(int i = 0 ; i < 26 ; i++)
result[i] = 0;
while(sc.hasNext())
{
String str = sc.next();
str = str.toLowerCase();
for(int i = 0 ; i < str.length() ; i++)
{
char c = str.charAt(i);
if(c >= 'a' && c <= 'z')
result[c - 'a']++;
}
}
for(char ch = 'a' ; ch <= 'z' ; ch++)
{
System.out.println(ch + " : " + result[ch - 'a']);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
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,
41,
13,
4,
18,
13,
41,
13,
20,
42,
2,
13,
17,
30,
4,
18,
13,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
4,
18,
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,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
2,
2,
18,
13,
13,
17,
13,
4,
18,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
19,
21
],
[
19,
22
],
[
19,
23
],
[
19,
24
],
[
19,
25
],
[
19,
26
],
[
19,
27
],
[
19,
28
],
[
19,
29
],
[
19,
30
],
[
19,
31
],
[
19,
32
],
[
19,
33
],
[
19,
34
],
[
19,
35
],
[
19,
36
],
[
19,
37
],
[
19,
38
],
[
19,
39
],
[
19,
40
],
[
19,
41
],
[
19,
42
],
[
19,
43
],
[
19,
44
],
[
19,
45
],
[
14,
46
],
[
46,
47
],
[
46,
48
],
[
14,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
14,
54
],
[
54,
55
],
[
54,
56
],
[
14,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
14,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
14,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
80,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
96,
97
],
[
96,
98
],
[
96,
99
],
[
100,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
104,
106
],
[
101,
107
],
[
107,
108
],
[
108,
109
],
[
92,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
116,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
116,
121
],
[
14,
122
],
[
122,
123
],
[
123,
124
],
[
12,
125
],
[
125,
126
]
]
| [
"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\tchar[] line;\n\t\tchar[] alphabets = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',\n\t\t\t\t's', 't', 'u', 'v', 'w', 'x', 'y', 'z' };\n\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString s = stdIn.readLine();\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (s != null) {\n\t\t\tsb.append(s);\n\t\t\ts = stdIn.readLine();\n\t\t}\n\t\tline = sb.toString().toLowerCase().toCharArray();\n\t\t\n\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tint count = 0;\n\n\t\t\tfor (char c : line) {\n\t\t\t\tif (c == alphabets[i]) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(alphabets[i] + \" : \" + count);\n\t\t}\n\t\tstdIn.close();\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\tchar[] line;\n\t\tchar[] alphabets = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',\n\t\t\t\t's', 't', 'u', 'v', 'w', 'x', 'y', 'z' };\n\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString s = stdIn.readLine();\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (s != null) {\n\t\t\tsb.append(s);\n\t\t\ts = stdIn.readLine();\n\t\t}\n\t\tline = sb.toString().toLowerCase().toCharArray();\n\t\t\n\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tint count = 0;\n\n\t\t\tfor (char c : line) {\n\t\t\t\tif (c == alphabets[i]) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(alphabets[i] + \" : \" + count);\n\t\t}\n\t\tstdIn.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n\t\tchar[] line;\n\t\tchar[] alphabets = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',\n\t\t\t\t's', 't', 'u', 'v', 'w', 'x', 'y', 'z' };\n\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString s = stdIn.readLine();\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (s != null) {\n\t\t\tsb.append(s);\n\t\t\ts = stdIn.readLine();\n\t\t}\n\t\tline = sb.toString().toLowerCase().toCharArray();\n\t\t\n\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tint count = 0;\n\n\t\t\tfor (char c : line) {\n\t\t\t\tif (c == alphabets[i]) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(alphabets[i] + \" : \" + count);\n\t\t}\n\t\tstdIn.close();\n\t}",
"main",
"{\n\n\t\tchar[] line;\n\t\tchar[] alphabets = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',\n\t\t\t\t's', 't', 'u', 'v', 'w', 'x', 'y', 'z' };\n\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString s = stdIn.readLine();\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (s != null) {\n\t\t\tsb.append(s);\n\t\t\ts = stdIn.readLine();\n\t\t}\n\t\tline = sb.toString().toLowerCase().toCharArray();\n\t\t\n\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tint count = 0;\n\n\t\t\tfor (char c : line) {\n\t\t\t\tif (c == alphabets[i]) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(alphabets[i] + \" : \" + count);\n\t\t}\n\t\tstdIn.close();\n\t}",
"char[] line;",
"line",
"char[] alphabets = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',\n\t\t\t\t's', 't', 'u', 'v', 'w', 'x', 'y', 'z' };",
"alphabets",
"{ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',\n\t\t\t\t'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'",
"BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));",
"stdIn",
"new BufferedReader(new InputStreamReader(System.in))",
"String s = stdIn.readLine();",
"s",
"stdIn.readLine()",
"stdIn.readLine",
"stdIn",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"while (s != null) {\n\t\t\tsb.append(s);\n\t\t\ts = stdIn.readLine();\n\t\t}",
"s != null",
"s",
"null",
"{\n\t\t\tsb.append(s);\n\t\t\ts = stdIn.readLine();\n\t\t}",
"sb.append(s)",
"sb.append",
"sb",
"s",
"s = stdIn.readLine()",
"s",
"stdIn.readLine()",
"stdIn.readLine",
"stdIn",
"line = sb.toString().toLowerCase().toCharArray()",
"line",
"sb.toString().toLowerCase().toCharArray()",
"sb.toString().toLowerCase().toCharArray",
"sb.toString().toLowerCase()",
"sb.toString().toLowerCase",
"sb.toString()",
"sb.toString",
"sb",
"for (int i = 0; i < 26; i++) {\n\t\t\tint count = 0;\n\n\t\t\tfor (char c : line) {\n\t\t\t\tif (c == alphabets[i]) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(alphabets[i] + \" : \" + count);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tint count = 0;\n\n\t\t\tfor (char c : line) {\n\t\t\t\tif (c == alphabets[i]) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(alphabets[i] + \" : \" + count);\n\t\t}",
"{\n\t\t\tint count = 0;\n\n\t\t\tfor (char c : line) {\n\t\t\t\tif (c == alphabets[i]) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(alphabets[i] + \" : \" + count);\n\t\t}",
"int count = 0;",
"count",
"0",
"for (char c : line) {\n\t\t\t\tif (c == alphabets[i]) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}",
"char c",
"line",
"{\n\t\t\t\tif (c == alphabets[i]) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif (c == alphabets[i]) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}",
"if (c == alphabets[i]) {\n\t\t\t\t\tcount++;\n\t\t\t\t}",
"c == alphabets[i]",
"c",
"alphabets[i]",
"alphabets",
"i",
"{\n\t\t\t\t\tcount++;\n\t\t\t\t}",
"count++",
"count",
"System.out.println(alphabets[i] + \" : \" + count)",
"System.out.println",
"System.out",
"System",
"System.out",
"alphabets[i] + \" : \" + count",
"alphabets[i] + \" : \" + count",
"alphabets[i]",
"alphabets",
"i",
"\" : \"",
"count",
"stdIn.close()",
"stdIn.close",
"stdIn",
"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 {
char[] line;
char[] alphabets = { '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' };
BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
String s = stdIn.readLine();
StringBuilder sb = new StringBuilder();
while (s != null) {
sb.append(s);
s = stdIn.readLine();
}
line = sb.toString().toLowerCase().toCharArray();
for (int i = 0; i < 26; i++) {
int count = 0;
for (char c : line) {
if (c == alphabets[i]) {
count++;
}
}
System.out.println(alphabets[i] + " : " + count);
}
stdIn.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
17,
41,
13,
0,
13,
20,
17,
41,
13,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
41,
13,
4,
18,
13,
14,
2,
13,
17,
3,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
28,
13,
13,
30,
30,
41,
13,
13,
0,
13,
13,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
40,
18,
13,
2,
13,
17,
14,
2,
13,
17,
3,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
2,
13,
17,
41,
13,
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
],
[
132,
5
],
[
132,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[
12,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
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
],
[
36,
39
],
[
35,
40
],
[
29,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
29,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
29,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
29,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
29,
61
],
[
61,
62
],
[
61,
63
],
[
61,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
65,
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
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
88,
90
],
[
29,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
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
],
[
109,
111
],
[
111,
112
],
[
111,
113
],
[
108,
114
],
[
114,
115
],
[
114,
116
],
[
108,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
123,
123
],
[
123,
124
],
[
123,
125
],
[
123,
126
],
[
126,
127
],
[
126,
128
],
[
6,
129
],
[
129,
130
],
[
0,
131
],
[
131,
132
],
[
131,
133
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t\n\t\t// ??\\???\n\t\tScanner scan = new Scanner(System.in);\n\t\tscan.useDelimiter(\"\\\\r\\\\n\");\n\t\t\n\t\t// ??????\n\t\tint count[];\n\t\tcount = new int[26];\n\t\tint x = 0;\n\t\twhile(scan.hasNext()) {\n\t\t\tString S = scan.nextLine();\n\t\t\tif(S.equals (\"\")) break;\n\t\t\t// ???????????????\n\t\t\tint sl = S.length();\n\t\t\tif(sl == 0000) break;\n\t\t\t// ?°???????????????????\n\t\t\tString s = S.toLowerCase();\n\t\t\t// 1????????\\???char??????????´?\n\t\t\tchar[] charArray = s.toCharArray();\n\t\t\tfor (char ch : charArray) {\n\t\t\t\tint CH = ch;\n\t\t\t\tx = CH;\n\t\t\t\t// a-z?????°??????\n\t\t\t\tif(((CH-97)>=0) && ((CH-97)<26)){\n\t\t\t\t\tcount[CH-97]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(x == 0000) break;\n\t\t}\n\t\t// ??????\n\t\tfor (int i=0; i<26; i++) {\n\t\t\tint cords = i + 97;\n\t\t\tchar c = (char)cords;\n\t\t\tSystem.out.println(c + \" : \" + count[i]);\n\t\t}\n\n\t\t\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t\n\t\t// ??\\???\n\t\tScanner scan = new Scanner(System.in);\n\t\tscan.useDelimiter(\"\\\\r\\\\n\");\n\t\t\n\t\t// ??????\n\t\tint count[];\n\t\tcount = new int[26];\n\t\tint x = 0;\n\t\twhile(scan.hasNext()) {\n\t\t\tString S = scan.nextLine();\n\t\t\tif(S.equals (\"\")) break;\n\t\t\t// ???????????????\n\t\t\tint sl = S.length();\n\t\t\tif(sl == 0000) break;\n\t\t\t// ?°???????????????????\n\t\t\tString s = S.toLowerCase();\n\t\t\t// 1????????\\???char??????????´?\n\t\t\tchar[] charArray = s.toCharArray();\n\t\t\tfor (char ch : charArray) {\n\t\t\t\tint CH = ch;\n\t\t\t\tx = CH;\n\t\t\t\t// a-z?????°??????\n\t\t\t\tif(((CH-97)>=0) && ((CH-97)<26)){\n\t\t\t\t\tcount[CH-97]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(x == 0000) break;\n\t\t}\n\t\t// ??????\n\t\tfor (int i=0; i<26; i++) {\n\t\t\tint cords = i + 97;\n\t\t\tchar c = (char)cords;\n\t\t\tSystem.out.println(c + \" : \" + count[i]);\n\t\t}\n\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t\n\t\t// ??\\???\n\t\tScanner scan = new Scanner(System.in);\n\t\tscan.useDelimiter(\"\\\\r\\\\n\");\n\t\t\n\t\t// ??????\n\t\tint count[];\n\t\tcount = new int[26];\n\t\tint x = 0;\n\t\twhile(scan.hasNext()) {\n\t\t\tString S = scan.nextLine();\n\t\t\tif(S.equals (\"\")) break;\n\t\t\t// ???????????????\n\t\t\tint sl = S.length();\n\t\t\tif(sl == 0000) break;\n\t\t\t// ?°???????????????????\n\t\t\tString s = S.toLowerCase();\n\t\t\t// 1????????\\???char??????????´?\n\t\t\tchar[] charArray = s.toCharArray();\n\t\t\tfor (char ch : charArray) {\n\t\t\t\tint CH = ch;\n\t\t\t\tx = CH;\n\t\t\t\t// a-z?????°??????\n\t\t\t\tif(((CH-97)>=0) && ((CH-97)<26)){\n\t\t\t\t\tcount[CH-97]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(x == 0000) break;\n\t\t}\n\t\t// ??????\n\t\tfor (int i=0; i<26; i++) {\n\t\t\tint cords = i + 97;\n\t\t\tchar c = (char)cords;\n\t\t\tSystem.out.println(c + \" : \" + count[i]);\n\t\t}\n\n\t\t\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t\n\t\t// ??\\???\n\t\tScanner scan = new Scanner(System.in);\n\t\tscan.useDelimiter(\"\\\\r\\\\n\");\n\t\t\n\t\t// ??????\n\t\tint count[];\n\t\tcount = new int[26];\n\t\tint x = 0;\n\t\twhile(scan.hasNext()) {\n\t\t\tString S = scan.nextLine();\n\t\t\tif(S.equals (\"\")) break;\n\t\t\t// ???????????????\n\t\t\tint sl = S.length();\n\t\t\tif(sl == 0000) break;\n\t\t\t// ?°???????????????????\n\t\t\tString s = S.toLowerCase();\n\t\t\t// 1????????\\???char??????????´?\n\t\t\tchar[] charArray = s.toCharArray();\n\t\t\tfor (char ch : charArray) {\n\t\t\t\tint CH = ch;\n\t\t\t\tx = CH;\n\t\t\t\t// a-z?????°??????\n\t\t\t\tif(((CH-97)>=0) && ((CH-97)<26)){\n\t\t\t\t\tcount[CH-97]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(x == 0000) break;\n\t\t}\n\t\t// ??????\n\t\tfor (int i=0; i<26; i++) {\n\t\t\tint cords = i + 97;\n\t\t\tchar c = (char)cords;\n\t\t\tSystem.out.println(c + \" : \" + count[i]);\n\t\t}\n\n\t\t\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"scan.useDelimiter(\"\\\\r\\\\n\")",
"scan.useDelimiter",
"scan",
"\"\\\\r\\\\n\"",
"int count[];",
"count",
"count = new int[26]",
"count",
"new int[26]",
"26",
"int x = 0;",
"x",
"0",
"while(scan.hasNext()) {\n\t\t\tString S = scan.nextLine();\n\t\t\tif(S.equals (\"\")) break;\n\t\t\t// ???????????????\n\t\t\tint sl = S.length();\n\t\t\tif(sl == 0000) break;\n\t\t\t// ?°???????????????????\n\t\t\tString s = S.toLowerCase();\n\t\t\t// 1????????\\???char??????????´?\n\t\t\tchar[] charArray = s.toCharArray();\n\t\t\tfor (char ch : charArray) {\n\t\t\t\tint CH = ch;\n\t\t\t\tx = CH;\n\t\t\t\t// a-z?????°??????\n\t\t\t\tif(((CH-97)>=0) && ((CH-97)<26)){\n\t\t\t\t\tcount[CH-97]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(x == 0000) break;\n\t\t}",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n\t\t\tString S = scan.nextLine();\n\t\t\tif(S.equals (\"\")) break;\n\t\t\t// ???????????????\n\t\t\tint sl = S.length();\n\t\t\tif(sl == 0000) break;\n\t\t\t// ?°???????????????????\n\t\t\tString s = S.toLowerCase();\n\t\t\t// 1????????\\???char??????????´?\n\t\t\tchar[] charArray = s.toCharArray();\n\t\t\tfor (char ch : charArray) {\n\t\t\t\tint CH = ch;\n\t\t\t\tx = CH;\n\t\t\t\t// a-z?????°??????\n\t\t\t\tif(((CH-97)>=0) && ((CH-97)<26)){\n\t\t\t\t\tcount[CH-97]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(x == 0000) break;\n\t\t}",
"String S = scan.nextLine();",
"S",
"scan.nextLine()",
"scan.nextLine",
"scan",
"if(S.equals (\"\")) break;",
"S.equals (\"\")",
"S.equals",
"S",
"\"\"",
"break;",
"int sl = S.length();",
"sl",
"S.length()",
"S.length",
"S",
"if(sl == 0000) break;",
"sl == 0000",
"sl",
"0000",
"break;",
"String s = S.toLowerCase();",
"s",
"S.toLowerCase()",
"S.toLowerCase",
"S",
"char[] charArray = s.toCharArray();",
"charArray",
"s.toCharArray()",
"s.toCharArray",
"s",
"for (char ch : charArray) {\n\t\t\t\tint CH = ch;\n\t\t\t\tx = CH;\n\t\t\t\t// a-z?????°??????\n\t\t\t\tif(((CH-97)>=0) && ((CH-97)<26)){\n\t\t\t\t\tcount[CH-97]++;\n\t\t\t\t}\n\t\t\t}",
"char ch",
"charArray",
"{\n\t\t\t\tint CH = ch;\n\t\t\t\tx = CH;\n\t\t\t\t// a-z?????°??????\n\t\t\t\tif(((CH-97)>=0) && ((CH-97)<26)){\n\t\t\t\t\tcount[CH-97]++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tint CH = ch;\n\t\t\t\tx = CH;\n\t\t\t\t// a-z?????°??????\n\t\t\t\tif(((CH-97)>=0) && ((CH-97)<26)){\n\t\t\t\t\tcount[CH-97]++;\n\t\t\t\t}\n\t\t\t}",
"int CH = ch;",
"CH",
"ch",
"x = CH",
"x",
"CH",
"if(((CH-97)>=0) && ((CH-97)<26)){\n\t\t\t\t\tcount[CH-97]++;\n\t\t\t\t}",
"((CH-97)>=0) && ((CH-97)<26)",
"((CH-97)>=0)",
"(CH-97)",
"CH",
"97",
"0",
"((CH-97)<26)",
"(CH-97)",
"CH",
"97",
"26",
"{\n\t\t\t\t\tcount[CH-97]++;\n\t\t\t\t}",
"count[CH-97]++",
"count[CH-97]",
"count",
"CH-97",
"CH",
"97",
"if(x == 0000) break;",
"x == 0000",
"x",
"0000",
"break;",
"for (int i=0; i<26; i++) {\n\t\t\tint cords = i + 97;\n\t\t\tchar c = (char)cords;\n\t\t\tSystem.out.println(c + \" : \" + count[i]);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<26",
"i",
"26",
"i++",
"i++",
"i",
"{\n\t\t\tint cords = i + 97;\n\t\t\tchar c = (char)cords;\n\t\t\tSystem.out.println(c + \" : \" + count[i]);\n\t\t}",
"{\n\t\t\tint cords = i + 97;\n\t\t\tchar c = (char)cords;\n\t\t\tSystem.out.println(c + \" : \" + count[i]);\n\t\t}",
"int cords = i + 97;",
"cords",
"i + 97",
"i",
"97",
"char c = (char)cords;",
"c",
"(char)cords",
"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",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t\n\t\t// ??\\???\n\t\tScanner scan = new Scanner(System.in);\n\t\tscan.useDelimiter(\"\\\\r\\\\n\");\n\t\t\n\t\t// ??????\n\t\tint count[];\n\t\tcount = new int[26];\n\t\tint x = 0;\n\t\twhile(scan.hasNext()) {\n\t\t\tString S = scan.nextLine();\n\t\t\tif(S.equals (\"\")) break;\n\t\t\t// ???????????????\n\t\t\tint sl = S.length();\n\t\t\tif(sl == 0000) break;\n\t\t\t// ?°???????????????????\n\t\t\tString s = S.toLowerCase();\n\t\t\t// 1????????\\???char??????????´?\n\t\t\tchar[] charArray = s.toCharArray();\n\t\t\tfor (char ch : charArray) {\n\t\t\t\tint CH = ch;\n\t\t\t\tx = CH;\n\t\t\t\t// a-z?????°??????\n\t\t\t\tif(((CH-97)>=0) && ((CH-97)<26)){\n\t\t\t\t\tcount[CH-97]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(x == 0000) break;\n\t\t}\n\t\t// ??????\n\t\tfor (int i=0; i<26; i++) {\n\t\t\tint cords = i + 97;\n\t\t\tchar c = (char)cords;\n\t\t\tSystem.out.println(c + \" : \" + count[i]);\n\t\t}\n\n\t\t\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\t\n\t\t// ??\\???\n\t\tScanner scan = new Scanner(System.in);\n\t\tscan.useDelimiter(\"\\\\r\\\\n\");\n\t\t\n\t\t// ??????\n\t\tint count[];\n\t\tcount = new int[26];\n\t\tint x = 0;\n\t\twhile(scan.hasNext()) {\n\t\t\tString S = scan.nextLine();\n\t\t\tif(S.equals (\"\")) break;\n\t\t\t// ???????????????\n\t\t\tint sl = S.length();\n\t\t\tif(sl == 0000) break;\n\t\t\t// ?°???????????????????\n\t\t\tString s = S.toLowerCase();\n\t\t\t// 1????????\\???char??????????´?\n\t\t\tchar[] charArray = s.toCharArray();\n\t\t\tfor (char ch : charArray) {\n\t\t\t\tint CH = ch;\n\t\t\t\tx = CH;\n\t\t\t\t// a-z?????°??????\n\t\t\t\tif(((CH-97)>=0) && ((CH-97)<26)){\n\t\t\t\t\tcount[CH-97]++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(x == 0000) break;\n\t\t}\n\t\t// ??????\n\t\tfor (int i=0; i<26; i++) {\n\t\t\tint cords = i + 97;\n\t\t\tchar c = (char)cords;\n\t\t\tSystem.out.println(c + \" : \" + count[i]);\n\t\t}\n\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);
scan.useDelimiter("\\r\\n");
// ??????
int count[];
count = new int[26];
int x = 0;
while(scan.hasNext()) {
String S = scan.nextLine();
if(S.equals ("")) break;
// ???????????????
int sl = S.length();
if(sl == 0000) break;
// ?°???????????????????
String s = S.toLowerCase();
// 1????????\???char??????????´?
char[] charArray = s.toCharArray();
for (char ch : charArray) {
int CH = ch;
x = CH;
// a-z?????°??????
if(((CH-97)>=0) && ((CH-97)<26)){
count[CH-97]++;
}
}
if(x == 0000) break;
}
// ??????
for (int i=0; i<26; i++) {
int cords = i + 97;
char c = (char)cords;
System.out.println(c + " : " + count[i]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
11,
1,
4,
18,
13,
30,
30,
0,
13,
4,
18,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
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,
30,
40,
18,
13,
13,
3,
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
],
[
137,
5
],
[
137,
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
],
[
15,
20
],
[
21,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
31,
41
],
[
41,
42
],
[
42,
43
],
[
31,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
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
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
65,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
72,
82
],
[
82,
83
],
[
83,
84
],
[
72,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
91,
93
],
[
88,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
96,
98
],
[
87,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
8,
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
],
[
120,
125
],
[
126,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
6,
134
],
[
134,
135
],
[
0,
136
],
[
136,
137
],
[
136,
138
]
]
| [
"import java.util.Scanner;\n\npublic class Main \n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tString in = new String();\n\t\tfor(;scanner.hasNext();)\n\t\t{\n\t\t\tin += scanner.nextLine();\n\t\t}\n\t\t\n\t\tint[] cnt = new int[26];\n\t\tfor(int i=0; i<cnt.length; i++)\n\t\t{\n\t\t\tcnt[0] = 0;\n\t\t}\n\t\t\n\t\tfor(int i=0; i<in.length(); i++)\n\t\t{\n\t\t\tchar c = in.charAt(i);\n\t\t\tfor(int j=0; j<cnt.length; j++)\n\t\t\t{\n\t\t\t\tif(c=='a'+j || c=='A'+j)\n\t\t\t\t{\n\t\t\t\t\tcnt[j]++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0; i<cnt.length; i++)\n\t\t{\n\t\t\tSystem.out.println((char)('a'+i) + \" : \" + cnt[i]);\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{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tString in = new String();\n\t\tfor(;scanner.hasNext();)\n\t\t{\n\t\t\tin += scanner.nextLine();\n\t\t}\n\t\t\n\t\tint[] cnt = new int[26];\n\t\tfor(int i=0; i<cnt.length; i++)\n\t\t{\n\t\t\tcnt[0] = 0;\n\t\t}\n\t\t\n\t\tfor(int i=0; i<in.length(); i++)\n\t\t{\n\t\t\tchar c = in.charAt(i);\n\t\t\tfor(int j=0; j<cnt.length; j++)\n\t\t\t{\n\t\t\t\tif(c=='a'+j || c=='A'+j)\n\t\t\t\t{\n\t\t\t\t\tcnt[j]++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0; i<cnt.length; i++)\n\t\t{\n\t\t\tSystem.out.println((char)('a'+i) + \" : \" + cnt[i]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tString in = new String();\n\t\tfor(;scanner.hasNext();)\n\t\t{\n\t\t\tin += scanner.nextLine();\n\t\t}\n\t\t\n\t\tint[] cnt = new int[26];\n\t\tfor(int i=0; i<cnt.length; i++)\n\t\t{\n\t\t\tcnt[0] = 0;\n\t\t}\n\t\t\n\t\tfor(int i=0; i<in.length(); i++)\n\t\t{\n\t\t\tchar c = in.charAt(i);\n\t\t\tfor(int j=0; j<cnt.length; j++)\n\t\t\t{\n\t\t\t\tif(c=='a'+j || c=='A'+j)\n\t\t\t\t{\n\t\t\t\t\tcnt[j]++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0; i<cnt.length; i++)\n\t\t{\n\t\t\tSystem.out.println((char)('a'+i) + \" : \" + cnt[i]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tString in = new String();\n\t\tfor(;scanner.hasNext();)\n\t\t{\n\t\t\tin += scanner.nextLine();\n\t\t}\n\t\t\n\t\tint[] cnt = new int[26];\n\t\tfor(int i=0; i<cnt.length; i++)\n\t\t{\n\t\t\tcnt[0] = 0;\n\t\t}\n\t\t\n\t\tfor(int i=0; i<in.length(); i++)\n\t\t{\n\t\t\tchar c = in.charAt(i);\n\t\t\tfor(int j=0; j<cnt.length; j++)\n\t\t\t{\n\t\t\t\tif(c=='a'+j || c=='A'+j)\n\t\t\t\t{\n\t\t\t\t\tcnt[j]++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0; i<cnt.length; i++)\n\t\t{\n\t\t\tSystem.out.println((char)('a'+i) + \" : \" + cnt[i]);\n\t\t}\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"String in = new String();",
"in",
"new String()",
"for(;scanner.hasNext();)\n\t\t{\n\t\t\tin += scanner.nextLine();\n\t\t}",
";",
"scanner.hasNext()",
"scanner.hasNext",
"scanner",
"{\n\t\t\tin += scanner.nextLine();\n\t\t}",
"{\n\t\t\tin += scanner.nextLine();\n\t\t}",
"in += scanner.nextLine()",
"in",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"int[] cnt = new int[26];",
"cnt",
"new int[26]",
"26",
"for(int i=0; i<cnt.length; i++)\n\t\t{\n\t\t\tcnt[0] = 0;\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\tcnt[0] = 0;\n\t\t}",
"{\n\t\t\tcnt[0] = 0;\n\t\t}",
"cnt[0] = 0",
"cnt[0]",
"cnt",
"0",
"0",
"for(int i=0; i<in.length(); i++)\n\t\t{\n\t\t\tchar c = in.charAt(i);\n\t\t\tfor(int j=0; j<cnt.length; j++)\n\t\t\t{\n\t\t\t\tif(c=='a'+j || c=='A'+j)\n\t\t\t\t{\n\t\t\t\t\tcnt[j]++;\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<in.length()",
"i",
"in.length()",
"in.length",
"in",
"i++",
"i++",
"i",
"{\n\t\t\tchar c = in.charAt(i);\n\t\t\tfor(int j=0; j<cnt.length; j++)\n\t\t\t{\n\t\t\t\tif(c=='a'+j || c=='A'+j)\n\t\t\t\t{\n\t\t\t\t\tcnt[j]++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tchar c = in.charAt(i);\n\t\t\tfor(int j=0; j<cnt.length; j++)\n\t\t\t{\n\t\t\t\tif(c=='a'+j || c=='A'+j)\n\t\t\t\t{\n\t\t\t\t\tcnt[j]++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"char c = in.charAt(i);",
"c",
"in.charAt(i)",
"in.charAt",
"in",
"i",
"for(int j=0; j<cnt.length; j++)\n\t\t\t{\n\t\t\t\tif(c=='a'+j || c=='A'+j)\n\t\t\t\t{\n\t\t\t\t\tcnt[j]++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<cnt.length",
"j",
"cnt.length",
"cnt",
"cnt.length",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(c=='a'+j || c=='A'+j)\n\t\t\t\t{\n\t\t\t\t\tcnt[j]++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(c=='a'+j || c=='A'+j)\n\t\t\t\t{\n\t\t\t\t\tcnt[j]++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"if(c=='a'+j || c=='A'+j)\n\t\t\t\t{\n\t\t\t\t\tcnt[j]++;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"c=='a'+j || c=='A'+j",
"c=='a'+j",
"c",
"'a'+j",
"'a'",
"j",
"c=='A'+j",
"c",
"'A'+j",
"'A'",
"j",
"{\n\t\t\t\t\tcnt[j]++;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"cnt[j]++",
"cnt[j]",
"cnt",
"j",
"break;",
"for(int i=0; i<cnt.length; i++)\n\t\t{\n\t\t\tSystem.out.println((char)('a'+i) + \" : \" + 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.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)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tString in = new String();\n\t\tfor(;scanner.hasNext();)\n\t\t{\n\t\t\tin += scanner.nextLine();\n\t\t}\n\t\t\n\t\tint[] cnt = new int[26];\n\t\tfor(int i=0; i<cnt.length; i++)\n\t\t{\n\t\t\tcnt[0] = 0;\n\t\t}\n\t\t\n\t\tfor(int i=0; i<in.length(); i++)\n\t\t{\n\t\t\tchar c = in.charAt(i);\n\t\t\tfor(int j=0; j<cnt.length; j++)\n\t\t\t{\n\t\t\t\tif(c=='a'+j || c=='A'+j)\n\t\t\t\t{\n\t\t\t\t\tcnt[j]++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0; i<cnt.length; i++)\n\t\t{\n\t\t\tSystem.out.println((char)('a'+i) + \" : \" + cnt[i]);\n\t\t}\n\t}\n}",
"public class Main \n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tString in = new String();\n\t\tfor(;scanner.hasNext();)\n\t\t{\n\t\t\tin += scanner.nextLine();\n\t\t}\n\t\t\n\t\tint[] cnt = new int[26];\n\t\tfor(int i=0; i<cnt.length; i++)\n\t\t{\n\t\t\tcnt[0] = 0;\n\t\t}\n\t\t\n\t\tfor(int i=0; i<in.length(); i++)\n\t\t{\n\t\t\tchar c = in.charAt(i);\n\t\t\tfor(int j=0; j<cnt.length; j++)\n\t\t\t{\n\t\t\t\tif(c=='a'+j || c=='A'+j)\n\t\t\t\t{\n\t\t\t\t\tcnt[j]++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0; i<cnt.length; i++)\n\t\t{\n\t\t\tSystem.out.println((char)('a'+i) + \" : \" + cnt[i]);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner scanner = new Scanner(System.in);
String in = new String();
for(;scanner.hasNext();)
{
in += scanner.nextLine();
}
int[] cnt = new int[26];
for(int i=0; i<cnt.length; i++)
{
cnt[0] = 0;
}
for(int i=0; i<in.length(); i++)
{
char c = in.charAt(i);
for(int j=0; j<cnt.length; j++)
{
if(c=='a'+j || c=='A'+j)
{
cnt[j]++;
break;
}
}
}
for(int i=0; i<cnt.length; i++)
{
System.out.println((char)('a'+i) + " : " + cnt[i]);
}
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.