node_ids
listlengths 4
1.4k
| edge_index
listlengths 1
2.22k
| text
listlengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
17,
13,
30,
3,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
92,
11
],
[
92,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
14,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
24,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
31,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
45,
50
],
[
50,
51
],
[
39,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
39,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
58,
68
],
[
68,
69
],
[
69,
70
],
[
58,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
73,
80
],
[
80,
81
],
[
81,
82
],
[
14,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
12,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString word = null;\n\t\tint count = 0;\n\t\ttry {\n\t\t\tword = br.readLine();\n\t\t\twhile(true) {\n\t\t\t\tString sentence = br.readLine();\n\t\t\t\t\n\t\t\t\tif (\"END_OF_TEXT\".equals(sentence)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString[] tmpArr = sentence.split(\"\\\\s\");\n\t\t\t\tfor (int i = 0; i < tmpArr.length; i++) {\n\t\t\t\t\tif (tmpArr[i].equalsIgnoreCase(word)) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(count);\n\t\t\n\t}\n\n}\n",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString word = null;\n\t\tint count = 0;\n\t\ttry {\n\t\t\tword = br.readLine();\n\t\t\twhile(true) {\n\t\t\t\tString sentence = br.readLine();\n\t\t\t\t\n\t\t\t\tif (\"END_OF_TEXT\".equals(sentence)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString[] tmpArr = sentence.split(\"\\\\s\");\n\t\t\t\tfor (int i = 0; i < tmpArr.length; i++) {\n\t\t\t\t\tif (tmpArr[i].equalsIgnoreCase(word)) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(count);\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString word = null;\n\t\tint count = 0;\n\t\ttry {\n\t\t\tword = br.readLine();\n\t\t\twhile(true) {\n\t\t\t\tString sentence = br.readLine();\n\t\t\t\t\n\t\t\t\tif (\"END_OF_TEXT\".equals(sentence)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString[] tmpArr = sentence.split(\"\\\\s\");\n\t\t\t\tfor (int i = 0; i < tmpArr.length; i++) {\n\t\t\t\t\tif (tmpArr[i].equalsIgnoreCase(word)) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(count);\n\t\t\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString word = null;\n\t\tint count = 0;\n\t\ttry {\n\t\t\tword = br.readLine();\n\t\t\twhile(true) {\n\t\t\t\tString sentence = br.readLine();\n\t\t\t\t\n\t\t\t\tif (\"END_OF_TEXT\".equals(sentence)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString[] tmpArr = sentence.split(\"\\\\s\");\n\t\t\t\tfor (int i = 0; i < tmpArr.length; i++) {\n\t\t\t\t\tif (tmpArr[i].equalsIgnoreCase(word)) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(count);\n\t\t\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String word = null;",
"word",
"null",
"int count = 0;",
"count",
"0",
"try {\n\t\t\tword = br.readLine();\n\t\t\twhile(true) {\n\t\t\t\tString sentence = br.readLine();\n\t\t\t\t\n\t\t\t\tif (\"END_OF_TEXT\".equals(sentence)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString[] tmpArr = sentence.split(\"\\\\s\");\n\t\t\t\tfor (int i = 0; i < tmpArr.length; i++) {\n\t\t\t\t\tif (tmpArr[i].equalsIgnoreCase(word)) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}",
"catch (IOException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}",
"IOException e",
"{\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\tword = br.readLine();\n\t\t\twhile(true) {\n\t\t\t\tString sentence = br.readLine();\n\t\t\t\t\n\t\t\t\tif (\"END_OF_TEXT\".equals(sentence)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString[] tmpArr = sentence.split(\"\\\\s\");\n\t\t\t\tfor (int i = 0; i < tmpArr.length; i++) {\n\t\t\t\t\tif (tmpArr[i].equalsIgnoreCase(word)) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}",
"word = br.readLine()",
"word",
"br.readLine()",
"br.readLine",
"br",
"while(true) {\n\t\t\t\tString sentence = br.readLine();\n\t\t\t\t\n\t\t\t\tif (\"END_OF_TEXT\".equals(sentence)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString[] tmpArr = sentence.split(\"\\\\s\");\n\t\t\t\tfor (int i = 0; i < tmpArr.length; i++) {\n\t\t\t\t\tif (tmpArr[i].equalsIgnoreCase(word)) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"true",
"{\n\t\t\t\tString sentence = br.readLine();\n\t\t\t\t\n\t\t\t\tif (\"END_OF_TEXT\".equals(sentence)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString[] tmpArr = sentence.split(\"\\\\s\");\n\t\t\t\tfor (int i = 0; i < tmpArr.length; i++) {\n\t\t\t\t\tif (tmpArr[i].equalsIgnoreCase(word)) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"String sentence = br.readLine();",
"sentence",
"br.readLine()",
"br.readLine",
"br",
"if (\"END_OF_TEXT\".equals(sentence)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"\"END_OF_TEXT\".equals(sentence)",
"\"END_OF_TEXT\".equals",
"\"END_OF_TEXT\"",
"sentence",
"{\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"break;",
"String[] tmpArr = sentence.split(\"\\\\s\");",
"tmpArr",
"sentence.split(\"\\\\s\")",
"sentence.split",
"sentence",
"\"\\\\s\"",
"for (int i = 0; i < tmpArr.length; i++) {\n\t\t\t\t\tif (tmpArr[i].equalsIgnoreCase(word)) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < tmpArr.length",
"i",
"tmpArr.length",
"tmpArr",
"tmpArr.length",
"i++",
"i++",
"i",
"{\n\t\t\t\t\tif (tmpArr[i].equalsIgnoreCase(word)) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif (tmpArr[i].equalsIgnoreCase(word)) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}",
"if (tmpArr[i].equalsIgnoreCase(word)) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}",
"tmpArr[i].equalsIgnoreCase(word)",
"tmpArr[i].equalsIgnoreCase",
"tmpArr[i]",
"tmpArr",
"i",
"word",
"{\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString word = null;\n\t\tint count = 0;\n\t\ttry {\n\t\t\tword = br.readLine();\n\t\t\twhile(true) {\n\t\t\t\tString sentence = br.readLine();\n\t\t\t\t\n\t\t\t\tif (\"END_OF_TEXT\".equals(sentence)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString[] tmpArr = sentence.split(\"\\\\s\");\n\t\t\t\tfor (int i = 0; i < tmpArr.length; i++) {\n\t\t\t\t\tif (tmpArr[i].equalsIgnoreCase(word)) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(count);\n\t\t\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString word = null;\n\t\tint count = 0;\n\t\ttry {\n\t\t\tword = br.readLine();\n\t\t\twhile(true) {\n\t\t\t\tString sentence = br.readLine();\n\t\t\t\t\n\t\t\t\tif (\"END_OF_TEXT\".equals(sentence)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString[] tmpArr = sentence.split(\"\\\\s\");\n\t\t\t\tfor (int i = 0; i < tmpArr.length; i++) {\n\t\t\t\t\tif (tmpArr[i].equalsIgnoreCase(word)) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO 自動生成された catch ブロック\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(count);\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) {
// TODO 自動生成されたメソッド・スタブ
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String word = null;
int count = 0;
try {
word = br.readLine();
while(true) {
String sentence = br.readLine();
if ("END_OF_TEXT".equals(sentence)) {
break;
}
String[] tmpArr = sentence.split("\\s");
for (int i = 0; i < tmpArr.length; i++) {
if (tmpArr[i].equalsIgnoreCase(word)) {
count++;
}
}
}
} catch (IOException e) {
// TODO 自動生成された catch ブロック
e.printStackTrace();
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
17,
13,
30,
3,
14,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
61,
14
],
[
61,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
37,
42
],
[
42,
43
],
[
37,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
44,
49
],
[
49,
50
],
[
50,
51
],
[
17,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
15,
58
],
[
58,
59
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
]
| [
"import java.util.Arrays;\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tfinal String word = sc.next();\n\t\t\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tfinal String txt = sc.next();\n\t\t\t\n\t\t\tif(\"END_OF_TEXT\".equals(txt)){\n\t\t\t\tbreak;\n\t\t\t}else if(word.equalsIgnoreCase(txt)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t}\n\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"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\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tfinal String word = sc.next();\n\t\t\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tfinal String txt = sc.next();\n\t\t\t\n\t\t\tif(\"END_OF_TEXT\".equals(txt)){\n\t\t\t\tbreak;\n\t\t\t}else if(word.equalsIgnoreCase(txt)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t}\n\n}",
"Main",
"public static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tfinal String word = sc.next();\n\t\t\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tfinal String txt = sc.next();\n\t\t\t\n\t\t\tif(\"END_OF_TEXT\".equals(txt)){\n\t\t\t\tbreak;\n\t\t\t}else if(word.equalsIgnoreCase(txt)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tfinal String word = sc.next();\n\t\t\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tfinal String txt = sc.next();\n\t\t\t\n\t\t\tif(\"END_OF_TEXT\".equals(txt)){\n\t\t\t\tbreak;\n\t\t\t}else if(word.equalsIgnoreCase(txt)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"final String word = sc.next();",
"word",
"sc.next()",
"sc.next",
"sc",
"int count = 0;",
"count",
"0",
"while(true){\n\t\t\tfinal String txt = sc.next();\n\t\t\t\n\t\t\tif(\"END_OF_TEXT\".equals(txt)){\n\t\t\t\tbreak;\n\t\t\t}else if(word.equalsIgnoreCase(txt)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"true",
"{\n\t\t\tfinal String txt = sc.next();\n\t\t\t\n\t\t\tif(\"END_OF_TEXT\".equals(txt)){\n\t\t\t\tbreak;\n\t\t\t}else if(word.equalsIgnoreCase(txt)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"final String txt = sc.next();",
"txt",
"sc.next()",
"sc.next",
"sc",
"if(\"END_OF_TEXT\".equals(txt)){\n\t\t\t\tbreak;\n\t\t\t}else if(word.equalsIgnoreCase(txt)){\n\t\t\t\tcount++;\n\t\t\t}",
"\"END_OF_TEXT\".equals(txt)",
"\"END_OF_TEXT\".equals",
"\"END_OF_TEXT\"",
"txt",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"if(word.equalsIgnoreCase(txt)){\n\t\t\t\tcount++;\n\t\t\t}",
"word.equalsIgnoreCase(txt)",
"word.equalsIgnoreCase",
"word",
"txt",
"{\n\t\t\t\tcount++;\n\t\t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String args[]",
"args",
"public class Main {\n\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tfinal String word = sc.next();\n\t\t\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tfinal String txt = sc.next();\n\t\t\t\n\t\t\tif(\"END_OF_TEXT\".equals(txt)){\n\t\t\t\tbreak;\n\t\t\t}else if(word.equalsIgnoreCase(txt)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tfinal String word = sc.next();\n\t\t\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tfinal String txt = sc.next();\n\t\t\t\n\t\t\tif(\"END_OF_TEXT\".equals(txt)){\n\t\t\t\tbreak;\n\t\t\t}else if(word.equalsIgnoreCase(txt)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t}\n\n}",
"Main"
]
| import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
final String word = sc.next();
int count = 0;
while(true){
final String txt = sc.next();
if("END_OF_TEXT".equals(txt)){
break;
}else if(word.equalsIgnoreCase(txt)){
count++;
}
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
20,
41,
13,
17,
41,
13,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
14,
4,
18,
13,
30,
0,
13,
4,
18,
13,
9,
14,
4,
18,
17,
13,
30,
3,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
13,
4,
18,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
14,
24
],
[
24,
25
],
[
24,
26
],
[
14,
27
],
[
27,
28
],
[
27,
29
],
[
14,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
31,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
39,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
43,
49
],
[
38,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
50,
55
],
[
55,
56
],
[
38,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
38,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
63,
73
],
[
73,
74
],
[
74,
75
],
[
63,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
78,
87
],
[
87,
88
],
[
88,
89
],
[
14,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
12,
96
],
[
96,
97
]
]
| [
"/* package whatever; // don't place package name! */\n\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\n/* Name of the class has to be \"Main\" only if the class is public. */\nclass Main\n{\npublic static void main (String[] args) throws java.lang.Exception\n{\n\tScanner scan = new Scanner(System.in);\n\tint count = 0;\n\t\n\tBufferedReader br =\n new BufferedReader(new InputStreamReader(System.in));\n\n\tString w = \"\";\n String line = \"\";\n while ((line = br.readLine()) != null) {\n\t\tif (w.isEmpty()) {\n\t\t\tw = line.toLowerCase();\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (\"END_OF_TEXT\".equals(line)) {\n\t\t\tbreak;\n\t\t}\n\n\t\tString[] words = line.split(\" \");\n\t\tfor (int i = 0; i < words.length; i++) {\n\t\tif (w.equals(words[i].toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\t \t\n }\n\n\tSystem.out.println(count);\n}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main\n{\npublic static void main (String[] args) throws java.lang.Exception\n{\n\tScanner scan = new Scanner(System.in);\n\tint count = 0;\n\t\n\tBufferedReader br =\n new BufferedReader(new InputStreamReader(System.in));\n\n\tString w = \"\";\n String line = \"\";\n while ((line = br.readLine()) != null) {\n\t\tif (w.isEmpty()) {\n\t\t\tw = line.toLowerCase();\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (\"END_OF_TEXT\".equals(line)) {\n\t\t\tbreak;\n\t\t}\n\n\t\tString[] words = line.split(\" \");\n\t\tfor (int i = 0; i < words.length; i++) {\n\t\tif (w.equals(words[i].toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\t \t\n }\n\n\tSystem.out.println(count);\n}\n}",
"Main",
"public static void main (String[] args) throws java.lang.Exception\n{\n\tScanner scan = new Scanner(System.in);\n\tint count = 0;\n\t\n\tBufferedReader br =\n new BufferedReader(new InputStreamReader(System.in));\n\n\tString w = \"\";\n String line = \"\";\n while ((line = br.readLine()) != null) {\n\t\tif (w.isEmpty()) {\n\t\t\tw = line.toLowerCase();\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (\"END_OF_TEXT\".equals(line)) {\n\t\t\tbreak;\n\t\t}\n\n\t\tString[] words = line.split(\" \");\n\t\tfor (int i = 0; i < words.length; i++) {\n\t\tif (w.equals(words[i].toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\t \t\n }\n\n\tSystem.out.println(count);\n}",
"main",
"{\n\tScanner scan = new Scanner(System.in);\n\tint count = 0;\n\t\n\tBufferedReader br =\n new BufferedReader(new InputStreamReader(System.in));\n\n\tString w = \"\";\n String line = \"\";\n while ((line = br.readLine()) != null) {\n\t\tif (w.isEmpty()) {\n\t\t\tw = line.toLowerCase();\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (\"END_OF_TEXT\".equals(line)) {\n\t\t\tbreak;\n\t\t}\n\n\t\tString[] words = line.split(\" \");\n\t\tfor (int i = 0; i < words.length; i++) {\n\t\tif (w.equals(words[i].toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\t \t\n }\n\n\tSystem.out.println(count);\n}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int count = 0;",
"count",
"0",
"BufferedReader br =\n new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String w = \"\";",
"w",
"\"\"",
"String line = \"\";",
"line",
"\"\"",
"while ((line = br.readLine()) != null) {\n\t\tif (w.isEmpty()) {\n\t\t\tw = line.toLowerCase();\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (\"END_OF_TEXT\".equals(line)) {\n\t\t\tbreak;\n\t\t}\n\n\t\tString[] words = line.split(\" \");\n\t\tfor (int i = 0; i < words.length; i++) {\n\t\tif (w.equals(words[i].toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\t \t\n }",
"(line = br.readLine()) != null",
"(line = br.readLine())",
"line",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\t\tif (w.isEmpty()) {\n\t\t\tw = line.toLowerCase();\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (\"END_OF_TEXT\".equals(line)) {\n\t\t\tbreak;\n\t\t}\n\n\t\tString[] words = line.split(\" \");\n\t\tfor (int i = 0; i < words.length; i++) {\n\t\tif (w.equals(words[i].toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\t \t\n }",
"if (w.isEmpty()) {\n\t\t\tw = line.toLowerCase();\n\t\t\tcontinue;\n\t\t}",
"w.isEmpty()",
"w.isEmpty",
"w",
"{\n\t\t\tw = line.toLowerCase();\n\t\t\tcontinue;\n\t\t}",
"w = line.toLowerCase()",
"w",
"line.toLowerCase()",
"line.toLowerCase",
"line",
"continue;",
"if (\"END_OF_TEXT\".equals(line)) {\n\t\t\tbreak;\n\t\t}",
"\"END_OF_TEXT\".equals(line)",
"\"END_OF_TEXT\".equals",
"\"END_OF_TEXT\"",
"line",
"{\n\t\t\tbreak;\n\t\t}",
"break;",
"String[] words = line.split(\" \");",
"words",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"for (int i = 0; i < words.length; i++) {\n\t\tif (w.equals(words[i].toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < words.length",
"i",
"words.length",
"words",
"words.length",
"i++",
"i++",
"i",
"{\n\t\tif (w.equals(words[i].toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"{\n\t\tif (w.equals(words[i].toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"if (w.equals(words[i].toLowerCase())) {\n\t\t\t\tcount++;\n\t\t\t}",
"w.equals(words[i].toLowerCase())",
"w.equals",
"w",
"words[i].toLowerCase()",
"words[i].toLowerCase",
"words[i]",
"words",
"i",
"{\n\t\t\t\tcount++;\n\t\t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args"
]
| /* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner scan = new Scanner(System.in);
int count = 0;
BufferedReader br =
new BufferedReader(new InputStreamReader(System.in));
String w = "";
String line = "";
while ((line = br.readLine()) != null) {
if (w.isEmpty()) {
w = line.toLowerCase();
continue;
}
if ("END_OF_TEXT".equals(line)) {
break;
}
String[] words = line.split(" ");
for (int i = 0; i < words.length; i++) {
if (w.equals(words[i].toLowerCase())) {
count++;
}
}
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
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
],
[
65,
11
],
[
65,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
36,
41
],
[
41,
42
],
[
30,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
47,
48
],
[
14,
49
],
[
49,
50
],
[
50,
51
],
[
14,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
57,
61
],
[
12,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
]
]
| [
"import java.util.Scanner;\nimport java.util.ArrayList;\nimport java.util.Collections;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n ArrayList<String> str = new ArrayList<>();\n String target = sc.next().toLowerCase();\n while(true) {\n String tmp = sc.next();\n if(tmp.equals(\"END_OF_TEXT\")) {\n break;\n }\n str.add(tmp.toLowerCase());\n }\n sc.close();\n\n System.out.println(Collections.frequency(str, target));\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n ArrayList<String> str = new ArrayList<>();\n String target = sc.next().toLowerCase();\n while(true) {\n String tmp = sc.next();\n if(tmp.equals(\"END_OF_TEXT\")) {\n break;\n }\n str.add(tmp.toLowerCase());\n }\n sc.close();\n\n System.out.println(Collections.frequency(str, target));\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n ArrayList<String> str = new ArrayList<>();\n String target = sc.next().toLowerCase();\n while(true) {\n String tmp = sc.next();\n if(tmp.equals(\"END_OF_TEXT\")) {\n break;\n }\n str.add(tmp.toLowerCase());\n }\n sc.close();\n\n System.out.println(Collections.frequency(str, target));\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n ArrayList<String> str = new ArrayList<>();\n String target = sc.next().toLowerCase();\n while(true) {\n String tmp = sc.next();\n if(tmp.equals(\"END_OF_TEXT\")) {\n break;\n }\n str.add(tmp.toLowerCase());\n }\n sc.close();\n\n System.out.println(Collections.frequency(str, target));\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"ArrayList<String> str = new ArrayList<>();",
"str",
"new ArrayList<>()",
"String target = sc.next().toLowerCase();",
"target",
"sc.next().toLowerCase()",
"sc.next().toLowerCase",
"sc.next()",
"sc.next",
"sc",
"while(true) {\n String tmp = sc.next();\n if(tmp.equals(\"END_OF_TEXT\")) {\n break;\n }\n str.add(tmp.toLowerCase());\n }",
"true",
"{\n String tmp = sc.next();\n if(tmp.equals(\"END_OF_TEXT\")) {\n break;\n }\n str.add(tmp.toLowerCase());\n }",
"String tmp = sc.next();",
"tmp",
"sc.next()",
"sc.next",
"sc",
"if(tmp.equals(\"END_OF_TEXT\")) {\n break;\n }",
"tmp.equals(\"END_OF_TEXT\")",
"tmp.equals",
"tmp",
"\"END_OF_TEXT\"",
"{\n break;\n }",
"break;",
"str.add(tmp.toLowerCase())",
"str.add",
"str",
"tmp.toLowerCase()",
"tmp.toLowerCase",
"tmp",
"sc.close()",
"sc.close",
"sc",
"System.out.println(Collections.frequency(str, target))",
"System.out.println",
"System.out",
"System",
"System.out",
"Collections.frequency(str, target)",
"Collections.frequency",
"Collections",
"str",
"target",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n ArrayList<String> str = new ArrayList<>();\n String target = sc.next().toLowerCase();\n while(true) {\n String tmp = sc.next();\n if(tmp.equals(\"END_OF_TEXT\")) {\n break;\n }\n str.add(tmp.toLowerCase());\n }\n sc.close();\n\n System.out.println(Collections.frequency(str, target));\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n ArrayList<String> str = new ArrayList<>();\n String target = sc.next().toLowerCase();\n while(true) {\n String tmp = sc.next();\n if(tmp.equals(\"END_OF_TEXT\")) {\n break;\n }\n str.add(tmp.toLowerCase());\n }\n sc.close();\n\n System.out.println(Collections.frequency(str, target));\n }\n}",
"Main"
]
| import java.util.Scanner;
import java.util.ArrayList;
import java.util.Collections;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
ArrayList<String> str = new ArrayList<>();
String target = sc.next().toLowerCase();
while(true) {
String tmp = sc.next();
if(tmp.equals("END_OF_TEXT")) {
break;
}
str.add(tmp.toLowerCase());
}
sc.close();
System.out.println(Collections.frequency(str, target));
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
14,
4,
18,
13,
4,
18,
13,
30,
40,
13,
4,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
57,
11
],
[
57,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
34,
39
],
[
28,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
45,
46
],
[
40,
47
],
[
47,
48
],
[
48,
49
],
[
14,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
12,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
]
| [
"import java.util.*;\nimport java.io.*;\nimport static java.lang.System.*;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String word = sc.nextLine();\n int count=0;\n while(true)\n {\n String s = sc.next();\n if(s.equals(\"END_OF_TEXT\")) break;\n if(word.equals(s.toLowerCase()))\n {\n count++;\n }\n }\n out.println(count);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import static java.lang.System.*;",
"import static java.lang.System.*;",
"import static java.lang.System.*;",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String word = sc.nextLine();\n int count=0;\n while(true)\n {\n String s = sc.next();\n if(s.equals(\"END_OF_TEXT\")) break;\n if(word.equals(s.toLowerCase()))\n {\n count++;\n }\n }\n out.println(count);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String word = sc.nextLine();\n int count=0;\n while(true)\n {\n String s = sc.next();\n if(s.equals(\"END_OF_TEXT\")) break;\n if(word.equals(s.toLowerCase()))\n {\n count++;\n }\n }\n out.println(count);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String word = sc.nextLine();\n int count=0;\n while(true)\n {\n String s = sc.next();\n if(s.equals(\"END_OF_TEXT\")) break;\n if(word.equals(s.toLowerCase()))\n {\n count++;\n }\n }\n out.println(count);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String word = sc.nextLine();",
"word",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int count=0;",
"count",
"0",
"while(true)\n {\n String s = sc.next();\n if(s.equals(\"END_OF_TEXT\")) break;\n if(word.equals(s.toLowerCase()))\n {\n count++;\n }\n }",
"true",
"{\n String s = sc.next();\n if(s.equals(\"END_OF_TEXT\")) break;\n if(word.equals(s.toLowerCase()))\n {\n count++;\n }\n }",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if(s.equals(\"END_OF_TEXT\")) break;",
"s.equals(\"END_OF_TEXT\")",
"s.equals",
"s",
"\"END_OF_TEXT\"",
"break;",
"if(word.equals(s.toLowerCase()))\n {\n count++;\n }",
"word.equals(s.toLowerCase())",
"word.equals",
"word",
"s.toLowerCase()",
"s.toLowerCase",
"s",
"{\n count++;\n }",
"count++",
"count",
"out.println(count)",
"out.println",
"out",
"count",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String word = sc.nextLine();\n int count=0;\n while(true)\n {\n String s = sc.next();\n if(s.equals(\"END_OF_TEXT\")) break;\n if(word.equals(s.toLowerCase()))\n {\n count++;\n }\n }\n out.println(count);\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String word = sc.nextLine();\n int count=0;\n while(true)\n {\n String s = sc.next();\n if(s.equals(\"END_OF_TEXT\")) break;\n if(word.equals(s.toLowerCase()))\n {\n count++;\n }\n }\n out.println(count);\n }\n}",
"Main"
]
| import java.util.*;
import java.io.*;
import static java.lang.System.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String word = sc.nextLine();
int count=0;
while(true)
{
String s = sc.next();
if(s.equals("END_OF_TEXT")) break;
if(word.equals(s.toLowerCase()))
{
count++;
}
}
out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
4,
18,
13,
17,
17,
14,
4,
18,
13,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
66,
5
],
[
66,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
20,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
30,
34
],
[
24,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
35,
39
],
[
24,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
24,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
45,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
6,
63
],
[
63,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n String word = scn.nextLine();\n int ans = 0;\n\n while (scn.hasNext()) {\n String check = scn.next();\n\n check.replace(\".\",\"\");\n check.replace(\"?\",\"\");\n check.replace(\"!\",\"\");\n if(check.equalsIgnoreCase(word)){\n ans +=1;\n }\n\n }\n System.out.println(ans);\n\n scn.close();\n\n\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n String word = scn.nextLine();\n int ans = 0;\n\n while (scn.hasNext()) {\n String check = scn.next();\n\n check.replace(\".\",\"\");\n check.replace(\"?\",\"\");\n check.replace(\"!\",\"\");\n if(check.equalsIgnoreCase(word)){\n ans +=1;\n }\n\n }\n System.out.println(ans);\n\n scn.close();\n\n\n }\n\n}",
"Main",
"public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n String word = scn.nextLine();\n int ans = 0;\n\n while (scn.hasNext()) {\n String check = scn.next();\n\n check.replace(\".\",\"\");\n check.replace(\"?\",\"\");\n check.replace(\"!\",\"\");\n if(check.equalsIgnoreCase(word)){\n ans +=1;\n }\n\n }\n System.out.println(ans);\n\n scn.close();\n\n\n }",
"main",
"{\n Scanner scn = new Scanner(System.in);\n String word = scn.nextLine();\n int ans = 0;\n\n while (scn.hasNext()) {\n String check = scn.next();\n\n check.replace(\".\",\"\");\n check.replace(\"?\",\"\");\n check.replace(\"!\",\"\");\n if(check.equalsIgnoreCase(word)){\n ans +=1;\n }\n\n }\n System.out.println(ans);\n\n scn.close();\n\n\n }",
"Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"String word = scn.nextLine();",
"word",
"scn.nextLine()",
"scn.nextLine",
"scn",
"int ans = 0;",
"ans",
"0",
"while (scn.hasNext()) {\n String check = scn.next();\n\n check.replace(\".\",\"\");\n check.replace(\"?\",\"\");\n check.replace(\"!\",\"\");\n if(check.equalsIgnoreCase(word)){\n ans +=1;\n }\n\n }",
"scn.hasNext()",
"scn.hasNext",
"scn",
"{\n String check = scn.next();\n\n check.replace(\".\",\"\");\n check.replace(\"?\",\"\");\n check.replace(\"!\",\"\");\n if(check.equalsIgnoreCase(word)){\n ans +=1;\n }\n\n }",
"String check = scn.next();",
"check",
"scn.next()",
"scn.next",
"scn",
"check.replace(\".\",\"\")",
"check.replace",
"check",
"\".\"",
"\"\"",
"check.replace(\"?\",\"\")",
"check.replace",
"check",
"\"?\"",
"\"\"",
"check.replace(\"!\",\"\")",
"check.replace",
"check",
"\"!\"",
"\"\"",
"if(check.equalsIgnoreCase(word)){\n ans +=1;\n }",
"check.equalsIgnoreCase(word)",
"check.equalsIgnoreCase",
"check",
"word",
"{\n ans +=1;\n }",
"ans +=1",
"ans",
"1",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"scn.close()",
"scn.close",
"scn",
"String args[]",
"args",
"public class Main {\n public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n String word = scn.nextLine();\n int ans = 0;\n\n while (scn.hasNext()) {\n String check = scn.next();\n\n check.replace(\".\",\"\");\n check.replace(\"?\",\"\");\n check.replace(\"!\",\"\");\n if(check.equalsIgnoreCase(word)){\n ans +=1;\n }\n\n }\n System.out.println(ans);\n\n scn.close();\n\n\n }\n\n}",
"public class Main {\n public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n String word = scn.nextLine();\n int ans = 0;\n\n while (scn.hasNext()) {\n String check = scn.next();\n\n check.replace(\".\",\"\");\n check.replace(\"?\",\"\");\n check.replace(\"!\",\"\");\n if(check.equalsIgnoreCase(word)){\n ans +=1;\n }\n\n }\n System.out.println(ans);\n\n scn.close();\n\n\n }\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scn = new Scanner(System.in);
String word = scn.nextLine();
int ans = 0;
while (scn.hasNext()) {
String check = scn.next();
check.replace(".","");
check.replace("?","");
check.replace("!","");
if(check.equalsIgnoreCase(word)){
ans +=1;
}
}
System.out.println(ans);
scn.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
20,
17,
41,
13,
17,
0,
13,
4,
18,
13,
42,
17,
30,
0,
18,
13,
13,
4,
18,
13,
14,
4,
18,
18,
13,
13,
17,
3,
40,
13,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
29,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
88,
5
],
[
88,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
36,
43
],
[
28,
44
],
[
44,
45
],
[
8,
46
],
[
46,
47
],
[
46,
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
],
[
61,
62
],
[
61,
63
],
[
54,
64
],
[
64,
65
],
[
65,
66
],
[
54,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
69,
76
],
[
76,
77
],
[
8,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
8,
84
],
[
6,
85
],
[
85,
86
],
[
0,
87
],
[
87,
88
],
[
87,
89
]
]
| [
"import java.util.Scanner;\n\n\npublic class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String word;\n String[] sen = new String[1000];\n int i=0;\n word = scan.next();\n while(true){\n sen[i] = scan.next();\n if(sen[i].equals(\"END_OF_TEXT\"))break;\n i++; \n }\n int ans=0;\n int num=word.length();;\n for(int j=0;j<i+1;j++){\n if(sen[j].equalsIgnoreCase(word))ans++;\n }\n System.out.println(ans);\n return;\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 String word;\n String[] sen = new String[1000];\n int i=0;\n word = scan.next();\n while(true){\n sen[i] = scan.next();\n if(sen[i].equals(\"END_OF_TEXT\"))break;\n i++; \n }\n int ans=0;\n int num=word.length();;\n for(int j=0;j<i+1;j++){\n if(sen[j].equalsIgnoreCase(word))ans++;\n }\n System.out.println(ans);\n return;\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String word;\n String[] sen = new String[1000];\n int i=0;\n word = scan.next();\n while(true){\n sen[i] = scan.next();\n if(sen[i].equals(\"END_OF_TEXT\"))break;\n i++; \n }\n int ans=0;\n int num=word.length();;\n for(int j=0;j<i+1;j++){\n if(sen[j].equalsIgnoreCase(word))ans++;\n }\n System.out.println(ans);\n return;\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n String word;\n String[] sen = new String[1000];\n int i=0;\n word = scan.next();\n while(true){\n sen[i] = scan.next();\n if(sen[i].equals(\"END_OF_TEXT\"))break;\n i++; \n }\n int ans=0;\n int num=word.length();;\n for(int j=0;j<i+1;j++){\n if(sen[j].equalsIgnoreCase(word))ans++;\n }\n System.out.println(ans);\n return;\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String word;",
"word",
"String[] sen = new String[1000];",
"sen",
"new String[1000]",
"1000",
"int i=0;",
"i",
"0",
"word = scan.next()",
"word",
"scan.next()",
"scan.next",
"scan",
"while(true){\n sen[i] = scan.next();\n if(sen[i].equals(\"END_OF_TEXT\"))break;\n i++; \n }",
"true",
"{\n sen[i] = scan.next();\n if(sen[i].equals(\"END_OF_TEXT\"))break;\n i++; \n }",
"sen[i] = scan.next()",
"sen[i]",
"sen",
"i",
"scan.next()",
"scan.next",
"scan",
"if(sen[i].equals(\"END_OF_TEXT\"))break;",
"sen[i].equals(\"END_OF_TEXT\")",
"sen[i].equals",
"sen[i]",
"sen",
"i",
"\"END_OF_TEXT\"",
"break;",
"i++",
"i",
"int ans=0;",
"ans",
"0",
"int num=word.length();",
"num",
"word.length()",
"word.length",
"word",
"for(int j=0;j<i+1;j++){\n if(sen[j].equalsIgnoreCase(word))ans++;\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<i+1",
"j",
"i+1",
"i",
"1",
"j++",
"j++",
"j",
"{\n if(sen[j].equalsIgnoreCase(word))ans++;\n }",
"{\n if(sen[j].equalsIgnoreCase(word))ans++;\n }",
"if(sen[j].equalsIgnoreCase(word))ans++;",
"sen[j].equalsIgnoreCase(word)",
"sen[j].equalsIgnoreCase",
"sen[j]",
"sen",
"j",
"word",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"return;",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String word;\n String[] sen = new String[1000];\n int i=0;\n word = scan.next();\n while(true){\n sen[i] = scan.next();\n if(sen[i].equals(\"END_OF_TEXT\"))break;\n i++; \n }\n int ans=0;\n int num=word.length();;\n for(int j=0;j<i+1;j++){\n if(sen[j].equalsIgnoreCase(word))ans++;\n }\n System.out.println(ans);\n return;\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String word;\n String[] sen = new String[1000];\n int i=0;\n word = scan.next();\n while(true){\n sen[i] = scan.next();\n if(sen[i].equals(\"END_OF_TEXT\"))break;\n i++; \n }\n int ans=0;\n int num=word.length();;\n for(int j=0;j<i+1;j++){\n if(sen[j].equalsIgnoreCase(word))ans++;\n }\n System.out.println(ans);\n return;\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
String word;
String[] sen = new String[1000];
int i=0;
word = scan.next();
while(true){
sen[i] = scan.next();
if(sen[i].equals("END_OF_TEXT"))break;
i++;
}
int ans=0;
int num=word.length();;
for(int j=0;j<i+1;j++){
if(sen[j].equalsIgnoreCase(word))ans++;
}
System.out.println(ans);
return;
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
17,
30,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
14,
4,
18,
17,
13,
30,
3,
30,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
18,
13,
13,
14,
2,
4,
18,
13,
17,
30,
14,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
98,
8
],
[
98,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
24,
28
],
[
23,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
40,
45
],
[
45,
46
],
[
40,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
47,
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
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
75,
79
],
[
74,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
81,
86
],
[
86,
87
],
[
87,
88
],
[
11,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
9,
95
],
[
95,
96
],
[
0,
97
],
[
97,
98
],
[
97,
99
]
]
| [
"import java.io.BufferedInputStream;\nimport java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(new BufferedInputStream(System.in));\n\t\tint count = 0;\n\t\tString W = scan.nextLine();\n\t\tif (W.length() <= 10) {\n\t\t\twhile (scan.hasNext()) {\n\t\t\t\tString T = scan.nextLine();\n\t\t\t\tif (\"END_OF_TEXT\".equals(T)) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tString[] in = T.split(\" \");\n\t\t\t\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\t\t\t\tString str = in[i];\n\t\t\t\t\t\tif (str.length() <= 10) {\n\t\t\t\t\t\t\tif (W.equalsIgnoreCase(str)) {\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}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}\n}",
"import java.io.BufferedInputStream;",
"BufferedInputStream",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(new BufferedInputStream(System.in));\n\t\tint count = 0;\n\t\tString W = scan.nextLine();\n\t\tif (W.length() <= 10) {\n\t\t\twhile (scan.hasNext()) {\n\t\t\t\tString T = scan.nextLine();\n\t\t\t\tif (\"END_OF_TEXT\".equals(T)) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tString[] in = T.split(\" \");\n\t\t\t\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\t\t\t\tString str = in[i];\n\t\t\t\t\t\tif (str.length() <= 10) {\n\t\t\t\t\t\t\tif (W.equalsIgnoreCase(str)) {\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}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(new BufferedInputStream(System.in));\n\t\tint count = 0;\n\t\tString W = scan.nextLine();\n\t\tif (W.length() <= 10) {\n\t\t\twhile (scan.hasNext()) {\n\t\t\t\tString T = scan.nextLine();\n\t\t\t\tif (\"END_OF_TEXT\".equals(T)) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tString[] in = T.split(\" \");\n\t\t\t\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\t\t\t\tString str = in[i];\n\t\t\t\t\t\tif (str.length() <= 10) {\n\t\t\t\t\t\t\tif (W.equalsIgnoreCase(str)) {\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}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(new BufferedInputStream(System.in));\n\t\tint count = 0;\n\t\tString W = scan.nextLine();\n\t\tif (W.length() <= 10) {\n\t\t\twhile (scan.hasNext()) {\n\t\t\t\tString T = scan.nextLine();\n\t\t\t\tif (\"END_OF_TEXT\".equals(T)) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tString[] in = T.split(\" \");\n\t\t\t\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\t\t\t\tString str = in[i];\n\t\t\t\t\t\tif (str.length() <= 10) {\n\t\t\t\t\t\t\tif (W.equalsIgnoreCase(str)) {\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}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}",
"@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(new BufferedInputStream(System.in));",
"scan",
"new Scanner(new BufferedInputStream(System.in))",
"int count = 0;",
"count",
"0",
"String W = scan.nextLine();",
"W",
"scan.nextLine()",
"scan.nextLine",
"scan",
"if (W.length() <= 10) {\n\t\t\twhile (scan.hasNext()) {\n\t\t\t\tString T = scan.nextLine();\n\t\t\t\tif (\"END_OF_TEXT\".equals(T)) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tString[] in = T.split(\" \");\n\t\t\t\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\t\t\t\tString str = in[i];\n\t\t\t\t\t\tif (str.length() <= 10) {\n\t\t\t\t\t\t\tif (W.equalsIgnoreCase(str)) {\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}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"W.length() <= 10",
"W.length()",
"W.length",
"W",
"10",
"{\n\t\t\twhile (scan.hasNext()) {\n\t\t\t\tString T = scan.nextLine();\n\t\t\t\tif (\"END_OF_TEXT\".equals(T)) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tString[] in = T.split(\" \");\n\t\t\t\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\t\t\t\tString str = in[i];\n\t\t\t\t\t\tif (str.length() <= 10) {\n\t\t\t\t\t\t\tif (W.equalsIgnoreCase(str)) {\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}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"while (scan.hasNext()) {\n\t\t\t\tString T = scan.nextLine();\n\t\t\t\tif (\"END_OF_TEXT\".equals(T)) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tString[] in = T.split(\" \");\n\t\t\t\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\t\t\t\tString str = in[i];\n\t\t\t\t\t\tif (str.length() <= 10) {\n\t\t\t\t\t\t\tif (W.equalsIgnoreCase(str)) {\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}\n\t\t\t\t}\n\t\t\t}",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n\t\t\t\tString T = scan.nextLine();\n\t\t\t\tif (\"END_OF_TEXT\".equals(T)) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tString[] in = T.split(\" \");\n\t\t\t\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\t\t\t\tString str = in[i];\n\t\t\t\t\t\tif (str.length() <= 10) {\n\t\t\t\t\t\t\tif (W.equalsIgnoreCase(str)) {\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}\n\t\t\t\t}\n\t\t\t}",
"String T = scan.nextLine();",
"T",
"scan.nextLine()",
"scan.nextLine",
"scan",
"if (\"END_OF_TEXT\".equals(T)) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tString[] in = T.split(\" \");\n\t\t\t\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\t\t\t\tString str = in[i];\n\t\t\t\t\t\tif (str.length() <= 10) {\n\t\t\t\t\t\t\tif (W.equalsIgnoreCase(str)) {\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}\n\t\t\t\t}",
"\"END_OF_TEXT\".equals(T)",
"\"END_OF_TEXT\".equals",
"\"END_OF_TEXT\"",
"T",
"{\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"break;",
"{\n\t\t\t\t\tString[] in = T.split(\" \");\n\t\t\t\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\t\t\t\tString str = in[i];\n\t\t\t\t\t\tif (str.length() <= 10) {\n\t\t\t\t\t\t\tif (W.equalsIgnoreCase(str)) {\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}\n\t\t\t\t}",
"String[] in = T.split(\" \");",
"in",
"T.split(\" \")",
"T.split",
"T",
"\" \"",
"for (int i = 0; i < in.length; i++) {\n\t\t\t\t\t\tString str = in[i];\n\t\t\t\t\t\tif (str.length() <= 10) {\n\t\t\t\t\t\t\tif (W.equalsIgnoreCase(str)) {\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}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < in.length",
"i",
"in.length",
"in",
"in.length",
"i++",
"i++",
"i",
"{\n\t\t\t\t\t\tString str = in[i];\n\t\t\t\t\t\tif (str.length() <= 10) {\n\t\t\t\t\t\t\tif (W.equalsIgnoreCase(str)) {\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}",
"{\n\t\t\t\t\t\tString str = in[i];\n\t\t\t\t\t\tif (str.length() <= 10) {\n\t\t\t\t\t\t\tif (W.equalsIgnoreCase(str)) {\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}",
"String str = in[i];",
"str",
"in[i]",
"in",
"i",
"if (str.length() <= 10) {\n\t\t\t\t\t\t\tif (W.equalsIgnoreCase(str)) {\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}",
"str.length() <= 10",
"str.length()",
"str.length",
"str",
"10",
"{\n\t\t\t\t\t\t\tif (W.equalsIgnoreCase(str)) {\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 (W.equalsIgnoreCase(str)) {\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}",
"W.equalsIgnoreCase(str)",
"W.equalsIgnoreCase",
"W",
"str",
"{\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(new BufferedInputStream(System.in));\n\t\tint count = 0;\n\t\tString W = scan.nextLine();\n\t\tif (W.length() <= 10) {\n\t\t\twhile (scan.hasNext()) {\n\t\t\t\tString T = scan.nextLine();\n\t\t\t\tif (\"END_OF_TEXT\".equals(T)) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tString[] in = T.split(\" \");\n\t\t\t\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\t\t\t\tString str = in[i];\n\t\t\t\t\t\tif (str.length() <= 10) {\n\t\t\t\t\t\t\tif (W.equalsIgnoreCase(str)) {\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}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}\n}",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner scan = new Scanner(new BufferedInputStream(System.in));\n\t\tint count = 0;\n\t\tString W = scan.nextLine();\n\t\tif (W.length() <= 10) {\n\t\t\twhile (scan.hasNext()) {\n\t\t\t\tString T = scan.nextLine();\n\t\t\t\tif (\"END_OF_TEXT\".equals(T)) {\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tString[] in = T.split(\" \");\n\t\t\t\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\t\t\t\tString str = in[i];\n\t\t\t\t\t\tif (str.length() <= 10) {\n\t\t\t\t\t\t\tif (W.equalsIgnoreCase(str)) {\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}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t}\n}",
"Main"
]
| import java.io.BufferedInputStream;
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
@SuppressWarnings("resource")
Scanner scan = new Scanner(new BufferedInputStream(System.in));
int count = 0;
String W = scan.nextLine();
if (W.length() <= 10) {
while (scan.hasNext()) {
String T = scan.nextLine();
if ("END_OF_TEXT".equals(T)) {
break;
} else {
String[] in = T.split(" ");
for (int i = 0; i < in.length; i++) {
String str = in[i];
if (str.length() <= 10) {
if (W.equalsIgnoreCase(str)) {
count++;
}
}
}
}
}
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
17,
13,
3,
41,
13,
4,
18,
13,
17,
28,
13,
13,
30,
14,
4,
18,
4,
18,
13,
4,
18,
13,
40,
13,
4,
18,
13,
13,
4,
18,
13,
12,
13,
30,
4,
18,
20,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
83,
14
],
[
83,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
17,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
40,
45
],
[
34,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
34,
52
],
[
52,
53
],
[
52,
54
],
[
52,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
57,
62
],
[
62,
63
],
[
63,
64
],
[
56,
65
],
[
65,
66
],
[
17,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
17,
71
],
[
71,
72
],
[
72,
73
],
[
83,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
74,
80
],
[
80,
81
],
[
0,
82
],
[
82,
83
],
[
82,
84
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\n\npublic class Main {\n public void exec() throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);\n \tString W = br.readLine();\n \tint count=0;\n \twhile(true) {\n \tString line = br.readLine();\n \tif (\"END_OF_TEXT\".equals(line))\n \t\tbreak;\n \tString[] words = line.split(\" \");\n \tfor(String word: words)\n \t\tif(W.toLowerCase().equals(word.toLowerCase())) \n \t\t\tcount++;\n \t}\n \tout.println(count);\n out.flush();\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"public class Main {\n public void exec() throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);\n \tString W = br.readLine();\n \tint count=0;\n \twhile(true) {\n \tString line = br.readLine();\n \tif (\"END_OF_TEXT\".equals(line))\n \t\tbreak;\n \tString[] words = line.split(\" \");\n \tfor(String word: words)\n \t\tif(W.toLowerCase().equals(word.toLowerCase())) \n \t\t\tcount++;\n \t}\n \tout.println(count);\n out.flush();\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n}",
"Main",
"public void exec() throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);\n \tString W = br.readLine();\n \tint count=0;\n \twhile(true) {\n \tString line = br.readLine();\n \tif (\"END_OF_TEXT\".equals(line))\n \t\tbreak;\n \tString[] words = line.split(\" \");\n \tfor(String word: words)\n \t\tif(W.toLowerCase().equals(word.toLowerCase())) \n \t\t\tcount++;\n \t}\n \tout.println(count);\n out.flush();\n }",
"exec",
"{\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);\n \tString W = br.readLine();\n \tint count=0;\n \twhile(true) {\n \tString line = br.readLine();\n \tif (\"END_OF_TEXT\".equals(line))\n \t\tbreak;\n \tString[] words = line.split(\" \");\n \tfor(String word: words)\n \t\tif(W.toLowerCase().equals(word.toLowerCase())) \n \t\t\tcount++;\n \t}\n \tout.println(count);\n out.flush();\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"String W = br.readLine();",
"W",
"br.readLine()",
"br.readLine",
"br",
"int count=0;",
"count",
"0",
"while(true) {\n \tString line = br.readLine();\n \tif (\"END_OF_TEXT\".equals(line))\n \t\tbreak;\n \tString[] words = line.split(\" \");\n \tfor(String word: words)\n \t\tif(W.toLowerCase().equals(word.toLowerCase())) \n \t\t\tcount++;\n \t}",
"true",
"{\n \tString line = br.readLine();\n \tif (\"END_OF_TEXT\".equals(line))\n \t\tbreak;\n \tString[] words = line.split(\" \");\n \tfor(String word: words)\n \t\tif(W.toLowerCase().equals(word.toLowerCase())) \n \t\t\tcount++;\n \t}",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"if (\"END_OF_TEXT\".equals(line))\n \t\tbreak;",
"\"END_OF_TEXT\".equals(line)",
"\"END_OF_TEXT\".equals",
"\"END_OF_TEXT\"",
"line",
"break;",
"String[] words = line.split(\" \");",
"words",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"for(String word: words)\n \t\tif(W.toLowerCase().equals(word.toLowerCase())) \n \t\t\tcount++;",
"String word",
"words",
"if(W.toLowerCase().equals(word.toLowerCase())) \n \t\t\tcount++;",
"if(W.toLowerCase().equals(word.toLowerCase())) \n \t\t\tcount++;",
"W.toLowerCase().equals(word.toLowerCase())",
"W.toLowerCase().equals",
"W.toLowerCase()",
"W.toLowerCase",
"W",
"word.toLowerCase()",
"word.toLowerCase",
"word",
"count++",
"count",
"out.println(count)",
"out.println",
"out",
"count",
"out.flush()",
"out.flush",
"out",
"public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }",
"main",
"{\n \tnew Main().exec();\n }",
"new Main().exec()",
"new Main().exec",
"new Main()",
"String[] args",
"args",
"public class Main {\n public void exec() throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);\n \tString W = br.readLine();\n \tint count=0;\n \twhile(true) {\n \tString line = br.readLine();\n \tif (\"END_OF_TEXT\".equals(line))\n \t\tbreak;\n \tString[] words = line.split(\" \");\n \tfor(String word: words)\n \t\tif(W.toLowerCase().equals(word.toLowerCase())) \n \t\t\tcount++;\n \t}\n \tout.println(count);\n out.flush();\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n}",
"public class Main {\n public void exec() throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);\n \tString W = br.readLine();\n \tint count=0;\n \twhile(true) {\n \tString line = br.readLine();\n \tif (\"END_OF_TEXT\".equals(line))\n \t\tbreak;\n \tString[] words = line.split(\" \");\n \tfor(String word: words)\n \t\tif(W.toLowerCase().equals(word.toLowerCase())) \n \t\t\tcount++;\n \t}\n \tout.println(count);\n out.flush();\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
public class Main {
public void exec() throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
PrintWriter out = new PrintWriter(System.out);
String W = br.readLine();
int count=0;
while(true) {
String line = br.readLine();
if ("END_OF_TEXT".equals(line))
break;
String[] words = line.split(" ");
for(String word: words)
if(W.toLowerCase().equals(word.toLowerCase()))
count++;
}
out.println(count);
out.flush();
}
public static void main(String[] args) throws IOException {
new Main().exec();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
13,
30,
28,
13,
4,
18,
4,
18,
13,
17,
30,
30,
14,
4,
18,
13,
17,
30,
0,
13,
17,
14,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
12,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
19,
28
],
[
28,
29
],
[
28,
30
],
[
19,
31
],
[
31,
32
],
[
31,
33
],
[
19,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
39,
44
],
[
37,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
47,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
56,
61
],
[
61,
62
],
[
62,
63
],
[
19,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
9,
70
],
[
70,
71
]
]
| [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n \nclass Main {\n public static void main(String[] args) {\n try {\n\t\t\tfinal BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tfinal String word = input.readLine();\n\t\t\tint count = 0;\n\t\t\tboolean flag = true;\n\t\t\twhile(flag){\n\t\t\t for(final String str : input.readLine().split(\" \")){\n\t\t\t \tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t \t\tflag = false;\n\t\t\t \t} else if(str.equalsIgnoreCase(word)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main {\n public static void main(String[] args) {\n try {\n\t\t\tfinal BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tfinal String word = input.readLine();\n\t\t\tint count = 0;\n\t\t\tboolean flag = true;\n\t\t\twhile(flag){\n\t\t\t for(final String str : input.readLine().split(\" \")){\n\t\t\t \tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t \t\tflag = false;\n\t\t\t \t} else if(str.equalsIgnoreCase(word)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n }\n}",
"Main",
"public static void main(String[] args) {\n try {\n\t\t\tfinal BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tfinal String word = input.readLine();\n\t\t\tint count = 0;\n\t\t\tboolean flag = true;\n\t\t\twhile(flag){\n\t\t\t for(final String str : input.readLine().split(\" \")){\n\t\t\t \tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t \t\tflag = false;\n\t\t\t \t} else if(str.equalsIgnoreCase(word)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n }",
"main",
"{\n try {\n\t\t\tfinal BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tfinal String word = input.readLine();\n\t\t\tint count = 0;\n\t\t\tboolean flag = true;\n\t\t\twhile(flag){\n\t\t\t for(final String str : input.readLine().split(\" \")){\n\t\t\t \tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t \t\tflag = false;\n\t\t\t \t} else if(str.equalsIgnoreCase(word)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n }",
"try {\n\t\t\tfinal BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tfinal String word = input.readLine();\n\t\t\tint count = 0;\n\t\t\tboolean flag = true;\n\t\t\twhile(flag){\n\t\t\t for(final String str : input.readLine().split(\" \")){\n\t\t\t \tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t \t\tflag = false;\n\t\t\t \t} else if(str.equalsIgnoreCase(word)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}",
"catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}",
"Exception e",
"{\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\tfinal BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tfinal String word = input.readLine();\n\t\t\tint count = 0;\n\t\t\tboolean flag = true;\n\t\t\twhile(flag){\n\t\t\t for(final String str : input.readLine().split(\" \")){\n\t\t\t \tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t \t\tflag = false;\n\t\t\t \t} else if(str.equalsIgnoreCase(word)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}",
"final BufferedReader input = new BufferedReader(new InputStreamReader(System.in));",
"input",
"new BufferedReader(new InputStreamReader(System.in))",
"final String word = input.readLine();",
"word",
"input.readLine()",
"input.readLine",
"input",
"int count = 0;",
"count",
"0",
"boolean flag = true;",
"flag",
"true",
"while(flag){\n\t\t\t for(final String str : input.readLine().split(\" \")){\n\t\t\t \tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t \t\tflag = false;\n\t\t\t \t} else if(str.equalsIgnoreCase(word)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }\n\t\t\t}",
"flag",
"{\n\t\t\t for(final String str : input.readLine().split(\" \")){\n\t\t\t \tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t \t\tflag = false;\n\t\t\t \t} else if(str.equalsIgnoreCase(word)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }\n\t\t\t}",
"for(final String str : input.readLine().split(\" \")){\n\t\t\t \tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t \t\tflag = false;\n\t\t\t \t} else if(str.equalsIgnoreCase(word)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }",
"final String str",
"input.readLine().split(\" \")",
"input.readLine().split",
"input.readLine()",
"input.readLine",
"input",
"\" \"",
"{\n\t\t\t \tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t \t\tflag = false;\n\t\t\t \t} else if(str.equalsIgnoreCase(word)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }",
"{\n\t\t\t \tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t \t\tflag = false;\n\t\t\t \t} else if(str.equalsIgnoreCase(word)){\n\t\t\t count++;\n\t\t\t }\n\t\t\t }",
"if (str.equals(\"END_OF_TEXT\")) {\n\t\t\t \t\tflag = false;\n\t\t\t \t} else if(str.equalsIgnoreCase(word)){\n\t\t\t count++;\n\t\t\t }",
"str.equals(\"END_OF_TEXT\")",
"str.equals",
"str",
"\"END_OF_TEXT\"",
"{\n\t\t\t \t\tflag = false;\n\t\t\t \t}",
"flag = false",
"flag",
"false",
"if(str.equalsIgnoreCase(word)){\n\t\t\t count++;\n\t\t\t }",
"str.equalsIgnoreCase(word)",
"str.equalsIgnoreCase",
"str",
"word",
"{\n\t\t\t count++;\n\t\t\t }",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args"
]
| import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main {
public static void main(String[] args) {
try {
final BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
final String word = input.readLine();
int count = 0;
boolean flag = true;
while(flag){
for(final String str : input.readLine().split(" ")){
if (str.equals("END_OF_TEXT")) {
flag = false;
} else if(str.equalsIgnoreCase(word)){
count++;
}
}
}
System.out.println(count);
} catch (Exception e) {
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
29,
41,
13,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
14,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
90,
8
],
[
90,
9
],
[
9,
10
],
[
9,
11
],
[
90,
12
],
[
12,
13
],
[
12,
14
],
[
90,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
21,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
38,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
43,
50
],
[
31,
51
],
[
51,
52
],
[
51,
53
],
[
31,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
66,
71
],
[
71,
72
],
[
58,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
73,
78
],
[
78,
79
],
[
79,
80
],
[
31,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
15,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
]
| [
"import java.util.NoSuchElementException;\nimport java.util.Scanner;\n\npublic class Main {\n private static int W = 10;\n private static int T = 1000;\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n try {\n String w = sc.nextLine();\n if (w.length() > W) {\n System.out.println(\"Condition is invalid.\");\n return;\n }\n int c = 0;\n while (sc.hasNext()) {\n String s = sc.next().toLowerCase();\n if (s.equals(\"END_OF_TEXT\")) {\n break;\n }\n if (s.equals(w)) {\n c++;\n }\n }\n System.out.println(c);\n } catch (NoSuchElementException e) {\n System.out.println(e);\n }\n }\n}\n",
"import java.util.NoSuchElementException;",
"NoSuchElementException",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n private static int W = 10;\n private static int T = 1000;\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n try {\n String w = sc.nextLine();\n if (w.length() > W) {\n System.out.println(\"Condition is invalid.\");\n return;\n }\n int c = 0;\n while (sc.hasNext()) {\n String s = sc.next().toLowerCase();\n if (s.equals(\"END_OF_TEXT\")) {\n break;\n }\n if (s.equals(w)) {\n c++;\n }\n }\n System.out.println(c);\n } catch (NoSuchElementException e) {\n System.out.println(e);\n }\n }\n}",
"Main",
"private static int W = 10;",
"W",
"10",
"private static int T = 1000;",
"T",
"1000",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n try {\n String w = sc.nextLine();\n if (w.length() > W) {\n System.out.println(\"Condition is invalid.\");\n return;\n }\n int c = 0;\n while (sc.hasNext()) {\n String s = sc.next().toLowerCase();\n if (s.equals(\"END_OF_TEXT\")) {\n break;\n }\n if (s.equals(w)) {\n c++;\n }\n }\n System.out.println(c);\n } catch (NoSuchElementException e) {\n System.out.println(e);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n try {\n String w = sc.nextLine();\n if (w.length() > W) {\n System.out.println(\"Condition is invalid.\");\n return;\n }\n int c = 0;\n while (sc.hasNext()) {\n String s = sc.next().toLowerCase();\n if (s.equals(\"END_OF_TEXT\")) {\n break;\n }\n if (s.equals(w)) {\n c++;\n }\n }\n System.out.println(c);\n } catch (NoSuchElementException e) {\n System.out.println(e);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"try {\n String w = sc.nextLine();\n if (w.length() > W) {\n System.out.println(\"Condition is invalid.\");\n return;\n }\n int c = 0;\n while (sc.hasNext()) {\n String s = sc.next().toLowerCase();\n if (s.equals(\"END_OF_TEXT\")) {\n break;\n }\n if (s.equals(w)) {\n c++;\n }\n }\n System.out.println(c);\n } catch (NoSuchElementException e) {\n System.out.println(e);\n }",
"catch (NoSuchElementException e) {\n System.out.println(e);\n }",
"NoSuchElementException e",
"{\n System.out.println(e);\n }",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n String w = sc.nextLine();\n if (w.length() > W) {\n System.out.println(\"Condition is invalid.\");\n return;\n }\n int c = 0;\n while (sc.hasNext()) {\n String s = sc.next().toLowerCase();\n if (s.equals(\"END_OF_TEXT\")) {\n break;\n }\n if (s.equals(w)) {\n c++;\n }\n }\n System.out.println(c);\n }",
"String w = sc.nextLine();",
"w",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if (w.length() > W) {\n System.out.println(\"Condition is invalid.\");\n return;\n }",
"w.length() > W",
"w.length()",
"w.length",
"w",
"W",
"{\n System.out.println(\"Condition is invalid.\");\n return;\n }",
"System.out.println(\"Condition is invalid.\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Condition is invalid.\"",
"return;",
"int c = 0;",
"c",
"0",
"while (sc.hasNext()) {\n String s = sc.next().toLowerCase();\n if (s.equals(\"END_OF_TEXT\")) {\n break;\n }\n if (s.equals(w)) {\n c++;\n }\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n String s = sc.next().toLowerCase();\n if (s.equals(\"END_OF_TEXT\")) {\n break;\n }\n if (s.equals(w)) {\n c++;\n }\n }",
"String s = sc.next().toLowerCase();",
"s",
"sc.next().toLowerCase()",
"sc.next().toLowerCase",
"sc.next()",
"sc.next",
"sc",
"if (s.equals(\"END_OF_TEXT\")) {\n break;\n }",
"s.equals(\"END_OF_TEXT\")",
"s.equals",
"s",
"\"END_OF_TEXT\"",
"{\n break;\n }",
"break;",
"if (s.equals(w)) {\n c++;\n }",
"s.equals(w)",
"s.equals",
"s",
"w",
"{\n c++;\n }",
"c++",
"c",
"System.out.println(c)",
"System.out.println",
"System.out",
"System",
"System.out",
"c",
"String[] args",
"args",
"public class Main {\n private static int W = 10;\n private static int T = 1000;\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n try {\n String w = sc.nextLine();\n if (w.length() > W) {\n System.out.println(\"Condition is invalid.\");\n return;\n }\n int c = 0;\n while (sc.hasNext()) {\n String s = sc.next().toLowerCase();\n if (s.equals(\"END_OF_TEXT\")) {\n break;\n }\n if (s.equals(w)) {\n c++;\n }\n }\n System.out.println(c);\n } catch (NoSuchElementException e) {\n System.out.println(e);\n }\n }\n}",
"public class Main {\n private static int W = 10;\n private static int T = 1000;\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n try {\n String w = sc.nextLine();\n if (w.length() > W) {\n System.out.println(\"Condition is invalid.\");\n return;\n }\n int c = 0;\n while (sc.hasNext()) {\n String s = sc.next().toLowerCase();\n if (s.equals(\"END_OF_TEXT\")) {\n break;\n }\n if (s.equals(w)) {\n c++;\n }\n }\n System.out.println(c);\n } catch (NoSuchElementException e) {\n System.out.println(e);\n }\n }\n}",
"Main"
]
| import java.util.NoSuchElementException;
import java.util.Scanner;
public class Main {
private static int W = 10;
private static int T = 1000;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
try {
String w = sc.nextLine();
if (w.length() > W) {
System.out.println("Condition is invalid.");
return;
}
int c = 0;
while (sc.hasNext()) {
String s = sc.next().toLowerCase();
if (s.equals("END_OF_TEXT")) {
break;
}
if (s.equals(w)) {
c++;
}
}
System.out.println(c);
} catch (NoSuchElementException 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,
17,
41,
13,
4,
18,
4,
18,
13,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
13,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
36,
41
],
[
41,
42
],
[
30,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
30,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
30,
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
],
[
70,
73
],
[
73,
74
],
[
73,
75
],
[
69,
76
],
[
76,
77
],
[
77,
78
],
[
14,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
12,
85
],
[
85,
86
]
]
| [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\nclass Main{\n\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint count = 0;\n\t\tString search = br.readLine().toLowerCase();\n\n\t\twhile(true){\n\n\t\t\tString str = br.readLine();\n\n\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tstr = str.toLowerCase();\n\t\t\tString[] word = str.split(\" \");\n\n\t\t\tfor(int i = 0; i < word.length; i++){\n\t\t\t\tif(search.equals(word[i])){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"class Main{\n\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint count = 0;\n\t\tString search = br.readLine().toLowerCase();\n\n\t\twhile(true){\n\n\t\t\tString str = br.readLine();\n\n\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tstr = str.toLowerCase();\n\t\t\tString[] word = str.split(\" \");\n\n\t\t\tfor(int i = 0; i < word.length; i++){\n\t\t\t\tif(search.equals(word[i])){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint count = 0;\n\t\tString search = br.readLine().toLowerCase();\n\n\t\twhile(true){\n\n\t\t\tString str = br.readLine();\n\n\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tstr = str.toLowerCase();\n\t\t\tString[] word = str.split(\" \");\n\n\t\t\tfor(int i = 0; i < word.length; i++){\n\t\t\t\tif(search.equals(word[i])){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}",
"main",
"{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint count = 0;\n\t\tString search = br.readLine().toLowerCase();\n\n\t\twhile(true){\n\n\t\t\tString str = br.readLine();\n\n\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tstr = str.toLowerCase();\n\t\t\tString[] word = str.split(\" \");\n\n\t\t\tfor(int i = 0; i < word.length; i++){\n\t\t\t\tif(search.equals(word[i])){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(count);\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int count = 0;",
"count",
"0",
"String search = br.readLine().toLowerCase();",
"search",
"br.readLine().toLowerCase()",
"br.readLine().toLowerCase",
"br.readLine()",
"br.readLine",
"br",
"while(true){\n\n\t\t\tString str = br.readLine();\n\n\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tstr = str.toLowerCase();\n\t\t\tString[] word = str.split(\" \");\n\n\t\t\tfor(int i = 0; i < word.length; i++){\n\t\t\t\tif(search.equals(word[i])){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}",
"true",
"{\n\n\t\t\tString str = br.readLine();\n\n\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tstr = str.toLowerCase();\n\t\t\tString[] word = str.split(\" \");\n\n\t\t\tfor(int i = 0; i < word.length; i++){\n\t\t\t\tif(search.equals(word[i])){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"if(str.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}",
"str.equals(\"END_OF_TEXT\")",
"str.equals",
"str",
"\"END_OF_TEXT\"",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"str = str.toLowerCase()",
"str",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"String[] word = str.split(\" \");",
"word",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"for(int i = 0; i < word.length; i++){\n\t\t\t\tif(search.equals(word[i])){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < word.length",
"i",
"word.length",
"word",
"word.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(search.equals(word[i])){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(search.equals(word[i])){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}",
"if(search.equals(word[i])){\n\t\t\t\t\tcount++;\n\t\t\t\t}",
"search.equals(word[i])",
"search.equals",
"search",
"word[i]",
"word",
"i",
"{\n\t\t\t\t\tcount++;\n\t\t\t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args"
]
| import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int count = 0;
String search = br.readLine().toLowerCase();
while(true){
String str = br.readLine();
if(str.equals("END_OF_TEXT")){
break;
}
str = str.toLowerCase();
String[] word = str.split(" ");
for(int i = 0; i < word.length; i++){
if(search.equals(word[i])){
count++;
}
}
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
20,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
4,
18,
18,
13,
13,
17,
3,
0,
18,
13,
13,
4,
18,
18,
13,
13,
14,
4,
18,
18,
13,
13,
13,
40,
13,
4,
18,
18,
13,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
47,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
49,
56
],
[
41,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
41,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
66,
73
],
[
73,
74
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
6,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String W = sc.next();\n W = W.toLowerCase();\n String T[] = new String[10000];\n int count = 0;\n for(int i=0; i<10000; i++){\n T[i] = sc.next();\n if(T[i].equals(\"END_OF_TEXT\")) break;\n T[i] = T[i].toLowerCase();\n if(T[i].equals(W)) count++;\n } \n System.out.println(count);\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 W = sc.next();\n W = W.toLowerCase();\n String T[] = new String[10000];\n int count = 0;\n for(int i=0; i<10000; i++){\n T[i] = sc.next();\n if(T[i].equals(\"END_OF_TEXT\")) break;\n T[i] = T[i].toLowerCase();\n if(T[i].equals(W)) count++;\n } \n System.out.println(count);\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String W = sc.next();\n W = W.toLowerCase();\n String T[] = new String[10000];\n int count = 0;\n for(int i=0; i<10000; i++){\n T[i] = sc.next();\n if(T[i].equals(\"END_OF_TEXT\")) break;\n T[i] = T[i].toLowerCase();\n if(T[i].equals(W)) count++;\n } \n System.out.println(count);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String W = sc.next();\n W = W.toLowerCase();\n String T[] = new String[10000];\n int count = 0;\n for(int i=0; i<10000; i++){\n T[i] = sc.next();\n if(T[i].equals(\"END_OF_TEXT\")) break;\n T[i] = T[i].toLowerCase();\n if(T[i].equals(W)) count++;\n } \n System.out.println(count);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String W = sc.next();",
"W",
"sc.next()",
"sc.next",
"sc",
"W = W.toLowerCase()",
"W",
"W.toLowerCase()",
"W.toLowerCase",
"W",
"String T[] = new String[10000];",
"T",
"new String[10000]",
"10000",
"int count = 0;",
"count",
"0",
"for(int i=0; i<10000; i++){\n T[i] = sc.next();\n if(T[i].equals(\"END_OF_TEXT\")) break;\n T[i] = T[i].toLowerCase();\n if(T[i].equals(W)) count++;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<10000",
"i",
"10000",
"i++",
"i++",
"i",
"{\n T[i] = sc.next();\n if(T[i].equals(\"END_OF_TEXT\")) break;\n T[i] = T[i].toLowerCase();\n if(T[i].equals(W)) count++;\n }",
"{\n T[i] = sc.next();\n if(T[i].equals(\"END_OF_TEXT\")) break;\n T[i] = T[i].toLowerCase();\n if(T[i].equals(W)) count++;\n }",
"T[i] = sc.next()",
"T[i]",
"T",
"i",
"sc.next()",
"sc.next",
"sc",
"if(T[i].equals(\"END_OF_TEXT\")) break;",
"T[i].equals(\"END_OF_TEXT\")",
"T[i].equals",
"T[i]",
"T",
"i",
"\"END_OF_TEXT\"",
"break;",
"T[i] = T[i].toLowerCase()",
"T[i]",
"T",
"i",
"T[i].toLowerCase()",
"T[i].toLowerCase",
"T[i]",
"T",
"i",
"if(T[i].equals(W)) count++;",
"T[i].equals(W)",
"T[i].equals",
"T[i]",
"T",
"i",
"W",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String args[]",
"args",
"public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String W = sc.next();\n W = W.toLowerCase();\n String T[] = new String[10000];\n int count = 0;\n for(int i=0; i<10000; i++){\n T[i] = sc.next();\n if(T[i].equals(\"END_OF_TEXT\")) break;\n T[i] = T[i].toLowerCase();\n if(T[i].equals(W)) count++;\n } \n System.out.println(count);\n }\n}",
"public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String W = sc.next();\n W = W.toLowerCase();\n String T[] = new String[10000];\n int count = 0;\n for(int i=0; i<10000; i++){\n T[i] = sc.next();\n if(T[i].equals(\"END_OF_TEXT\")) break;\n T[i] = T[i].toLowerCase();\n if(T[i].equals(W)) count++;\n } \n System.out.println(count);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
String W = sc.next();
W = W.toLowerCase();
String T[] = new String[10000];
int count = 0;
for(int i=0; i<10000; i++){
T[i] = sc.next();
if(T[i].equals("END_OF_TEXT")) break;
T[i] = T[i].toLowerCase();
if(T[i].equals(W)) count++;
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
14,
4,
18,
13,
18,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
33,
38
],
[
27,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
27,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
46,
50
],
[
27,
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
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
69,
71
],
[
65,
72
],
[
72,
73
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
6,
80
],
[
80,
81
]
]
| [
"import java.util.Scanner;\n \nclass Main{\n public static void main(String[] arg){\n\n int count = 0;\n \n Scanner in = new Scanner(System.in);\n\n String w = in.nextLine();\n w = w.toLowerCase();\n\n while(true){\n String t = in.nextLine();\n\n if(t.equals(\"END_OF_TEXT\")) break;\n\n t = t.toLowerCase();\n String [] words = t.split(\" \",0);\n\n for(int i=0; i<words.length; i++)\n if(w.equals(words[i]))\n count++;\n }\n\n System.out.println(count);\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] arg){\n\n int count = 0;\n \n Scanner in = new Scanner(System.in);\n\n String w = in.nextLine();\n w = w.toLowerCase();\n\n while(true){\n String t = in.nextLine();\n\n if(t.equals(\"END_OF_TEXT\")) break;\n\n t = t.toLowerCase();\n String [] words = t.split(\" \",0);\n\n for(int i=0; i<words.length; i++)\n if(w.equals(words[i]))\n count++;\n }\n\n System.out.println(count);\n\n }\n}",
"Main",
"public static void main(String[] arg){\n\n int count = 0;\n \n Scanner in = new Scanner(System.in);\n\n String w = in.nextLine();\n w = w.toLowerCase();\n\n while(true){\n String t = in.nextLine();\n\n if(t.equals(\"END_OF_TEXT\")) break;\n\n t = t.toLowerCase();\n String [] words = t.split(\" \",0);\n\n for(int i=0; i<words.length; i++)\n if(w.equals(words[i]))\n count++;\n }\n\n System.out.println(count);\n\n }",
"main",
"{\n\n int count = 0;\n \n Scanner in = new Scanner(System.in);\n\n String w = in.nextLine();\n w = w.toLowerCase();\n\n while(true){\n String t = in.nextLine();\n\n if(t.equals(\"END_OF_TEXT\")) break;\n\n t = t.toLowerCase();\n String [] words = t.split(\" \",0);\n\n for(int i=0; i<words.length; i++)\n if(w.equals(words[i]))\n count++;\n }\n\n System.out.println(count);\n\n }",
"int count = 0;",
"count",
"0",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"String w = in.nextLine();",
"w",
"in.nextLine()",
"in.nextLine",
"in",
"w = w.toLowerCase()",
"w",
"w.toLowerCase()",
"w.toLowerCase",
"w",
"while(true){\n String t = in.nextLine();\n\n if(t.equals(\"END_OF_TEXT\")) break;\n\n t = t.toLowerCase();\n String [] words = t.split(\" \",0);\n\n for(int i=0; i<words.length; i++)\n if(w.equals(words[i]))\n count++;\n }",
"true",
"{\n String t = in.nextLine();\n\n if(t.equals(\"END_OF_TEXT\")) break;\n\n t = t.toLowerCase();\n String [] words = t.split(\" \",0);\n\n for(int i=0; i<words.length; i++)\n if(w.equals(words[i]))\n count++;\n }",
"String t = in.nextLine();",
"t",
"in.nextLine()",
"in.nextLine",
"in",
"if(t.equals(\"END_OF_TEXT\")) break;",
"t.equals(\"END_OF_TEXT\")",
"t.equals",
"t",
"\"END_OF_TEXT\"",
"break;",
"t = t.toLowerCase()",
"t",
"t.toLowerCase()",
"t.toLowerCase",
"t",
"String [] words = t.split(\" \",0);",
"words",
"t.split(\" \",0)",
"t.split",
"t",
"\" \"",
"0",
"for(int i=0; i<words.length; i++)\n if(w.equals(words[i]))\n count++;",
"int i=0;",
"int i=0;",
"i",
"0",
"i<words.length",
"i",
"words.length",
"words",
"words.length",
"i++",
"i++",
"i",
"if(w.equals(words[i]))\n count++;",
"if(w.equals(words[i]))\n count++;",
"w.equals(words[i])",
"w.equals",
"w",
"words[i]",
"words",
"i",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] arg",
"arg"
]
| import java.util.Scanner;
class Main{
public static void main(String[] arg){
int count = 0;
Scanner in = new Scanner(System.in);
String w = in.nextLine();
w = w.toLowerCase();
while(true){
String t = in.nextLine();
if(t.equals("END_OF_TEXT")) break;
t = t.toLowerCase();
String [] words = t.split(" ",0);
for(int i=0; i<words.length; i++)
if(w.equals(words[i]))
count++;
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
13,
17,
30,
3,
14,
2,
2,
4,
18,
13,
13,
17,
2,
4,
18,
13,
13,
17,
30,
40,
13,
0,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
54,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
54,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
54,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
73,
78
],
[
72,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
79,
84
],
[
71,
85
],
[
85,
86
],
[
86,
87
],
[
8,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
6,
100
],
[
100,
101
]
]
| [
"import java.util.Scanner;\n\n/**\n * \n */\n\n/**\n * @author kawakami\n *\n */\nclass Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\nScanner as = new Scanner(System.in);\n\t\t\n\t\tString T = \"\";\n\t\tString TD;\n\t\tString W;\n\t\tString str = \"\";\n\t\tint j = 0;\n\t\tint i = 0;\n\t\tint k = 0;\n\t\tint count = 0;\n\t\tint same = 0;\n\t\tint flag = 0;\n\t\t\n\t\t\n\t\tW = as.nextLine();\n\t\tW = W.toLowerCase();\n\t \n\t \n\t \n\t while(as.hasNext()){ //EOF?????§??±????????????????????£?????????\n\t \t\n\t \tT = as.next();\n\t \tT = T.toLowerCase();\n \n\t \tif(T == \"END_OF_TEXT\"){\n\t\t \n\t \t\tbreak;\n\t \t\t\n\t \t}\n\t \t\n\t \tif(T.indexOf(W) == 0 && T.lastIndexOf(W) == 0){\n\t \t\t\n\t \t\tcount++;\n\t \t\t\n\t \t}\n\t \t\n\t \t//System.out.println(T);\n\t \t//System.out.println(T.indexOf(W)+\":\"+T.lastIndexOf(W));\n\t \t\n\t \t\n \n }\n\t \n\t str = String.valueOf(count);\n\t System.out.println(str);\n\t \n\t \n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\nScanner as = new Scanner(System.in);\n\t\t\n\t\tString T = \"\";\n\t\tString TD;\n\t\tString W;\n\t\tString str = \"\";\n\t\tint j = 0;\n\t\tint i = 0;\n\t\tint k = 0;\n\t\tint count = 0;\n\t\tint same = 0;\n\t\tint flag = 0;\n\t\t\n\t\t\n\t\tW = as.nextLine();\n\t\tW = W.toLowerCase();\n\t \n\t \n\t \n\t while(as.hasNext()){ //EOF?????§??±????????????????????£?????????\n\t \t\n\t \tT = as.next();\n\t \tT = T.toLowerCase();\n \n\t \tif(T == \"END_OF_TEXT\"){\n\t\t \n\t \t\tbreak;\n\t \t\t\n\t \t}\n\t \t\n\t \tif(T.indexOf(W) == 0 && T.lastIndexOf(W) == 0){\n\t \t\t\n\t \t\tcount++;\n\t \t\t\n\t \t}\n\t \t\n\t \t//System.out.println(T);\n\t \t//System.out.println(T.indexOf(W)+\":\"+T.lastIndexOf(W));\n\t \t\n\t \t\n \n }\n\t \n\t str = String.valueOf(count);\n\t System.out.println(str);\n\t \n\t \n\n\t}\n\n}",
"Main",
"/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\nScanner as = new Scanner(System.in);\n\t\t\n\t\tString T = \"\";\n\t\tString TD;\n\t\tString W;\n\t\tString str = \"\";\n\t\tint j = 0;\n\t\tint i = 0;\n\t\tint k = 0;\n\t\tint count = 0;\n\t\tint same = 0;\n\t\tint flag = 0;\n\t\t\n\t\t\n\t\tW = as.nextLine();\n\t\tW = W.toLowerCase();\n\t \n\t \n\t \n\t while(as.hasNext()){ //EOF?????§??±????????????????????£?????????\n\t \t\n\t \tT = as.next();\n\t \tT = T.toLowerCase();\n \n\t \tif(T == \"END_OF_TEXT\"){\n\t\t \n\t \t\tbreak;\n\t \t\t\n\t \t}\n\t \t\n\t \tif(T.indexOf(W) == 0 && T.lastIndexOf(W) == 0){\n\t \t\t\n\t \t\tcount++;\n\t \t\t\n\t \t}\n\t \t\n\t \t//System.out.println(T);\n\t \t//System.out.println(T.indexOf(W)+\":\"+T.lastIndexOf(W));\n\t \t\n\t \t\n \n }\n\t \n\t str = String.valueOf(count);\n\t System.out.println(str);\n\t \n\t \n\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\nScanner as = new Scanner(System.in);\n\t\t\n\t\tString T = \"\";\n\t\tString TD;\n\t\tString W;\n\t\tString str = \"\";\n\t\tint j = 0;\n\t\tint i = 0;\n\t\tint k = 0;\n\t\tint count = 0;\n\t\tint same = 0;\n\t\tint flag = 0;\n\t\t\n\t\t\n\t\tW = as.nextLine();\n\t\tW = W.toLowerCase();\n\t \n\t \n\t \n\t while(as.hasNext()){ //EOF?????§??±????????????????????£?????????\n\t \t\n\t \tT = as.next();\n\t \tT = T.toLowerCase();\n \n\t \tif(T == \"END_OF_TEXT\"){\n\t\t \n\t \t\tbreak;\n\t \t\t\n\t \t}\n\t \t\n\t \tif(T.indexOf(W) == 0 && T.lastIndexOf(W) == 0){\n\t \t\t\n\t \t\tcount++;\n\t \t\t\n\t \t}\n\t \t\n\t \t//System.out.println(T);\n\t \t//System.out.println(T.indexOf(W)+\":\"+T.lastIndexOf(W));\n\t \t\n\t \t\n \n }\n\t \n\t str = String.valueOf(count);\n\t System.out.println(str);\n\t \n\t \n\n\t}",
"Scanner as = new Scanner(System.in);",
"as",
"new Scanner(System.in)",
"String T = \"\";",
"T",
"\"\"",
"String TD;",
"TD",
"String W;",
"W",
"String str = \"\";",
"str",
"\"\"",
"int j = 0;",
"j",
"0",
"int i = 0;",
"i",
"0",
"int k = 0;",
"k",
"0",
"int count = 0;",
"count",
"0",
"int same = 0;",
"same",
"0",
"int flag = 0;",
"flag",
"0",
"W = as.nextLine()",
"W",
"as.nextLine()",
"as.nextLine",
"as",
"W = W.toLowerCase()",
"W",
"W.toLowerCase()",
"W.toLowerCase",
"W",
"while(as.hasNext()){ //EOF?????§??±????????????????????£?????????\n\t \t\n\t \tT = as.next();\n\t \tT = T.toLowerCase();\n \n\t \tif(T == \"END_OF_TEXT\"){\n\t\t \n\t \t\tbreak;\n\t \t\t\n\t \t}\n\t \t\n\t \tif(T.indexOf(W) == 0 && T.lastIndexOf(W) == 0){\n\t \t\t\n\t \t\tcount++;\n\t \t\t\n\t \t}\n\t \t\n\t \t//System.out.println(T);\n\t \t//System.out.println(T.indexOf(W)+\":\"+T.lastIndexOf(W));\n\t \t\n\t \t\n \n }",
"as.hasNext()",
"as.hasNext",
"as",
"{ //EOF?????§??±????????????????????£?????????\n\t \t\n\t \tT = as.next();\n\t \tT = T.toLowerCase();\n \n\t \tif(T == \"END_OF_TEXT\"){\n\t\t \n\t \t\tbreak;\n\t \t\t\n\t \t}\n\t \t\n\t \tif(T.indexOf(W) == 0 && T.lastIndexOf(W) == 0){\n\t \t\t\n\t \t\tcount++;\n\t \t\t\n\t \t}\n\t \t\n\t \t//System.out.println(T);\n\t \t//System.out.println(T.indexOf(W)+\":\"+T.lastIndexOf(W));\n\t \t\n\t \t\n \n }",
"T = as.next()",
"T",
"as.next()",
"as.next",
"as",
"T = T.toLowerCase()",
"T",
"T.toLowerCase()",
"T.toLowerCase",
"T",
"if(T == \"END_OF_TEXT\"){\n\t\t \n\t \t\tbreak;\n\t \t\t\n\t \t}",
"T == \"END_OF_TEXT\"",
"T",
"\"END_OF_TEXT\"",
"{\n\t\t \n\t \t\tbreak;\n\t \t\t\n\t \t}",
"break;",
"if(T.indexOf(W) == 0 && T.lastIndexOf(W) == 0){\n\t \t\t\n\t \t\tcount++;\n\t \t\t\n\t \t}",
"T.indexOf(W) == 0 && T.lastIndexOf(W) == 0",
"T.indexOf(W) == 0",
"T.indexOf(W)",
"T.indexOf",
"T",
"W",
"0",
"T.lastIndexOf(W) == 0",
"T.lastIndexOf(W)",
"T.lastIndexOf",
"T",
"W",
"0",
"{\n\t \t\t\n\t \t\tcount++;\n\t \t\t\n\t \t}",
"count++",
"count",
"str = String.valueOf(count)",
"str",
"String.valueOf(count)",
"String.valueOf",
"String",
"count",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"String[] args",
"args"
]
| import java.util.Scanner;
/**
*
*/
/**
* @author kawakami
*
*/
class Main {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner as = new Scanner(System.in);
String T = "";
String TD;
String W;
String str = "";
int j = 0;
int i = 0;
int k = 0;
int count = 0;
int same = 0;
int flag = 0;
W = as.nextLine();
W = W.toLowerCase();
while(as.hasNext()){ //EOF?????§??±????????????????????£?????????
T = as.next();
T = T.toLowerCase();
if(T == "END_OF_TEXT"){
break;
}
if(T.indexOf(W) == 0 && T.lastIndexOf(W) == 0){
count++;
}
//System.out.println(T);
//System.out.println(T.indexOf(W)+":"+T.lastIndexOf(W));
}
str = String.valueOf(count);
System.out.println(str);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
42,
17,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
0,
13,
4,
18,
13,
14,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
73,
5
],
[
73,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
41,
46
],
[
46,
47
],
[
35,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
35,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
53,
58
],
[
58,
59
],
[
59,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
8,
67
],
[
67,
68
],
[
68,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in); \n String word;\n String Lower_word;\n String text;\n String Lower_text;\n int count = 0;\n word = sc.next();\n Lower_word = word.toLowerCase();\n while(true){\n text = sc.next();\n if (text.equals(\"END_OF_TEXT\")){\n break;\n }\n Lower_text = text.toLowerCase();\n if(Lower_text.equals(Lower_word)){\n count++;\n }\n }\n System.out.println(count);\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in); \n String word;\n String Lower_word;\n String text;\n String Lower_text;\n int count = 0;\n word = sc.next();\n Lower_word = word.toLowerCase();\n while(true){\n text = sc.next();\n if (text.equals(\"END_OF_TEXT\")){\n break;\n }\n Lower_text = text.toLowerCase();\n if(Lower_text.equals(Lower_word)){\n count++;\n }\n }\n System.out.println(count);\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in); \n String word;\n String Lower_word;\n String text;\n String Lower_text;\n int count = 0;\n word = sc.next();\n Lower_word = word.toLowerCase();\n while(true){\n text = sc.next();\n if (text.equals(\"END_OF_TEXT\")){\n break;\n }\n Lower_text = text.toLowerCase();\n if(Lower_text.equals(Lower_word)){\n count++;\n }\n }\n System.out.println(count);\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in); \n String word;\n String Lower_word;\n String text;\n String Lower_text;\n int count = 0;\n word = sc.next();\n Lower_word = word.toLowerCase();\n while(true){\n text = sc.next();\n if (text.equals(\"END_OF_TEXT\")){\n break;\n }\n Lower_text = text.toLowerCase();\n if(Lower_text.equals(Lower_word)){\n count++;\n }\n }\n System.out.println(count);\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String word;",
"word",
"String Lower_word;",
"Lower_word",
"String text;",
"text",
"String Lower_text;",
"Lower_text",
"int count = 0;",
"count",
"0",
"word = sc.next()",
"word",
"sc.next()",
"sc.next",
"sc",
"Lower_word = word.toLowerCase()",
"Lower_word",
"word.toLowerCase()",
"word.toLowerCase",
"word",
"while(true){\n text = sc.next();\n if (text.equals(\"END_OF_TEXT\")){\n break;\n }\n Lower_text = text.toLowerCase();\n if(Lower_text.equals(Lower_word)){\n count++;\n }\n }",
"true",
"{\n text = sc.next();\n if (text.equals(\"END_OF_TEXT\")){\n break;\n }\n Lower_text = text.toLowerCase();\n if(Lower_text.equals(Lower_word)){\n count++;\n }\n }",
"text = sc.next()",
"text",
"sc.next()",
"sc.next",
"sc",
"if (text.equals(\"END_OF_TEXT\")){\n break;\n }",
"text.equals(\"END_OF_TEXT\")",
"text.equals",
"text",
"\"END_OF_TEXT\"",
"{\n break;\n }",
"break;",
"Lower_text = text.toLowerCase()",
"Lower_text",
"text.toLowerCase()",
"text.toLowerCase",
"text",
"if(Lower_text.equals(Lower_word)){\n count++;\n }",
"Lower_text.equals(Lower_word)",
"Lower_text.equals",
"Lower_text",
"Lower_word",
"{\n count++;\n }",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in); \n String word;\n String Lower_word;\n String text;\n String Lower_text;\n int count = 0;\n word = sc.next();\n Lower_word = word.toLowerCase();\n while(true){\n text = sc.next();\n if (text.equals(\"END_OF_TEXT\")){\n break;\n }\n Lower_text = text.toLowerCase();\n if(Lower_text.equals(Lower_word)){\n count++;\n }\n }\n System.out.println(count);\n sc.close();\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in); \n String word;\n String Lower_word;\n String text;\n String Lower_text;\n int count = 0;\n word = sc.next();\n Lower_word = word.toLowerCase();\n while(true){\n text = sc.next();\n if (text.equals(\"END_OF_TEXT\")){\n break;\n }\n Lower_text = text.toLowerCase();\n if(Lower_text.equals(Lower_word)){\n count++;\n }\n }\n System.out.println(count);\n sc.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String word;
String Lower_word;
String text;
String Lower_text;
int count = 0;
word = sc.next();
Lower_word = word.toLowerCase();
while(true){
text = sc.next();
if (text.equals("END_OF_TEXT")){
break;
}
Lower_text = text.toLowerCase();
if(Lower_text.equals(Lower_word)){
count++;
}
}
System.out.println(count);
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
17,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
0,
13,
4,
18,
13,
14,
4,
18,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
28,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
38,
43
],
[
32,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
32,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
49,
54
],
[
54,
55
],
[
8,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
6,
62
],
[
62,
63
]
]
| [
"import java.util.*;\nclass Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int count=0;\n String word=sc.nextLine();\n word=word.toLowerCase();\n String sent=\"\";\n while(sc.hasNext()){\n sent=sc.next();\n if(sent.equals(\"END_OF_TEXT\")) break;\n sent=sent.toLowerCase();\n if(sent.equals(word))\n count++;\n }\n System.out.println(count);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int count=0;\n String word=sc.nextLine();\n word=word.toLowerCase();\n String sent=\"\";\n while(sc.hasNext()){\n sent=sc.next();\n if(sent.equals(\"END_OF_TEXT\")) break;\n sent=sent.toLowerCase();\n if(sent.equals(word))\n count++;\n }\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int count=0;\n String word=sc.nextLine();\n word=word.toLowerCase();\n String sent=\"\";\n while(sc.hasNext()){\n sent=sc.next();\n if(sent.equals(\"END_OF_TEXT\")) break;\n sent=sent.toLowerCase();\n if(sent.equals(word))\n count++;\n }\n System.out.println(count);\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int count=0;\n String word=sc.nextLine();\n word=word.toLowerCase();\n String sent=\"\";\n while(sc.hasNext()){\n sent=sc.next();\n if(sent.equals(\"END_OF_TEXT\")) break;\n sent=sent.toLowerCase();\n if(sent.equals(word))\n count++;\n }\n System.out.println(count);\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int count=0;",
"count",
"0",
"String word=sc.nextLine();",
"word",
"sc.nextLine()",
"sc.nextLine",
"sc",
"word=word.toLowerCase()",
"word",
"word.toLowerCase()",
"word.toLowerCase",
"word",
"String sent=\"\";",
"sent",
"\"\"",
"while(sc.hasNext()){\n sent=sc.next();\n if(sent.equals(\"END_OF_TEXT\")) break;\n sent=sent.toLowerCase();\n if(sent.equals(word))\n count++;\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n sent=sc.next();\n if(sent.equals(\"END_OF_TEXT\")) break;\n sent=sent.toLowerCase();\n if(sent.equals(word))\n count++;\n }",
"sent=sc.next()",
"sent",
"sc.next()",
"sc.next",
"sc",
"if(sent.equals(\"END_OF_TEXT\")) break;",
"sent.equals(\"END_OF_TEXT\")",
"sent.equals",
"sent",
"\"END_OF_TEXT\"",
"break;",
"sent=sent.toLowerCase()",
"sent",
"sent.toLowerCase()",
"sent.toLowerCase",
"sent",
"if(sent.equals(word))\n count++;",
"sent.equals(word)",
"sent.equals",
"sent",
"word",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args"
]
| import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int count=0;
String word=sc.nextLine();
word=word.toLowerCase();
String sent="";
while(sc.hasNext()){
sent=sc.next();
if(sent.equals("END_OF_TEXT")) break;
sent=sent.toLowerCase();
if(sent.equals(word))
count++;
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
41,
13,
0,
13,
4,
18,
13,
42,
17,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
30,
14,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
57,
5
],
[
57,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
26,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
32,
37
],
[
37,
38
],
[
32,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
40,
45
],
[
45,
46
],
[
46,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int count = 0;\n String S,SS;\n SS = sc.next();\n //System.out.println(SS);\n while(true){\n S = sc.next();\n if(S.equals(\"END_OF_TEXT\")){\n break;\n }else{\n if(S.equalsIgnoreCase(SS)){\n count++;\n }\n } \n }\n System.out.println(count);\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 = 0;\n String S,SS;\n SS = sc.next();\n //System.out.println(SS);\n while(true){\n S = sc.next();\n if(S.equals(\"END_OF_TEXT\")){\n break;\n }else{\n if(S.equalsIgnoreCase(SS)){\n count++;\n }\n } \n }\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int count = 0;\n String S,SS;\n SS = sc.next();\n //System.out.println(SS);\n while(true){\n S = sc.next();\n if(S.equals(\"END_OF_TEXT\")){\n break;\n }else{\n if(S.equalsIgnoreCase(SS)){\n count++;\n }\n } \n }\n System.out.println(count);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int count = 0;\n String S,SS;\n SS = sc.next();\n //System.out.println(SS);\n while(true){\n S = sc.next();\n if(S.equals(\"END_OF_TEXT\")){\n break;\n }else{\n if(S.equalsIgnoreCase(SS)){\n count++;\n }\n } \n }\n System.out.println(count);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int count = 0;",
"count",
"0",
"String S",
"S",
"SS;",
"SS",
"SS = sc.next()",
"SS",
"sc.next()",
"sc.next",
"sc",
"while(true){\n S = sc.next();\n if(S.equals(\"END_OF_TEXT\")){\n break;\n }else{\n if(S.equalsIgnoreCase(SS)){\n count++;\n }\n } \n }",
"true",
"{\n S = sc.next();\n if(S.equals(\"END_OF_TEXT\")){\n break;\n }else{\n if(S.equalsIgnoreCase(SS)){\n count++;\n }\n } \n }",
"S = sc.next()",
"S",
"sc.next()",
"sc.next",
"sc",
"if(S.equals(\"END_OF_TEXT\")){\n break;\n }else{\n if(S.equalsIgnoreCase(SS)){\n count++;\n }\n }",
"S.equals(\"END_OF_TEXT\")",
"S.equals",
"S",
"\"END_OF_TEXT\"",
"{\n break;\n }",
"break;",
"{\n if(S.equalsIgnoreCase(SS)){\n count++;\n }\n }",
"if(S.equalsIgnoreCase(SS)){\n count++;\n }",
"S.equalsIgnoreCase(SS)",
"S.equalsIgnoreCase",
"S",
"SS",
"{\n count++;\n }",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int count = 0;\n String S,SS;\n SS = sc.next();\n //System.out.println(SS);\n while(true){\n S = sc.next();\n if(S.equals(\"END_OF_TEXT\")){\n break;\n }else{\n if(S.equalsIgnoreCase(SS)){\n count++;\n }\n } \n }\n System.out.println(count);\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int count = 0;\n String S,SS;\n SS = sc.next();\n //System.out.println(SS);\n while(true){\n S = sc.next();\n if(S.equals(\"END_OF_TEXT\")){\n break;\n }else{\n if(S.equalsIgnoreCase(SS)){\n count++;\n }\n } \n }\n System.out.println(count);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int count = 0;
String S,SS;
SS = sc.next();
//System.out.println(SS);
while(true){
S = sc.next();
if(S.equals("END_OF_TEXT")){
break;
}else{
if(S.equalsIgnoreCase(SS)){
count++;
}
}
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
41,
13,
41,
13,
17,
42,
40,
4,
18,
0,
13,
4,
18,
13,
17,
30,
14,
4,
18,
4,
18,
13,
13,
30,
40,
13,
4,
18,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
57,
5
],
[
57,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
26,
33
],
[
24,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
36,
41
],
[
35,
42
],
[
42,
43
],
[
43,
44
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String W = sc.next().toLowerCase();\n String T;\n int count=0;\n\n while(!(T = sc.next()).equals(\"END_OF_TEXT\")){\n if(T.toLowerCase().equals(W)){\n count++;\n }\n }\n sc.close();\n System.out.println(count);\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 W = sc.next().toLowerCase();\n String T;\n int count=0;\n\n while(!(T = sc.next()).equals(\"END_OF_TEXT\")){\n if(T.toLowerCase().equals(W)){\n count++;\n }\n }\n sc.close();\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String W = sc.next().toLowerCase();\n String T;\n int count=0;\n\n while(!(T = sc.next()).equals(\"END_OF_TEXT\")){\n if(T.toLowerCase().equals(W)){\n count++;\n }\n }\n sc.close();\n System.out.println(count);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String W = sc.next().toLowerCase();\n String T;\n int count=0;\n\n while(!(T = sc.next()).equals(\"END_OF_TEXT\")){\n if(T.toLowerCase().equals(W)){\n count++;\n }\n }\n sc.close();\n System.out.println(count);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String W = sc.next().toLowerCase();",
"W",
"sc.next().toLowerCase()",
"sc.next().toLowerCase",
"sc.next()",
"sc.next",
"sc",
"String T;",
"T",
"int count=0;",
"count",
"0",
"while(!(T = sc.next()).equals(\"END_OF_TEXT\")){\n if(T.toLowerCase().equals(W)){\n count++;\n }\n }",
"!(T = sc.next()).equals(\"END_OF_TEXT\")",
"(T = sc.next()).equals(\"END_OF_TEXT\")",
"(T = sc.next()).equals",
"(T = sc.next())",
"T",
"sc.next()",
"sc.next",
"sc",
"\"END_OF_TEXT\"",
"{\n if(T.toLowerCase().equals(W)){\n count++;\n }\n }",
"if(T.toLowerCase().equals(W)){\n count++;\n }",
"T.toLowerCase().equals(W)",
"T.toLowerCase().equals",
"T.toLowerCase()",
"T.toLowerCase",
"T",
"W",
"{\n count++;\n }",
"count++",
"count",
"sc.close()",
"sc.close",
"sc",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String W = sc.next().toLowerCase();\n String T;\n int count=0;\n\n while(!(T = sc.next()).equals(\"END_OF_TEXT\")){\n if(T.toLowerCase().equals(W)){\n count++;\n }\n }\n sc.close();\n System.out.println(count);\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String W = sc.next().toLowerCase();\n String T;\n int count=0;\n\n while(!(T = sc.next()).equals(\"END_OF_TEXT\")){\n if(T.toLowerCase().equals(W)){\n count++;\n }\n }\n sc.close();\n System.out.println(count);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String W = sc.next().toLowerCase();
String T;
int count=0;
while(!(T = sc.next()).equals("END_OF_TEXT")){
if(T.toLowerCase().equals(W)){
count++;
}
}
sc.close();
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
17,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
4,
18,
13,
42,
13,
30,
0,
13,
4,
18,
4,
18,
13,
17,
28,
13,
13,
30,
30,
14,
4,
18,
13,
17,
30,
0,
13,
17,
3,
14,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
82,
11
],
[
82,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
20,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
26,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
33,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
44,
49
],
[
41,
50
],
[
50,
51
],
[
50,
52
],
[
50,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
55,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
54,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
65,
70
],
[
70,
71
],
[
71,
72
],
[
33,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
12,
79
],
[
79,
80
],
[
0,
81
],
[
81,
82
],
[
81,
83
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString t[];\n\t\tint count = 0;\n\t\tboolean flag=true;\n\t\ttry {\n\t\t\tString w = br.readLine();\n\t\t\twhile(flag){\n\t\t\t\tt = br.readLine().split(\" \");\n\t\t\t\tfor (String string : t) {\n\t\t\t\t\tif(string.equals(\"END_OF_TEXT\")){\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(string.equalsIgnoreCase(w)){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\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) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString t[];\n\t\tint count = 0;\n\t\tboolean flag=true;\n\t\ttry {\n\t\t\tString w = br.readLine();\n\t\t\twhile(flag){\n\t\t\t\tt = br.readLine().split(\" \");\n\t\t\t\tfor (String string : t) {\n\t\t\t\t\tif(string.equals(\"END_OF_TEXT\")){\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(string.equalsIgnoreCase(w)){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString t[];\n\t\tint count = 0;\n\t\tboolean flag=true;\n\t\ttry {\n\t\t\tString w = br.readLine();\n\t\t\twhile(flag){\n\t\t\t\tt = br.readLine().split(\" \");\n\t\t\t\tfor (String string : t) {\n\t\t\t\t\tif(string.equals(\"END_OF_TEXT\")){\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(string.equalsIgnoreCase(w)){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString t[];\n\t\tint count = 0;\n\t\tboolean flag=true;\n\t\ttry {\n\t\t\tString w = br.readLine();\n\t\t\twhile(flag){\n\t\t\t\tt = br.readLine().split(\" \");\n\t\t\t\tfor (String string : t) {\n\t\t\t\t\tif(string.equals(\"END_OF_TEXT\")){\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(string.equalsIgnoreCase(w)){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String t[];",
"t",
"int count = 0;",
"count",
"0",
"boolean flag=true;",
"flag",
"true",
"try {\n\t\t\tString w = br.readLine();\n\t\t\twhile(flag){\n\t\t\t\tt = br.readLine().split(\" \");\n\t\t\t\tfor (String string : t) {\n\t\t\t\t\tif(string.equals(\"END_OF_TEXT\")){\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(string.equalsIgnoreCase(w)){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"IOException e",
"{\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\tString w = br.readLine();\n\t\t\twhile(flag){\n\t\t\t\tt = br.readLine().split(\" \");\n\t\t\t\tfor (String string : t) {\n\t\t\t\t\tif(string.equals(\"END_OF_TEXT\")){\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(string.equalsIgnoreCase(w)){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}",
"String w = br.readLine();",
"w",
"br.readLine()",
"br.readLine",
"br",
"while(flag){\n\t\t\t\tt = br.readLine().split(\" \");\n\t\t\t\tfor (String string : t) {\n\t\t\t\t\tif(string.equals(\"END_OF_TEXT\")){\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(string.equalsIgnoreCase(w)){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"flag",
"{\n\t\t\t\tt = br.readLine().split(\" \");\n\t\t\t\tfor (String string : t) {\n\t\t\t\t\tif(string.equals(\"END_OF_TEXT\")){\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(string.equalsIgnoreCase(w)){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"t = br.readLine().split(\" \")",
"t",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for (String string : t) {\n\t\t\t\t\tif(string.equals(\"END_OF_TEXT\")){\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(string.equalsIgnoreCase(w)){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}",
"String string",
"t",
"{\n\t\t\t\t\tif(string.equals(\"END_OF_TEXT\")){\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(string.equalsIgnoreCase(w)){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif(string.equals(\"END_OF_TEXT\")){\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(string.equalsIgnoreCase(w)){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}",
"if(string.equals(\"END_OF_TEXT\")){\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"string.equals(\"END_OF_TEXT\")",
"string.equals",
"string",
"\"END_OF_TEXT\"",
"{\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"flag = false",
"flag",
"false",
"break;",
"if(string.equalsIgnoreCase(w)){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}",
"string.equalsIgnoreCase(w)",
"string.equalsIgnoreCase",
"string",
"w",
"{\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString t[];\n\t\tint count = 0;\n\t\tboolean flag=true;\n\t\ttry {\n\t\t\tString w = br.readLine();\n\t\t\twhile(flag){\n\t\t\t\tt = br.readLine().split(\" \");\n\t\t\t\tfor (String string : t) {\n\t\t\t\t\tif(string.equals(\"END_OF_TEXT\")){\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(string.equalsIgnoreCase(w)){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString t[];\n\t\tint count = 0;\n\t\tboolean flag=true;\n\t\ttry {\n\t\t\tString w = br.readLine();\n\t\t\twhile(flag){\n\t\t\t\tt = br.readLine().split(\" \");\n\t\t\t\tfor (String string : t) {\n\t\t\t\t\tif(string.equals(\"END_OF_TEXT\")){\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(string.equalsIgnoreCase(w)){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\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) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String t[];
int count = 0;
boolean flag=true;
try {
String w = br.readLine();
while(flag){
t = br.readLine().split(" ");
for (String string : t) {
if(string.equals("END_OF_TEXT")){
flag = false;
break;
}
if(string.equalsIgnoreCase(w)){
count++;
}
}
}
System.out.println(count);
} catch (IOException e) {
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
4,
18,
13,
42,
4,
18,
13,
30,
41,
13,
4,
18,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
14,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
58,
5
],
[
58,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
22,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
34,
39
],
[
39,
40
],
[
34,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
41,
46
],
[
46,
47
],
[
47,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
6,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\tint ans = 0;\n\t\tString search = std.next().toLowerCase();\n\t\twhile(std.hasNext()){\n\t\t\tString word = std.next().toLowerCase();\n\t\t\tif(word.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else if(word.equals(search)){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\tint ans = 0;\n\t\tString search = std.next().toLowerCase();\n\t\twhile(std.hasNext()){\n\t\t\tString word = std.next().toLowerCase();\n\t\t\tif(word.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else if(word.equals(search)){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\tint ans = 0;\n\t\tString search = std.next().toLowerCase();\n\t\twhile(std.hasNext()){\n\t\t\tString word = std.next().toLowerCase();\n\t\t\tif(word.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else if(word.equals(search)){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\t\tScanner std = new Scanner(System.in);\n\t\tint ans = 0;\n\t\tString search = std.next().toLowerCase();\n\t\twhile(std.hasNext()){\n\t\t\tString word = std.next().toLowerCase();\n\t\t\tif(word.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else if(word.equals(search)){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}",
"Scanner std = new Scanner(System.in);",
"std",
"new Scanner(System.in)",
"int ans = 0;",
"ans",
"0",
"String search = std.next().toLowerCase();",
"search",
"std.next().toLowerCase()",
"std.next().toLowerCase",
"std.next()",
"std.next",
"std",
"while(std.hasNext()){\n\t\t\tString word = std.next().toLowerCase();\n\t\t\tif(word.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else if(word.equals(search)){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"std.hasNext()",
"std.hasNext",
"std",
"{\n\t\t\tString word = std.next().toLowerCase();\n\t\t\tif(word.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else if(word.equals(search)){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"String word = std.next().toLowerCase();",
"word",
"std.next().toLowerCase()",
"std.next().toLowerCase",
"std.next()",
"std.next",
"std",
"if(word.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else if(word.equals(search)){\n\t\t\t\tans++;\n\t\t\t}",
"word.equals(\"END_OF_TEXT\")",
"word.equals",
"word",
"\"END_OF_TEXT\"",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"if(word.equals(search)){\n\t\t\t\tans++;\n\t\t\t}",
"word.equals(search)",
"word.equals",
"word",
"search",
"{\n\t\t\t\tans++;\n\t\t\t}",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\tint ans = 0;\n\t\tString search = std.next().toLowerCase();\n\t\twhile(std.hasNext()){\n\t\t\tString word = std.next().toLowerCase();\n\t\t\tif(word.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else if(word.equals(search)){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\tint ans = 0;\n\t\tString search = std.next().toLowerCase();\n\t\twhile(std.hasNext()){\n\t\t\tString word = std.next().toLowerCase();\n\t\t\tif(word.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else if(word.equals(search)){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner std = new Scanner(System.in);
int ans = 0;
String search = std.next().toLowerCase();
while(std.hasNext()){
String word = std.next().toLowerCase();
if(word.equals("END_OF_TEXT")){
break;
}else if(word.equals(search)){
ans++;
}
}
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
41,
13,
4,
18,
13,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
4,
18,
13,
13,
14,
4,
18,
13,
13,
3,
14,
4,
18,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
70,
8
],
[
70,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
11,
27
],
[
27,
28
],
[
11,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
11,
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
],
[
44,
47
],
[
38,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
48,
53
],
[
38,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
54,
59
],
[
59,
60
],
[
11,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
9,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
]
| [
"import java.util.Scanner;\nimport java.util.ArrayList;\n\npublic class Main {\n\tpublic static void main(String [] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<String> charcter = new ArrayList<String>();\n\t\tfinal String END = \"END_OF_TEXT\";\n\t\tint count = 0;\n\t\tint i = 0;\n\t\tString sentence;\n\t\t\n\t\tString word = scan.nextLine();\n\t\t\n\t\tdo {\n\t\t\t\n\t\t\tsentence = scan.next();\n\t\t\tcharcter.add(sentence);\n\t\t\t\n\t\t\tif (sentence.equals(END)) break;\n\t\t\t\n\t\t\tif ( sentence.equalsIgnoreCase(word)) count++;\n\t\t\t\n\t\t} while(scan.hasNext());\n\t\t\n\t\tSystem.out.println(count);\n\t\t\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"public class Main {\n\tpublic static void main(String [] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<String> charcter = new ArrayList<String>();\n\t\tfinal String END = \"END_OF_TEXT\";\n\t\tint count = 0;\n\t\tint i = 0;\n\t\tString sentence;\n\t\t\n\t\tString word = scan.nextLine();\n\t\t\n\t\tdo {\n\t\t\t\n\t\t\tsentence = scan.next();\n\t\t\tcharcter.add(sentence);\n\t\t\t\n\t\t\tif (sentence.equals(END)) break;\n\t\t\t\n\t\t\tif ( sentence.equalsIgnoreCase(word)) count++;\n\t\t\t\n\t\t} while(scan.hasNext());\n\t\t\n\t\tSystem.out.println(count);\n\t\t\n\t}\n}",
"Main",
"public static void main(String [] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<String> charcter = new ArrayList<String>();\n\t\tfinal String END = \"END_OF_TEXT\";\n\t\tint count = 0;\n\t\tint i = 0;\n\t\tString sentence;\n\t\t\n\t\tString word = scan.nextLine();\n\t\t\n\t\tdo {\n\t\t\t\n\t\t\tsentence = scan.next();\n\t\t\tcharcter.add(sentence);\n\t\t\t\n\t\t\tif (sentence.equals(END)) break;\n\t\t\t\n\t\t\tif ( sentence.equalsIgnoreCase(word)) count++;\n\t\t\t\n\t\t} while(scan.hasNext());\n\t\t\n\t\tSystem.out.println(count);\n\t\t\n\t}",
"main",
"{\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<String> charcter = new ArrayList<String>();\n\t\tfinal String END = \"END_OF_TEXT\";\n\t\tint count = 0;\n\t\tint i = 0;\n\t\tString sentence;\n\t\t\n\t\tString word = scan.nextLine();\n\t\t\n\t\tdo {\n\t\t\t\n\t\t\tsentence = scan.next();\n\t\t\tcharcter.add(sentence);\n\t\t\t\n\t\t\tif (sentence.equals(END)) break;\n\t\t\t\n\t\t\tif ( sentence.equalsIgnoreCase(word)) count++;\n\t\t\t\n\t\t} while(scan.hasNext());\n\t\t\n\t\tSystem.out.println(count);\n\t\t\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"ArrayList<String> charcter = new ArrayList<String>();",
"charcter",
"new ArrayList<String>()",
"final String END = \"END_OF_TEXT\";",
"END",
"\"END_OF_TEXT\"",
"int count = 0;",
"count",
"0",
"int i = 0;",
"i",
"0",
"String sentence;",
"sentence",
"String word = scan.nextLine();",
"word",
"scan.nextLine()",
"scan.nextLine",
"scan",
"do {\n\t\t\t\n\t\t\tsentence = scan.next();\n\t\t\tcharcter.add(sentence);\n\t\t\t\n\t\t\tif (sentence.equals(END)) break;\n\t\t\t\n\t\t\tif ( sentence.equalsIgnoreCase(word)) count++;\n\t\t\t\n\t\t} while(scan.hasNext());",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n\t\t\t\n\t\t\tsentence = scan.next();\n\t\t\tcharcter.add(sentence);\n\t\t\t\n\t\t\tif (sentence.equals(END)) break;\n\t\t\t\n\t\t\tif ( sentence.equalsIgnoreCase(word)) count++;\n\t\t\t\n\t\t}",
"sentence = scan.next()",
"sentence",
"scan.next()",
"scan.next",
"scan",
"charcter.add(sentence)",
"charcter.add",
"charcter",
"sentence",
"if (sentence.equals(END)) break;",
"sentence.equals(END)",
"sentence.equals",
"sentence",
"END",
"break;",
"if ( sentence.equalsIgnoreCase(word)) count++;",
"sentence.equalsIgnoreCase(word)",
"sentence.equalsIgnoreCase",
"sentence",
"word",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String [] args",
"args",
"public class Main {\n\tpublic static void main(String [] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<String> charcter = new ArrayList<String>();\n\t\tfinal String END = \"END_OF_TEXT\";\n\t\tint count = 0;\n\t\tint i = 0;\n\t\tString sentence;\n\t\t\n\t\tString word = scan.nextLine();\n\t\t\n\t\tdo {\n\t\t\t\n\t\t\tsentence = scan.next();\n\t\t\tcharcter.add(sentence);\n\t\t\t\n\t\t\tif (sentence.equals(END)) break;\n\t\t\t\n\t\t\tif ( sentence.equalsIgnoreCase(word)) count++;\n\t\t\t\n\t\t} while(scan.hasNext());\n\t\t\n\t\tSystem.out.println(count);\n\t\t\n\t}\n}",
"public class Main {\n\tpublic static void main(String [] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<String> charcter = new ArrayList<String>();\n\t\tfinal String END = \"END_OF_TEXT\";\n\t\tint count = 0;\n\t\tint i = 0;\n\t\tString sentence;\n\t\t\n\t\tString word = scan.nextLine();\n\t\t\n\t\tdo {\n\t\t\t\n\t\t\tsentence = scan.next();\n\t\t\tcharcter.add(sentence);\n\t\t\t\n\t\t\tif (sentence.equals(END)) break;\n\t\t\t\n\t\t\tif ( sentence.equalsIgnoreCase(word)) count++;\n\t\t\t\n\t\t} while(scan.hasNext());\n\t\t\n\t\tSystem.out.println(count);\n\t\t\n\t}\n}",
"Main"
]
| import java.util.Scanner;
import java.util.ArrayList;
public class Main {
public static void main(String [] args) {
Scanner scan = new Scanner(System.in);
ArrayList<String> charcter = new ArrayList<String>();
final String END = "END_OF_TEXT";
int count = 0;
int i = 0;
String sentence;
String word = scan.nextLine();
do {
sentence = scan.next();
charcter.add(sentence);
if (sentence.equals(END)) break;
if ( sentence.equalsIgnoreCase(word)) count++;
} while(scan.hasNext());
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
13,
5,
13,
30,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
2,
4,
18,
0,
13,
4,
18,
13,
17,
17,
30,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
18,
13,
13,
14,
2,
4,
18,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
102,
11
],
[
102,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
18,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
18,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
31,
37
],
[
37,
38
],
[
37,
39
],
[
31,
40
],
[
40,
41
],
[
40,
42
],
[
31,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
45,
52
],
[
44,
53
],
[
43,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
54,
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
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
75,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
84,
89
],
[
83,
90
],
[
90,
91
],
[
91,
92
],
[
31,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
12,
99
],
[
99,
100
],
[
0,
101
],
[
101,
102
],
[
101,
103
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\ttry {\n\t\t\tString word = in.readLine();\n\t\t\t\n\t\t\tint count = 0;\n\t\t\tString line = \"\";\n\t\t\twhile ((line = in.readLine()).equals(\"END_OF_TEXT\") == false) {\n\t\t\t\tString words[] = line.split(\" \");\n\t\t\t\tfor (int i = 0; i < words.length; i++) {\n\t\t\t\t\tString str = words[i].toLowerCase();\n\t\t\t\t\tif (word.equals(str) == true) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\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\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\ttry {\n\t\t\tString word = in.readLine();\n\t\t\t\n\t\t\tint count = 0;\n\t\t\tString line = \"\";\n\t\t\twhile ((line = in.readLine()).equals(\"END_OF_TEXT\") == false) {\n\t\t\t\tString words[] = line.split(\" \");\n\t\t\t\tfor (int i = 0; i < words.length; i++) {\n\t\t\t\t\tString str = words[i].toLowerCase();\n\t\t\t\t\tif (word.equals(str) == true) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\ttry {\n\t\t\tString word = in.readLine();\n\t\t\t\n\t\t\tint count = 0;\n\t\t\tString line = \"\";\n\t\t\twhile ((line = in.readLine()).equals(\"END_OF_TEXT\") == false) {\n\t\t\t\tString words[] = line.split(\" \");\n\t\t\t\tfor (int i = 0; i < words.length; i++) {\n\t\t\t\t\tString str = words[i].toLowerCase();\n\t\t\t\t\tif (word.equals(str) == true) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\ttry {\n\t\t\tString word = in.readLine();\n\t\t\t\n\t\t\tint count = 0;\n\t\t\tString line = \"\";\n\t\t\twhile ((line = in.readLine()).equals(\"END_OF_TEXT\") == false) {\n\t\t\t\tString words[] = line.split(\" \");\n\t\t\t\tfor (int i = 0; i < words.length; i++) {\n\t\t\t\t\tString str = words[i].toLowerCase();\n\t\t\t\t\tif (word.equals(str) == true) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"try {\n\t\t\tString word = in.readLine();\n\t\t\t\n\t\t\tint count = 0;\n\t\t\tString line = \"\";\n\t\t\twhile ((line = in.readLine()).equals(\"END_OF_TEXT\") == false) {\n\t\t\t\tString words[] = line.split(\" \");\n\t\t\t\tfor (int i = 0; i < words.length; i++) {\n\t\t\t\t\tString str = words[i].toLowerCase();\n\t\t\t\t\tif (word.equals(str) == true) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}",
"catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}",
"NumberFormatException e",
"{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}",
"IOException e",
"{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\tString word = in.readLine();\n\t\t\t\n\t\t\tint count = 0;\n\t\t\tString line = \"\";\n\t\t\twhile ((line = in.readLine()).equals(\"END_OF_TEXT\") == false) {\n\t\t\t\tString words[] = line.split(\" \");\n\t\t\t\tfor (int i = 0; i < words.length; i++) {\n\t\t\t\t\tString str = words[i].toLowerCase();\n\t\t\t\t\tif (word.equals(str) == true) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t}",
"String word = in.readLine();",
"word",
"in.readLine()",
"in.readLine",
"in",
"int count = 0;",
"count",
"0",
"String line = \"\";",
"line",
"\"\"",
"while ((line = in.readLine()).equals(\"END_OF_TEXT\") == false) {\n\t\t\t\tString words[] = line.split(\" \");\n\t\t\t\tfor (int i = 0; i < words.length; i++) {\n\t\t\t\t\tString str = words[i].toLowerCase();\n\t\t\t\t\tif (word.equals(str) == true) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"(line = in.readLine()).equals(\"END_OF_TEXT\") == false",
"(line = in.readLine()).equals(\"END_OF_TEXT\")",
"(line = in.readLine()).equals",
"(line = in.readLine())",
"line",
"in.readLine()",
"in.readLine",
"in",
"\"END_OF_TEXT\"",
"false",
"{\n\t\t\t\tString words[] = line.split(\" \");\n\t\t\t\tfor (int i = 0; i < words.length; i++) {\n\t\t\t\t\tString str = words[i].toLowerCase();\n\t\t\t\t\tif (word.equals(str) == true) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"String words[] = line.split(\" \");",
"words",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"for (int i = 0; i < words.length; i++) {\n\t\t\t\t\tString str = words[i].toLowerCase();\n\t\t\t\t\tif (word.equals(str) == true) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < words.length",
"i",
"words.length",
"words",
"words.length",
"i++",
"i++",
"i",
"{\n\t\t\t\t\tString str = words[i].toLowerCase();\n\t\t\t\t\tif (word.equals(str) == true) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tString str = words[i].toLowerCase();\n\t\t\t\t\tif (word.equals(str) == true) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}",
"String str = words[i].toLowerCase();",
"str",
"words[i].toLowerCase()",
"words[i].toLowerCase",
"words[i]",
"words",
"i",
"if (word.equals(str) == true) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}",
"word.equals(str) == true",
"word.equals(str)",
"word.equals",
"word",
"str",
"true",
"{\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\ttry {\n\t\t\tString word = in.readLine();\n\t\t\t\n\t\t\tint count = 0;\n\t\t\tString line = \"\";\n\t\t\twhile ((line = in.readLine()).equals(\"END_OF_TEXT\") == false) {\n\t\t\t\tString words[] = line.split(\" \");\n\t\t\t\tfor (int i = 0; i < words.length; i++) {\n\t\t\t\t\tString str = words[i].toLowerCase();\n\t\t\t\t\tif (word.equals(str) == true) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\ttry {\n\t\t\tString word = in.readLine();\n\t\t\t\n\t\t\tint count = 0;\n\t\t\tString line = \"\";\n\t\t\twhile ((line = in.readLine()).equals(\"END_OF_TEXT\") == false) {\n\t\t\t\tString words[] = line.split(\" \");\n\t\t\t\tfor (int i = 0; i < words.length; i++) {\n\t\t\t\t\tString str = words[i].toLowerCase();\n\t\t\t\t\tif (word.equals(str) == true) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\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) {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
try {
String word = in.readLine();
int count = 0;
String line = "";
while ((line = in.readLine()).equals("END_OF_TEXT") == false) {
String words[] = line.split(" ");
for (int i = 0; i < words.length; i++) {
String str = words[i].toLowerCase();
if (word.equals(str) == true) {
count++;
}
}
}
System.out.println(count);
} catch (NumberFormatException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
41,
13,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
14,
4,
18,
17,
13,
30,
3,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
41,
13,
18,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
18,
13,
13,
14,
4,
18,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
87,
5
],
[
87,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
22,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
26,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
32,
37
],
[
37,
38
],
[
26,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
26,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
45,
55
],
[
55,
56
],
[
55,
57
],
[
45,
58
],
[
58,
59
],
[
59,
60
],
[
45,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
62,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
69,
74
],
[
68,
75
],
[
75,
76
],
[
76,
77
],
[
8,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
6,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String needle = sc.nextLine().toLowerCase();\n int c = 0;\n while (sc.hasNextLine()) {\n String line = sc.nextLine();\n if (\"END_OF_TEXT\".equals(line)) {\n break;\n }\n String[] hashstack = line.split(\" \");\n for (int i = 0, l = hashstack.length; i < l; i++) {\n String s = hashstack[i];\n if (s.toLowerCase().equals(needle)) {\n c++;\n }\n }\n }\n System.out.println(c);\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 needle = sc.nextLine().toLowerCase();\n int c = 0;\n while (sc.hasNextLine()) {\n String line = sc.nextLine();\n if (\"END_OF_TEXT\".equals(line)) {\n break;\n }\n String[] hashstack = line.split(\" \");\n for (int i = 0, l = hashstack.length; i < l; i++) {\n String s = hashstack[i];\n if (s.toLowerCase().equals(needle)) {\n c++;\n }\n }\n }\n System.out.println(c);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String needle = sc.nextLine().toLowerCase();\n int c = 0;\n while (sc.hasNextLine()) {\n String line = sc.nextLine();\n if (\"END_OF_TEXT\".equals(line)) {\n break;\n }\n String[] hashstack = line.split(\" \");\n for (int i = 0, l = hashstack.length; i < l; i++) {\n String s = hashstack[i];\n if (s.toLowerCase().equals(needle)) {\n c++;\n }\n }\n }\n System.out.println(c);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String needle = sc.nextLine().toLowerCase();\n int c = 0;\n while (sc.hasNextLine()) {\n String line = sc.nextLine();\n if (\"END_OF_TEXT\".equals(line)) {\n break;\n }\n String[] hashstack = line.split(\" \");\n for (int i = 0, l = hashstack.length; i < l; i++) {\n String s = hashstack[i];\n if (s.toLowerCase().equals(needle)) {\n c++;\n }\n }\n }\n System.out.println(c);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String needle = sc.nextLine().toLowerCase();",
"needle",
"sc.nextLine().toLowerCase()",
"sc.nextLine().toLowerCase",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int c = 0;",
"c",
"0",
"while (sc.hasNextLine()) {\n String line = sc.nextLine();\n if (\"END_OF_TEXT\".equals(line)) {\n break;\n }\n String[] hashstack = line.split(\" \");\n for (int i = 0, l = hashstack.length; i < l; i++) {\n String s = hashstack[i];\n if (s.toLowerCase().equals(needle)) {\n c++;\n }\n }\n }",
"sc.hasNextLine()",
"sc.hasNextLine",
"sc",
"{\n String line = sc.nextLine();\n if (\"END_OF_TEXT\".equals(line)) {\n break;\n }\n String[] hashstack = line.split(\" \");\n for (int i = 0, l = hashstack.length; i < l; i++) {\n String s = hashstack[i];\n if (s.toLowerCase().equals(needle)) {\n c++;\n }\n }\n }",
"String line = sc.nextLine();",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if (\"END_OF_TEXT\".equals(line)) {\n break;\n }",
"\"END_OF_TEXT\".equals(line)",
"\"END_OF_TEXT\".equals",
"\"END_OF_TEXT\"",
"line",
"{\n break;\n }",
"break;",
"String[] hashstack = line.split(\" \");",
"hashstack",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"for (int i = 0, l = hashstack.length; i < l; i++) {\n String s = hashstack[i];\n if (s.toLowerCase().equals(needle)) {\n c++;\n }\n }",
"int i = 0, l = hashstack.length;",
"int i = 0",
"i",
"0",
"l = hashstack.length;",
"l",
"hashstack.length",
"hashstack",
"hashstack.length",
"i < l",
"i",
"l",
"i++",
"i++",
"i",
"{\n String s = hashstack[i];\n if (s.toLowerCase().equals(needle)) {\n c++;\n }\n }",
"{\n String s = hashstack[i];\n if (s.toLowerCase().equals(needle)) {\n c++;\n }\n }",
"String s = hashstack[i];",
"s",
"hashstack[i]",
"hashstack",
"i",
"if (s.toLowerCase().equals(needle)) {\n c++;\n }",
"s.toLowerCase().equals(needle)",
"s.toLowerCase().equals",
"s.toLowerCase()",
"s.toLowerCase",
"s",
"needle",
"{\n c++;\n }",
"c++",
"c",
"System.out.println(c)",
"System.out.println",
"System.out",
"System",
"System.out",
"c",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String needle = sc.nextLine().toLowerCase();\n int c = 0;\n while (sc.hasNextLine()) {\n String line = sc.nextLine();\n if (\"END_OF_TEXT\".equals(line)) {\n break;\n }\n String[] hashstack = line.split(\" \");\n for (int i = 0, l = hashstack.length; i < l; i++) {\n String s = hashstack[i];\n if (s.toLowerCase().equals(needle)) {\n c++;\n }\n }\n }\n System.out.println(c);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String needle = sc.nextLine().toLowerCase();\n int c = 0;\n while (sc.hasNextLine()) {\n String line = sc.nextLine();\n if (\"END_OF_TEXT\".equals(line)) {\n break;\n }\n String[] hashstack = line.split(\" \");\n for (int i = 0, l = hashstack.length; i < l; i++) {\n String s = hashstack[i];\n if (s.toLowerCase().equals(needle)) {\n c++;\n }\n }\n }\n System.out.println(c);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String needle = sc.nextLine().toLowerCase();
int c = 0;
while (sc.hasNextLine()) {
String line = sc.nextLine();
if ("END_OF_TEXT".equals(line)) {
break;
}
String[] hashstack = line.split(" ");
for (int i = 0, l = hashstack.length; i < l; i++) {
String s = hashstack[i];
if (s.toLowerCase().equals(needle)) {
c++;
}
}
}
System.out.println(c);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
0,
13,
4,
18,
13,
14,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
73,
5
],
[
73,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
44,
49
],
[
49,
50
],
[
38,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
38,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
56,
61
],
[
61,
62
],
[
62,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t//キーワード入力\n\t\tScanner sc=new Scanner(System.in);\n\t\tString W=sc.next();\n\t\tW=W.toLowerCase();\n\t\t//kwの長さをカウント:n\n\t\tint n=W.length();\n\n\t\tint count=0;\n\t\tint m=0;\n\t\tint o=0;\n\n\t\twhile(true) {\n\t\t\t//①テキスト入力\n\t\t\tString T=sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tT=T.toLowerCase();\n\t\t\tif(W.equals(T)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t//キーワード入力\n\t\tScanner sc=new Scanner(System.in);\n\t\tString W=sc.next();\n\t\tW=W.toLowerCase();\n\t\t//kwの長さをカウント:n\n\t\tint n=W.length();\n\n\t\tint count=0;\n\t\tint m=0;\n\t\tint o=0;\n\n\t\twhile(true) {\n\t\t\t//①テキスト入力\n\t\t\tString T=sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tT=T.toLowerCase();\n\t\t\tif(W.equals(T)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t//キーワード入力\n\t\tScanner sc=new Scanner(System.in);\n\t\tString W=sc.next();\n\t\tW=W.toLowerCase();\n\t\t//kwの長さをカウント:n\n\t\tint n=W.length();\n\n\t\tint count=0;\n\t\tint m=0;\n\t\tint o=0;\n\n\t\twhile(true) {\n\t\t\t//①テキスト入力\n\t\t\tString T=sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tT=T.toLowerCase();\n\t\t\tif(W.equals(T)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\t//キーワード入力\n\t\tScanner sc=new Scanner(System.in);\n\t\tString W=sc.next();\n\t\tW=W.toLowerCase();\n\t\t//kwの長さをカウント:n\n\t\tint n=W.length();\n\n\t\tint count=0;\n\t\tint m=0;\n\t\tint o=0;\n\n\t\twhile(true) {\n\t\t\t//①テキスト入力\n\t\t\tString T=sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tT=T.toLowerCase();\n\t\t\tif(W.equals(T)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String W=sc.next();",
"W",
"sc.next()",
"sc.next",
"sc",
"W=W.toLowerCase()",
"W",
"W.toLowerCase()",
"W.toLowerCase",
"W",
"int n=W.length();",
"n",
"W.length()",
"W.length",
"W",
"int count=0;",
"count",
"0",
"int m=0;",
"m",
"0",
"int o=0;",
"o",
"0",
"while(true) {\n\t\t\t//①テキスト入力\n\t\t\tString T=sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tT=T.toLowerCase();\n\t\t\tif(W.equals(T)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"true",
"{\n\t\t\t//①テキスト入力\n\t\t\tString T=sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tT=T.toLowerCase();\n\t\t\tif(W.equals(T)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"String T=sc.next();",
"T",
"sc.next()",
"sc.next",
"sc",
"if(T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}",
"T.equals(\"END_OF_TEXT\")",
"T.equals",
"T",
"\"END_OF_TEXT\"",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"T=T.toLowerCase()",
"T",
"T.toLowerCase()",
"T.toLowerCase",
"T",
"if(W.equals(T)) {\n\t\t\t\tcount++;\n\t\t\t}",
"W.equals(T)",
"W.equals",
"W",
"T",
"{\n\t\t\t\tcount++;\n\t\t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t//キーワード入力\n\t\tScanner sc=new Scanner(System.in);\n\t\tString W=sc.next();\n\t\tW=W.toLowerCase();\n\t\t//kwの長さをカウント:n\n\t\tint n=W.length();\n\n\t\tint count=0;\n\t\tint m=0;\n\t\tint o=0;\n\n\t\twhile(true) {\n\t\t\t//①テキスト入力\n\t\t\tString T=sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tT=T.toLowerCase();\n\t\t\tif(W.equals(T)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t//キーワード入力\n\t\tScanner sc=new Scanner(System.in);\n\t\tString W=sc.next();\n\t\tW=W.toLowerCase();\n\t\t//kwの長さをカウント:n\n\t\tint n=W.length();\n\n\t\tint count=0;\n\t\tint m=0;\n\t\tint o=0;\n\n\t\twhile(true) {\n\t\t\t//①テキスト入力\n\t\t\tString T=sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tT=T.toLowerCase();\n\t\t\tif(W.equals(T)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
//キーワード入力
Scanner sc=new Scanner(System.in);
String W=sc.next();
W=W.toLowerCase();
//kwの長さをカウント:n
int n=W.length();
int count=0;
int m=0;
int o=0;
while(true) {
//①テキスト入力
String T=sc.next();
if(T.equals("END_OF_TEXT")) {
break;
}
T=T.toLowerCase();
if(W.equals(T)) {
count++;
}
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
41,
13,
17,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
14,
4,
18,
13,
4,
18,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
10,
21
],
[
21,
22
],
[
21,
23
],
[
10,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
26,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
32,
37
],
[
26,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
43,
44
],
[
38,
45
],
[
45,
46
],
[
46,
47
],
[
10,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
6,
54
],
[
54,
55
]
]
| [
"import java.util.*;\n\nclass Main {\n public static void main(String args[]) {\n try (Scanner sc = new Scanner(System.in)) {\n String S = sc.next().toUpperCase();\n int ans = 0;\n while (true) {\n String T = sc.next();\n if(T.equals(\"END_OF_TEXT\"))break;\n\n if (S.equals(T.toUpperCase())) {\n ans++;\n }\n }\n System.out.println(ans);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String args[]) {\n try (Scanner sc = new Scanner(System.in)) {\n String S = sc.next().toUpperCase();\n int ans = 0;\n while (true) {\n String T = sc.next();\n if(T.equals(\"END_OF_TEXT\"))break;\n\n if (S.equals(T.toUpperCase())) {\n ans++;\n }\n }\n System.out.println(ans);\n }\n }\n}",
"Main",
"public static void main(String args[]) {\n try (Scanner sc = new Scanner(System.in)) {\n String S = sc.next().toUpperCase();\n int ans = 0;\n while (true) {\n String T = sc.next();\n if(T.equals(\"END_OF_TEXT\"))break;\n\n if (S.equals(T.toUpperCase())) {\n ans++;\n }\n }\n System.out.println(ans);\n }\n }",
"main",
"{\n try (Scanner sc = new Scanner(System.in)) {\n String S = sc.next().toUpperCase();\n int ans = 0;\n while (true) {\n String T = sc.next();\n if(T.equals(\"END_OF_TEXT\"))break;\n\n if (S.equals(T.toUpperCase())) {\n ans++;\n }\n }\n System.out.println(ans);\n }\n }",
"try (Scanner sc = new Scanner(System.in)) {\n String S = sc.next().toUpperCase();\n int ans = 0;\n while (true) {\n String T = sc.next();\n if(T.equals(\"END_OF_TEXT\"))break;\n\n if (S.equals(T.toUpperCase())) {\n ans++;\n }\n }\n System.out.println(ans);\n }",
"{\n String S = sc.next().toUpperCase();\n int ans = 0;\n while (true) {\n String T = sc.next();\n if(T.equals(\"END_OF_TEXT\"))break;\n\n if (S.equals(T.toUpperCase())) {\n ans++;\n }\n }\n System.out.println(ans);\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"String S = sc.next().toUpperCase();",
"S",
"sc.next().toUpperCase()",
"sc.next().toUpperCase",
"sc.next()",
"sc.next",
"sc",
"int ans = 0;",
"ans",
"0",
"while (true) {\n String T = sc.next();\n if(T.equals(\"END_OF_TEXT\"))break;\n\n if (S.equals(T.toUpperCase())) {\n ans++;\n }\n }",
"true",
"{\n String T = sc.next();\n if(T.equals(\"END_OF_TEXT\"))break;\n\n if (S.equals(T.toUpperCase())) {\n ans++;\n }\n }",
"String T = sc.next();",
"T",
"sc.next()",
"sc.next",
"sc",
"if(T.equals(\"END_OF_TEXT\"))break;",
"T.equals(\"END_OF_TEXT\")",
"T.equals",
"T",
"\"END_OF_TEXT\"",
"break;",
"if (S.equals(T.toUpperCase())) {\n ans++;\n }",
"S.equals(T.toUpperCase())",
"S.equals",
"S",
"T.toUpperCase()",
"T.toUpperCase",
"T",
"{\n ans++;\n }",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String args[]",
"args"
]
| import java.util.*;
class Main {
public static void main(String args[]) {
try (Scanner sc = new Scanner(System.in)) {
String S = sc.next().toUpperCase();
int ans = 0;
while (true) {
String T = sc.next();
if(T.equals("END_OF_TEXT"))break;
if (S.equals(T.toUpperCase())) {
ans++;
}
}
System.out.println(ans);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
41,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
11,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
9,
31
],
[
31,
32
]
]
| [
"import java.io.IOException;\nimport java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString ans = scanner.nextLine().toLowerCase();\n\t\tint count = 0;\n\t\t\n\t\tend:\n\t\twhile (scanner.hasNext()) {\n\t\t\tString str = scanner.nextLine();\n\t\t\tString[] strs = str.split(\" \");\n\t\t\tfor (int i = 0; i < strs.length; i++) {\n\t\t\t\tif(strs[i].equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak end;\n\t\t\t\t}\n\t\t\t\tif (strs[i].toLowerCase().equals(ans)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString ans = scanner.nextLine().toLowerCase();\n\t\tint count = 0;\n\t\t\n\t\tend:\n\t\twhile (scanner.hasNext()) {\n\t\t\tString str = scanner.nextLine();\n\t\t\tString[] strs = str.split(\" \");\n\t\t\tfor (int i = 0; i < strs.length; i++) {\n\t\t\t\tif(strs[i].equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak end;\n\t\t\t\t}\n\t\t\t\tif (strs[i].toLowerCase().equals(ans)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString ans = scanner.nextLine().toLowerCase();\n\t\tint count = 0;\n\t\t\n\t\tend:\n\t\twhile (scanner.hasNext()) {\n\t\t\tString str = scanner.nextLine();\n\t\t\tString[] strs = str.split(\" \");\n\t\t\tfor (int i = 0; i < strs.length; i++) {\n\t\t\t\tif(strs[i].equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak end;\n\t\t\t\t}\n\t\t\t\tif (strs[i].toLowerCase().equals(ans)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString ans = scanner.nextLine().toLowerCase();\n\t\tint count = 0;\n\t\t\n\t\tend:\n\t\twhile (scanner.hasNext()) {\n\t\t\tString str = scanner.nextLine();\n\t\t\tString[] strs = str.split(\" \");\n\t\t\tfor (int i = 0; i < strs.length; i++) {\n\t\t\t\tif(strs[i].equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak end;\n\t\t\t\t}\n\t\t\t\tif (strs[i].toLowerCase().equals(ans)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"String ans = scanner.nextLine().toLowerCase();",
"ans",
"scanner.nextLine().toLowerCase()",
"scanner.nextLine().toLowerCase",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"int count = 0;",
"count",
"0",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args"
]
| import java.io.IOException;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws IOException {
Scanner scanner = new Scanner(System.in);
String ans = scanner.nextLine().toLowerCase();
int count = 0;
end:
while (scanner.hasNext()) {
String str = scanner.nextLine();
String[] strs = str.split(" ");
for (int i = 0; i < strs.length; i++) {
if(strs[i].equals("END_OF_TEXT")){
break end;
}
if (strs[i].toLowerCase().equals(ans)) {
count++;
}
}
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
30,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
4,
18,
4,
18,
13,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
84,
11
],
[
84,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
37,
42
],
[
42,
43
],
[
37,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
14,
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
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
65,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
14,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
12,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
]
| [
"import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint count = 0;\n\t\tString findWord = s.nextLine();\n\t\tList<String> result = new ArrayList<>();\n\t\twhile (true) {\n\t\t\tString word = s.next();\n\t\t\tif (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tresult.add(word);\n\t\t\t}\n\n\t\t}\n\t\tfor(int i = 0; i< result.size();i++) {\n\t\t\tif(result.get(i).equalsIgnoreCase(findWord)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint count = 0;\n\t\tString findWord = s.nextLine();\n\t\tList<String> result = new ArrayList<>();\n\t\twhile (true) {\n\t\t\tString word = s.next();\n\t\t\tif (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tresult.add(word);\n\t\t\t}\n\n\t\t}\n\t\tfor(int i = 0; i< result.size();i++) {\n\t\t\tif(result.get(i).equalsIgnoreCase(findWord)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint count = 0;\n\t\tString findWord = s.nextLine();\n\t\tList<String> result = new ArrayList<>();\n\t\twhile (true) {\n\t\t\tString word = s.next();\n\t\t\tif (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tresult.add(word);\n\t\t\t}\n\n\t\t}\n\t\tfor(int i = 0; i< result.size();i++) {\n\t\t\tif(result.get(i).equalsIgnoreCase(findWord)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\tScanner s = new Scanner(System.in);\n\t\tint count = 0;\n\t\tString findWord = s.nextLine();\n\t\tList<String> result = new ArrayList<>();\n\t\twhile (true) {\n\t\t\tString word = s.next();\n\t\t\tif (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tresult.add(word);\n\t\t\t}\n\n\t\t}\n\t\tfor(int i = 0; i< result.size();i++) {\n\t\t\tif(result.get(i).equalsIgnoreCase(findWord)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int count = 0;",
"count",
"0",
"String findWord = s.nextLine();",
"findWord",
"s.nextLine()",
"s.nextLine",
"s",
"List<String> result = new ArrayList<>();",
"result",
"new ArrayList<>()",
"while (true) {\n\t\t\tString word = s.next();\n\t\t\tif (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tresult.add(word);\n\t\t\t}\n\n\t\t}",
"true",
"{\n\t\t\tString word = s.next();\n\t\t\tif (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tresult.add(word);\n\t\t\t}\n\n\t\t}",
"String word = s.next();",
"word",
"s.next()",
"s.next",
"s",
"if (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tresult.add(word);\n\t\t\t}",
"word.equals(\"END_OF_TEXT\")",
"word.equals",
"word",
"\"END_OF_TEXT\"",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"{\n\t\t\t\tresult.add(word);\n\t\t\t}",
"result.add(word)",
"result.add",
"result",
"word",
"for(int i = 0; i< result.size();i++) {\n\t\t\tif(result.get(i).equalsIgnoreCase(findWord)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i< result.size()",
"i",
"result.size()",
"result.size",
"result",
"i++",
"i++",
"i",
"{\n\t\t\tif(result.get(i).equalsIgnoreCase(findWord)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t\n\t\t}",
"{\n\t\t\tif(result.get(i).equalsIgnoreCase(findWord)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t\n\t\t}",
"if(result.get(i).equalsIgnoreCase(findWord)) {\n\t\t\t\tcount++;\n\t\t\t}",
"result.get(i).equalsIgnoreCase(findWord)",
"result.get(i).equalsIgnoreCase",
"result.get(i)",
"result.get",
"result",
"i",
"findWord",
"{\n\t\t\t\tcount++;\n\t\t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint count = 0;\n\t\tString findWord = s.nextLine();\n\t\tList<String> result = new ArrayList<>();\n\t\twhile (true) {\n\t\t\tString word = s.next();\n\t\t\tif (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tresult.add(word);\n\t\t\t}\n\n\t\t}\n\t\tfor(int i = 0; i< result.size();i++) {\n\t\t\tif(result.get(i).equalsIgnoreCase(findWord)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n}",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint count = 0;\n\t\tString findWord = s.nextLine();\n\t\tList<String> result = new ArrayList<>();\n\t\twhile (true) {\n\t\t\tString word = s.next();\n\t\t\tif (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tresult.add(word);\n\t\t\t}\n\n\t\t}\n\t\tfor(int i = 0; i< result.size();i++) {\n\t\t\tif(result.get(i).equalsIgnoreCase(findWord)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n}",
"Main"
]
| import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int count = 0;
String findWord = s.nextLine();
List<String> result = new ArrayList<>();
while (true) {
String word = s.next();
if (word.equals("END_OF_TEXT")) {
break;
} else {
result.add(word);
}
}
for(int i = 0; i< result.size();i++) {
if(result.get(i).equalsIgnoreCase(findWord)) {
count++;
}
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
14,
2,
4,
18,
13,
4,
18,
13,
9,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
4,
18,
13,
13,
4,
18,
13,
13,
2,
2,
2,
4,
18,
13,
13,
17,
17,
4,
18,
13,
13,
2,
4,
18,
13,
13,
2,
2,
4,
18,
13,
13,
17,
17,
30,
0,
13,
17,
3,
14,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
124,
11
],
[
124,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
34,
39
],
[
28,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
40,
48
],
[
28,
49
],
[
49,
50
],
[
49,
51
],
[
28,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
52,
62
],
[
62,
63
],
[
63,
64
],
[
52,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
70,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
69,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
81,
86
],
[
80,
87
],
[
79,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
69,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
92,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
98,
103
],
[
97,
104
],
[
67,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
28,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
14,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
12,
121
],
[
121,
122
],
[
0,
123
],
[
123,
124
],
[
123,
125
]
]
| [
"import java.io.File;\nimport java.io.IOException;\nimport java.util.*;\n \npublic class Main {\n \n\tpublic static void main(String[] args) throws IOException {\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString W = sc.next();\n\t\tint count = 0;\n\t\t\n\t\twhile(true){\n\t\t\tString T = sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(T.length() != W.length()) continue;\n\t\t\tboolean tf = true;\n\t\t\tfor(int i = 0; i < T.length(); i++){\n\t\t\t\tif(T.charAt(i) != W.charAt(i) && (T.charAt(i) - 'a' + 'A') != W.charAt(i) && T.charAt(i) != (W.charAt(i) - 'a' + 'A')){\n\t\t\t\t\ttf = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tf){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t//System.out.println(T);\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"import java.io.File;",
"File",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n \n\tpublic static void main(String[] args) throws IOException {\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString W = sc.next();\n\t\tint count = 0;\n\t\t\n\t\twhile(true){\n\t\t\tString T = sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(T.length() != W.length()) continue;\n\t\t\tboolean tf = true;\n\t\t\tfor(int i = 0; i < T.length(); i++){\n\t\t\t\tif(T.charAt(i) != W.charAt(i) && (T.charAt(i) - 'a' + 'A') != W.charAt(i) && T.charAt(i) != (W.charAt(i) - 'a' + 'A')){\n\t\t\t\t\ttf = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tf){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t//System.out.println(T);\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString W = sc.next();\n\t\tint count = 0;\n\t\t\n\t\twhile(true){\n\t\t\tString T = sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(T.length() != W.length()) continue;\n\t\t\tboolean tf = true;\n\t\t\tfor(int i = 0; i < T.length(); i++){\n\t\t\t\tif(T.charAt(i) != W.charAt(i) && (T.charAt(i) - 'a' + 'A') != W.charAt(i) && T.charAt(i) != (W.charAt(i) - 'a' + 'A')){\n\t\t\t\t\ttf = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tf){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t//System.out.println(T);\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString W = sc.next();\n\t\tint count = 0;\n\t\t\n\t\twhile(true){\n\t\t\tString T = sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(T.length() != W.length()) continue;\n\t\t\tboolean tf = true;\n\t\t\tfor(int i = 0; i < T.length(); i++){\n\t\t\t\tif(T.charAt(i) != W.charAt(i) && (T.charAt(i) - 'a' + 'A') != W.charAt(i) && T.charAt(i) != (W.charAt(i) - 'a' + 'A')){\n\t\t\t\t\ttf = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tf){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t//System.out.println(T);\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String W = sc.next();",
"W",
"sc.next()",
"sc.next",
"sc",
"int count = 0;",
"count",
"0",
"while(true){\n\t\t\tString T = sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(T.length() != W.length()) continue;\n\t\t\tboolean tf = true;\n\t\t\tfor(int i = 0; i < T.length(); i++){\n\t\t\t\tif(T.charAt(i) != W.charAt(i) && (T.charAt(i) - 'a' + 'A') != W.charAt(i) && T.charAt(i) != (W.charAt(i) - 'a' + 'A')){\n\t\t\t\t\ttf = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tf){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t//System.out.println(T);\n\t\t}",
"true",
"{\n\t\t\tString T = sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(T.length() != W.length()) continue;\n\t\t\tboolean tf = true;\n\t\t\tfor(int i = 0; i < T.length(); i++){\n\t\t\t\tif(T.charAt(i) != W.charAt(i) && (T.charAt(i) - 'a' + 'A') != W.charAt(i) && T.charAt(i) != (W.charAt(i) - 'a' + 'A')){\n\t\t\t\t\ttf = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tf){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t//System.out.println(T);\n\t\t}",
"String T = sc.next();",
"T",
"sc.next()",
"sc.next",
"sc",
"if(T.equals(\"END_OF_TEXT\")) break;",
"T.equals(\"END_OF_TEXT\")",
"T.equals",
"T",
"\"END_OF_TEXT\"",
"break;",
"if(T.length() != W.length()) continue;",
"T.length() != W.length()",
"T.length()",
"T.length",
"T",
"W.length()",
"W.length",
"W",
"continue;",
"boolean tf = true;",
"tf",
"true",
"for(int i = 0; i < T.length(); i++){\n\t\t\t\tif(T.charAt(i) != W.charAt(i) && (T.charAt(i) - 'a' + 'A') != W.charAt(i) && T.charAt(i) != (W.charAt(i) - 'a' + 'A')){\n\t\t\t\t\ttf = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < T.length()",
"i",
"T.length()",
"T.length",
"T",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(T.charAt(i) != W.charAt(i) && (T.charAt(i) - 'a' + 'A') != W.charAt(i) && T.charAt(i) != (W.charAt(i) - 'a' + 'A')){\n\t\t\t\t\ttf = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(T.charAt(i) != W.charAt(i) && (T.charAt(i) - 'a' + 'A') != W.charAt(i) && T.charAt(i) != (W.charAt(i) - 'a' + 'A')){\n\t\t\t\t\ttf = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"if(T.charAt(i) != W.charAt(i) && (T.charAt(i) - 'a' + 'A') != W.charAt(i) && T.charAt(i) != (W.charAt(i) - 'a' + 'A')){\n\t\t\t\t\ttf = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"T.charAt(i) != W.charAt(i) && (T.charAt(i) - 'a' + 'A') != W.charAt(i) && T.charAt(i) != (W.charAt(i) - 'a' + 'A')",
"T.charAt(i) != W.charAt(i) && (T.charAt(i) - 'a' + 'A') != W.charAt(i) && T.charAt(i) != (W.charAt(i) - 'a' + 'A')",
"T.charAt(i) != W.charAt(i)",
"T.charAt(i)",
"T.charAt",
"T",
"i",
"W.charAt(i)",
"W.charAt",
"W",
"i",
"(T.charAt(i) - 'a' + 'A') != W.charAt(i)",
"(T.charAt(i) - 'a' + 'A')",
"T.charAt(i) - 'a'",
"T.charAt(i)",
"T.charAt",
"T",
"i",
"'a'",
"'A'",
"W.charAt(i)",
"W.charAt",
"W",
"i",
"T.charAt(i) != (W.charAt(i) - 'a' + 'A')",
"T.charAt(i)",
"T.charAt",
"T",
"i",
"(W.charAt(i) - 'a' + 'A')",
"W.charAt(i) - 'a'",
"W.charAt(i)",
"W.charAt",
"W",
"i",
"'a'",
"'A'",
"{\n\t\t\t\t\ttf = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"tf = false",
"tf",
"false",
"break;",
"if(tf){\n\t\t\t\tcount++;\n\t\t\t}",
"tf",
"{\n\t\t\t\tcount++;\n\t\t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n \n\tpublic static void main(String[] args) throws IOException {\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString W = sc.next();\n\t\tint count = 0;\n\t\t\n\t\twhile(true){\n\t\t\tString T = sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(T.length() != W.length()) continue;\n\t\t\tboolean tf = true;\n\t\t\tfor(int i = 0; i < T.length(); i++){\n\t\t\t\tif(T.charAt(i) != W.charAt(i) && (T.charAt(i) - 'a' + 'A') != W.charAt(i) && T.charAt(i) != (W.charAt(i) - 'a' + 'A')){\n\t\t\t\t\ttf = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tf){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t//System.out.println(T);\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"public class Main {\n \n\tpublic static void main(String[] args) throws IOException {\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString W = sc.next();\n\t\tint count = 0;\n\t\t\n\t\twhile(true){\n\t\t\tString T = sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(T.length() != W.length()) continue;\n\t\t\tboolean tf = true;\n\t\t\tfor(int i = 0; i < T.length(); i++){\n\t\t\t\tif(T.charAt(i) != W.charAt(i) && (T.charAt(i) - 'a' + 'A') != W.charAt(i) && T.charAt(i) != (W.charAt(i) - 'a' + 'A')){\n\t\t\t\t\ttf = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tf){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t//System.out.println(T);\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"Main"
]
| import java.io.File;
import java.io.IOException;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
//File file = new File("input.txt");
//Scanner sc = new Scanner(file);
Scanner sc = new Scanner(System.in);
String W = sc.next();
int count = 0;
while(true){
String T = sc.next();
if(T.equals("END_OF_TEXT")) break;
if(T.length() != W.length()) continue;
boolean tf = true;
for(int i = 0; i < T.length(); i++){
if(T.charAt(i) != W.charAt(i) && (T.charAt(i) - 'a' + 'A') != W.charAt(i) && T.charAt(i) != (W.charAt(i) - 'a' + 'A')){
tf = false;
break;
}
}
if(tf){
count++;
}
//System.out.println(T);
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
17,
42,
40,
4,
18,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
13,
18,
13,
13,
30,
40,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
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
],
[
90,
11
],
[
90,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
14,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
33,
37
],
[
14,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
38,
44
],
[
44,
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
],
[
61,
64
],
[
64,
65
],
[
64,
66
],
[
60,
67
],
[
67,
68
],
[
68,
69
],
[
44,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
44,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
14,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
12,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
]
| [
"import java.io.*;\nimport java.util.regex.Pattern;\nimport java.util.regex.Matcher;\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString key = br.readLine();\n\t\tint count=0;\n\t\t//Pattern p = Pattern.compile(key, Pattern.CASE_INSENSITIVE);\n\t\tString line=br.readLine();\n\t\tString[] words = line.split(\" \",0);\n\t\twhile(!line.equals(\"END_OF_TEXT\")){\n\t\t\tfor(int i=0;i<words.length;i++){\n\t\t\t\tif(key.equalsIgnoreCase(words[i])){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tline=br.readLine();\n\t\t\twords = line.split(\" \");\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.regex.Pattern;",
"Pattern",
"java.util.regex",
"import java.util.regex.Matcher;",
"Matcher",
"java.util.regex",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString key = br.readLine();\n\t\tint count=0;\n\t\t//Pattern p = Pattern.compile(key, Pattern.CASE_INSENSITIVE);\n\t\tString line=br.readLine();\n\t\tString[] words = line.split(\" \",0);\n\t\twhile(!line.equals(\"END_OF_TEXT\")){\n\t\t\tfor(int i=0;i<words.length;i++){\n\t\t\t\tif(key.equalsIgnoreCase(words[i])){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tline=br.readLine();\n\t\t\twords = line.split(\" \");\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString key = br.readLine();\n\t\tint count=0;\n\t\t//Pattern p = Pattern.compile(key, Pattern.CASE_INSENSITIVE);\n\t\tString line=br.readLine();\n\t\tString[] words = line.split(\" \",0);\n\t\twhile(!line.equals(\"END_OF_TEXT\")){\n\t\t\tfor(int i=0;i<words.length;i++){\n\t\t\t\tif(key.equalsIgnoreCase(words[i])){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tline=br.readLine();\n\t\t\twords = line.split(\" \");\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString key = br.readLine();\n\t\tint count=0;\n\t\t//Pattern p = Pattern.compile(key, Pattern.CASE_INSENSITIVE);\n\t\tString line=br.readLine();\n\t\tString[] words = line.split(\" \",0);\n\t\twhile(!line.equals(\"END_OF_TEXT\")){\n\t\t\tfor(int i=0;i<words.length;i++){\n\t\t\t\tif(key.equalsIgnoreCase(words[i])){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tline=br.readLine();\n\t\t\twords = line.split(\" \");\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String key = br.readLine();",
"key",
"br.readLine()",
"br.readLine",
"br",
"int count=0;",
"count",
"0",
"String line=br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"String[] words = line.split(\" \",0);",
"words",
"line.split(\" \",0)",
"line.split",
"line",
"\" \"",
"0",
"while(!line.equals(\"END_OF_TEXT\")){\n\t\t\tfor(int i=0;i<words.length;i++){\n\t\t\t\tif(key.equalsIgnoreCase(words[i])){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tline=br.readLine();\n\t\t\twords = line.split(\" \");\n\t\t}",
"!line.equals(\"END_OF_TEXT\")",
"line.equals(\"END_OF_TEXT\")",
"line.equals",
"line",
"\"END_OF_TEXT\"",
"{\n\t\t\tfor(int i=0;i<words.length;i++){\n\t\t\t\tif(key.equalsIgnoreCase(words[i])){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tline=br.readLine();\n\t\t\twords = line.split(\" \");\n\t\t}",
"for(int i=0;i<words.length;i++){\n\t\t\t\tif(key.equalsIgnoreCase(words[i])){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<words.length",
"i",
"words.length",
"words",
"words.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(key.equalsIgnoreCase(words[i])){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(key.equalsIgnoreCase(words[i])){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}",
"if(key.equalsIgnoreCase(words[i])){\n\t\t\t\t\tcount++;\n\t\t\t\t}",
"key.equalsIgnoreCase(words[i])",
"key.equalsIgnoreCase",
"key",
"words[i]",
"words",
"i",
"{\n\t\t\t\t\tcount++;\n\t\t\t\t}",
"count++",
"count",
"line=br.readLine()",
"line",
"br.readLine()",
"br.readLine",
"br",
"words = line.split(\" \")",
"words",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString key = br.readLine();\n\t\tint count=0;\n\t\t//Pattern p = Pattern.compile(key, Pattern.CASE_INSENSITIVE);\n\t\tString line=br.readLine();\n\t\tString[] words = line.split(\" \",0);\n\t\twhile(!line.equals(\"END_OF_TEXT\")){\n\t\t\tfor(int i=0;i<words.length;i++){\n\t\t\t\tif(key.equalsIgnoreCase(words[i])){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tline=br.readLine();\n\t\t\twords = line.split(\" \");\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString key = br.readLine();\n\t\tint count=0;\n\t\t//Pattern p = Pattern.compile(key, Pattern.CASE_INSENSITIVE);\n\t\tString line=br.readLine();\n\t\tString[] words = line.split(\" \",0);\n\t\twhile(!line.equals(\"END_OF_TEXT\")){\n\t\t\tfor(int i=0;i<words.length;i++){\n\t\t\t\tif(key.equalsIgnoreCase(words[i])){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tline=br.readLine();\n\t\t\twords = line.split(\" \");\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"Main"
]
| import java.io.*;
import java.util.regex.Pattern;
import java.util.regex.Matcher;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String key = br.readLine();
int count=0;
//Pattern p = Pattern.compile(key, Pattern.CASE_INSENSITIVE);
String line=br.readLine();
String[] words = line.split(" ",0);
while(!line.equals("END_OF_TEXT")){
for(int i=0;i<words.length;i++){
if(key.equalsIgnoreCase(words[i])){
count++;
}
}
line=br.readLine();
words = line.split(" ");
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
41,
13,
20,
17,
0,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
4,
18,
18,
13,
13,
17,
30,
3,
40,
13,
40,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
88,
5
],
[
88,
6
],
[
6,
7
],
[
88,
8
],
[
8,
9
],
[
8,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
15
],
[
15,
16
],
[
15,
17
],
[
10,
18
],
[
18,
19
],
[
18,
20
],
[
10,
21
],
[
21,
22
],
[
21,
23
],
[
10,
24
],
[
24,
25
],
[
24,
26
],
[
10,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
10,
32
],
[
32,
33
],
[
32,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
41,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
43,
50
],
[
50,
51
],
[
35,
52
],
[
52,
53
],
[
35,
54
],
[
54,
55
],
[
10,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
56,
64
],
[
64,
65
],
[
65,
66
],
[
56,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
69,
76
],
[
76,
77
],
[
77,
78
],
[
10,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
8,
85
],
[
85,
86
],
[
0,
87
],
[
87,
88
],
[
87,
89
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static Scanner sc;\n\t\n\tpublic static void main(String[] args) {\n\t\t//宣言\n\t\tString[] str= new String[1000];\n\t\tsc = new Scanner(System.in);\n\t\tint i=0;\n\t\tint j=0;\n\t\tint count=0;\n\t\t//入力\n\t\tString search=sc.next();\n\t\tfor(;;) {\n\t\t\tstr[i]=sc.next();\n\t\t\tif(str[i].equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//System.out.println(i+str[i]);\n\t\t\ti++;\n\t\t\tj++;\n\t\t}\n\t\t//出力\n\t\tfor(i=0;i<j;i++) {\n\t\t\tif(str[i].equalsIgnoreCase(search)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static Scanner sc;\n\t\n\tpublic static void main(String[] args) {\n\t\t//宣言\n\t\tString[] str= new String[1000];\n\t\tsc = new Scanner(System.in);\n\t\tint i=0;\n\t\tint j=0;\n\t\tint count=0;\n\t\t//入力\n\t\tString search=sc.next();\n\t\tfor(;;) {\n\t\t\tstr[i]=sc.next();\n\t\t\tif(str[i].equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//System.out.println(i+str[i]);\n\t\t\ti++;\n\t\t\tj++;\n\t\t}\n\t\t//出力\n\t\tfor(i=0;i<j;i++) {\n\t\t\tif(str[i].equalsIgnoreCase(search)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"Main",
"public static Scanner sc;",
"sc",
"public static void main(String[] args) {\n\t\t//宣言\n\t\tString[] str= new String[1000];\n\t\tsc = new Scanner(System.in);\n\t\tint i=0;\n\t\tint j=0;\n\t\tint count=0;\n\t\t//入力\n\t\tString search=sc.next();\n\t\tfor(;;) {\n\t\t\tstr[i]=sc.next();\n\t\t\tif(str[i].equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//System.out.println(i+str[i]);\n\t\t\ti++;\n\t\t\tj++;\n\t\t}\n\t\t//出力\n\t\tfor(i=0;i<j;i++) {\n\t\t\tif(str[i].equalsIgnoreCase(search)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\t//宣言\n\t\tString[] str= new String[1000];\n\t\tsc = new Scanner(System.in);\n\t\tint i=0;\n\t\tint j=0;\n\t\tint count=0;\n\t\t//入力\n\t\tString search=sc.next();\n\t\tfor(;;) {\n\t\t\tstr[i]=sc.next();\n\t\t\tif(str[i].equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//System.out.println(i+str[i]);\n\t\t\ti++;\n\t\t\tj++;\n\t\t}\n\t\t//出力\n\t\tfor(i=0;i<j;i++) {\n\t\t\tif(str[i].equalsIgnoreCase(search)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"String[] str= new String[1000];",
"str",
"new String[1000]",
"1000",
"sc = new Scanner(System.in)",
"sc",
"new Scanner(System.in)",
"int i=0;",
"i",
"0",
"int j=0;",
"j",
"0",
"int count=0;",
"count",
"0",
"String search=sc.next();",
"search",
"sc.next()",
"sc.next",
"sc",
"for(;;) {\n\t\t\tstr[i]=sc.next();\n\t\t\tif(str[i].equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//System.out.println(i+str[i]);\n\t\t\ti++;\n\t\t\tj++;\n\t\t}",
";",
"{\n\t\t\tstr[i]=sc.next();\n\t\t\tif(str[i].equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//System.out.println(i+str[i]);\n\t\t\ti++;\n\t\t\tj++;\n\t\t}",
"{\n\t\t\tstr[i]=sc.next();\n\t\t\tif(str[i].equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//System.out.println(i+str[i]);\n\t\t\ti++;\n\t\t\tj++;\n\t\t}",
"str[i]=sc.next()",
"str[i]",
"str",
"i",
"sc.next()",
"sc.next",
"sc",
"if(str[i].equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}",
"str[i].equals(\"END_OF_TEXT\")",
"str[i].equals",
"str[i]",
"str",
"i",
"\"END_OF_TEXT\"",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"i++",
"i",
"j++",
"j",
"for(i=0;i<j;i++) {\n\t\t\tif(str[i].equalsIgnoreCase(search)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<j",
"i",
"j",
"i++",
"i++",
"i",
"{\n\t\t\tif(str[i].equalsIgnoreCase(search)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(str[i].equalsIgnoreCase(search)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"if(str[i].equalsIgnoreCase(search)) {\n\t\t\t\tcount++;\n\t\t\t}",
"str[i].equalsIgnoreCase(search)",
"str[i].equalsIgnoreCase",
"str[i]",
"str",
"i",
"search",
"{\n\t\t\t\tcount++;\n\t\t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n\tpublic static Scanner sc;\n\t\n\tpublic static void main(String[] args) {\n\t\t//宣言\n\t\tString[] str= new String[1000];\n\t\tsc = new Scanner(System.in);\n\t\tint i=0;\n\t\tint j=0;\n\t\tint count=0;\n\t\t//入力\n\t\tString search=sc.next();\n\t\tfor(;;) {\n\t\t\tstr[i]=sc.next();\n\t\t\tif(str[i].equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//System.out.println(i+str[i]);\n\t\t\ti++;\n\t\t\tj++;\n\t\t}\n\t\t//出力\n\t\tfor(i=0;i<j;i++) {\n\t\t\tif(str[i].equalsIgnoreCase(search)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"public class Main {\n\tpublic static Scanner sc;\n\t\n\tpublic static void main(String[] args) {\n\t\t//宣言\n\t\tString[] str= new String[1000];\n\t\tsc = new Scanner(System.in);\n\t\tint i=0;\n\t\tint j=0;\n\t\tint count=0;\n\t\t//入力\n\t\tString search=sc.next();\n\t\tfor(;;) {\n\t\t\tstr[i]=sc.next();\n\t\t\tif(str[i].equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//System.out.println(i+str[i]);\n\t\t\ti++;\n\t\t\tj++;\n\t\t}\n\t\t//出力\n\t\tfor(i=0;i<j;i++) {\n\t\t\tif(str[i].equalsIgnoreCase(search)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static Scanner sc;
public static void main(String[] args) {
//宣言
String[] str= new String[1000];
sc = new Scanner(System.in);
int i=0;
int j=0;
int count=0;
//入力
String search=sc.next();
for(;;) {
str[i]=sc.next();
if(str[i].equals("END_OF_TEXT")) {
break;
}
//System.out.println(i+str[i]);
i++;
j++;
}
//出力
for(i=0;i<j;i++) {
if(str[i].equalsIgnoreCase(search)) {
count++;
}
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
14,
4,
18,
13,
17,
3,
28,
13,
4,
18,
13,
17,
30,
30,
14,
4,
18,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
64,
8
],
[
64,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
26,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
34,
39
],
[
33,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
40,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
48,
53
],
[
53,
54
],
[
11,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
9,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
]
| [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString word = br.readLine();\n\t\tint cnt = 0;\n\t\tString line;\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tif (line.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\n\t\t\tfor (String w : line.split(\" \")) {\n\t\t\t\tif (word.equalsIgnoreCase(w))\n\t\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString word = br.readLine();\n\t\tint cnt = 0;\n\t\tString line;\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tif (line.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\n\t\t\tfor (String w : line.split(\" \")) {\n\t\t\t\tif (word.equalsIgnoreCase(w))\n\t\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString word = br.readLine();\n\t\tint cnt = 0;\n\t\tString line;\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tif (line.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\n\t\t\tfor (String w : line.split(\" \")) {\n\t\t\t\tif (word.equalsIgnoreCase(w))\n\t\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString word = br.readLine();\n\t\tint cnt = 0;\n\t\tString line;\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tif (line.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\n\t\t\tfor (String w : line.split(\" \")) {\n\t\t\t\tif (word.equalsIgnoreCase(w))\n\t\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String word = br.readLine();",
"word",
"br.readLine()",
"br.readLine",
"br",
"int cnt = 0;",
"cnt",
"0",
"String line;",
"line",
"while ((line = br.readLine()) != null) {\n\t\t\tif (line.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\n\t\t\tfor (String w : line.split(\" \")) {\n\t\t\t\tif (word.equalsIgnoreCase(w))\n\t\t\t\t\tcnt++;\n\t\t\t}\n\t\t}",
"(line = br.readLine()) != null",
"(line = br.readLine())",
"line",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\t\t\tif (line.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\n\t\t\tfor (String w : line.split(\" \")) {\n\t\t\t\tif (word.equalsIgnoreCase(w))\n\t\t\t\t\tcnt++;\n\t\t\t}\n\t\t}",
"if (line.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;",
"line.equals(\"END_OF_TEXT\")",
"line.equals",
"line",
"\"END_OF_TEXT\"",
"break;",
"for (String w : line.split(\" \")) {\n\t\t\t\tif (word.equalsIgnoreCase(w))\n\t\t\t\t\tcnt++;\n\t\t\t}",
"String w",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"{\n\t\t\t\tif (word.equalsIgnoreCase(w))\n\t\t\t\t\tcnt++;\n\t\t\t}",
"{\n\t\t\t\tif (word.equalsIgnoreCase(w))\n\t\t\t\t\tcnt++;\n\t\t\t}",
"if (word.equalsIgnoreCase(w))\n\t\t\t\t\tcnt++;",
"word.equalsIgnoreCase(w)",
"word.equalsIgnoreCase",
"word",
"w",
"cnt++",
"cnt",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString word = br.readLine();\n\t\tint cnt = 0;\n\t\tString line;\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tif (line.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\n\t\t\tfor (String w : line.split(\" \")) {\n\t\t\t\tif (word.equalsIgnoreCase(w))\n\t\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString word = br.readLine();\n\t\tint cnt = 0;\n\t\tString line;\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tif (line.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\n\t\t\tfor (String w : line.split(\" \")) {\n\t\t\t\tif (word.equalsIgnoreCase(w))\n\t\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String word = br.readLine();
int cnt = 0;
String line;
while ((line = br.readLine()) != null) {
if (line.equals("END_OF_TEXT"))
break;
for (String w : line.split(" ")) {
if (word.equalsIgnoreCase(w))
cnt++;
}
}
System.out.println(cnt);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
14,
4,
18,
13,
17,
30,
3,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
23,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
31,
36
],
[
36,
37
],
[
30,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
30,
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
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
59,
66
],
[
66,
67
],
[
67,
68
],
[
8,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
6,
75
],
[
75,
76
]
]
| [
"import java.util.Scanner;\n\nclass Main {\n public static void main(String args[]) {\n Scanner scan = new Scanner(System.in);\n\n String W = scan.nextLine();\n int count = 0;\n String T;\n while ((T = scan.nextLine()) != null) {\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n }\n String[] str = T.split(\" \");\n for (int i = 0; i < str.length; i++) {\n if(str[i].equalsIgnoreCase(W)) {\n count++;\n }\n }\n }\n System.out.println(count);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String args[]) {\n Scanner scan = new Scanner(System.in);\n\n String W = scan.nextLine();\n int count = 0;\n String T;\n while ((T = scan.nextLine()) != null) {\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n }\n String[] str = T.split(\" \");\n for (int i = 0; i < str.length; i++) {\n if(str[i].equalsIgnoreCase(W)) {\n count++;\n }\n }\n }\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String args[]) {\n Scanner scan = new Scanner(System.in);\n\n String W = scan.nextLine();\n int count = 0;\n String T;\n while ((T = scan.nextLine()) != null) {\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n }\n String[] str = T.split(\" \");\n for (int i = 0; i < str.length; i++) {\n if(str[i].equalsIgnoreCase(W)) {\n count++;\n }\n }\n }\n System.out.println(count);\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n\n String W = scan.nextLine();\n int count = 0;\n String T;\n while ((T = scan.nextLine()) != null) {\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n }\n String[] str = T.split(\" \");\n for (int i = 0; i < str.length; i++) {\n if(str[i].equalsIgnoreCase(W)) {\n count++;\n }\n }\n }\n System.out.println(count);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String W = scan.nextLine();",
"W",
"scan.nextLine()",
"scan.nextLine",
"scan",
"int count = 0;",
"count",
"0",
"String T;",
"T",
"while ((T = scan.nextLine()) != null) {\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n }\n String[] str = T.split(\" \");\n for (int i = 0; i < str.length; i++) {\n if(str[i].equalsIgnoreCase(W)) {\n count++;\n }\n }\n }",
"(T = scan.nextLine()) != null",
"(T = scan.nextLine())",
"T",
"scan.nextLine()",
"scan.nextLine",
"scan",
"null",
"{\n if (T.equals(\"END_OF_TEXT\")) {\n break;\n }\n String[] str = T.split(\" \");\n for (int i = 0; i < str.length; i++) {\n if(str[i].equalsIgnoreCase(W)) {\n count++;\n }\n }\n }",
"if (T.equals(\"END_OF_TEXT\")) {\n break;\n }",
"T.equals(\"END_OF_TEXT\")",
"T.equals",
"T",
"\"END_OF_TEXT\"",
"{\n break;\n }",
"break;",
"String[] str = T.split(\" \");",
"str",
"T.split(\" \")",
"T.split",
"T",
"\" \"",
"for (int i = 0; i < str.length; i++) {\n if(str[i].equalsIgnoreCase(W)) {\n count++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < str.length",
"i",
"str.length",
"str",
"str.length",
"i++",
"i++",
"i",
"{\n if(str[i].equalsIgnoreCase(W)) {\n count++;\n }\n }",
"{\n if(str[i].equalsIgnoreCase(W)) {\n count++;\n }\n }",
"if(str[i].equalsIgnoreCase(W)) {\n count++;\n }",
"str[i].equalsIgnoreCase(W)",
"str[i].equalsIgnoreCase",
"str[i]",
"str",
"i",
"W",
"{\n count++;\n }",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String args[]",
"args"
]
| import java.util.Scanner;
class Main {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
String W = scan.nextLine();
int count = 0;
String T;
while ((T = scan.nextLine()) != null) {
if (T.equals("END_OF_TEXT")) {
break;
}
String[] str = T.split(" ");
for (int i = 0; i < str.length; i++) {
if(str[i].equalsIgnoreCase(W)) {
count++;
}
}
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
4,
18,
13,
41,
13,
20,
42,
4,
18,
13,
30,
4,
18,
13,
4,
18,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
48,
5
],
[
48,
6
],
[
6,
7
],
[
6,
8
],
[
48,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
11,
19
],
[
19,
20
],
[
19,
21
],
[
11,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
22,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
11,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
9,
45
],
[
45,
46
],
[
0,
47
],
[
47,
48
],
[
47,
49
]
]
| [
"import java.util.*;\n \npublic class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n String ptn = scn.next().toLowerCase();\n ArrayList<String> als = new ArrayList<>();\n while(scn.hasNext()) {\n als.add(scn.next().toLowerCase());\n }\n System.out.println(Collections.frequency(als, ptn));\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n String ptn = scn.next().toLowerCase();\n ArrayList<String> als = new ArrayList<>();\n while(scn.hasNext()) {\n als.add(scn.next().toLowerCase());\n }\n System.out.println(Collections.frequency(als, ptn));\n }\n}",
"Main",
"private static final Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"public static void main(String[] args) {\n String ptn = scn.next().toLowerCase();\n ArrayList<String> als = new ArrayList<>();\n while(scn.hasNext()) {\n als.add(scn.next().toLowerCase());\n }\n System.out.println(Collections.frequency(als, ptn));\n }",
"main",
"{\n String ptn = scn.next().toLowerCase();\n ArrayList<String> als = new ArrayList<>();\n while(scn.hasNext()) {\n als.add(scn.next().toLowerCase());\n }\n System.out.println(Collections.frequency(als, ptn));\n }",
"String ptn = scn.next().toLowerCase();",
"ptn",
"scn.next().toLowerCase()",
"scn.next().toLowerCase",
"scn.next()",
"scn.next",
"scn",
"ArrayList<String> als = new ArrayList<>();",
"als",
"new ArrayList<>()",
"while(scn.hasNext()) {\n als.add(scn.next().toLowerCase());\n }",
"scn.hasNext()",
"scn.hasNext",
"scn",
"{\n als.add(scn.next().toLowerCase());\n }",
"als.add(scn.next().toLowerCase())",
"als.add",
"als",
"scn.next().toLowerCase()",
"scn.next().toLowerCase",
"scn.next()",
"scn.next",
"scn",
"System.out.println(Collections.frequency(als, ptn))",
"System.out.println",
"System.out",
"System",
"System.out",
"Collections.frequency(als, ptn)",
"Collections.frequency",
"Collections",
"als",
"ptn",
"String[] args",
"args",
"public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n String ptn = scn.next().toLowerCase();\n ArrayList<String> als = new ArrayList<>();\n while(scn.hasNext()) {\n als.add(scn.next().toLowerCase());\n }\n System.out.println(Collections.frequency(als, ptn));\n }\n}",
"public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n String ptn = scn.next().toLowerCase();\n ArrayList<String> als = new ArrayList<>();\n while(scn.hasNext()) {\n als.add(scn.next().toLowerCase());\n }\n System.out.println(Collections.frequency(als, ptn));\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
private static final Scanner scn = new Scanner(System.in);
public static void main(String[] args) {
String ptn = scn.next().toLowerCase();
ArrayList<String> als = new ArrayList<>();
while(scn.hasNext()) {
als.add(scn.next().toLowerCase());
}
System.out.println(Collections.frequency(als, ptn));
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
0,
13,
4,
18,
13,
14,
2,
4,
18,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
14,
2,
13,
17,
30,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
72,
5
],
[
72,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
8,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
6,
69
],
[
69,
70
],
[
0,
71
],
[
71,
72
],
[
71,
73
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString UpperAlpha = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tString W;\n\t\tString line;\n\t\tString[] T;\n\t\tint count_Empty = 0;\n\t\tboolean judge_W = true;\n\t\tboolean judge_T = true;\n\t\tint count_W = 0;\n\n\t\t// 始:Wの入力とチェック\n\t\tW = sc.nextLine();\n\n\t\tif (W.length() > 10) {\n\t\t\tjudge_W = false;\n\t\t}\n\n\t\tif (judge_W == true) {\n\t\t\tout: for (int i = 0; i < W.length(); i++) {\n\t\t\t\tif (UpperAlpha.indexOf(\"\" + W.charAt(i)) == -1) {\n\t\t\t\t\tjudge_W = false;\n\t\t\t\t\tbreak out;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// 終:Wの入力とチェック\n\n\t\tif (judge_W == true) {\n\n\t\t\t// 始: T入力とチェック\n\t\t\tout: while (true) {\n\t\t\t\tline = sc.nextLine(); // 入力された文章Tの1行を受け取る\n\t\t\t\tif (line.equals(\"END_OF_TEXT\")) { // END_OF_TEXTと入力されたら\n\t\t\t\t\tbreak out; // whileからでる→入力終了\n\n\t\t\t\t}\n\t\t\t\tT = (line.toLowerCase()).split(\" \");\n\t\t\t\tcount_Empty += T.length - 1; // Tは半角で区切って要素を格納しているので-1をすることで空白数となる\n\n\t\t\t\tif (line.length() - count_Empty > 1000) {\n\t\t\t\t\tjudge_T = false;\n\t\t\t\t\tbreak out;\n\n\t\t\t\t}\n\n\t\t\t\tfor (int j = 0; j < T.length; j++) {\n\n\t\t\t\t\tif (T[j].equals(W)) {\n\t\t\t\t\t\tcount_W++;\n\t\t\t\t\t}\n\n\t\t\t\t}// in:forここまで\n\t\t\t}// out: while ここまで\n\n\t\t\tif (judge_T == true) {\n\t\t\t\tSystem.out.println(count_W);\n\n\t\t\t}\n\n\t\t}\n\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString UpperAlpha = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tString W;\n\t\tString line;\n\t\tString[] T;\n\t\tint count_Empty = 0;\n\t\tboolean judge_W = true;\n\t\tboolean judge_T = true;\n\t\tint count_W = 0;\n\n\t\t// 始:Wの入力とチェック\n\t\tW = sc.nextLine();\n\n\t\tif (W.length() > 10) {\n\t\t\tjudge_W = false;\n\t\t}\n\n\t\tif (judge_W == true) {\n\t\t\tout: for (int i = 0; i < W.length(); i++) {\n\t\t\t\tif (UpperAlpha.indexOf(\"\" + W.charAt(i)) == -1) {\n\t\t\t\t\tjudge_W = false;\n\t\t\t\t\tbreak out;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// 終:Wの入力とチェック\n\n\t\tif (judge_W == true) {\n\n\t\t\t// 始: T入力とチェック\n\t\t\tout: while (true) {\n\t\t\t\tline = sc.nextLine(); // 入力された文章Tの1行を受け取る\n\t\t\t\tif (line.equals(\"END_OF_TEXT\")) { // END_OF_TEXTと入力されたら\n\t\t\t\t\tbreak out; // whileからでる→入力終了\n\n\t\t\t\t}\n\t\t\t\tT = (line.toLowerCase()).split(\" \");\n\t\t\t\tcount_Empty += T.length - 1; // Tは半角で区切って要素を格納しているので-1をすることで空白数となる\n\n\t\t\t\tif (line.length() - count_Empty > 1000) {\n\t\t\t\t\tjudge_T = false;\n\t\t\t\t\tbreak out;\n\n\t\t\t\t}\n\n\t\t\t\tfor (int j = 0; j < T.length; j++) {\n\n\t\t\t\t\tif (T[j].equals(W)) {\n\t\t\t\t\t\tcount_W++;\n\t\t\t\t\t}\n\n\t\t\t\t}// in:forここまで\n\t\t\t}// out: while ここまで\n\n\t\t\tif (judge_T == true) {\n\t\t\t\tSystem.out.println(count_W);\n\n\t\t\t}\n\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString UpperAlpha = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tString W;\n\t\tString line;\n\t\tString[] T;\n\t\tint count_Empty = 0;\n\t\tboolean judge_W = true;\n\t\tboolean judge_T = true;\n\t\tint count_W = 0;\n\n\t\t// 始:Wの入力とチェック\n\t\tW = sc.nextLine();\n\n\t\tif (W.length() > 10) {\n\t\t\tjudge_W = false;\n\t\t}\n\n\t\tif (judge_W == true) {\n\t\t\tout: for (int i = 0; i < W.length(); i++) {\n\t\t\t\tif (UpperAlpha.indexOf(\"\" + W.charAt(i)) == -1) {\n\t\t\t\t\tjudge_W = false;\n\t\t\t\t\tbreak out;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// 終:Wの入力とチェック\n\n\t\tif (judge_W == true) {\n\n\t\t\t// 始: T入力とチェック\n\t\t\tout: while (true) {\n\t\t\t\tline = sc.nextLine(); // 入力された文章Tの1行を受け取る\n\t\t\t\tif (line.equals(\"END_OF_TEXT\")) { // END_OF_TEXTと入力されたら\n\t\t\t\t\tbreak out; // whileからでる→入力終了\n\n\t\t\t\t}\n\t\t\t\tT = (line.toLowerCase()).split(\" \");\n\t\t\t\tcount_Empty += T.length - 1; // Tは半角で区切って要素を格納しているので-1をすることで空白数となる\n\n\t\t\t\tif (line.length() - count_Empty > 1000) {\n\t\t\t\t\tjudge_T = false;\n\t\t\t\t\tbreak out;\n\n\t\t\t\t}\n\n\t\t\t\tfor (int j = 0; j < T.length; j++) {\n\n\t\t\t\t\tif (T[j].equals(W)) {\n\t\t\t\t\t\tcount_W++;\n\t\t\t\t\t}\n\n\t\t\t\t}// in:forここまで\n\t\t\t}// out: while ここまで\n\n\t\t\tif (judge_T == true) {\n\t\t\t\tSystem.out.println(count_W);\n\n\t\t\t}\n\n\t\t}\n\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString UpperAlpha = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tString W;\n\t\tString line;\n\t\tString[] T;\n\t\tint count_Empty = 0;\n\t\tboolean judge_W = true;\n\t\tboolean judge_T = true;\n\t\tint count_W = 0;\n\n\t\t// 始:Wの入力とチェック\n\t\tW = sc.nextLine();\n\n\t\tif (W.length() > 10) {\n\t\t\tjudge_W = false;\n\t\t}\n\n\t\tif (judge_W == true) {\n\t\t\tout: for (int i = 0; i < W.length(); i++) {\n\t\t\t\tif (UpperAlpha.indexOf(\"\" + W.charAt(i)) == -1) {\n\t\t\t\t\tjudge_W = false;\n\t\t\t\t\tbreak out;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// 終:Wの入力とチェック\n\n\t\tif (judge_W == true) {\n\n\t\t\t// 始: T入力とチェック\n\t\t\tout: while (true) {\n\t\t\t\tline = sc.nextLine(); // 入力された文章Tの1行を受け取る\n\t\t\t\tif (line.equals(\"END_OF_TEXT\")) { // END_OF_TEXTと入力されたら\n\t\t\t\t\tbreak out; // whileからでる→入力終了\n\n\t\t\t\t}\n\t\t\t\tT = (line.toLowerCase()).split(\" \");\n\t\t\t\tcount_Empty += T.length - 1; // Tは半角で区切って要素を格納しているので-1をすることで空白数となる\n\n\t\t\t\tif (line.length() - count_Empty > 1000) {\n\t\t\t\t\tjudge_T = false;\n\t\t\t\t\tbreak out;\n\n\t\t\t\t}\n\n\t\t\t\tfor (int j = 0; j < T.length; j++) {\n\n\t\t\t\t\tif (T[j].equals(W)) {\n\t\t\t\t\t\tcount_W++;\n\t\t\t\t\t}\n\n\t\t\t\t}// in:forここまで\n\t\t\t}// out: while ここまで\n\n\t\t\tif (judge_T == true) {\n\t\t\t\tSystem.out.println(count_W);\n\n\t\t\t}\n\n\t\t}\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String UpperAlpha = \"abcdefghijklmnopqrstuvwxyz\";",
"UpperAlpha",
"\"abcdefghijklmnopqrstuvwxyz\"",
"String W;",
"W",
"String line;",
"line",
"String[] T;",
"T",
"int count_Empty = 0;",
"count_Empty",
"0",
"boolean judge_W = true;",
"judge_W",
"true",
"boolean judge_T = true;",
"judge_T",
"true",
"int count_W = 0;",
"count_W",
"0",
"W = sc.nextLine()",
"W",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if (W.length() > 10) {\n\t\t\tjudge_W = false;\n\t\t}",
"W.length() > 10",
"W.length()",
"W.length",
"W",
"10",
"{\n\t\t\tjudge_W = false;\n\t\t}",
"judge_W = false",
"judge_W",
"false",
"if (judge_W == true) {\n\t\t\tout: for (int i = 0; i < W.length(); i++) {\n\t\t\t\tif (UpperAlpha.indexOf(\"\" + W.charAt(i)) == -1) {\n\t\t\t\t\tjudge_W = false;\n\t\t\t\t\tbreak out;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"judge_W == true",
"judge_W",
"true",
"{\n\t\t\tout: for (int i = 0; i < W.length(); i++) {\n\t\t\t\tif (UpperAlpha.indexOf(\"\" + W.charAt(i)) == -1) {\n\t\t\t\t\tjudge_W = false;\n\t\t\t\t\tbreak out;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"if (judge_W == true) {\n\n\t\t\t// 始: T入力とチェック\n\t\t\tout: while (true) {\n\t\t\t\tline = sc.nextLine(); // 入力された文章Tの1行を受け取る\n\t\t\t\tif (line.equals(\"END_OF_TEXT\")) { // END_OF_TEXTと入力されたら\n\t\t\t\t\tbreak out; // whileからでる→入力終了\n\n\t\t\t\t}\n\t\t\t\tT = (line.toLowerCase()).split(\" \");\n\t\t\t\tcount_Empty += T.length - 1; // Tは半角で区切って要素を格納しているので-1をすることで空白数となる\n\n\t\t\t\tif (line.length() - count_Empty > 1000) {\n\t\t\t\t\tjudge_T = false;\n\t\t\t\t\tbreak out;\n\n\t\t\t\t}\n\n\t\t\t\tfor (int j = 0; j < T.length; j++) {\n\n\t\t\t\t\tif (T[j].equals(W)) {\n\t\t\t\t\t\tcount_W++;\n\t\t\t\t\t}\n\n\t\t\t\t}// in:forここまで\n\t\t\t}// out: while ここまで\n\n\t\t\tif (judge_T == true) {\n\t\t\t\tSystem.out.println(count_W);\n\n\t\t\t}\n\n\t\t}",
"judge_W == true",
"judge_W",
"true",
"{\n\n\t\t\t// 始: T入力とチェック\n\t\t\tout: while (true) {\n\t\t\t\tline = sc.nextLine(); // 入力された文章Tの1行を受け取る\n\t\t\t\tif (line.equals(\"END_OF_TEXT\")) { // END_OF_TEXTと入力されたら\n\t\t\t\t\tbreak out; // whileからでる→入力終了\n\n\t\t\t\t}\n\t\t\t\tT = (line.toLowerCase()).split(\" \");\n\t\t\t\tcount_Empty += T.length - 1; // Tは半角で区切って要素を格納しているので-1をすることで空白数となる\n\n\t\t\t\tif (line.length() - count_Empty > 1000) {\n\t\t\t\t\tjudge_T = false;\n\t\t\t\t\tbreak out;\n\n\t\t\t\t}\n\n\t\t\t\tfor (int j = 0; j < T.length; j++) {\n\n\t\t\t\t\tif (T[j].equals(W)) {\n\t\t\t\t\t\tcount_W++;\n\t\t\t\t\t}\n\n\t\t\t\t}// in:forここまで\n\t\t\t}// out: while ここまで\n\n\t\t\tif (judge_T == true) {\n\t\t\t\tSystem.out.println(count_W);\n\n\t\t\t}\n\n\t\t}",
"if (judge_T == true) {\n\t\t\t\tSystem.out.println(count_W);\n\n\t\t\t}",
"judge_T == true",
"judge_T",
"true",
"{\n\t\t\t\tSystem.out.println(count_W);\n\n\t\t\t}",
"System.out.println(count_W)",
"System.out.println",
"System.out",
"System",
"System.out",
"count_W",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString UpperAlpha = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tString W;\n\t\tString line;\n\t\tString[] T;\n\t\tint count_Empty = 0;\n\t\tboolean judge_W = true;\n\t\tboolean judge_T = true;\n\t\tint count_W = 0;\n\n\t\t// 始:Wの入力とチェック\n\t\tW = sc.nextLine();\n\n\t\tif (W.length() > 10) {\n\t\t\tjudge_W = false;\n\t\t}\n\n\t\tif (judge_W == true) {\n\t\t\tout: for (int i = 0; i < W.length(); i++) {\n\t\t\t\tif (UpperAlpha.indexOf(\"\" + W.charAt(i)) == -1) {\n\t\t\t\t\tjudge_W = false;\n\t\t\t\t\tbreak out;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// 終:Wの入力とチェック\n\n\t\tif (judge_W == true) {\n\n\t\t\t// 始: T入力とチェック\n\t\t\tout: while (true) {\n\t\t\t\tline = sc.nextLine(); // 入力された文章Tの1行を受け取る\n\t\t\t\tif (line.equals(\"END_OF_TEXT\")) { // END_OF_TEXTと入力されたら\n\t\t\t\t\tbreak out; // whileからでる→入力終了\n\n\t\t\t\t}\n\t\t\t\tT = (line.toLowerCase()).split(\" \");\n\t\t\t\tcount_Empty += T.length - 1; // Tは半角で区切って要素を格納しているので-1をすることで空白数となる\n\n\t\t\t\tif (line.length() - count_Empty > 1000) {\n\t\t\t\t\tjudge_T = false;\n\t\t\t\t\tbreak out;\n\n\t\t\t\t}\n\n\t\t\t\tfor (int j = 0; j < T.length; j++) {\n\n\t\t\t\t\tif (T[j].equals(W)) {\n\t\t\t\t\t\tcount_W++;\n\t\t\t\t\t}\n\n\t\t\t\t}// in:forここまで\n\t\t\t}// out: while ここまで\n\n\t\t\tif (judge_T == true) {\n\t\t\t\tSystem.out.println(count_W);\n\n\t\t\t}\n\n\t\t}\n\n\t}\n}",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString UpperAlpha = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tString W;\n\t\tString line;\n\t\tString[] T;\n\t\tint count_Empty = 0;\n\t\tboolean judge_W = true;\n\t\tboolean judge_T = true;\n\t\tint count_W = 0;\n\n\t\t// 始:Wの入力とチェック\n\t\tW = sc.nextLine();\n\n\t\tif (W.length() > 10) {\n\t\t\tjudge_W = false;\n\t\t}\n\n\t\tif (judge_W == true) {\n\t\t\tout: for (int i = 0; i < W.length(); i++) {\n\t\t\t\tif (UpperAlpha.indexOf(\"\" + W.charAt(i)) == -1) {\n\t\t\t\t\tjudge_W = false;\n\t\t\t\t\tbreak out;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// 終:Wの入力とチェック\n\n\t\tif (judge_W == true) {\n\n\t\t\t// 始: T入力とチェック\n\t\t\tout: while (true) {\n\t\t\t\tline = sc.nextLine(); // 入力された文章Tの1行を受け取る\n\t\t\t\tif (line.equals(\"END_OF_TEXT\")) { // END_OF_TEXTと入力されたら\n\t\t\t\t\tbreak out; // whileからでる→入力終了\n\n\t\t\t\t}\n\t\t\t\tT = (line.toLowerCase()).split(\" \");\n\t\t\t\tcount_Empty += T.length - 1; // Tは半角で区切って要素を格納しているので-1をすることで空白数となる\n\n\t\t\t\tif (line.length() - count_Empty > 1000) {\n\t\t\t\t\tjudge_T = false;\n\t\t\t\t\tbreak out;\n\n\t\t\t\t}\n\n\t\t\t\tfor (int j = 0; j < T.length; j++) {\n\n\t\t\t\t\tif (T[j].equals(W)) {\n\t\t\t\t\t\tcount_W++;\n\t\t\t\t\t}\n\n\t\t\t\t}// in:forここまで\n\t\t\t}// out: while ここまで\n\n\t\t\tif (judge_T == true) {\n\t\t\t\tSystem.out.println(count_W);\n\n\t\t\t}\n\n\t\t}\n\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
String UpperAlpha = "abcdefghijklmnopqrstuvwxyz";
String W;
String line;
String[] T;
int count_Empty = 0;
boolean judge_W = true;
boolean judge_T = true;
int count_W = 0;
// 始:Wの入力とチェック
W = sc.nextLine();
if (W.length() > 10) {
judge_W = false;
}
if (judge_W == true) {
out: for (int i = 0; i < W.length(); i++) {
if (UpperAlpha.indexOf("" + W.charAt(i)) == -1) {
judge_W = false;
break out;
}
}
}
// 終:Wの入力とチェック
if (judge_W == true) {
// 始: T入力とチェック
out: while (true) {
line = sc.nextLine(); // 入力された文章Tの1行を受け取る
if (line.equals("END_OF_TEXT")) { // END_OF_TEXTと入力されたら
break out; // whileからでる→入力終了
}
T = (line.toLowerCase()).split(" ");
count_Empty += T.length - 1; // Tは半角で区切って要素を格納しているので-1をすることで空白数となる
if (line.length() - count_Empty > 1000) {
judge_T = false;
break out;
}
for (int j = 0; j < T.length; j++) {
if (T[j].equals(W)) {
count_W++;
}
}// in:forここまで
}// out: while ここまで
if (judge_T == true) {
System.out.println(count_W);
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
0,
13,
20,
17,
41,
13,
17,
41,
13,
17,
42,
17,
30,
0,
18,
13,
13,
4,
18,
13,
14,
4,
18,
18,
13,
13,
17,
30,
3,
14,
4,
18,
18,
13,
13,
13,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
69,
5
],
[
69,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
39,
46
],
[
46,
47
],
[
31,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
48,
55
],
[
55,
56
],
[
56,
57
],
[
31,
58
],
[
58,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
6,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String W = sc.nextLine();\n String[] T;\n T = new String[1000];\n int i = 0;\n int count = 0;\n while(true){\n T[i] = sc.next();\n if(T[i].equals(\"END_OF_TEXT\")){\n break;\n }\n if(T[i].equalsIgnoreCase(W)){\n count++;\n }\n i++;\n }\n System.out.println(count);\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 W = sc.nextLine();\n String[] T;\n T = new String[1000];\n int i = 0;\n int count = 0;\n while(true){\n T[i] = sc.next();\n if(T[i].equals(\"END_OF_TEXT\")){\n break;\n }\n if(T[i].equalsIgnoreCase(W)){\n count++;\n }\n i++;\n }\n System.out.println(count);\n } \n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String W = sc.nextLine();\n String[] T;\n T = new String[1000];\n int i = 0;\n int count = 0;\n while(true){\n T[i] = sc.next();\n if(T[i].equals(\"END_OF_TEXT\")){\n break;\n }\n if(T[i].equalsIgnoreCase(W)){\n count++;\n }\n i++;\n }\n System.out.println(count);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String W = sc.nextLine();\n String[] T;\n T = new String[1000];\n int i = 0;\n int count = 0;\n while(true){\n T[i] = sc.next();\n if(T[i].equals(\"END_OF_TEXT\")){\n break;\n }\n if(T[i].equalsIgnoreCase(W)){\n count++;\n }\n i++;\n }\n System.out.println(count);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String W = sc.nextLine();",
"W",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] T;",
"T",
"T = new String[1000]",
"T",
"new String[1000]",
"1000",
"int i = 0;",
"i",
"0",
"int count = 0;",
"count",
"0",
"while(true){\n T[i] = sc.next();\n if(T[i].equals(\"END_OF_TEXT\")){\n break;\n }\n if(T[i].equalsIgnoreCase(W)){\n count++;\n }\n i++;\n }",
"true",
"{\n T[i] = sc.next();\n if(T[i].equals(\"END_OF_TEXT\")){\n break;\n }\n if(T[i].equalsIgnoreCase(W)){\n count++;\n }\n i++;\n }",
"T[i] = sc.next()",
"T[i]",
"T",
"i",
"sc.next()",
"sc.next",
"sc",
"if(T[i].equals(\"END_OF_TEXT\")){\n break;\n }",
"T[i].equals(\"END_OF_TEXT\")",
"T[i].equals",
"T[i]",
"T",
"i",
"\"END_OF_TEXT\"",
"{\n break;\n }",
"break;",
"if(T[i].equalsIgnoreCase(W)){\n count++;\n }",
"T[i].equalsIgnoreCase(W)",
"T[i].equalsIgnoreCase",
"T[i]",
"T",
"i",
"W",
"{\n count++;\n }",
"count++",
"count",
"i++",
"i",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String W = sc.nextLine();\n String[] T;\n T = new String[1000];\n int i = 0;\n int count = 0;\n while(true){\n T[i] = sc.next();\n if(T[i].equals(\"END_OF_TEXT\")){\n break;\n }\n if(T[i].equalsIgnoreCase(W)){\n count++;\n }\n i++;\n }\n System.out.println(count);\n } \n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String W = sc.nextLine();\n String[] T;\n T = new String[1000];\n int i = 0;\n int count = 0;\n while(true){\n T[i] = sc.next();\n if(T[i].equals(\"END_OF_TEXT\")){\n break;\n }\n if(T[i].equalsIgnoreCase(W)){\n count++;\n }\n i++;\n }\n System.out.println(count);\n } \n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String W = sc.nextLine();
String[] T;
T = new String[1000];
int i = 0;
int count = 0;
while(true){
T[i] = sc.next();
if(T[i].equals("END_OF_TEXT")){
break;
}
if(T[i].equalsIgnoreCase(W)){
count++;
}
i++;
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
40,
17,
41,
13,
17,
0,
13,
4,
18,
4,
18,
13,
42,
17,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
2,
4,
18,
13,
4,
18,
13,
30,
40,
13,
0,
13,
40,
17,
4,
18,
18,
13,
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
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
38,
43
],
[
43,
44
],
[
32,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
32,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
32,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
61,
65
],
[
65,
66
],
[
66,
67
],
[
56,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
6,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
]
| [
"\n\nimport java.util.*;\n\npublic class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str, W;\n\t\tint result = -1;// ?????????\n\t\tint sum = 0;// ????¨????\n\n\t\tW = scan.next().toLowerCase();\n\n\t\twhile (true) {\n\n\t\t\tstr = scan.next();\n\n\t\t\t// END_OF_TEXT??§????????????\n\t\t\tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// END_OF_TEXT??????????????£????????????????????????????????§?°??????????\n\t\t\tstr = str.toLowerCase();\n\n\t\t\t// 1????????????????????????0?????¨??????????????????\n\t\t\tresult = str.indexOf(W);\n\t\t\tif ((result == 0) & (str.length() == W.length())) {\n\t\t\t\tsum++;\n\t\t\t\tresult = -1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(sum);\n\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str, W;\n\t\tint result = -1;// ?????????\n\t\tint sum = 0;// ????¨????\n\n\t\tW = scan.next().toLowerCase();\n\n\t\twhile (true) {\n\n\t\t\tstr = scan.next();\n\n\t\t\t// END_OF_TEXT??§????????????\n\t\t\tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// END_OF_TEXT??????????????£????????????????????????????????§?°??????????\n\t\t\tstr = str.toLowerCase();\n\n\t\t\t// 1????????????????????????0?????¨??????????????????\n\t\t\tresult = str.indexOf(W);\n\t\t\tif ((result == 0) & (str.length() == W.length())) {\n\t\t\t\tsum++;\n\t\t\t\tresult = -1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(sum);\n\n\t}\n}",
"Main",
"public static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str, W;\n\t\tint result = -1;// ?????????\n\t\tint sum = 0;// ????¨????\n\n\t\tW = scan.next().toLowerCase();\n\n\t\twhile (true) {\n\n\t\t\tstr = scan.next();\n\n\t\t\t// END_OF_TEXT??§????????????\n\t\t\tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// END_OF_TEXT??????????????£????????????????????????????????§?°??????????\n\t\t\tstr = str.toLowerCase();\n\n\t\t\t// 1????????????????????????0?????¨??????????????????\n\t\t\tresult = str.indexOf(W);\n\t\t\tif ((result == 0) & (str.length() == W.length())) {\n\t\t\t\tsum++;\n\t\t\t\tresult = -1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(sum);\n\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str, W;\n\t\tint result = -1;// ?????????\n\t\tint sum = 0;// ????¨????\n\n\t\tW = scan.next().toLowerCase();\n\n\t\twhile (true) {\n\n\t\t\tstr = scan.next();\n\n\t\t\t// END_OF_TEXT??§????????????\n\t\t\tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// END_OF_TEXT??????????????£????????????????????????????????§?°??????????\n\t\t\tstr = str.toLowerCase();\n\n\t\t\t// 1????????????????????????0?????¨??????????????????\n\t\t\tresult = str.indexOf(W);\n\t\t\tif ((result == 0) & (str.length() == W.length())) {\n\t\t\t\tsum++;\n\t\t\t\tresult = -1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(sum);\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String str",
"str",
"W;",
"W",
"int result = -1;",
"result",
"-1",
"1",
"int sum = 0;",
"sum",
"0",
"W = scan.next().toLowerCase()",
"W",
"scan.next().toLowerCase()",
"scan.next().toLowerCase",
"scan.next()",
"scan.next",
"scan",
"while (true) {\n\n\t\t\tstr = scan.next();\n\n\t\t\t// END_OF_TEXT??§????????????\n\t\t\tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// END_OF_TEXT??????????????£????????????????????????????????§?°??????????\n\t\t\tstr = str.toLowerCase();\n\n\t\t\t// 1????????????????????????0?????¨??????????????????\n\t\t\tresult = str.indexOf(W);\n\t\t\tif ((result == 0) & (str.length() == W.length())) {\n\t\t\t\tsum++;\n\t\t\t\tresult = -1;\n\t\t\t}\n\t\t}",
"true",
"{\n\n\t\t\tstr = scan.next();\n\n\t\t\t// END_OF_TEXT??§????????????\n\t\t\tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// END_OF_TEXT??????????????£????????????????????????????????§?°??????????\n\t\t\tstr = str.toLowerCase();\n\n\t\t\t// 1????????????????????????0?????¨??????????????????\n\t\t\tresult = str.indexOf(W);\n\t\t\tif ((result == 0) & (str.length() == W.length())) {\n\t\t\t\tsum++;\n\t\t\t\tresult = -1;\n\t\t\t}\n\t\t}",
"str = scan.next()",
"str",
"scan.next()",
"scan.next",
"scan",
"if (str.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}",
"str.equals(\"END_OF_TEXT\")",
"str.equals",
"str",
"\"END_OF_TEXT\"",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"str = str.toLowerCase()",
"str",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"result = str.indexOf(W)",
"result",
"str.indexOf(W)",
"str.indexOf",
"str",
"W",
"if ((result == 0) & (str.length() == W.length())) {\n\t\t\t\tsum++;\n\t\t\t\tresult = -1;\n\t\t\t}",
"(result == 0) & (str.length() == W.length())",
"(result == 0)",
"result",
"0",
"(str.length() == W.length())",
"str.length()",
"str.length",
"str",
"W.length()",
"W.length",
"W",
"{\n\t\t\t\tsum++;\n\t\t\t\tresult = -1;\n\t\t\t}",
"sum++",
"sum",
"result = -1",
"result",
"-1",
"1",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String args[]",
"args",
"public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str, W;\n\t\tint result = -1;// ?????????\n\t\tint sum = 0;// ????¨????\n\n\t\tW = scan.next().toLowerCase();\n\n\t\twhile (true) {\n\n\t\t\tstr = scan.next();\n\n\t\t\t// END_OF_TEXT??§????????????\n\t\t\tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// END_OF_TEXT??????????????£????????????????????????????????§?°??????????\n\t\t\tstr = str.toLowerCase();\n\n\t\t\t// 1????????????????????????0?????¨??????????????????\n\t\t\tresult = str.indexOf(W);\n\t\t\tif ((result == 0) & (str.length() == W.length())) {\n\t\t\t\tsum++;\n\t\t\t\tresult = -1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(sum);\n\n\t}\n}",
"public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str, W;\n\t\tint result = -1;// ?????????\n\t\tint sum = 0;// ????¨????\n\n\t\tW = scan.next().toLowerCase();\n\n\t\twhile (true) {\n\n\t\t\tstr = scan.next();\n\n\t\t\t// END_OF_TEXT??§????????????\n\t\t\tif (str.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// END_OF_TEXT??????????????£????????????????????????????????§?°??????????\n\t\t\tstr = str.toLowerCase();\n\n\t\t\t// 1????????????????????????0?????¨??????????????????\n\t\t\tresult = str.indexOf(W);\n\t\t\tif ((result == 0) & (str.length() == W.length())) {\n\t\t\t\tsum++;\n\t\t\t\tresult = -1;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(sum);\n\n\t}\n}",
"Main"
]
|
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
String str, W;
int result = -1;// ?????????
int sum = 0;// ????¨????
W = scan.next().toLowerCase();
while (true) {
str = scan.next();
// END_OF_TEXT??§????????????
if (str.equals("END_OF_TEXT")) {
break;
}
// END_OF_TEXT??????????????£????????????????????????????????§?°??????????
str = str.toLowerCase();
// 1????????????????????????0?????¨??????????????????
result = str.indexOf(W);
if ((result == 0) & (str.length() == W.length())) {
sum++;
result = -1;
}
}
System.out.println(sum);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
17,
42,
2,
4,
18,
17,
0,
13,
4,
18,
13,
17,
30,
14,
4,
18,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
23,
32
],
[
22,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
34,
39
],
[
39,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
6,
47
],
[
47,
48
]
]
| [
"import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String comparison = scan.next();\n String word;\n int count = 0;\n while (\"END_OF_TEXT\".equals((word = scan.next())) == false) {\n if (word.equalsIgnoreCase(comparison))\n count++;\n }\n System.out.println(count);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String comparison = scan.next();\n String word;\n int count = 0;\n while (\"END_OF_TEXT\".equals((word = scan.next())) == false) {\n if (word.equalsIgnoreCase(comparison))\n count++;\n }\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String comparison = scan.next();\n String word;\n int count = 0;\n while (\"END_OF_TEXT\".equals((word = scan.next())) == false) {\n if (word.equalsIgnoreCase(comparison))\n count++;\n }\n System.out.println(count);\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n String comparison = scan.next();\n String word;\n int count = 0;\n while (\"END_OF_TEXT\".equals((word = scan.next())) == false) {\n if (word.equalsIgnoreCase(comparison))\n count++;\n }\n System.out.println(count);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String comparison = scan.next();",
"comparison",
"scan.next()",
"scan.next",
"scan",
"String word;",
"word",
"int count = 0;",
"count",
"0",
"while (\"END_OF_TEXT\".equals((word = scan.next())) == false) {\n if (word.equalsIgnoreCase(comparison))\n count++;\n }",
"\"END_OF_TEXT\".equals((word = scan.next())) == false",
"\"END_OF_TEXT\".equals((word = scan.next()))",
"\"END_OF_TEXT\".equals",
"\"END_OF_TEXT\"",
"(word = scan.next())",
"word",
"scan.next()",
"scan.next",
"scan",
"false",
"{\n if (word.equalsIgnoreCase(comparison))\n count++;\n }",
"if (word.equalsIgnoreCase(comparison))\n count++;",
"word.equalsIgnoreCase(comparison)",
"word.equalsIgnoreCase",
"word",
"comparison",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String comparison = scan.next();
String word;
int count = 0;
while ("END_OF_TEXT".equals((word = scan.next())) == false) {
if (word.equalsIgnoreCase(comparison))
count++;
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
41,
13,
17,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
28,
13,
13,
30,
30,
14,
4,
18,
13,
13,
40,
13,
4,
18,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
71,
5
],
[
71,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
30,
35
],
[
24,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
24,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
24,
47
],
[
47,
48
],
[
47,
49
],
[
47,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
52,
57
],
[
57,
58
],
[
8,
59
],
[
59,
60
],
[
60,
61
],
[
8,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
6,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
]
| [
"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\tString word = sc.nextLine().toLowerCase();\n\n\t\tint count = 0;\n\t\twhile(true) {\n\n\t\t\tString input = sc.nextLine();\n\n\t\t\tif(input.equals(\"END_OF_TEXT\")) break;\n\n\t\t\tString tmp = input.toLowerCase();\n\n\t\t\tString[] tangos = tmp.split(\" \");\n\n\t\t\tfor(String tango : tangos) {\n\t\t\t\tif(tango.equals(word)) count++;\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\n\t\tSystem.out.println(count);\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString word = sc.nextLine().toLowerCase();\n\n\t\tint count = 0;\n\t\twhile(true) {\n\n\t\t\tString input = sc.nextLine();\n\n\t\t\tif(input.equals(\"END_OF_TEXT\")) break;\n\n\t\t\tString tmp = input.toLowerCase();\n\n\t\t\tString[] tangos = tmp.split(\" \");\n\n\t\t\tfor(String tango : tangos) {\n\t\t\t\tif(tango.equals(word)) count++;\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\n\t\tSystem.out.println(count);\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString word = sc.nextLine().toLowerCase();\n\n\t\tint count = 0;\n\t\twhile(true) {\n\n\t\t\tString input = sc.nextLine();\n\n\t\t\tif(input.equals(\"END_OF_TEXT\")) break;\n\n\t\t\tString tmp = input.toLowerCase();\n\n\t\t\tString[] tangos = tmp.split(\" \");\n\n\t\t\tfor(String tango : tangos) {\n\t\t\t\tif(tango.equals(word)) count++;\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\n\t\tSystem.out.println(count);\n\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString word = sc.nextLine().toLowerCase();\n\n\t\tint count = 0;\n\t\twhile(true) {\n\n\t\t\tString input = sc.nextLine();\n\n\t\t\tif(input.equals(\"END_OF_TEXT\")) break;\n\n\t\t\tString tmp = input.toLowerCase();\n\n\t\t\tString[] tangos = tmp.split(\" \");\n\n\t\t\tfor(String tango : tangos) {\n\t\t\t\tif(tango.equals(word)) count++;\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\n\t\tSystem.out.println(count);\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String word = sc.nextLine().toLowerCase();",
"word",
"sc.nextLine().toLowerCase()",
"sc.nextLine().toLowerCase",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int count = 0;",
"count",
"0",
"while(true) {\n\n\t\t\tString input = sc.nextLine();\n\n\t\t\tif(input.equals(\"END_OF_TEXT\")) break;\n\n\t\t\tString tmp = input.toLowerCase();\n\n\t\t\tString[] tangos = tmp.split(\" \");\n\n\t\t\tfor(String tango : tangos) {\n\t\t\t\tif(tango.equals(word)) count++;\n\t\t\t}\n\n\t\t}",
"true",
"{\n\n\t\t\tString input = sc.nextLine();\n\n\t\t\tif(input.equals(\"END_OF_TEXT\")) break;\n\n\t\t\tString tmp = input.toLowerCase();\n\n\t\t\tString[] tangos = tmp.split(\" \");\n\n\t\t\tfor(String tango : tangos) {\n\t\t\t\tif(tango.equals(word)) count++;\n\t\t\t}\n\n\t\t}",
"String input = sc.nextLine();",
"input",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(input.equals(\"END_OF_TEXT\")) break;",
"input.equals(\"END_OF_TEXT\")",
"input.equals",
"input",
"\"END_OF_TEXT\"",
"break;",
"String tmp = input.toLowerCase();",
"tmp",
"input.toLowerCase()",
"input.toLowerCase",
"input",
"String[] tangos = tmp.split(\" \");",
"tangos",
"tmp.split(\" \")",
"tmp.split",
"tmp",
"\" \"",
"for(String tango : tangos) {\n\t\t\t\tif(tango.equals(word)) count++;\n\t\t\t}",
"String tango",
"tangos",
"{\n\t\t\t\tif(tango.equals(word)) count++;\n\t\t\t}",
"{\n\t\t\t\tif(tango.equals(word)) count++;\n\t\t\t}",
"if(tango.equals(word)) count++;",
"tango.equals(word)",
"tango.equals",
"tango",
"word",
"count++",
"count",
"sc.close()",
"sc.close",
"sc",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString word = sc.nextLine().toLowerCase();\n\n\t\tint count = 0;\n\t\twhile(true) {\n\n\t\t\tString input = sc.nextLine();\n\n\t\t\tif(input.equals(\"END_OF_TEXT\")) break;\n\n\t\t\tString tmp = input.toLowerCase();\n\n\t\t\tString[] tangos = tmp.split(\" \");\n\n\t\t\tfor(String tango : tangos) {\n\t\t\t\tif(tango.equals(word)) count++;\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\n\t\tSystem.out.println(count);\n\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString word = sc.nextLine().toLowerCase();\n\n\t\tint count = 0;\n\t\twhile(true) {\n\n\t\t\tString input = sc.nextLine();\n\n\t\t\tif(input.equals(\"END_OF_TEXT\")) break;\n\n\t\t\tString tmp = input.toLowerCase();\n\n\t\t\tString[] tangos = tmp.split(\" \");\n\n\t\t\tfor(String tango : tangos) {\n\t\t\t\tif(tango.equals(word)) count++;\n\t\t\t}\n\n\t\t}\n\t\tsc.close();\n\n\t\tSystem.out.println(count);\n\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String word = sc.nextLine().toLowerCase();
int count = 0;
while(true) {
String input = sc.nextLine();
if(input.equals("END_OF_TEXT")) break;
String tmp = input.toLowerCase();
String[] tangos = tmp.split(" ");
for(String tango : tangos) {
if(tango.equals(word)) count++;
}
}
sc.close();
System.out.println(count);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
41,
13,
41,
13,
17,
42,
40,
4,
18,
0,
13,
4,
18,
13,
17,
30,
14,
4,
18,
4,
18,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
53,
5
],
[
53,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
26,
33
],
[
24,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
36,
41
],
[
35,
42
],
[
42,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
6,
50
],
[
50,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
]
]
| [
"import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String w = sc.next().toLowerCase();\n String t;\n int count = 0;\n\n while( !((t=sc.next()).equals(\"END_OF_TEXT\")) ){\n if(t.toLowerCase().equals(w)) count++;\n }\n\n System.out.println(count);\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 w = sc.next().toLowerCase();\n String t;\n int count = 0;\n\n while( !((t=sc.next()).equals(\"END_OF_TEXT\")) ){\n if(t.toLowerCase().equals(w)) count++;\n }\n\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String w = sc.next().toLowerCase();\n String t;\n int count = 0;\n\n while( !((t=sc.next()).equals(\"END_OF_TEXT\")) ){\n if(t.toLowerCase().equals(w)) count++;\n }\n\n System.out.println(count);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String w = sc.next().toLowerCase();\n String t;\n int count = 0;\n\n while( !((t=sc.next()).equals(\"END_OF_TEXT\")) ){\n if(t.toLowerCase().equals(w)) count++;\n }\n\n System.out.println(count);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String w = sc.next().toLowerCase();",
"w",
"sc.next().toLowerCase()",
"sc.next().toLowerCase",
"sc.next()",
"sc.next",
"sc",
"String t;",
"t",
"int count = 0;",
"count",
"0",
"while( !((t=sc.next()).equals(\"END_OF_TEXT\")) ){\n if(t.toLowerCase().equals(w)) count++;\n }",
"!((t=sc.next()).equals(\"END_OF_TEXT\"))",
"((t=sc.next()).equals(\"END_OF_TEXT\"))",
"(t=sc.next()).equals",
"(t=sc.next())",
"t",
"sc.next()",
"sc.next",
"sc",
"\"END_OF_TEXT\"",
"{\n if(t.toLowerCase().equals(w)) count++;\n }",
"if(t.toLowerCase().equals(w)) count++;",
"t.toLowerCase().equals(w)",
"t.toLowerCase().equals",
"t.toLowerCase()",
"t.toLowerCase",
"t",
"w",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String w = sc.next().toLowerCase();\n String t;\n int count = 0;\n\n while( !((t=sc.next()).equals(\"END_OF_TEXT\")) ){\n if(t.toLowerCase().equals(w)) count++;\n }\n\n System.out.println(count);\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String w = sc.next().toLowerCase();\n String t;\n int count = 0;\n\n while( !((t=sc.next()).equals(\"END_OF_TEXT\")) ){\n if(t.toLowerCase().equals(w)) count++;\n }\n\n System.out.println(count);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String w = sc.next().toLowerCase();
String t;
int count = 0;
while( !((t=sc.next()).equals("END_OF_TEXT")) ){
if(t.toLowerCase().equals(w)) count++;
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
2,
2,
17,
4,
18,
13,
17,
41,
13,
17,
41,
13,
4,
18,
13,
42,
40,
4,
18,
13,
17,
30,
0,
13,
2,
2,
17,
4,
18,
4,
18,
13,
17,
17,
17,
0,
13,
4,
18,
13,
41,
13,
17,
41,
13,
40,
17,
41,
13,
4,
18,
13,
42,
17,
30,
0,
13,
4,
18,
13,
13,
2,
13,
17,
14,
2,
13,
40,
17,
30,
3,
30,
40,
13,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
15,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
15,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
29,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
39,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
41,
46
],
[
41,
47
],
[
39,
48
],
[
35,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
8,
54
],
[
54,
55
],
[
54,
56
],
[
8,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
8,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
8,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
71,
75
],
[
75,
76
],
[
75,
77
],
[
68,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
78,
83
],
[
83,
84
],
[
78,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
8,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
6,
99
],
[
99,
100
]
]
| [
"import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner in = new Scanner(System.in);\n\t\tString W=\" \"+in.nextLine()+\" \";\n String T=\"\";\n String n=in.nextLine();\n while(!n.equals(\"END_OF_TEXT\")){\n \tT+=\" \"+n.toLowerCase().replace(\" \", \" \")+\" \";\n \tn=in.nextLine();\n }\n int c=0;\n int i=-1;\n int l=W.length();\n while(true){\n i=T.indexOf(W, i+1);\n if(i==-1){\n \tbreak;\n }else{\n \tc++;\n \ti+=l-1;\n }\n }\n System.out.println(c);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner in = new Scanner(System.in);\n\t\tString W=\" \"+in.nextLine()+\" \";\n String T=\"\";\n String n=in.nextLine();\n while(!n.equals(\"END_OF_TEXT\")){\n \tT+=\" \"+n.toLowerCase().replace(\" \", \" \")+\" \";\n \tn=in.nextLine();\n }\n int c=0;\n int i=-1;\n int l=W.length();\n while(true){\n i=T.indexOf(W, i+1);\n if(i==-1){\n \tbreak;\n }else{\n \tc++;\n \ti+=l-1;\n }\n }\n System.out.println(c);\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tScanner in = new Scanner(System.in);\n\t\tString W=\" \"+in.nextLine()+\" \";\n String T=\"\";\n String n=in.nextLine();\n while(!n.equals(\"END_OF_TEXT\")){\n \tT+=\" \"+n.toLowerCase().replace(\" \", \" \")+\" \";\n \tn=in.nextLine();\n }\n int c=0;\n int i=-1;\n int l=W.length();\n while(true){\n i=T.indexOf(W, i+1);\n if(i==-1){\n \tbreak;\n }else{\n \tc++;\n \ti+=l-1;\n }\n }\n System.out.println(c);\n\t}",
"main",
"{\n\t\tScanner in = new Scanner(System.in);\n\t\tString W=\" \"+in.nextLine()+\" \";\n String T=\"\";\n String n=in.nextLine();\n while(!n.equals(\"END_OF_TEXT\")){\n \tT+=\" \"+n.toLowerCase().replace(\" \", \" \")+\" \";\n \tn=in.nextLine();\n }\n int c=0;\n int i=-1;\n int l=W.length();\n while(true){\n i=T.indexOf(W, i+1);\n if(i==-1){\n \tbreak;\n }else{\n \tc++;\n \ti+=l-1;\n }\n }\n System.out.println(c);\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"String W=\" \"+in.nextLine()+\" \";",
"W",
"\" \"+in.nextLine()+\" \"",
"\" \"+in.nextLine()+\" \"",
"\" \"",
"in.nextLine()",
"in.nextLine",
"in",
"\" \"",
"String T=\"\";",
"T",
"\"\"",
"String n=in.nextLine();",
"n",
"in.nextLine()",
"in.nextLine",
"in",
"while(!n.equals(\"END_OF_TEXT\")){\n \tT+=\" \"+n.toLowerCase().replace(\" \", \" \")+\" \";\n \tn=in.nextLine();\n }",
"!n.equals(\"END_OF_TEXT\")",
"n.equals(\"END_OF_TEXT\")",
"n.equals",
"n",
"\"END_OF_TEXT\"",
"{\n \tT+=\" \"+n.toLowerCase().replace(\" \", \" \")+\" \";\n \tn=in.nextLine();\n }",
"T+=\" \"+n.toLowerCase().replace(\" \", \" \")+\" \"",
"T",
"\" \"+n.toLowerCase().replace(\" \", \" \")+\" \"",
"\" \"+n.toLowerCase().replace(\" \", \" \")+\" \"",
"\" \"",
"n.toLowerCase().replace(\" \", \" \")",
"n.toLowerCase().replace",
"n.toLowerCase()",
"n.toLowerCase",
"n",
"\" \"",
"\" \"",
"\" \"",
"n=in.nextLine()",
"n",
"in.nextLine()",
"in.nextLine",
"in",
"int c=0;",
"c",
"0",
"int i=-1;",
"i",
"-1",
"1",
"int l=W.length();",
"l",
"W.length()",
"W.length",
"W",
"while(true){\n i=T.indexOf(W, i+1);\n if(i==-1){\n \tbreak;\n }else{\n \tc++;\n \ti+=l-1;\n }\n }",
"true",
"{\n i=T.indexOf(W, i+1);\n if(i==-1){\n \tbreak;\n }else{\n \tc++;\n \ti+=l-1;\n }\n }",
"i=T.indexOf(W, i+1)",
"i",
"T.indexOf(W, i+1)",
"T.indexOf",
"T",
"W",
"i+1",
"i",
"1",
"if(i==-1){\n \tbreak;\n }else{\n \tc++;\n \ti+=l-1;\n }",
"i==-1",
"i",
"-1",
"1",
"{\n \tbreak;\n }",
"break;",
"{\n \tc++;\n \ti+=l-1;\n }",
"c++",
"c",
"i+=l-1",
"i",
"l-1",
"l",
"1",
"System.out.println(c)",
"System.out.println",
"System.out",
"System",
"System.out",
"c",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main {
public static void main(String[] args) throws Exception {
Scanner in = new Scanner(System.in);
String W=" "+in.nextLine()+" ";
String T="";
String n=in.nextLine();
while(!n.equals("END_OF_TEXT")){
T+=" "+n.toLowerCase().replace(" ", " ")+" ";
n=in.nextLine();
}
int c=0;
int i=-1;
int l=W.length();
while(true){
i=T.indexOf(W, i+1);
if(i==-1){
break;
}else{
c++;
i+=l-1;
}
}
System.out.println(c);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
17,
30,
0,
13,
4,
18,
13,
14,
4,
18,
17,
13,
30,
3,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
4,
18,
18,
13,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
97,
11
],
[
97,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
18,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
31,
32
],
[
31,
33
],
[
25,
34
],
[
34,
35
],
[
34,
36
],
[
25,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
45,
50
],
[
50,
51
],
[
39,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
39,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
58,
68
],
[
68,
69
],
[
69,
70
],
[
58,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
74,
81
],
[
73,
82
],
[
82,
83
],
[
83,
84
],
[
25,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
12,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
]
| [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\npublic class Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n try {\n String word = br.readLine();\n int count = 0;\n String line = \"\";\n \n while(true){\n line = br.readLine();\n if(\"END_OF_TEXT\".equals(line)){\n break;\n }\n String[] arr = line.split(\"\\\\s\");\n for(int i=0; i<arr.length; i++){\n if(arr[i].toLowerCase().equals(word)){\n count++;\n }\n }\n }\n \n System.out.println(String.valueOf(count));\n \n \n }catch(IOException e) {\n e.printStackTrace();\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"public class Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n try {\n String word = br.readLine();\n int count = 0;\n String line = \"\";\n \n while(true){\n line = br.readLine();\n if(\"END_OF_TEXT\".equals(line)){\n break;\n }\n String[] arr = line.split(\"\\\\s\");\n for(int i=0; i<arr.length; i++){\n if(arr[i].toLowerCase().equals(word)){\n count++;\n }\n }\n }\n \n System.out.println(String.valueOf(count));\n \n \n }catch(IOException e) {\n e.printStackTrace();\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n try {\n String word = br.readLine();\n int count = 0;\n String line = \"\";\n \n while(true){\n line = br.readLine();\n if(\"END_OF_TEXT\".equals(line)){\n break;\n }\n String[] arr = line.split(\"\\\\s\");\n for(int i=0; i<arr.length; i++){\n if(arr[i].toLowerCase().equals(word)){\n count++;\n }\n }\n }\n \n System.out.println(String.valueOf(count));\n \n \n }catch(IOException e) {\n e.printStackTrace();\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n try {\n String word = br.readLine();\n int count = 0;\n String line = \"\";\n \n while(true){\n line = br.readLine();\n if(\"END_OF_TEXT\".equals(line)){\n break;\n }\n String[] arr = line.split(\"\\\\s\");\n for(int i=0; i<arr.length; i++){\n if(arr[i].toLowerCase().equals(word)){\n count++;\n }\n }\n }\n \n System.out.println(String.valueOf(count));\n \n \n }catch(IOException e) {\n e.printStackTrace();\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"try {\n String word = br.readLine();\n int count = 0;\n String line = \"\";\n \n while(true){\n line = br.readLine();\n if(\"END_OF_TEXT\".equals(line)){\n break;\n }\n String[] arr = line.split(\"\\\\s\");\n for(int i=0; i<arr.length; i++){\n if(arr[i].toLowerCase().equals(word)){\n count++;\n }\n }\n }\n \n System.out.println(String.valueOf(count));\n \n \n }catch(IOException e) {\n e.printStackTrace();\n }",
"catch(IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n String word = br.readLine();\n int count = 0;\n String line = \"\";\n \n while(true){\n line = br.readLine();\n if(\"END_OF_TEXT\".equals(line)){\n break;\n }\n String[] arr = line.split(\"\\\\s\");\n for(int i=0; i<arr.length; i++){\n if(arr[i].toLowerCase().equals(word)){\n count++;\n }\n }\n }\n \n System.out.println(String.valueOf(count));\n \n \n }",
"String word = br.readLine();",
"word",
"br.readLine()",
"br.readLine",
"br",
"int count = 0;",
"count",
"0",
"String line = \"\";",
"line",
"\"\"",
"while(true){\n line = br.readLine();\n if(\"END_OF_TEXT\".equals(line)){\n break;\n }\n String[] arr = line.split(\"\\\\s\");\n for(int i=0; i<arr.length; i++){\n if(arr[i].toLowerCase().equals(word)){\n count++;\n }\n }\n }",
"true",
"{\n line = br.readLine();\n if(\"END_OF_TEXT\".equals(line)){\n break;\n }\n String[] arr = line.split(\"\\\\s\");\n for(int i=0; i<arr.length; i++){\n if(arr[i].toLowerCase().equals(word)){\n count++;\n }\n }\n }",
"line = br.readLine()",
"line",
"br.readLine()",
"br.readLine",
"br",
"if(\"END_OF_TEXT\".equals(line)){\n break;\n }",
"\"END_OF_TEXT\".equals(line)",
"\"END_OF_TEXT\".equals",
"\"END_OF_TEXT\"",
"line",
"{\n break;\n }",
"break;",
"String[] arr = line.split(\"\\\\s\");",
"arr",
"line.split(\"\\\\s\")",
"line.split",
"line",
"\"\\\\s\"",
"for(int i=0; i<arr.length; i++){\n if(arr[i].toLowerCase().equals(word)){\n count++;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<arr.length",
"i",
"arr.length",
"arr",
"arr.length",
"i++",
"i++",
"i",
"{\n if(arr[i].toLowerCase().equals(word)){\n count++;\n }\n }",
"{\n if(arr[i].toLowerCase().equals(word)){\n count++;\n }\n }",
"if(arr[i].toLowerCase().equals(word)){\n count++;\n }",
"arr[i].toLowerCase().equals(word)",
"arr[i].toLowerCase().equals",
"arr[i].toLowerCase()",
"arr[i].toLowerCase",
"arr[i]",
"arr",
"i",
"word",
"{\n count++;\n }",
"count++",
"count",
"System.out.println(String.valueOf(count))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.valueOf(count)",
"String.valueOf",
"String",
"count",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n try {\n String word = br.readLine();\n int count = 0;\n String line = \"\";\n \n while(true){\n line = br.readLine();\n if(\"END_OF_TEXT\".equals(line)){\n break;\n }\n String[] arr = line.split(\"\\\\s\");\n for(int i=0; i<arr.length; i++){\n if(arr[i].toLowerCase().equals(word)){\n count++;\n }\n }\n }\n \n System.out.println(String.valueOf(count));\n \n \n }catch(IOException e) {\n e.printStackTrace();\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n try {\n String word = br.readLine();\n int count = 0;\n String line = \"\";\n \n while(true){\n line = br.readLine();\n if(\"END_OF_TEXT\".equals(line)){\n break;\n }\n String[] arr = line.split(\"\\\\s\");\n for(int i=0; i<arr.length; i++){\n if(arr[i].toLowerCase().equals(word)){\n count++;\n }\n }\n }\n \n System.out.println(String.valueOf(count));\n \n \n }catch(IOException e) {\n e.printStackTrace();\n }\n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class Main {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
String word = br.readLine();
int count = 0;
String line = "";
while(true){
line = br.readLine();
if("END_OF_TEXT".equals(line)){
break;
}
String[] arr = line.split("\\s");
for(int i=0; i<arr.length; i++){
if(arr[i].toLowerCase().equals(word)){
count++;
}
}
}
System.out.println(String.valueOf(count));
}catch(IOException e) {
e.printStackTrace();
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
14,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
20,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
30,
35
],
[
35,
36
],
[
30,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
37,
42
],
[
42,
43
],
[
43,
44
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.next();\n\t\tint i = 0;\n\n\t\twhile(sc.hasNext()){\n\t\t\tString str = sc.next();\n\n\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else if(str.equalsIgnoreCase(W)){\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(i);\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\tString W = sc.next();\n\t\tint i = 0;\n\n\t\twhile(sc.hasNext()){\n\t\t\tString str = sc.next();\n\n\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else if(str.equalsIgnoreCase(W)){\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(i);\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.next();\n\t\tint i = 0;\n\n\t\twhile(sc.hasNext()){\n\t\t\tString str = sc.next();\n\n\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else if(str.equalsIgnoreCase(W)){\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(i);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.next();\n\t\tint i = 0;\n\n\t\twhile(sc.hasNext()){\n\t\t\tString str = sc.next();\n\n\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else if(str.equalsIgnoreCase(W)){\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(i);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String W = sc.next();",
"W",
"sc.next()",
"sc.next",
"sc",
"int i = 0;",
"i",
"0",
"while(sc.hasNext()){\n\t\t\tString str = sc.next();\n\n\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else if(str.equalsIgnoreCase(W)){\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\tString str = sc.next();\n\n\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else if(str.equalsIgnoreCase(W)){\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t}",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"if(str.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else if(str.equalsIgnoreCase(W)){\n\t\t\t\ti++;\n\t\t\t}",
"str.equals(\"END_OF_TEXT\")",
"str.equals",
"str",
"\"END_OF_TEXT\"",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"if(str.equalsIgnoreCase(W)){\n\t\t\t\ti++;\n\t\t\t}",
"str.equalsIgnoreCase(W)",
"str.equalsIgnoreCase",
"str",
"W",
"{\n\t\t\t\ti++;\n\t\t\t}",
"i++",
"i",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"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 W = sc.next();\n\t\tint i = 0;\n\n\t\twhile(sc.hasNext()){\n\t\t\tString str = sc.next();\n\n\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else if(str.equalsIgnoreCase(W)){\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(i);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.next();\n\t\tint i = 0;\n\n\t\twhile(sc.hasNext()){\n\t\t\tString str = sc.next();\n\n\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}else if(str.equalsIgnoreCase(W)){\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(i);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String W = sc.next();
int i = 0;
while(sc.hasNext()){
String str = sc.next();
if(str.equals("END_OF_TEXT")){
break;
}else if(str.equalsIgnoreCase(W)){
i++;
}
}
System.out.println(i);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
6,
26
],
[
26,
27
]
]
| [
"import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tfinal BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tfinal String key = br.readLine();\n\t\tint count = 0;\n\t\tloop:\n\t\twhile(true){\n\t\t\tfinal String[] strs = br.readLine().split(\" \");\n\t\t\tfor(int i = 0; i < strs.length; i++){\n\t\t\t final String str = strs[i];\n\t\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak loop;\n\t\t\t\t} else if(str.equalsIgnoreCase(key)){\n\t\t\t\t\tcount++; \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tfinal BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tfinal String key = br.readLine();\n\t\tint count = 0;\n\t\tloop:\n\t\twhile(true){\n\t\t\tfinal String[] strs = br.readLine().split(\" \");\n\t\t\tfor(int i = 0; i < strs.length; i++){\n\t\t\t final String str = strs[i];\n\t\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak loop;\n\t\t\t\t} else if(str.equalsIgnoreCase(key)){\n\t\t\t\t\tcount++; \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tfinal BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tfinal String key = br.readLine();\n\t\tint count = 0;\n\t\tloop:\n\t\twhile(true){\n\t\t\tfinal String[] strs = br.readLine().split(\" \");\n\t\t\tfor(int i = 0; i < strs.length; i++){\n\t\t\t final String str = strs[i];\n\t\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak loop;\n\t\t\t\t} else if(str.equalsIgnoreCase(key)){\n\t\t\t\t\tcount++; \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\tfinal BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tfinal String key = br.readLine();\n\t\tint count = 0;\n\t\tloop:\n\t\twhile(true){\n\t\t\tfinal String[] strs = br.readLine().split(\" \");\n\t\t\tfor(int i = 0; i < strs.length; i++){\n\t\t\t final String str = strs[i];\n\t\t\t\tif(str.equals(\"END_OF_TEXT\")){\n\t\t\t\t\tbreak loop;\n\t\t\t\t} else if(str.equalsIgnoreCase(key)){\n\t\t\t\t\tcount++; \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"final String key = br.readLine();",
"key",
"br.readLine()",
"br.readLine",
"br",
"int count = 0;",
"count",
"0",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args"
]
| import java.io.*;
class Main {
public static void main(String[] args) throws IOException {
final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
final String key = br.readLine();
int count = 0;
loop:
while(true){
final String[] strs = br.readLine().split(" ");
for(int i = 0; i < strs.length; i++){
final String str = strs[i];
if(str.equals("END_OF_TEXT")){
break loop;
} else if(str.equalsIgnoreCase(key)){
count++;
}
}
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
41,
13,
41,
13,
41,
13,
42,
17,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
0,
13,
4,
13,
13,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
13,
17,
30,
0,
13,
20,
17,
0,
18,
13,
17,
13,
11,
1,
0,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
4,
18,
18,
13,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
29,
13,
29,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
160,
8
],
[
160,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
11,
27
],
[
27,
28
],
[
11,
29
],
[
29,
30
],
[
11,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
33,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
39,
44
],
[
33,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
33,
50
],
[
50,
51
],
[
50,
52
],
[
33,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
60,
70
],
[
53,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
33,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
88,
90
],
[
81,
91
],
[
91,
92
],
[
92,
93
],
[
81,
94
],
[
95,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
97,
104
],
[
96,
105
],
[
105,
106
],
[
11,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
9,
113
],
[
113,
114
],
[
160,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
120,
121
],
[
117,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
122,
132
],
[
132,
133
],
[
133,
134
],
[
122,
135
],
[
136,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
139,
144
],
[
136,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
150,
151
],
[
150,
152
],
[
145,
153
],
[
153,
154
],
[
117,
155
],
[
155,
156
],
[
115,
157
],
[
157,
158
],
[
0,
159
],
[
159,
160
],
[
159,
161
]
]
| [
"import java.util.*;\nimport java.util.regex.Pattern;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n String w=sc.next();\n int cnt=0;\n char c;\n String str;\n String[] str2;\n int i;\n while(true){\n str=sc.next();\n if(str.equals(\"END_OF_TEXT\"))break;\n c=getSymbolInString(str);\n str2=null;\n if(c!='a'){\n str2=str.split(Pattern.quote(String.valueOf(c)),0);\n }else{\n str2=new String[1];\n str2[0]=str;\n }\n for(i=0;i<str2.length;i++){\n if(str2[i].toLowerCase().equals(w))cnt++;\n }\n }\n System.out.println(cnt);\n }\n \n static char getSymbolInString(String s){\n char c;\n int i;\n for(i=0;i<s.length();i++){\n c=s.toLowerCase().charAt(i);\n if(c<'a'||c>'z')return c;\n }\n return 'a';\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.util.regex.Pattern;",
"Pattern",
"java.util.regex",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n String w=sc.next();\n int cnt=0;\n char c;\n String str;\n String[] str2;\n int i;\n while(true){\n str=sc.next();\n if(str.equals(\"END_OF_TEXT\"))break;\n c=getSymbolInString(str);\n str2=null;\n if(c!='a'){\n str2=str.split(Pattern.quote(String.valueOf(c)),0);\n }else{\n str2=new String[1];\n str2[0]=str;\n }\n for(i=0;i<str2.length;i++){\n if(str2[i].toLowerCase().equals(w))cnt++;\n }\n }\n System.out.println(cnt);\n }\n \n static char getSymbolInString(String s){\n char c;\n int i;\n for(i=0;i<s.length();i++){\n c=s.toLowerCase().charAt(i);\n if(c<'a'||c>'z')return c;\n }\n return 'a';\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n String w=sc.next();\n int cnt=0;\n char c;\n String str;\n String[] str2;\n int i;\n while(true){\n str=sc.next();\n if(str.equals(\"END_OF_TEXT\"))break;\n c=getSymbolInString(str);\n str2=null;\n if(c!='a'){\n str2=str.split(Pattern.quote(String.valueOf(c)),0);\n }else{\n str2=new String[1];\n str2[0]=str;\n }\n for(i=0;i<str2.length;i++){\n if(str2[i].toLowerCase().equals(w))cnt++;\n }\n }\n System.out.println(cnt);\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n String w=sc.next();\n int cnt=0;\n char c;\n String str;\n String[] str2;\n int i;\n while(true){\n str=sc.next();\n if(str.equals(\"END_OF_TEXT\"))break;\n c=getSymbolInString(str);\n str2=null;\n if(c!='a'){\n str2=str.split(Pattern.quote(String.valueOf(c)),0);\n }else{\n str2=new String[1];\n str2[0]=str;\n }\n for(i=0;i<str2.length;i++){\n if(str2[i].toLowerCase().equals(w))cnt++;\n }\n }\n System.out.println(cnt);\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String w=sc.next();",
"w",
"sc.next()",
"sc.next",
"sc",
"int cnt=0;",
"cnt",
"0",
"char c;",
"c",
"String str;",
"str",
"String[] str2;",
"str2",
"int i;",
"i",
"while(true){\n str=sc.next();\n if(str.equals(\"END_OF_TEXT\"))break;\n c=getSymbolInString(str);\n str2=null;\n if(c!='a'){\n str2=str.split(Pattern.quote(String.valueOf(c)),0);\n }else{\n str2=new String[1];\n str2[0]=str;\n }\n for(i=0;i<str2.length;i++){\n if(str2[i].toLowerCase().equals(w))cnt++;\n }\n }",
"true",
"{\n str=sc.next();\n if(str.equals(\"END_OF_TEXT\"))break;\n c=getSymbolInString(str);\n str2=null;\n if(c!='a'){\n str2=str.split(Pattern.quote(String.valueOf(c)),0);\n }else{\n str2=new String[1];\n str2[0]=str;\n }\n for(i=0;i<str2.length;i++){\n if(str2[i].toLowerCase().equals(w))cnt++;\n }\n }",
"str=sc.next()",
"str",
"sc.next()",
"sc.next",
"sc",
"if(str.equals(\"END_OF_TEXT\"))break;",
"str.equals(\"END_OF_TEXT\")",
"str.equals",
"str",
"\"END_OF_TEXT\"",
"break;",
"c=getSymbolInString(str)",
"c",
"getSymbolInString(str)",
"getSymbolInString",
"str",
"str2=null",
"str2",
"null",
"if(c!='a'){\n str2=str.split(Pattern.quote(String.valueOf(c)),0);\n }else{\n str2=new String[1];\n str2[0]=str;\n }",
"c!='a'",
"c",
"'a'",
"{\n str2=str.split(Pattern.quote(String.valueOf(c)),0);\n }",
"str2=str.split(Pattern.quote(String.valueOf(c)),0)",
"str2",
"str.split(Pattern.quote(String.valueOf(c)),0)",
"str.split",
"str",
"Pattern.quote(String.valueOf(c))",
"Pattern.quote",
"Pattern",
"String.valueOf(c)",
"String.valueOf",
"String",
"c",
"0",
"{\n str2=new String[1];\n str2[0]=str;\n }",
"str2=new String[1]",
"str2",
"new String[1]",
"1",
"str2[0]=str",
"str2[0]",
"str2",
"0",
"str",
"for(i=0;i<str2.length;i++){\n if(str2[i].toLowerCase().equals(w))cnt++;\n }",
"i=0;",
"i=0",
"i",
"0",
"i<str2.length",
"i",
"str2.length",
"str2",
"str2.length",
"i++",
"i++",
"i",
"{\n if(str2[i].toLowerCase().equals(w))cnt++;\n }",
"{\n if(str2[i].toLowerCase().equals(w))cnt++;\n }",
"if(str2[i].toLowerCase().equals(w))cnt++;",
"str2[i].toLowerCase().equals(w)",
"str2[i].toLowerCase().equals",
"str2[i].toLowerCase()",
"str2[i].toLowerCase",
"str2[i]",
"str2",
"i",
"w",
"cnt++",
"cnt",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"String[] args",
"args",
"static char getSymbolInString(String s){\n char c;\n int i;\n for(i=0;i<s.length();i++){\n c=s.toLowerCase().charAt(i);\n if(c<'a'||c>'z')return c;\n }\n return 'a';\n }",
"getSymbolInString",
"{\n char c;\n int i;\n for(i=0;i<s.length();i++){\n c=s.toLowerCase().charAt(i);\n if(c<'a'||c>'z')return c;\n }\n return 'a';\n }",
"char c;",
"c",
"int i;",
"i",
"for(i=0;i<s.length();i++){\n c=s.toLowerCase().charAt(i);\n if(c<'a'||c>'z')return c;\n }",
"i=0;",
"i=0",
"i",
"0",
"i<s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n c=s.toLowerCase().charAt(i);\n if(c<'a'||c>'z')return c;\n }",
"{\n c=s.toLowerCase().charAt(i);\n if(c<'a'||c>'z')return c;\n }",
"c=s.toLowerCase().charAt(i)",
"c",
"s.toLowerCase().charAt(i)",
"s.toLowerCase().charAt",
"s.toLowerCase()",
"s.toLowerCase",
"s",
"i",
"if(c<'a'||c>'z')return c;",
"c<'a'||c>'z'",
"c<'a'",
"c",
"'a'",
"c>'z'",
"c",
"'z'",
"return c;",
"c",
"return 'a';",
"'a'",
"String s",
"s",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n String w=sc.next();\n int cnt=0;\n char c;\n String str;\n String[] str2;\n int i;\n while(true){\n str=sc.next();\n if(str.equals(\"END_OF_TEXT\"))break;\n c=getSymbolInString(str);\n str2=null;\n if(c!='a'){\n str2=str.split(Pattern.quote(String.valueOf(c)),0);\n }else{\n str2=new String[1];\n str2[0]=str;\n }\n for(i=0;i<str2.length;i++){\n if(str2[i].toLowerCase().equals(w))cnt++;\n }\n }\n System.out.println(cnt);\n }\n \n static char getSymbolInString(String s){\n char c;\n int i;\n for(i=0;i<s.length();i++){\n c=s.toLowerCase().charAt(i);\n if(c<'a'||c>'z')return c;\n }\n return 'a';\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n String w=sc.next();\n int cnt=0;\n char c;\n String str;\n String[] str2;\n int i;\n while(true){\n str=sc.next();\n if(str.equals(\"END_OF_TEXT\"))break;\n c=getSymbolInString(str);\n str2=null;\n if(c!='a'){\n str2=str.split(Pattern.quote(String.valueOf(c)),0);\n }else{\n str2=new String[1];\n str2[0]=str;\n }\n for(i=0;i<str2.length;i++){\n if(str2[i].toLowerCase().equals(w))cnt++;\n }\n }\n System.out.println(cnt);\n }\n \n static char getSymbolInString(String s){\n char c;\n int i;\n for(i=0;i<s.length();i++){\n c=s.toLowerCase().charAt(i);\n if(c<'a'||c>'z')return c;\n }\n return 'a';\n }\n}",
"Main"
]
| import java.util.*;
import java.util.regex.Pattern;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc=new Scanner(System.in);
String w=sc.next();
int cnt=0;
char c;
String str;
String[] str2;
int i;
while(true){
str=sc.next();
if(str.equals("END_OF_TEXT"))break;
c=getSymbolInString(str);
str2=null;
if(c!='a'){
str2=str.split(Pattern.quote(String.valueOf(c)),0);
}else{
str2=new String[1];
str2[0]=str;
}
for(i=0;i<str2.length;i++){
if(str2[i].toLowerCase().equals(w))cnt++;
}
}
System.out.println(cnt);
}
static char getSymbolInString(String s){
char c;
int i;
for(i=0;i<s.length();i++){
c=s.toLowerCase().charAt(i);
if(c<'a'||c>'z')return c;
}
return 'a';
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
13,
30,
40,
13,
14,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
13,
3,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
55,
8
],
[
55,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
31,
36
],
[
36,
37
],
[
37,
38
],
[
25,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
44,
51
],
[
9,
52
],
[
52,
53
],
[
0,
54
],
[
54,
55
],
[
54,
56
]
]
| [
"import java.io.*;\nimport java.util.Scanner;\n\n\npublic class Main{\n public static void main(String[] args) throws IOException\n {\n Scanner scanner = new Scanner(System.in);\n String word = scanner.nextLine();\n int i = 0;\n\n do{\n String line = scanner.next();\n if(line.equalsIgnoreCase(word)){\n i++;\n }\n\n if(line.equals(\"END_OF_TEXT\")){\n System.out.println(i);\n break;\n }\n }while(true);\n \n }\n}\n\n",
"import java.io.*;",
"io.*",
"java",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args) throws IOException\n {\n Scanner scanner = new Scanner(System.in);\n String word = scanner.nextLine();\n int i = 0;\n\n do{\n String line = scanner.next();\n if(line.equalsIgnoreCase(word)){\n i++;\n }\n\n if(line.equals(\"END_OF_TEXT\")){\n System.out.println(i);\n break;\n }\n }while(true);\n \n }\n}",
"Main",
"public static void main(String[] args) throws IOException\n {\n Scanner scanner = new Scanner(System.in);\n String word = scanner.nextLine();\n int i = 0;\n\n do{\n String line = scanner.next();\n if(line.equalsIgnoreCase(word)){\n i++;\n }\n\n if(line.equals(\"END_OF_TEXT\")){\n System.out.println(i);\n break;\n }\n }while(true);\n \n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n String word = scanner.nextLine();\n int i = 0;\n\n do{\n String line = scanner.next();\n if(line.equalsIgnoreCase(word)){\n i++;\n }\n\n if(line.equals(\"END_OF_TEXT\")){\n System.out.println(i);\n break;\n }\n }while(true);\n \n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"String word = scanner.nextLine();",
"word",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"int i = 0;",
"i",
"0",
"do{\n String line = scanner.next();\n if(line.equalsIgnoreCase(word)){\n i++;\n }\n\n if(line.equals(\"END_OF_TEXT\")){\n System.out.println(i);\n break;\n }\n }while(true);",
"true",
"{\n String line = scanner.next();\n if(line.equalsIgnoreCase(word)){\n i++;\n }\n\n if(line.equals(\"END_OF_TEXT\")){\n System.out.println(i);\n break;\n }\n }",
"String line = scanner.next();",
"line",
"scanner.next()",
"scanner.next",
"scanner",
"if(line.equalsIgnoreCase(word)){\n i++;\n }",
"line.equalsIgnoreCase(word)",
"line.equalsIgnoreCase",
"line",
"word",
"{\n i++;\n }",
"i++",
"i",
"if(line.equals(\"END_OF_TEXT\")){\n System.out.println(i);\n break;\n }",
"line.equals(\"END_OF_TEXT\")",
"line.equals",
"line",
"\"END_OF_TEXT\"",
"{\n System.out.println(i);\n break;\n }",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"break;",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) throws IOException\n {\n Scanner scanner = new Scanner(System.in);\n String word = scanner.nextLine();\n int i = 0;\n\n do{\n String line = scanner.next();\n if(line.equalsIgnoreCase(word)){\n i++;\n }\n\n if(line.equals(\"END_OF_TEXT\")){\n System.out.println(i);\n break;\n }\n }while(true);\n \n }\n}",
"public class Main{\n public static void main(String[] args) throws IOException\n {\n Scanner scanner = new Scanner(System.in);\n String word = scanner.nextLine();\n int i = 0;\n\n do{\n String line = scanner.next();\n if(line.equalsIgnoreCase(word)){\n i++;\n }\n\n if(line.equals(\"END_OF_TEXT\")){\n System.out.println(i);\n break;\n }\n }while(true);\n \n }\n}",
"Main"
]
| import java.io.*;
import java.util.Scanner;
public class Main{
public static void main(String[] args) throws IOException
{
Scanner scanner = new Scanner(System.in);
String word = scanner.nextLine();
int i = 0;
do{
String line = scanner.next();
if(line.equalsIgnoreCase(word)){
i++;
}
if(line.equals("END_OF_TEXT")){
System.out.println(i);
break;
}
}while(true);
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
17,
41,
13,
4,
18,
13,
42,
4,
18,
13,
30,
0,
13,
8,
4,
18,
13,
4,
18,
13,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
45,
5
],
[
45,
6
],
[
6,
7
],
[
6,
8
],
[
45,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
20,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
32,
33
],
[
27,
34
],
[
27,
35
],
[
11,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
9,
42
],
[
42,
43
],
[
0,
44
],
[
44,
45
],
[
44,
46
]
]
| [
"import java.util.*;\n\npublic class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n int cnt = 0;\n String ptn = scn.next();\n while(scn.hasNext()) {\n cnt += ptn.equalsIgnoreCase(scn.next()) ? 1 : 0;\n }\n System.out.println(cnt);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n int cnt = 0;\n String ptn = scn.next();\n while(scn.hasNext()) {\n cnt += ptn.equalsIgnoreCase(scn.next()) ? 1 : 0;\n }\n System.out.println(cnt);\n }\n}",
"Main",
"private static final Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"public static void main(String[] args) {\n int cnt = 0;\n String ptn = scn.next();\n while(scn.hasNext()) {\n cnt += ptn.equalsIgnoreCase(scn.next()) ? 1 : 0;\n }\n System.out.println(cnt);\n }",
"main",
"{\n int cnt = 0;\n String ptn = scn.next();\n while(scn.hasNext()) {\n cnt += ptn.equalsIgnoreCase(scn.next()) ? 1 : 0;\n }\n System.out.println(cnt);\n }",
"int cnt = 0;",
"cnt",
"0",
"String ptn = scn.next();",
"ptn",
"scn.next()",
"scn.next",
"scn",
"while(scn.hasNext()) {\n cnt += ptn.equalsIgnoreCase(scn.next()) ? 1 : 0;\n }",
"scn.hasNext()",
"scn.hasNext",
"scn",
"{\n cnt += ptn.equalsIgnoreCase(scn.next()) ? 1 : 0;\n }",
"cnt += ptn.equalsIgnoreCase(scn.next()) ? 1 : 0",
"cnt",
"ptn.equalsIgnoreCase(scn.next()) ? 1 : 0",
"ptn.equalsIgnoreCase(scn.next())",
"ptn.equalsIgnoreCase",
"ptn",
"scn.next()",
"scn.next",
"scn",
"1",
"0",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"String[] args",
"args",
"public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n int cnt = 0;\n String ptn = scn.next();\n while(scn.hasNext()) {\n cnt += ptn.equalsIgnoreCase(scn.next()) ? 1 : 0;\n }\n System.out.println(cnt);\n }\n}",
"public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n int cnt = 0;\n String ptn = scn.next();\n while(scn.hasNext()) {\n cnt += ptn.equalsIgnoreCase(scn.next()) ? 1 : 0;\n }\n System.out.println(cnt);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
private static final Scanner scn = new Scanner(System.in);
public static void main(String[] args) {
int cnt = 0;
String ptn = scn.next();
while(scn.hasNext()) {
cnt += ptn.equalsIgnoreCase(scn.next()) ? 1 : 0;
}
System.out.println(cnt);
}
} |
[
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,
41,
13,
20,
42,
40,
4,
18,
0,
13,
4,
18,
13,
17,
30,
28,
13,
4,
18,
13,
17,
30,
30,
4,
18,
13,
13,
41,
13,
17,
28,
13,
13,
30,
30,
14,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
76,
11
],
[
76,
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
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
14,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
30,
37
],
[
28,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
39,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
14,
51
],
[
51,
52
],
[
51,
53
],
[
14,
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
],
[
14,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
12,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
]
| [
"import java.util.ArrayList;\nimport java.util.List;\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\tString w = sc.nextLine();\n\t\tString p;\n\t\tList<String> temp = new ArrayList<String>();\n\t\twhile( !(p = sc.nextLine()).equals(\"END_OF_TEXT\")){\n\t\t\tfor(String in : p.split(\" \")){\n\t\t\t\ttemp.add(in);\n\t\t\t}\n\t\t}\n\t\tint ans = 0;\n\t\tfor(String str : temp){\n\t\t\tif(str.equalsIgnoreCase(w)){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString w = sc.nextLine();\n\t\tString p;\n\t\tList<String> temp = new ArrayList<String>();\n\t\twhile( !(p = sc.nextLine()).equals(\"END_OF_TEXT\")){\n\t\t\tfor(String in : p.split(\" \")){\n\t\t\t\ttemp.add(in);\n\t\t\t}\n\t\t}\n\t\tint ans = 0;\n\t\tfor(String str : temp){\n\t\t\tif(str.equalsIgnoreCase(w)){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString w = sc.nextLine();\n\t\tString p;\n\t\tList<String> temp = new ArrayList<String>();\n\t\twhile( !(p = sc.nextLine()).equals(\"END_OF_TEXT\")){\n\t\t\tfor(String in : p.split(\" \")){\n\t\t\t\ttemp.add(in);\n\t\t\t}\n\t\t}\n\t\tint ans = 0;\n\t\tfor(String str : temp){\n\t\t\tif(str.equalsIgnoreCase(w)){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString w = sc.nextLine();\n\t\tString p;\n\t\tList<String> temp = new ArrayList<String>();\n\t\twhile( !(p = sc.nextLine()).equals(\"END_OF_TEXT\")){\n\t\t\tfor(String in : p.split(\" \")){\n\t\t\t\ttemp.add(in);\n\t\t\t}\n\t\t}\n\t\tint ans = 0;\n\t\tfor(String str : temp){\n\t\t\tif(str.equalsIgnoreCase(w)){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String w = sc.nextLine();",
"w",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String p;",
"p",
"List<String> temp = new ArrayList<String>();",
"temp",
"new ArrayList<String>()",
"while( !(p = sc.nextLine()).equals(\"END_OF_TEXT\")){\n\t\t\tfor(String in : p.split(\" \")){\n\t\t\t\ttemp.add(in);\n\t\t\t}\n\t\t}",
"!(p = sc.nextLine()).equals(\"END_OF_TEXT\")",
"(p = sc.nextLine()).equals(\"END_OF_TEXT\")",
"(p = sc.nextLine()).equals",
"(p = sc.nextLine())",
"p",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\"END_OF_TEXT\"",
"{\n\t\t\tfor(String in : p.split(\" \")){\n\t\t\t\ttemp.add(in);\n\t\t\t}\n\t\t}",
"for(String in : p.split(\" \")){\n\t\t\t\ttemp.add(in);\n\t\t\t}",
"String in",
"p.split(\" \")",
"p.split",
"p",
"\" \"",
"{\n\t\t\t\ttemp.add(in);\n\t\t\t}",
"{\n\t\t\t\ttemp.add(in);\n\t\t\t}",
"temp.add(in)",
"temp.add",
"temp",
"in",
"int ans = 0;",
"ans",
"0",
"for(String str : temp){\n\t\t\tif(str.equalsIgnoreCase(w)){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"String str",
"temp",
"{\n\t\t\tif(str.equalsIgnoreCase(w)){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(str.equalsIgnoreCase(w)){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}",
"if(str.equalsIgnoreCase(w)){\n\t\t\t\tans++;\n\t\t\t}",
"str.equalsIgnoreCase(w)",
"str.equalsIgnoreCase",
"str",
"w",
"{\n\t\t\t\tans++;\n\t\t\t}",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString w = sc.nextLine();\n\t\tString p;\n\t\tList<String> temp = new ArrayList<String>();\n\t\twhile( !(p = sc.nextLine()).equals(\"END_OF_TEXT\")){\n\t\t\tfor(String in : p.split(\" \")){\n\t\t\t\ttemp.add(in);\n\t\t\t}\n\t\t}\n\t\tint ans = 0;\n\t\tfor(String str : temp){\n\t\t\tif(str.equalsIgnoreCase(w)){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString w = sc.nextLine();\n\t\tString p;\n\t\tList<String> temp = new ArrayList<String>();\n\t\twhile( !(p = sc.nextLine()).equals(\"END_OF_TEXT\")){\n\t\t\tfor(String in : p.split(\" \")){\n\t\t\t\ttemp.add(in);\n\t\t\t}\n\t\t}\n\t\tint ans = 0;\n\t\tfor(String str : temp){\n\t\t\tif(str.equalsIgnoreCase(w)){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main"
]
| import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String w = sc.nextLine();
String p;
List<String> temp = new ArrayList<String>();
while( !(p = sc.nextLine()).equals("END_OF_TEXT")){
for(String in : p.split(" ")){
temp.add(in);
}
}
int ans = 0;
for(String str : temp){
if(str.equalsIgnoreCase(w)){
ans++;
}
}
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
11,
1,
30,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
13,
3,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
13,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
8,
38
],
[
38,
39
],
[
38,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
41,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
41,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
41,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
64,
74
],
[
74,
75
],
[
75,
76
],
[
64,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
83,
85
],
[
79,
86
],
[
86,
87
],
[
87,
88
],
[
8,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
6,
95
],
[
95,
96
]
]
| [
"import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \tString W;\n \tString T;\n \tString change_W = \"\";\n \tString change_T = \"\" ;\n \tString end = \"END_OF_TEXT\";\n \tint count = 0;\n \t\n \tW = scan.nextLine();\n \tchange_W = W.toLowerCase();\n \t\n \tfor(;;){\n \tT = scan.nextLine();\n \t\tif(T.equals(end)) break; \t\t\n \t\tchange_T = T.toLowerCase();\n \t\tString sepa[] = change_T.split(\" \");\n \t\t\n \t\tfor(int i = 0; i < sepa.length; i++){\n \t\t\tif(change_W.equals(sepa[i])){\n \t\t\t\tcount++;\n \t\t\t}\n \t\t}\n \t\t\n \t}\n \t\n \t System.out.println(count);\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 \tString W;\n \tString T;\n \tString change_W = \"\";\n \tString change_T = \"\" ;\n \tString end = \"END_OF_TEXT\";\n \tint count = 0;\n \t\n \tW = scan.nextLine();\n \tchange_W = W.toLowerCase();\n \t\n \tfor(;;){\n \tT = scan.nextLine();\n \t\tif(T.equals(end)) break; \t\t\n \t\tchange_T = T.toLowerCase();\n \t\tString sepa[] = change_T.split(\" \");\n \t\t\n \t\tfor(int i = 0; i < sepa.length; i++){\n \t\t\tif(change_W.equals(sepa[i])){\n \t\t\t\tcount++;\n \t\t\t}\n \t\t}\n \t\t\n \t}\n \t\n \t System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \tString W;\n \tString T;\n \tString change_W = \"\";\n \tString change_T = \"\" ;\n \tString end = \"END_OF_TEXT\";\n \tint count = 0;\n \t\n \tW = scan.nextLine();\n \tchange_W = W.toLowerCase();\n \t\n \tfor(;;){\n \tT = scan.nextLine();\n \t\tif(T.equals(end)) break; \t\t\n \t\tchange_T = T.toLowerCase();\n \t\tString sepa[] = change_T.split(\" \");\n \t\t\n \t\tfor(int i = 0; i < sepa.length; i++){\n \t\t\tif(change_W.equals(sepa[i])){\n \t\t\t\tcount++;\n \t\t\t}\n \t\t}\n \t\t\n \t}\n \t\n \t System.out.println(count);\n }",
"main",
"{\n \tScanner scan = new Scanner(System.in);\n \tString W;\n \tString T;\n \tString change_W = \"\";\n \tString change_T = \"\" ;\n \tString end = \"END_OF_TEXT\";\n \tint count = 0;\n \t\n \tW = scan.nextLine();\n \tchange_W = W.toLowerCase();\n \t\n \tfor(;;){\n \tT = scan.nextLine();\n \t\tif(T.equals(end)) break; \t\t\n \t\tchange_T = T.toLowerCase();\n \t\tString sepa[] = change_T.split(\" \");\n \t\t\n \t\tfor(int i = 0; i < sepa.length; i++){\n \t\t\tif(change_W.equals(sepa[i])){\n \t\t\t\tcount++;\n \t\t\t}\n \t\t}\n \t\t\n \t}\n \t\n \t System.out.println(count);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String W;",
"W",
"String T;",
"T",
"String change_W = \"\";",
"change_W",
"\"\"",
"String change_T = \"\" ;",
"change_T",
"\"\"",
"String end = \"END_OF_TEXT\";",
"end",
"\"END_OF_TEXT\"",
"int count = 0;",
"count",
"0",
"W = scan.nextLine()",
"W",
"scan.nextLine()",
"scan.nextLine",
"scan",
"change_W = W.toLowerCase()",
"change_W",
"W.toLowerCase()",
"W.toLowerCase",
"W",
"for(;;){\n \tT = scan.nextLine();\n \t\tif(T.equals(end)) break; \t\t\n \t\tchange_T = T.toLowerCase();\n \t\tString sepa[] = change_T.split(\" \");\n \t\t\n \t\tfor(int i = 0; i < sepa.length; i++){\n \t\t\tif(change_W.equals(sepa[i])){\n \t\t\t\tcount++;\n \t\t\t}\n \t\t}\n \t\t\n \t}",
";",
"{\n \tT = scan.nextLine();\n \t\tif(T.equals(end)) break; \t\t\n \t\tchange_T = T.toLowerCase();\n \t\tString sepa[] = change_T.split(\" \");\n \t\t\n \t\tfor(int i = 0; i < sepa.length; i++){\n \t\t\tif(change_W.equals(sepa[i])){\n \t\t\t\tcount++;\n \t\t\t}\n \t\t}\n \t\t\n \t}",
"{\n \tT = scan.nextLine();\n \t\tif(T.equals(end)) break; \t\t\n \t\tchange_T = T.toLowerCase();\n \t\tString sepa[] = change_T.split(\" \");\n \t\t\n \t\tfor(int i = 0; i < sepa.length; i++){\n \t\t\tif(change_W.equals(sepa[i])){\n \t\t\t\tcount++;\n \t\t\t}\n \t\t}\n \t\t\n \t}",
"T = scan.nextLine()",
"T",
"scan.nextLine()",
"scan.nextLine",
"scan",
"if(T.equals(end)) break;",
"T.equals(end)",
"T.equals",
"T",
"end",
"break;",
"change_T = T.toLowerCase()",
"change_T",
"T.toLowerCase()",
"T.toLowerCase",
"T",
"String sepa[] = change_T.split(\" \");",
"sepa",
"change_T.split(\" \")",
"change_T.split",
"change_T",
"\" \"",
"for(int i = 0; i < sepa.length; i++){\n \t\t\tif(change_W.equals(sepa[i])){\n \t\t\t\tcount++;\n \t\t\t}\n \t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < sepa.length",
"i",
"sepa.length",
"sepa",
"sepa.length",
"i++",
"i++",
"i",
"{\n \t\t\tif(change_W.equals(sepa[i])){\n \t\t\t\tcount++;\n \t\t\t}\n \t\t}",
"{\n \t\t\tif(change_W.equals(sepa[i])){\n \t\t\t\tcount++;\n \t\t\t}\n \t\t}",
"if(change_W.equals(sepa[i])){\n \t\t\t\tcount++;\n \t\t\t}",
"change_W.equals(sepa[i])",
"change_W.equals",
"change_W",
"sepa[i]",
"sepa",
"i",
"{\n \t\t\t\tcount++;\n \t\t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
String W;
String T;
String change_W = "";
String change_T = "" ;
String end = "END_OF_TEXT";
int count = 0;
W = scan.nextLine();
change_W = W.toLowerCase();
for(;;){
T = scan.nextLine();
if(T.equals(end)) break;
change_T = T.toLowerCase();
String sepa[] = change_T.split(" ");
for(int i = 0; i < sepa.length; i++){
if(change_W.equals(sepa[i])){
count++;
}
}
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
4,
18,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
4,
18,
13,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
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
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
8,
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
],
[
55,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
8,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
6,
71
],
[
71,
72
]
]
| [
"\nimport java.util.*;\nclass Main { \n\tpublic static void main (String...args) {\n\t\tint count = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tString w = scan.next();\n\t\tList<String>tList = new ArrayList<>();\n\t\twhile(scan.hasNext()){\n String str = scan.next().toLowerCase();\n\t\t\t tList.add(str);\n\t\t}\n\t\tfor(int i = 0; i < tList.size(); i++) {\n\t\t\tif(w.equals(tList.get(i))) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}\n\t",
"import java.util.*;",
"util.*",
"java",
"class Main { \n\tpublic static void main (String...args) {\n\t\tint count = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tString w = scan.next();\n\t\tList<String>tList = new ArrayList<>();\n\t\twhile(scan.hasNext()){\n String str = scan.next().toLowerCase();\n\t\t\t tList.add(str);\n\t\t}\n\t\tfor(int i = 0; i < tList.size(); i++) {\n\t\t\tif(w.equals(tList.get(i))) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"Main",
"public static void main (String...args) {\n\t\tint count = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tString w = scan.next();\n\t\tList<String>tList = new ArrayList<>();\n\t\twhile(scan.hasNext()){\n String str = scan.next().toLowerCase();\n\t\t\t tList.add(str);\n\t\t}\n\t\tfor(int i = 0; i < tList.size(); i++) {\n\t\t\tif(w.equals(tList.get(i))) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\tint count = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tString w = scan.next();\n\t\tList<String>tList = new ArrayList<>();\n\t\twhile(scan.hasNext()){\n String str = scan.next().toLowerCase();\n\t\t\t tList.add(str);\n\t\t}\n\t\tfor(int i = 0; i < tList.size(); i++) {\n\t\t\tif(w.equals(tList.get(i))) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"int count = 0;",
"count",
"0",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String w = scan.next();",
"w",
"scan.next()",
"scan.next",
"scan",
"List<String>tList = new ArrayList<>();",
"tList",
"new ArrayList<>()",
"while(scan.hasNext()){\n String str = scan.next().toLowerCase();\n\t\t\t tList.add(str);\n\t\t}",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n String str = scan.next().toLowerCase();\n\t\t\t tList.add(str);\n\t\t}",
"String str = scan.next().toLowerCase();",
"str",
"scan.next().toLowerCase()",
"scan.next().toLowerCase",
"scan.next()",
"scan.next",
"scan",
"tList.add(str)",
"tList.add",
"tList",
"str",
"for(int i = 0; i < tList.size(); i++) {\n\t\t\tif(w.equals(tList.get(i))) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < tList.size()",
"i",
"tList.size()",
"tList.size",
"tList",
"i++",
"i++",
"i",
"{\n\t\t\tif(w.equals(tList.get(i))) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(w.equals(tList.get(i))) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"if(w.equals(tList.get(i))) {\n\t\t\t\tcount++;\n\t\t\t}",
"w.equals(tList.get(i))",
"w.equals",
"w",
"tList.get(i)",
"tList.get",
"tList",
"i",
"{\n\t\t\t\tcount++;\n\t\t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String...args",
"args"
]
|
import java.util.*;
class Main {
public static void main (String...args) {
int count = 0;
Scanner scan = new Scanner(System.in);
String w = scan.next();
List<String>tList = new ArrayList<>();
while(scan.hasNext()){
String str = scan.next().toLowerCase();
tList.add(str);
}
for(int i = 0; i < tList.size(); i++) {
if(w.equals(tList.get(i))) {
count++;
}
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
13,
42,
17,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
0,
13,
2,
17,
13,
41,
13,
17,
41,
13,
17,
0,
13,
2,
2,
17,
4,
18,
13,
17,
42,
17,
30,
0,
13,
4,
18,
13,
2,
2,
17,
13,
17,
14,
2,
13,
40,
17,
30,
3,
30,
40,
13,
0,
13,
4,
18,
13,
2,
2,
13,
4,
18,
13,
17,
4,
18,
18,
13,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
33,
38
],
[
27,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
8,
50
],
[
50,
51
],
[
50,
52
],
[
53,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
53,
58
],
[
8,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
68,
68
],
[
68,
69
],
[
68,
70
],
[
68,
71
],
[
61,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
72,
77
],
[
77,
78
],
[
72,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
88,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
88,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
6,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.nextLine();\n\t\tString t = sc.nextLine();\n\t\tString T = t;\n\t\twhile (true) {\n\t\t\tt = sc.nextLine();\n\t\t\tif (t.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tT += \" \" + t;\n\t\t}\n\t\tint count = 0;\n\t\tint result = 0;\n\t\tT = \" \" + T.toLowerCase() + \" \";\n\t\twhile (true) {\n\t\t\tresult = T.indexOf(\" \" + W + \" \");\n\t\t\tif (result == -1) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tcount++;\n\t\t\t\tT = T.substring(result + W.length() + 1);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.nextLine();\n\t\tString t = sc.nextLine();\n\t\tString T = t;\n\t\twhile (true) {\n\t\t\tt = sc.nextLine();\n\t\t\tif (t.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tT += \" \" + t;\n\t\t}\n\t\tint count = 0;\n\t\tint result = 0;\n\t\tT = \" \" + T.toLowerCase() + \" \";\n\t\twhile (true) {\n\t\t\tresult = T.indexOf(\" \" + W + \" \");\n\t\t\tif (result == -1) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tcount++;\n\t\t\t\tT = T.substring(result + W.length() + 1);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.nextLine();\n\t\tString t = sc.nextLine();\n\t\tString T = t;\n\t\twhile (true) {\n\t\t\tt = sc.nextLine();\n\t\t\tif (t.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tT += \" \" + t;\n\t\t}\n\t\tint count = 0;\n\t\tint result = 0;\n\t\tT = \" \" + T.toLowerCase() + \" \";\n\t\twhile (true) {\n\t\t\tresult = T.indexOf(\" \" + W + \" \");\n\t\t\tif (result == -1) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tcount++;\n\t\t\t\tT = T.substring(result + W.length() + 1);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.nextLine();\n\t\tString t = sc.nextLine();\n\t\tString T = t;\n\t\twhile (true) {\n\t\t\tt = sc.nextLine();\n\t\t\tif (t.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tT += \" \" + t;\n\t\t}\n\t\tint count = 0;\n\t\tint result = 0;\n\t\tT = \" \" + T.toLowerCase() + \" \";\n\t\twhile (true) {\n\t\t\tresult = T.indexOf(\" \" + W + \" \");\n\t\t\tif (result == -1) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tcount++;\n\t\t\t\tT = T.substring(result + W.length() + 1);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String W = sc.nextLine();",
"W",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String t = sc.nextLine();",
"t",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String T = t;",
"T",
"t",
"while (true) {\n\t\t\tt = sc.nextLine();\n\t\t\tif (t.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tT += \" \" + t;\n\t\t}",
"true",
"{\n\t\t\tt = sc.nextLine();\n\t\t\tif (t.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tT += \" \" + t;\n\t\t}",
"t = sc.nextLine()",
"t",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if (t.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;",
"t.equals(\"END_OF_TEXT\")",
"t.equals",
"t",
"\"END_OF_TEXT\"",
"break;",
"T += \" \" + t",
"T",
"\" \" + t",
"\" \"",
"t",
"int count = 0;",
"count",
"0",
"int result = 0;",
"result",
"0",
"T = \" \" + T.toLowerCase() + \" \"",
"T",
"\" \" + T.toLowerCase() + \" \"",
"\" \" + T.toLowerCase() + \" \"",
"\" \"",
"T.toLowerCase()",
"T.toLowerCase",
"T",
"\" \"",
"while (true) {\n\t\t\tresult = T.indexOf(\" \" + W + \" \");\n\t\t\tif (result == -1) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tcount++;\n\t\t\t\tT = T.substring(result + W.length() + 1);\n\t\t\t}\n\t\t}",
"true",
"{\n\t\t\tresult = T.indexOf(\" \" + W + \" \");\n\t\t\tif (result == -1) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tcount++;\n\t\t\t\tT = T.substring(result + W.length() + 1);\n\t\t\t}\n\t\t}",
"result = T.indexOf(\" \" + W + \" \")",
"result",
"T.indexOf(\" \" + W + \" \")",
"T.indexOf",
"T",
"\" \" + W + \" \"",
"\" \" + W + \" \"",
"\" \"",
"W",
"\" \"",
"if (result == -1) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tcount++;\n\t\t\t\tT = T.substring(result + W.length() + 1);\n\t\t\t}",
"result == -1",
"result",
"-1",
"1",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"{\n\t\t\t\tcount++;\n\t\t\t\tT = T.substring(result + W.length() + 1);\n\t\t\t}",
"count++",
"count",
"T = T.substring(result + W.length() + 1)",
"T",
"T.substring(result + W.length() + 1)",
"T.substring",
"T",
"result + W.length() + 1",
"result + W.length() + 1",
"result",
"W.length()",
"W.length",
"W",
"1",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.nextLine();\n\t\tString t = sc.nextLine();\n\t\tString T = t;\n\t\twhile (true) {\n\t\t\tt = sc.nextLine();\n\t\t\tif (t.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tT += \" \" + t;\n\t\t}\n\t\tint count = 0;\n\t\tint result = 0;\n\t\tT = \" \" + T.toLowerCase() + \" \";\n\t\twhile (true) {\n\t\t\tresult = T.indexOf(\" \" + W + \" \");\n\t\t\tif (result == -1) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tcount++;\n\t\t\t\tT = T.substring(result + W.length() + 1);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.nextLine();\n\t\tString t = sc.nextLine();\n\t\tString T = t;\n\t\twhile (true) {\n\t\t\tt = sc.nextLine();\n\t\t\tif (t.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tT += \" \" + t;\n\t\t}\n\t\tint count = 0;\n\t\tint result = 0;\n\t\tT = \" \" + T.toLowerCase() + \" \";\n\t\twhile (true) {\n\t\t\tresult = T.indexOf(\" \" + W + \" \");\n\t\t\tif (result == -1) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tcount++;\n\t\t\t\tT = T.substring(result + W.length() + 1);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String W = sc.nextLine();
String t = sc.nextLine();
String T = t;
while (true) {
t = sc.nextLine();
if (t.equals("END_OF_TEXT"))
break;
T += " " + t;
}
int count = 0;
int result = 0;
T = " " + T.toLowerCase() + " ";
while (true) {
result = T.indexOf(" " + W + " ");
if (result == -1) {
break;
} else {
count++;
T = T.substring(result + W.length() + 1);
}
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
3,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
41,
13,
20,
0,
13,
4,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
6,
13,
12,
13,
30,
14,
4,
18,
13,
4,
18,
13,
30,
29,
17,
29,
17,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
88,
5
],
[
88,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
21,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
42,
47
],
[
36,
48
],
[
48,
49
],
[
48,
50
],
[
36,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
53,
57
],
[
8,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
6,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
76,
77
],
[
71,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
81,
82
],
[
68,
83
],
[
83,
84
],
[
68,
85
],
[
85,
86
],
[
0,
87
],
[
87,
88
],
[
87,
89
]
]
| [
"\n\nimport java.util.Scanner;\n\npublic class Main{\n\t\n\tpublic static void main(String[] args){\n\t\t\n\t\t//\n\t\tString keyword= \"\";\n\t\tString sentence= \"\";\n\t\tint answer = 0;\n\t\t\n\t\t//標準入力\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\t//入力文字\n\t\t\tkeyword = sc.next();\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\t//英文を取ってくる\n\t\twhile(sc.hasNextLine()){\n\t\t\t//\n\t\t\tsentence = sc.next();\n\t\t\t\n\t\t\tif(sentence.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\n\t\t\t//表示\n\t\t\tutility ut = new utility();\n\t\t\tanswer += ut.mate_string(keyword,sentence);\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t\t\n\t}\n}\n\nclass utility{\n\t\n\t//キーワードと検索単語を渡して、キーワードと検索単語を同じ(小文字と大文字関係なし)だった場合は1を返す\n\tpublic int mate_string(String keyword,String sentence){\n\t\t//\n\t\tif(keyword.equals((sentence.toLowerCase()))){\n\t\t\t//一致しているときは1\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\t//一致していないときは0\n\t\treturn 0;\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\t\n\tpublic static void main(String[] args){\n\t\t\n\t\t//\n\t\tString keyword= \"\";\n\t\tString sentence= \"\";\n\t\tint answer = 0;\n\t\t\n\t\t//標準入力\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\t//入力文字\n\t\t\tkeyword = sc.next();\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\t//英文を取ってくる\n\t\twhile(sc.hasNextLine()){\n\t\t\t//\n\t\t\tsentence = sc.next();\n\t\t\t\n\t\t\tif(sentence.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\n\t\t\t//表示\n\t\t\tutility ut = new utility();\n\t\t\tanswer += ut.mate_string(keyword,sentence);\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\t\n\t\t//\n\t\tString keyword= \"\";\n\t\tString sentence= \"\";\n\t\tint answer = 0;\n\t\t\n\t\t//標準入力\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\t//入力文字\n\t\t\tkeyword = sc.next();\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\t//英文を取ってくる\n\t\twhile(sc.hasNextLine()){\n\t\t\t//\n\t\t\tsentence = sc.next();\n\t\t\t\n\t\t\tif(sentence.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\n\t\t\t//表示\n\t\t\tutility ut = new utility();\n\t\t\tanswer += ut.mate_string(keyword,sentence);\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t\t\n\t}",
"main",
"{\n\t\t\n\t\t//\n\t\tString keyword= \"\";\n\t\tString sentence= \"\";\n\t\tint answer = 0;\n\t\t\n\t\t//標準入力\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\t//入力文字\n\t\t\tkeyword = sc.next();\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\t//英文を取ってくる\n\t\twhile(sc.hasNextLine()){\n\t\t\t//\n\t\t\tsentence = sc.next();\n\t\t\t\n\t\t\tif(sentence.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\n\t\t\t//表示\n\t\t\tutility ut = new utility();\n\t\t\tanswer += ut.mate_string(keyword,sentence);\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t\t\n\t}",
"String keyword= \"\";",
"keyword",
"\"\"",
"String sentence= \"\";",
"sentence",
"\"\"",
"int answer = 0;",
"answer",
"0",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while(sc.hasNext()){\n\t\t\t//入力文字\n\t\t\tkeyword = sc.next();\n\t\t\tbreak;\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\t//入力文字\n\t\t\tkeyword = sc.next();\n\t\t\tbreak;\n\t\t}",
"keyword = sc.next()",
"keyword",
"sc.next()",
"sc.next",
"sc",
"break;",
"while(sc.hasNextLine()){\n\t\t\t//\n\t\t\tsentence = sc.next();\n\t\t\t\n\t\t\tif(sentence.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\n\t\t\t//表示\n\t\t\tutility ut = new utility();\n\t\t\tanswer += ut.mate_string(keyword,sentence);\n\t\t\t\n\t\t}",
"sc.hasNextLine()",
"sc.hasNextLine",
"sc",
"{\n\t\t\t//\n\t\t\tsentence = sc.next();\n\t\t\t\n\t\t\tif(sentence.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\n\t\t\t//表示\n\t\t\tutility ut = new utility();\n\t\t\tanswer += ut.mate_string(keyword,sentence);\n\t\t\t\n\t\t}",
"sentence = sc.next()",
"sentence",
"sc.next()",
"sc.next",
"sc",
"if(sentence.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;",
"sentence.equals(\"END_OF_TEXT\")",
"sentence.equals",
"sentence",
"\"END_OF_TEXT\"",
"break;",
"utility ut = new utility();",
"ut",
"new utility()",
"answer += ut.mate_string(keyword,sentence)",
"answer",
"ut.mate_string(keyword,sentence)",
"ut.mate_string",
"ut",
"keyword",
"sentence",
"System.out.println(answer)",
"System.out.println",
"System.out",
"System",
"System.out",
"answer",
"String[] args",
"args",
"class utility{\n\t\n\t//キーワードと検索単語を渡して、キーワードと検索単語を同じ(小文字と大文字関係なし)だった場合は1を返す\n\tpublic int mate_string(String keyword,String sentence){\n\t\t//\n\t\tif(keyword.equals((sentence.toLowerCase()))){\n\t\t\t//一致しているときは1\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\t//一致していないときは0\n\t\treturn 0;\n\t}\n}",
"utility",
"//キーワードと検索単語を渡して、キーワードと検索単語を同じ(小文字と大文字関係なし)だった場合は1を返す\n\tpublic int mate_string(String keyword,String sentence){\n\t\t//\n\t\tif(keyword.equals((sentence.toLowerCase()))){\n\t\t\t//一致しているときは1\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\t//一致していないときは0\n\t\treturn 0;\n\t}",
"mate_string",
"{\n\t\t//\n\t\tif(keyword.equals((sentence.toLowerCase()))){\n\t\t\t//一致しているときは1\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\t//一致していないときは0\n\t\treturn 0;\n\t}",
"if(keyword.equals((sentence.toLowerCase()))){\n\t\t\t//一致しているときは1\n\t\t\treturn 1;\n\t\t}",
"keyword.equals((sentence.toLowerCase()))",
"keyword.equals",
"keyword",
"(sentence.toLowerCase())",
"sentence.toLowerCase",
"sentence",
"{\n\t\t\t//一致しているときは1\n\t\t\treturn 1;\n\t\t}",
"return 1;",
"1",
"return 0;",
"0",
"String keyword",
"keyword",
"String sentence",
"sentence",
"public class Main{\n\t\n\tpublic static void main(String[] args){\n\t\t\n\t\t//\n\t\tString keyword= \"\";\n\t\tString sentence= \"\";\n\t\tint answer = 0;\n\t\t\n\t\t//標準入力\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\t//入力文字\n\t\t\tkeyword = sc.next();\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\t//英文を取ってくる\n\t\twhile(sc.hasNextLine()){\n\t\t\t//\n\t\t\tsentence = sc.next();\n\t\t\t\n\t\t\tif(sentence.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\n\t\t\t//表示\n\t\t\tutility ut = new utility();\n\t\t\tanswer += ut.mate_string(keyword,sentence);\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t\t\n\t}\n}",
"public class Main{\n\t\n\tpublic static void main(String[] args){\n\t\t\n\t\t//\n\t\tString keyword= \"\";\n\t\tString sentence= \"\";\n\t\tint answer = 0;\n\t\t\n\t\t//標準入力\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\t//入力文字\n\t\t\tkeyword = sc.next();\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\t//英文を取ってくる\n\t\twhile(sc.hasNextLine()){\n\t\t\t//\n\t\t\tsentence = sc.next();\n\t\t\t\n\t\t\tif(sentence.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\n\t\t\t//表示\n\t\t\tutility ut = new utility();\n\t\t\tanswer += ut.mate_string(keyword,sentence);\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t\t\n\t}\n}",
"Main"
]
|
import java.util.Scanner;
public class Main{
public static void main(String[] args){
//
String keyword= "";
String sentence= "";
int answer = 0;
//標準入力
Scanner sc = new Scanner(System.in);
while(sc.hasNext()){
//入力文字
keyword = sc.next();
break;
}
//英文を取ってくる
while(sc.hasNextLine()){
//
sentence = sc.next();
if(sentence.equals("END_OF_TEXT"))
break;
//表示
utility ut = new utility();
answer += ut.mate_string(keyword,sentence);
}
System.out.println(answer);
}
}
class utility{
//キーワードと検索単語を渡して、キーワードと検索単語を同じ(小文字と大文字関係なし)だった場合は1を返す
public int mate_string(String keyword,String sentence){
//
if(keyword.equals((sentence.toLowerCase()))){
//一致しているときは1
return 1;
}
//一致していないときは0
return 0;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
17,
41,
13,
4,
18,
13,
41,
13,
17,
42,
17,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
0,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
84,
8
],
[
84,
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
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
36,
41
],
[
30,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
44,
49
],
[
30,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
50,
60
],
[
60,
61
],
[
61,
62
],
[
50,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
65,
72
],
[
72,
73
],
[
73,
74
],
[
11,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
9,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
]
| [
"\n\nimport java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t//ArrayList<String> word = new ArrayList<String>();\n\t\tString[] words;\n\t\tint wordCount = 0;\n\t\tString W = scan.nextLine();\n\t\tString T = \"\";\n\t\t\n\t\t\n\t\t\n\t\n\t\twhile(true) {\n\t\t\tT = scan.nextLine();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) break;\n\t\t\twords = T.toLowerCase().split(\" \");\n\t\t\tfor (int j = 0; j < words.length; j++) {\n\t\t\t\tif(words[j].equals(W)){\n\t\t\t\t\twordCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(wordCount);\n\t\t\n\t\t\n\t}\n\t\n\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t//ArrayList<String> word = new ArrayList<String>();\n\t\tString[] words;\n\t\tint wordCount = 0;\n\t\tString W = scan.nextLine();\n\t\tString T = \"\";\n\t\t\n\t\t\n\t\t\n\t\n\t\twhile(true) {\n\t\t\tT = scan.nextLine();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) break;\n\t\t\twords = T.toLowerCase().split(\" \");\n\t\t\tfor (int j = 0; j < words.length; j++) {\n\t\t\t\tif(words[j].equals(W)){\n\t\t\t\t\twordCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(wordCount);\n\t\t\n\t\t\n\t}\n\t\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t//ArrayList<String> word = new ArrayList<String>();\n\t\tString[] words;\n\t\tint wordCount = 0;\n\t\tString W = scan.nextLine();\n\t\tString T = \"\";\n\t\t\n\t\t\n\t\t\n\t\n\t\twhile(true) {\n\t\t\tT = scan.nextLine();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) break;\n\t\t\twords = T.toLowerCase().split(\" \");\n\t\t\tfor (int j = 0; j < words.length; j++) {\n\t\t\t\tif(words[j].equals(W)){\n\t\t\t\t\twordCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(wordCount);\n\t\t\n\t\t\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\t//ArrayList<String> word = new ArrayList<String>();\n\t\tString[] words;\n\t\tint wordCount = 0;\n\t\tString W = scan.nextLine();\n\t\tString T = \"\";\n\t\t\n\t\t\n\t\t\n\t\n\t\twhile(true) {\n\t\t\tT = scan.nextLine();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) break;\n\t\t\twords = T.toLowerCase().split(\" \");\n\t\t\tfor (int j = 0; j < words.length; j++) {\n\t\t\t\tif(words[j].equals(W)){\n\t\t\t\t\twordCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(wordCount);\n\t\t\n\t\t\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String[] words;",
"words",
"int wordCount = 0;",
"wordCount",
"0",
"String W = scan.nextLine();",
"W",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String T = \"\";",
"T",
"\"\"",
"while(true) {\n\t\t\tT = scan.nextLine();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) break;\n\t\t\twords = T.toLowerCase().split(\" \");\n\t\t\tfor (int j = 0; j < words.length; j++) {\n\t\t\t\tif(words[j].equals(W)){\n\t\t\t\t\twordCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}",
"true",
"{\n\t\t\tT = scan.nextLine();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) break;\n\t\t\twords = T.toLowerCase().split(\" \");\n\t\t\tfor (int j = 0; j < words.length; j++) {\n\t\t\t\tif(words[j].equals(W)){\n\t\t\t\t\twordCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}",
"T = scan.nextLine()",
"T",
"scan.nextLine()",
"scan.nextLine",
"scan",
"if(T.equals(\"END_OF_TEXT\")) break;",
"T.equals(\"END_OF_TEXT\")",
"T.equals",
"T",
"\"END_OF_TEXT\"",
"break;",
"words = T.toLowerCase().split(\" \")",
"words",
"T.toLowerCase().split(\" \")",
"T.toLowerCase().split",
"T.toLowerCase()",
"T.toLowerCase",
"T",
"\" \"",
"for (int j = 0; j < words.length; j++) {\n\t\t\t\tif(words[j].equals(W)){\n\t\t\t\t\twordCount++;\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < words.length",
"j",
"words.length",
"words",
"words.length",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(words[j].equals(W)){\n\t\t\t\t\twordCount++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(words[j].equals(W)){\n\t\t\t\t\twordCount++;\n\t\t\t\t}\n\t\t\t}",
"if(words[j].equals(W)){\n\t\t\t\t\twordCount++;\n\t\t\t\t}",
"words[j].equals(W)",
"words[j].equals",
"words[j]",
"words",
"j",
"W",
"{\n\t\t\t\t\twordCount++;\n\t\t\t\t}",
"wordCount++",
"wordCount",
"System.out.println(wordCount)",
"System.out.println",
"System.out",
"System",
"System.out",
"wordCount",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t//ArrayList<String> word = new ArrayList<String>();\n\t\tString[] words;\n\t\tint wordCount = 0;\n\t\tString W = scan.nextLine();\n\t\tString T = \"\";\n\t\t\n\t\t\n\t\t\n\t\n\t\twhile(true) {\n\t\t\tT = scan.nextLine();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) break;\n\t\t\twords = T.toLowerCase().split(\" \");\n\t\t\tfor (int j = 0; j < words.length; j++) {\n\t\t\t\tif(words[j].equals(W)){\n\t\t\t\t\twordCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(wordCount);\n\t\t\n\t\t\n\t}\n\t\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t//ArrayList<String> word = new ArrayList<String>();\n\t\tString[] words;\n\t\tint wordCount = 0;\n\t\tString W = scan.nextLine();\n\t\tString T = \"\";\n\t\t\n\t\t\n\t\t\n\t\n\t\twhile(true) {\n\t\t\tT = scan.nextLine();\n\t\t\tif(T.equals(\"END_OF_TEXT\")) break;\n\t\t\twords = T.toLowerCase().split(\" \");\n\t\t\tfor (int j = 0; j < words.length; j++) {\n\t\t\t\tif(words[j].equals(W)){\n\t\t\t\t\twordCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(wordCount);\n\t\t\n\t\t\n\t}\n\t\n\n}",
"Main"
]
|
import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
//ArrayList<String> word = new ArrayList<String>();
String[] words;
int wordCount = 0;
String W = scan.nextLine();
String T = "";
while(true) {
T = scan.nextLine();
if(T.equals("END_OF_TEXT")) break;
words = T.toLowerCase().split(" ");
for (int j = 0; j < words.length; j++) {
if(words[j].equals(W)){
wordCount++;
}
}
}
System.out.println(wordCount);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
17,
42,
40,
4,
18,
0,
13,
4,
18,
13,
17,
30,
14,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
50,
5
],
[
50,
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
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
24,
31
],
[
22,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
33,
38
],
[
38,
39
],
[
39,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
6,
47
],
[
47,
48
],
[
0,
49
],
[
49,
50
],
[
49,
51
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String W = sc.next();\n String T;\n int cnt = 0;\n while (!((T = sc.next()).equals(\"END_OF_TEXT\"))) {\n if (T.equalsIgnoreCase(W)) {\n cnt++;\n }\n }\n System.out.println(cnt);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String W = sc.next();\n String T;\n int cnt = 0;\n while (!((T = sc.next()).equals(\"END_OF_TEXT\"))) {\n if (T.equalsIgnoreCase(W)) {\n cnt++;\n }\n }\n System.out.println(cnt);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String W = sc.next();\n String T;\n int cnt = 0;\n while (!((T = sc.next()).equals(\"END_OF_TEXT\"))) {\n if (T.equalsIgnoreCase(W)) {\n cnt++;\n }\n }\n System.out.println(cnt);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String W = sc.next();\n String T;\n int cnt = 0;\n while (!((T = sc.next()).equals(\"END_OF_TEXT\"))) {\n if (T.equalsIgnoreCase(W)) {\n cnt++;\n }\n }\n System.out.println(cnt);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String W = sc.next();",
"W",
"sc.next()",
"sc.next",
"sc",
"String T;",
"T",
"int cnt = 0;",
"cnt",
"0",
"while (!((T = sc.next()).equals(\"END_OF_TEXT\"))) {\n if (T.equalsIgnoreCase(W)) {\n cnt++;\n }\n }",
"!((T = sc.next()).equals(\"END_OF_TEXT\"))",
"((T = sc.next()).equals(\"END_OF_TEXT\"))",
"(T = sc.next()).equals",
"(T = sc.next())",
"T",
"sc.next()",
"sc.next",
"sc",
"\"END_OF_TEXT\"",
"{\n if (T.equalsIgnoreCase(W)) {\n cnt++;\n }\n }",
"if (T.equalsIgnoreCase(W)) {\n cnt++;\n }",
"T.equalsIgnoreCase(W)",
"T.equalsIgnoreCase",
"T",
"W",
"{\n cnt++;\n }",
"cnt++",
"cnt",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String W = sc.next();\n String T;\n int cnt = 0;\n while (!((T = sc.next()).equals(\"END_OF_TEXT\"))) {\n if (T.equalsIgnoreCase(W)) {\n cnt++;\n }\n }\n System.out.println(cnt);\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String W = sc.next();\n String T;\n int cnt = 0;\n while (!((T = sc.next()).equals(\"END_OF_TEXT\"))) {\n if (T.equalsIgnoreCase(W)) {\n cnt++;\n }\n }\n System.out.println(cnt);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String W = sc.next();
String T;
int cnt = 0;
while (!((T = sc.next()).equals("END_OF_TEXT"))) {
if (T.equalsIgnoreCase(W)) {
cnt++;
}
}
System.out.println(cnt);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
0,
13,
4,
18,
13,
42,
17,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
14,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
58,
5
],
[
58,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
34,
39
],
[
39,
40
],
[
28,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
41,
46
],
[
46,
47
],
[
47,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
6,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
]
| [
"\n\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\tint count =0;\n\t\tString W=\"\";\n\t\tString word =\"\";\n\t\t//??????????????? W\n\t\tW = sc.next();\n\t\twhile(true){\n\t\t\t//?????????????????? ???????????????\n\t\t\tword = sc.next();\n\n\t\t\tif(word.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//??????W????????????????????????????????????\n\t\t\tif(W.equalsIgnoreCase(word)){\n\t\t\t\t//W?????????????????°count\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\t\t//??¨???\n\t\t\tSystem.out.println(count);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String []args){\n\t\t// ????????£?????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count =0;\n\t\tString W=\"\";\n\t\tString word =\"\";\n\t\t//??????????????? W\n\t\tW = sc.next();\n\t\twhile(true){\n\t\t\t//?????????????????? ???????????????\n\t\t\tword = sc.next();\n\n\t\t\tif(word.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//??????W????????????????????????????????????\n\t\t\tif(W.equalsIgnoreCase(word)){\n\t\t\t\t//W?????????????????°count\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\t\t//??¨???\n\t\t\tSystem.out.println(count);\n\t}\n}",
"Main",
"public static void main(String []args){\n\t\t// ????????£?????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count =0;\n\t\tString W=\"\";\n\t\tString word =\"\";\n\t\t//??????????????? W\n\t\tW = sc.next();\n\t\twhile(true){\n\t\t\t//?????????????????? ???????????????\n\t\t\tword = sc.next();\n\n\t\t\tif(word.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//??????W????????????????????????????????????\n\t\t\tif(W.equalsIgnoreCase(word)){\n\t\t\t\t//W?????????????????°count\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\t\t//??¨???\n\t\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\t// ????????£?????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count =0;\n\t\tString W=\"\";\n\t\tString word =\"\";\n\t\t//??????????????? W\n\t\tW = sc.next();\n\t\twhile(true){\n\t\t\t//?????????????????? ???????????????\n\t\t\tword = sc.next();\n\n\t\t\tif(word.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//??????W????????????????????????????????????\n\t\t\tif(W.equalsIgnoreCase(word)){\n\t\t\t\t//W?????????????????°count\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\t\t//??¨???\n\t\t\tSystem.out.println(count);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int count =0;",
"count",
"0",
"String W=\"\";",
"W",
"\"\"",
"String word =\"\";",
"word",
"\"\"",
"W = sc.next()",
"W",
"sc.next()",
"sc.next",
"sc",
"while(true){\n\t\t\t//?????????????????? ???????????????\n\t\t\tword = sc.next();\n\n\t\t\tif(word.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//??????W????????????????????????????????????\n\t\t\tif(W.equalsIgnoreCase(word)){\n\t\t\t\t//W?????????????????°count\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}",
"true",
"{\n\t\t\t//?????????????????? ???????????????\n\t\t\tword = sc.next();\n\n\t\t\tif(word.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//??????W????????????????????????????????????\n\t\t\tif(W.equalsIgnoreCase(word)){\n\t\t\t\t//W?????????????????°count\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}",
"word = sc.next()",
"word",
"sc.next()",
"sc.next",
"sc",
"if(word.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}",
"word.equals(\"END_OF_TEXT\")",
"word.equals",
"word",
"\"END_OF_TEXT\"",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"if(W.equalsIgnoreCase(word)){\n\t\t\t\t//W?????????????????°count\n\t\t\t\tcount ++;\n\t\t\t}",
"W.equalsIgnoreCase(word)",
"W.equalsIgnoreCase",
"W",
"word",
"{\n\t\t\t\t//W?????????????????°count\n\t\t\t\tcount ++;\n\t\t\t}",
"count ++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String []args",
"args",
"public class Main {\n\tpublic static void main(String []args){\n\t\t// ????????£?????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count =0;\n\t\tString W=\"\";\n\t\tString word =\"\";\n\t\t//??????????????? W\n\t\tW = sc.next();\n\t\twhile(true){\n\t\t\t//?????????????????? ???????????????\n\t\t\tword = sc.next();\n\n\t\t\tif(word.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//??????W????????????????????????????????????\n\t\t\tif(W.equalsIgnoreCase(word)){\n\t\t\t\t//W?????????????????°count\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\t\t//??¨???\n\t\t\tSystem.out.println(count);\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\tint count =0;\n\t\tString W=\"\";\n\t\tString word =\"\";\n\t\t//??????????????? W\n\t\tW = sc.next();\n\t\twhile(true){\n\t\t\t//?????????????????? ???????????????\n\t\t\tword = sc.next();\n\n\t\t\tif(word.equals(\"END_OF_TEXT\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//??????W????????????????????????????????????\n\t\t\tif(W.equalsIgnoreCase(word)){\n\t\t\t\t//W?????????????????°count\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\t\t//??¨???\n\t\t\tSystem.out.println(count);\n\t}\n}",
"Main"
]
|
import java.util.Scanner;
public class Main {
public static void main(String []args){
// ????????£?????????????????????
Scanner sc = new Scanner(System.in);
int count =0;
String W="";
String word ="";
//??????????????? W
W = sc.next();
while(true){
//?????????????????? ???????????????
word = sc.next();
if(word.equals("END_OF_TEXT")){
break;
}
//??????W????????????????????????????????????
if(W.equalsIgnoreCase(word)){
//W?????????????????°count
count ++;
}
}
//??¨???
System.out.println(count);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
17,
42,
17,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
14,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
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
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
30,
35
],
[
35,
36
],
[
30,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
37,
42
],
[
42,
43
],
[
43,
44
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
]
| [
"/**\n *1つの単語 W と文章 T が与えられます。T の中にある W の数を出力するプログラムを作成して下さい。 \n\n文章 T に含まれるスペースまたは改行で区切られた文字列を単語 Ti とします。すべての Ti において単語 W と同じになるものを数えて下さい。 \n\nなお、大文字と小文字は区別しません。 \n\n */\n\n//スキャナつかうため\n\nimport java.util.Scanner;\n\npublic class Main {\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 単語を1つ受け取る\n\t\tString strW = sc.next();\n\t\t//受け取る文字、結果の数の変数宣言\n\t\tString strT;\n\t\tint intCounter = 0;\n\t\t\n\t\t//break があるまで処理を繰り返す\n\t\twhile (true) {\n\t\t\t//入力を受け取る\n\t\t\t strT = sc.next();\n\t\t\t //受け取った文字がEND_OF_TEXTと一致した場合breakする\n\t\t\tif (strT.contains(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t//受け取った文字がstrWと一致するたびintCounterに+1する\n\t\t\t//大文字小文字は区別しない。\n\t\t\t} else if (strW.equalsIgnoreCase(strT)) {\n\t\t\t\tintCounter++;\n\t\t\t}\n\n\t\t}\n\t\t//結果表示\n\t\tSystem.out.println(intCounter);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 単語を1つ受け取る\n\t\tString strW = sc.next();\n\t\t//受け取る文字、結果の数の変数宣言\n\t\tString strT;\n\t\tint intCounter = 0;\n\t\t\n\t\t//break があるまで処理を繰り返す\n\t\twhile (true) {\n\t\t\t//入力を受け取る\n\t\t\t strT = sc.next();\n\t\t\t //受け取った文字がEND_OF_TEXTと一致した場合breakする\n\t\t\tif (strT.contains(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t//受け取った文字がstrWと一致するたびintCounterに+1する\n\t\t\t//大文字小文字は区別しない。\n\t\t\t} else if (strW.equalsIgnoreCase(strT)) {\n\t\t\t\tintCounter++;\n\t\t\t}\n\n\t\t}\n\t\t//結果表示\n\t\tSystem.out.println(intCounter);\n\t}\n}",
"Main",
"// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 単語を1つ受け取る\n\t\tString strW = sc.next();\n\t\t//受け取る文字、結果の数の変数宣言\n\t\tString strT;\n\t\tint intCounter = 0;\n\t\t\n\t\t//break があるまで処理を繰り返す\n\t\twhile (true) {\n\t\t\t//入力を受け取る\n\t\t\t strT = sc.next();\n\t\t\t //受け取った文字がEND_OF_TEXTと一致した場合breakする\n\t\t\tif (strT.contains(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t//受け取った文字がstrWと一致するたびintCounterに+1する\n\t\t\t//大文字小文字は区別しない。\n\t\t\t} else if (strW.equalsIgnoreCase(strT)) {\n\t\t\t\tintCounter++;\n\t\t\t}\n\n\t\t}\n\t\t//結果表示\n\t\tSystem.out.println(intCounter);\n\t}",
"main",
"{\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 単語を1つ受け取る\n\t\tString strW = sc.next();\n\t\t//受け取る文字、結果の数の変数宣言\n\t\tString strT;\n\t\tint intCounter = 0;\n\t\t\n\t\t//break があるまで処理を繰り返す\n\t\twhile (true) {\n\t\t\t//入力を受け取る\n\t\t\t strT = sc.next();\n\t\t\t //受け取った文字がEND_OF_TEXTと一致した場合breakする\n\t\t\tif (strT.contains(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t//受け取った文字がstrWと一致するたびintCounterに+1する\n\t\t\t//大文字小文字は区別しない。\n\t\t\t} else if (strW.equalsIgnoreCase(strT)) {\n\t\t\t\tintCounter++;\n\t\t\t}\n\n\t\t}\n\t\t//結果表示\n\t\tSystem.out.println(intCounter);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String strW = sc.next();",
"strW",
"sc.next()",
"sc.next",
"sc",
"String strT;",
"strT",
"int intCounter = 0;",
"intCounter",
"0",
"while (true) {\n\t\t\t//入力を受け取る\n\t\t\t strT = sc.next();\n\t\t\t //受け取った文字がEND_OF_TEXTと一致した場合breakする\n\t\t\tif (strT.contains(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t//受け取った文字がstrWと一致するたびintCounterに+1する\n\t\t\t//大文字小文字は区別しない。\n\t\t\t} else if (strW.equalsIgnoreCase(strT)) {\n\t\t\t\tintCounter++;\n\t\t\t}\n\n\t\t}",
"true",
"{\n\t\t\t//入力を受け取る\n\t\t\t strT = sc.next();\n\t\t\t //受け取った文字がEND_OF_TEXTと一致した場合breakする\n\t\t\tif (strT.contains(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t//受け取った文字がstrWと一致するたびintCounterに+1する\n\t\t\t//大文字小文字は区別しない。\n\t\t\t} else if (strW.equalsIgnoreCase(strT)) {\n\t\t\t\tintCounter++;\n\t\t\t}\n\n\t\t}",
"strT = sc.next()",
"strT",
"sc.next()",
"sc.next",
"sc",
"if (strT.contains(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t//受け取った文字がstrWと一致するたびintCounterに+1する\n\t\t\t//大文字小文字は区別しない。\n\t\t\t} else if (strW.equalsIgnoreCase(strT)) {\n\t\t\t\tintCounter++;\n\t\t\t}",
"strT.contains(\"END_OF_TEXT\")",
"strT.contains",
"strT",
"\"END_OF_TEXT\"",
"{\n\t\t\t\tbreak;\n\t\t\t//受け取った文字がstrWと一致するたびintCounterに+1する\n\t\t\t//大文字小文字は区別しない。\n\t\t\t}",
"break;",
"if (strW.equalsIgnoreCase(strT)) {\n\t\t\t\tintCounter++;\n\t\t\t}",
"strW.equalsIgnoreCase(strT)",
"strW.equalsIgnoreCase",
"strW",
"strT",
"{\n\t\t\t\tintCounter++;\n\t\t\t}",
"intCounter++",
"intCounter",
"System.out.println(intCounter)",
"System.out.println",
"System.out",
"System",
"System.out",
"intCounter",
"String[] args",
"args",
"public class Main {\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 単語を1つ受け取る\n\t\tString strW = sc.next();\n\t\t//受け取る文字、結果の数の変数宣言\n\t\tString strT;\n\t\tint intCounter = 0;\n\t\t\n\t\t//break があるまで処理を繰り返す\n\t\twhile (true) {\n\t\t\t//入力を受け取る\n\t\t\t strT = sc.next();\n\t\t\t //受け取った文字がEND_OF_TEXTと一致した場合breakする\n\t\t\tif (strT.contains(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t//受け取った文字がstrWと一致するたびintCounterに+1する\n\t\t\t//大文字小文字は区別しない。\n\t\t\t} else if (strW.equalsIgnoreCase(strT)) {\n\t\t\t\tintCounter++;\n\t\t\t}\n\n\t\t}\n\t\t//結果表示\n\t\tSystem.out.println(intCounter);\n\t}\n}",
"public class Main {\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 単語を1つ受け取る\n\t\tString strW = sc.next();\n\t\t//受け取る文字、結果の数の変数宣言\n\t\tString strT;\n\t\tint intCounter = 0;\n\t\t\n\t\t//break があるまで処理を繰り返す\n\t\twhile (true) {\n\t\t\t//入力を受け取る\n\t\t\t strT = sc.next();\n\t\t\t //受け取った文字がEND_OF_TEXTと一致した場合breakする\n\t\t\tif (strT.contains(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t//受け取った文字がstrWと一致するたびintCounterに+1する\n\t\t\t//大文字小文字は区別しない。\n\t\t\t} else if (strW.equalsIgnoreCase(strT)) {\n\t\t\t\tintCounter++;\n\t\t\t}\n\n\t\t}\n\t\t//結果表示\n\t\tSystem.out.println(intCounter);\n\t}\n}",
"Main"
]
| /**
*1つの単語 W と文章 T が与えられます。T の中にある W の数を出力するプログラムを作成して下さい。
文章 T に含まれるスペースまたは改行で区切られた文字列を単語 Ti とします。すべての Ti において単語 W と同じになるものを数えて下さい。
なお、大文字と小文字は区別しません。
*/
//スキャナつかうため
import java.util.Scanner;
public class Main {
// プログラムのエントリポイント
public static void main(String[] args) {
// 入力ストリームの生成
Scanner sc = new Scanner(System.in);
// 単語を1つ受け取る
String strW = sc.next();
//受け取る文字、結果の数の変数宣言
String strT;
int intCounter = 0;
//break があるまで処理を繰り返す
while (true) {
//入力を受け取る
strT = sc.next();
//受け取った文字がEND_OF_TEXTと一致した場合breakする
if (strT.contains("END_OF_TEXT")) {
break;
//受け取った文字がstrWと一致するたびintCounterに+1する
//大文字小文字は区別しない。
} else if (strW.equalsIgnoreCase(strT)) {
intCounter++;
}
}
//結果表示
System.out.println(intCounter);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
14,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
52,
5
],
[
52,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
28,
33
],
[
33,
34
],
[
22,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
35,
40
],
[
40,
41
],
[
41,
42
],
[
8,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
6,
49
],
[
49,
50
],
[
0,
51
],
[
51,
52
],
[
51,
53
]
]
| [
"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\tString W = sc.next();\n\n\t\tint same = 0;\n\n\t\twhile (true)\n\t\t{\n\t\t\tString temp = sc.next();\n\t\t\tif (temp.equals(\"END_OF_TEXT\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (temp.equalsIgnoreCase(W))\n\t\t\t{\n\t\t\t\tsame++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(same);\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\tString W = sc.next();\n\n\t\tint same = 0;\n\n\t\twhile (true)\n\t\t{\n\t\t\tString temp = sc.next();\n\t\t\tif (temp.equals(\"END_OF_TEXT\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (temp.equalsIgnoreCase(W))\n\t\t\t{\n\t\t\t\tsame++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(same);\n\t}\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString W = sc.next();\n\n\t\tint same = 0;\n\n\t\twhile (true)\n\t\t{\n\t\t\tString temp = sc.next();\n\t\t\tif (temp.equals(\"END_OF_TEXT\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (temp.equalsIgnoreCase(W))\n\t\t\t{\n\t\t\t\tsame++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(same);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString W = sc.next();\n\n\t\tint same = 0;\n\n\t\twhile (true)\n\t\t{\n\t\t\tString temp = sc.next();\n\t\t\tif (temp.equals(\"END_OF_TEXT\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (temp.equalsIgnoreCase(W))\n\t\t\t{\n\t\t\t\tsame++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(same);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String W = sc.next();",
"W",
"sc.next()",
"sc.next",
"sc",
"int same = 0;",
"same",
"0",
"while (true)\n\t\t{\n\t\t\tString temp = sc.next();\n\t\t\tif (temp.equals(\"END_OF_TEXT\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (temp.equalsIgnoreCase(W))\n\t\t\t{\n\t\t\t\tsame++;\n\t\t\t}\n\t\t}",
"true",
"{\n\t\t\tString temp = sc.next();\n\t\t\tif (temp.equals(\"END_OF_TEXT\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (temp.equalsIgnoreCase(W))\n\t\t\t{\n\t\t\t\tsame++;\n\t\t\t}\n\t\t}",
"String temp = sc.next();",
"temp",
"sc.next()",
"sc.next",
"sc",
"if (temp.equals(\"END_OF_TEXT\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}",
"temp.equals(\"END_OF_TEXT\")",
"temp.equals",
"temp",
"\"END_OF_TEXT\"",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"if (temp.equalsIgnoreCase(W))\n\t\t\t{\n\t\t\t\tsame++;\n\t\t\t}",
"temp.equalsIgnoreCase(W)",
"temp.equalsIgnoreCase",
"temp",
"W",
"{\n\t\t\t\tsame++;\n\t\t\t}",
"same++",
"same",
"System.out.println(same)",
"System.out.println",
"System.out",
"System",
"System.out",
"same",
"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\tString W = sc.next();\n\n\t\tint same = 0;\n\n\t\twhile (true)\n\t\t{\n\t\t\tString temp = sc.next();\n\t\t\tif (temp.equals(\"END_OF_TEXT\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (temp.equalsIgnoreCase(W))\n\t\t\t{\n\t\t\t\tsame++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(same);\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\tString W = sc.next();\n\n\t\tint same = 0;\n\n\t\twhile (true)\n\t\t{\n\t\t\tString temp = sc.next();\n\t\t\tif (temp.equals(\"END_OF_TEXT\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (temp.equalsIgnoreCase(W))\n\t\t\t{\n\t\t\t\tsame++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(same);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
String W = sc.next();
int same = 0;
while (true)
{
String temp = sc.next();
if (temp.equals("END_OF_TEXT"))
{
break;
}
if (temp.equalsIgnoreCase(W))
{
same++;
}
}
System.out.println(same);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
17,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
41,
13,
4,
18,
13,
17,
28,
13,
13,
30,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
13,
0,
13,
17,
4,
18,
18,
13,
13,
13,
12,
13,
30,
4,
18,
20,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
78,
5
],
[
78,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
33,
38
],
[
27,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
27,
45
],
[
45,
46
],
[
45,
47
],
[
45,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
8,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
78,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
69,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString w = scan.next();\n\t\tw = w.toLowerCase();\n\t\tint wcount = 0;\n\t\twhile (true) {\n\t\t\tString t = scan.nextLine();\n\t\t\tif(t.equals(\"END_OF_TEXT\")) break;\n\t\t\tString[] tarray = t.split(\" \");\n\t\t\tfor ( String s : tarray) {\n\t\t\t\ts = s.toLowerCase();\n\t\t\t\tif (w.equals(s)) wcount += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(wcount);\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString w = scan.next();\n\t\tw = w.toLowerCase();\n\t\tint wcount = 0;\n\t\twhile (true) {\n\t\t\tString t = scan.nextLine();\n\t\t\tif(t.equals(\"END_OF_TEXT\")) break;\n\t\t\tString[] tarray = t.split(\" \");\n\t\t\tfor ( String s : tarray) {\n\t\t\t\ts = s.toLowerCase();\n\t\t\t\tif (w.equals(s)) wcount += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(wcount);\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"Main",
"void run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString w = scan.next();\n\t\tw = w.toLowerCase();\n\t\tint wcount = 0;\n\t\twhile (true) {\n\t\t\tString t = scan.nextLine();\n\t\t\tif(t.equals(\"END_OF_TEXT\")) break;\n\t\t\tString[] tarray = t.split(\" \");\n\t\t\tfor ( String s : tarray) {\n\t\t\t\ts = s.toLowerCase();\n\t\t\t\tif (w.equals(s)) wcount += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(wcount);\n\t}",
"run",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString w = scan.next();\n\t\tw = w.toLowerCase();\n\t\tint wcount = 0;\n\t\twhile (true) {\n\t\t\tString t = scan.nextLine();\n\t\t\tif(t.equals(\"END_OF_TEXT\")) break;\n\t\t\tString[] tarray = t.split(\" \");\n\t\t\tfor ( String s : tarray) {\n\t\t\t\ts = s.toLowerCase();\n\t\t\t\tif (w.equals(s)) wcount += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(wcount);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String w = scan.next();",
"w",
"scan.next()",
"scan.next",
"scan",
"w = w.toLowerCase()",
"w",
"w.toLowerCase()",
"w.toLowerCase",
"w",
"int wcount = 0;",
"wcount",
"0",
"while (true) {\n\t\t\tString t = scan.nextLine();\n\t\t\tif(t.equals(\"END_OF_TEXT\")) break;\n\t\t\tString[] tarray = t.split(\" \");\n\t\t\tfor ( String s : tarray) {\n\t\t\t\ts = s.toLowerCase();\n\t\t\t\tif (w.equals(s)) wcount += 1;\n\t\t\t}\n\t\t}",
"true",
"{\n\t\t\tString t = scan.nextLine();\n\t\t\tif(t.equals(\"END_OF_TEXT\")) break;\n\t\t\tString[] tarray = t.split(\" \");\n\t\t\tfor ( String s : tarray) {\n\t\t\t\ts = s.toLowerCase();\n\t\t\t\tif (w.equals(s)) wcount += 1;\n\t\t\t}\n\t\t}",
"String t = scan.nextLine();",
"t",
"scan.nextLine()",
"scan.nextLine",
"scan",
"if(t.equals(\"END_OF_TEXT\")) break;",
"t.equals(\"END_OF_TEXT\")",
"t.equals",
"t",
"\"END_OF_TEXT\"",
"break;",
"String[] tarray = t.split(\" \");",
"tarray",
"t.split(\" \")",
"t.split",
"t",
"\" \"",
"for ( String s : tarray) {\n\t\t\t\ts = s.toLowerCase();\n\t\t\t\tif (w.equals(s)) wcount += 1;\n\t\t\t}",
"String s",
"tarray",
"{\n\t\t\t\ts = s.toLowerCase();\n\t\t\t\tif (w.equals(s)) wcount += 1;\n\t\t\t}",
"{\n\t\t\t\ts = s.toLowerCase();\n\t\t\t\tif (w.equals(s)) wcount += 1;\n\t\t\t}",
"s = s.toLowerCase()",
"s",
"s.toLowerCase()",
"s.toLowerCase",
"s",
"if (w.equals(s)) wcount += 1;",
"w.equals(s)",
"w.equals",
"w",
"s",
"wcount += 1",
"wcount",
"1",
"System.out.println(wcount)",
"System.out.println",
"System.out",
"System",
"System.out",
"wcount",
"public static void main(String[] args) {\n\t\tnew Main().run();\n\t}",
"main",
"{\n\t\tnew Main().run();\n\t}",
"new Main().run()",
"new Main().run",
"new Main()",
"String[] args",
"args",
"public class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString w = scan.next();\n\t\tw = w.toLowerCase();\n\t\tint wcount = 0;\n\t\twhile (true) {\n\t\t\tString t = scan.nextLine();\n\t\t\tif(t.equals(\"END_OF_TEXT\")) break;\n\t\t\tString[] tarray = t.split(\" \");\n\t\t\tfor ( String s : tarray) {\n\t\t\t\ts = s.toLowerCase();\n\t\t\t\tif (w.equals(s)) wcount += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(wcount);\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"public class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString w = scan.next();\n\t\tw = w.toLowerCase();\n\t\tint wcount = 0;\n\t\twhile (true) {\n\t\t\tString t = scan.nextLine();\n\t\t\tif(t.equals(\"END_OF_TEXT\")) break;\n\t\t\tString[] tarray = t.split(\" \");\n\t\t\tfor ( String s : tarray) {\n\t\t\t\ts = s.toLowerCase();\n\t\t\t\tif (w.equals(s)) wcount += 1;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(wcount);\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
void run() {
Scanner scan = new Scanner(System.in);
String w = scan.next();
w = w.toLowerCase();
int wcount = 0;
while (true) {
String t = scan.nextLine();
if(t.equals("END_OF_TEXT")) break;
String[] tarray = t.split(" ");
for ( String s : tarray) {
s = s.toLowerCase();
if (w.equals(s)) wcount += 1;
}
}
System.out.println(wcount);
}
public static void main(String[] args) {
new Main().run();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
41,
13,
4,
18,
4,
18,
13,
17,
28,
13,
13,
30,
30,
14,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
66,
5
],
[
66,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
10,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
10,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
30,
35
],
[
24,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
38,
43
],
[
24,
44
],
[
44,
45
],
[
44,
46
],
[
44,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
49,
54
],
[
54,
55
],
[
55,
56
],
[
10,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
6,
63
],
[
63,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
]
]
| [
"import java.util.Scanner;\n\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\tint cnt = 0;\n\t\t\tString W = sc.nextLine();\n\t\t\twhile(true) {\n\t\t\t\tString T = sc.nextLine();\n\t\t\t\t\n\t\t\t\tif(T.equals(\"END_OF_TEXT\") )\tbreak;\n\t\t\t\t\n\t\t\t\tString[] t = T.toLowerCase().split(\" \");\n\t\t\t\tfor(String i:t) {\n\t\t\t\t\tif(i.equals(W)) {\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(cnt);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\tint cnt = 0;\n\t\t\tString W = sc.nextLine();\n\t\t\twhile(true) {\n\t\t\t\tString T = sc.nextLine();\n\t\t\t\t\n\t\t\t\tif(T.equals(\"END_OF_TEXT\") )\tbreak;\n\t\t\t\t\n\t\t\t\tString[] t = T.toLowerCase().split(\" \");\n\t\t\t\tfor(String i:t) {\n\t\t\t\t\tif(i.equals(W)) {\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(cnt);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\tint cnt = 0;\n\t\t\tString W = sc.nextLine();\n\t\t\twhile(true) {\n\t\t\t\tString T = sc.nextLine();\n\t\t\t\t\n\t\t\t\tif(T.equals(\"END_OF_TEXT\") )\tbreak;\n\t\t\t\t\n\t\t\t\tString[] t = T.toLowerCase().split(\" \");\n\t\t\t\tfor(String i:t) {\n\t\t\t\t\tif(i.equals(W)) {\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(cnt);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t}",
"main",
"{\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\tint cnt = 0;\n\t\t\tString W = sc.nextLine();\n\t\t\twhile(true) {\n\t\t\t\tString T = sc.nextLine();\n\t\t\t\t\n\t\t\t\tif(T.equals(\"END_OF_TEXT\") )\tbreak;\n\t\t\t\t\n\t\t\t\tString[] t = T.toLowerCase().split(\" \");\n\t\t\t\tfor(String i:t) {\n\t\t\t\t\tif(i.equals(W)) {\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(cnt);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t}",
"try(Scanner sc = new Scanner(System.in)) {\n\t\t\tint cnt = 0;\n\t\t\tString W = sc.nextLine();\n\t\t\twhile(true) {\n\t\t\t\tString T = sc.nextLine();\n\t\t\t\t\n\t\t\t\tif(T.equals(\"END_OF_TEXT\") )\tbreak;\n\t\t\t\t\n\t\t\t\tString[] t = T.toLowerCase().split(\" \");\n\t\t\t\tfor(String i:t) {\n\t\t\t\t\tif(i.equals(W)) {\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(cnt);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}",
"{\n\t\t\tint cnt = 0;\n\t\t\tString W = sc.nextLine();\n\t\t\twhile(true) {\n\t\t\t\tString T = sc.nextLine();\n\t\t\t\t\n\t\t\t\tif(T.equals(\"END_OF_TEXT\") )\tbreak;\n\t\t\t\t\n\t\t\t\tString[] t = T.toLowerCase().split(\" \");\n\t\t\t\tfor(String i:t) {\n\t\t\t\t\tif(i.equals(W)) {\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(cnt);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"int cnt = 0;",
"cnt",
"0",
"String W = sc.nextLine();",
"W",
"sc.nextLine()",
"sc.nextLine",
"sc",
"while(true) {\n\t\t\t\tString T = sc.nextLine();\n\t\t\t\t\n\t\t\t\tif(T.equals(\"END_OF_TEXT\") )\tbreak;\n\t\t\t\t\n\t\t\t\tString[] t = T.toLowerCase().split(\" \");\n\t\t\t\tfor(String i:t) {\n\t\t\t\t\tif(i.equals(W)) {\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"true",
"{\n\t\t\t\tString T = sc.nextLine();\n\t\t\t\t\n\t\t\t\tif(T.equals(\"END_OF_TEXT\") )\tbreak;\n\t\t\t\t\n\t\t\t\tString[] t = T.toLowerCase().split(\" \");\n\t\t\t\tfor(String i:t) {\n\t\t\t\t\tif(i.equals(W)) {\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"String T = sc.nextLine();",
"T",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(T.equals(\"END_OF_TEXT\") )\tbreak;",
"T.equals(\"END_OF_TEXT\")",
"T.equals",
"T",
"\"END_OF_TEXT\"",
"break;",
"String[] t = T.toLowerCase().split(\" \");",
"t",
"T.toLowerCase().split(\" \")",
"T.toLowerCase().split",
"T.toLowerCase()",
"T.toLowerCase",
"T",
"\" \"",
"for(String i:t) {\n\t\t\t\t\tif(i.equals(W)) {\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\t\t\t\t}",
"String i",
"t",
"{\n\t\t\t\t\tif(i.equals(W)) {\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif(i.equals(W)) {\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\t\t\t\t}",
"if(i.equals(W)) {\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}",
"i.equals(W)",
"i.equals",
"i",
"W",
"{\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}",
"cnt++",
"cnt",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\tint cnt = 0;\n\t\t\tString W = sc.nextLine();\n\t\t\twhile(true) {\n\t\t\t\tString T = sc.nextLine();\n\t\t\t\t\n\t\t\t\tif(T.equals(\"END_OF_TEXT\") )\tbreak;\n\t\t\t\t\n\t\t\t\tString[] t = T.toLowerCase().split(\" \");\n\t\t\t\tfor(String i:t) {\n\t\t\t\t\tif(i.equals(W)) {\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(cnt);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\tint cnt = 0;\n\t\t\tString W = sc.nextLine();\n\t\t\twhile(true) {\n\t\t\t\tString T = sc.nextLine();\n\t\t\t\t\n\t\t\t\tif(T.equals(\"END_OF_TEXT\") )\tbreak;\n\t\t\t\t\n\t\t\t\tString[] t = T.toLowerCase().split(\" \");\n\t\t\t\tfor(String i:t) {\n\t\t\t\t\tif(i.equals(W)) {\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(cnt);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try(Scanner sc = new Scanner(System.in)) {
int cnt = 0;
String W = sc.nextLine();
while(true) {
String T = sc.nextLine();
if(T.equals("END_OF_TEXT") ) break;
String[] t = T.toLowerCase().split(" ");
for(String i:t) {
if(i.equals(W)) {
cnt++;
}
}
}
System.out.println(cnt);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
0,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
17,
42,
17,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
14,
4,
18,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
54,
8
],
[
8,
9
],
[
8,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
10,
21
],
[
21,
22
],
[
21,
23
],
[
10,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
26,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
32,
37
],
[
26,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
38,
43
],
[
43,
44
],
[
10,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
8,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static Scanner sc;\n\tpublic static void main(String[] args){\n\t\tsc=new Scanner(System.in);\n\t\tString W=sc.next(),T;\n\t\tint ans=0;\n\t\twhile(true){\n\t\t\tT=sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\"))break;\n\t\t\tif(T.equalsIgnoreCase(W))ans++;\n\t\t}\n\t\tSystem.out.println(ans);\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\tsc=new Scanner(System.in);\n\t\tString W=sc.next(),T;\n\t\tint ans=0;\n\t\twhile(true){\n\t\t\tT=sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\"))break;\n\t\t\tif(T.equalsIgnoreCase(W))ans++;\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n\n}",
"Main",
"public static Scanner sc;",
"sc",
"public static void main(String[] args){\n\t\tsc=new Scanner(System.in);\n\t\tString W=sc.next(),T;\n\t\tint ans=0;\n\t\twhile(true){\n\t\t\tT=sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\"))break;\n\t\t\tif(T.equalsIgnoreCase(W))ans++;\n\t\t}\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\t\tsc=new Scanner(System.in);\n\t\tString W=sc.next(),T;\n\t\tint ans=0;\n\t\twhile(true){\n\t\t\tT=sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\"))break;\n\t\t\tif(T.equalsIgnoreCase(W))ans++;\n\t\t}\n\t\tSystem.out.println(ans);\n\t}",
"sc=new Scanner(System.in)",
"sc",
"new Scanner(System.in)",
"String W=sc.next()",
"W",
"sc.next()",
"sc.next",
"sc",
"T;",
"T",
"int ans=0;",
"ans",
"0",
"while(true){\n\t\t\tT=sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\"))break;\n\t\t\tif(T.equalsIgnoreCase(W))ans++;\n\t\t}",
"true",
"{\n\t\t\tT=sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\"))break;\n\t\t\tif(T.equalsIgnoreCase(W))ans++;\n\t\t}",
"T=sc.next()",
"T",
"sc.next()",
"sc.next",
"sc",
"if(T.equals(\"END_OF_TEXT\"))break;",
"T.equals(\"END_OF_TEXT\")",
"T.equals",
"T",
"\"END_OF_TEXT\"",
"break;",
"if(T.equalsIgnoreCase(W))ans++;",
"T.equalsIgnoreCase(W)",
"T.equalsIgnoreCase",
"T",
"W",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\tpublic static Scanner sc;\n\tpublic static void main(String[] args){\n\t\tsc=new Scanner(System.in);\n\t\tString W=sc.next(),T;\n\t\tint ans=0;\n\t\twhile(true){\n\t\t\tT=sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\"))break;\n\t\t\tif(T.equalsIgnoreCase(W))ans++;\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n\n}",
"public class Main {\n\tpublic static Scanner sc;\n\tpublic static void main(String[] args){\n\t\tsc=new Scanner(System.in);\n\t\tString W=sc.next(),T;\n\t\tint ans=0;\n\t\twhile(true){\n\t\t\tT=sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\"))break;\n\t\t\tif(T.equalsIgnoreCase(W))ans++;\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static Scanner sc;
public static void main(String[] args){
sc=new Scanner(System.in);
String W=sc.next(),T;
int ans=0;
while(true){
T=sc.next();
if(T.equals("END_OF_TEXT"))break;
if(T.equalsIgnoreCase(W))ans++;
}
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
41,
13,
17,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
14,
4,
18,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
30,
35
],
[
24,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
36,
41
],
[
41,
42
],
[
8,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
6,
49
],
[
49,
50
]
]
| [
"import java.util.Scanner;\nclass Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String key = in.next().toLowerCase();\n int count = 0;\n while(true) {\n String input = in.next();\n if(input.equals(\"END_OF_TEXT\")) break;\n if(input.equalsIgnoreCase(key)) count++;\n }\n System.out.println(count);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String key = in.next().toLowerCase();\n int count = 0;\n while(true) {\n String input = in.next();\n if(input.equals(\"END_OF_TEXT\")) break;\n if(input.equalsIgnoreCase(key)) count++;\n }\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String key = in.next().toLowerCase();\n int count = 0;\n while(true) {\n String input = in.next();\n if(input.equals(\"END_OF_TEXT\")) break;\n if(input.equalsIgnoreCase(key)) count++;\n }\n System.out.println(count);\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n String key = in.next().toLowerCase();\n int count = 0;\n while(true) {\n String input = in.next();\n if(input.equals(\"END_OF_TEXT\")) break;\n if(input.equalsIgnoreCase(key)) count++;\n }\n System.out.println(count);\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"String key = in.next().toLowerCase();",
"key",
"in.next().toLowerCase()",
"in.next().toLowerCase",
"in.next()",
"in.next",
"in",
"int count = 0;",
"count",
"0",
"while(true) {\n String input = in.next();\n if(input.equals(\"END_OF_TEXT\")) break;\n if(input.equalsIgnoreCase(key)) count++;\n }",
"true",
"{\n String input = in.next();\n if(input.equals(\"END_OF_TEXT\")) break;\n if(input.equalsIgnoreCase(key)) count++;\n }",
"String input = in.next();",
"input",
"in.next()",
"in.next",
"in",
"if(input.equals(\"END_OF_TEXT\")) break;",
"input.equals(\"END_OF_TEXT\")",
"input.equals",
"input",
"\"END_OF_TEXT\"",
"break;",
"if(input.equalsIgnoreCase(key)) count++;",
"input.equalsIgnoreCase(key)",
"input.equalsIgnoreCase",
"input",
"key",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String key = in.next().toLowerCase();
int count = 0;
while(true) {
String input = in.next();
if(input.equals("END_OF_TEXT")) break;
if(input.equalsIgnoreCase(key)) count++;
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
17,
42,
40,
4,
18,
0,
13,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
84,
11
],
[
84,
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
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
14,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
30,
37
],
[
28,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
38,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
50,
60
],
[
60,
61
],
[
61,
62
],
[
50,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
65,
72
],
[
72,
73
],
[
73,
74
],
[
14,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
12,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString w = br.readLine();\n\t\tString line;\n\t\tint count = 0;\n\t\twhile(!(line = br.readLine()).equals(\"END_OF_TEXT\")){\n\t\t\tline = line.toLowerCase();\n\t\t\tString[] words = line.split(\" \");\n\t\t\tfor(int i = 0;i < words.length;i++){\n\t\t\t\tif(words[i].equals(w)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString w = br.readLine();\n\t\tString line;\n\t\tint count = 0;\n\t\twhile(!(line = br.readLine()).equals(\"END_OF_TEXT\")){\n\t\t\tline = line.toLowerCase();\n\t\t\tString[] words = line.split(\" \");\n\t\t\tfor(int i = 0;i < words.length;i++){\n\t\t\t\tif(words[i].equals(w)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString w = br.readLine();\n\t\tString line;\n\t\tint count = 0;\n\t\twhile(!(line = br.readLine()).equals(\"END_OF_TEXT\")){\n\t\t\tline = line.toLowerCase();\n\t\t\tString[] words = line.split(\" \");\n\t\t\tfor(int i = 0;i < words.length;i++){\n\t\t\t\tif(words[i].equals(w)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString w = br.readLine();\n\t\tString line;\n\t\tint count = 0;\n\t\twhile(!(line = br.readLine()).equals(\"END_OF_TEXT\")){\n\t\t\tline = line.toLowerCase();\n\t\t\tString[] words = line.split(\" \");\n\t\t\tfor(int i = 0;i < words.length;i++){\n\t\t\t\tif(words[i].equals(w)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String w = br.readLine();",
"w",
"br.readLine()",
"br.readLine",
"br",
"String line;",
"line",
"int count = 0;",
"count",
"0",
"while(!(line = br.readLine()).equals(\"END_OF_TEXT\")){\n\t\t\tline = line.toLowerCase();\n\t\t\tString[] words = line.split(\" \");\n\t\t\tfor(int i = 0;i < words.length;i++){\n\t\t\t\tif(words[i].equals(w)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"!(line = br.readLine()).equals(\"END_OF_TEXT\")",
"(line = br.readLine()).equals(\"END_OF_TEXT\")",
"(line = br.readLine()).equals",
"(line = br.readLine())",
"line",
"br.readLine()",
"br.readLine",
"br",
"\"END_OF_TEXT\"",
"{\n\t\t\tline = line.toLowerCase();\n\t\t\tString[] words = line.split(\" \");\n\t\t\tfor(int i = 0;i < words.length;i++){\n\t\t\t\tif(words[i].equals(w)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"line = line.toLowerCase()",
"line",
"line.toLowerCase()",
"line.toLowerCase",
"line",
"String[] words = line.split(\" \");",
"words",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"for(int i = 0;i < words.length;i++){\n\t\t\t\tif(words[i].equals(w)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < words.length",
"i",
"words.length",
"words",
"words.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(words[i].equals(w)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(words[i].equals(w)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}",
"if(words[i].equals(w)){\n\t\t\t\t\tcount++;\n\t\t\t\t}",
"words[i].equals(w)",
"words[i].equals",
"words[i]",
"words",
"i",
"w",
"{\n\t\t\t\t\tcount++;\n\t\t\t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString w = br.readLine();\n\t\tString line;\n\t\tint count = 0;\n\t\twhile(!(line = br.readLine()).equals(\"END_OF_TEXT\")){\n\t\t\tline = line.toLowerCase();\n\t\t\tString[] words = line.split(\" \");\n\t\t\tfor(int i = 0;i < words.length;i++){\n\t\t\t\tif(words[i].equals(w)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString w = br.readLine();\n\t\tString line;\n\t\tint count = 0;\n\t\twhile(!(line = br.readLine()).equals(\"END_OF_TEXT\")){\n\t\t\tline = line.toLowerCase();\n\t\t\tString[] words = line.split(\" \");\n\t\t\tfor(int i = 0;i < words.length;i++){\n\t\t\t\tif(words[i].equals(w)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String w = br.readLine();
String line;
int count = 0;
while(!(line = br.readLine()).equals("END_OF_TEXT")){
line = line.toLowerCase();
String[] words = line.split(" ");
for(int i = 0;i < words.length;i++){
if(words[i].equals(w)){
count++;
}
}
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
85,
5
],
[
85,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
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
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
29,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
52,
62
],
[
62,
63
],
[
63,
64
],
[
52,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
67,
74
],
[
74,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
6,
82
],
[
82,
83
],
[
0,
84
],
[
84,
85
],
[
84,
86
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString W = in.nextLine();\n\t\tW = W.toLowerCase();\n\t\tint ans = 0;\n\t\twhile(in.hasNext()) {\n\t\t\tString s = in.nextLine();\n\t\t\tif(s.equals(\"END_OF_TEXT\")) break;\n\t\t\ts = s.toLowerCase();\n\t\t\tString sp[] = s.split(\" \");\n\t\t\tfor(int i=0;i<sp.length;i++) {\n\t\t\t\tif(sp[i].equals(W)) ans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString W = in.nextLine();\n\t\tW = W.toLowerCase();\n\t\tint ans = 0;\n\t\twhile(in.hasNext()) {\n\t\t\tString s = in.nextLine();\n\t\t\tif(s.equals(\"END_OF_TEXT\")) break;\n\t\t\ts = s.toLowerCase();\n\t\t\tString sp[] = s.split(\" \");\n\t\t\tfor(int i=0;i<sp.length;i++) {\n\t\t\t\tif(sp[i].equals(W)) ans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString W = in.nextLine();\n\t\tW = W.toLowerCase();\n\t\tint ans = 0;\n\t\twhile(in.hasNext()) {\n\t\t\tString s = in.nextLine();\n\t\t\tif(s.equals(\"END_OF_TEXT\")) break;\n\t\t\ts = s.toLowerCase();\n\t\t\tString sp[] = s.split(\" \");\n\t\t\tfor(int i=0;i<sp.length;i++) {\n\t\t\t\tif(sp[i].equals(W)) ans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\t\tScanner in = new Scanner(System.in);\n\t\tString W = in.nextLine();\n\t\tW = W.toLowerCase();\n\t\tint ans = 0;\n\t\twhile(in.hasNext()) {\n\t\t\tString s = in.nextLine();\n\t\t\tif(s.equals(\"END_OF_TEXT\")) break;\n\t\t\ts = s.toLowerCase();\n\t\t\tString sp[] = s.split(\" \");\n\t\t\tfor(int i=0;i<sp.length;i++) {\n\t\t\t\tif(sp[i].equals(W)) ans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"String W = in.nextLine();",
"W",
"in.nextLine()",
"in.nextLine",
"in",
"W = W.toLowerCase()",
"W",
"W.toLowerCase()",
"W.toLowerCase",
"W",
"int ans = 0;",
"ans",
"0",
"while(in.hasNext()) {\n\t\t\tString s = in.nextLine();\n\t\t\tif(s.equals(\"END_OF_TEXT\")) break;\n\t\t\ts = s.toLowerCase();\n\t\t\tString sp[] = s.split(\" \");\n\t\t\tfor(int i=0;i<sp.length;i++) {\n\t\t\t\tif(sp[i].equals(W)) ans++;\n\t\t\t}\n\t\t}",
"in.hasNext()",
"in.hasNext",
"in",
"{\n\t\t\tString s = in.nextLine();\n\t\t\tif(s.equals(\"END_OF_TEXT\")) break;\n\t\t\ts = s.toLowerCase();\n\t\t\tString sp[] = s.split(\" \");\n\t\t\tfor(int i=0;i<sp.length;i++) {\n\t\t\t\tif(sp[i].equals(W)) ans++;\n\t\t\t}\n\t\t}",
"String s = in.nextLine();",
"s",
"in.nextLine()",
"in.nextLine",
"in",
"if(s.equals(\"END_OF_TEXT\")) break;",
"s.equals(\"END_OF_TEXT\")",
"s.equals",
"s",
"\"END_OF_TEXT\"",
"break;",
"s = s.toLowerCase()",
"s",
"s.toLowerCase()",
"s.toLowerCase",
"s",
"String sp[] = s.split(\" \");",
"sp",
"s.split(\" \")",
"s.split",
"s",
"\" \"",
"for(int i=0;i<sp.length;i++) {\n\t\t\t\tif(sp[i].equals(W)) ans++;\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<sp.length",
"i",
"sp.length",
"sp",
"sp.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(sp[i].equals(W)) ans++;\n\t\t\t}",
"{\n\t\t\t\tif(sp[i].equals(W)) ans++;\n\t\t\t}",
"if(sp[i].equals(W)) ans++;",
"sp[i].equals(W)",
"sp[i].equals",
"sp[i]",
"sp",
"i",
"W",
"ans++",
"ans",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString W = in.nextLine();\n\t\tW = W.toLowerCase();\n\t\tint ans = 0;\n\t\twhile(in.hasNext()) {\n\t\t\tString s = in.nextLine();\n\t\t\tif(s.equals(\"END_OF_TEXT\")) break;\n\t\t\ts = s.toLowerCase();\n\t\t\tString sp[] = s.split(\" \");\n\t\t\tfor(int i=0;i<sp.length;i++) {\n\t\t\t\tif(sp[i].equals(W)) ans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString W = in.nextLine();\n\t\tW = W.toLowerCase();\n\t\tint ans = 0;\n\t\twhile(in.hasNext()) {\n\t\t\tString s = in.nextLine();\n\t\t\tif(s.equals(\"END_OF_TEXT\")) break;\n\t\t\ts = s.toLowerCase();\n\t\t\tString sp[] = s.split(\" \");\n\t\t\tfor(int i=0;i<sp.length;i++) {\n\t\t\t\tif(sp[i].equals(W)) ans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String W = in.nextLine();
W = W.toLowerCase();
int ans = 0;
while(in.hasNext()) {
String s = in.nextLine();
if(s.equals("END_OF_TEXT")) break;
s = s.toLowerCase();
String sp[] = s.split(" ");
for(int i=0;i<sp.length;i++) {
if(sp[i].equals(W)) ans++;
}
}
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
17,
13,
3,
14,
4,
18,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
59,
5
],
[
59,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[
6,
15
],
[
15,
16
],
[
59,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
19,
28
],
[
28,
29
],
[
28,
30
],
[
19,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
33,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
39,
44
],
[
33,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
45,
50
],
[
50,
51
],
[
19,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
]
| [
"import java.util.*;\n\npublic class Main {\n \n public static void main(String[] args) {\n Main main = new Main();\n main.solv();\n }\n \n private void solv() {\n Scanner input = new Scanner(System.in);\n String W = input.next();\n int count = 0;\n while (true) {\n String T = input.next();\n if (\"END_OF_TEXT\".equals(T)) break;\n if (W.equalsIgnoreCase(T)) count++;\n }\n System.out.println(count);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n \n public static void main(String[] args) {\n Main main = new Main();\n main.solv();\n }\n \n private void solv() {\n Scanner input = new Scanner(System.in);\n String W = input.next();\n int count = 0;\n while (true) {\n String T = input.next();\n if (\"END_OF_TEXT\".equals(T)) break;\n if (W.equalsIgnoreCase(T)) count++;\n }\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args) {\n Main main = new Main();\n main.solv();\n }",
"main",
"{\n Main main = new Main();\n main.solv();\n }",
"Main main = new Main();",
"main",
"new Main()",
"main.solv()",
"main.solv",
"main",
"String[] args",
"args",
"private void solv() {\n Scanner input = new Scanner(System.in);\n String W = input.next();\n int count = 0;\n while (true) {\n String T = input.next();\n if (\"END_OF_TEXT\".equals(T)) break;\n if (W.equalsIgnoreCase(T)) count++;\n }\n System.out.println(count);\n }",
"solv",
"{\n Scanner input = new Scanner(System.in);\n String W = input.next();\n int count = 0;\n while (true) {\n String T = input.next();\n if (\"END_OF_TEXT\".equals(T)) break;\n if (W.equalsIgnoreCase(T)) count++;\n }\n System.out.println(count);\n }",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"String W = input.next();",
"W",
"input.next()",
"input.next",
"input",
"int count = 0;",
"count",
"0",
"while (true) {\n String T = input.next();\n if (\"END_OF_TEXT\".equals(T)) break;\n if (W.equalsIgnoreCase(T)) count++;\n }",
"true",
"{\n String T = input.next();\n if (\"END_OF_TEXT\".equals(T)) break;\n if (W.equalsIgnoreCase(T)) count++;\n }",
"String T = input.next();",
"T",
"input.next()",
"input.next",
"input",
"if (\"END_OF_TEXT\".equals(T)) break;",
"\"END_OF_TEXT\".equals(T)",
"\"END_OF_TEXT\".equals",
"\"END_OF_TEXT\"",
"T",
"break;",
"if (W.equalsIgnoreCase(T)) count++;",
"W.equalsIgnoreCase(T)",
"W.equalsIgnoreCase",
"W",
"T",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"public class Main {\n \n public static void main(String[] args) {\n Main main = new Main();\n main.solv();\n }\n \n private void solv() {\n Scanner input = new Scanner(System.in);\n String W = input.next();\n int count = 0;\n while (true) {\n String T = input.next();\n if (\"END_OF_TEXT\".equals(T)) break;\n if (W.equalsIgnoreCase(T)) count++;\n }\n System.out.println(count);\n }\n}",
"public class Main {\n \n public static void main(String[] args) {\n Main main = new Main();\n main.solv();\n }\n \n private void solv() {\n Scanner input = new Scanner(System.in);\n String W = input.next();\n int count = 0;\n while (true) {\n String T = input.next();\n if (\"END_OF_TEXT\".equals(T)) break;\n if (W.equalsIgnoreCase(T)) count++;\n }\n System.out.println(count);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Main main = new Main();
main.solv();
}
private void solv() {
Scanner input = new Scanner(System.in);
String W = input.next();
int count = 0;
while (true) {
String T = input.next();
if ("END_OF_TEXT".equals(T)) break;
if (W.equalsIgnoreCase(T)) count++;
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
41,
13,
17,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
13,
3,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
13,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
87,
8
],
[
87,
9
],
[
9,
10
],
[
9,
11
],
[
87,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
36,
41
],
[
30,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
30,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
30,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
53,
63
],
[
63,
64
],
[
64,
65
],
[
53,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
72,
74
],
[
68,
75
],
[
75,
76
],
[
76,
77
],
[
14,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
12,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
]
| [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tfinal static String EOF_STR = \"END_OF_TEXT\";\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String findStr = br.readLine().toLowerCase();\n\n\t int findCount = 0;\n\t while (true) {\n\t \tString line = br.readLine();\n\t \tif (EOF_STR.equals(line)) break;\n\n\t \tline = line.toLowerCase();\n\t \tString[] words = line.split(\" \");\n\t \tfor (int i = 0; i < words.length; i++) {\n\t \t\tif (findStr.equals(words[i])) {\n\t \t\t\tfindCount++;\n\t \t\t}\n\t \t}\n\t }\n System.out.println(findCount);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tfinal static String EOF_STR = \"END_OF_TEXT\";\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String findStr = br.readLine().toLowerCase();\n\n\t int findCount = 0;\n\t while (true) {\n\t \tString line = br.readLine();\n\t \tif (EOF_STR.equals(line)) break;\n\n\t \tline = line.toLowerCase();\n\t \tString[] words = line.split(\" \");\n\t \tfor (int i = 0; i < words.length; i++) {\n\t \t\tif (findStr.equals(words[i])) {\n\t \t\t\tfindCount++;\n\t \t\t}\n\t \t}\n\t }\n System.out.println(findCount);\n\t}\n}",
"Main",
"final static String EOF_STR = \"END_OF_TEXT\";",
"EOF_STR",
"\"END_OF_TEXT\"",
"public static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String findStr = br.readLine().toLowerCase();\n\n\t int findCount = 0;\n\t while (true) {\n\t \tString line = br.readLine();\n\t \tif (EOF_STR.equals(line)) break;\n\n\t \tline = line.toLowerCase();\n\t \tString[] words = line.split(\" \");\n\t \tfor (int i = 0; i < words.length; i++) {\n\t \t\tif (findStr.equals(words[i])) {\n\t \t\t\tfindCount++;\n\t \t\t}\n\t \t}\n\t }\n System.out.println(findCount);\n\t}",
"main",
"{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String findStr = br.readLine().toLowerCase();\n\n\t int findCount = 0;\n\t while (true) {\n\t \tString line = br.readLine();\n\t \tif (EOF_STR.equals(line)) break;\n\n\t \tline = line.toLowerCase();\n\t \tString[] words = line.split(\" \");\n\t \tfor (int i = 0; i < words.length; i++) {\n\t \t\tif (findStr.equals(words[i])) {\n\t \t\t\tfindCount++;\n\t \t\t}\n\t \t}\n\t }\n System.out.println(findCount);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String findStr = br.readLine().toLowerCase();",
"findStr",
"br.readLine().toLowerCase()",
"br.readLine().toLowerCase",
"br.readLine()",
"br.readLine",
"br",
"int findCount = 0;",
"findCount",
"0",
"while (true) {\n\t \tString line = br.readLine();\n\t \tif (EOF_STR.equals(line)) break;\n\n\t \tline = line.toLowerCase();\n\t \tString[] words = line.split(\" \");\n\t \tfor (int i = 0; i < words.length; i++) {\n\t \t\tif (findStr.equals(words[i])) {\n\t \t\t\tfindCount++;\n\t \t\t}\n\t \t}\n\t }",
"true",
"{\n\t \tString line = br.readLine();\n\t \tif (EOF_STR.equals(line)) break;\n\n\t \tline = line.toLowerCase();\n\t \tString[] words = line.split(\" \");\n\t \tfor (int i = 0; i < words.length; i++) {\n\t \t\tif (findStr.equals(words[i])) {\n\t \t\t\tfindCount++;\n\t \t\t}\n\t \t}\n\t }",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"if (EOF_STR.equals(line)) break;",
"EOF_STR.equals(line)",
"EOF_STR.equals",
"EOF_STR",
"line",
"break;",
"line = line.toLowerCase()",
"line",
"line.toLowerCase()",
"line.toLowerCase",
"line",
"String[] words = line.split(\" \");",
"words",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"for (int i = 0; i < words.length; i++) {\n\t \t\tif (findStr.equals(words[i])) {\n\t \t\t\tfindCount++;\n\t \t\t}\n\t \t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < words.length",
"i",
"words.length",
"words",
"words.length",
"i++",
"i++",
"i",
"{\n\t \t\tif (findStr.equals(words[i])) {\n\t \t\t\tfindCount++;\n\t \t\t}\n\t \t}",
"{\n\t \t\tif (findStr.equals(words[i])) {\n\t \t\t\tfindCount++;\n\t \t\t}\n\t \t}",
"if (findStr.equals(words[i])) {\n\t \t\t\tfindCount++;\n\t \t\t}",
"findStr.equals(words[i])",
"findStr.equals",
"findStr",
"words[i]",
"words",
"i",
"{\n\t \t\t\tfindCount++;\n\t \t\t}",
"findCount++",
"findCount",
"System.out.println(findCount)",
"System.out.println",
"System.out",
"System",
"System.out",
"findCount",
"String[] args",
"args",
"public class Main {\n\tfinal static String EOF_STR = \"END_OF_TEXT\";\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String findStr = br.readLine().toLowerCase();\n\n\t int findCount = 0;\n\t while (true) {\n\t \tString line = br.readLine();\n\t \tif (EOF_STR.equals(line)) break;\n\n\t \tline = line.toLowerCase();\n\t \tString[] words = line.split(\" \");\n\t \tfor (int i = 0; i < words.length; i++) {\n\t \t\tif (findStr.equals(words[i])) {\n\t \t\t\tfindCount++;\n\t \t\t}\n\t \t}\n\t }\n System.out.println(findCount);\n\t}\n}",
"public class Main {\n\tfinal static String EOF_STR = \"END_OF_TEXT\";\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t String findStr = br.readLine().toLowerCase();\n\n\t int findCount = 0;\n\t while (true) {\n\t \tString line = br.readLine();\n\t \tif (EOF_STR.equals(line)) break;\n\n\t \tline = line.toLowerCase();\n\t \tString[] words = line.split(\" \");\n\t \tfor (int i = 0; i < words.length; i++) {\n\t \t\tif (findStr.equals(words[i])) {\n\t \t\t\tfindCount++;\n\t \t\t}\n\t \t}\n\t }\n System.out.println(findCount);\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
final static String EOF_STR = "END_OF_TEXT";
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String findStr = br.readLine().toLowerCase();
int findCount = 0;
while (true) {
String line = br.readLine();
if (EOF_STR.equals(line)) break;
line = line.toLowerCase();
String[] words = line.split(" ");
for (int i = 0; i < words.length; i++) {
if (findStr.equals(words[i])) {
findCount++;
}
}
}
System.out.println(findCount);
}
} |
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
41,
13,
42,
17,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
0,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
76,
2
],
[
76,
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
],
[
5,
17
],
[
17,
18
],
[
5,
19
],
[
19,
20
],
[
5,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
23,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
29,
34
],
[
34,
35
],
[
23,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
23,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
42,
52
],
[
52,
53
],
[
53,
54
],
[
42,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
57,
64
],
[
64,
65
],
[
65,
66
],
[
5,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
3,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
]
| [
"public class Main {\n public static void main(String[] args) {\n\n // ??????????????????????????????.\n // ??¢?´¢????±???¨???????????????????????????.\n java.util.Scanner sc = new java.util.Scanner(System.in);\n String W = sc.next();\n\n // END_OF_TEXT ?????§?????????????????????.\n // ???????????????????????????????????????. ????????\\??? (????????????????????????) ?????????????????????????????????.\n // ???????????????????????¢?´¢????±???¨?????´??????????????????.\n int count = 0;\n String T;\n String[] word;\n while (true) {\n T = sc.nextLine();\n if (T.equals(\"END_OF_TEXT\")) { break; }\n word = T.split(\"[.,!\\\"?:... ]\");\n for (int i = 0; i < word.length; i ++) {\n if (word[i].equalsIgnoreCase(W)) { count ++; }\n }\n }\n System.out.println(count);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\n // ??????????????????????????????.\n // ??¢?´¢????±???¨???????????????????????????.\n java.util.Scanner sc = new java.util.Scanner(System.in);\n String W = sc.next();\n\n // END_OF_TEXT ?????§?????????????????????.\n // ???????????????????????????????????????. ????????\\??? (????????????????????????) ?????????????????????????????????.\n // ???????????????????????¢?´¢????±???¨?????´??????????????????.\n int count = 0;\n String T;\n String[] word;\n while (true) {\n T = sc.nextLine();\n if (T.equals(\"END_OF_TEXT\")) { break; }\n word = T.split(\"[.,!\\\"?:... ]\");\n for (int i = 0; i < word.length; i ++) {\n if (word[i].equalsIgnoreCase(W)) { count ++; }\n }\n }\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args) {\n\n // ??????????????????????????????.\n // ??¢?´¢????±???¨???????????????????????????.\n java.util.Scanner sc = new java.util.Scanner(System.in);\n String W = sc.next();\n\n // END_OF_TEXT ?????§?????????????????????.\n // ???????????????????????????????????????. ????????\\??? (????????????????????????) ?????????????????????????????????.\n // ???????????????????????¢?´¢????±???¨?????´??????????????????.\n int count = 0;\n String T;\n String[] word;\n while (true) {\n T = sc.nextLine();\n if (T.equals(\"END_OF_TEXT\")) { break; }\n word = T.split(\"[.,!\\\"?:... ]\");\n for (int i = 0; i < word.length; i ++) {\n if (word[i].equalsIgnoreCase(W)) { count ++; }\n }\n }\n System.out.println(count);\n }",
"main",
"{\n\n // ??????????????????????????????.\n // ??¢?´¢????±???¨???????????????????????????.\n java.util.Scanner sc = new java.util.Scanner(System.in);\n String W = sc.next();\n\n // END_OF_TEXT ?????§?????????????????????.\n // ???????????????????????????????????????. ????????\\??? (????????????????????????) ?????????????????????????????????.\n // ???????????????????????¢?´¢????±???¨?????´??????????????????.\n int count = 0;\n String T;\n String[] word;\n while (true) {\n T = sc.nextLine();\n if (T.equals(\"END_OF_TEXT\")) { break; }\n word = T.split(\"[.,!\\\"?:... ]\");\n for (int i = 0; i < word.length; i ++) {\n if (word[i].equalsIgnoreCase(W)) { count ++; }\n }\n }\n System.out.println(count);\n }",
"java.util.Scanner sc = new java.util.Scanner(System.in);",
"sc",
"new java.util.Scanner(System.in)",
"String W = sc.next();",
"W",
"sc.next()",
"sc.next",
"sc",
"int count = 0;",
"count",
"0",
"String T;",
"T",
"String[] word;",
"word",
"while (true) {\n T = sc.nextLine();\n if (T.equals(\"END_OF_TEXT\")) { break; }\n word = T.split(\"[.,!\\\"?:... ]\");\n for (int i = 0; i < word.length; i ++) {\n if (word[i].equalsIgnoreCase(W)) { count ++; }\n }\n }",
"true",
"{\n T = sc.nextLine();\n if (T.equals(\"END_OF_TEXT\")) { break; }\n word = T.split(\"[.,!\\\"?:... ]\");\n for (int i = 0; i < word.length; i ++) {\n if (word[i].equalsIgnoreCase(W)) { count ++; }\n }\n }",
"T = sc.nextLine()",
"T",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if (T.equals(\"END_OF_TEXT\")) { break; }",
"T.equals(\"END_OF_TEXT\")",
"T.equals",
"T",
"\"END_OF_TEXT\"",
"{ break; }",
"break;",
"word = T.split(\"[.,!\\\"?:... ]\")",
"word",
"T.split(\"[.,!\\\"?:... ]\")",
"T.split",
"T",
"\"[.,!\\\"?:... ]\"",
"for (int i = 0; i < word.length; i ++) {\n if (word[i].equalsIgnoreCase(W)) { count ++; }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < word.length",
"i",
"word.length",
"word",
"word.length",
"i ++",
"i ++",
"i",
"{\n if (word[i].equalsIgnoreCase(W)) { count ++; }\n }",
"{\n if (word[i].equalsIgnoreCase(W)) { count ++; }\n }",
"if (word[i].equalsIgnoreCase(W)) { count ++; }",
"word[i].equalsIgnoreCase(W)",
"word[i].equalsIgnoreCase",
"word[i]",
"word",
"i",
"W",
"{ count ++; }",
"count ++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n\n // ??????????????????????????????.\n // ??¢?´¢????±???¨???????????????????????????.\n java.util.Scanner sc = new java.util.Scanner(System.in);\n String W = sc.next();\n\n // END_OF_TEXT ?????§?????????????????????.\n // ???????????????????????????????????????. ????????\\??? (????????????????????????) ?????????????????????????????????.\n // ???????????????????????¢?´¢????±???¨?????´??????????????????.\n int count = 0;\n String T;\n String[] word;\n while (true) {\n T = sc.nextLine();\n if (T.equals(\"END_OF_TEXT\")) { break; }\n word = T.split(\"[.,!\\\"?:... ]\");\n for (int i = 0; i < word.length; i ++) {\n if (word[i].equalsIgnoreCase(W)) { count ++; }\n }\n }\n System.out.println(count);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\n // ??????????????????????????????.\n // ??¢?´¢????±???¨???????????????????????????.\n java.util.Scanner sc = new java.util.Scanner(System.in);\n String W = sc.next();\n\n // END_OF_TEXT ?????§?????????????????????.\n // ???????????????????????????????????????. ????????\\??? (????????????????????????) ?????????????????????????????????.\n // ???????????????????????¢?´¢????±???¨?????´??????????????????.\n int count = 0;\n String T;\n String[] word;\n while (true) {\n T = sc.nextLine();\n if (T.equals(\"END_OF_TEXT\")) { break; }\n word = T.split(\"[.,!\\\"?:... ]\");\n for (int i = 0; i < word.length; i ++) {\n if (word[i].equalsIgnoreCase(W)) { count ++; }\n }\n }\n System.out.println(count);\n }\n}",
"Main"
]
| public class Main {
public static void main(String[] args) {
// ??????????????????????????????.
// ??¢?´¢????±???¨???????????????????????????.
java.util.Scanner sc = new java.util.Scanner(System.in);
String W = sc.next();
// END_OF_TEXT ?????§?????????????????????.
// ???????????????????????????????????????. ????????\??? (????????????????????????) ?????????????????????????????????.
// ???????????????????????¢?´¢????±???¨?????´??????????????????.
int count = 0;
String T;
String[] word;
while (true) {
T = sc.nextLine();
if (T.equals("END_OF_TEXT")) { break; }
word = T.split("[.,!\"?:... ]");
for (int i = 0; i < word.length; i ++) {
if (word[i].equalsIgnoreCase(W)) { count ++; }
}
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
0,
13,
4,
18,
13,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
0,
13,
4,
18,
13,
14,
4,
18,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
63,
5
],
[
63,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
33,
38
],
[
27,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
27,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
44,
49
],
[
49,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
6,
60
],
[
60,
61
],
[
0,
62
],
[
62,
63
],
[
62,
64
]
]
| [
"import java.util.Scanner;\npublic class Main{\n public static void main(String[] args) throws Exception {\n \n Scanner sc = new Scanner(System.in);\n \n String W = sc.next();\n int count = 0;\n W = W.toUpperCase();\n \n \n while(true){\n String T = sc.next();\n if( T.equals( \"END_OF_TEXT\" ) )\n break;\n T = T.toUpperCase();\n if( T.equals(W))\n count++;\n }\n System.out.println(count);\n sc.close();\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args) throws Exception {\n \n Scanner sc = new Scanner(System.in);\n \n String W = sc.next();\n int count = 0;\n W = W.toUpperCase();\n \n \n while(true){\n String T = sc.next();\n if( T.equals( \"END_OF_TEXT\" ) )\n break;\n T = T.toUpperCase();\n if( T.equals(W))\n count++;\n }\n System.out.println(count);\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n \n Scanner sc = new Scanner(System.in);\n \n String W = sc.next();\n int count = 0;\n W = W.toUpperCase();\n \n \n while(true){\n String T = sc.next();\n if( T.equals( \"END_OF_TEXT\" ) )\n break;\n T = T.toUpperCase();\n if( T.equals(W))\n count++;\n }\n System.out.println(count);\n sc.close();\n }",
"main",
"{\n \n Scanner sc = new Scanner(System.in);\n \n String W = sc.next();\n int count = 0;\n W = W.toUpperCase();\n \n \n while(true){\n String T = sc.next();\n if( T.equals( \"END_OF_TEXT\" ) )\n break;\n T = T.toUpperCase();\n if( T.equals(W))\n count++;\n }\n System.out.println(count);\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String W = sc.next();",
"W",
"sc.next()",
"sc.next",
"sc",
"int count = 0;",
"count",
"0",
"W = W.toUpperCase()",
"W",
"W.toUpperCase()",
"W.toUpperCase",
"W",
"while(true){\n String T = sc.next();\n if( T.equals( \"END_OF_TEXT\" ) )\n break;\n T = T.toUpperCase();\n if( T.equals(W))\n count++;\n }",
"true",
"{\n String T = sc.next();\n if( T.equals( \"END_OF_TEXT\" ) )\n break;\n T = T.toUpperCase();\n if( T.equals(W))\n count++;\n }",
"String T = sc.next();",
"T",
"sc.next()",
"sc.next",
"sc",
"if( T.equals( \"END_OF_TEXT\" ) )\n break;",
"T.equals( \"END_OF_TEXT\" )",
"T.equals",
"T",
"\"END_OF_TEXT\"",
"break;",
"T = T.toUpperCase()",
"T",
"T.toUpperCase()",
"T.toUpperCase",
"T",
"if( T.equals(W))\n count++;",
"T.equals(W)",
"T.equals",
"T",
"W",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) throws Exception {\n \n Scanner sc = new Scanner(System.in);\n \n String W = sc.next();\n int count = 0;\n W = W.toUpperCase();\n \n \n while(true){\n String T = sc.next();\n if( T.equals( \"END_OF_TEXT\" ) )\n break;\n T = T.toUpperCase();\n if( T.equals(W))\n count++;\n }\n System.out.println(count);\n sc.close();\n }\n}",
"public class Main{\n public static void main(String[] args) throws Exception {\n \n Scanner sc = new Scanner(System.in);\n \n String W = sc.next();\n int count = 0;\n W = W.toUpperCase();\n \n \n while(true){\n String T = sc.next();\n if( T.equals( \"END_OF_TEXT\" ) )\n break;\n T = T.toUpperCase();\n if( T.equals(W))\n count++;\n }\n System.out.println(count);\n sc.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
String W = sc.next();
int count = 0;
W = W.toUpperCase();
while(true){
String T = sc.next();
if( T.equals( "END_OF_TEXT" ) )
break;
T = T.toUpperCase();
if( T.equals(W))
count++;
}
System.out.println(count);
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
18,
13,
13,
41,
13,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
4,
18,
13,
30,
40,
13,
14,
4,
18,
13,
17,
30,
3,
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
],
[
74,
11
],
[
74,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
25,
29
],
[
29,
30
],
[
29,
31
],
[
14,
32
],
[
32,
33
],
[
32,
34
],
[
14,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
35,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
39,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
39,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
58,
63
],
[
63,
64
],
[
14,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
12,
71
],
[
71,
72
],
[
0,
73
],
[
73,
74
],
[
73,
75
]
]
| [
"\nimport java.util.Scanner;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString strCheck = sc.nextLine();\n\n\t\tPattern p = Pattern.compile(strCheck, Pattern.CASE_INSENSITIVE);\n\n\n\t\tint Count = 0;\n\t\twhile(sc.hasNext()) {\n\n\t\t\tString strS = sc.next();\n\t\t\tMatcher m = p.matcher(strS);\n\n\t\t\tif(m.matches()) {\n\t\t\t\t//System.out.println(\"????????????????????????\");\n\t\t\t\tCount++;\n\t\t\t}\n\t\t\tif(strS.equals(\"END_OF_TEXT\")) {\n\t\t\t\t//System.out.println(\"??????????????????\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(Count);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.regex.Matcher;",
"Matcher",
"java.util.regex",
"import java.util.regex.Pattern;",
"Pattern",
"java.util.regex",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString strCheck = sc.nextLine();\n\n\t\tPattern p = Pattern.compile(strCheck, Pattern.CASE_INSENSITIVE);\n\n\n\t\tint Count = 0;\n\t\twhile(sc.hasNext()) {\n\n\t\t\tString strS = sc.next();\n\t\t\tMatcher m = p.matcher(strS);\n\n\t\t\tif(m.matches()) {\n\t\t\t\t//System.out.println(\"????????????????????????\");\n\t\t\t\tCount++;\n\t\t\t}\n\t\t\tif(strS.equals(\"END_OF_TEXT\")) {\n\t\t\t\t//System.out.println(\"??????????????????\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(Count);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString strCheck = sc.nextLine();\n\n\t\tPattern p = Pattern.compile(strCheck, Pattern.CASE_INSENSITIVE);\n\n\n\t\tint Count = 0;\n\t\twhile(sc.hasNext()) {\n\n\t\t\tString strS = sc.next();\n\t\t\tMatcher m = p.matcher(strS);\n\n\t\t\tif(m.matches()) {\n\t\t\t\t//System.out.println(\"????????????????????????\");\n\t\t\t\tCount++;\n\t\t\t}\n\t\t\tif(strS.equals(\"END_OF_TEXT\")) {\n\t\t\t\t//System.out.println(\"??????????????????\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(Count);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString strCheck = sc.nextLine();\n\n\t\tPattern p = Pattern.compile(strCheck, Pattern.CASE_INSENSITIVE);\n\n\n\t\tint Count = 0;\n\t\twhile(sc.hasNext()) {\n\n\t\t\tString strS = sc.next();\n\t\t\tMatcher m = p.matcher(strS);\n\n\t\t\tif(m.matches()) {\n\t\t\t\t//System.out.println(\"????????????????????????\");\n\t\t\t\tCount++;\n\t\t\t}\n\t\t\tif(strS.equals(\"END_OF_TEXT\")) {\n\t\t\t\t//System.out.println(\"??????????????????\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(Count);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String strCheck = sc.nextLine();",
"strCheck",
"sc.nextLine()",
"sc.nextLine",
"sc",
"Pattern p = Pattern.compile(strCheck, Pattern.CASE_INSENSITIVE);",
"p",
"Pattern.compile(strCheck, Pattern.CASE_INSENSITIVE)",
"Pattern.compile",
"Pattern",
"strCheck",
"Pattern.CASE_INSENSITIVE",
"Pattern",
"Pattern.CASE_INSENSITIVE",
"int Count = 0;",
"Count",
"0",
"while(sc.hasNext()) {\n\n\t\t\tString strS = sc.next();\n\t\t\tMatcher m = p.matcher(strS);\n\n\t\t\tif(m.matches()) {\n\t\t\t\t//System.out.println(\"????????????????????????\");\n\t\t\t\tCount++;\n\t\t\t}\n\t\t\tif(strS.equals(\"END_OF_TEXT\")) {\n\t\t\t\t//System.out.println(\"??????????????????\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\n\t\t\tString strS = sc.next();\n\t\t\tMatcher m = p.matcher(strS);\n\n\t\t\tif(m.matches()) {\n\t\t\t\t//System.out.println(\"????????????????????????\");\n\t\t\t\tCount++;\n\t\t\t}\n\t\t\tif(strS.equals(\"END_OF_TEXT\")) {\n\t\t\t\t//System.out.println(\"??????????????????\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"String strS = sc.next();",
"strS",
"sc.next()",
"sc.next",
"sc",
"Matcher m = p.matcher(strS);",
"m",
"p.matcher(strS)",
"p.matcher",
"p",
"strS",
"if(m.matches()) {\n\t\t\t\t//System.out.println(\"????????????????????????\");\n\t\t\t\tCount++;\n\t\t\t}",
"m.matches()",
"m.matches",
"m",
"{\n\t\t\t\t//System.out.println(\"????????????????????????\");\n\t\t\t\tCount++;\n\t\t\t}",
"Count++",
"Count",
"if(strS.equals(\"END_OF_TEXT\")) {\n\t\t\t\t//System.out.println(\"??????????????????\");\n\t\t\t\tbreak;\n\t\t\t}",
"strS.equals(\"END_OF_TEXT\")",
"strS.equals",
"strS",
"\"END_OF_TEXT\"",
"{\n\t\t\t\t//System.out.println(\"??????????????????\");\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"System.out.println(Count)",
"System.out.println",
"System.out",
"System",
"System.out",
"Count",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString strCheck = sc.nextLine();\n\n\t\tPattern p = Pattern.compile(strCheck, Pattern.CASE_INSENSITIVE);\n\n\n\t\tint Count = 0;\n\t\twhile(sc.hasNext()) {\n\n\t\t\tString strS = sc.next();\n\t\t\tMatcher m = p.matcher(strS);\n\n\t\t\tif(m.matches()) {\n\t\t\t\t//System.out.println(\"????????????????????????\");\n\t\t\t\tCount++;\n\t\t\t}\n\t\t\tif(strS.equals(\"END_OF_TEXT\")) {\n\t\t\t\t//System.out.println(\"??????????????????\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(Count);\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString strCheck = sc.nextLine();\n\n\t\tPattern p = Pattern.compile(strCheck, Pattern.CASE_INSENSITIVE);\n\n\n\t\tint Count = 0;\n\t\twhile(sc.hasNext()) {\n\n\t\t\tString strS = sc.next();\n\t\t\tMatcher m = p.matcher(strS);\n\n\t\t\tif(m.matches()) {\n\t\t\t\t//System.out.println(\"????????????????????????\");\n\t\t\t\tCount++;\n\t\t\t}\n\t\t\tif(strS.equals(\"END_OF_TEXT\")) {\n\t\t\t\t//System.out.println(\"??????????????????\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(Count);\n\t}\n}",
"Main"
]
|
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String strCheck = sc.nextLine();
Pattern p = Pattern.compile(strCheck, Pattern.CASE_INSENSITIVE);
int Count = 0;
while(sc.hasNext()) {
String strS = sc.next();
Matcher m = p.matcher(strS);
if(m.matches()) {
//System.out.println("????????????????????????");
Count++;
}
if(strS.equals("END_OF_TEXT")) {
//System.out.println("??????????????????");
break;
}
}
System.out.println(Count);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
42,
40,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
17,
0,
13,
4,
13,
13,
13,
0,
13,
4,
18,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
17,
28,
13,
13,
30,
30,
14,
4,
18,
4,
18,
13,
13,
30,
40,
13,
29,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
87,
5
],
[
87,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
33,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
42,
45
],
[
33,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
6,
57
],
[
57,
58
],
[
87,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
65,
67
],
[
65,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
71,
76
],
[
70,
77
],
[
77,
78
],
[
78,
79
],
[
61,
80
],
[
80,
81
],
[
59,
82
],
[
82,
83
],
[
59,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString w = sc.nextLine().toUpperCase();\n\t\tString t = sc.nextLine();\n\t\tint w_count = 0;\n\n\t\twhile(!t.equals(\"END_OF_TEXT\")){\n\t\t String t_array[] = t.split(\" \");\n\t\t w_count += seek_word_in_w(w, t_array);\n\t\t t = sc.nextLine();\n\t\t}\n\t\t\n\t\tSystem.out.println(w_count);\n\t}\n\t\n\tpublic static int seek_word_in_w(String w, String []t_array){\n\t int w_count = 0;\n\t \n\t for (String t_word: t_array){\n\t if (t_word.toUpperCase().equals(w)){\n\t w_count++;\n\t } \n\t }\n\t \n\t return w_count;\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString w = sc.nextLine().toUpperCase();\n\t\tString t = sc.nextLine();\n\t\tint w_count = 0;\n\n\t\twhile(!t.equals(\"END_OF_TEXT\")){\n\t\t String t_array[] = t.split(\" \");\n\t\t w_count += seek_word_in_w(w, t_array);\n\t\t t = sc.nextLine();\n\t\t}\n\t\t\n\t\tSystem.out.println(w_count);\n\t}\n\t\n\tpublic static int seek_word_in_w(String w, String []t_array){\n\t int w_count = 0;\n\t \n\t for (String t_word: t_array){\n\t if (t_word.toUpperCase().equals(w)){\n\t w_count++;\n\t } \n\t }\n\t \n\t return w_count;\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString w = sc.nextLine().toUpperCase();\n\t\tString t = sc.nextLine();\n\t\tint w_count = 0;\n\n\t\twhile(!t.equals(\"END_OF_TEXT\")){\n\t\t String t_array[] = t.split(\" \");\n\t\t w_count += seek_word_in_w(w, t_array);\n\t\t t = sc.nextLine();\n\t\t}\n\t\t\n\t\tSystem.out.println(w_count);\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString w = sc.nextLine().toUpperCase();\n\t\tString t = sc.nextLine();\n\t\tint w_count = 0;\n\n\t\twhile(!t.equals(\"END_OF_TEXT\")){\n\t\t String t_array[] = t.split(\" \");\n\t\t w_count += seek_word_in_w(w, t_array);\n\t\t t = sc.nextLine();\n\t\t}\n\t\t\n\t\tSystem.out.println(w_count);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String w = sc.nextLine().toUpperCase();",
"w",
"sc.nextLine().toUpperCase()",
"sc.nextLine().toUpperCase",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String t = sc.nextLine();",
"t",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int w_count = 0;",
"w_count",
"0",
"while(!t.equals(\"END_OF_TEXT\")){\n\t\t String t_array[] = t.split(\" \");\n\t\t w_count += seek_word_in_w(w, t_array);\n\t\t t = sc.nextLine();\n\t\t}",
"!t.equals(\"END_OF_TEXT\")",
"t.equals(\"END_OF_TEXT\")",
"t.equals",
"t",
"\"END_OF_TEXT\"",
"{\n\t\t String t_array[] = t.split(\" \");\n\t\t w_count += seek_word_in_w(w, t_array);\n\t\t t = sc.nextLine();\n\t\t}",
"String t_array[] = t.split(\" \");",
"t_array",
"t.split(\" \")",
"t.split",
"t",
"\" \"",
"w_count += seek_word_in_w(w, t_array)",
"w_count",
"seek_word_in_w(w, t_array)",
"seek_word_in_w",
"w",
"t_array",
"t = sc.nextLine()",
"t",
"sc.nextLine()",
"sc.nextLine",
"sc",
"System.out.println(w_count)",
"System.out.println",
"System.out",
"System",
"System.out",
"w_count",
"String[] args",
"args",
"public static int seek_word_in_w(String w, String []t_array){\n\t int w_count = 0;\n\t \n\t for (String t_word: t_array){\n\t if (t_word.toUpperCase().equals(w)){\n\t w_count++;\n\t } \n\t }\n\t \n\t return w_count;\n\t}",
"seek_word_in_w",
"{\n\t int w_count = 0;\n\t \n\t for (String t_word: t_array){\n\t if (t_word.toUpperCase().equals(w)){\n\t w_count++;\n\t } \n\t }\n\t \n\t return w_count;\n\t}",
"int w_count = 0;",
"w_count",
"0",
"for (String t_word: t_array){\n\t if (t_word.toUpperCase().equals(w)){\n\t w_count++;\n\t } \n\t }",
"String t_word",
"t_array",
"{\n\t if (t_word.toUpperCase().equals(w)){\n\t w_count++;\n\t } \n\t }",
"{\n\t if (t_word.toUpperCase().equals(w)){\n\t w_count++;\n\t } \n\t }",
"if (t_word.toUpperCase().equals(w)){\n\t w_count++;\n\t }",
"t_word.toUpperCase().equals(w)",
"t_word.toUpperCase().equals",
"t_word.toUpperCase()",
"t_word.toUpperCase",
"t_word",
"w",
"{\n\t w_count++;\n\t }",
"w_count++",
"w_count",
"return w_count;",
"w_count",
"String w",
"w",
"String []t_array",
"t_array",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString w = sc.nextLine().toUpperCase();\n\t\tString t = sc.nextLine();\n\t\tint w_count = 0;\n\n\t\twhile(!t.equals(\"END_OF_TEXT\")){\n\t\t String t_array[] = t.split(\" \");\n\t\t w_count += seek_word_in_w(w, t_array);\n\t\t t = sc.nextLine();\n\t\t}\n\t\t\n\t\tSystem.out.println(w_count);\n\t}\n\t\n\tpublic static int seek_word_in_w(String w, String []t_array){\n\t int w_count = 0;\n\t \n\t for (String t_word: t_array){\n\t if (t_word.toUpperCase().equals(w)){\n\t w_count++;\n\t } \n\t }\n\t \n\t return w_count;\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString w = sc.nextLine().toUpperCase();\n\t\tString t = sc.nextLine();\n\t\tint w_count = 0;\n\n\t\twhile(!t.equals(\"END_OF_TEXT\")){\n\t\t String t_array[] = t.split(\" \");\n\t\t w_count += seek_word_in_w(w, t_array);\n\t\t t = sc.nextLine();\n\t\t}\n\t\t\n\t\tSystem.out.println(w_count);\n\t}\n\t\n\tpublic static int seek_word_in_w(String w, String []t_array){\n\t int w_count = 0;\n\t \n\t for (String t_word: t_array){\n\t if (t_word.toUpperCase().equals(w)){\n\t w_count++;\n\t } \n\t }\n\t \n\t return w_count;\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
String w = sc.nextLine().toUpperCase();
String t = sc.nextLine();
int w_count = 0;
while(!t.equals("END_OF_TEXT")){
String t_array[] = t.split(" ");
w_count += seek_word_in_w(w, t_array);
t = sc.nextLine();
}
System.out.println(w_count);
}
public static int seek_word_in_w(String w, String []t_array){
int w_count = 0;
for (String t_word: t_array){
if (t_word.toUpperCase().equals(w)){
w_count++;
}
}
return w_count;
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
42,
2,
13,
17,
30,
0,
13,
17,
0,
13,
13,
0,
13,
4,
18,
13,
0,
13,
13,
0,
13,
4,
18,
13,
41,
13,
20,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
14,
2,
4,
18,
13,
4,
18,
13,
30,
9,
30,
14,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
116,
11
],
[
116,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
14,
24
],
[
24,
25
],
[
24,
26
],
[
14,
27
],
[
27,
28
],
[
27,
29
],
[
14,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
30,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
40,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
59,
61
],
[
55,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
14,
67
],
[
67,
68
],
[
67,
69
],
[
14,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
14,
75
],
[
75,
76
],
[
75,
77
],
[
14,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
78,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
82,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
89,
93
],
[
93,
94
],
[
94,
95
],
[
88,
96
],
[
96,
97
],
[
88,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
99,
104
],
[
104,
105
],
[
105,
106
],
[
14,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
12,
113
],
[
113,
114
],
[
0,
115
],
[
115,
116
],
[
115,
117
]
]
| [
"import java.util.Scanner;\nimport java.util.*;\nimport java.io.*;\n\npublic class Main{\n\tpublic static void main(String [] args){\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in),1200);\n\t\tString w = \"\";\n\t\tString work = \"\";\n\t\tString input = \"\";\n\t\tint count = 0;\n\t\ttry{\n\t\t\tw = r.readLine();\n\t\t\tinput = r.readLine();\n\t\t\twhile(input != null){\n\t\t\t\twork += \" \";\n\t\t\t\twork += input;\n\t\t\t\tinput = r.readLine();\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t//System.out.println(\"w:\"+w);\n\t\t//System.out.println(\"wcount:\"+w.length());\n\t\tinput = work;\n\t\tinput = input.toLowerCase();\n\t\t//System.out.println(input);\n\t\tStringTokenizer st = new StringTokenizer(input,\" \");\n\t\twhile(st.hasMoreTokens()){\n\t\t\twork = st.nextToken();\n\t\t\tif(work.length() < w.length()){\n\t\t\t\t\tcontinue;\n\t\t\t}else{\n\t\t\t\t/*for(int i = 0; i < work.length() - (w.length() - 1); i++){\n\t\t\t\t\tif(w.equals(work.substring(i,i + w.length()))){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t//i = i + w.length() - 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t\tif(w.equals(work)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(count);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n\tpublic static void main(String [] args){\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in),1200);\n\t\tString w = \"\";\n\t\tString work = \"\";\n\t\tString input = \"\";\n\t\tint count = 0;\n\t\ttry{\n\t\t\tw = r.readLine();\n\t\t\tinput = r.readLine();\n\t\t\twhile(input != null){\n\t\t\t\twork += \" \";\n\t\t\t\twork += input;\n\t\t\t\tinput = r.readLine();\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t//System.out.println(\"w:\"+w);\n\t\t//System.out.println(\"wcount:\"+w.length());\n\t\tinput = work;\n\t\tinput = input.toLowerCase();\n\t\t//System.out.println(input);\n\t\tStringTokenizer st = new StringTokenizer(input,\" \");\n\t\twhile(st.hasMoreTokens()){\n\t\t\twork = st.nextToken();\n\t\t\tif(work.length() < w.length()){\n\t\t\t\t\tcontinue;\n\t\t\t}else{\n\t\t\t\t/*for(int i = 0; i < work.length() - (w.length() - 1); i++){\n\t\t\t\t\tif(w.equals(work.substring(i,i + w.length()))){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t//i = i + w.length() - 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t\tif(w.equals(work)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(count);\n\t}\n}",
"Main",
"public static void main(String [] args){\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in),1200);\n\t\tString w = \"\";\n\t\tString work = \"\";\n\t\tString input = \"\";\n\t\tint count = 0;\n\t\ttry{\n\t\t\tw = r.readLine();\n\t\t\tinput = r.readLine();\n\t\t\twhile(input != null){\n\t\t\t\twork += \" \";\n\t\t\t\twork += input;\n\t\t\t\tinput = r.readLine();\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t//System.out.println(\"w:\"+w);\n\t\t//System.out.println(\"wcount:\"+w.length());\n\t\tinput = work;\n\t\tinput = input.toLowerCase();\n\t\t//System.out.println(input);\n\t\tStringTokenizer st = new StringTokenizer(input,\" \");\n\t\twhile(st.hasMoreTokens()){\n\t\t\twork = st.nextToken();\n\t\t\tif(work.length() < w.length()){\n\t\t\t\t\tcontinue;\n\t\t\t}else{\n\t\t\t\t/*for(int i = 0; i < work.length() - (w.length() - 1); i++){\n\t\t\t\t\tif(w.equals(work.substring(i,i + w.length()))){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t//i = i + w.length() - 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t\tif(w.equals(work)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in),1200);\n\t\tString w = \"\";\n\t\tString work = \"\";\n\t\tString input = \"\";\n\t\tint count = 0;\n\t\ttry{\n\t\t\tw = r.readLine();\n\t\t\tinput = r.readLine();\n\t\t\twhile(input != null){\n\t\t\t\twork += \" \";\n\t\t\t\twork += input;\n\t\t\t\tinput = r.readLine();\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t//System.out.println(\"w:\"+w);\n\t\t//System.out.println(\"wcount:\"+w.length());\n\t\tinput = work;\n\t\tinput = input.toLowerCase();\n\t\t//System.out.println(input);\n\t\tStringTokenizer st = new StringTokenizer(input,\" \");\n\t\twhile(st.hasMoreTokens()){\n\t\t\twork = st.nextToken();\n\t\t\tif(work.length() < w.length()){\n\t\t\t\t\tcontinue;\n\t\t\t}else{\n\t\t\t\t/*for(int i = 0; i < work.length() - (w.length() - 1); i++){\n\t\t\t\t\tif(w.equals(work.substring(i,i + w.length()))){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t//i = i + w.length() - 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t\tif(w.equals(work)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(count);\n\t}",
"BufferedReader r = new BufferedReader(new InputStreamReader(System.in),1200);",
"r",
"new BufferedReader(new InputStreamReader(System.in),1200)",
"String w = \"\";",
"w",
"\"\"",
"String work = \"\";",
"work",
"\"\"",
"String input = \"\";",
"input",
"\"\"",
"int count = 0;",
"count",
"0",
"try{\n\t\t\tw = r.readLine();\n\t\t\tinput = r.readLine();\n\t\t\twhile(input != null){\n\t\t\t\twork += \" \";\n\t\t\t\twork += input;\n\t\t\t\tinput = r.readLine();\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}",
"catch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}",
"Exception e",
"{\n\t\t\tSystem.out.println(e);\n\t\t}",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n\t\t\tw = r.readLine();\n\t\t\tinput = r.readLine();\n\t\t\twhile(input != null){\n\t\t\t\twork += \" \";\n\t\t\t\twork += input;\n\t\t\t\tinput = r.readLine();\n\t\t\t}\n\t\t}",
"w = r.readLine()",
"w",
"r.readLine()",
"r.readLine",
"r",
"input = r.readLine()",
"input",
"r.readLine()",
"r.readLine",
"r",
"while(input != null){\n\t\t\t\twork += \" \";\n\t\t\t\twork += input;\n\t\t\t\tinput = r.readLine();\n\t\t\t}",
"input != null",
"input",
"null",
"{\n\t\t\t\twork += \" \";\n\t\t\t\twork += input;\n\t\t\t\tinput = r.readLine();\n\t\t\t}",
"work += \" \"",
"work",
"\" \"",
"work += input",
"work",
"input",
"input = r.readLine()",
"input",
"r.readLine()",
"r.readLine",
"r",
"input = work",
"input",
"work",
"input = input.toLowerCase()",
"input",
"input.toLowerCase()",
"input.toLowerCase",
"input",
"StringTokenizer st = new StringTokenizer(input,\" \");",
"st",
"new StringTokenizer(input,\" \")",
"while(st.hasMoreTokens()){\n\t\t\twork = st.nextToken();\n\t\t\tif(work.length() < w.length()){\n\t\t\t\t\tcontinue;\n\t\t\t}else{\n\t\t\t\t/*for(int i = 0; i < work.length() - (w.length() - 1); i++){\n\t\t\t\t\tif(w.equals(work.substring(i,i + w.length()))){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t//i = i + w.length() - 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t\tif(w.equals(work)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n\t\t\twork = st.nextToken();\n\t\t\tif(work.length() < w.length()){\n\t\t\t\t\tcontinue;\n\t\t\t}else{\n\t\t\t\t/*for(int i = 0; i < work.length() - (w.length() - 1); i++){\n\t\t\t\t\tif(w.equals(work.substring(i,i + w.length()))){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t//i = i + w.length() - 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t\tif(w.equals(work)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"work = st.nextToken()",
"work",
"st.nextToken()",
"st.nextToken",
"st",
"if(work.length() < w.length()){\n\t\t\t\t\tcontinue;\n\t\t\t}else{\n\t\t\t\t/*for(int i = 0; i < work.length() - (w.length() - 1); i++){\n\t\t\t\t\tif(w.equals(work.substring(i,i + w.length()))){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t//i = i + w.length() - 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t\tif(w.equals(work)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}",
"work.length() < w.length()",
"work.length()",
"work.length",
"work",
"w.length()",
"w.length",
"w",
"{\n\t\t\t\t\tcontinue;\n\t\t\t}",
"continue;",
"{\n\t\t\t\t/*for(int i = 0; i < work.length() - (w.length() - 1); i++){\n\t\t\t\t\tif(w.equals(work.substring(i,i + w.length()))){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t//i = i + w.length() - 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t\tif(w.equals(work)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}",
"if(w.equals(work)){\n\t\t\t\t\tcount++;\n\t\t\t\t}",
"w.equals(work)",
"w.equals",
"w",
"work",
"{\n\t\t\t\t\tcount++;\n\t\t\t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String [] args",
"args",
"public class Main{\n\tpublic static void main(String [] args){\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in),1200);\n\t\tString w = \"\";\n\t\tString work = \"\";\n\t\tString input = \"\";\n\t\tint count = 0;\n\t\ttry{\n\t\t\tw = r.readLine();\n\t\t\tinput = r.readLine();\n\t\t\twhile(input != null){\n\t\t\t\twork += \" \";\n\t\t\t\twork += input;\n\t\t\t\tinput = r.readLine();\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t//System.out.println(\"w:\"+w);\n\t\t//System.out.println(\"wcount:\"+w.length());\n\t\tinput = work;\n\t\tinput = input.toLowerCase();\n\t\t//System.out.println(input);\n\t\tStringTokenizer st = new StringTokenizer(input,\" \");\n\t\twhile(st.hasMoreTokens()){\n\t\t\twork = st.nextToken();\n\t\t\tif(work.length() < w.length()){\n\t\t\t\t\tcontinue;\n\t\t\t}else{\n\t\t\t\t/*for(int i = 0; i < work.length() - (w.length() - 1); i++){\n\t\t\t\t\tif(w.equals(work.substring(i,i + w.length()))){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t//i = i + w.length() - 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t\tif(w.equals(work)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(count);\n\t}\n}",
"public class Main{\n\tpublic static void main(String [] args){\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in),1200);\n\t\tString w = \"\";\n\t\tString work = \"\";\n\t\tString input = \"\";\n\t\tint count = 0;\n\t\ttry{\n\t\t\tw = r.readLine();\n\t\t\tinput = r.readLine();\n\t\t\twhile(input != null){\n\t\t\t\twork += \" \";\n\t\t\t\twork += input;\n\t\t\t\tinput = r.readLine();\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t//System.out.println(\"w:\"+w);\n\t\t//System.out.println(\"wcount:\"+w.length());\n\t\tinput = work;\n\t\tinput = input.toLowerCase();\n\t\t//System.out.println(input);\n\t\tStringTokenizer st = new StringTokenizer(input,\" \");\n\t\twhile(st.hasMoreTokens()){\n\t\t\twork = st.nextToken();\n\t\t\tif(work.length() < w.length()){\n\t\t\t\t\tcontinue;\n\t\t\t}else{\n\t\t\t\t/*for(int i = 0; i < work.length() - (w.length() - 1); i++){\n\t\t\t\t\tif(w.equals(work.substring(i,i + w.length()))){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t//i = i + w.length() - 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t\tif(w.equals(work)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(count);\n\t}\n}",
"Main"
]
| import java.util.Scanner;
import java.util.*;
import java.io.*;
public class Main{
public static void main(String [] args){
BufferedReader r = new BufferedReader(new InputStreamReader(System.in),1200);
String w = "";
String work = "";
String input = "";
int count = 0;
try{
w = r.readLine();
input = r.readLine();
while(input != null){
work += " ";
work += input;
input = r.readLine();
}
}catch(Exception e){
System.out.println(e);
}
//System.out.println("w:"+w);
//System.out.println("wcount:"+w.length());
input = work;
input = input.toLowerCase();
//System.out.println(input);
StringTokenizer st = new StringTokenizer(input," ");
while(st.hasMoreTokens()){
work = st.nextToken();
if(work.length() < w.length()){
continue;
}else{
/*for(int i = 0; i < work.length() - (w.length() - 1); i++){
if(w.equals(work.substring(i,i + w.length()))){
count++;
break;
//i = i + w.length() - 1;
}
}
*/
if(w.equals(work)){
count++;
}
}
}
System.out.println(count);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
4,
18,
13,
41,
13,
17,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
0,
13,
2,
17,
4,
18,
13,
0,
13,
4,
18,
13,
17,
17,
0,
13,
4,
18,
13,
17,
17,
41,
13,
4,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
117,
11
],
[
117,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
18,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
28,
36
],
[
36,
37
],
[
36,
38
],
[
28,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
41,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
28,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
62,
66
],
[
28,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
69,
73
],
[
28,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
28,
80
],
[
80,
81
],
[
80,
82
],
[
28,
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
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
98,
105
],
[
105,
106
],
[
106,
107
],
[
28,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
12,
114
],
[
114,
115
],
[
0,
116
],
[
116,
117
],
[
116,
118
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\n\npublic class Main{\n\tpublic static void main(String[] args){\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry{\n\t\t\tString W=reader.readLine().toLowerCase();\n\t\t\tString text=\"\";\n\n\t\twhile(true){\n\t\tString p=reader.readLine();\n\t\tif(p.equals(\"END_OF_TEXT\"))break;\n\t\ttext+=\" \"+p.toLowerCase();\n\t\t}\n\n\n\t\ttext=text.replaceAll(\"\\\\.\", \" \");\n\t\ttext=text.replaceAll(\"\\\\n\", \" \");\n\n\t\tString[] array_text=text.split(\" \");\n\t\tint count=0;\n\t\tfor(int i=0;i<array_text.length;i++){\n\t\t\tif(array_text[i].equals(W)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t\t//split??§??????.???????????????????????¨?????????????????????????????????\n\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.print(e);\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){\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry{\n\t\t\tString W=reader.readLine().toLowerCase();\n\t\t\tString text=\"\";\n\n\t\twhile(true){\n\t\tString p=reader.readLine();\n\t\tif(p.equals(\"END_OF_TEXT\"))break;\n\t\ttext+=\" \"+p.toLowerCase();\n\t\t}\n\n\n\t\ttext=text.replaceAll(\"\\\\.\", \" \");\n\t\ttext=text.replaceAll(\"\\\\n\", \" \");\n\n\t\tString[] array_text=text.split(\" \");\n\t\tint count=0;\n\t\tfor(int i=0;i<array_text.length;i++){\n\t\t\tif(array_text[i].equals(W)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t\t//split??§??????.???????????????????????¨?????????????????????????????????\n\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.print(e);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args){\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry{\n\t\t\tString W=reader.readLine().toLowerCase();\n\t\t\tString text=\"\";\n\n\t\twhile(true){\n\t\tString p=reader.readLine();\n\t\tif(p.equals(\"END_OF_TEXT\"))break;\n\t\ttext+=\" \"+p.toLowerCase();\n\t\t}\n\n\n\t\ttext=text.replaceAll(\"\\\\.\", \" \");\n\t\ttext=text.replaceAll(\"\\\\n\", \" \");\n\n\t\tString[] array_text=text.split(\" \");\n\t\tint count=0;\n\t\tfor(int i=0;i<array_text.length;i++){\n\t\t\tif(array_text[i].equals(W)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t\t//split??§??????.???????????????????????¨?????????????????????????????????\n\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.print(e);\n\t\t}\n\t}",
"main",
"{\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry{\n\t\t\tString W=reader.readLine().toLowerCase();\n\t\t\tString text=\"\";\n\n\t\twhile(true){\n\t\tString p=reader.readLine();\n\t\tif(p.equals(\"END_OF_TEXT\"))break;\n\t\ttext+=\" \"+p.toLowerCase();\n\t\t}\n\n\n\t\ttext=text.replaceAll(\"\\\\.\", \" \");\n\t\ttext=text.replaceAll(\"\\\\n\", \" \");\n\n\t\tString[] array_text=text.split(\" \");\n\t\tint count=0;\n\t\tfor(int i=0;i<array_text.length;i++){\n\t\t\tif(array_text[i].equals(W)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t\t//split??§??????.???????????????????????¨?????????????????????????????????\n\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.print(e);\n\t\t}\n\t}",
"BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"try{\n\t\t\tString W=reader.readLine().toLowerCase();\n\t\t\tString text=\"\";\n\n\t\twhile(true){\n\t\tString p=reader.readLine();\n\t\tif(p.equals(\"END_OF_TEXT\"))break;\n\t\ttext+=\" \"+p.toLowerCase();\n\t\t}\n\n\n\t\ttext=text.replaceAll(\"\\\\.\", \" \");\n\t\ttext=text.replaceAll(\"\\\\n\", \" \");\n\n\t\tString[] array_text=text.split(\" \");\n\t\tint count=0;\n\t\tfor(int i=0;i<array_text.length;i++){\n\t\t\tif(array_text[i].equals(W)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t\t//split??§??????.???????????????????????¨?????????????????????????????????\n\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.print(e);\n\t\t}",
"catch(IOException e){\n\t\t\tSystem.out.print(e);\n\t\t}",
"IOException e",
"{\n\t\t\tSystem.out.print(e);\n\t\t}",
"System.out.print(e)",
"System.out.print",
"System.out",
"System",
"System.out",
"e",
"{\n\t\t\tString W=reader.readLine().toLowerCase();\n\t\t\tString text=\"\";\n\n\t\twhile(true){\n\t\tString p=reader.readLine();\n\t\tif(p.equals(\"END_OF_TEXT\"))break;\n\t\ttext+=\" \"+p.toLowerCase();\n\t\t}\n\n\n\t\ttext=text.replaceAll(\"\\\\.\", \" \");\n\t\ttext=text.replaceAll(\"\\\\n\", \" \");\n\n\t\tString[] array_text=text.split(\" \");\n\t\tint count=0;\n\t\tfor(int i=0;i<array_text.length;i++){\n\t\t\tif(array_text[i].equals(W)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t\t//split??§??????.???????????????????????¨?????????????????????????????????\n\n\n\t\t}",
"String W=reader.readLine().toLowerCase();",
"W",
"reader.readLine().toLowerCase()",
"reader.readLine().toLowerCase",
"reader.readLine()",
"reader.readLine",
"reader",
"String text=\"\";",
"text",
"\"\"",
"while(true){\n\t\tString p=reader.readLine();\n\t\tif(p.equals(\"END_OF_TEXT\"))break;\n\t\ttext+=\" \"+p.toLowerCase();\n\t\t}",
"true",
"{\n\t\tString p=reader.readLine();\n\t\tif(p.equals(\"END_OF_TEXT\"))break;\n\t\ttext+=\" \"+p.toLowerCase();\n\t\t}",
"String p=reader.readLine();",
"p",
"reader.readLine()",
"reader.readLine",
"reader",
"if(p.equals(\"END_OF_TEXT\"))break;",
"p.equals(\"END_OF_TEXT\")",
"p.equals",
"p",
"\"END_OF_TEXT\"",
"break;",
"text+=\" \"+p.toLowerCase()",
"text",
"\" \"+p.toLowerCase()",
"\" \"",
"p.toLowerCase()",
"p.toLowerCase",
"p",
"text=text.replaceAll(\"\\\\.\", \" \")",
"text",
"text.replaceAll(\"\\\\.\", \" \")",
"text.replaceAll",
"text",
"\"\\\\.\"",
"\" \"",
"text=text.replaceAll(\"\\\\n\", \" \")",
"text",
"text.replaceAll(\"\\\\n\", \" \")",
"text.replaceAll",
"text",
"\"\\\\n\"",
"\" \"",
"String[] array_text=text.split(\" \");",
"array_text",
"text.split(\" \")",
"text.split",
"text",
"\" \"",
"int count=0;",
"count",
"0",
"for(int i=0;i<array_text.length;i++){\n\t\t\tif(array_text[i].equals(W)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<array_text.length",
"i",
"array_text.length",
"array_text",
"array_text.length",
"i++",
"i++",
"i",
"{\n\t\t\tif(array_text[i].equals(W)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(array_text[i].equals(W)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"if(array_text[i].equals(W)){\n\t\t\t\tcount++;\n\t\t\t}",
"array_text[i].equals(W)",
"array_text[i].equals",
"array_text[i]",
"array_text",
"i",
"W",
"{\n\t\t\t\tcount++;\n\t\t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry{\n\t\t\tString W=reader.readLine().toLowerCase();\n\t\t\tString text=\"\";\n\n\t\twhile(true){\n\t\tString p=reader.readLine();\n\t\tif(p.equals(\"END_OF_TEXT\"))break;\n\t\ttext+=\" \"+p.toLowerCase();\n\t\t}\n\n\n\t\ttext=text.replaceAll(\"\\\\.\", \" \");\n\t\ttext=text.replaceAll(\"\\\\n\", \" \");\n\n\t\tString[] array_text=text.split(\" \");\n\t\tint count=0;\n\t\tfor(int i=0;i<array_text.length;i++){\n\t\t\tif(array_text[i].equals(W)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t\t//split??§??????.???????????????????????¨?????????????????????????????????\n\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.print(e);\n\t\t}\n\t}\n\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry{\n\t\t\tString W=reader.readLine().toLowerCase();\n\t\t\tString text=\"\";\n\n\t\twhile(true){\n\t\tString p=reader.readLine();\n\t\tif(p.equals(\"END_OF_TEXT\"))break;\n\t\ttext+=\" \"+p.toLowerCase();\n\t\t}\n\n\n\t\ttext=text.replaceAll(\"\\\\.\", \" \");\n\t\ttext=text.replaceAll(\"\\\\n\", \" \");\n\n\t\tString[] array_text=text.split(\" \");\n\t\tint count=0;\n\t\tfor(int i=0;i<array_text.length;i++){\n\t\t\tif(array_text[i].equals(W)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(count);\n\t\t//split??§??????.???????????????????????¨?????????????????????????????????\n\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.print(e);\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){
BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
try{
String W=reader.readLine().toLowerCase();
String text="";
while(true){
String p=reader.readLine();
if(p.equals("END_OF_TEXT"))break;
text+=" "+p.toLowerCase();
}
text=text.replaceAll("\\.", " ");
text=text.replaceAll("\\n", " ");
String[] array_text=text.split(" ");
int count=0;
for(int i=0;i<array_text.length;i++){
if(array_text[i].equals(W)){
count++;
}
}
System.out.println(count);
//split??§??????.???????????????????????¨?????????????????????????????????
}catch(IOException e){
System.out.print(e);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
42,
17,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
13,
14,
4,
18,
17,
13,
30,
3,
30,
4,
18,
13,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
13,
17,
30,
0,
13,
4,
18,
13,
13,
0,
13,
4,
18,
13,
30,
0,
13,
4,
18,
13,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
18,
13,
13,
4,
18,
13,
30,
41,
13,
4,
18,
18,
13,
13,
13,
14,
2,
40,
17,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
164,
14
],
[
164,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
27,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
43,
48
],
[
48,
49
],
[
43,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
17,
55
],
[
55,
56
],
[
55,
57
],
[
17,
58
],
[
58,
59
],
[
58,
60
],
[
17,
61
],
[
61,
62
],
[
61,
63
],
[
17,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
64,
74
],
[
74,
75
],
[
75,
76
],
[
64,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
83,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
79,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
95,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
95,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
95,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
120,
122
],
[
113,
123
],
[
123,
124
],
[
124,
125
],
[
113,
126
],
[
127,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
129,
135
],
[
135,
136
],
[
136,
137
],
[
128,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
141,
146
],
[
138,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
148,
151
],
[
147,
152
],
[
152,
153
],
[
153,
154
],
[
17,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
155,
160
],
[
15,
161
],
[
161,
162
],
[
0,
163
],
[
163,
164
],
[
163,
165
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\twhile(true){\n\t\t\ttry{\n\n\t\t\t\tString strScan = insBR.readLine();\n\n\n\t\t\t\tif(\"END_OF_TEXT\".equals(strScan)){\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\tlist.add(strScan);\n\t\t\t\t}\n\n\n\t\t\t}catch(IOException e){\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\n\t\t}\n\n\n\t\t//????´¢?????????????????????????????°\n\t\tString strFindLine = null;\n\t\t//????????\\???????????????????????°\n\t\tString strLine = null;\n\n\t\t//????´¢?????????????????????????????????????????°\n\t\tint intCount = 0;\n\t\tfor(int i = 0; i < list.size(); i++){\n\t\t\t//????´¢??????????????????\n\t\t\tif(i == 0){\n\t\t\t\t//list???0??????\n\t\t\t\tstrFindLine = list.get(i);\n\t\t\t\tstrFindLine = strFindLine.toLowerCase();\n\t\t\t}else{\n\t\t\t\t//list1????????\\???\n\t\t\t\tstrLine = list.get(i);\n\t\t\t\tstrLine = strLine.toLowerCase();\n\t\t\t\t//1??????????????§??????????????????????´?\n\t\t\t\tString[] ary = strLine.split(\" \");\n\t\t\t\t//1????????????????????¨????????´????????????????????????\n\t\t\t\tfor(int j = 0; j < ary.length; j++){\n\t\t\t\t\t//ary[]???????????¨findLine???????????°???????????????????´¢\n\t\t\t\t\tif(ary[j].length() == strFindLine.length()){\n\n\t\t\t\t\t\tint intJudge = ary[j].indexOf(strFindLine);\n\n\t\t\t\t\t\tif(-1 < intJudge){\n\t\t\t\t\t\t\tintCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tSystem.out.println( intCount);\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",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\twhile(true){\n\t\t\ttry{\n\n\t\t\t\tString strScan = insBR.readLine();\n\n\n\t\t\t\tif(\"END_OF_TEXT\".equals(strScan)){\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\tlist.add(strScan);\n\t\t\t\t}\n\n\n\t\t\t}catch(IOException e){\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\n\t\t}\n\n\n\t\t//????´¢?????????????????????????????°\n\t\tString strFindLine = null;\n\t\t//????????\\???????????????????????°\n\t\tString strLine = null;\n\n\t\t//????´¢?????????????????????????????????????????°\n\t\tint intCount = 0;\n\t\tfor(int i = 0; i < list.size(); i++){\n\t\t\t//????´¢??????????????????\n\t\t\tif(i == 0){\n\t\t\t\t//list???0??????\n\t\t\t\tstrFindLine = list.get(i);\n\t\t\t\tstrFindLine = strFindLine.toLowerCase();\n\t\t\t}else{\n\t\t\t\t//list1????????\\???\n\t\t\t\tstrLine = list.get(i);\n\t\t\t\tstrLine = strLine.toLowerCase();\n\t\t\t\t//1??????????????§??????????????????????´?\n\t\t\t\tString[] ary = strLine.split(\" \");\n\t\t\t\t//1????????????????????¨????????´????????????????????????\n\t\t\t\tfor(int j = 0; j < ary.length; j++){\n\t\t\t\t\t//ary[]???????????¨findLine???????????°???????????????????´¢\n\t\t\t\t\tif(ary[j].length() == strFindLine.length()){\n\n\t\t\t\t\t\tint intJudge = ary[j].indexOf(strFindLine);\n\n\t\t\t\t\t\tif(-1 < intJudge){\n\t\t\t\t\t\t\tintCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tSystem.out.println( intCount);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\twhile(true){\n\t\t\ttry{\n\n\t\t\t\tString strScan = insBR.readLine();\n\n\n\t\t\t\tif(\"END_OF_TEXT\".equals(strScan)){\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\tlist.add(strScan);\n\t\t\t\t}\n\n\n\t\t\t}catch(IOException e){\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\n\t\t}\n\n\n\t\t//????´¢?????????????????????????????°\n\t\tString strFindLine = null;\n\t\t//????????\\???????????????????????°\n\t\tString strLine = null;\n\n\t\t//????´¢?????????????????????????????????????????°\n\t\tint intCount = 0;\n\t\tfor(int i = 0; i < list.size(); i++){\n\t\t\t//????´¢??????????????????\n\t\t\tif(i == 0){\n\t\t\t\t//list???0??????\n\t\t\t\tstrFindLine = list.get(i);\n\t\t\t\tstrFindLine = strFindLine.toLowerCase();\n\t\t\t}else{\n\t\t\t\t//list1????????\\???\n\t\t\t\tstrLine = list.get(i);\n\t\t\t\tstrLine = strLine.toLowerCase();\n\t\t\t\t//1??????????????§??????????????????????´?\n\t\t\t\tString[] ary = strLine.split(\" \");\n\t\t\t\t//1????????????????????¨????????´????????????????????????\n\t\t\t\tfor(int j = 0; j < ary.length; j++){\n\t\t\t\t\t//ary[]???????????¨findLine???????????°???????????????????´¢\n\t\t\t\t\tif(ary[j].length() == strFindLine.length()){\n\n\t\t\t\t\t\tint intJudge = ary[j].indexOf(strFindLine);\n\n\t\t\t\t\t\tif(-1 < intJudge){\n\t\t\t\t\t\t\tintCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tSystem.out.println( intCount);\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\twhile(true){\n\t\t\ttry{\n\n\t\t\t\tString strScan = insBR.readLine();\n\n\n\t\t\t\tif(\"END_OF_TEXT\".equals(strScan)){\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\tlist.add(strScan);\n\t\t\t\t}\n\n\n\t\t\t}catch(IOException e){\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\n\t\t}\n\n\n\t\t//????´¢?????????????????????????????°\n\t\tString strFindLine = null;\n\t\t//????????\\???????????????????????°\n\t\tString strLine = null;\n\n\t\t//????´¢?????????????????????????????????????????°\n\t\tint intCount = 0;\n\t\tfor(int i = 0; i < list.size(); i++){\n\t\t\t//????´¢??????????????????\n\t\t\tif(i == 0){\n\t\t\t\t//list???0??????\n\t\t\t\tstrFindLine = list.get(i);\n\t\t\t\tstrFindLine = strFindLine.toLowerCase();\n\t\t\t}else{\n\t\t\t\t//list1????????\\???\n\t\t\t\tstrLine = list.get(i);\n\t\t\t\tstrLine = strLine.toLowerCase();\n\t\t\t\t//1??????????????§??????????????????????´?\n\t\t\t\tString[] ary = strLine.split(\" \");\n\t\t\t\t//1????????????????????¨????????´????????????????????????\n\t\t\t\tfor(int j = 0; j < ary.length; j++){\n\t\t\t\t\t//ary[]???????????¨findLine???????????°???????????????????´¢\n\t\t\t\t\tif(ary[j].length() == strFindLine.length()){\n\n\t\t\t\t\t\tint intJudge = ary[j].indexOf(strFindLine);\n\n\t\t\t\t\t\tif(-1 < intJudge){\n\t\t\t\t\t\t\tintCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tSystem.out.println( intCount);\n\t}",
"BufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));",
"insBR",
"new BufferedReader(new InputStreamReader(System.in))",
"ArrayList<String> list = new ArrayList<String>();",
"list",
"new ArrayList<String>()",
"while(true){\n\t\t\ttry{\n\n\t\t\t\tString strScan = insBR.readLine();\n\n\n\t\t\t\tif(\"END_OF_TEXT\".equals(strScan)){\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\tlist.add(strScan);\n\t\t\t\t}\n\n\n\t\t\t}catch(IOException e){\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\n\t\t}",
"true",
"{\n\t\t\ttry{\n\n\t\t\t\tString strScan = insBR.readLine();\n\n\n\t\t\t\tif(\"END_OF_TEXT\".equals(strScan)){\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\tlist.add(strScan);\n\t\t\t\t}\n\n\n\t\t\t}catch(IOException e){\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\n\t\t}",
"try{\n\n\t\t\t\tString strScan = insBR.readLine();\n\n\n\t\t\t\tif(\"END_OF_TEXT\".equals(strScan)){\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\tlist.add(strScan);\n\t\t\t\t}\n\n\n\t\t\t}catch(IOException e){\n\t\t\t\tSystem.out.println(e);\n\t\t\t}",
"catch(IOException e){\n\t\t\t\tSystem.out.println(e);\n\t\t\t}",
"IOException e",
"{\n\t\t\t\tSystem.out.println(e);\n\t\t\t}",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n\n\t\t\t\tString strScan = insBR.readLine();\n\n\n\t\t\t\tif(\"END_OF_TEXT\".equals(strScan)){\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\tlist.add(strScan);\n\t\t\t\t}\n\n\n\t\t\t}",
"String strScan = insBR.readLine();",
"strScan",
"insBR.readLine()",
"insBR.readLine",
"insBR",
"if(\"END_OF_TEXT\".equals(strScan)){\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\tlist.add(strScan);\n\t\t\t\t}",
"\"END_OF_TEXT\".equals(strScan)",
"\"END_OF_TEXT\".equals",
"\"END_OF_TEXT\"",
"strScan",
"{\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"break;",
"{\n\t\t\t\t\tlist.add(strScan);\n\t\t\t\t}",
"list.add(strScan)",
"list.add",
"list",
"strScan",
"String strFindLine = null;",
"strFindLine",
"null",
"String strLine = null;",
"strLine",
"null",
"int intCount = 0;",
"intCount",
"0",
"for(int i = 0; i < list.size(); i++){\n\t\t\t//????´¢??????????????????\n\t\t\tif(i == 0){\n\t\t\t\t//list???0??????\n\t\t\t\tstrFindLine = list.get(i);\n\t\t\t\tstrFindLine = strFindLine.toLowerCase();\n\t\t\t}else{\n\t\t\t\t//list1????????\\???\n\t\t\t\tstrLine = list.get(i);\n\t\t\t\tstrLine = strLine.toLowerCase();\n\t\t\t\t//1??????????????§??????????????????????´?\n\t\t\t\tString[] ary = strLine.split(\" \");\n\t\t\t\t//1????????????????????¨????????´????????????????????????\n\t\t\t\tfor(int j = 0; j < ary.length; j++){\n\t\t\t\t\t//ary[]???????????¨findLine???????????°???????????????????´¢\n\t\t\t\t\tif(ary[j].length() == strFindLine.length()){\n\n\t\t\t\t\t\tint intJudge = ary[j].indexOf(strFindLine);\n\n\t\t\t\t\t\tif(-1 < intJudge){\n\t\t\t\t\t\t\tintCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < list.size()",
"i",
"list.size()",
"list.size",
"list",
"i++",
"i++",
"i",
"{\n\t\t\t//????´¢??????????????????\n\t\t\tif(i == 0){\n\t\t\t\t//list???0??????\n\t\t\t\tstrFindLine = list.get(i);\n\t\t\t\tstrFindLine = strFindLine.toLowerCase();\n\t\t\t}else{\n\t\t\t\t//list1????????\\???\n\t\t\t\tstrLine = list.get(i);\n\t\t\t\tstrLine = strLine.toLowerCase();\n\t\t\t\t//1??????????????§??????????????????????´?\n\t\t\t\tString[] ary = strLine.split(\" \");\n\t\t\t\t//1????????????????????¨????????´????????????????????????\n\t\t\t\tfor(int j = 0; j < ary.length; j++){\n\t\t\t\t\t//ary[]???????????¨findLine???????????°???????????????????´¢\n\t\t\t\t\tif(ary[j].length() == strFindLine.length()){\n\n\t\t\t\t\t\tint intJudge = ary[j].indexOf(strFindLine);\n\n\t\t\t\t\t\tif(-1 < intJudge){\n\t\t\t\t\t\t\tintCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"{\n\t\t\t//????´¢??????????????????\n\t\t\tif(i == 0){\n\t\t\t\t//list???0??????\n\t\t\t\tstrFindLine = list.get(i);\n\t\t\t\tstrFindLine = strFindLine.toLowerCase();\n\t\t\t}else{\n\t\t\t\t//list1????????\\???\n\t\t\t\tstrLine = list.get(i);\n\t\t\t\tstrLine = strLine.toLowerCase();\n\t\t\t\t//1??????????????§??????????????????????´?\n\t\t\t\tString[] ary = strLine.split(\" \");\n\t\t\t\t//1????????????????????¨????????´????????????????????????\n\t\t\t\tfor(int j = 0; j < ary.length; j++){\n\t\t\t\t\t//ary[]???????????¨findLine???????????°???????????????????´¢\n\t\t\t\t\tif(ary[j].length() == strFindLine.length()){\n\n\t\t\t\t\t\tint intJudge = ary[j].indexOf(strFindLine);\n\n\t\t\t\t\t\tif(-1 < intJudge){\n\t\t\t\t\t\t\tintCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"if(i == 0){\n\t\t\t\t//list???0??????\n\t\t\t\tstrFindLine = list.get(i);\n\t\t\t\tstrFindLine = strFindLine.toLowerCase();\n\t\t\t}else{\n\t\t\t\t//list1????????\\???\n\t\t\t\tstrLine = list.get(i);\n\t\t\t\tstrLine = strLine.toLowerCase();\n\t\t\t\t//1??????????????§??????????????????????´?\n\t\t\t\tString[] ary = strLine.split(\" \");\n\t\t\t\t//1????????????????????¨????????´????????????????????????\n\t\t\t\tfor(int j = 0; j < ary.length; j++){\n\t\t\t\t\t//ary[]???????????¨findLine???????????°???????????????????´¢\n\t\t\t\t\tif(ary[j].length() == strFindLine.length()){\n\n\t\t\t\t\t\tint intJudge = ary[j].indexOf(strFindLine);\n\n\t\t\t\t\t\tif(-1 < intJudge){\n\t\t\t\t\t\t\tintCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}",
"i == 0",
"i",
"0",
"{\n\t\t\t\t//list???0??????\n\t\t\t\tstrFindLine = list.get(i);\n\t\t\t\tstrFindLine = strFindLine.toLowerCase();\n\t\t\t}",
"strFindLine = list.get(i)",
"strFindLine",
"list.get(i)",
"list.get",
"list",
"i",
"strFindLine = strFindLine.toLowerCase()",
"strFindLine",
"strFindLine.toLowerCase()",
"strFindLine.toLowerCase",
"strFindLine",
"{\n\t\t\t\t//list1????????\\???\n\t\t\t\tstrLine = list.get(i);\n\t\t\t\tstrLine = strLine.toLowerCase();\n\t\t\t\t//1??????????????§??????????????????????´?\n\t\t\t\tString[] ary = strLine.split(\" \");\n\t\t\t\t//1????????????????????¨????????´????????????????????????\n\t\t\t\tfor(int j = 0; j < ary.length; j++){\n\t\t\t\t\t//ary[]???????????¨findLine???????????°???????????????????´¢\n\t\t\t\t\tif(ary[j].length() == strFindLine.length()){\n\n\t\t\t\t\t\tint intJudge = ary[j].indexOf(strFindLine);\n\n\t\t\t\t\t\tif(-1 < intJudge){\n\t\t\t\t\t\t\tintCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}",
"strLine = list.get(i)",
"strLine",
"list.get(i)",
"list.get",
"list",
"i",
"strLine = strLine.toLowerCase()",
"strLine",
"strLine.toLowerCase()",
"strLine.toLowerCase",
"strLine",
"String[] ary = strLine.split(\" \");",
"ary",
"strLine.split(\" \")",
"strLine.split",
"strLine",
"\" \"",
"for(int j = 0; j < ary.length; j++){\n\t\t\t\t\t//ary[]???????????¨findLine???????????°???????????????????´¢\n\t\t\t\t\tif(ary[j].length() == strFindLine.length()){\n\n\t\t\t\t\t\tint intJudge = ary[j].indexOf(strFindLine);\n\n\t\t\t\t\t\tif(-1 < intJudge){\n\t\t\t\t\t\t\tintCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < ary.length",
"j",
"ary.length",
"ary",
"ary.length",
"j++",
"j++",
"j",
"{\n\t\t\t\t\t//ary[]???????????¨findLine???????????°???????????????????´¢\n\t\t\t\t\tif(ary[j].length() == strFindLine.length()){\n\n\t\t\t\t\t\tint intJudge = ary[j].indexOf(strFindLine);\n\n\t\t\t\t\t\tif(-1 < intJudge){\n\t\t\t\t\t\t\tintCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\t//ary[]???????????¨findLine???????????°???????????????????´¢\n\t\t\t\t\tif(ary[j].length() == strFindLine.length()){\n\n\t\t\t\t\t\tint intJudge = ary[j].indexOf(strFindLine);\n\n\t\t\t\t\t\tif(-1 < intJudge){\n\t\t\t\t\t\t\tintCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"if(ary[j].length() == strFindLine.length()){\n\n\t\t\t\t\t\tint intJudge = ary[j].indexOf(strFindLine);\n\n\t\t\t\t\t\tif(-1 < intJudge){\n\t\t\t\t\t\t\tintCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"ary[j].length() == strFindLine.length()",
"ary[j].length()",
"ary[j].length",
"ary[j]",
"ary",
"j",
"strFindLine.length()",
"strFindLine.length",
"strFindLine",
"{\n\n\t\t\t\t\t\tint intJudge = ary[j].indexOf(strFindLine);\n\n\t\t\t\t\t\tif(-1 < intJudge){\n\t\t\t\t\t\t\tintCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"int intJudge = ary[j].indexOf(strFindLine);",
"intJudge",
"ary[j].indexOf(strFindLine)",
"ary[j].indexOf",
"ary[j]",
"ary",
"j",
"strFindLine",
"if(-1 < intJudge){\n\t\t\t\t\t\t\tintCount++;\n\t\t\t\t\t\t}",
"-1 < intJudge",
"-1",
"1",
"intJudge",
"{\n\t\t\t\t\t\t\tintCount++;\n\t\t\t\t\t\t}",
"intCount++",
"intCount",
"System.out.println( intCount)",
"System.out.println",
"System.out",
"System",
"System.out",
"intCount",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\twhile(true){\n\t\t\ttry{\n\n\t\t\t\tString strScan = insBR.readLine();\n\n\n\t\t\t\tif(\"END_OF_TEXT\".equals(strScan)){\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\tlist.add(strScan);\n\t\t\t\t}\n\n\n\t\t\t}catch(IOException e){\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\n\t\t}\n\n\n\t\t//????´¢?????????????????????????????°\n\t\tString strFindLine = null;\n\t\t//????????\\???????????????????????°\n\t\tString strLine = null;\n\n\t\t//????´¢?????????????????????????????????????????°\n\t\tint intCount = 0;\n\t\tfor(int i = 0; i < list.size(); i++){\n\t\t\t//????´¢??????????????????\n\t\t\tif(i == 0){\n\t\t\t\t//list???0??????\n\t\t\t\tstrFindLine = list.get(i);\n\t\t\t\tstrFindLine = strFindLine.toLowerCase();\n\t\t\t}else{\n\t\t\t\t//list1????????\\???\n\t\t\t\tstrLine = list.get(i);\n\t\t\t\tstrLine = strLine.toLowerCase();\n\t\t\t\t//1??????????????§??????????????????????´?\n\t\t\t\tString[] ary = strLine.split(\" \");\n\t\t\t\t//1????????????????????¨????????´????????????????????????\n\t\t\t\tfor(int j = 0; j < ary.length; j++){\n\t\t\t\t\t//ary[]???????????¨findLine???????????°???????????????????´¢\n\t\t\t\t\tif(ary[j].length() == strFindLine.length()){\n\n\t\t\t\t\t\tint intJudge = ary[j].indexOf(strFindLine);\n\n\t\t\t\t\t\tif(-1 < intJudge){\n\t\t\t\t\t\t\tintCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tSystem.out.println( intCount);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\twhile(true){\n\t\t\ttry{\n\n\t\t\t\tString strScan = insBR.readLine();\n\n\n\t\t\t\tif(\"END_OF_TEXT\".equals(strScan)){\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\tlist.add(strScan);\n\t\t\t\t}\n\n\n\t\t\t}catch(IOException e){\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\n\t\t}\n\n\n\t\t//????´¢?????????????????????????????°\n\t\tString strFindLine = null;\n\t\t//????????\\???????????????????????°\n\t\tString strLine = null;\n\n\t\t//????´¢?????????????????????????????????????????°\n\t\tint intCount = 0;\n\t\tfor(int i = 0; i < list.size(); i++){\n\t\t\t//????´¢??????????????????\n\t\t\tif(i == 0){\n\t\t\t\t//list???0??????\n\t\t\t\tstrFindLine = list.get(i);\n\t\t\t\tstrFindLine = strFindLine.toLowerCase();\n\t\t\t}else{\n\t\t\t\t//list1????????\\???\n\t\t\t\tstrLine = list.get(i);\n\t\t\t\tstrLine = strLine.toLowerCase();\n\t\t\t\t//1??????????????§??????????????????????´?\n\t\t\t\tString[] ary = strLine.split(\" \");\n\t\t\t\t//1????????????????????¨????????´????????????????????????\n\t\t\t\tfor(int j = 0; j < ary.length; j++){\n\t\t\t\t\t//ary[]???????????¨findLine???????????°???????????????????´¢\n\t\t\t\t\tif(ary[j].length() == strFindLine.length()){\n\n\t\t\t\t\t\tint intJudge = ary[j].indexOf(strFindLine);\n\n\t\t\t\t\t\tif(-1 < intJudge){\n\t\t\t\t\t\t\tintCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tSystem.out.println( intCount);\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
BufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));
ArrayList<String> list = new ArrayList<String>();
while(true){
try{
String strScan = insBR.readLine();
if("END_OF_TEXT".equals(strScan)){
break;
}else{
list.add(strScan);
}
}catch(IOException e){
System.out.println(e);
}
}
//????´¢?????????????????????????????°
String strFindLine = null;
//????????\???????????????????????°
String strLine = null;
//????´¢?????????????????????????????????????????°
int intCount = 0;
for(int i = 0; i < list.size(); i++){
//????´¢??????????????????
if(i == 0){
//list???0??????
strFindLine = list.get(i);
strFindLine = strFindLine.toLowerCase();
}else{
//list1????????\???
strLine = list.get(i);
strLine = strLine.toLowerCase();
//1??????????????§??????????????????????´?
String[] ary = strLine.split(" ");
//1????????????????????¨????????´????????????????????????
for(int j = 0; j < ary.length; j++){
//ary[]???????????¨findLine???????????°???????????????????´¢
if(ary[j].length() == strFindLine.length()){
int intJudge = ary[j].indexOf(strFindLine);
if(-1 < intJudge){
intCount++;
}
}
}
}
}
System.out.println( intCount);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
41,
13,
17,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
14,
4,
18,
4,
18,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
30,
35
],
[
24,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
37,
42
],
[
36,
43
],
[
43,
44
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n String w = sc.next().toLowerCase();\n\n int cnt = 0;\n while (true) {\n String s = sc.next();\n \n if (s.equals(\"END_OF_TEXT\"))\n break;\n \n if (s.toLowerCase().equals(w))\n cnt++;\n }\n System.out.println(cnt);\n }\n}\n",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n String w = sc.next().toLowerCase();\n\n int cnt = 0;\n while (true) {\n String s = sc.next();\n \n if (s.equals(\"END_OF_TEXT\"))\n break;\n \n if (s.toLowerCase().equals(w))\n cnt++;\n }\n System.out.println(cnt);\n }\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n String w = sc.next().toLowerCase();\n\n int cnt = 0;\n while (true) {\n String s = sc.next();\n \n if (s.equals(\"END_OF_TEXT\"))\n break;\n \n if (s.toLowerCase().equals(w))\n cnt++;\n }\n System.out.println(cnt);\n }",
"main",
"{\n\n Scanner sc = new Scanner(System.in);\n\n String w = sc.next().toLowerCase();\n\n int cnt = 0;\n while (true) {\n String s = sc.next();\n \n if (s.equals(\"END_OF_TEXT\"))\n break;\n \n if (s.toLowerCase().equals(w))\n cnt++;\n }\n System.out.println(cnt);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String w = sc.next().toLowerCase();",
"w",
"sc.next().toLowerCase()",
"sc.next().toLowerCase",
"sc.next()",
"sc.next",
"sc",
"int cnt = 0;",
"cnt",
"0",
"while (true) {\n String s = sc.next();\n \n if (s.equals(\"END_OF_TEXT\"))\n break;\n \n if (s.toLowerCase().equals(w))\n cnt++;\n }",
"true",
"{\n String s = sc.next();\n \n if (s.equals(\"END_OF_TEXT\"))\n break;\n \n if (s.toLowerCase().equals(w))\n cnt++;\n }",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if (s.equals(\"END_OF_TEXT\"))\n break;",
"s.equals(\"END_OF_TEXT\")",
"s.equals",
"s",
"\"END_OF_TEXT\"",
"break;",
"if (s.toLowerCase().equals(w))\n cnt++;",
"s.toLowerCase().equals(w)",
"s.toLowerCase().equals",
"s.toLowerCase()",
"s.toLowerCase",
"s",
"w",
"cnt++",
"cnt",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n String w = sc.next().toLowerCase();\n\n int cnt = 0;\n while (true) {\n String s = sc.next();\n \n if (s.equals(\"END_OF_TEXT\"))\n break;\n \n if (s.toLowerCase().equals(w))\n cnt++;\n }\n System.out.println(cnt);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n String w = sc.next().toLowerCase();\n\n int cnt = 0;\n while (true) {\n String s = sc.next();\n \n if (s.equals(\"END_OF_TEXT\"))\n break;\n \n if (s.toLowerCase().equals(w))\n cnt++;\n }\n System.out.println(cnt);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String w = sc.next().toLowerCase();
int cnt = 0;
while (true) {
String s = sc.next();
if (s.equals("END_OF_TEXT"))
break;
if (s.toLowerCase().equals(w))
cnt++;
}
System.out.println(cnt);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
17,
42,
40,
4,
18,
0,
13,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
11,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
27,
34
],
[
25,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
35,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
54,
59
],
[
59,
60
],
[
11,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
9,
67
],
[
67,
68
]
]
| [
"import java.io.*;\nimport java.util.*;\n \nclass Main {\n public static void main(String[] args) throws IOException {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n \n String w = input.readLine();\n String t;\n int num = 0;\n \n while (!(t = input.readLine()).equals(\"END_OF_TEXT\")) {\n t = t.toLowerCase();\n Scanner scan = new Scanner(t);\n while (scan.hasNext()) {\n String str = scan.next();\n if (str.equals(w))\n num++;\n }\n \n }\n \n System.out.println(num);\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n \n String w = input.readLine();\n String t;\n int num = 0;\n \n while (!(t = input.readLine()).equals(\"END_OF_TEXT\")) {\n t = t.toLowerCase();\n Scanner scan = new Scanner(t);\n while (scan.hasNext()) {\n String str = scan.next();\n if (str.equals(w))\n num++;\n }\n \n }\n \n System.out.println(num);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n \n String w = input.readLine();\n String t;\n int num = 0;\n \n while (!(t = input.readLine()).equals(\"END_OF_TEXT\")) {\n t = t.toLowerCase();\n Scanner scan = new Scanner(t);\n while (scan.hasNext()) {\n String str = scan.next();\n if (str.equals(w))\n num++;\n }\n \n }\n \n System.out.println(num);\n }",
"main",
"{\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n \n String w = input.readLine();\n String t;\n int num = 0;\n \n while (!(t = input.readLine()).equals(\"END_OF_TEXT\")) {\n t = t.toLowerCase();\n Scanner scan = new Scanner(t);\n while (scan.hasNext()) {\n String str = scan.next();\n if (str.equals(w))\n num++;\n }\n \n }\n \n System.out.println(num);\n }",
"BufferedReader input = new BufferedReader(new InputStreamReader(System.in));",
"input",
"new BufferedReader(new InputStreamReader(System.in))",
"String w = input.readLine();",
"w",
"input.readLine()",
"input.readLine",
"input",
"String t;",
"t",
"int num = 0;",
"num",
"0",
"while (!(t = input.readLine()).equals(\"END_OF_TEXT\")) {\n t = t.toLowerCase();\n Scanner scan = new Scanner(t);\n while (scan.hasNext()) {\n String str = scan.next();\n if (str.equals(w))\n num++;\n }\n \n }",
"!(t = input.readLine()).equals(\"END_OF_TEXT\")",
"(t = input.readLine()).equals(\"END_OF_TEXT\")",
"(t = input.readLine()).equals",
"(t = input.readLine())",
"t",
"input.readLine()",
"input.readLine",
"input",
"\"END_OF_TEXT\"",
"{\n t = t.toLowerCase();\n Scanner scan = new Scanner(t);\n while (scan.hasNext()) {\n String str = scan.next();\n if (str.equals(w))\n num++;\n }\n \n }",
"t = t.toLowerCase()",
"t",
"t.toLowerCase()",
"t.toLowerCase",
"t",
"Scanner scan = new Scanner(t);",
"scan",
"new Scanner(t)",
"while (scan.hasNext()) {\n String str = scan.next();\n if (str.equals(w))\n num++;\n }",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n String str = scan.next();\n if (str.equals(w))\n num++;\n }",
"String str = scan.next();",
"str",
"scan.next()",
"scan.next",
"scan",
"if (str.equals(w))\n num++;",
"str.equals(w)",
"str.equals",
"str",
"w",
"num++",
"num",
"System.out.println(num)",
"System.out.println",
"System.out",
"System",
"System.out",
"num",
"String[] args",
"args"
]
| import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
String w = input.readLine();
String t;
int num = 0;
while (!(t = input.readLine()).equals("END_OF_TEXT")) {
t = t.toLowerCase();
Scanner scan = new Scanner(t);
while (scan.hasNext()) {
String str = scan.next();
if (str.equals(w))
num++;
}
}
System.out.println(num);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
14,
2,
4,
18,
13,
13,
17,
30,
40,
13,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
57,
5
],
[
57,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
23,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
23,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
29,
34
],
[
34,
35
],
[
29,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
37,
42
],
[
36,
43
],
[
43,
44
],
[
44,
45
],
[
8,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
]
| [
"import java.util.Scanner;\n\npublic class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tString w = scanner.next();\n\t\t\n\t\tint cnt = 0;\n\t\tfor(;;)\n\t\t{\n\t\t\tString t = scanner.next();\n\t\t\tif(t.equals(\"END_OF_TEXT\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(w.compareToIgnoreCase(t) == 0)\n\t\t\t{\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(cnt+\"\");\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 w = scanner.next();\n\t\t\n\t\tint cnt = 0;\n\t\tfor(;;)\n\t\t{\n\t\t\tString t = scanner.next();\n\t\t\tif(t.equals(\"END_OF_TEXT\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(w.compareToIgnoreCase(t) == 0)\n\t\t\t{\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(cnt+\"\");\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 w = scanner.next();\n\t\t\n\t\tint cnt = 0;\n\t\tfor(;;)\n\t\t{\n\t\t\tString t = scanner.next();\n\t\t\tif(t.equals(\"END_OF_TEXT\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(w.compareToIgnoreCase(t) == 0)\n\t\t\t{\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(cnt+\"\");\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tString w = scanner.next();\n\t\t\n\t\tint cnt = 0;\n\t\tfor(;;)\n\t\t{\n\t\t\tString t = scanner.next();\n\t\t\tif(t.equals(\"END_OF_TEXT\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(w.compareToIgnoreCase(t) == 0)\n\t\t\t{\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(cnt+\"\");\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"String w = scanner.next();",
"w",
"scanner.next()",
"scanner.next",
"scanner",
"int cnt = 0;",
"cnt",
"0",
"for(;;)\n\t\t{\n\t\t\tString t = scanner.next();\n\t\t\tif(t.equals(\"END_OF_TEXT\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(w.compareToIgnoreCase(t) == 0)\n\t\t\t{\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}",
";",
"{\n\t\t\tString t = scanner.next();\n\t\t\tif(t.equals(\"END_OF_TEXT\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(w.compareToIgnoreCase(t) == 0)\n\t\t\t{\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString t = scanner.next();\n\t\t\tif(t.equals(\"END_OF_TEXT\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(w.compareToIgnoreCase(t) == 0)\n\t\t\t{\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}",
"String t = scanner.next();",
"t",
"scanner.next()",
"scanner.next",
"scanner",
"if(t.equals(\"END_OF_TEXT\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(w.compareToIgnoreCase(t) == 0)\n\t\t\t{\n\t\t\t\tcnt++;\n\t\t\t}",
"t.equals(\"END_OF_TEXT\")",
"t.equals",
"t",
"\"END_OF_TEXT\"",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"if(w.compareToIgnoreCase(t) == 0)\n\t\t\t{\n\t\t\t\tcnt++;\n\t\t\t}",
"w.compareToIgnoreCase(t) == 0",
"w.compareToIgnoreCase(t)",
"w.compareToIgnoreCase",
"w",
"t",
"0",
"{\n\t\t\t\tcnt++;\n\t\t\t}",
"cnt++",
"cnt",
"System.out.println(cnt+\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt+\"\"",
"cnt",
"\"\"",
"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 w = scanner.next();\n\t\t\n\t\tint cnt = 0;\n\t\tfor(;;)\n\t\t{\n\t\t\tString t = scanner.next();\n\t\t\tif(t.equals(\"END_OF_TEXT\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(w.compareToIgnoreCase(t) == 0)\n\t\t\t{\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(cnt+\"\");\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 w = scanner.next();\n\t\t\n\t\tint cnt = 0;\n\t\tfor(;;)\n\t\t{\n\t\t\tString t = scanner.next();\n\t\t\tif(t.equals(\"END_OF_TEXT\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(w.compareToIgnoreCase(t) == 0)\n\t\t\t{\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(cnt+\"\");\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner scanner = new Scanner(System.in);
String w = scanner.next();
int cnt = 0;
for(;;)
{
String t = scanner.next();
if(t.equals("END_OF_TEXT"))
{
break;
}
else if(w.compareToIgnoreCase(t) == 0)
{
cnt++;
}
}
System.out.println(cnt+"");
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
4,
18,
13,
41,
13,
17,
42,
4,
18,
13,
30,
14,
4,
18,
13,
4,
18,
4,
18,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
47,
5
],
[
47,
6
],
[
6,
7
],
[
6,
8
],
[
47,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
11,
19
],
[
19,
20
],
[
19,
21
],
[
11,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
22,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
27,
36
],
[
36,
37
],
[
11,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
9,
44
],
[
44,
45
],
[
0,
46
],
[
46,
47
],
[
46,
48
]
]
| [
"import java.util.*;\n\npublic class Main {\n private static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n String w = sc.next().toLowerCase();\n int cnt = 0;\n while (sc.hasNext()) {\n if (w.equals(sc.next().toLowerCase())) cnt++;\n }\n System.out.println(cnt);\n }\n}\n",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n private static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n String w = sc.next().toLowerCase();\n int cnt = 0;\n while (sc.hasNext()) {\n if (w.equals(sc.next().toLowerCase())) cnt++;\n }\n System.out.println(cnt);\n }\n}",
"Main",
"private static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) throws Exception {\n String w = sc.next().toLowerCase();\n int cnt = 0;\n while (sc.hasNext()) {\n if (w.equals(sc.next().toLowerCase())) cnt++;\n }\n System.out.println(cnt);\n }",
"main",
"{\n String w = sc.next().toLowerCase();\n int cnt = 0;\n while (sc.hasNext()) {\n if (w.equals(sc.next().toLowerCase())) cnt++;\n }\n System.out.println(cnt);\n }",
"String w = sc.next().toLowerCase();",
"w",
"sc.next().toLowerCase()",
"sc.next().toLowerCase",
"sc.next()",
"sc.next",
"sc",
"int cnt = 0;",
"cnt",
"0",
"while (sc.hasNext()) {\n if (w.equals(sc.next().toLowerCase())) cnt++;\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n if (w.equals(sc.next().toLowerCase())) cnt++;\n }",
"if (w.equals(sc.next().toLowerCase())) cnt++;",
"w.equals(sc.next().toLowerCase())",
"w.equals",
"w",
"sc.next().toLowerCase()",
"sc.next().toLowerCase",
"sc.next()",
"sc.next",
"sc",
"cnt++",
"cnt",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"String[] args",
"args",
"public class Main {\n private static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n String w = sc.next().toLowerCase();\n int cnt = 0;\n while (sc.hasNext()) {\n if (w.equals(sc.next().toLowerCase())) cnt++;\n }\n System.out.println(cnt);\n }\n}",
"public class Main {\n private static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n String w = sc.next().toLowerCase();\n int cnt = 0;\n while (sc.hasNext()) {\n if (w.equals(sc.next().toLowerCase())) cnt++;\n }\n System.out.println(cnt);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
private static Scanner sc = new Scanner(System.in);
public static void main(String[] args) throws Exception {
String w = sc.next().toLowerCase();
int cnt = 0;
while (sc.hasNext()) {
if (w.equals(sc.next().toLowerCase())) cnt++;
}
System.out.println(cnt);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
42,
40,
4,
18,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
13,
4,
18,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
78,
5
],
[
78,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
27,
34
],
[
25,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
35,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
42,
52
],
[
52,
53
],
[
53,
54
],
[
42,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
57,
66
],
[
66,
67
],
[
67,
68
],
[
8,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
6,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String W = line.toUpperCase();\n\n int count = 0;\n while(!((line = sc.nextLine()).equals(\"END_OF_TEXT\"))) {\n String[] l = line.split(\" \");\n for(int i = 0; i < l.length; i++) {\n if(W.equals(l[i].toUpperCase())) {\n count++;\n }\n }\n }\n\n System.out.println(count);\n\n// String line = sc.nextLine();\n// char[] W = line.toCharArray(); //word\n//\n// int count = 0;\n// while(!((line = sc.nextLine()).equals(\"END_OF_TEXT\"))) {\n// char[] T = line.toCharArray();\n//\n// for(int i = 0; i < T.length; i++) {\n// if(Character.toUpperCase(T[i]) == Character.toUpperCase(W[0]) && i + W.length - 1 < T.length) {\n// for(int j = 0; j < W.length; j++) {\n// if(Character.toUpperCase(T[i + j]) != Character.toUpperCase(W[j])) {\n// break;\n// } else if(j == W.length - 1) {\n// count++;\n// }\n// }\n// }\n// }\n// }\n//\n// System.out.println(count);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String W = line.toUpperCase();\n\n int count = 0;\n while(!((line = sc.nextLine()).equals(\"END_OF_TEXT\"))) {\n String[] l = line.split(\" \");\n for(int i = 0; i < l.length; i++) {\n if(W.equals(l[i].toUpperCase())) {\n count++;\n }\n }\n }\n\n System.out.println(count);\n\n// String line = sc.nextLine();\n// char[] W = line.toCharArray(); //word\n//\n// int count = 0;\n// while(!((line = sc.nextLine()).equals(\"END_OF_TEXT\"))) {\n// char[] T = line.toCharArray();\n//\n// for(int i = 0; i < T.length; i++) {\n// if(Character.toUpperCase(T[i]) == Character.toUpperCase(W[0]) && i + W.length - 1 < T.length) {\n// for(int j = 0; j < W.length; j++) {\n// if(Character.toUpperCase(T[i + j]) != Character.toUpperCase(W[j])) {\n// break;\n// } else if(j == W.length - 1) {\n// count++;\n// }\n// }\n// }\n// }\n// }\n//\n// System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String W = line.toUpperCase();\n\n int count = 0;\n while(!((line = sc.nextLine()).equals(\"END_OF_TEXT\"))) {\n String[] l = line.split(\" \");\n for(int i = 0; i < l.length; i++) {\n if(W.equals(l[i].toUpperCase())) {\n count++;\n }\n }\n }\n\n System.out.println(count);\n\n// String line = sc.nextLine();\n// char[] W = line.toCharArray(); //word\n//\n// int count = 0;\n// while(!((line = sc.nextLine()).equals(\"END_OF_TEXT\"))) {\n// char[] T = line.toCharArray();\n//\n// for(int i = 0; i < T.length; i++) {\n// if(Character.toUpperCase(T[i]) == Character.toUpperCase(W[0]) && i + W.length - 1 < T.length) {\n// for(int j = 0; j < W.length; j++) {\n// if(Character.toUpperCase(T[i + j]) != Character.toUpperCase(W[j])) {\n// break;\n// } else if(j == W.length - 1) {\n// count++;\n// }\n// }\n// }\n// }\n// }\n//\n// System.out.println(count);\n }",
"main",
"{\n\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String W = line.toUpperCase();\n\n int count = 0;\n while(!((line = sc.nextLine()).equals(\"END_OF_TEXT\"))) {\n String[] l = line.split(\" \");\n for(int i = 0; i < l.length; i++) {\n if(W.equals(l[i].toUpperCase())) {\n count++;\n }\n }\n }\n\n System.out.println(count);\n\n// String line = sc.nextLine();\n// char[] W = line.toCharArray(); //word\n//\n// int count = 0;\n// while(!((line = sc.nextLine()).equals(\"END_OF_TEXT\"))) {\n// char[] T = line.toCharArray();\n//\n// for(int i = 0; i < T.length; i++) {\n// if(Character.toUpperCase(T[i]) == Character.toUpperCase(W[0]) && i + W.length - 1 < T.length) {\n// for(int j = 0; j < W.length; j++) {\n// if(Character.toUpperCase(T[i + j]) != Character.toUpperCase(W[j])) {\n// break;\n// } else if(j == W.length - 1) {\n// count++;\n// }\n// }\n// }\n// }\n// }\n//\n// System.out.println(count);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line = sc.nextLine();",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String W = line.toUpperCase();",
"W",
"line.toUpperCase()",
"line.toUpperCase",
"line",
"int count = 0;",
"count",
"0",
"while(!((line = sc.nextLine()).equals(\"END_OF_TEXT\"))) {\n String[] l = line.split(\" \");\n for(int i = 0; i < l.length; i++) {\n if(W.equals(l[i].toUpperCase())) {\n count++;\n }\n }\n }",
"!((line = sc.nextLine()).equals(\"END_OF_TEXT\"))",
"((line = sc.nextLine()).equals(\"END_OF_TEXT\"))",
"(line = sc.nextLine()).equals",
"(line = sc.nextLine())",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\"END_OF_TEXT\"",
"{\n String[] l = line.split(\" \");\n for(int i = 0; i < l.length; i++) {\n if(W.equals(l[i].toUpperCase())) {\n count++;\n }\n }\n }",
"String[] l = line.split(\" \");",
"l",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"for(int i = 0; i < l.length; i++) {\n if(W.equals(l[i].toUpperCase())) {\n count++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < l.length",
"i",
"l.length",
"l",
"l.length",
"i++",
"i++",
"i",
"{\n if(W.equals(l[i].toUpperCase())) {\n count++;\n }\n }",
"{\n if(W.equals(l[i].toUpperCase())) {\n count++;\n }\n }",
"if(W.equals(l[i].toUpperCase())) {\n count++;\n }",
"W.equals(l[i].toUpperCase())",
"W.equals",
"W",
"l[i].toUpperCase()",
"l[i].toUpperCase",
"l[i]",
"l",
"i",
"{\n count++;\n }",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String W = line.toUpperCase();\n\n int count = 0;\n while(!((line = sc.nextLine()).equals(\"END_OF_TEXT\"))) {\n String[] l = line.split(\" \");\n for(int i = 0; i < l.length; i++) {\n if(W.equals(l[i].toUpperCase())) {\n count++;\n }\n }\n }\n\n System.out.println(count);\n\n// String line = sc.nextLine();\n// char[] W = line.toCharArray(); //word\n//\n// int count = 0;\n// while(!((line = sc.nextLine()).equals(\"END_OF_TEXT\"))) {\n// char[] T = line.toCharArray();\n//\n// for(int i = 0; i < T.length; i++) {\n// if(Character.toUpperCase(T[i]) == Character.toUpperCase(W[0]) && i + W.length - 1 < T.length) {\n// for(int j = 0; j < W.length; j++) {\n// if(Character.toUpperCase(T[i + j]) != Character.toUpperCase(W[j])) {\n// break;\n// } else if(j == W.length - 1) {\n// count++;\n// }\n// }\n// }\n// }\n// }\n//\n// System.out.println(count);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String W = line.toUpperCase();\n\n int count = 0;\n while(!((line = sc.nextLine()).equals(\"END_OF_TEXT\"))) {\n String[] l = line.split(\" \");\n for(int i = 0; i < l.length; i++) {\n if(W.equals(l[i].toUpperCase())) {\n count++;\n }\n }\n }\n\n System.out.println(count);\n\n// String line = sc.nextLine();\n// char[] W = line.toCharArray(); //word\n//\n// int count = 0;\n// while(!((line = sc.nextLine()).equals(\"END_OF_TEXT\"))) {\n// char[] T = line.toCharArray();\n//\n// for(int i = 0; i < T.length; i++) {\n// if(Character.toUpperCase(T[i]) == Character.toUpperCase(W[0]) && i + W.length - 1 < T.length) {\n// for(int j = 0; j < W.length; j++) {\n// if(Character.toUpperCase(T[i + j]) != Character.toUpperCase(W[j])) {\n// break;\n// } else if(j == W.length - 1) {\n// count++;\n// }\n// }\n// }\n// }\n// }\n//\n// System.out.println(count);\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
String W = line.toUpperCase();
int count = 0;
while(!((line = sc.nextLine()).equals("END_OF_TEXT"))) {
String[] l = line.split(" ");
for(int i = 0; i < l.length; i++) {
if(W.equals(l[i].toUpperCase())) {
count++;
}
}
}
System.out.println(count);
// String line = sc.nextLine();
// char[] W = line.toCharArray(); //word
//
// int count = 0;
// while(!((line = sc.nextLine()).equals("END_OF_TEXT"))) {
// char[] T = line.toCharArray();
//
// for(int i = 0; i < T.length; i++) {
// if(Character.toUpperCase(T[i]) == Character.toUpperCase(W[0]) && i + W.length - 1 < T.length) {
// for(int j = 0; j < W.length; j++) {
// if(Character.toUpperCase(T[i + j]) != Character.toUpperCase(W[j])) {
// break;
// } else if(j == W.length - 1) {
// count++;
// }
// }
// }
// }
// }
//
// System.out.println(count);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
2,
4,
18,
13,
17,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
0,
13,
2,
13,
17,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
13,
40,
13,
4,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
102,
8
],
[
102,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
25,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
38,
43
],
[
32,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
11,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
11,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
11,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
11,
65
],
[
65,
66
],
[
65,
67
],
[
11,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
68,
78
],
[
78,
79
],
[
79,
80
],
[
68,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
83,
90
],
[
90,
91
],
[
11,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
11,
96
],
[
96,
97
],
[
97,
98
],
[
9,
99
],
[
99,
100
],
[
0,
101
],
[
101,
102
],
[
101,
103
]
]
| [
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tString word=in.nextLine(),str = in.nextLine()+\" \";\n\t\twhile(true) {\n\t\t\tString tstr=in.nextLine();\n\t\t\tif(tstr.equals(\"END_OF_TEXT\"))break;\n\t\t\tstr+=tstr+\" \";\n\t\t}\n\t\tword=word.toUpperCase(); str=str.toUpperCase();\n\t\t\n\t\tString words[]=str.split(\" \");\n\t\t//for(int i=0;i<words.length;i++)out.println(words[i]);\n\t\tint cnt=0;\n\t\t\n\t\tfor(int i=0;i<words.length;i++) {\n\t\t\tif(words[i].equals(word))cnt++;\n\t\t}\n\t\tout.println(cnt);\n\t\tout.flush();\n\t}\n\n}\n",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tString word=in.nextLine(),str = in.nextLine()+\" \";\n\t\twhile(true) {\n\t\t\tString tstr=in.nextLine();\n\t\t\tif(tstr.equals(\"END_OF_TEXT\"))break;\n\t\t\tstr+=tstr+\" \";\n\t\t}\n\t\tword=word.toUpperCase(); str=str.toUpperCase();\n\t\t\n\t\tString words[]=str.split(\" \");\n\t\t//for(int i=0;i<words.length;i++)out.println(words[i]);\n\t\tint cnt=0;\n\t\t\n\t\tfor(int i=0;i<words.length;i++) {\n\t\t\tif(words[i].equals(word))cnt++;\n\t\t}\n\t\tout.println(cnt);\n\t\tout.flush();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tString word=in.nextLine(),str = in.nextLine()+\" \";\n\t\twhile(true) {\n\t\t\tString tstr=in.nextLine();\n\t\t\tif(tstr.equals(\"END_OF_TEXT\"))break;\n\t\t\tstr+=tstr+\" \";\n\t\t}\n\t\tword=word.toUpperCase(); str=str.toUpperCase();\n\t\t\n\t\tString words[]=str.split(\" \");\n\t\t//for(int i=0;i<words.length;i++)out.println(words[i]);\n\t\tint cnt=0;\n\t\t\n\t\tfor(int i=0;i<words.length;i++) {\n\t\t\tif(words[i].equals(word))cnt++;\n\t\t}\n\t\tout.println(cnt);\n\t\tout.flush();\n\t}",
"main",
"{\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tString word=in.nextLine(),str = in.nextLine()+\" \";\n\t\twhile(true) {\n\t\t\tString tstr=in.nextLine();\n\t\t\tif(tstr.equals(\"END_OF_TEXT\"))break;\n\t\t\tstr+=tstr+\" \";\n\t\t}\n\t\tword=word.toUpperCase(); str=str.toUpperCase();\n\t\t\n\t\tString words[]=str.split(\" \");\n\t\t//for(int i=0;i<words.length;i++)out.println(words[i]);\n\t\tint cnt=0;\n\t\t\n\t\tfor(int i=0;i<words.length;i++) {\n\t\t\tif(words[i].equals(word))cnt++;\n\t\t}\n\t\tout.println(cnt);\n\t\tout.flush();\n\t}",
"Scanner in=new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"PrintWriter out=new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"String word=in.nextLine()",
"word",
"in.nextLine()",
"in.nextLine",
"in",
"str = in.nextLine()+\" \";",
"str",
"in.nextLine()+\" \"",
"in.nextLine()",
"in.nextLine",
"in",
"\" \"",
"while(true) {\n\t\t\tString tstr=in.nextLine();\n\t\t\tif(tstr.equals(\"END_OF_TEXT\"))break;\n\t\t\tstr+=tstr+\" \";\n\t\t}",
"true",
"{\n\t\t\tString tstr=in.nextLine();\n\t\t\tif(tstr.equals(\"END_OF_TEXT\"))break;\n\t\t\tstr+=tstr+\" \";\n\t\t}",
"String tstr=in.nextLine();",
"tstr",
"in.nextLine()",
"in.nextLine",
"in",
"if(tstr.equals(\"END_OF_TEXT\"))break;",
"tstr.equals(\"END_OF_TEXT\")",
"tstr.equals",
"tstr",
"\"END_OF_TEXT\"",
"break;",
"str+=tstr+\" \"",
"str",
"tstr+\" \"",
"tstr",
"\" \"",
"word=word.toUpperCase()",
"word",
"word.toUpperCase()",
"word.toUpperCase",
"word",
"str=str.toUpperCase()",
"str",
"str.toUpperCase()",
"str.toUpperCase",
"str",
"String words[]=str.split(\" \");",
"words",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"int cnt=0;",
"cnt",
"0",
"for(int i=0;i<words.length;i++) {\n\t\t\tif(words[i].equals(word))cnt++;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<words.length",
"i",
"words.length",
"words",
"words.length",
"i++",
"i++",
"i",
"{\n\t\t\tif(words[i].equals(word))cnt++;\n\t\t}",
"{\n\t\t\tif(words[i].equals(word))cnt++;\n\t\t}",
"if(words[i].equals(word))cnt++;",
"words[i].equals(word)",
"words[i].equals",
"words[i]",
"words",
"i",
"word",
"cnt++",
"cnt",
"out.println(cnt)",
"out.println",
"out",
"cnt",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tString word=in.nextLine(),str = in.nextLine()+\" \";\n\t\twhile(true) {\n\t\t\tString tstr=in.nextLine();\n\t\t\tif(tstr.equals(\"END_OF_TEXT\"))break;\n\t\t\tstr+=tstr+\" \";\n\t\t}\n\t\tword=word.toUpperCase(); str=str.toUpperCase();\n\t\t\n\t\tString words[]=str.split(\" \");\n\t\t//for(int i=0;i<words.length;i++)out.println(words[i]);\n\t\tint cnt=0;\n\t\t\n\t\tfor(int i=0;i<words.length;i++) {\n\t\t\tif(words[i].equals(word))cnt++;\n\t\t}\n\t\tout.println(cnt);\n\t\tout.flush();\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tString word=in.nextLine(),str = in.nextLine()+\" \";\n\t\twhile(true) {\n\t\t\tString tstr=in.nextLine();\n\t\t\tif(tstr.equals(\"END_OF_TEXT\"))break;\n\t\t\tstr+=tstr+\" \";\n\t\t}\n\t\tword=word.toUpperCase(); str=str.toUpperCase();\n\t\t\n\t\tString words[]=str.split(\" \");\n\t\t//for(int i=0;i<words.length;i++)out.println(words[i]);\n\t\tint cnt=0;\n\t\t\n\t\tfor(int i=0;i<words.length;i++) {\n\t\t\tif(words[i].equals(word))cnt++;\n\t\t}\n\t\tout.println(cnt);\n\t\tout.flush();\n\t}\n\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
PrintWriter out=new PrintWriter(System.out);
String word=in.nextLine(),str = in.nextLine()+" ";
while(true) {
String tstr=in.nextLine();
if(tstr.equals("END_OF_TEXT"))break;
str+=tstr+" ";
}
word=word.toUpperCase(); str=str.toUpperCase();
String words[]=str.split(" ");
//for(int i=0;i<words.length;i++)out.println(words[i]);
int cnt=0;
for(int i=0;i<words.length;i++) {
if(words[i].equals(word))cnt++;
}
out.println(cnt);
out.flush();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
42,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
14,
4,
18,
13,
17,
3,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
22,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
22,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
34,
39
],
[
22,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
40,
50
],
[
50,
51
],
[
51,
52
],
[
40,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
55,
62
],
[
62,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
6,
70
],
[
70,
71
]
]
| [
"import java.io.*;\nclass Main\n{\n public static void main(String args[])throws IOException\n {\n\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\tString str1=input.readLine();\n\tint i=0;\n\twhile(true)\n\t {\n\t\tString str=input.readLine();\n\t\tString str2[]=str.split(\" \");\n\t\tif(str.equals(\"END_OF_TEXT\"))break;\n\t\tfor(int j=0;j<str2.length;j++)\n\t\t {\n\t\t\t\n\t\t\tif(str2[j].equalsIgnoreCase(str1))i++;\n\t\t\t\n\t\t }\n\t\t\n\t }\n\tSystem.out.println(i);\n }\n}",
"import java.io.*;",
"io.*",
"java",
"class Main\n{\n public static void main(String args[])throws IOException\n {\n\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\tString str1=input.readLine();\n\tint i=0;\n\twhile(true)\n\t {\n\t\tString str=input.readLine();\n\t\tString str2[]=str.split(\" \");\n\t\tif(str.equals(\"END_OF_TEXT\"))break;\n\t\tfor(int j=0;j<str2.length;j++)\n\t\t {\n\t\t\t\n\t\t\tif(str2[j].equalsIgnoreCase(str1))i++;\n\t\t\t\n\t\t }\n\t\t\n\t }\n\tSystem.out.println(i);\n }\n}",
"Main",
"public static void main(String args[])throws IOException\n {\n\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\tString str1=input.readLine();\n\tint i=0;\n\twhile(true)\n\t {\n\t\tString str=input.readLine();\n\t\tString str2[]=str.split(\" \");\n\t\tif(str.equals(\"END_OF_TEXT\"))break;\n\t\tfor(int j=0;j<str2.length;j++)\n\t\t {\n\t\t\t\n\t\t\tif(str2[j].equalsIgnoreCase(str1))i++;\n\t\t\t\n\t\t }\n\t\t\n\t }\n\tSystem.out.println(i);\n }",
"main",
"{\n\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\tString str1=input.readLine();\n\tint i=0;\n\twhile(true)\n\t {\n\t\tString str=input.readLine();\n\t\tString str2[]=str.split(\" \");\n\t\tif(str.equals(\"END_OF_TEXT\"))break;\n\t\tfor(int j=0;j<str2.length;j++)\n\t\t {\n\t\t\t\n\t\t\tif(str2[j].equalsIgnoreCase(str1))i++;\n\t\t\t\n\t\t }\n\t\t\n\t }\n\tSystem.out.println(i);\n }",
"BufferedReader input=new BufferedReader(new InputStreamReader(System.in));",
"input",
"new BufferedReader(new InputStreamReader(System.in))",
"String str1=input.readLine();",
"str1",
"input.readLine()",
"input.readLine",
"input",
"int i=0;",
"i",
"0",
"while(true)\n\t {\n\t\tString str=input.readLine();\n\t\tString str2[]=str.split(\" \");\n\t\tif(str.equals(\"END_OF_TEXT\"))break;\n\t\tfor(int j=0;j<str2.length;j++)\n\t\t {\n\t\t\t\n\t\t\tif(str2[j].equalsIgnoreCase(str1))i++;\n\t\t\t\n\t\t }\n\t\t\n\t }",
"true",
"{\n\t\tString str=input.readLine();\n\t\tString str2[]=str.split(\" \");\n\t\tif(str.equals(\"END_OF_TEXT\"))break;\n\t\tfor(int j=0;j<str2.length;j++)\n\t\t {\n\t\t\t\n\t\t\tif(str2[j].equalsIgnoreCase(str1))i++;\n\t\t\t\n\t\t }\n\t\t\n\t }",
"String str=input.readLine();",
"str",
"input.readLine()",
"input.readLine",
"input",
"String str2[]=str.split(\" \");",
"str2",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"if(str.equals(\"END_OF_TEXT\"))break;",
"str.equals(\"END_OF_TEXT\")",
"str.equals",
"str",
"\"END_OF_TEXT\"",
"break;",
"for(int j=0;j<str2.length;j++)\n\t\t {\n\t\t\t\n\t\t\tif(str2[j].equalsIgnoreCase(str1))i++;\n\t\t\t\n\t\t }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<str2.length",
"j",
"str2.length",
"str2",
"str2.length",
"j++",
"j++",
"j",
"{\n\t\t\t\n\t\t\tif(str2[j].equalsIgnoreCase(str1))i++;\n\t\t\t\n\t\t }",
"{\n\t\t\t\n\t\t\tif(str2[j].equalsIgnoreCase(str1))i++;\n\t\t\t\n\t\t }",
"if(str2[j].equalsIgnoreCase(str1))i++;",
"str2[j].equalsIgnoreCase(str1)",
"str2[j].equalsIgnoreCase",
"str2[j]",
"str2",
"j",
"str1",
"i++",
"i",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"String args[]",
"args"
]
| import java.io.*;
class Main
{
public static void main(String args[])throws IOException
{
BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
String str1=input.readLine();
int i=0;
while(true)
{
String str=input.readLine();
String str2[]=str.split(" ");
if(str.equals("END_OF_TEXT"))break;
for(int j=0;j<str2.length;j++)
{
if(str2[j].equalsIgnoreCase(str1))i++;
}
}
System.out.println(i);
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
68,
5
],
[
68,
6
],
[
6,
7
],
[
6,
8
],
[
68,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
28,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
38,
43
],
[
43,
44
],
[
38,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
51,
56
],
[
56,
57
],
[
57,
58
],
[
11,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
9,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
]
]
| [
"import java.util.*;\n\npublic class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tString w = sc.next();\n\t\tw = w.toLowerCase();\n\t\tString s = \"\";\n\t\tint count = 0;\n\t\twhile (sc.hasNext()) {\n\t\t\tString str = sc.next();\n\t\t\tif (str.equals(\"END_OF_TEXT\")) {break;}\n\t\t\telse {\n\t\t\t\tstr = str.toLowerCase();\n\t\t\t\tif (str.equals(w)) {count++;}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\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\tString w = sc.next();\n\t\tw = w.toLowerCase();\n\t\tString s = \"\";\n\t\tint count = 0;\n\t\twhile (sc.hasNext()) {\n\t\t\tString str = sc.next();\n\t\t\tif (str.equals(\"END_OF_TEXT\")) {break;}\n\t\t\telse {\n\t\t\t\tstr = str.toLowerCase();\n\t\t\t\tif (str.equals(w)) {count++;}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"Main",
"static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) {\n\t\tString w = sc.next();\n\t\tw = w.toLowerCase();\n\t\tString s = \"\";\n\t\tint count = 0;\n\t\twhile (sc.hasNext()) {\n\t\t\tString str = sc.next();\n\t\t\tif (str.equals(\"END_OF_TEXT\")) {break;}\n\t\t\telse {\n\t\t\t\tstr = str.toLowerCase();\n\t\t\t\tif (str.equals(w)) {count++;}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"main",
"{\n\t\tString w = sc.next();\n\t\tw = w.toLowerCase();\n\t\tString s = \"\";\n\t\tint count = 0;\n\t\twhile (sc.hasNext()) {\n\t\t\tString str = sc.next();\n\t\t\tif (str.equals(\"END_OF_TEXT\")) {break;}\n\t\t\telse {\n\t\t\t\tstr = str.toLowerCase();\n\t\t\t\tif (str.equals(w)) {count++;}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}",
"String w = sc.next();",
"w",
"sc.next()",
"sc.next",
"sc",
"w = w.toLowerCase()",
"w",
"w.toLowerCase()",
"w.toLowerCase",
"w",
"String s = \"\";",
"s",
"\"\"",
"int count = 0;",
"count",
"0",
"while (sc.hasNext()) {\n\t\t\tString str = sc.next();\n\t\t\tif (str.equals(\"END_OF_TEXT\")) {break;}\n\t\t\telse {\n\t\t\t\tstr = str.toLowerCase();\n\t\t\t\tif (str.equals(w)) {count++;}\n\t\t\t}\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\tString str = sc.next();\n\t\t\tif (str.equals(\"END_OF_TEXT\")) {break;}\n\t\t\telse {\n\t\t\t\tstr = str.toLowerCase();\n\t\t\t\tif (str.equals(w)) {count++;}\n\t\t\t}\n\t\t}",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"if (str.equals(\"END_OF_TEXT\")) {break;}\n\t\t\telse {\n\t\t\t\tstr = str.toLowerCase();\n\t\t\t\tif (str.equals(w)) {count++;}\n\t\t\t}",
"str.equals(\"END_OF_TEXT\")",
"str.equals",
"str",
"\"END_OF_TEXT\"",
"{break;}",
"break;",
"{\n\t\t\t\tstr = str.toLowerCase();\n\t\t\t\tif (str.equals(w)) {count++;}\n\t\t\t}",
"str = str.toLowerCase()",
"str",
"str.toLowerCase()",
"str.toLowerCase",
"str",
"if (str.equals(w)) {count++;}",
"str.equals(w)",
"str.equals",
"str",
"w",
"{count++;}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tString w = sc.next();\n\t\tw = w.toLowerCase();\n\t\tString s = \"\";\n\t\tint count = 0;\n\t\twhile (sc.hasNext()) {\n\t\t\tString str = sc.next();\n\t\t\tif (str.equals(\"END_OF_TEXT\")) {break;}\n\t\t\telse {\n\t\t\t\tstr = str.toLowerCase();\n\t\t\t\tif (str.equals(w)) {count++;}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tString w = sc.next();\n\t\tw = w.toLowerCase();\n\t\tString s = \"\";\n\t\tint count = 0;\n\t\twhile (sc.hasNext()) {\n\t\t\tString str = sc.next();\n\t\t\tif (str.equals(\"END_OF_TEXT\")) {break;}\n\t\t\telse {\n\t\t\t\tstr = str.toLowerCase();\n\t\t\t\tif (str.equals(w)) {count++;}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
String w = sc.next();
w = w.toLowerCase();
String s = "";
int count = 0;
while (sc.hasNext()) {
String str = sc.next();
if (str.equals("END_OF_TEXT")) {break;}
else {
str = str.toLowerCase();
if (str.equals(w)) {count++;}
}
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
17,
11,
1,
30,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
0,
13,
4,
18,
13,
14,
4,
18,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
61,
5
],
[
61,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
28,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
34,
39
],
[
28,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
28,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
45,
50
],
[
50,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
6,
58
],
[
58,
59
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.nextLine();\n\t\tW = W.toLowerCase();\n\t\tint num = 0;\n\t\tfor(;;){\n\t\t\tString T = sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\"))break;\n\t\t\tT = T.toLowerCase();\n\t\t\tif(W.equals(T))num++;\n\t\t}\n\t\tSystem.out.println(num);\n\t}\t\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.nextLine();\n\t\tW = W.toLowerCase();\n\t\tint num = 0;\n\t\tfor(;;){\n\t\t\tString T = sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\"))break;\n\t\t\tT = T.toLowerCase();\n\t\t\tif(W.equals(T))num++;\n\t\t}\n\t\tSystem.out.println(num);\n\t}\t\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.nextLine();\n\t\tW = W.toLowerCase();\n\t\tint num = 0;\n\t\tfor(;;){\n\t\t\tString T = sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\"))break;\n\t\t\tT = T.toLowerCase();\n\t\t\tif(W.equals(T))num++;\n\t\t}\n\t\tSystem.out.println(num);\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.nextLine();\n\t\tW = W.toLowerCase();\n\t\tint num = 0;\n\t\tfor(;;){\n\t\t\tString T = sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\"))break;\n\t\t\tT = T.toLowerCase();\n\t\t\tif(W.equals(T))num++;\n\t\t}\n\t\tSystem.out.println(num);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String W = sc.nextLine();",
"W",
"sc.nextLine()",
"sc.nextLine",
"sc",
"W = W.toLowerCase()",
"W",
"W.toLowerCase()",
"W.toLowerCase",
"W",
"int num = 0;",
"num",
"0",
"for(;;){\n\t\t\tString T = sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\"))break;\n\t\t\tT = T.toLowerCase();\n\t\t\tif(W.equals(T))num++;\n\t\t}",
";",
"{\n\t\t\tString T = sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\"))break;\n\t\t\tT = T.toLowerCase();\n\t\t\tif(W.equals(T))num++;\n\t\t}",
"{\n\t\t\tString T = sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\"))break;\n\t\t\tT = T.toLowerCase();\n\t\t\tif(W.equals(T))num++;\n\t\t}",
"String T = sc.next();",
"T",
"sc.next()",
"sc.next",
"sc",
"if(T.equals(\"END_OF_TEXT\"))break;",
"T.equals(\"END_OF_TEXT\")",
"T.equals",
"T",
"\"END_OF_TEXT\"",
"break;",
"T = T.toLowerCase()",
"T",
"T.toLowerCase()",
"T.toLowerCase",
"T",
"if(W.equals(T))num++;",
"W.equals(T)",
"W.equals",
"W",
"T",
"num++",
"num",
"System.out.println(num)",
"System.out.println",
"System.out",
"System",
"System.out",
"num",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.nextLine();\n\t\tW = W.toLowerCase();\n\t\tint num = 0;\n\t\tfor(;;){\n\t\t\tString T = sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\"))break;\n\t\t\tT = T.toLowerCase();\n\t\t\tif(W.equals(T))num++;\n\t\t}\n\t\tSystem.out.println(num);\n\t}\t\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tString W = sc.nextLine();\n\t\tW = W.toLowerCase();\n\t\tint num = 0;\n\t\tfor(;;){\n\t\t\tString T = sc.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\"))break;\n\t\t\tT = T.toLowerCase();\n\t\t\tif(W.equals(T))num++;\n\t\t}\n\t\tSystem.out.println(num);\n\t}\t\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
String W = sc.nextLine();
W = W.toLowerCase();
int num = 0;
for(;;){
String T = sc.next();
if(T.equals("END_OF_TEXT"))break;
T = T.toLowerCase();
if(W.equals(T))num++;
}
System.out.println(num);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
40,
17,
30,
0,
13,
17,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
28,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
28,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
40,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
40,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
28,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
55,
60
],
[
60,
61
],
[
61,
62
],
[
8,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
8,
69
],
[
69,
70
],
[
70,
71
],
[
6,
72
],
[
72,
73
]
]
| [
"import java.util.Scanner;\n\nclass Main {\n public static void main(String args[]) {\n\tScanner scanner = new Scanner(System.in);\n\tString search = scanner.nextLine();\t//検索文字\n\tboolean Judge = true;\n \tint count = 0;\n \tString end = \"END_OF_TEXT\";\n \t\n \t\n \twhile( Judge ){\n\t\tString word = scanner.next();\t//文章入力\n \t\t//終わる処理と変換\n \t\tint result = word.lastIndexOf(end);\t//検索結果を入れる\n \t\tif( result != -1 ){\n \t\t\tJudge = false;\n \t\t}else{\n \t\t\tword = word.toLowerCase(); \t\t//小文字に\n \t\t}\n \t\tif( word.equals(search) ) {\n \t\t\tcount++;\n \t\t}\n \t}\n \t//結果出力\n\tSystem.out.println(count);\n \t\n\tscanner.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String args[]) {\n\tScanner scanner = new Scanner(System.in);\n\tString search = scanner.nextLine();\t//検索文字\n\tboolean Judge = true;\n \tint count = 0;\n \tString end = \"END_OF_TEXT\";\n \t\n \t\n \twhile( Judge ){\n\t\tString word = scanner.next();\t//文章入力\n \t\t//終わる処理と変換\n \t\tint result = word.lastIndexOf(end);\t//検索結果を入れる\n \t\tif( result != -1 ){\n \t\t\tJudge = false;\n \t\t}else{\n \t\t\tword = word.toLowerCase(); \t\t//小文字に\n \t\t}\n \t\tif( word.equals(search) ) {\n \t\t\tcount++;\n \t\t}\n \t}\n \t//結果出力\n\tSystem.out.println(count);\n \t\n\tscanner.close();\n }\n}",
"Main",
"public static void main(String args[]) {\n\tScanner scanner = new Scanner(System.in);\n\tString search = scanner.nextLine();\t//検索文字\n\tboolean Judge = true;\n \tint count = 0;\n \tString end = \"END_OF_TEXT\";\n \t\n \t\n \twhile( Judge ){\n\t\tString word = scanner.next();\t//文章入力\n \t\t//終わる処理と変換\n \t\tint result = word.lastIndexOf(end);\t//検索結果を入れる\n \t\tif( result != -1 ){\n \t\t\tJudge = false;\n \t\t}else{\n \t\t\tword = word.toLowerCase(); \t\t//小文字に\n \t\t}\n \t\tif( word.equals(search) ) {\n \t\t\tcount++;\n \t\t}\n \t}\n \t//結果出力\n\tSystem.out.println(count);\n \t\n\tscanner.close();\n }",
"main",
"{\n\tScanner scanner = new Scanner(System.in);\n\tString search = scanner.nextLine();\t//検索文字\n\tboolean Judge = true;\n \tint count = 0;\n \tString end = \"END_OF_TEXT\";\n \t\n \t\n \twhile( Judge ){\n\t\tString word = scanner.next();\t//文章入力\n \t\t//終わる処理と変換\n \t\tint result = word.lastIndexOf(end);\t//検索結果を入れる\n \t\tif( result != -1 ){\n \t\t\tJudge = false;\n \t\t}else{\n \t\t\tword = word.toLowerCase(); \t\t//小文字に\n \t\t}\n \t\tif( word.equals(search) ) {\n \t\t\tcount++;\n \t\t}\n \t}\n \t//結果出力\n\tSystem.out.println(count);\n \t\n\tscanner.close();\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"String search = scanner.nextLine();",
"search",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"boolean Judge = true;",
"Judge",
"true",
"int count = 0;",
"count",
"0",
"String end = \"END_OF_TEXT\";",
"end",
"\"END_OF_TEXT\"",
"while( Judge ){\n\t\tString word = scanner.next();\t//文章入力\n \t\t//終わる処理と変換\n \t\tint result = word.lastIndexOf(end);\t//検索結果を入れる\n \t\tif( result != -1 ){\n \t\t\tJudge = false;\n \t\t}else{\n \t\t\tword = word.toLowerCase(); \t\t//小文字に\n \t\t}\n \t\tif( word.equals(search) ) {\n \t\t\tcount++;\n \t\t}\n \t}",
"Judge",
"{\n\t\tString word = scanner.next();\t//文章入力\n \t\t//終わる処理と変換\n \t\tint result = word.lastIndexOf(end);\t//検索結果を入れる\n \t\tif( result != -1 ){\n \t\t\tJudge = false;\n \t\t}else{\n \t\t\tword = word.toLowerCase(); \t\t//小文字に\n \t\t}\n \t\tif( word.equals(search) ) {\n \t\t\tcount++;\n \t\t}\n \t}",
"String word = scanner.next();",
"word",
"scanner.next()",
"scanner.next",
"scanner",
"int result = word.lastIndexOf(end);",
"result",
"word.lastIndexOf(end)",
"word.lastIndexOf",
"word",
"end",
"if( result != -1 ){\n \t\t\tJudge = false;\n \t\t}else{\n \t\t\tword = word.toLowerCase(); \t\t//小文字に\n \t\t}",
"result != -1",
"result",
"-1",
"1",
"{\n \t\t\tJudge = false;\n \t\t}",
"Judge = false",
"Judge",
"false",
"{\n \t\t\tword = word.toLowerCase(); \t\t//小文字に\n \t\t}",
"word = word.toLowerCase()",
"word",
"word.toLowerCase()",
"word.toLowerCase",
"word",
"if( word.equals(search) ) {\n \t\t\tcount++;\n \t\t}",
"word.equals(search)",
"word.equals",
"word",
"search",
"{\n \t\t\tcount++;\n \t\t}",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"scanner.close()",
"scanner.close",
"scanner",
"String args[]",
"args"
]
| import java.util.Scanner;
class Main {
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
String search = scanner.nextLine(); //検索文字
boolean Judge = true;
int count = 0;
String end = "END_OF_TEXT";
while( Judge ){
String word = scanner.next(); //文章入力
//終わる処理と変換
int result = word.lastIndexOf(end); //検索結果を入れる
if( result != -1 ){
Judge = false;
}else{
word = word.toLowerCase(); //小文字に
}
if( word.equals(search) ) {
count++;
}
}
//結果出力
System.out.println(count);
scanner.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
4,
18,
13,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
14,
4,
18,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
57,
5
],
[
57,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
30,
35
],
[
35,
36
],
[
30,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
38,
43
],
[
37,
44
],
[
44,
45
],
[
45,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
47,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
]
| [
"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 = 0;\n String W = sc.next().toLowerCase();\n while(true){\n String s = sc.next();\n if(s.equals(\"END_OF_TEXT\")){\n break;\n }\n else if(s.toLowerCase().equals(W)){\n count++;\n }\n }\n System.out.printf(\"%d\\n\", count);\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 = 0;\n String W = sc.next().toLowerCase();\n while(true){\n String s = sc.next();\n if(s.equals(\"END_OF_TEXT\")){\n break;\n }\n else if(s.toLowerCase().equals(W)){\n count++;\n }\n }\n System.out.printf(\"%d\\n\", count);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int count = 0;\n String W = sc.next().toLowerCase();\n while(true){\n String s = sc.next();\n if(s.equals(\"END_OF_TEXT\")){\n break;\n }\n else if(s.toLowerCase().equals(W)){\n count++;\n }\n }\n System.out.printf(\"%d\\n\", count);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int count = 0;\n String W = sc.next().toLowerCase();\n while(true){\n String s = sc.next();\n if(s.equals(\"END_OF_TEXT\")){\n break;\n }\n else if(s.toLowerCase().equals(W)){\n count++;\n }\n }\n System.out.printf(\"%d\\n\", count);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int count = 0;",
"count",
"0",
"String W = sc.next().toLowerCase();",
"W",
"sc.next().toLowerCase()",
"sc.next().toLowerCase",
"sc.next()",
"sc.next",
"sc",
"while(true){\n String s = sc.next();\n if(s.equals(\"END_OF_TEXT\")){\n break;\n }\n else if(s.toLowerCase().equals(W)){\n count++;\n }\n }",
"true",
"{\n String s = sc.next();\n if(s.equals(\"END_OF_TEXT\")){\n break;\n }\n else if(s.toLowerCase().equals(W)){\n count++;\n }\n }",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if(s.equals(\"END_OF_TEXT\")){\n break;\n }\n else if(s.toLowerCase().equals(W)){\n count++;\n }",
"s.equals(\"END_OF_TEXT\")",
"s.equals",
"s",
"\"END_OF_TEXT\"",
"{\n break;\n }",
"break;",
"if(s.toLowerCase().equals(W)){\n count++;\n }",
"s.toLowerCase().equals(W)",
"s.toLowerCase().equals",
"s.toLowerCase()",
"s.toLowerCase",
"s",
"W",
"{\n count++;\n }",
"count++",
"count",
"System.out.printf(\"%d\\n\", count)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d\\n\"",
"count",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int count = 0;\n String W = sc.next().toLowerCase();\n while(true){\n String s = sc.next();\n if(s.equals(\"END_OF_TEXT\")){\n break;\n }\n else if(s.toLowerCase().equals(W)){\n count++;\n }\n }\n System.out.printf(\"%d\\n\", count);\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int count = 0;\n String W = sc.next().toLowerCase();\n while(true){\n String s = sc.next();\n if(s.equals(\"END_OF_TEXT\")){\n break;\n }\n else if(s.toLowerCase().equals(W)){\n count++;\n }\n }\n System.out.printf(\"%d\\n\", count);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int count = 0;
String W = sc.next().toLowerCase();
while(true){
String s = sc.next();
if(s.equals("END_OF_TEXT")){
break;
}
else if(s.toLowerCase().equals(W)){
count++;
}
}
System.out.printf("%d\n", count);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
42,
2,
4,
18,
0,
13,
4,
18,
13,
17,
17,
30,
41,
13,
4,
18,
13,
17,
11,
1,
0,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
4,
18,
13,
4,
18,
18,
13,
13,
30,
40,
13,
14,
4,
18,
18,
13,
13,
17,
3,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
98,
11
],
[
98,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
29
],
[
29,
30
],
[
14,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
33,
40
],
[
32,
41
],
[
31,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
42,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
49,
59
],
[
59,
60
],
[
60,
61
],
[
49,
62
],
[
63,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
65,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
64,
75
],
[
75,
76
],
[
76,
77
],
[
63,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
78,
85
],
[
14,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
12,
95
],
[
95,
96
],
[
0,
97
],
[
97,
98
],
[
97,
99
]
]
| [
"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\tString INPUT = br.readLine();\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tString a;\n\n\t\twhile( (a = br.readLine()).equals(\"END_OF_TEXT\")!=true ){\n\t\t\tString[] input = a.split(\" \");\n\t\t\tfor( i=0 ; i<input.length ; i++ ){\n\t\t\t\tif( (INPUT.toUpperCase()).equals(input[i].toUpperCase()) ){\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tif( input[i].equals(\"END_OF_TEXT\") ) break;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(Integer.toString(j));\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\tString INPUT = br.readLine();\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tString a;\n\n\t\twhile( (a = br.readLine()).equals(\"END_OF_TEXT\")!=true ){\n\t\t\tString[] input = a.split(\" \");\n\t\t\tfor( i=0 ; i<input.length ; i++ ){\n\t\t\t\tif( (INPUT.toUpperCase()).equals(input[i].toUpperCase()) ){\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tif( input[i].equals(\"END_OF_TEXT\") ) break;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(Integer.toString(j));\n\t}\n}",
"Main",
"public static void main(String[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString INPUT = br.readLine();\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tString a;\n\n\t\twhile( (a = br.readLine()).equals(\"END_OF_TEXT\")!=true ){\n\t\t\tString[] input = a.split(\" \");\n\t\t\tfor( i=0 ; i<input.length ; i++ ){\n\t\t\t\tif( (INPUT.toUpperCase()).equals(input[i].toUpperCase()) ){\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tif( input[i].equals(\"END_OF_TEXT\") ) break;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(Integer.toString(j));\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString INPUT = br.readLine();\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tString a;\n\n\t\twhile( (a = br.readLine()).equals(\"END_OF_TEXT\")!=true ){\n\t\t\tString[] input = a.split(\" \");\n\t\t\tfor( i=0 ; i<input.length ; i++ ){\n\t\t\t\tif( (INPUT.toUpperCase()).equals(input[i].toUpperCase()) ){\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tif( input[i].equals(\"END_OF_TEXT\") ) break;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(Integer.toString(j));\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String INPUT = br.readLine();",
"INPUT",
"br.readLine()",
"br.readLine",
"br",
"int i = 0;",
"i",
"0",
"int j = 0;",
"j",
"0",
"String a;",
"a",
"while( (a = br.readLine()).equals(\"END_OF_TEXT\")!=true ){\n\t\t\tString[] input = a.split(\" \");\n\t\t\tfor( i=0 ; i<input.length ; i++ ){\n\t\t\t\tif( (INPUT.toUpperCase()).equals(input[i].toUpperCase()) ){\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tif( input[i].equals(\"END_OF_TEXT\") ) break;\n\t\t\t}\n\t\t}",
"(a = br.readLine()).equals(\"END_OF_TEXT\")!=true",
"(a = br.readLine()).equals(\"END_OF_TEXT\")",
"(a = br.readLine()).equals",
"(a = br.readLine())",
"a",
"br.readLine()",
"br.readLine",
"br",
"\"END_OF_TEXT\"",
"true",
"{\n\t\t\tString[] input = a.split(\" \");\n\t\t\tfor( i=0 ; i<input.length ; i++ ){\n\t\t\t\tif( (INPUT.toUpperCase()).equals(input[i].toUpperCase()) ){\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tif( input[i].equals(\"END_OF_TEXT\") ) break;\n\t\t\t}\n\t\t}",
"String[] input = a.split(\" \");",
"input",
"a.split(\" \")",
"a.split",
"a",
"\" \"",
"for( i=0 ; i<input.length ; i++ ){\n\t\t\t\tif( (INPUT.toUpperCase()).equals(input[i].toUpperCase()) ){\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tif( input[i].equals(\"END_OF_TEXT\") ) break;\n\t\t\t}",
"i=0 ;",
"i=0",
"i",
"0",
"i<input.length",
"i",
"input.length",
"input",
"input.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tif( (INPUT.toUpperCase()).equals(input[i].toUpperCase()) ){\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tif( input[i].equals(\"END_OF_TEXT\") ) break;\n\t\t\t}",
"{\n\t\t\t\tif( (INPUT.toUpperCase()).equals(input[i].toUpperCase()) ){\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tif( input[i].equals(\"END_OF_TEXT\") ) break;\n\t\t\t}",
"if( (INPUT.toUpperCase()).equals(input[i].toUpperCase()) ){\n\t\t\t\t\tj++;\n\t\t\t\t}",
"(INPUT.toUpperCase()).equals(input[i].toUpperCase())",
"(INPUT.toUpperCase()).equals",
"(INPUT.toUpperCase())",
"INPUT.toUpperCase",
"INPUT",
"input[i].toUpperCase()",
"input[i].toUpperCase",
"input[i]",
"input",
"i",
"{\n\t\t\t\t\tj++;\n\t\t\t\t}",
"j++",
"j",
"if( input[i].equals(\"END_OF_TEXT\") ) break;",
"input[i].equals(\"END_OF_TEXT\")",
"input[i].equals",
"input[i]",
"input",
"i",
"\"END_OF_TEXT\"",
"break;",
"System.out.println(Integer.toString(j))",
"System.out.println",
"System.out",
"System",
"System.out",
"Integer.toString(j)",
"Integer.toString",
"Integer",
"j",
"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\tString INPUT = br.readLine();\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tString a;\n\n\t\twhile( (a = br.readLine()).equals(\"END_OF_TEXT\")!=true ){\n\t\t\tString[] input = a.split(\" \");\n\t\t\tfor( i=0 ; i<input.length ; i++ ){\n\t\t\t\tif( (INPUT.toUpperCase()).equals(input[i].toUpperCase()) ){\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tif( input[i].equals(\"END_OF_TEXT\") ) break;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(Integer.toString(j));\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\tString INPUT = br.readLine();\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tString a;\n\n\t\twhile( (a = br.readLine()).equals(\"END_OF_TEXT\")!=true ){\n\t\t\tString[] input = a.split(\" \");\n\t\t\tfor( i=0 ; i<input.length ; i++ ){\n\t\t\t\tif( (INPUT.toUpperCase()).equals(input[i].toUpperCase()) ){\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tif( input[i].equals(\"END_OF_TEXT\") ) break;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(Integer.toString(j));\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));
String INPUT = br.readLine();
int i = 0;
int j = 0;
String a;
while( (a = br.readLine()).equals("END_OF_TEXT")!=true ){
String[] input = a.split(" ");
for( i=0 ; i<input.length ; i++ ){
if( (INPUT.toUpperCase()).equals(input[i].toUpperCase()) ){
j++;
}
if( input[i].equals("END_OF_TEXT") ) break;
}
}
System.out.println(Integer.toString(j));
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
17,
42,
40,
4,
18,
0,
13,
4,
18,
13,
17,
30,
14,
4,
18,
4,
18,
13,
13,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
51,
5
],
[
51,
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
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
24,
31
],
[
22,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
34,
39
],
[
33,
40
],
[
40,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
6,
48
],
[
48,
49
],
[
0,
50
],
[
50,
51
],
[
50,
52
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String word = sc.next();\n String text;\n int count = 0;\n while (!(text=sc.next()).equals(\"END_OF_TEXT\")) {\n if (text.toLowerCase().equals(word)) count++;\n }\n System.out.println(count);\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 word = sc.next();\n String text;\n int count = 0;\n while (!(text=sc.next()).equals(\"END_OF_TEXT\")) {\n if (text.toLowerCase().equals(word)) count++;\n }\n System.out.println(count);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String word = sc.next();\n String text;\n int count = 0;\n while (!(text=sc.next()).equals(\"END_OF_TEXT\")) {\n if (text.toLowerCase().equals(word)) count++;\n }\n System.out.println(count);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String word = sc.next();\n String text;\n int count = 0;\n while (!(text=sc.next()).equals(\"END_OF_TEXT\")) {\n if (text.toLowerCase().equals(word)) count++;\n }\n System.out.println(count);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String word = sc.next();",
"word",
"sc.next()",
"sc.next",
"sc",
"String text;",
"text",
"int count = 0;",
"count",
"0",
"while (!(text=sc.next()).equals(\"END_OF_TEXT\")) {\n if (text.toLowerCase().equals(word)) count++;\n }",
"!(text=sc.next()).equals(\"END_OF_TEXT\")",
"(text=sc.next()).equals(\"END_OF_TEXT\")",
"(text=sc.next()).equals",
"(text=sc.next())",
"text",
"sc.next()",
"sc.next",
"sc",
"\"END_OF_TEXT\"",
"{\n if (text.toLowerCase().equals(word)) count++;\n }",
"if (text.toLowerCase().equals(word)) count++;",
"text.toLowerCase().equals(word)",
"text.toLowerCase().equals",
"text.toLowerCase()",
"text.toLowerCase",
"text",
"word",
"count++",
"count",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String word = sc.next();\n String text;\n int count = 0;\n while (!(text=sc.next()).equals(\"END_OF_TEXT\")) {\n if (text.toLowerCase().equals(word)) count++;\n }\n System.out.println(count);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String word = sc.next();\n String text;\n int count = 0;\n while (!(text=sc.next()).equals(\"END_OF_TEXT\")) {\n if (text.toLowerCase().equals(word)) count++;\n }\n System.out.println(count);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String word = sc.next();
String text;
int count = 0;
while (!(text=sc.next()).equals("END_OF_TEXT")) {
if (text.toLowerCase().equals(word)) count++;
}
System.out.println(count);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
41,
13,
20,
41,
13,
17,
42,
40,
4,
18,
13,
17,
30,
0,
13,
4,
18,
4,
18,
13,
14,
4,
18,
13,
13,
30,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
6,
53
],
[
53,
54
]
]
| [
"import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString W = in.next().toLowerCase();\n\t\tString T = new String();\n\t\tint cnt = 0;\n\t\twhile (!in.hasNext(\"END_OF_TEXT\")) {\n\t\t\tT = in.next().toLowerCase();\n\t\t\tif (T.matches(W)) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString W = in.next().toLowerCase();\n\t\tString T = new String();\n\t\tint cnt = 0;\n\t\twhile (!in.hasNext(\"END_OF_TEXT\")) {\n\t\t\tT = in.next().toLowerCase();\n\t\t\tif (T.matches(W)) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString W = in.next().toLowerCase();\n\t\tString T = new String();\n\t\tint cnt = 0;\n\t\twhile (!in.hasNext(\"END_OF_TEXT\")) {\n\t\t\tT = in.next().toLowerCase();\n\t\t\tif (T.matches(W)) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}",
"main",
"{\n\t\tScanner in = new Scanner(System.in);\n\t\tString W = in.next().toLowerCase();\n\t\tString T = new String();\n\t\tint cnt = 0;\n\t\twhile (!in.hasNext(\"END_OF_TEXT\")) {\n\t\t\tT = in.next().toLowerCase();\n\t\t\tif (T.matches(W)) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(cnt);\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"String W = in.next().toLowerCase();",
"W",
"in.next().toLowerCase()",
"in.next().toLowerCase",
"in.next()",
"in.next",
"in",
"String T = new String();",
"T",
"new String()",
"int cnt = 0;",
"cnt",
"0",
"while (!in.hasNext(\"END_OF_TEXT\")) {\n\t\t\tT = in.next().toLowerCase();\n\t\t\tif (T.matches(W)) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}",
"!in.hasNext(\"END_OF_TEXT\")",
"in.hasNext(\"END_OF_TEXT\")",
"in.hasNext",
"in",
"\"END_OF_TEXT\"",
"{\n\t\t\tT = in.next().toLowerCase();\n\t\t\tif (T.matches(W)) {\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}",
"T = in.next().toLowerCase()",
"T",
"in.next().toLowerCase()",
"in.next().toLowerCase",
"in.next()",
"in.next",
"in",
"if (T.matches(W)) {\n\t\t\t\tcnt++;\n\t\t\t}",
"T.matches(W)",
"T.matches",
"T",
"W",
"{\n\t\t\t\tcnt++;\n\t\t\t}",
"cnt++",
"cnt",
"System.out.println(cnt)",
"System.out.println",
"System.out",
"System",
"System.out",
"cnt",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String W = in.next().toLowerCase();
String T = new String();
int cnt = 0;
while (!in.hasNext("END_OF_TEXT")) {
T = in.next().toLowerCase();
if (T.matches(W)) {
cnt++;
}
}
System.out.println(cnt);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
42,
17,
30,
4,
18,
13,
17,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
13,
14,
4,
18,
13,
17,
3,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
17,
13,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
99,
11
],
[
99,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
23,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
23,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
23,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
40,
45
],
[
23,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
52,
53
],
[
23,
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
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
73,
74
],
[
66,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
78,
82
],
[
66,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
83,
87
],
[
23,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
94,
95
],
[
12,
96
],
[
96,
97
],
[
0,
98
],
[
98,
99
],
[
98,
100
]
]
| [
"import java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n while (true){\n sb.delete(0,sb.length());\n String line = br.readLine();\n sb.append(line);\n if (line.equals(\"-\")) break;\n int m = Integer.parseInt(br.readLine());\n for (int i=0; i<m; i++){\n int hi = Integer.parseInt(br.readLine());\n sb.append(sb.substring(0,hi));\n sb.delete(0,hi);\n }\n System.out.println(sb.toString());\n }\n }\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 public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n while (true){\n sb.delete(0,sb.length());\n String line = br.readLine();\n sb.append(line);\n if (line.equals(\"-\")) break;\n int m = Integer.parseInt(br.readLine());\n for (int i=0; i<m; i++){\n int hi = Integer.parseInt(br.readLine());\n sb.append(sb.substring(0,hi));\n sb.delete(0,hi);\n }\n System.out.println(sb.toString());\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n while (true){\n sb.delete(0,sb.length());\n String line = br.readLine();\n sb.append(line);\n if (line.equals(\"-\")) break;\n int m = Integer.parseInt(br.readLine());\n for (int i=0; i<m; i++){\n int hi = Integer.parseInt(br.readLine());\n sb.append(sb.substring(0,hi));\n sb.delete(0,hi);\n }\n System.out.println(sb.toString());\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n while (true){\n sb.delete(0,sb.length());\n String line = br.readLine();\n sb.append(line);\n if (line.equals(\"-\")) break;\n int m = Integer.parseInt(br.readLine());\n for (int i=0; i<m; i++){\n int hi = Integer.parseInt(br.readLine());\n sb.append(sb.substring(0,hi));\n sb.delete(0,hi);\n }\n System.out.println(sb.toString());\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"while (true){\n sb.delete(0,sb.length());\n String line = br.readLine();\n sb.append(line);\n if (line.equals(\"-\")) break;\n int m = Integer.parseInt(br.readLine());\n for (int i=0; i<m; i++){\n int hi = Integer.parseInt(br.readLine());\n sb.append(sb.substring(0,hi));\n sb.delete(0,hi);\n }\n System.out.println(sb.toString());\n }",
"true",
"{\n sb.delete(0,sb.length());\n String line = br.readLine();\n sb.append(line);\n if (line.equals(\"-\")) break;\n int m = Integer.parseInt(br.readLine());\n for (int i=0; i<m; i++){\n int hi = Integer.parseInt(br.readLine());\n sb.append(sb.substring(0,hi));\n sb.delete(0,hi);\n }\n System.out.println(sb.toString());\n }",
"sb.delete(0,sb.length())",
"sb.delete",
"sb",
"0",
"sb.length()",
"sb.length",
"sb",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"sb.append(line)",
"sb.append",
"sb",
"line",
"if (line.equals(\"-\")) break;",
"line.equals(\"-\")",
"line.equals",
"line",
"\"-\"",
"break;",
"int m = Integer.parseInt(br.readLine());",
"m",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for (int i=0; i<m; i++){\n int hi = Integer.parseInt(br.readLine());\n sb.append(sb.substring(0,hi));\n sb.delete(0,hi);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n int hi = Integer.parseInt(br.readLine());\n sb.append(sb.substring(0,hi));\n sb.delete(0,hi);\n }",
"{\n int hi = Integer.parseInt(br.readLine());\n sb.append(sb.substring(0,hi));\n sb.delete(0,hi);\n }",
"int hi = Integer.parseInt(br.readLine());",
"hi",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"sb.append(sb.substring(0,hi))",
"sb.append",
"sb",
"sb.substring(0,hi)",
"sb.substring",
"sb",
"0",
"hi",
"sb.delete(0,hi)",
"sb.delete",
"sb",
"0",
"hi",
"System.out.println(sb.toString())",
"System.out.println",
"System.out",
"System",
"System.out",
"sb.toString()",
"sb.toString",
"sb",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n while (true){\n sb.delete(0,sb.length());\n String line = br.readLine();\n sb.append(line);\n if (line.equals(\"-\")) break;\n int m = Integer.parseInt(br.readLine());\n for (int i=0; i<m; i++){\n int hi = Integer.parseInt(br.readLine());\n sb.append(sb.substring(0,hi));\n sb.delete(0,hi);\n }\n System.out.println(sb.toString());\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 StringBuilder sb = new StringBuilder();\n while (true){\n sb.delete(0,sb.length());\n String line = br.readLine();\n sb.append(line);\n if (line.equals(\"-\")) break;\n int m = Integer.parseInt(br.readLine());\n for (int i=0; i<m; i++){\n int hi = Integer.parseInt(br.readLine());\n sb.append(sb.substring(0,hi));\n sb.delete(0,hi);\n }\n System.out.println(sb.toString());\n }\n }\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 {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
while (true){
sb.delete(0,sb.length());
String line = br.readLine();
sb.append(line);
if (line.equals("-")) break;
int m = Integer.parseInt(br.readLine());
for (int i=0; i<m; i++){
int hi = Integer.parseInt(br.readLine());
sb.append(sb.substring(0,hi));
sb.delete(0,hi);
}
System.out.println(sb.toString());
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
20,
42,
17,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
13,
41,
13,
0,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
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,
18,
13,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
151,
11
],
[
151,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
20,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
31,
36
],
[
25,
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
],
[
53,
54
],
[
52,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
25,
59
],
[
59,
60
],
[
25,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
25,
66
],
[
66,
67
],
[
66,
68
],
[
25,
70
],
[
70,
71
],
[
70,
72
],
[
25,
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
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
91,
92
],
[
85,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
25,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
103,
104
],
[
103,
105
],
[
98,
106
],
[
106,
107
],
[
107,
108
],
[
98,
109
],
[
110,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
114,
115
],
[
115,
116
],
[
25,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
117,
127
],
[
127,
128
],
[
128,
129
],
[
117,
130
],
[
131,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
137,
138
],
[
138,
139
],
[
25,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
14,
145
],
[
145,
146
],
[
146,
147
],
[
12,
148
],
[
148,
149
],
[
0,
150
],
[
150,
151
],
[
150,
152
]
]
| [
"import java.util.Scanner;\nimport java.util.Queue;\nimport java.util.ArrayDeque;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s;\n Queue<Character> q = new ArrayDeque<>();\n\n while (true) {\n s = sc.next();\n if (s.equals(\"-\"))\n break;\n \n for (int i = 0; i < s.length(); i++) {\n q.add(s.charAt(i));\n }\n\n int m;\n m = sc.nextInt();\n\n int[] h = new int[m];\n int sum = 0;\n\n for (int i = 0; i < m; i++) {\n h[i] = sc.nextInt();\n sum += h[i];\n }\n\n for (int i = 0; i < sum; i++) {\n q.add(q.poll());\n }\n for (int i = 0; i < s.length(); i++) {\n System.out.print(q.poll());\n }\n System.out.println();\n }\n\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Queue;",
"Queue",
"java.util",
"import java.util.ArrayDeque;",
"ArrayDeque",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s;\n Queue<Character> q = new ArrayDeque<>();\n\n while (true) {\n s = sc.next();\n if (s.equals(\"-\"))\n break;\n \n for (int i = 0; i < s.length(); i++) {\n q.add(s.charAt(i));\n }\n\n int m;\n m = sc.nextInt();\n\n int[] h = new int[m];\n int sum = 0;\n\n for (int i = 0; i < m; i++) {\n h[i] = sc.nextInt();\n sum += h[i];\n }\n\n for (int i = 0; i < sum; i++) {\n q.add(q.poll());\n }\n for (int i = 0; i < s.length(); i++) {\n System.out.print(q.poll());\n }\n System.out.println();\n }\n\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s;\n Queue<Character> q = new ArrayDeque<>();\n\n while (true) {\n s = sc.next();\n if (s.equals(\"-\"))\n break;\n \n for (int i = 0; i < s.length(); i++) {\n q.add(s.charAt(i));\n }\n\n int m;\n m = sc.nextInt();\n\n int[] h = new int[m];\n int sum = 0;\n\n for (int i = 0; i < m; i++) {\n h[i] = sc.nextInt();\n sum += h[i];\n }\n\n for (int i = 0; i < sum; i++) {\n q.add(q.poll());\n }\n for (int i = 0; i < s.length(); i++) {\n System.out.print(q.poll());\n }\n System.out.println();\n }\n\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String s;\n Queue<Character> q = new ArrayDeque<>();\n\n while (true) {\n s = sc.next();\n if (s.equals(\"-\"))\n break;\n \n for (int i = 0; i < s.length(); i++) {\n q.add(s.charAt(i));\n }\n\n int m;\n m = sc.nextInt();\n\n int[] h = new int[m];\n int sum = 0;\n\n for (int i = 0; i < m; i++) {\n h[i] = sc.nextInt();\n sum += h[i];\n }\n\n for (int i = 0; i < sum; i++) {\n q.add(q.poll());\n }\n for (int i = 0; i < s.length(); i++) {\n System.out.print(q.poll());\n }\n System.out.println();\n }\n\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s;",
"s",
"Queue<Character> q = new ArrayDeque<>();",
"q",
"new ArrayDeque<>()",
"while (true) {\n s = sc.next();\n if (s.equals(\"-\"))\n break;\n \n for (int i = 0; i < s.length(); i++) {\n q.add(s.charAt(i));\n }\n\n int m;\n m = sc.nextInt();\n\n int[] h = new int[m];\n int sum = 0;\n\n for (int i = 0; i < m; i++) {\n h[i] = sc.nextInt();\n sum += h[i];\n }\n\n for (int i = 0; i < sum; i++) {\n q.add(q.poll());\n }\n for (int i = 0; i < s.length(); i++) {\n System.out.print(q.poll());\n }\n System.out.println();\n }",
"true",
"{\n s = sc.next();\n if (s.equals(\"-\"))\n break;\n \n for (int i = 0; i < s.length(); i++) {\n q.add(s.charAt(i));\n }\n\n int m;\n m = sc.nextInt();\n\n int[] h = new int[m];\n int sum = 0;\n\n for (int i = 0; i < m; i++) {\n h[i] = sc.nextInt();\n sum += h[i];\n }\n\n for (int i = 0; i < sum; i++) {\n q.add(q.poll());\n }\n for (int i = 0; i < s.length(); i++) {\n System.out.print(q.poll());\n }\n System.out.println();\n }",
"s = sc.next()",
"s",
"sc.next()",
"sc.next",
"sc",
"if (s.equals(\"-\"))\n break;",
"s.equals(\"-\")",
"s.equals",
"s",
"\"-\"",
"break;",
"for (int i = 0; i < s.length(); i++) {\n q.add(s.charAt(i));\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n q.add(s.charAt(i));\n }",
"{\n q.add(s.charAt(i));\n }",
"q.add(s.charAt(i))",
"q.add",
"q",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"int m;",
"m",
"m = sc.nextInt()",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] h = new int[m];",
"h",
"new int[m]",
"m",
"int sum = 0;",
"sum",
"0",
"for (int i = 0; i < m; i++) {\n h[i] = sc.nextInt();\n sum += h[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n h[i] = sc.nextInt();\n sum += h[i];\n }",
"{\n h[i] = sc.nextInt();\n sum += h[i];\n }",
"h[i] = sc.nextInt()",
"h[i]",
"h",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum += h[i]",
"sum",
"h[i]",
"h",
"i",
"for (int i = 0; i < sum; i++) {\n q.add(q.poll());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < sum",
"i",
"sum",
"i++",
"i++",
"i",
"{\n q.add(q.poll());\n }",
"{\n q.add(q.poll());\n }",
"q.add(q.poll())",
"q.add",
"q",
"q.poll()",
"q.poll",
"q",
"for (int i = 0; i < s.length(); i++) {\n System.out.print(q.poll());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n System.out.print(q.poll());\n }",
"{\n System.out.print(q.poll());\n }",
"System.out.print(q.poll())",
"System.out.print",
"System.out",
"System",
"System.out",
"q.poll()",
"q.poll",
"q",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"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 s;\n Queue<Character> q = new ArrayDeque<>();\n\n while (true) {\n s = sc.next();\n if (s.equals(\"-\"))\n break;\n \n for (int i = 0; i < s.length(); i++) {\n q.add(s.charAt(i));\n }\n\n int m;\n m = sc.nextInt();\n\n int[] h = new int[m];\n int sum = 0;\n\n for (int i = 0; i < m; i++) {\n h[i] = sc.nextInt();\n sum += h[i];\n }\n\n for (int i = 0; i < sum; i++) {\n q.add(q.poll());\n }\n for (int i = 0; i < s.length(); i++) {\n System.out.print(q.poll());\n }\n System.out.println();\n }\n\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s;\n Queue<Character> q = new ArrayDeque<>();\n\n while (true) {\n s = sc.next();\n if (s.equals(\"-\"))\n break;\n \n for (int i = 0; i < s.length(); i++) {\n q.add(s.charAt(i));\n }\n\n int m;\n m = sc.nextInt();\n\n int[] h = new int[m];\n int sum = 0;\n\n for (int i = 0; i < m; i++) {\n h[i] = sc.nextInt();\n sum += h[i];\n }\n\n for (int i = 0; i < sum; i++) {\n q.add(q.poll());\n }\n for (int i = 0; i < s.length(); i++) {\n System.out.print(q.poll());\n }\n System.out.println();\n }\n\n sc.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
import java.util.Queue;
import java.util.ArrayDeque;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s;
Queue<Character> q = new ArrayDeque<>();
while (true) {
s = sc.next();
if (s.equals("-"))
break;
for (int i = 0; i < s.length(); i++) {
q.add(s.charAt(i));
}
int m;
m = sc.nextInt();
int[] h = new int[m];
int sum = 0;
for (int i = 0; i < m; i++) {
h[i] = sc.nextInt();
sum += h[i];
}
for (int i = 0; i < sum; i++) {
q.add(q.poll());
}
for (int i = 0; i < s.length(); i++) {
System.out.print(q.poll());
}
System.out.println();
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
20,
17,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
41,
13,
4,
18,
13,
41,
13,
20,
4,
18,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
2,
13,
4,
18,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
18,
13,
2,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
186,
5
],
[
186,
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
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
21,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
27,
32
],
[
21,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
21,
38
],
[
38,
39
],
[
38,
40
],
[
41,
42
],
[
42,
43
],
[
21,
44
],
[
44,
45
],
[
44,
46
],
[
21,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
21,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
67,
77
],
[
77,
78
],
[
78,
79
],
[
67,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
21,
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
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
110,
112
],
[
103,
113
],
[
113,
114
],
[
114,
115
],
[
103,
116
],
[
117,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
118,
126
],
[
126,
127
],
[
126,
128
],
[
102,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
129,
139
],
[
139,
140
],
[
140,
141
],
[
129,
142
],
[
143,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
152,
154
],
[
21,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
155,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
155,
165
],
[
165,
166
],
[
166,
167
],
[
155,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
169,
174
],
[
174,
175
],
[
174,
176
],
[
21,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
6,
183
],
[
183,
184
],
[
0,
185
],
[
185,
186
],
[
185,
187
]
]
| [
"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 = 1;\n int length[] = new int[10];\n\n while(true){\n String str = sc.next();\n if(str.equals(\"-\")) break;\n int m = sc.nextInt();\n int h[] = new int[str.length()];\n char har[] = new char[1000];\n\n for(int i=0; i<m; i++) h[i] = sc.nextInt();\n\n for(int i=0; i<str.length(); i++){\n har[i] = str.charAt(i);\n \n }\n\n //int t = str.length();\n\n for(int i=0; i<m; i++){\n for(int j=0; j<h[i]; j++){\n har[j+str.length()] = har[j];\n }\n for(int j=0; j<=str.length(); j++){\n har[j] = har[j+h[i]];\n }\n }\n //length[count] = str.length(); \n //count++; \n for(int i=0; i<str.length(); i++) System.out.print(har[i]);\n System.out.println(\"\");\n \n }\n \n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int count = 1;\n int length[] = new int[10];\n\n while(true){\n String str = sc.next();\n if(str.equals(\"-\")) break;\n int m = sc.nextInt();\n int h[] = new int[str.length()];\n char har[] = new char[1000];\n\n for(int i=0; i<m; i++) h[i] = sc.nextInt();\n\n for(int i=0; i<str.length(); i++){\n har[i] = str.charAt(i);\n \n }\n\n //int t = str.length();\n\n for(int i=0; i<m; i++){\n for(int j=0; j<h[i]; j++){\n har[j+str.length()] = har[j];\n }\n for(int j=0; j<=str.length(); j++){\n har[j] = har[j+h[i]];\n }\n }\n //length[count] = str.length(); \n //count++; \n for(int i=0; i<str.length(); i++) System.out.print(har[i]);\n System.out.println(\"\");\n \n }\n \n }\n}",
"Main",
"public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int count = 1;\n int length[] = new int[10];\n\n while(true){\n String str = sc.next();\n if(str.equals(\"-\")) break;\n int m = sc.nextInt();\n int h[] = new int[str.length()];\n char har[] = new char[1000];\n\n for(int i=0; i<m; i++) h[i] = sc.nextInt();\n\n for(int i=0; i<str.length(); i++){\n har[i] = str.charAt(i);\n \n }\n\n //int t = str.length();\n\n for(int i=0; i<m; i++){\n for(int j=0; j<h[i]; j++){\n har[j+str.length()] = har[j];\n }\n for(int j=0; j<=str.length(); j++){\n har[j] = har[j+h[i]];\n }\n }\n //length[count] = str.length(); \n //count++; \n for(int i=0; i<str.length(); i++) System.out.print(har[i]);\n System.out.println(\"\");\n \n }\n \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int count = 1;\n int length[] = new int[10];\n\n while(true){\n String str = sc.next();\n if(str.equals(\"-\")) break;\n int m = sc.nextInt();\n int h[] = new int[str.length()];\n char har[] = new char[1000];\n\n for(int i=0; i<m; i++) h[i] = sc.nextInt();\n\n for(int i=0; i<str.length(); i++){\n har[i] = str.charAt(i);\n \n }\n\n //int t = str.length();\n\n for(int i=0; i<m; i++){\n for(int j=0; j<h[i]; j++){\n har[j+str.length()] = har[j];\n }\n for(int j=0; j<=str.length(); j++){\n har[j] = har[j+h[i]];\n }\n }\n //length[count] = str.length(); \n //count++; \n for(int i=0; i<str.length(); i++) System.out.print(har[i]);\n System.out.println(\"\");\n \n }\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int count = 1;",
"count",
"1",
"int length[] = new int[10];",
"length",
"new int[10]",
"10",
"while(true){\n String str = sc.next();\n if(str.equals(\"-\")) break;\n int m = sc.nextInt();\n int h[] = new int[str.length()];\n char har[] = new char[1000];\n\n for(int i=0; i<m; i++) h[i] = sc.nextInt();\n\n for(int i=0; i<str.length(); i++){\n har[i] = str.charAt(i);\n \n }\n\n //int t = str.length();\n\n for(int i=0; i<m; i++){\n for(int j=0; j<h[i]; j++){\n har[j+str.length()] = har[j];\n }\n for(int j=0; j<=str.length(); j++){\n har[j] = har[j+h[i]];\n }\n }\n //length[count] = str.length(); \n //count++; \n for(int i=0; i<str.length(); i++) System.out.print(har[i]);\n System.out.println(\"\");\n \n }",
"true",
"{\n String str = sc.next();\n if(str.equals(\"-\")) break;\n int m = sc.nextInt();\n int h[] = new int[str.length()];\n char har[] = new char[1000];\n\n for(int i=0; i<m; i++) h[i] = sc.nextInt();\n\n for(int i=0; i<str.length(); i++){\n har[i] = str.charAt(i);\n \n }\n\n //int t = str.length();\n\n for(int i=0; i<m; i++){\n for(int j=0; j<h[i]; j++){\n har[j+str.length()] = har[j];\n }\n for(int j=0; j<=str.length(); j++){\n har[j] = har[j+h[i]];\n }\n }\n //length[count] = str.length(); \n //count++; \n for(int i=0; i<str.length(); i++) System.out.print(har[i]);\n System.out.println(\"\");\n \n }",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"if(str.equals(\"-\")) break;",
"str.equals(\"-\")",
"str.equals",
"str",
"\"-\"",
"break;",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int h[] = new int[str.length()];",
"h",
"new int[str.length()]",
"str.length()",
"str.length",
"str",
"char har[] = new char[1000];",
"har",
"new char[1000]",
"1000",
"for(int i=0; i<m; i++) h[i] = sc.nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"h[i] = sc.nextInt();",
"h[i] = sc.nextInt()",
"h[i]",
"h",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0; i<str.length(); i++){\n har[i] = str.charAt(i);\n \n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n har[i] = str.charAt(i);\n \n }",
"{\n har[i] = str.charAt(i);\n \n }",
"har[i] = str.charAt(i)",
"har[i]",
"har",
"i",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"for(int i=0; i<m; i++){\n for(int j=0; j<h[i]; j++){\n har[j+str.length()] = har[j];\n }\n for(int j=0; j<=str.length(); j++){\n har[j] = har[j+h[i]];\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n for(int j=0; j<h[i]; j++){\n har[j+str.length()] = har[j];\n }\n for(int j=0; j<=str.length(); j++){\n har[j] = har[j+h[i]];\n }\n }",
"{\n for(int j=0; j<h[i]; j++){\n har[j+str.length()] = har[j];\n }\n for(int j=0; j<=str.length(); j++){\n har[j] = har[j+h[i]];\n }\n }",
"for(int j=0; j<h[i]; j++){\n har[j+str.length()] = har[j];\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<h[i]",
"j",
"h[i]",
"h",
"i",
"j++",
"j++",
"j",
"{\n har[j+str.length()] = har[j];\n }",
"{\n har[j+str.length()] = har[j];\n }",
"har[j+str.length()] = har[j]",
"har[j+str.length()]",
"har",
"j+str.length()",
"j",
"str.length()",
"str.length",
"str",
"har[j]",
"har",
"j",
"for(int j=0; j<=str.length(); j++){\n har[j] = har[j+h[i]];\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<=str.length()",
"j",
"str.length()",
"str.length",
"str",
"j++",
"j++",
"j",
"{\n har[j] = har[j+h[i]];\n }",
"{\n har[j] = har[j+h[i]];\n }",
"har[j] = har[j+h[i]]",
"har[j]",
"har",
"j",
"har[j+h[i]]",
"har",
"j+h[i]",
"j",
"h[i]",
"h",
"i",
"for(int i=0; i<str.length(); i++) System.out.print(har[i]);",
"int i=0;",
"int i=0;",
"i",
"0",
"i<str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"System.out.print(har[i]);",
"System.out.print(har[i])",
"System.out.print",
"System.out",
"System",
"System.out",
"har[i]",
"har",
"i",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"String args[]",
"args",
"public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int count = 1;\n int length[] = new int[10];\n\n while(true){\n String str = sc.next();\n if(str.equals(\"-\")) break;\n int m = sc.nextInt();\n int h[] = new int[str.length()];\n char har[] = new char[1000];\n\n for(int i=0; i<m; i++) h[i] = sc.nextInt();\n\n for(int i=0; i<str.length(); i++){\n har[i] = str.charAt(i);\n \n }\n\n //int t = str.length();\n\n for(int i=0; i<m; i++){\n for(int j=0; j<h[i]; j++){\n har[j+str.length()] = har[j];\n }\n for(int j=0; j<=str.length(); j++){\n har[j] = har[j+h[i]];\n }\n }\n //length[count] = str.length(); \n //count++; \n for(int i=0; i<str.length(); i++) System.out.print(har[i]);\n System.out.println(\"\");\n \n }\n \n }\n}",
"public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int count = 1;\n int length[] = new int[10];\n\n while(true){\n String str = sc.next();\n if(str.equals(\"-\")) break;\n int m = sc.nextInt();\n int h[] = new int[str.length()];\n char har[] = new char[1000];\n\n for(int i=0; i<m; i++) h[i] = sc.nextInt();\n\n for(int i=0; i<str.length(); i++){\n har[i] = str.charAt(i);\n \n }\n\n //int t = str.length();\n\n for(int i=0; i<m; i++){\n for(int j=0; j<h[i]; j++){\n har[j+str.length()] = har[j];\n }\n for(int j=0; j<=str.length(); j++){\n har[j] = har[j+h[i]];\n }\n }\n //length[count] = str.length(); \n //count++; \n for(int i=0; i<str.length(); i++) System.out.print(har[i]);\n System.out.println(\"\");\n \n }\n \n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int count = 1;
int length[] = new int[10];
while(true){
String str = sc.next();
if(str.equals("-")) break;
int m = sc.nextInt();
int h[] = new int[str.length()];
char har[] = new char[1000];
for(int i=0; i<m; i++) h[i] = sc.nextInt();
for(int i=0; i<str.length(); i++){
har[i] = str.charAt(i);
}
//int t = str.length();
for(int i=0; i<m; i++){
for(int j=0; j<h[i]; j++){
har[j+str.length()] = har[j];
}
for(int j=0; j<=str.length(); j++){
har[j] = har[j+h[i]];
}
}
//length[count] = str.length();
//count++;
for(int i=0; i<str.length(); i++) System.out.print(har[i]);
System.out.println("");
}
}
}
|
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
11,
1,
30,
30,
0,
13,
4,
18,
13,
14,
4,
18,
17,
13,
30,
3,
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,
0,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
2,
2,
13,
13,
13,
4,
18,
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
],
[
151,
2
],
[
151,
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
],
[
26,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
26,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
32,
37
],
[
37,
38
],
[
32,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
50,
51
],
[
50,
52
],
[
39,
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
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
39,
75
],
[
75,
76
],
[
75,
77
],
[
39,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
78,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
90,
96
],
[
96,
97
],
[
96,
98
],
[
39,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
99,
110
],
[
111,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
39,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
5,
129
],
[
129,
130
],
[
130,
131
],
[
3,
132
],
[
132,
133
],
[
3,
134
],
[
134,
135
],
[
151,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
139,
142
],
[
142,
143
],
[
142,
144
],
[
139,
145
],
[
145,
146
],
[
145,
147
],
[
136,
148
],
[
148,
149
],
[
0,
150
],
[
150,
151
],
[
150,
152
]
]
| [
"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 s;\n int i, n, h, m, sum;\n char[] sch;\n\n\n for(;;){\n s = sc.next();\n if(\"-\".equals(s)){\n break;\n }else{\n m = sc.nextInt();\n n = s.length();\n sch = new char[n];\n for(i = 0;i < n;i++){\n sch[i] = s.charAt(i);\n }\n\n sum = 0;\n for(i = 0;i < m;i++){\n h = sc.nextInt();\n sum += h;\n }\n\n for(i = 0;i < n;i++){\n System.out.print(sch[(sum + i) % n]);\n }\n System.out.println();\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 s;\n int i, n, h, m, sum;\n char[] sch;\n\n\n for(;;){\n s = sc.next();\n if(\"-\".equals(s)){\n break;\n }else{\n m = sc.nextInt();\n n = s.length();\n sch = new char[n];\n for(i = 0;i < n;i++){\n sch[i] = s.charAt(i);\n }\n\n sum = 0;\n for(i = 0;i < m;i++){\n h = sc.nextInt();\n sum += h;\n }\n\n for(i = 0;i < n;i++){\n System.out.print(sch[(sum + i) % n]);\n }\n System.out.println();\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 s;\n int i, n, h, m, sum;\n char[] sch;\n\n\n for(;;){\n s = sc.next();\n if(\"-\".equals(s)){\n break;\n }else{\n m = sc.nextInt();\n n = s.length();\n sch = new char[n];\n for(i = 0;i < n;i++){\n sch[i] = s.charAt(i);\n }\n\n sum = 0;\n for(i = 0;i < m;i++){\n h = sc.nextInt();\n sum += h;\n }\n\n for(i = 0;i < n;i++){\n System.out.print(sch[(sum + i) % n]);\n }\n System.out.println();\n }\n }\n\n sc.close();\n }",
"run",
"{\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n String s;\n int i, n, h, m, sum;\n char[] sch;\n\n\n for(;;){\n s = sc.next();\n if(\"-\".equals(s)){\n break;\n }else{\n m = sc.nextInt();\n n = s.length();\n sch = new char[n];\n for(i = 0;i < n;i++){\n sch[i] = s.charAt(i);\n }\n\n sum = 0;\n for(i = 0;i < m;i++){\n h = sc.nextInt();\n sum += h;\n }\n\n for(i = 0;i < n;i++){\n System.out.print(sch[(sum + i) % n]);\n }\n System.out.println();\n }\n }\n\n sc.close();\n }",
"java.util.Scanner sc = new java.util.Scanner(in);",
"sc",
"new java.util.Scanner(in)",
"String s;",
"s",
"int i",
"i",
"n",
"n",
"h",
"h",
"m",
"m",
"sum;",
"sum",
"char[] sch;",
"sch",
"for(;;){\n s = sc.next();\n if(\"-\".equals(s)){\n break;\n }else{\n m = sc.nextInt();\n n = s.length();\n sch = new char[n];\n for(i = 0;i < n;i++){\n sch[i] = s.charAt(i);\n }\n\n sum = 0;\n for(i = 0;i < m;i++){\n h = sc.nextInt();\n sum += h;\n }\n\n for(i = 0;i < n;i++){\n System.out.print(sch[(sum + i) % n]);\n }\n System.out.println();\n }\n }",
";",
"{\n s = sc.next();\n if(\"-\".equals(s)){\n break;\n }else{\n m = sc.nextInt();\n n = s.length();\n sch = new char[n];\n for(i = 0;i < n;i++){\n sch[i] = s.charAt(i);\n }\n\n sum = 0;\n for(i = 0;i < m;i++){\n h = sc.nextInt();\n sum += h;\n }\n\n for(i = 0;i < n;i++){\n System.out.print(sch[(sum + i) % n]);\n }\n System.out.println();\n }\n }",
"{\n s = sc.next();\n if(\"-\".equals(s)){\n break;\n }else{\n m = sc.nextInt();\n n = s.length();\n sch = new char[n];\n for(i = 0;i < n;i++){\n sch[i] = s.charAt(i);\n }\n\n sum = 0;\n for(i = 0;i < m;i++){\n h = sc.nextInt();\n sum += h;\n }\n\n for(i = 0;i < n;i++){\n System.out.print(sch[(sum + i) % n]);\n }\n System.out.println();\n }\n }",
"s = sc.next()",
"s",
"sc.next()",
"sc.next",
"sc",
"if(\"-\".equals(s)){\n break;\n }else{\n m = sc.nextInt();\n n = s.length();\n sch = new char[n];\n for(i = 0;i < n;i++){\n sch[i] = s.charAt(i);\n }\n\n sum = 0;\n for(i = 0;i < m;i++){\n h = sc.nextInt();\n sum += h;\n }\n\n for(i = 0;i < n;i++){\n System.out.print(sch[(sum + i) % n]);\n }\n System.out.println();\n }",
"\"-\".equals(s)",
"\"-\".equals",
"\"-\"",
"s",
"{\n break;\n }",
"break;",
"{\n m = sc.nextInt();\n n = s.length();\n sch = new char[n];\n for(i = 0;i < n;i++){\n sch[i] = s.charAt(i);\n }\n\n sum = 0;\n for(i = 0;i < m;i++){\n h = sc.nextInt();\n sum += h;\n }\n\n for(i = 0;i < n;i++){\n System.out.print(sch[(sum + i) % n]);\n }\n System.out.println();\n }",
"m = sc.nextInt()",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"n = s.length()",
"n",
"s.length()",
"s.length",
"s",
"sch = new char[n]",
"sch",
"new char[n]",
"n",
"for(i = 0;i < n;i++){\n sch[i] = s.charAt(i);\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n sch[i] = s.charAt(i);\n }",
"{\n sch[i] = s.charAt(i);\n }",
"sch[i] = s.charAt(i)",
"sch[i]",
"sch",
"i",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"sum = 0",
"sum",
"0",
"for(i = 0;i < m;i++){\n h = sc.nextInt();\n sum += h;\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n h = sc.nextInt();\n sum += h;\n }",
"{\n h = sc.nextInt();\n sum += h;\n }",
"h = sc.nextInt()",
"h",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum += h",
"sum",
"h",
"for(i = 0;i < n;i++){\n System.out.print(sch[(sum + i) % n]);\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n System.out.print(sch[(sum + i) % n]);\n }",
"{\n System.out.print(sch[(sum + i) % n]);\n }",
"System.out.print(sch[(sum + i) % n])",
"System.out.print",
"System.out",
"System",
"System.out",
"sch[(sum + i) % n]",
"sch",
"(sum + i) % n",
"(sum + i)",
"sum",
"i",
"n",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"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 s;\n int i, n, h, m, sum;\n char[] sch;\n\n\n for(;;){\n s = sc.next();\n if(\"-\".equals(s)){\n break;\n }else{\n m = sc.nextInt();\n n = s.length();\n sch = new char[n];\n for(i = 0;i < n;i++){\n sch[i] = s.charAt(i);\n }\n\n sum = 0;\n for(i = 0;i < m;i++){\n h = sc.nextInt();\n sum += h;\n }\n\n for(i = 0;i < n;i++){\n System.out.print(sch[(sum + i) % n]);\n }\n System.out.println();\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 s;\n int i, n, h, m, sum;\n char[] sch;\n\n\n for(;;){\n s = sc.next();\n if(\"-\".equals(s)){\n break;\n }else{\n m = sc.nextInt();\n n = s.length();\n sch = new char[n];\n for(i = 0;i < n;i++){\n sch[i] = s.charAt(i);\n }\n\n sum = 0;\n for(i = 0;i < m;i++){\n h = sc.nextInt();\n sum += h;\n }\n\n for(i = 0;i < n;i++){\n System.out.print(sch[(sum + i) % n]);\n }\n System.out.println();\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 s;
int i, n, h, m, sum;
char[] sch;
for(;;){
s = sc.next();
if("-".equals(s)){
break;
}else{
m = sc.nextInt();
n = s.length();
sch = new char[n];
for(i = 0;i < n;i++){
sch[i] = s.charAt(i);
}
sum = 0;
for(i = 0;i < m;i++){
h = sc.nextInt();
sum += h;
}
for(i = 0;i < n;i++){
System.out.print(sch[(sum + i) % n]);
}
System.out.println();
}
}
sc.close();
}
public static void main(String[] args){
(new Main()).run(System.in, System.out);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
42,
17,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
13,
0,
13,
4,
18,
13,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
92,
5
],
[
92,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
18,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
24,
29
],
[
29,
30
],
[
18,
31
],
[
31,
32
],
[
18,
33
],
[
33,
34
],
[
18,
35
],
[
35,
36
],
[
18,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
18,
42
],
[
42,
43
],
[
18,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
56,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
64,
68
],
[
56,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
56,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
77,
79
],
[
18,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
8,
86
],
[
86,
87
],
[
87,
88
],
[
6,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int i;\n String str;\n while(true){\n str = sc.next();\n if(str.equals(\"-\")){\n break;\n }\n String str1;\n String str2;\n int m;\n m = sc.nextInt();\n int h;\n for(i=0;i<m;i++){\n h = sc.nextInt();\n str1 = str.substring(0,h);\n str2 = str.substring(h);\n str = str2 + str1;\n }\n System.out.println(str);\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 i;\n String str;\n while(true){\n str = sc.next();\n if(str.equals(\"-\")){\n break;\n }\n String str1;\n String str2;\n int m;\n m = sc.nextInt();\n int h;\n for(i=0;i<m;i++){\n h = sc.nextInt();\n str1 = str.substring(0,h);\n str2 = str.substring(h);\n str = str2 + str1;\n }\n System.out.println(str);\n }\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int i;\n String str;\n while(true){\n str = sc.next();\n if(str.equals(\"-\")){\n break;\n }\n String str1;\n String str2;\n int m;\n m = sc.nextInt();\n int h;\n for(i=0;i<m;i++){\n h = sc.nextInt();\n str1 = str.substring(0,h);\n str2 = str.substring(h);\n str = str2 + str1;\n }\n System.out.println(str);\n }\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int i;\n String str;\n while(true){\n str = sc.next();\n if(str.equals(\"-\")){\n break;\n }\n String str1;\n String str2;\n int m;\n m = sc.nextInt();\n int h;\n for(i=0;i<m;i++){\n h = sc.nextInt();\n str1 = str.substring(0,h);\n str2 = str.substring(h);\n str = str2 + str1;\n }\n System.out.println(str);\n }\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int i;",
"i",
"String str;",
"str",
"while(true){\n str = sc.next();\n if(str.equals(\"-\")){\n break;\n }\n String str1;\n String str2;\n int m;\n m = sc.nextInt();\n int h;\n for(i=0;i<m;i++){\n h = sc.nextInt();\n str1 = str.substring(0,h);\n str2 = str.substring(h);\n str = str2 + str1;\n }\n System.out.println(str);\n }",
"true",
"{\n str = sc.next();\n if(str.equals(\"-\")){\n break;\n }\n String str1;\n String str2;\n int m;\n m = sc.nextInt();\n int h;\n for(i=0;i<m;i++){\n h = sc.nextInt();\n str1 = str.substring(0,h);\n str2 = str.substring(h);\n str = str2 + str1;\n }\n System.out.println(str);\n }",
"str = sc.next()",
"str",
"sc.next()",
"sc.next",
"sc",
"if(str.equals(\"-\")){\n break;\n }",
"str.equals(\"-\")",
"str.equals",
"str",
"\"-\"",
"{\n break;\n }",
"break;",
"String str1;",
"str1",
"String str2;",
"str2",
"int m;",
"m",
"m = sc.nextInt()",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int h;",
"h",
"for(i=0;i<m;i++){\n h = sc.nextInt();\n str1 = str.substring(0,h);\n str2 = str.substring(h);\n str = str2 + str1;\n }",
"i=0;",
"i=0",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n h = sc.nextInt();\n str1 = str.substring(0,h);\n str2 = str.substring(h);\n str = str2 + str1;\n }",
"{\n h = sc.nextInt();\n str1 = str.substring(0,h);\n str2 = str.substring(h);\n str = str2 + str1;\n }",
"h = sc.nextInt()",
"h",
"sc.nextInt()",
"sc.nextInt",
"sc",
"str1 = str.substring(0,h)",
"str1",
"str.substring(0,h)",
"str.substring",
"str",
"0",
"h",
"str2 = str.substring(h)",
"str2",
"str.substring(h)",
"str.substring",
"str",
"h",
"str = str2 + str1",
"str",
"str2 + str1",
"str2",
"str1",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"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 i;\n String str;\n while(true){\n str = sc.next();\n if(str.equals(\"-\")){\n break;\n }\n String str1;\n String str2;\n int m;\n m = sc.nextInt();\n int h;\n for(i=0;i<m;i++){\n h = sc.nextInt();\n str1 = str.substring(0,h);\n str2 = str.substring(h);\n str = str2 + str1;\n }\n System.out.println(str);\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 i;\n String str;\n while(true){\n str = sc.next();\n if(str.equals(\"-\")){\n break;\n }\n String str1;\n String str2;\n int m;\n m = sc.nextInt();\n int h;\n for(i=0;i<m;i++){\n h = sc.nextInt();\n str1 = str.substring(0,h);\n str2 = str.substring(h);\n str = str2 + str1;\n }\n System.out.println(str);\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 i;
String str;
while(true){
str = sc.next();
if(str.equals("-")){
break;
}
String str1;
String str2;
int m;
m = sc.nextInt();
int h;
for(i=0;i<m;i++){
h = sc.nextInt();
str1 = str.substring(0,h);
str2 = str.substring(h);
str = str2 + str1;
}
System.out.println(str);
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
4,
18,
13,
3,
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,
17,
13,
41,
13,
4,
18,
13,
13,
0,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
83,
5
],
[
83,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
12,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
16,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
22,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
27,
31
],
[
16,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
16,
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
],
[
49,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
57,
61
],
[
49,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
49,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
16,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
6,
80
],
[
80,
81
],
[
0,
82
],
[
82,
83
],
[
82,
84
]
]
| [
"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\twhile(scan.hasNext()){\n\t\t\tString line = scan.next();//nextLine?????¨??????????????????????????§???\n\t\t\tif(line.equals(\"-\")){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString subline1 = line.substring(0, h);\n\t\t\t\tString subline2 = line.substring(h);\n\t\t\t\tline = subline2.concat(subline1);\n\t\t\t}\n\t\t\tSystem.out.println(line);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tString line = scan.next();//nextLine?????¨??????????????????????????§???\n\t\t\tif(line.equals(\"-\")){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString subline1 = line.substring(0, h);\n\t\t\t\tString subline2 = line.substring(h);\n\t\t\t\tline = subline2.concat(subline1);\n\t\t\t}\n\t\t\tSystem.out.println(line);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tString line = scan.next();//nextLine?????¨??????????????????????????§???\n\t\t\tif(line.equals(\"-\")){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString subline1 = line.substring(0, h);\n\t\t\t\tString subline2 = line.substring(h);\n\t\t\t\tline = subline2.concat(subline1);\n\t\t\t}\n\t\t\tSystem.out.println(line);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tString line = scan.next();//nextLine?????¨??????????????????????????§???\n\t\t\tif(line.equals(\"-\")){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString subline1 = line.substring(0, h);\n\t\t\t\tString subline2 = line.substring(h);\n\t\t\t\tline = subline2.concat(subline1);\n\t\t\t}\n\t\t\tSystem.out.println(line);\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"while(scan.hasNext()){\n\t\t\tString line = scan.next();//nextLine?????¨??????????????????????????§???\n\t\t\tif(line.equals(\"-\")){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString subline1 = line.substring(0, h);\n\t\t\t\tString subline2 = line.substring(h);\n\t\t\t\tline = subline2.concat(subline1);\n\t\t\t}\n\t\t\tSystem.out.println(line);\n\t\t}",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n\t\t\tString line = scan.next();//nextLine?????¨??????????????????????????§???\n\t\t\tif(line.equals(\"-\")){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString subline1 = line.substring(0, h);\n\t\t\t\tString subline2 = line.substring(h);\n\t\t\t\tline = subline2.concat(subline1);\n\t\t\t}\n\t\t\tSystem.out.println(line);\n\t\t}",
"String line = scan.next();",
"line",
"scan.next()",
"scan.next",
"scan",
"if(line.equals(\"-\")){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}",
"line.equals(\"-\")",
"line.equals",
"line",
"\"-\"",
"{\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}",
"scan.close()",
"scan.close",
"scan",
"break;",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString subline1 = line.substring(0, h);\n\t\t\t\tString subline2 = line.substring(h);\n\t\t\t\tline = subline2.concat(subline1);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString subline1 = line.substring(0, h);\n\t\t\t\tString subline2 = line.substring(h);\n\t\t\t\tline = subline2.concat(subline1);\n\t\t\t}",
"{\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString subline1 = line.substring(0, h);\n\t\t\t\tString subline2 = line.substring(h);\n\t\t\t\tline = subline2.concat(subline1);\n\t\t\t}",
"int h = scan.nextInt();",
"h",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String subline1 = line.substring(0, h);",
"subline1",
"line.substring(0, h)",
"line.substring",
"line",
"0",
"h",
"String subline2 = line.substring(h);",
"subline2",
"line.substring(h)",
"line.substring",
"line",
"h",
"line = subline2.concat(subline1)",
"line",
"subline2.concat(subline1)",
"subline2.concat",
"subline2",
"subline1",
"System.out.println(line)",
"System.out.println",
"System.out",
"System",
"System.out",
"line",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tString line = scan.next();//nextLine?????¨??????????????????????????§???\n\t\t\tif(line.equals(\"-\")){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString subline1 = line.substring(0, h);\n\t\t\t\tString subline2 = line.substring(h);\n\t\t\t\tline = subline2.concat(subline1);\n\t\t\t}\n\t\t\tSystem.out.println(line);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tString line = scan.next();//nextLine?????¨??????????????????????????§???\n\t\t\tif(line.equals(\"-\")){\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString subline1 = line.substring(0, h);\n\t\t\t\tString subline2 = line.substring(h);\n\t\t\t\tline = subline2.concat(subline1);\n\t\t\t}\n\t\t\tSystem.out.println(line);\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);
while(scan.hasNext()){
String line = scan.next();//nextLine?????¨??????????????????????????§???
if(line.equals("-")){
scan.close();
break;
}
int m = scan.nextInt();
for(int i = 0; i < m; i++){
int h = scan.nextInt();
String subline1 = line.substring(0, h);
String subline2 = line.substring(h);
line = subline2.concat(subline1);
}
System.out.println(line);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
0,
13,
4,
18,
13,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
41,
13,
2,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
4,
18,
13,
2,
2,
13,
13,
4,
18,
13,
4,
18,
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
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
18,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
24,
29
],
[
18,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
18,
35
],
[
35,
36
],
[
35,
37
],
[
18,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
18,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
18,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
63,
73
],
[
73,
74
],
[
74,
75
],
[
63,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
91,
92
],
[
18,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
6,
98
],
[
98,
99
],
[
0,
100
],
[
100,
101
],
[
100,
102
]
]
| [
"import java.util.Scanner;\n\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n;\n int sum;\n while(true) {\n String s = sc.next();\n if(s.equals(\"-\")) break;\n n = sc.nextInt();\n sum = 0;\n for (int i = 0; i < n; i++) {\n sum += sc.nextInt();\n }\n int p = sum % s.length();\n for (int i = 0; i < s.length(); i++) {\n System.out.print(s.charAt((p + i) % s.length()));\n }\n System.out.println();\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 n;\n int sum;\n while(true) {\n String s = sc.next();\n if(s.equals(\"-\")) break;\n n = sc.nextInt();\n sum = 0;\n for (int i = 0; i < n; i++) {\n sum += sc.nextInt();\n }\n int p = sum % s.length();\n for (int i = 0; i < s.length(); i++) {\n System.out.print(s.charAt((p + i) % s.length()));\n }\n System.out.println();\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n;\n int sum;\n while(true) {\n String s = sc.next();\n if(s.equals(\"-\")) break;\n n = sc.nextInt();\n sum = 0;\n for (int i = 0; i < n; i++) {\n sum += sc.nextInt();\n }\n int p = sum % s.length();\n for (int i = 0; i < s.length(); i++) {\n System.out.print(s.charAt((p + i) % s.length()));\n }\n System.out.println();\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n;\n int sum;\n while(true) {\n String s = sc.next();\n if(s.equals(\"-\")) break;\n n = sc.nextInt();\n sum = 0;\n for (int i = 0; i < n; i++) {\n sum += sc.nextInt();\n }\n int p = sum % s.length();\n for (int i = 0; i < s.length(); i++) {\n System.out.print(s.charAt((p + i) % s.length()));\n }\n System.out.println();\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n;",
"n",
"int sum;",
"sum",
"while(true) {\n String s = sc.next();\n if(s.equals(\"-\")) break;\n n = sc.nextInt();\n sum = 0;\n for (int i = 0; i < n; i++) {\n sum += sc.nextInt();\n }\n int p = sum % s.length();\n for (int i = 0; i < s.length(); i++) {\n System.out.print(s.charAt((p + i) % s.length()));\n }\n System.out.println();\n }",
"true",
"{\n String s = sc.next();\n if(s.equals(\"-\")) break;\n n = sc.nextInt();\n sum = 0;\n for (int i = 0; i < n; i++) {\n sum += sc.nextInt();\n }\n int p = sum % s.length();\n for (int i = 0; i < s.length(); i++) {\n System.out.print(s.charAt((p + i) % s.length()));\n }\n System.out.println();\n }",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if(s.equals(\"-\")) break;",
"s.equals(\"-\")",
"s.equals",
"s",
"\"-\"",
"break;",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sum = 0",
"sum",
"0",
"for (int i = 0; i < n; i++) {\n sum += sc.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n sum += sc.nextInt();\n }",
"{\n sum += sc.nextInt();\n }",
"sum += sc.nextInt()",
"sum",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int p = sum % s.length();",
"p",
"sum % s.length()",
"sum",
"s.length()",
"s.length",
"s",
"for (int i = 0; i < s.length(); i++) {\n System.out.print(s.charAt((p + i) % s.length()));\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n System.out.print(s.charAt((p + i) % s.length()));\n }",
"{\n System.out.print(s.charAt((p + i) % s.length()));\n }",
"System.out.print(s.charAt((p + i) % s.length()))",
"System.out.print",
"System.out",
"System",
"System.out",
"s.charAt((p + i) % s.length())",
"s.charAt",
"s",
"(p + i) % s.length()",
"(p + i)",
"p",
"i",
"s.length()",
"s.length",
"s",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n;\n int sum;\n while(true) {\n String s = sc.next();\n if(s.equals(\"-\")) break;\n n = sc.nextInt();\n sum = 0;\n for (int i = 0; i < n; i++) {\n sum += sc.nextInt();\n }\n int p = sum % s.length();\n for (int i = 0; i < s.length(); i++) {\n System.out.print(s.charAt((p + i) % s.length()));\n }\n System.out.println();\n }\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n;\n int sum;\n while(true) {\n String s = sc.next();\n if(s.equals(\"-\")) break;\n n = sc.nextInt();\n sum = 0;\n for (int i = 0; i < n; i++) {\n sum += sc.nextInt();\n }\n int p = sum % s.length();\n for (int i = 0; i < s.length(); i++) {\n System.out.print(s.charAt((p + i) % s.length()));\n }\n System.out.println();\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n;
int sum;
while(true) {
String s = sc.next();
if(s.equals("-")) break;
n = sc.nextInt();
sum = 0;
for (int i = 0; i < n; i++) {
sum += sc.nextInt();
}
int p = sum % s.length();
for (int i = 0; i < s.length(); i++) {
System.out.print(s.charAt((p + i) % s.length()));
}
System.out.println();
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
17,
30,
42,
2,
13,
13,
30,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
13,
4,
18,
13,
17,
4,
18,
13,
13,
14,
2,
4,
18,
13,
17,
2,
13,
2,
13,
17,
30,
4,
18,
13,
2,
4,
18,
13,
17,
3,
30,
0,
13,
4,
18,
13,
40,
13,
0,
13,
4,
18,
13,
14,
2,
2,
13,
2,
13,
17,
4,
18,
13,
17,
30,
3,
30,
0,
13,
17,
4,
18,
13,
17,
4,
18,
13,
4,
18,
13,
13,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
159,
5
],
[
159,
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
],
[
19,
20
],
[
18,
21
],
[
21,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
40,
42
],
[
8,
43
],
[
43,
44
],
[
43,
45
],
[
8,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
53,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
53,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
73,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
88,
92
],
[
84,
93
],
[
73,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
53,
100
],
[
100,
101
],
[
48,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
48,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
111,
113
],
[
108,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
107,
118
],
[
118,
119
],
[
107,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
124,
128
],
[
128,
129
],
[
129,
130
],
[
120,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
120,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
137,
140
],
[
140,
141
],
[
141,
142
],
[
120,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
8,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
153,
154
],
[
154,
155
],
[
6,
156
],
[
156,
157
],
[
0,
158
],
[
158,
159
],
[
158,
160
]
]
| [
"\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tStringBuilder card = new StringBuilder();\n\t\tStringBuilder answer = new StringBuilder();\n\t\tScanner scan = new Scanner(System.in);\n\t\t//n????????¢?????????????????????????????????????????????StringBuilder?????\\??????\n\t\tcard.append(scan.nextLine());\n\t\t//?????£?????????????????°\n\t\tint shuffle = Integer.parseInt(scan.nextLine());\n\t\t//?????£????????????????????°\n\t\tString h = scan.nextLine();\n\t\tint i = 0;\n\t\tint w = 0;\n\t\tString hoge = \"\";\n\t\t\n\t\twhile(true) {\n\t\t\twhile(i < shuffle) {\n\t\t\t\tcard.append( card.substring(0, Integer.parseInt(h)) );\n\t\t\t\tcard.delete(0, Integer.parseInt(h));\n\t\t\t\tif(h.equals(\"-\") || i == (shuffle - 1)){\n\t\t\t\t\t//?????£????????????????????£???????????????answer???????´?\n\t\t\t\t\tanswer.append(card.toString() + \"\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\th = scan.nextLine();\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t//?¬???????????????????????????????while??????????????????\n\t\t\thoge = scan.nextLine();\n\t\t\tif( i == (shuffle - 1) && hoge.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\ti = 0;\n\t\t\t\tcard.delete(0, card.length());\n\t\t\t\tcard.append(hoge);\n\t\t\t\tshuffle = Integer.parseInt(scan.nextLine());\n\t\t\t\th = scan.nextLine();\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(answer.toString());\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tStringBuilder card = new StringBuilder();\n\t\tStringBuilder answer = new StringBuilder();\n\t\tScanner scan = new Scanner(System.in);\n\t\t//n????????¢?????????????????????????????????????????????StringBuilder?????\\??????\n\t\tcard.append(scan.nextLine());\n\t\t//?????£?????????????????°\n\t\tint shuffle = Integer.parseInt(scan.nextLine());\n\t\t//?????£????????????????????°\n\t\tString h = scan.nextLine();\n\t\tint i = 0;\n\t\tint w = 0;\n\t\tString hoge = \"\";\n\t\t\n\t\twhile(true) {\n\t\t\twhile(i < shuffle) {\n\t\t\t\tcard.append( card.substring(0, Integer.parseInt(h)) );\n\t\t\t\tcard.delete(0, Integer.parseInt(h));\n\t\t\t\tif(h.equals(\"-\") || i == (shuffle - 1)){\n\t\t\t\t\t//?????£????????????????????£???????????????answer???????´?\n\t\t\t\t\tanswer.append(card.toString() + \"\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\th = scan.nextLine();\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t//?¬???????????????????????????????while??????????????????\n\t\t\thoge = scan.nextLine();\n\t\t\tif( i == (shuffle - 1) && hoge.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\ti = 0;\n\t\t\t\tcard.delete(0, card.length());\n\t\t\t\tcard.append(hoge);\n\t\t\t\tshuffle = Integer.parseInt(scan.nextLine());\n\t\t\t\th = scan.nextLine();\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(answer.toString());\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tStringBuilder card = new StringBuilder();\n\t\tStringBuilder answer = new StringBuilder();\n\t\tScanner scan = new Scanner(System.in);\n\t\t//n????????¢?????????????????????????????????????????????StringBuilder?????\\??????\n\t\tcard.append(scan.nextLine());\n\t\t//?????£?????????????????°\n\t\tint shuffle = Integer.parseInt(scan.nextLine());\n\t\t//?????£????????????????????°\n\t\tString h = scan.nextLine();\n\t\tint i = 0;\n\t\tint w = 0;\n\t\tString hoge = \"\";\n\t\t\n\t\twhile(true) {\n\t\t\twhile(i < shuffle) {\n\t\t\t\tcard.append( card.substring(0, Integer.parseInt(h)) );\n\t\t\t\tcard.delete(0, Integer.parseInt(h));\n\t\t\t\tif(h.equals(\"-\") || i == (shuffle - 1)){\n\t\t\t\t\t//?????£????????????????????£???????????????answer???????´?\n\t\t\t\t\tanswer.append(card.toString() + \"\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\th = scan.nextLine();\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t//?¬???????????????????????????????while??????????????????\n\t\t\thoge = scan.nextLine();\n\t\t\tif( i == (shuffle - 1) && hoge.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\ti = 0;\n\t\t\t\tcard.delete(0, card.length());\n\t\t\t\tcard.append(hoge);\n\t\t\t\tshuffle = Integer.parseInt(scan.nextLine());\n\t\t\t\th = scan.nextLine();\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(answer.toString());\n\t}",
"main",
"{\n\t\tStringBuilder card = new StringBuilder();\n\t\tStringBuilder answer = new StringBuilder();\n\t\tScanner scan = new Scanner(System.in);\n\t\t//n????????¢?????????????????????????????????????????????StringBuilder?????\\??????\n\t\tcard.append(scan.nextLine());\n\t\t//?????£?????????????????°\n\t\tint shuffle = Integer.parseInt(scan.nextLine());\n\t\t//?????£????????????????????°\n\t\tString h = scan.nextLine();\n\t\tint i = 0;\n\t\tint w = 0;\n\t\tString hoge = \"\";\n\t\t\n\t\twhile(true) {\n\t\t\twhile(i < shuffle) {\n\t\t\t\tcard.append( card.substring(0, Integer.parseInt(h)) );\n\t\t\t\tcard.delete(0, Integer.parseInt(h));\n\t\t\t\tif(h.equals(\"-\") || i == (shuffle - 1)){\n\t\t\t\t\t//?????£????????????????????£???????????????answer???????´?\n\t\t\t\t\tanswer.append(card.toString() + \"\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\th = scan.nextLine();\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t//?¬???????????????????????????????while??????????????????\n\t\t\thoge = scan.nextLine();\n\t\t\tif( i == (shuffle - 1) && hoge.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\ti = 0;\n\t\t\t\tcard.delete(0, card.length());\n\t\t\t\tcard.append(hoge);\n\t\t\t\tshuffle = Integer.parseInt(scan.nextLine());\n\t\t\t\th = scan.nextLine();\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(answer.toString());\n\t}",
"StringBuilder card = new StringBuilder();",
"card",
"new StringBuilder()",
"StringBuilder answer = new StringBuilder();",
"answer",
"new StringBuilder()",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"card.append(scan.nextLine())",
"card.append",
"card",
"scan.nextLine()",
"scan.nextLine",
"scan",
"int shuffle = Integer.parseInt(scan.nextLine());",
"shuffle",
"Integer.parseInt(scan.nextLine())",
"Integer.parseInt",
"Integer",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String h = scan.nextLine();",
"h",
"scan.nextLine()",
"scan.nextLine",
"scan",
"int i = 0;",
"i",
"0",
"int w = 0;",
"w",
"0",
"String hoge = \"\";",
"hoge",
"\"\"",
"while(true) {\n\t\t\twhile(i < shuffle) {\n\t\t\t\tcard.append( card.substring(0, Integer.parseInt(h)) );\n\t\t\t\tcard.delete(0, Integer.parseInt(h));\n\t\t\t\tif(h.equals(\"-\") || i == (shuffle - 1)){\n\t\t\t\t\t//?????£????????????????????£???????????????answer???????´?\n\t\t\t\t\tanswer.append(card.toString() + \"\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\th = scan.nextLine();\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t//?¬???????????????????????????????while??????????????????\n\t\t\thoge = scan.nextLine();\n\t\t\tif( i == (shuffle - 1) && hoge.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\ti = 0;\n\t\t\t\tcard.delete(0, card.length());\n\t\t\t\tcard.append(hoge);\n\t\t\t\tshuffle = Integer.parseInt(scan.nextLine());\n\t\t\t\th = scan.nextLine();\n\t\t\t}\n\t\t}",
"true",
"{\n\t\t\twhile(i < shuffle) {\n\t\t\t\tcard.append( card.substring(0, Integer.parseInt(h)) );\n\t\t\t\tcard.delete(0, Integer.parseInt(h));\n\t\t\t\tif(h.equals(\"-\") || i == (shuffle - 1)){\n\t\t\t\t\t//?????£????????????????????£???????????????answer???????´?\n\t\t\t\t\tanswer.append(card.toString() + \"\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\th = scan.nextLine();\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t//?¬???????????????????????????????while??????????????????\n\t\t\thoge = scan.nextLine();\n\t\t\tif( i == (shuffle - 1) && hoge.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\ti = 0;\n\t\t\t\tcard.delete(0, card.length());\n\t\t\t\tcard.append(hoge);\n\t\t\t\tshuffle = Integer.parseInt(scan.nextLine());\n\t\t\t\th = scan.nextLine();\n\t\t\t}\n\t\t}",
"while(i < shuffle) {\n\t\t\t\tcard.append( card.substring(0, Integer.parseInt(h)) );\n\t\t\t\tcard.delete(0, Integer.parseInt(h));\n\t\t\t\tif(h.equals(\"-\") || i == (shuffle - 1)){\n\t\t\t\t\t//?????£????????????????????£???????????????answer???????´?\n\t\t\t\t\tanswer.append(card.toString() + \"\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\th = scan.nextLine();\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}",
"i < shuffle",
"i",
"shuffle",
"{\n\t\t\t\tcard.append( card.substring(0, Integer.parseInt(h)) );\n\t\t\t\tcard.delete(0, Integer.parseInt(h));\n\t\t\t\tif(h.equals(\"-\") || i == (shuffle - 1)){\n\t\t\t\t\t//?????£????????????????????£???????????????answer???????´?\n\t\t\t\t\tanswer.append(card.toString() + \"\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\th = scan.nextLine();\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}",
"card.append( card.substring(0, Integer.parseInt(h)) )",
"card.append",
"card",
"card.substring(0, Integer.parseInt(h))",
"card.substring",
"card",
"0",
"Integer.parseInt(h)",
"Integer.parseInt",
"Integer",
"h",
"card.delete(0, Integer.parseInt(h))",
"card.delete",
"card",
"0",
"Integer.parseInt(h)",
"Integer.parseInt",
"Integer",
"h",
"if(h.equals(\"-\") || i == (shuffle - 1)){\n\t\t\t\t\t//?????£????????????????????£???????????????answer???????´?\n\t\t\t\t\tanswer.append(card.toString() + \"\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\th = scan.nextLine();\n\t\t\t\t}",
"h.equals(\"-\") || i == (shuffle - 1)",
"h.equals(\"-\")",
"h.equals",
"h",
"\"-\"",
"i == (shuffle - 1)",
"i",
"(shuffle - 1)",
"shuffle",
"1",
"{\n\t\t\t\t\t//?????£????????????????????£???????????????answer???????´?\n\t\t\t\t\tanswer.append(card.toString() + \"\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"answer.append(card.toString() + \"\\n\")",
"answer.append",
"answer",
"card.toString() + \"\\n\"",
"card.toString()",
"card.toString",
"card",
"\"\\n\"",
"break;",
"{\n\t\t\t\t\th = scan.nextLine();\n\t\t\t\t}",
"h = scan.nextLine()",
"h",
"scan.nextLine()",
"scan.nextLine",
"scan",
"i++",
"i",
"hoge = scan.nextLine()",
"hoge",
"scan.nextLine()",
"scan.nextLine",
"scan",
"if( i == (shuffle - 1) && hoge.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\ti = 0;\n\t\t\t\tcard.delete(0, card.length());\n\t\t\t\tcard.append(hoge);\n\t\t\t\tshuffle = Integer.parseInt(scan.nextLine());\n\t\t\t\th = scan.nextLine();\n\t\t\t}",
"i == (shuffle - 1) && hoge.equals(\"-\")",
"i == (shuffle - 1)",
"i",
"(shuffle - 1)",
"shuffle",
"1",
"hoge.equals(\"-\")",
"hoge.equals",
"hoge",
"\"-\"",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"{\n\t\t\t\ti = 0;\n\t\t\t\tcard.delete(0, card.length());\n\t\t\t\tcard.append(hoge);\n\t\t\t\tshuffle = Integer.parseInt(scan.nextLine());\n\t\t\t\th = scan.nextLine();\n\t\t\t}",
"i = 0",
"i",
"0",
"card.delete(0, card.length())",
"card.delete",
"card",
"0",
"card.length()",
"card.length",
"card",
"card.append(hoge)",
"card.append",
"card",
"hoge",
"shuffle = Integer.parseInt(scan.nextLine())",
"shuffle",
"Integer.parseInt(scan.nextLine())",
"Integer.parseInt",
"Integer",
"scan.nextLine()",
"scan.nextLine",
"scan",
"h = scan.nextLine()",
"h",
"scan.nextLine()",
"scan.nextLine",
"scan",
"System.out.print(answer.toString())",
"System.out.print",
"System.out",
"System",
"System.out",
"answer.toString()",
"answer.toString",
"answer",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tStringBuilder card = new StringBuilder();\n\t\tStringBuilder answer = new StringBuilder();\n\t\tScanner scan = new Scanner(System.in);\n\t\t//n????????¢?????????????????????????????????????????????StringBuilder?????\\??????\n\t\tcard.append(scan.nextLine());\n\t\t//?????£?????????????????°\n\t\tint shuffle = Integer.parseInt(scan.nextLine());\n\t\t//?????£????????????????????°\n\t\tString h = scan.nextLine();\n\t\tint i = 0;\n\t\tint w = 0;\n\t\tString hoge = \"\";\n\t\t\n\t\twhile(true) {\n\t\t\twhile(i < shuffle) {\n\t\t\t\tcard.append( card.substring(0, Integer.parseInt(h)) );\n\t\t\t\tcard.delete(0, Integer.parseInt(h));\n\t\t\t\tif(h.equals(\"-\") || i == (shuffle - 1)){\n\t\t\t\t\t//?????£????????????????????£???????????????answer???????´?\n\t\t\t\t\tanswer.append(card.toString() + \"\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\th = scan.nextLine();\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t//?¬???????????????????????????????while??????????????????\n\t\t\thoge = scan.nextLine();\n\t\t\tif( i == (shuffle - 1) && hoge.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\ti = 0;\n\t\t\t\tcard.delete(0, card.length());\n\t\t\t\tcard.append(hoge);\n\t\t\t\tshuffle = Integer.parseInt(scan.nextLine());\n\t\t\t\th = scan.nextLine();\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(answer.toString());\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tStringBuilder card = new StringBuilder();\n\t\tStringBuilder answer = new StringBuilder();\n\t\tScanner scan = new Scanner(System.in);\n\t\t//n????????¢?????????????????????????????????????????????StringBuilder?????\\??????\n\t\tcard.append(scan.nextLine());\n\t\t//?????£?????????????????°\n\t\tint shuffle = Integer.parseInt(scan.nextLine());\n\t\t//?????£????????????????????°\n\t\tString h = scan.nextLine();\n\t\tint i = 0;\n\t\tint w = 0;\n\t\tString hoge = \"\";\n\t\t\n\t\twhile(true) {\n\t\t\twhile(i < shuffle) {\n\t\t\t\tcard.append( card.substring(0, Integer.parseInt(h)) );\n\t\t\t\tcard.delete(0, Integer.parseInt(h));\n\t\t\t\tif(h.equals(\"-\") || i == (shuffle - 1)){\n\t\t\t\t\t//?????£????????????????????£???????????????answer???????´?\n\t\t\t\t\tanswer.append(card.toString() + \"\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\th = scan.nextLine();\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t//?¬???????????????????????????????while??????????????????\n\t\t\thoge = scan.nextLine();\n\t\t\tif( i == (shuffle - 1) && hoge.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\ti = 0;\n\t\t\t\tcard.delete(0, card.length());\n\t\t\t\tcard.append(hoge);\n\t\t\t\tshuffle = Integer.parseInt(scan.nextLine());\n\t\t\t\th = scan.nextLine();\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(answer.toString());\n\t}\n}",
"Main"
]
|
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
StringBuilder card = new StringBuilder();
StringBuilder answer = new StringBuilder();
Scanner scan = new Scanner(System.in);
//n????????¢?????????????????????????????????????????????StringBuilder?????\??????
card.append(scan.nextLine());
//?????£?????????????????°
int shuffle = Integer.parseInt(scan.nextLine());
//?????£????????????????????°
String h = scan.nextLine();
int i = 0;
int w = 0;
String hoge = "";
while(true) {
while(i < shuffle) {
card.append( card.substring(0, Integer.parseInt(h)) );
card.delete(0, Integer.parseInt(h));
if(h.equals("-") || i == (shuffle - 1)){
//?????£????????????????????£???????????????answer???????´?
answer.append(card.toString() + "\n");
break;
}else{
h = scan.nextLine();
}
i++;
}
//?¬???????????????????????????????while??????????????????
hoge = scan.nextLine();
if( i == (shuffle - 1) && hoge.equals("-")){
break;
}else{
i = 0;
card.delete(0, card.length());
card.append(hoge);
shuffle = Integer.parseInt(scan.nextLine());
h = scan.nextLine();
}
}
System.out.print(answer.toString());
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
40,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
0,
13,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
18,
13,
2,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
18,
13,
13,
0,
13,
4,
18,
13,
0,
13,
13,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
11,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
43,
48
],
[
48,
49
],
[
37,
50
],
[
50,
51
],
[
50,
52
],
[
37,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
37,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
37,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
37,
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
],
[
85,
86
],
[
86,
87
],
[
37,
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
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
110,
112
],
[
101,
113
],
[
113,
114
],
[
114,
115
],
[
101,
116
],
[
117,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
126,
128
],
[
100,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
136,
138
],
[
129,
139
],
[
139,
140
],
[
140,
141
],
[
129,
142
],
[
143,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
148,
150
],
[
100,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
100,
156
],
[
156,
157
],
[
156,
158
],
[
100,
159
],
[
159,
160
],
[
159,
161
],
[
37,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
9,
168
],
[
168,
169
]
]
| [
"import java.io.IOException;\nimport java.util.Scanner;\nclass Main{\n\tpublic static void main(String[] args)throws NumberFormatException, IOException{\n\t\t//System.out.print(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tString word = \"\";\t\t//???????????????string\n\t\tint[] shuffleBegin = new int[100]; //?????£?????????????§????\n\t\tString odai = \"\";\n\t\tString temp = \"\";\n\t\tString kansei = \"\";\n\t\twhile(!temp.equals(\"-\")){\n\t\t\ttemp = scan.next();\n\t\t\tif(temp.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\todai = temp;\n\t\t\tchar[] odaiChar = odai.toCharArray();\n\t\t\tint odaiNagasa = odai.length();\n//\t\t\tT.add(tem) ;\n\t\t\tint kai = scan.nextInt();\n\t\t\tfor(int i=0; i<kai; i++){\n\t\t\t\tshuffleBegin[i] = scan.nextInt();\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(int i =0;i<kai; i++){\n\t\t\t\tfor(int ii=0; ii<(odaiNagasa - shuffleBegin[i]) ; ii++){\n\t\t\t\t\tword = word + odaiChar[ii + shuffleBegin[i]];\n//\t\t\t\t\tSystem.out.println(word);\n\t\t\t\t}\n\t\t\t\tfor(int ii=0; ii<shuffleBegin[i]; ii++){\n\t\t\t\t\tword = word + odaiChar[ii];\n//\t\t\t\t\tSystem.out.println(word);\n\t\t\t\t}\n\t\t\todaiChar = word.toCharArray();\n\t\t\tkansei = word;\n\t\t\tword = \"\";\n\t\t\t}\n\t\t\tSystem.out.println(kansei);\t\t\n\t\t\t\n\t\t}\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n\tpublic static void main(String[] args)throws NumberFormatException, IOException{\n\t\t//System.out.print(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tString word = \"\";\t\t//???????????????string\n\t\tint[] shuffleBegin = new int[100]; //?????£?????????????§????\n\t\tString odai = \"\";\n\t\tString temp = \"\";\n\t\tString kansei = \"\";\n\t\twhile(!temp.equals(\"-\")){\n\t\t\ttemp = scan.next();\n\t\t\tif(temp.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\todai = temp;\n\t\t\tchar[] odaiChar = odai.toCharArray();\n\t\t\tint odaiNagasa = odai.length();\n//\t\t\tT.add(tem) ;\n\t\t\tint kai = scan.nextInt();\n\t\t\tfor(int i=0; i<kai; i++){\n\t\t\t\tshuffleBegin[i] = scan.nextInt();\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(int i =0;i<kai; i++){\n\t\t\t\tfor(int ii=0; ii<(odaiNagasa - shuffleBegin[i]) ; ii++){\n\t\t\t\t\tword = word + odaiChar[ii + shuffleBegin[i]];\n//\t\t\t\t\tSystem.out.println(word);\n\t\t\t\t}\n\t\t\t\tfor(int ii=0; ii<shuffleBegin[i]; ii++){\n\t\t\t\t\tword = word + odaiChar[ii];\n//\t\t\t\t\tSystem.out.println(word);\n\t\t\t\t}\n\t\t\todaiChar = word.toCharArray();\n\t\t\tkansei = word;\n\t\t\tword = \"\";\n\t\t\t}\n\t\t\tSystem.out.println(kansei);\t\t\n\t\t\t\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args)throws NumberFormatException, IOException{\n\t\t//System.out.print(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tString word = \"\";\t\t//???????????????string\n\t\tint[] shuffleBegin = new int[100]; //?????£?????????????§????\n\t\tString odai = \"\";\n\t\tString temp = \"\";\n\t\tString kansei = \"\";\n\t\twhile(!temp.equals(\"-\")){\n\t\t\ttemp = scan.next();\n\t\t\tif(temp.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\todai = temp;\n\t\t\tchar[] odaiChar = odai.toCharArray();\n\t\t\tint odaiNagasa = odai.length();\n//\t\t\tT.add(tem) ;\n\t\t\tint kai = scan.nextInt();\n\t\t\tfor(int i=0; i<kai; i++){\n\t\t\t\tshuffleBegin[i] = scan.nextInt();\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(int i =0;i<kai; i++){\n\t\t\t\tfor(int ii=0; ii<(odaiNagasa - shuffleBegin[i]) ; ii++){\n\t\t\t\t\tword = word + odaiChar[ii + shuffleBegin[i]];\n//\t\t\t\t\tSystem.out.println(word);\n\t\t\t\t}\n\t\t\t\tfor(int ii=0; ii<shuffleBegin[i]; ii++){\n\t\t\t\t\tword = word + odaiChar[ii];\n//\t\t\t\t\tSystem.out.println(word);\n\t\t\t\t}\n\t\t\todaiChar = word.toCharArray();\n\t\t\tkansei = word;\n\t\t\tword = \"\";\n\t\t\t}\n\t\t\tSystem.out.println(kansei);\t\t\n\t\t\t\n\t\t}\n\t}",
"main",
"{\n\t\t//System.out.print(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tString word = \"\";\t\t//???????????????string\n\t\tint[] shuffleBegin = new int[100]; //?????£?????????????§????\n\t\tString odai = \"\";\n\t\tString temp = \"\";\n\t\tString kansei = \"\";\n\t\twhile(!temp.equals(\"-\")){\n\t\t\ttemp = scan.next();\n\t\t\tif(temp.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\todai = temp;\n\t\t\tchar[] odaiChar = odai.toCharArray();\n\t\t\tint odaiNagasa = odai.length();\n//\t\t\tT.add(tem) ;\n\t\t\tint kai = scan.nextInt();\n\t\t\tfor(int i=0; i<kai; i++){\n\t\t\t\tshuffleBegin[i] = scan.nextInt();\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(int i =0;i<kai; i++){\n\t\t\t\tfor(int ii=0; ii<(odaiNagasa - shuffleBegin[i]) ; ii++){\n\t\t\t\t\tword = word + odaiChar[ii + shuffleBegin[i]];\n//\t\t\t\t\tSystem.out.println(word);\n\t\t\t\t}\n\t\t\t\tfor(int ii=0; ii<shuffleBegin[i]; ii++){\n\t\t\t\t\tword = word + odaiChar[ii];\n//\t\t\t\t\tSystem.out.println(word);\n\t\t\t\t}\n\t\t\todaiChar = word.toCharArray();\n\t\t\tkansei = word;\n\t\t\tword = \"\";\n\t\t\t}\n\t\t\tSystem.out.println(kansei);\t\t\n\t\t\t\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String word = \"\";",
"word",
"\"\"",
"int[] shuffleBegin = new int[100];",
"shuffleBegin",
"new int[100]",
"100",
"String odai = \"\";",
"odai",
"\"\"",
"String temp = \"\";",
"temp",
"\"\"",
"String kansei = \"\";",
"kansei",
"\"\"",
"while(!temp.equals(\"-\")){\n\t\t\ttemp = scan.next();\n\t\t\tif(temp.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\todai = temp;\n\t\t\tchar[] odaiChar = odai.toCharArray();\n\t\t\tint odaiNagasa = odai.length();\n//\t\t\tT.add(tem) ;\n\t\t\tint kai = scan.nextInt();\n\t\t\tfor(int i=0; i<kai; i++){\n\t\t\t\tshuffleBegin[i] = scan.nextInt();\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(int i =0;i<kai; i++){\n\t\t\t\tfor(int ii=0; ii<(odaiNagasa - shuffleBegin[i]) ; ii++){\n\t\t\t\t\tword = word + odaiChar[ii + shuffleBegin[i]];\n//\t\t\t\t\tSystem.out.println(word);\n\t\t\t\t}\n\t\t\t\tfor(int ii=0; ii<shuffleBegin[i]; ii++){\n\t\t\t\t\tword = word + odaiChar[ii];\n//\t\t\t\t\tSystem.out.println(word);\n\t\t\t\t}\n\t\t\todaiChar = word.toCharArray();\n\t\t\tkansei = word;\n\t\t\tword = \"\";\n\t\t\t}\n\t\t\tSystem.out.println(kansei);\t\t\n\t\t\t\n\t\t}",
"!temp.equals(\"-\")",
"temp.equals(\"-\")",
"temp.equals",
"temp",
"\"-\"",
"{\n\t\t\ttemp = scan.next();\n\t\t\tif(temp.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\todai = temp;\n\t\t\tchar[] odaiChar = odai.toCharArray();\n\t\t\tint odaiNagasa = odai.length();\n//\t\t\tT.add(tem) ;\n\t\t\tint kai = scan.nextInt();\n\t\t\tfor(int i=0; i<kai; i++){\n\t\t\t\tshuffleBegin[i] = scan.nextInt();\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(int i =0;i<kai; i++){\n\t\t\t\tfor(int ii=0; ii<(odaiNagasa - shuffleBegin[i]) ; ii++){\n\t\t\t\t\tword = word + odaiChar[ii + shuffleBegin[i]];\n//\t\t\t\t\tSystem.out.println(word);\n\t\t\t\t}\n\t\t\t\tfor(int ii=0; ii<shuffleBegin[i]; ii++){\n\t\t\t\t\tword = word + odaiChar[ii];\n//\t\t\t\t\tSystem.out.println(word);\n\t\t\t\t}\n\t\t\todaiChar = word.toCharArray();\n\t\t\tkansei = word;\n\t\t\tword = \"\";\n\t\t\t}\n\t\t\tSystem.out.println(kansei);\t\t\n\t\t\t\n\t\t}",
"temp = scan.next()",
"temp",
"scan.next()",
"scan.next",
"scan",
"if(temp.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}",
"temp.equals(\"-\")",
"temp.equals",
"temp",
"\"-\"",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"odai = temp",
"odai",
"temp",
"char[] odaiChar = odai.toCharArray();",
"odaiChar",
"odai.toCharArray()",
"odai.toCharArray",
"odai",
"int odaiNagasa = odai.length();",
"odaiNagasa",
"odai.length()",
"odai.length",
"odai",
"int kai = scan.nextInt();",
"kai",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i=0; i<kai; i++){\n\t\t\t\tshuffleBegin[i] = scan.nextInt();\n\t\t\t\t\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<kai",
"i",
"kai",
"i++",
"i++",
"i",
"{\n\t\t\t\tshuffleBegin[i] = scan.nextInt();\n\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\tshuffleBegin[i] = scan.nextInt();\n\t\t\t\t\n\t\t\t}",
"shuffleBegin[i] = scan.nextInt()",
"shuffleBegin[i]",
"shuffleBegin",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i =0;i<kai; i++){\n\t\t\t\tfor(int ii=0; ii<(odaiNagasa - shuffleBegin[i]) ; ii++){\n\t\t\t\t\tword = word + odaiChar[ii + shuffleBegin[i]];\n//\t\t\t\t\tSystem.out.println(word);\n\t\t\t\t}\n\t\t\t\tfor(int ii=0; ii<shuffleBegin[i]; ii++){\n\t\t\t\t\tword = word + odaiChar[ii];\n//\t\t\t\t\tSystem.out.println(word);\n\t\t\t\t}\n\t\t\todaiChar = word.toCharArray();\n\t\t\tkansei = word;\n\t\t\tword = \"\";\n\t\t\t}",
"int i =0;",
"int i =0;",
"i",
"0",
"i<kai",
"i",
"kai",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(int ii=0; ii<(odaiNagasa - shuffleBegin[i]) ; ii++){\n\t\t\t\t\tword = word + odaiChar[ii + shuffleBegin[i]];\n//\t\t\t\t\tSystem.out.println(word);\n\t\t\t\t}\n\t\t\t\tfor(int ii=0; ii<shuffleBegin[i]; ii++){\n\t\t\t\t\tword = word + odaiChar[ii];\n//\t\t\t\t\tSystem.out.println(word);\n\t\t\t\t}\n\t\t\todaiChar = word.toCharArray();\n\t\t\tkansei = word;\n\t\t\tword = \"\";\n\t\t\t}",
"{\n\t\t\t\tfor(int ii=0; ii<(odaiNagasa - shuffleBegin[i]) ; ii++){\n\t\t\t\t\tword = word + odaiChar[ii + shuffleBegin[i]];\n//\t\t\t\t\tSystem.out.println(word);\n\t\t\t\t}\n\t\t\t\tfor(int ii=0; ii<shuffleBegin[i]; ii++){\n\t\t\t\t\tword = word + odaiChar[ii];\n//\t\t\t\t\tSystem.out.println(word);\n\t\t\t\t}\n\t\t\todaiChar = word.toCharArray();\n\t\t\tkansei = word;\n\t\t\tword = \"\";\n\t\t\t}",
"for(int ii=0; ii<(odaiNagasa - shuffleBegin[i]) ; ii++){\n\t\t\t\t\tword = word + odaiChar[ii + shuffleBegin[i]];\n//\t\t\t\t\tSystem.out.println(word);\n\t\t\t\t}",
"int ii=0;",
"int ii=0;",
"ii",
"0",
"ii<(odaiNagasa - shuffleBegin[i])",
"ii",
"(odaiNagasa - shuffleBegin[i])",
"odaiNagasa",
"shuffleBegin[i]",
"shuffleBegin",
"i",
"ii++",
"ii++",
"ii",
"{\n\t\t\t\t\tword = word + odaiChar[ii + shuffleBegin[i]];\n//\t\t\t\t\tSystem.out.println(word);\n\t\t\t\t}",
"{\n\t\t\t\t\tword = word + odaiChar[ii + shuffleBegin[i]];\n//\t\t\t\t\tSystem.out.println(word);\n\t\t\t\t}",
"word = word + odaiChar[ii + shuffleBegin[i]]",
"word",
"word + odaiChar[ii + shuffleBegin[i]]",
"word",
"odaiChar[ii + shuffleBegin[i]]",
"odaiChar",
"ii + shuffleBegin[i]",
"ii",
"shuffleBegin[i]",
"shuffleBegin",
"i",
"for(int ii=0; ii<shuffleBegin[i]; ii++){\n\t\t\t\t\tword = word + odaiChar[ii];\n//\t\t\t\t\tSystem.out.println(word);\n\t\t\t\t}",
"int ii=0;",
"int ii=0;",
"ii",
"0",
"ii<shuffleBegin[i]",
"ii",
"shuffleBegin[i]",
"shuffleBegin",
"i",
"ii++",
"ii++",
"ii",
"{\n\t\t\t\t\tword = word + odaiChar[ii];\n//\t\t\t\t\tSystem.out.println(word);\n\t\t\t\t}",
"{\n\t\t\t\t\tword = word + odaiChar[ii];\n//\t\t\t\t\tSystem.out.println(word);\n\t\t\t\t}",
"word = word + odaiChar[ii]",
"word",
"word + odaiChar[ii]",
"word",
"odaiChar[ii]",
"odaiChar",
"ii",
"odaiChar = word.toCharArray()",
"odaiChar",
"word.toCharArray()",
"word.toCharArray",
"word",
"kansei = word",
"kansei",
"word",
"word = \"\"",
"word",
"\"\"",
"System.out.println(kansei)",
"System.out.println",
"System.out",
"System",
"System.out",
"kansei",
"String[] args",
"args"
]
| import java.io.IOException;
import java.util.Scanner;
class Main{
public static void main(String[] args)throws NumberFormatException, IOException{
//System.out.print(" ");
Scanner scan = new Scanner(System.in);
String word = ""; //???????????????string
int[] shuffleBegin = new int[100]; //?????£?????????????§????
String odai = "";
String temp = "";
String kansei = "";
while(!temp.equals("-")){
temp = scan.next();
if(temp.equals("-")){
break;
}
odai = temp;
char[] odaiChar = odai.toCharArray();
int odaiNagasa = odai.length();
// T.add(tem) ;
int kai = scan.nextInt();
for(int i=0; i<kai; i++){
shuffleBegin[i] = scan.nextInt();
}
for(int i =0;i<kai; i++){
for(int ii=0; ii<(odaiNagasa - shuffleBegin[i]) ; ii++){
word = word + odaiChar[ii + shuffleBegin[i]];
// System.out.println(word);
}
for(int ii=0; ii<shuffleBegin[i]; ii++){
word = word + odaiChar[ii];
// System.out.println(word);
}
odaiChar = word.toCharArray();
kansei = word;
word = "";
}
System.out.println(kansei);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
41,
13,
42,
40,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
13,
0,
13,
4,
18,
13,
13,
4,
18,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
0,
13,
4,
18,
13,
4,
18,
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
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
25,
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
],
[
49,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
57,
61
],
[
49,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
49,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
31,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
31,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
8,
87
],
[
87,
88
],
[
88,
89
],
[
6,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n String line = sc.next();\n int m, h;\n\n String first, second;\n\n while (!line.equals(\"-\")) {\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n h = sc.nextInt();\n first = line.substring(0,h);\n second = line.substring(h,line.length());\n\n line = second + first;\n }\n\n System.out.println(line);\n\n line = sc.next();\n\n }\n\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n String line = sc.next();\n int m, h;\n\n String first, second;\n\n while (!line.equals(\"-\")) {\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n h = sc.nextInt();\n first = line.substring(0,h);\n second = line.substring(h,line.length());\n\n line = second + first;\n }\n\n System.out.println(line);\n\n line = sc.next();\n\n }\n\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n String line = sc.next();\n int m, h;\n\n String first, second;\n\n while (!line.equals(\"-\")) {\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n h = sc.nextInt();\n first = line.substring(0,h);\n second = line.substring(h,line.length());\n\n line = second + first;\n }\n\n System.out.println(line);\n\n line = sc.next();\n\n }\n\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n String line = sc.next();\n int m, h;\n\n String first, second;\n\n while (!line.equals(\"-\")) {\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n h = sc.nextInt();\n first = line.substring(0,h);\n second = line.substring(h,line.length());\n\n line = second + first;\n }\n\n System.out.println(line);\n\n line = sc.next();\n\n }\n\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line = sc.next();",
"line",
"sc.next()",
"sc.next",
"sc",
"int m",
"m",
"h;",
"h",
"String first",
"first",
"second;",
"second",
"while (!line.equals(\"-\")) {\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n h = sc.nextInt();\n first = line.substring(0,h);\n second = line.substring(h,line.length());\n\n line = second + first;\n }\n\n System.out.println(line);\n\n line = sc.next();\n\n }",
"!line.equals(\"-\")",
"line.equals(\"-\")",
"line.equals",
"line",
"\"-\"",
"{\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n h = sc.nextInt();\n first = line.substring(0,h);\n second = line.substring(h,line.length());\n\n line = second + first;\n }\n\n System.out.println(line);\n\n line = sc.next();\n\n }",
"m = sc.nextInt()",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < m; i++) {\n h = sc.nextInt();\n first = line.substring(0,h);\n second = line.substring(h,line.length());\n\n line = second + first;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n h = sc.nextInt();\n first = line.substring(0,h);\n second = line.substring(h,line.length());\n\n line = second + first;\n }",
"{\n h = sc.nextInt();\n first = line.substring(0,h);\n second = line.substring(h,line.length());\n\n line = second + first;\n }",
"h = sc.nextInt()",
"h",
"sc.nextInt()",
"sc.nextInt",
"sc",
"first = line.substring(0,h)",
"first",
"line.substring(0,h)",
"line.substring",
"line",
"0",
"h",
"second = line.substring(h,line.length())",
"second",
"line.substring(h,line.length())",
"line.substring",
"line",
"h",
"line.length()",
"line.length",
"line",
"line = second + first",
"line",
"second + first",
"second",
"first",
"System.out.println(line)",
"System.out.println",
"System.out",
"System",
"System.out",
"line",
"line = sc.next()",
"line",
"sc.next()",
"sc.next",
"sc",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n String line = sc.next();\n int m, h;\n\n String first, second;\n\n while (!line.equals(\"-\")) {\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n h = sc.nextInt();\n first = line.substring(0,h);\n second = line.substring(h,line.length());\n\n line = second + first;\n }\n\n System.out.println(line);\n\n line = sc.next();\n\n }\n\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n String line = sc.next();\n int m, h;\n\n String first, second;\n\n while (!line.equals(\"-\")) {\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n h = sc.nextInt();\n first = line.substring(0,h);\n second = line.substring(h,line.length());\n\n line = second + first;\n }\n\n System.out.println(line);\n\n line = sc.next();\n\n }\n\n sc.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String line = sc.next();
int m, h;
String first, second;
while (!line.equals("-")) {
m = sc.nextInt();
for (int i = 0; i < m; i++) {
h = sc.nextInt();
first = line.substring(0,h);
second = line.substring(h,line.length());
line = second + first;
}
System.out.println(line);
line = sc.next();
}
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
17,
30,
41,
13,
41,
13,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
0,
13,
4,
18,
13,
41,
13,
0,
13,
4,
18,
13,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
94,
14
],
[
94,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
23,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
33,
38
],
[
23,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
23,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
56,
64
],
[
64,
65
],
[
56,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
56,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
77,
81
],
[
56,
82
],
[
82,
83
],
[
82,
84
],
[
23,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
15,
91
],
[
91,
92
],
[
0,
93
],
[
93,
94
],
[
93,
95
]
]
| [
"import java.io.*;\nimport java.util.*;\nimport java.lang.Math;\nimport java.util.Arrays;\n\npublic class Main {\n public static void main(final String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n \n while (true) {\n String S;\n int m;\n S = sc.next();\n if (S.equals(\"-\"))\n break;\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n int h;\n h = sc.nextInt();\n String res;\n res = S.substring(h, S.length());\n res += S.substring(0, h);\n S = res;\n }\n System.out.println(S);\n }\n\n }\n \n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.lang.Math;",
"Math",
"java.lang",
"import java.util.Arrays;",
"Arrays",
"java.util",
"public class Main {\n public static void main(final String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n \n while (true) {\n String S;\n int m;\n S = sc.next();\n if (S.equals(\"-\"))\n break;\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n int h;\n h = sc.nextInt();\n String res;\n res = S.substring(h, S.length());\n res += S.substring(0, h);\n S = res;\n }\n System.out.println(S);\n }\n\n }\n \n}",
"Main",
"public static void main(final String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n \n while (true) {\n String S;\n int m;\n S = sc.next();\n if (S.equals(\"-\"))\n break;\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n int h;\n h = sc.nextInt();\n String res;\n res = S.substring(h, S.length());\n res += S.substring(0, h);\n S = res;\n }\n System.out.println(S);\n }\n\n }",
"main",
"{\n\n Scanner sc = new Scanner(System.in);\n\n \n while (true) {\n String S;\n int m;\n S = sc.next();\n if (S.equals(\"-\"))\n break;\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n int h;\n h = sc.nextInt();\n String res;\n res = S.substring(h, S.length());\n res += S.substring(0, h);\n S = res;\n }\n System.out.println(S);\n }\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while (true) {\n String S;\n int m;\n S = sc.next();\n if (S.equals(\"-\"))\n break;\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n int h;\n h = sc.nextInt();\n String res;\n res = S.substring(h, S.length());\n res += S.substring(0, h);\n S = res;\n }\n System.out.println(S);\n }",
"true",
"{\n String S;\n int m;\n S = sc.next();\n if (S.equals(\"-\"))\n break;\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n int h;\n h = sc.nextInt();\n String res;\n res = S.substring(h, S.length());\n res += S.substring(0, h);\n S = res;\n }\n System.out.println(S);\n }",
"String S;",
"S",
"int m;",
"m",
"S = sc.next()",
"S",
"sc.next()",
"sc.next",
"sc",
"if (S.equals(\"-\"))\n break;",
"S.equals(\"-\")",
"S.equals",
"S",
"\"-\"",
"break;",
"m = sc.nextInt()",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < m; i++) {\n int h;\n h = sc.nextInt();\n String res;\n res = S.substring(h, S.length());\n res += S.substring(0, h);\n S = res;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n int h;\n h = sc.nextInt();\n String res;\n res = S.substring(h, S.length());\n res += S.substring(0, h);\n S = res;\n }",
"{\n int h;\n h = sc.nextInt();\n String res;\n res = S.substring(h, S.length());\n res += S.substring(0, h);\n S = res;\n }",
"int h;",
"h",
"h = sc.nextInt()",
"h",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String res;",
"res",
"res = S.substring(h, S.length())",
"res",
"S.substring(h, S.length())",
"S.substring",
"S",
"h",
"S.length()",
"S.length",
"S",
"res += S.substring(0, h)",
"res",
"S.substring(0, h)",
"S.substring",
"S",
"0",
"h",
"S = res",
"S",
"res",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"final String[] args",
"args",
"public class Main {\n public static void main(final String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n \n while (true) {\n String S;\n int m;\n S = sc.next();\n if (S.equals(\"-\"))\n break;\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n int h;\n h = sc.nextInt();\n String res;\n res = S.substring(h, S.length());\n res += S.substring(0, h);\n S = res;\n }\n System.out.println(S);\n }\n\n }\n \n}",
"public class Main {\n public static void main(final String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n \n while (true) {\n String S;\n int m;\n S = sc.next();\n if (S.equals(\"-\"))\n break;\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n int h;\n h = sc.nextInt();\n String res;\n res = S.substring(h, S.length());\n res += S.substring(0, h);\n S = res;\n }\n System.out.println(S);\n }\n\n }\n \n}",
"Main"
]
| import java.io.*;
import java.util.*;
import java.lang.Math;
import java.util.Arrays;
public class Main {
public static void main(final String[] args) {
Scanner sc = new Scanner(System.in);
while (true) {
String S;
int m;
S = sc.next();
if (S.equals("-"))
break;
m = sc.nextInt();
for (int i = 0; i < m; i++) {
int h;
h = sc.nextInt();
String res;
res = S.substring(h, S.length());
res += S.substring(0, h);
S = res;
}
System.out.println(S);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
13,
2,
4,
18,
13,
13,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
16,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
22,
27
],
[
27,
28
],
[
16,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
16,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
39,
41
],
[
34,
42
],
[
42,
43
],
[
43,
44
],
[
34,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
46,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
54,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
59,
63
],
[
16,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
6,
70
],
[
70,
71
]
]
| [
"import java.util.*;\nclass Main {\n public static void main(String args[]) {\n try(Scanner sc = new Scanner(System.in)){\n while(true){\n String str=sc.next();\n if(str.equals(\"-\")){\n break;\n }\n int m=sc.nextInt();\n for(int i=0;i<m;i++){\n int length=sc.nextInt();\n str=str.substring(length)+str.substring(0,length);\n }\n System.out.println(str);\n }\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String args[]) {\n try(Scanner sc = new Scanner(System.in)){\n while(true){\n String str=sc.next();\n if(str.equals(\"-\")){\n break;\n }\n int m=sc.nextInt();\n for(int i=0;i<m;i++){\n int length=sc.nextInt();\n str=str.substring(length)+str.substring(0,length);\n }\n System.out.println(str);\n }\n }\n }\n}",
"Main",
"public static void main(String args[]) {\n try(Scanner sc = new Scanner(System.in)){\n while(true){\n String str=sc.next();\n if(str.equals(\"-\")){\n break;\n }\n int m=sc.nextInt();\n for(int i=0;i<m;i++){\n int length=sc.nextInt();\n str=str.substring(length)+str.substring(0,length);\n }\n System.out.println(str);\n }\n }\n }",
"main",
"{\n try(Scanner sc = new Scanner(System.in)){\n while(true){\n String str=sc.next();\n if(str.equals(\"-\")){\n break;\n }\n int m=sc.nextInt();\n for(int i=0;i<m;i++){\n int length=sc.nextInt();\n str=str.substring(length)+str.substring(0,length);\n }\n System.out.println(str);\n }\n }\n }",
"try(Scanner sc = new Scanner(System.in)){\n while(true){\n String str=sc.next();\n if(str.equals(\"-\")){\n break;\n }\n int m=sc.nextInt();\n for(int i=0;i<m;i++){\n int length=sc.nextInt();\n str=str.substring(length)+str.substring(0,length);\n }\n System.out.println(str);\n }\n }",
"{\n while(true){\n String str=sc.next();\n if(str.equals(\"-\")){\n break;\n }\n int m=sc.nextInt();\n for(int i=0;i<m;i++){\n int length=sc.nextInt();\n str=str.substring(length)+str.substring(0,length);\n }\n System.out.println(str);\n }\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"while(true){\n String str=sc.next();\n if(str.equals(\"-\")){\n break;\n }\n int m=sc.nextInt();\n for(int i=0;i<m;i++){\n int length=sc.nextInt();\n str=str.substring(length)+str.substring(0,length);\n }\n System.out.println(str);\n }",
"true",
"{\n String str=sc.next();\n if(str.equals(\"-\")){\n break;\n }\n int m=sc.nextInt();\n for(int i=0;i<m;i++){\n int length=sc.nextInt();\n str=str.substring(length)+str.substring(0,length);\n }\n System.out.println(str);\n }",
"String str=sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"if(str.equals(\"-\")){\n break;\n }",
"str.equals(\"-\")",
"str.equals",
"str",
"\"-\"",
"{\n break;\n }",
"break;",
"int m=sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i<m;i++){\n int length=sc.nextInt();\n str=str.substring(length)+str.substring(0,length);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n int length=sc.nextInt();\n str=str.substring(length)+str.substring(0,length);\n }",
"{\n int length=sc.nextInt();\n str=str.substring(length)+str.substring(0,length);\n }",
"int length=sc.nextInt();",
"length",
"sc.nextInt()",
"sc.nextInt",
"sc",
"str=str.substring(length)+str.substring(0,length)",
"str",
"str.substring(length)+str.substring(0,length)",
"str.substring(length)",
"str.substring",
"str",
"length",
"str.substring(0,length)",
"str.substring",
"str",
"0",
"length",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"String args[]",
"args"
]
| import java.util.*;
class Main {
public static void main(String args[]) {
try(Scanner sc = new Scanner(System.in)){
while(true){
String str=sc.next();
if(str.equals("-")){
break;
}
int m=sc.nextInt();
for(int i=0;i<m;i++){
int length=sc.nextInt();
str=str.substring(length)+str.substring(0,length);
}
System.out.println(str);
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
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,
17,
13,
41,
13,
4,
18,
13,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
20,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
26,
31
],
[
31,
32
],
[
20,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
20,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
50,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
58,
62
],
[
50,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
50,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
20,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
12,
80
],
[
80,
81
]
]
| [
"import java.io.*;\nimport java.util.*;\nimport java.lang.*;\n\nclass Main {\n public static void main(String [] args){\n Scanner scan = new Scanner(System.in);\n \n while(true){\n String s = scan.next();\n \n if(s.equals(\"-\")){\n break;\n }\n \n int m = scan.nextInt();\n \n for(int i = 0; i < m; ++i){\n int h = scan.nextInt();\n String t = s.substring(0, h);\n String b = s.substring(h);\n \n s = b + t;\n }\n \n System.out.println(s);\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){\n Scanner scan = new Scanner(System.in);\n \n while(true){\n String s = scan.next();\n \n if(s.equals(\"-\")){\n break;\n }\n \n int m = scan.nextInt();\n \n for(int i = 0; i < m; ++i){\n int h = scan.nextInt();\n String t = s.substring(0, h);\n String b = s.substring(h);\n \n s = b + t;\n }\n \n System.out.println(s);\n }\n }\n}",
"Main",
"public static void main(String [] args){\n Scanner scan = new Scanner(System.in);\n \n while(true){\n String s = scan.next();\n \n if(s.equals(\"-\")){\n break;\n }\n \n int m = scan.nextInt();\n \n for(int i = 0; i < m; ++i){\n int h = scan.nextInt();\n String t = s.substring(0, h);\n String b = s.substring(h);\n \n s = b + t;\n }\n \n System.out.println(s);\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n \n while(true){\n String s = scan.next();\n \n if(s.equals(\"-\")){\n break;\n }\n \n int m = scan.nextInt();\n \n for(int i = 0; i < m; ++i){\n int h = scan.nextInt();\n String t = s.substring(0, h);\n String b = s.substring(h);\n \n s = b + t;\n }\n \n System.out.println(s);\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"while(true){\n String s = scan.next();\n \n if(s.equals(\"-\")){\n break;\n }\n \n int m = scan.nextInt();\n \n for(int i = 0; i < m; ++i){\n int h = scan.nextInt();\n String t = s.substring(0, h);\n String b = s.substring(h);\n \n s = b + t;\n }\n \n System.out.println(s);\n }",
"true",
"{\n String s = scan.next();\n \n if(s.equals(\"-\")){\n break;\n }\n \n int m = scan.nextInt();\n \n for(int i = 0; i < m; ++i){\n int h = scan.nextInt();\n String t = s.substring(0, h);\n String b = s.substring(h);\n \n s = b + t;\n }\n \n System.out.println(s);\n }",
"String s = scan.next();",
"s",
"scan.next()",
"scan.next",
"scan",
"if(s.equals(\"-\")){\n break;\n }",
"s.equals(\"-\")",
"s.equals",
"s",
"\"-\"",
"{\n break;\n }",
"break;",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 0; i < m; ++i){\n int h = scan.nextInt();\n String t = s.substring(0, h);\n String b = s.substring(h);\n \n s = b + t;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"++i",
"++i",
"i",
"{\n int h = scan.nextInt();\n String t = s.substring(0, h);\n String b = s.substring(h);\n \n s = b + t;\n }",
"{\n int h = scan.nextInt();\n String t = s.substring(0, h);\n String b = s.substring(h);\n \n s = b + t;\n }",
"int h = scan.nextInt();",
"h",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String t = s.substring(0, h);",
"t",
"s.substring(0, h)",
"s.substring",
"s",
"0",
"h",
"String b = s.substring(h);",
"b",
"s.substring(h)",
"s.substring",
"s",
"h",
"s = b + t",
"s",
"b + t",
"b",
"t",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String [] args",
"args"
]
| import java.io.*;
import java.util.*;
import java.lang.*;
class Main {
public static void main(String [] args){
Scanner scan = new Scanner(System.in);
while(true){
String s = scan.next();
if(s.equals("-")){
break;
}
int m = scan.nextInt();
for(int i = 0; i < m; ++i){
int h = scan.nextInt();
String t = s.substring(0, h);
String b = s.substring(h);
s = b + t;
}
System.out.println(s);
}
}
}
|
[
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,
41,
13,
4,
18,
13,
41,
13,
20,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
13,
2,
13,
17,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
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,
0,
13,
4,
13,
13,
13,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
18,
13,
13,
41,
13,
4,
18,
13,
4,
18,
13,
13,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
41,
13,
2,
4,
18,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
13,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
18,
13,
13,
40,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
13,
18,
13,
13,
30,
0,
18,
13,
13,
18,
13,
13,
30,
0,
18,
13,
13,
18,
13,
2,
13,
18,
13,
13,
29,
13,
23,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
274,
11
],
[
274,
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
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
31,
32
],
[
31,
33
],
[
34,
35
],
[
35,
36
],
[
25,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
37,
42
],
[
42,
43
],
[
37,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
45,
55
],
[
55,
56
],
[
56,
57
],
[
45,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
44,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
44,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
44,
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
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
94,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
94,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
108,
110
],
[
108,
111
],
[
108,
112
],
[
44,
113
],
[
113,
114
],
[
113,
115
],
[
44,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
123,
125
],
[
116,
126
],
[
126,
127
],
[
127,
128
],
[
116,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
134,
135
],
[
134,
136
],
[
44,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
44,
142
],
[
142,
143
],
[
143,
144
],
[
142,
145
],
[
14,
146
],
[
146,
147
],
[
146,
148
],
[
146,
149
],
[
150,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
12,
157
],
[
157,
158
],
[
274,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
168,
172
],
[
161,
173
],
[
173,
174
],
[
173,
175
],
[
161,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
182,
183
],
[
182,
184
],
[
177,
185
],
[
185,
186
],
[
186,
187
],
[
177,
188
],
[
189,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
190,
194
],
[
194,
195
],
[
194,
196
],
[
161,
197
],
[
197,
198
],
[
197,
199
],
[
161,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
200,
205
],
[
205,
206
],
[
205,
207
],
[
207,
208
],
[
208,
209
],
[
200,
210
],
[
210,
211
],
[
211,
212
],
[
200,
213
],
[
214,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
215,
219
],
[
219,
220
],
[
219,
221
],
[
214,
222
],
[
222,
223
],
[
161,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
224,
229
],
[
229,
230
],
[
229,
231
],
[
231,
232
],
[
232,
233
],
[
224,
234
],
[
234,
235
],
[
235,
236
],
[
224,
237
],
[
238,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
242,
243
],
[
242,
244
],
[
239,
245
],
[
245,
246
],
[
246,
247
],
[
247,
248
],
[
247,
249
],
[
246,
250
],
[
250,
251
],
[
250,
252
],
[
239,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
254,
258
],
[
258,
259
],
[
258,
260
],
[
260,
261
],
[
260,
262
],
[
262,
263
],
[
262,
264
],
[
161,
265
],
[
265,
266
],
[
159,
267
],
[
267,
268
],
[
159,
269
],
[
269,
270
],
[
159,
271
],
[
271,
272
],
[
0,
273
],
[
273,
274
],
[
273,
275
]
]
| [
"\nimport java.util.ArrayList;\nimport java.util.List;\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//\tSystem.out.println(\"?????£??????????????????????????????????????????-?????\\???\");\n\n\t\tList<String> list = new ArrayList<String>();\n\n\t\twhile(sc.hasNext()) {\n\n\n\t\t\tString strCards = sc.nextLine();\n\t\t\tString[] arrayCards = new String[strCards.length()];\n\n\t\t\tif(strCards.equals(\"-\")) {\n\t\t//\t\tSystem.out.println(\"???????????????\");\n\t\t\t\tbreak;\n\t\t\t}else {\n\n\t\t\t\t//??????????????\\??????????????´??????????§£??????????´??????????\n\t\t\t\tfor(int i = 0; i < strCards.length(); i++) {\n\t\t\t\t\tarrayCards[i] = strCards.substring(i, i+1);\n\t\t\t\t}\n\n\t\t//\t\tfor(String s : arrayCards) {\n\t\t//\t\t\tSystem.out.println(\"?????£???????????? : \"+s);\n\t\t//\t\t}\n\n\t\t\t\t//???????????£???????????????????±???????\n\t\t//\t\tSystem.out.println(\"???????????£?????????????????????\");\n\n\t\t\t\tString strH = sc.nextLine();\n\t\t\t\tint intH = Integer.parseInt(strH);\n\n\t\t\t\t//int intH = sc.nextInt();\n\t\t\t\tfor(int i = 0; i < intH; i++) {\n\t\t//\t\t\tSystem.out.println(\"?????£?????????\"+ (i+1) +\"??????\");\n\t\t//\t\t\tSystem.out.println(\"?????????h??????????????????????????£?????????????????????\");\n\n\n\t\t\t\t\tString strInputNum = sc.nextLine();\n\t\t\t\t\tint inputNum = Integer.parseInt(strInputNum);\n\n\t\t\t\t\t//int inputNum = sc.nextInt();\n\t\t\t\t\tarrayCards = shuffle(inputNum, strCards, arrayCards);\n\t\t\t\t}\n\n\t\t//\t\tSystem.out.println(\"?????£???????????????\");\n\n\n\t\t\t//\tfor(String s : arrayCards) {\n\t\t\t//\t\tSystem.out.println(\"?????£???????????? : \"+s);\n\t\t\t//\t}\n\n\t\t\t\tStringBuffer buf = new StringBuffer();\n\n\t\t\t\tfor(int i = 0; i < arrayCards.length; i++) {\n\t\t\t\t\tbuf.append(arrayCards[i]);\n\t\t\t\t}\n\t\t\t\t//?????£??????????????????????????????????????????\n\t\t\t\tString strBuf = buf.toString();\n\n\t\t\t\tlist.add(strBuf);\n\n\t\t//\t\tSystem.out.println(\"??°?????????????????§?????£??????????????????????????????????????????-?????\\???\");\n\n\t\t\t}\n\t\t}\n\n\t\tfor(String s : list) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\n\t}\n\n\tpublic static String[] shuffle(int intH, String strCards, String[] arrayCards) {\n\n\t\tString[] arrayOkibaBack = new String[intH];\n\n\t\tint aOFYousosu = strCards.length() - intH;\n\t\tString[] arrayOkibaFront = new String[aOFYousosu];\n\n\t\t//????????????????????????????????????\n\t\tfor(int i = 0; i < intH; i++) {\n\t\t\tarrayOkibaBack[i] = arrayCards[i];\n\t\t}\n\n\t\t//????????????????????????????????????\n\t\tint Count = 0;\n\t\tfor(int i = intH; i < strCards.length();i++) {\n\t\t\tarrayOkibaFront[Count] = arrayCards[i];\n\t\t\tCount++;\n\t\t}\n\t\t//?????£???????????????????????????????????\\????????????\n\t\tfor(int i = 0; i < strCards.length(); i++) {\n\t\t\tif(i < arrayOkibaFront.length) {\n\t\t\t\tarrayCards[i] = arrayOkibaFront[i];\n\t\t\t}\n\t\t\telse {\n\t\t\t\tarrayCards[i] = arrayOkibaBack[i - (arrayOkibaFront.length)];\n\t\t\t}\n\t\t}\n\n\t\treturn arrayCards;\n\n\t}\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t//\tSystem.out.println(\"?????£??????????????????????????????????????????-?????\\???\");\n\n\t\tList<String> list = new ArrayList<String>();\n\n\t\twhile(sc.hasNext()) {\n\n\n\t\t\tString strCards = sc.nextLine();\n\t\t\tString[] arrayCards = new String[strCards.length()];\n\n\t\t\tif(strCards.equals(\"-\")) {\n\t\t//\t\tSystem.out.println(\"???????????????\");\n\t\t\t\tbreak;\n\t\t\t}else {\n\n\t\t\t\t//??????????????\\??????????????´??????????§£??????????´??????????\n\t\t\t\tfor(int i = 0; i < strCards.length(); i++) {\n\t\t\t\t\tarrayCards[i] = strCards.substring(i, i+1);\n\t\t\t\t}\n\n\t\t//\t\tfor(String s : arrayCards) {\n\t\t//\t\t\tSystem.out.println(\"?????£???????????? : \"+s);\n\t\t//\t\t}\n\n\t\t\t\t//???????????£???????????????????±???????\n\t\t//\t\tSystem.out.println(\"???????????£?????????????????????\");\n\n\t\t\t\tString strH = sc.nextLine();\n\t\t\t\tint intH = Integer.parseInt(strH);\n\n\t\t\t\t//int intH = sc.nextInt();\n\t\t\t\tfor(int i = 0; i < intH; i++) {\n\t\t//\t\t\tSystem.out.println(\"?????£?????????\"+ (i+1) +\"??????\");\n\t\t//\t\t\tSystem.out.println(\"?????????h??????????????????????????£?????????????????????\");\n\n\n\t\t\t\t\tString strInputNum = sc.nextLine();\n\t\t\t\t\tint inputNum = Integer.parseInt(strInputNum);\n\n\t\t\t\t\t//int inputNum = sc.nextInt();\n\t\t\t\t\tarrayCards = shuffle(inputNum, strCards, arrayCards);\n\t\t\t\t}\n\n\t\t//\t\tSystem.out.println(\"?????£???????????????\");\n\n\n\t\t\t//\tfor(String s : arrayCards) {\n\t\t\t//\t\tSystem.out.println(\"?????£???????????? : \"+s);\n\t\t\t//\t}\n\n\t\t\t\tStringBuffer buf = new StringBuffer();\n\n\t\t\t\tfor(int i = 0; i < arrayCards.length; i++) {\n\t\t\t\t\tbuf.append(arrayCards[i]);\n\t\t\t\t}\n\t\t\t\t//?????£??????????????????????????????????????????\n\t\t\t\tString strBuf = buf.toString();\n\n\t\t\t\tlist.add(strBuf);\n\n\t\t//\t\tSystem.out.println(\"??°?????????????????§?????£??????????????????????????????????????????-?????\\???\");\n\n\t\t\t}\n\t\t}\n\n\t\tfor(String s : list) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\n\t}\n\n\tpublic static String[] shuffle(int intH, String strCards, String[] arrayCards) {\n\n\t\tString[] arrayOkibaBack = new String[intH];\n\n\t\tint aOFYousosu = strCards.length() - intH;\n\t\tString[] arrayOkibaFront = new String[aOFYousosu];\n\n\t\t//????????????????????????????????????\n\t\tfor(int i = 0; i < intH; i++) {\n\t\t\tarrayOkibaBack[i] = arrayCards[i];\n\t\t}\n\n\t\t//????????????????????????????????????\n\t\tint Count = 0;\n\t\tfor(int i = intH; i < strCards.length();i++) {\n\t\t\tarrayOkibaFront[Count] = arrayCards[i];\n\t\t\tCount++;\n\t\t}\n\t\t//?????£???????????????????????????????????\\????????????\n\t\tfor(int i = 0; i < strCards.length(); i++) {\n\t\t\tif(i < arrayOkibaFront.length) {\n\t\t\t\tarrayCards[i] = arrayOkibaFront[i];\n\t\t\t}\n\t\t\telse {\n\t\t\t\tarrayCards[i] = arrayOkibaBack[i - (arrayOkibaFront.length)];\n\t\t\t}\n\t\t}\n\n\t\treturn arrayCards;\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t//\tSystem.out.println(\"?????£??????????????????????????????????????????-?????\\???\");\n\n\t\tList<String> list = new ArrayList<String>();\n\n\t\twhile(sc.hasNext()) {\n\n\n\t\t\tString strCards = sc.nextLine();\n\t\t\tString[] arrayCards = new String[strCards.length()];\n\n\t\t\tif(strCards.equals(\"-\")) {\n\t\t//\t\tSystem.out.println(\"???????????????\");\n\t\t\t\tbreak;\n\t\t\t}else {\n\n\t\t\t\t//??????????????\\??????????????´??????????§£??????????´??????????\n\t\t\t\tfor(int i = 0; i < strCards.length(); i++) {\n\t\t\t\t\tarrayCards[i] = strCards.substring(i, i+1);\n\t\t\t\t}\n\n\t\t//\t\tfor(String s : arrayCards) {\n\t\t//\t\t\tSystem.out.println(\"?????£???????????? : \"+s);\n\t\t//\t\t}\n\n\t\t\t\t//???????????£???????????????????±???????\n\t\t//\t\tSystem.out.println(\"???????????£?????????????????????\");\n\n\t\t\t\tString strH = sc.nextLine();\n\t\t\t\tint intH = Integer.parseInt(strH);\n\n\t\t\t\t//int intH = sc.nextInt();\n\t\t\t\tfor(int i = 0; i < intH; i++) {\n\t\t//\t\t\tSystem.out.println(\"?????£?????????\"+ (i+1) +\"??????\");\n\t\t//\t\t\tSystem.out.println(\"?????????h??????????????????????????£?????????????????????\");\n\n\n\t\t\t\t\tString strInputNum = sc.nextLine();\n\t\t\t\t\tint inputNum = Integer.parseInt(strInputNum);\n\n\t\t\t\t\t//int inputNum = sc.nextInt();\n\t\t\t\t\tarrayCards = shuffle(inputNum, strCards, arrayCards);\n\t\t\t\t}\n\n\t\t//\t\tSystem.out.println(\"?????£???????????????\");\n\n\n\t\t\t//\tfor(String s : arrayCards) {\n\t\t\t//\t\tSystem.out.println(\"?????£???????????? : \"+s);\n\t\t\t//\t}\n\n\t\t\t\tStringBuffer buf = new StringBuffer();\n\n\t\t\t\tfor(int i = 0; i < arrayCards.length; i++) {\n\t\t\t\t\tbuf.append(arrayCards[i]);\n\t\t\t\t}\n\t\t\t\t//?????£??????????????????????????????????????????\n\t\t\t\tString strBuf = buf.toString();\n\n\t\t\t\tlist.add(strBuf);\n\n\t\t//\t\tSystem.out.println(\"??°?????????????????§?????£??????????????????????????????????????????-?????\\???\");\n\n\t\t\t}\n\t\t}\n\n\t\tfor(String s : list) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t//\tSystem.out.println(\"?????£??????????????????????????????????????????-?????\\???\");\n\n\t\tList<String> list = new ArrayList<String>();\n\n\t\twhile(sc.hasNext()) {\n\n\n\t\t\tString strCards = sc.nextLine();\n\t\t\tString[] arrayCards = new String[strCards.length()];\n\n\t\t\tif(strCards.equals(\"-\")) {\n\t\t//\t\tSystem.out.println(\"???????????????\");\n\t\t\t\tbreak;\n\t\t\t}else {\n\n\t\t\t\t//??????????????\\??????????????´??????????§£??????????´??????????\n\t\t\t\tfor(int i = 0; i < strCards.length(); i++) {\n\t\t\t\t\tarrayCards[i] = strCards.substring(i, i+1);\n\t\t\t\t}\n\n\t\t//\t\tfor(String s : arrayCards) {\n\t\t//\t\t\tSystem.out.println(\"?????£???????????? : \"+s);\n\t\t//\t\t}\n\n\t\t\t\t//???????????£???????????????????±???????\n\t\t//\t\tSystem.out.println(\"???????????£?????????????????????\");\n\n\t\t\t\tString strH = sc.nextLine();\n\t\t\t\tint intH = Integer.parseInt(strH);\n\n\t\t\t\t//int intH = sc.nextInt();\n\t\t\t\tfor(int i = 0; i < intH; i++) {\n\t\t//\t\t\tSystem.out.println(\"?????£?????????\"+ (i+1) +\"??????\");\n\t\t//\t\t\tSystem.out.println(\"?????????h??????????????????????????£?????????????????????\");\n\n\n\t\t\t\t\tString strInputNum = sc.nextLine();\n\t\t\t\t\tint inputNum = Integer.parseInt(strInputNum);\n\n\t\t\t\t\t//int inputNum = sc.nextInt();\n\t\t\t\t\tarrayCards = shuffle(inputNum, strCards, arrayCards);\n\t\t\t\t}\n\n\t\t//\t\tSystem.out.println(\"?????£???????????????\");\n\n\n\t\t\t//\tfor(String s : arrayCards) {\n\t\t\t//\t\tSystem.out.println(\"?????£???????????? : \"+s);\n\t\t\t//\t}\n\n\t\t\t\tStringBuffer buf = new StringBuffer();\n\n\t\t\t\tfor(int i = 0; i < arrayCards.length; i++) {\n\t\t\t\t\tbuf.append(arrayCards[i]);\n\t\t\t\t}\n\t\t\t\t//?????£??????????????????????????????????????????\n\t\t\t\tString strBuf = buf.toString();\n\n\t\t\t\tlist.add(strBuf);\n\n\t\t//\t\tSystem.out.println(\"??°?????????????????§?????£??????????????????????????????????????????-?????\\???\");\n\n\t\t\t}\n\t\t}\n\n\t\tfor(String s : list) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"List<String> list = new ArrayList<String>();",
"list",
"new ArrayList<String>()",
"while(sc.hasNext()) {\n\n\n\t\t\tString strCards = sc.nextLine();\n\t\t\tString[] arrayCards = new String[strCards.length()];\n\n\t\t\tif(strCards.equals(\"-\")) {\n\t\t//\t\tSystem.out.println(\"???????????????\");\n\t\t\t\tbreak;\n\t\t\t}else {\n\n\t\t\t\t//??????????????\\??????????????´??????????§£??????????´??????????\n\t\t\t\tfor(int i = 0; i < strCards.length(); i++) {\n\t\t\t\t\tarrayCards[i] = strCards.substring(i, i+1);\n\t\t\t\t}\n\n\t\t//\t\tfor(String s : arrayCards) {\n\t\t//\t\t\tSystem.out.println(\"?????£???????????? : \"+s);\n\t\t//\t\t}\n\n\t\t\t\t//???????????£???????????????????±???????\n\t\t//\t\tSystem.out.println(\"???????????£?????????????????????\");\n\n\t\t\t\tString strH = sc.nextLine();\n\t\t\t\tint intH = Integer.parseInt(strH);\n\n\t\t\t\t//int intH = sc.nextInt();\n\t\t\t\tfor(int i = 0; i < intH; i++) {\n\t\t//\t\t\tSystem.out.println(\"?????£?????????\"+ (i+1) +\"??????\");\n\t\t//\t\t\tSystem.out.println(\"?????????h??????????????????????????£?????????????????????\");\n\n\n\t\t\t\t\tString strInputNum = sc.nextLine();\n\t\t\t\t\tint inputNum = Integer.parseInt(strInputNum);\n\n\t\t\t\t\t//int inputNum = sc.nextInt();\n\t\t\t\t\tarrayCards = shuffle(inputNum, strCards, arrayCards);\n\t\t\t\t}\n\n\t\t//\t\tSystem.out.println(\"?????£???????????????\");\n\n\n\t\t\t//\tfor(String s : arrayCards) {\n\t\t\t//\t\tSystem.out.println(\"?????£???????????? : \"+s);\n\t\t\t//\t}\n\n\t\t\t\tStringBuffer buf = new StringBuffer();\n\n\t\t\t\tfor(int i = 0; i < arrayCards.length; i++) {\n\t\t\t\t\tbuf.append(arrayCards[i]);\n\t\t\t\t}\n\t\t\t\t//?????£??????????????????????????????????????????\n\t\t\t\tString strBuf = buf.toString();\n\n\t\t\t\tlist.add(strBuf);\n\n\t\t//\t\tSystem.out.println(\"??°?????????????????§?????£??????????????????????????????????????????-?????\\???\");\n\n\t\t\t}\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\n\n\t\t\tString strCards = sc.nextLine();\n\t\t\tString[] arrayCards = new String[strCards.length()];\n\n\t\t\tif(strCards.equals(\"-\")) {\n\t\t//\t\tSystem.out.println(\"???????????????\");\n\t\t\t\tbreak;\n\t\t\t}else {\n\n\t\t\t\t//??????????????\\??????????????´??????????§£??????????´??????????\n\t\t\t\tfor(int i = 0; i < strCards.length(); i++) {\n\t\t\t\t\tarrayCards[i] = strCards.substring(i, i+1);\n\t\t\t\t}\n\n\t\t//\t\tfor(String s : arrayCards) {\n\t\t//\t\t\tSystem.out.println(\"?????£???????????? : \"+s);\n\t\t//\t\t}\n\n\t\t\t\t//???????????£???????????????????±???????\n\t\t//\t\tSystem.out.println(\"???????????£?????????????????????\");\n\n\t\t\t\tString strH = sc.nextLine();\n\t\t\t\tint intH = Integer.parseInt(strH);\n\n\t\t\t\t//int intH = sc.nextInt();\n\t\t\t\tfor(int i = 0; i < intH; i++) {\n\t\t//\t\t\tSystem.out.println(\"?????£?????????\"+ (i+1) +\"??????\");\n\t\t//\t\t\tSystem.out.println(\"?????????h??????????????????????????£?????????????????????\");\n\n\n\t\t\t\t\tString strInputNum = sc.nextLine();\n\t\t\t\t\tint inputNum = Integer.parseInt(strInputNum);\n\n\t\t\t\t\t//int inputNum = sc.nextInt();\n\t\t\t\t\tarrayCards = shuffle(inputNum, strCards, arrayCards);\n\t\t\t\t}\n\n\t\t//\t\tSystem.out.println(\"?????£???????????????\");\n\n\n\t\t\t//\tfor(String s : arrayCards) {\n\t\t\t//\t\tSystem.out.println(\"?????£???????????? : \"+s);\n\t\t\t//\t}\n\n\t\t\t\tStringBuffer buf = new StringBuffer();\n\n\t\t\t\tfor(int i = 0; i < arrayCards.length; i++) {\n\t\t\t\t\tbuf.append(arrayCards[i]);\n\t\t\t\t}\n\t\t\t\t//?????£??????????????????????????????????????????\n\t\t\t\tString strBuf = buf.toString();\n\n\t\t\t\tlist.add(strBuf);\n\n\t\t//\t\tSystem.out.println(\"??°?????????????????§?????£??????????????????????????????????????????-?????\\???\");\n\n\t\t\t}\n\t\t}",
"String strCards = sc.nextLine();",
"strCards",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] arrayCards = new String[strCards.length()];",
"arrayCards",
"new String[strCards.length()]",
"strCards.length()",
"strCards.length",
"strCards",
"if(strCards.equals(\"-\")) {\n\t\t//\t\tSystem.out.println(\"???????????????\");\n\t\t\t\tbreak;\n\t\t\t}else {\n\n\t\t\t\t//??????????????\\??????????????´??????????§£??????????´??????????\n\t\t\t\tfor(int i = 0; i < strCards.length(); i++) {\n\t\t\t\t\tarrayCards[i] = strCards.substring(i, i+1);\n\t\t\t\t}\n\n\t\t//\t\tfor(String s : arrayCards) {\n\t\t//\t\t\tSystem.out.println(\"?????£???????????? : \"+s);\n\t\t//\t\t}\n\n\t\t\t\t//???????????£???????????????????±???????\n\t\t//\t\tSystem.out.println(\"???????????£?????????????????????\");\n\n\t\t\t\tString strH = sc.nextLine();\n\t\t\t\tint intH = Integer.parseInt(strH);\n\n\t\t\t\t//int intH = sc.nextInt();\n\t\t\t\tfor(int i = 0; i < intH; i++) {\n\t\t//\t\t\tSystem.out.println(\"?????£?????????\"+ (i+1) +\"??????\");\n\t\t//\t\t\tSystem.out.println(\"?????????h??????????????????????????£?????????????????????\");\n\n\n\t\t\t\t\tString strInputNum = sc.nextLine();\n\t\t\t\t\tint inputNum = Integer.parseInt(strInputNum);\n\n\t\t\t\t\t//int inputNum = sc.nextInt();\n\t\t\t\t\tarrayCards = shuffle(inputNum, strCards, arrayCards);\n\t\t\t\t}\n\n\t\t//\t\tSystem.out.println(\"?????£???????????????\");\n\n\n\t\t\t//\tfor(String s : arrayCards) {\n\t\t\t//\t\tSystem.out.println(\"?????£???????????? : \"+s);\n\t\t\t//\t}\n\n\t\t\t\tStringBuffer buf = new StringBuffer();\n\n\t\t\t\tfor(int i = 0; i < arrayCards.length; i++) {\n\t\t\t\t\tbuf.append(arrayCards[i]);\n\t\t\t\t}\n\t\t\t\t//?????£??????????????????????????????????????????\n\t\t\t\tString strBuf = buf.toString();\n\n\t\t\t\tlist.add(strBuf);\n\n\t\t//\t\tSystem.out.println(\"??°?????????????????§?????£??????????????????????????????????????????-?????\\???\");\n\n\t\t\t}",
"strCards.equals(\"-\")",
"strCards.equals",
"strCards",
"\"-\"",
"{\n\t\t//\t\tSystem.out.println(\"???????????????\");\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"{\n\n\t\t\t\t//??????????????\\??????????????´??????????§£??????????´??????????\n\t\t\t\tfor(int i = 0; i < strCards.length(); i++) {\n\t\t\t\t\tarrayCards[i] = strCards.substring(i, i+1);\n\t\t\t\t}\n\n\t\t//\t\tfor(String s : arrayCards) {\n\t\t//\t\t\tSystem.out.println(\"?????£???????????? : \"+s);\n\t\t//\t\t}\n\n\t\t\t\t//???????????£???????????????????±???????\n\t\t//\t\tSystem.out.println(\"???????????£?????????????????????\");\n\n\t\t\t\tString strH = sc.nextLine();\n\t\t\t\tint intH = Integer.parseInt(strH);\n\n\t\t\t\t//int intH = sc.nextInt();\n\t\t\t\tfor(int i = 0; i < intH; i++) {\n\t\t//\t\t\tSystem.out.println(\"?????£?????????\"+ (i+1) +\"??????\");\n\t\t//\t\t\tSystem.out.println(\"?????????h??????????????????????????£?????????????????????\");\n\n\n\t\t\t\t\tString strInputNum = sc.nextLine();\n\t\t\t\t\tint inputNum = Integer.parseInt(strInputNum);\n\n\t\t\t\t\t//int inputNum = sc.nextInt();\n\t\t\t\t\tarrayCards = shuffle(inputNum, strCards, arrayCards);\n\t\t\t\t}\n\n\t\t//\t\tSystem.out.println(\"?????£???????????????\");\n\n\n\t\t\t//\tfor(String s : arrayCards) {\n\t\t\t//\t\tSystem.out.println(\"?????£???????????? : \"+s);\n\t\t\t//\t}\n\n\t\t\t\tStringBuffer buf = new StringBuffer();\n\n\t\t\t\tfor(int i = 0; i < arrayCards.length; i++) {\n\t\t\t\t\tbuf.append(arrayCards[i]);\n\t\t\t\t}\n\t\t\t\t//?????£??????????????????????????????????????????\n\t\t\t\tString strBuf = buf.toString();\n\n\t\t\t\tlist.add(strBuf);\n\n\t\t//\t\tSystem.out.println(\"??°?????????????????§?????£??????????????????????????????????????????-?????\\???\");\n\n\t\t\t}",
"for(int i = 0; i < strCards.length(); i++) {\n\t\t\t\t\tarrayCards[i] = strCards.substring(i, i+1);\n\t\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < strCards.length()",
"i",
"strCards.length()",
"strCards.length",
"strCards",
"i++",
"i++",
"i",
"{\n\t\t\t\t\tarrayCards[i] = strCards.substring(i, i+1);\n\t\t\t\t}",
"{\n\t\t\t\t\tarrayCards[i] = strCards.substring(i, i+1);\n\t\t\t\t}",
"arrayCards[i] = strCards.substring(i, i+1)",
"arrayCards[i]",
"arrayCards",
"i",
"strCards.substring(i, i+1)",
"strCards.substring",
"strCards",
"i",
"i+1",
"i",
"1",
"String strH = sc.nextLine();",
"strH",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int intH = Integer.parseInt(strH);",
"intH",
"Integer.parseInt(strH)",
"Integer.parseInt",
"Integer",
"strH",
"for(int i = 0; i < intH; i++) {\n\t\t//\t\t\tSystem.out.println(\"?????£?????????\"+ (i+1) +\"??????\");\n\t\t//\t\t\tSystem.out.println(\"?????????h??????????????????????????£?????????????????????\");\n\n\n\t\t\t\t\tString strInputNum = sc.nextLine();\n\t\t\t\t\tint inputNum = Integer.parseInt(strInputNum);\n\n\t\t\t\t\t//int inputNum = sc.nextInt();\n\t\t\t\t\tarrayCards = shuffle(inputNum, strCards, arrayCards);\n\t\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < intH",
"i",
"intH",
"i++",
"i++",
"i",
"{\n\t\t//\t\t\tSystem.out.println(\"?????£?????????\"+ (i+1) +\"??????\");\n\t\t//\t\t\tSystem.out.println(\"?????????h??????????????????????????£?????????????????????\");\n\n\n\t\t\t\t\tString strInputNum = sc.nextLine();\n\t\t\t\t\tint inputNum = Integer.parseInt(strInputNum);\n\n\t\t\t\t\t//int inputNum = sc.nextInt();\n\t\t\t\t\tarrayCards = shuffle(inputNum, strCards, arrayCards);\n\t\t\t\t}",
"{\n\t\t//\t\t\tSystem.out.println(\"?????£?????????\"+ (i+1) +\"??????\");\n\t\t//\t\t\tSystem.out.println(\"?????????h??????????????????????????£?????????????????????\");\n\n\n\t\t\t\t\tString strInputNum = sc.nextLine();\n\t\t\t\t\tint inputNum = Integer.parseInt(strInputNum);\n\n\t\t\t\t\t//int inputNum = sc.nextInt();\n\t\t\t\t\tarrayCards = shuffle(inputNum, strCards, arrayCards);\n\t\t\t\t}",
"String strInputNum = sc.nextLine();",
"strInputNum",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int inputNum = Integer.parseInt(strInputNum);",
"inputNum",
"Integer.parseInt(strInputNum)",
"Integer.parseInt",
"Integer",
"strInputNum",
"arrayCards = shuffle(inputNum, strCards, arrayCards)",
"arrayCards",
"shuffle(inputNum, strCards, arrayCards)",
"shuffle",
"inputNum",
"strCards",
"arrayCards",
"StringBuffer buf = new StringBuffer();",
"buf",
"new StringBuffer()",
"for(int i = 0; i < arrayCards.length; i++) {\n\t\t\t\t\tbuf.append(arrayCards[i]);\n\t\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < arrayCards.length",
"i",
"arrayCards.length",
"arrayCards",
"arrayCards.length",
"i++",
"i++",
"i",
"{\n\t\t\t\t\tbuf.append(arrayCards[i]);\n\t\t\t\t}",
"{\n\t\t\t\t\tbuf.append(arrayCards[i]);\n\t\t\t\t}",
"buf.append(arrayCards[i])",
"buf.append",
"buf",
"arrayCards[i]",
"arrayCards",
"i",
"String strBuf = buf.toString();",
"strBuf",
"buf.toString()",
"buf.toString",
"buf",
"list.add(strBuf)",
"list.add",
"list",
"strBuf",
"for(String s : list) {\n\t\t\tSystem.out.println(s);\n\t\t}",
"String s",
"list",
"{\n\t\t\tSystem.out.println(s);\n\t\t}",
"{\n\t\t\tSystem.out.println(s);\n\t\t}",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String[] args",
"args",
"public static String[] shuffle(int intH, String strCards, String[] arrayCards) {\n\n\t\tString[] arrayOkibaBack = new String[intH];\n\n\t\tint aOFYousosu = strCards.length() - intH;\n\t\tString[] arrayOkibaFront = new String[aOFYousosu];\n\n\t\t//????????????????????????????????????\n\t\tfor(int i = 0; i < intH; i++) {\n\t\t\tarrayOkibaBack[i] = arrayCards[i];\n\t\t}\n\n\t\t//????????????????????????????????????\n\t\tint Count = 0;\n\t\tfor(int i = intH; i < strCards.length();i++) {\n\t\t\tarrayOkibaFront[Count] = arrayCards[i];\n\t\t\tCount++;\n\t\t}\n\t\t//?????£???????????????????????????????????\\????????????\n\t\tfor(int i = 0; i < strCards.length(); i++) {\n\t\t\tif(i < arrayOkibaFront.length) {\n\t\t\t\tarrayCards[i] = arrayOkibaFront[i];\n\t\t\t}\n\t\t\telse {\n\t\t\t\tarrayCards[i] = arrayOkibaBack[i - (arrayOkibaFront.length)];\n\t\t\t}\n\t\t}\n\n\t\treturn arrayCards;\n\n\t}",
"shuffle",
"{\n\n\t\tString[] arrayOkibaBack = new String[intH];\n\n\t\tint aOFYousosu = strCards.length() - intH;\n\t\tString[] arrayOkibaFront = new String[aOFYousosu];\n\n\t\t//????????????????????????????????????\n\t\tfor(int i = 0; i < intH; i++) {\n\t\t\tarrayOkibaBack[i] = arrayCards[i];\n\t\t}\n\n\t\t//????????????????????????????????????\n\t\tint Count = 0;\n\t\tfor(int i = intH; i < strCards.length();i++) {\n\t\t\tarrayOkibaFront[Count] = arrayCards[i];\n\t\t\tCount++;\n\t\t}\n\t\t//?????£???????????????????????????????????\\????????????\n\t\tfor(int i = 0; i < strCards.length(); i++) {\n\t\t\tif(i < arrayOkibaFront.length) {\n\t\t\t\tarrayCards[i] = arrayOkibaFront[i];\n\t\t\t}\n\t\t\telse {\n\t\t\t\tarrayCards[i] = arrayOkibaBack[i - (arrayOkibaFront.length)];\n\t\t\t}\n\t\t}\n\n\t\treturn arrayCards;\n\n\t}",
"String[] arrayOkibaBack = new String[intH];",
"arrayOkibaBack",
"new String[intH]",
"intH",
"int aOFYousosu = strCards.length() - intH;",
"aOFYousosu",
"strCards.length() - intH",
"strCards.length()",
"strCards.length",
"strCards",
"intH",
"String[] arrayOkibaFront = new String[aOFYousosu];",
"arrayOkibaFront",
"new String[aOFYousosu]",
"aOFYousosu",
"for(int i = 0; i < intH; i++) {\n\t\t\tarrayOkibaBack[i] = arrayCards[i];\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < intH",
"i",
"intH",
"i++",
"i++",
"i",
"{\n\t\t\tarrayOkibaBack[i] = arrayCards[i];\n\t\t}",
"{\n\t\t\tarrayOkibaBack[i] = arrayCards[i];\n\t\t}",
"arrayOkibaBack[i] = arrayCards[i]",
"arrayOkibaBack[i]",
"arrayOkibaBack",
"i",
"arrayCards[i]",
"arrayCards",
"i",
"int Count = 0;",
"Count",
"0",
"for(int i = intH; i < strCards.length();i++) {\n\t\t\tarrayOkibaFront[Count] = arrayCards[i];\n\t\t\tCount++;\n\t\t}",
"int i = intH;",
"int i = intH;",
"i",
"intH",
"i < strCards.length()",
"i",
"strCards.length()",
"strCards.length",
"strCards",
"i++",
"i++",
"i",
"{\n\t\t\tarrayOkibaFront[Count] = arrayCards[i];\n\t\t\tCount++;\n\t\t}",
"{\n\t\t\tarrayOkibaFront[Count] = arrayCards[i];\n\t\t\tCount++;\n\t\t}",
"arrayOkibaFront[Count] = arrayCards[i]",
"arrayOkibaFront[Count]",
"arrayOkibaFront",
"Count",
"arrayCards[i]",
"arrayCards",
"i",
"Count++",
"Count",
"for(int i = 0; i < strCards.length(); i++) {\n\t\t\tif(i < arrayOkibaFront.length) {\n\t\t\t\tarrayCards[i] = arrayOkibaFront[i];\n\t\t\t}\n\t\t\telse {\n\t\t\t\tarrayCards[i] = arrayOkibaBack[i - (arrayOkibaFront.length)];\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < strCards.length()",
"i",
"strCards.length()",
"strCards.length",
"strCards",
"i++",
"i++",
"i",
"{\n\t\t\tif(i < arrayOkibaFront.length) {\n\t\t\t\tarrayCards[i] = arrayOkibaFront[i];\n\t\t\t}\n\t\t\telse {\n\t\t\t\tarrayCards[i] = arrayOkibaBack[i - (arrayOkibaFront.length)];\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i < arrayOkibaFront.length) {\n\t\t\t\tarrayCards[i] = arrayOkibaFront[i];\n\t\t\t}\n\t\t\telse {\n\t\t\t\tarrayCards[i] = arrayOkibaBack[i - (arrayOkibaFront.length)];\n\t\t\t}\n\t\t}",
"if(i < arrayOkibaFront.length) {\n\t\t\t\tarrayCards[i] = arrayOkibaFront[i];\n\t\t\t}\n\t\t\telse {\n\t\t\t\tarrayCards[i] = arrayOkibaBack[i - (arrayOkibaFront.length)];\n\t\t\t}",
"i < arrayOkibaFront.length",
"i",
"arrayOkibaFront.length",
"arrayOkibaFront",
"arrayOkibaFront.length",
"{\n\t\t\t\tarrayCards[i] = arrayOkibaFront[i];\n\t\t\t}",
"arrayCards[i] = arrayOkibaFront[i]",
"arrayCards[i]",
"arrayCards",
"i",
"arrayOkibaFront[i]",
"arrayOkibaFront",
"i",
"{\n\t\t\t\tarrayCards[i] = arrayOkibaBack[i - (arrayOkibaFront.length)];\n\t\t\t}",
"arrayCards[i] = arrayOkibaBack[i - (arrayOkibaFront.length)]",
"arrayCards[i]",
"arrayCards",
"i",
"arrayOkibaBack[i - (arrayOkibaFront.length)]",
"arrayOkibaBack",
"i - (arrayOkibaFront.length)",
"i",
"(arrayOkibaFront.length)",
"arrayOkibaFront",
"arrayOkibaFront.length",
"return arrayCards;",
"arrayCards",
"int intH",
"intH",
"String strCards",
"strCards",
"String[] arrayCards",
"arrayCards",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t//\tSystem.out.println(\"?????£??????????????????????????????????????????-?????\\???\");\n\n\t\tList<String> list = new ArrayList<String>();\n\n\t\twhile(sc.hasNext()) {\n\n\n\t\t\tString strCards = sc.nextLine();\n\t\t\tString[] arrayCards = new String[strCards.length()];\n\n\t\t\tif(strCards.equals(\"-\")) {\n\t\t//\t\tSystem.out.println(\"???????????????\");\n\t\t\t\tbreak;\n\t\t\t}else {\n\n\t\t\t\t//??????????????\\??????????????´??????????§£??????????´??????????\n\t\t\t\tfor(int i = 0; i < strCards.length(); i++) {\n\t\t\t\t\tarrayCards[i] = strCards.substring(i, i+1);\n\t\t\t\t}\n\n\t\t//\t\tfor(String s : arrayCards) {\n\t\t//\t\t\tSystem.out.println(\"?????£???????????? : \"+s);\n\t\t//\t\t}\n\n\t\t\t\t//???????????£???????????????????±???????\n\t\t//\t\tSystem.out.println(\"???????????£?????????????????????\");\n\n\t\t\t\tString strH = sc.nextLine();\n\t\t\t\tint intH = Integer.parseInt(strH);\n\n\t\t\t\t//int intH = sc.nextInt();\n\t\t\t\tfor(int i = 0; i < intH; i++) {\n\t\t//\t\t\tSystem.out.println(\"?????£?????????\"+ (i+1) +\"??????\");\n\t\t//\t\t\tSystem.out.println(\"?????????h??????????????????????????£?????????????????????\");\n\n\n\t\t\t\t\tString strInputNum = sc.nextLine();\n\t\t\t\t\tint inputNum = Integer.parseInt(strInputNum);\n\n\t\t\t\t\t//int inputNum = sc.nextInt();\n\t\t\t\t\tarrayCards = shuffle(inputNum, strCards, arrayCards);\n\t\t\t\t}\n\n\t\t//\t\tSystem.out.println(\"?????£???????????????\");\n\n\n\t\t\t//\tfor(String s : arrayCards) {\n\t\t\t//\t\tSystem.out.println(\"?????£???????????? : \"+s);\n\t\t\t//\t}\n\n\t\t\t\tStringBuffer buf = new StringBuffer();\n\n\t\t\t\tfor(int i = 0; i < arrayCards.length; i++) {\n\t\t\t\t\tbuf.append(arrayCards[i]);\n\t\t\t\t}\n\t\t\t\t//?????£??????????????????????????????????????????\n\t\t\t\tString strBuf = buf.toString();\n\n\t\t\t\tlist.add(strBuf);\n\n\t\t//\t\tSystem.out.println(\"??°?????????????????§?????£??????????????????????????????????????????-?????\\???\");\n\n\t\t\t}\n\t\t}\n\n\t\tfor(String s : list) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\n\t}\n\n\tpublic static String[] shuffle(int intH, String strCards, String[] arrayCards) {\n\n\t\tString[] arrayOkibaBack = new String[intH];\n\n\t\tint aOFYousosu = strCards.length() - intH;\n\t\tString[] arrayOkibaFront = new String[aOFYousosu];\n\n\t\t//????????????????????????????????????\n\t\tfor(int i = 0; i < intH; i++) {\n\t\t\tarrayOkibaBack[i] = arrayCards[i];\n\t\t}\n\n\t\t//????????????????????????????????????\n\t\tint Count = 0;\n\t\tfor(int i = intH; i < strCards.length();i++) {\n\t\t\tarrayOkibaFront[Count] = arrayCards[i];\n\t\t\tCount++;\n\t\t}\n\t\t//?????£???????????????????????????????????\\????????????\n\t\tfor(int i = 0; i < strCards.length(); i++) {\n\t\t\tif(i < arrayOkibaFront.length) {\n\t\t\t\tarrayCards[i] = arrayOkibaFront[i];\n\t\t\t}\n\t\t\telse {\n\t\t\t\tarrayCards[i] = arrayOkibaBack[i - (arrayOkibaFront.length)];\n\t\t\t}\n\t\t}\n\n\t\treturn arrayCards;\n\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t//\tSystem.out.println(\"?????£??????????????????????????????????????????-?????\\???\");\n\n\t\tList<String> list = new ArrayList<String>();\n\n\t\twhile(sc.hasNext()) {\n\n\n\t\t\tString strCards = sc.nextLine();\n\t\t\tString[] arrayCards = new String[strCards.length()];\n\n\t\t\tif(strCards.equals(\"-\")) {\n\t\t//\t\tSystem.out.println(\"???????????????\");\n\t\t\t\tbreak;\n\t\t\t}else {\n\n\t\t\t\t//??????????????\\??????????????´??????????§£??????????´??????????\n\t\t\t\tfor(int i = 0; i < strCards.length(); i++) {\n\t\t\t\t\tarrayCards[i] = strCards.substring(i, i+1);\n\t\t\t\t}\n\n\t\t//\t\tfor(String s : arrayCards) {\n\t\t//\t\t\tSystem.out.println(\"?????£???????????? : \"+s);\n\t\t//\t\t}\n\n\t\t\t\t//???????????£???????????????????±???????\n\t\t//\t\tSystem.out.println(\"???????????£?????????????????????\");\n\n\t\t\t\tString strH = sc.nextLine();\n\t\t\t\tint intH = Integer.parseInt(strH);\n\n\t\t\t\t//int intH = sc.nextInt();\n\t\t\t\tfor(int i = 0; i < intH; i++) {\n\t\t//\t\t\tSystem.out.println(\"?????£?????????\"+ (i+1) +\"??????\");\n\t\t//\t\t\tSystem.out.println(\"?????????h??????????????????????????£?????????????????????\");\n\n\n\t\t\t\t\tString strInputNum = sc.nextLine();\n\t\t\t\t\tint inputNum = Integer.parseInt(strInputNum);\n\n\t\t\t\t\t//int inputNum = sc.nextInt();\n\t\t\t\t\tarrayCards = shuffle(inputNum, strCards, arrayCards);\n\t\t\t\t}\n\n\t\t//\t\tSystem.out.println(\"?????£???????????????\");\n\n\n\t\t\t//\tfor(String s : arrayCards) {\n\t\t\t//\t\tSystem.out.println(\"?????£???????????? : \"+s);\n\t\t\t//\t}\n\n\t\t\t\tStringBuffer buf = new StringBuffer();\n\n\t\t\t\tfor(int i = 0; i < arrayCards.length; i++) {\n\t\t\t\t\tbuf.append(arrayCards[i]);\n\t\t\t\t}\n\t\t\t\t//?????£??????????????????????????????????????????\n\t\t\t\tString strBuf = buf.toString();\n\n\t\t\t\tlist.add(strBuf);\n\n\t\t//\t\tSystem.out.println(\"??°?????????????????§?????£??????????????????????????????????????????-?????\\???\");\n\n\t\t\t}\n\t\t}\n\n\t\tfor(String s : list) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\n\t}\n\n\tpublic static String[] shuffle(int intH, String strCards, String[] arrayCards) {\n\n\t\tString[] arrayOkibaBack = new String[intH];\n\n\t\tint aOFYousosu = strCards.length() - intH;\n\t\tString[] arrayOkibaFront = new String[aOFYousosu];\n\n\t\t//????????????????????????????????????\n\t\tfor(int i = 0; i < intH; i++) {\n\t\t\tarrayOkibaBack[i] = arrayCards[i];\n\t\t}\n\n\t\t//????????????????????????????????????\n\t\tint Count = 0;\n\t\tfor(int i = intH; i < strCards.length();i++) {\n\t\t\tarrayOkibaFront[Count] = arrayCards[i];\n\t\t\tCount++;\n\t\t}\n\t\t//?????£???????????????????????????????????\\????????????\n\t\tfor(int i = 0; i < strCards.length(); i++) {\n\t\t\tif(i < arrayOkibaFront.length) {\n\t\t\t\tarrayCards[i] = arrayOkibaFront[i];\n\t\t\t}\n\t\t\telse {\n\t\t\t\tarrayCards[i] = arrayOkibaBack[i - (arrayOkibaFront.length)];\n\t\t\t}\n\t\t}\n\n\t\treturn arrayCards;\n\n\t}\n}",
"Main"
]
|
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// System.out.println("?????£??????????????????????????????????????????-?????\???");
List<String> list = new ArrayList<String>();
while(sc.hasNext()) {
String strCards = sc.nextLine();
String[] arrayCards = new String[strCards.length()];
if(strCards.equals("-")) {
// System.out.println("???????????????");
break;
}else {
//??????????????\??????????????´??????????§£??????????´??????????
for(int i = 0; i < strCards.length(); i++) {
arrayCards[i] = strCards.substring(i, i+1);
}
// for(String s : arrayCards) {
// System.out.println("?????£???????????? : "+s);
// }
//???????????£???????????????????±???????
// System.out.println("???????????£?????????????????????");
String strH = sc.nextLine();
int intH = Integer.parseInt(strH);
//int intH = sc.nextInt();
for(int i = 0; i < intH; i++) {
// System.out.println("?????£?????????"+ (i+1) +"??????");
// System.out.println("?????????h??????????????????????????£?????????????????????");
String strInputNum = sc.nextLine();
int inputNum = Integer.parseInt(strInputNum);
//int inputNum = sc.nextInt();
arrayCards = shuffle(inputNum, strCards, arrayCards);
}
// System.out.println("?????£???????????????");
// for(String s : arrayCards) {
// System.out.println("?????£???????????? : "+s);
// }
StringBuffer buf = new StringBuffer();
for(int i = 0; i < arrayCards.length; i++) {
buf.append(arrayCards[i]);
}
//?????£??????????????????????????????????????????
String strBuf = buf.toString();
list.add(strBuf);
// System.out.println("??°?????????????????§?????£??????????????????????????????????????????-?????\???");
}
}
for(String s : list) {
System.out.println(s);
}
}
public static String[] shuffle(int intH, String strCards, String[] arrayCards) {
String[] arrayOkibaBack = new String[intH];
int aOFYousosu = strCards.length() - intH;
String[] arrayOkibaFront = new String[aOFYousosu];
//????????????????????????????????????
for(int i = 0; i < intH; i++) {
arrayOkibaBack[i] = arrayCards[i];
}
//????????????????????????????????????
int Count = 0;
for(int i = intH; i < strCards.length();i++) {
arrayOkibaFront[Count] = arrayCards[i];
Count++;
}
//?????£???????????????????????????????????\????????????
for(int i = 0; i < strCards.length(); i++) {
if(i < arrayOkibaFront.length) {
arrayCards[i] = arrayOkibaFront[i];
}
else {
arrayCards[i] = arrayOkibaBack[i - (arrayOkibaFront.length)];
}
}
return arrayCards;
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.