node_ids
listlengths 4
1.4k
| edge_index
listlengths 1
2.22k
| text
listlengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
14,
2,
18,
13,
13,
18,
13,
13,
0,
13,
17,
14,
2,
2,
18,
13,
13,
18,
13,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
8,
13,
17,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
79,
5
],
[
79,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
38
],
[
29,
39
],
[
39,
40
],
[
40,
41
],
[
29,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
54,
64
],
[
64,
65
],
[
64,
66
],
[
8,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
72,
75
],
[
6,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
] |
[
"import java.util.Scanner;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tboolean judje = true;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tchar[] S = scan.next().toCharArray();\n\t\tchar[] T = scan.next().toCharArray();\n\n\t\tfor(int i = 0; i < S.length; i++)\n\t\t\tif(S[i] != T[i])\n\t\t\t\tjudje = false;\n\n\t\tif(T.length - S.length != 1)\n\t\t\tjudje = false;\n\n\t\tSystem.out.println((judje ? \"Yes\" : \"No\"));\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\tboolean judje = true;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tchar[] S = scan.next().toCharArray();\n\t\tchar[] T = scan.next().toCharArray();\n\n\t\tfor(int i = 0; i < S.length; i++)\n\t\t\tif(S[i] != T[i])\n\t\t\t\tjudje = false;\n\n\t\tif(T.length - S.length != 1)\n\t\t\tjudje = false;\n\n\t\tSystem.out.println((judje ? \"Yes\" : \"No\"));\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tboolean judje = true;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tchar[] S = scan.next().toCharArray();\n\t\tchar[] T = scan.next().toCharArray();\n\n\t\tfor(int i = 0; i < S.length; i++)\n\t\t\tif(S[i] != T[i])\n\t\t\t\tjudje = false;\n\n\t\tif(T.length - S.length != 1)\n\t\t\tjudje = false;\n\n\t\tSystem.out.println((judje ? \"Yes\" : \"No\"));\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tboolean judje = true;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tchar[] S = scan.next().toCharArray();\n\t\tchar[] T = scan.next().toCharArray();\n\n\t\tfor(int i = 0; i < S.length; i++)\n\t\t\tif(S[i] != T[i])\n\t\t\t\tjudje = false;\n\n\t\tif(T.length - S.length != 1)\n\t\t\tjudje = false;\n\n\t\tSystem.out.println((judje ? \"Yes\" : \"No\"));\n\t}",
"boolean judje = true;",
"judje",
"true",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"char[] S = scan.next().toCharArray();",
"S",
"scan.next().toCharArray()",
"scan.next().toCharArray",
"scan.next()",
"scan.next",
"scan",
"char[] T = scan.next().toCharArray();",
"T",
"scan.next().toCharArray()",
"scan.next().toCharArray",
"scan.next()",
"scan.next",
"scan",
"for(int i = 0; i < S.length; i++)\n\t\t\tif(S[i] != T[i])\n\t\t\t\tjudje = false;",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < S.length",
"i",
"S.length",
"S",
"S.length",
"i++",
"i++",
"i",
"if(S[i] != T[i])\n\t\t\t\tjudje = false;",
"if(S[i] != T[i])\n\t\t\t\tjudje = false;",
"S[i] != T[i]",
"S[i]",
"S",
"i",
"T[i]",
"T",
"i",
"judje = false",
"judje",
"false",
"if(T.length - S.length != 1)\n\t\t\tjudje = false;",
"T.length - S.length != 1",
"T.length - S.length",
"T.length",
"T",
"T.length",
"S.length",
"S",
"S.length",
"1",
"judje = false",
"judje",
"false",
"System.out.println((judje ? \"Yes\" : \"No\"))",
"System.out.println",
"System.out",
"System",
"System.out",
"(judje ? \"Yes\" : \"No\")",
"judje",
"\"Yes\"",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tboolean judje = true;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tchar[] S = scan.next().toCharArray();\n\t\tchar[] T = scan.next().toCharArray();\n\n\t\tfor(int i = 0; i < S.length; i++)\n\t\t\tif(S[i] != T[i])\n\t\t\t\tjudje = false;\n\n\t\tif(T.length - S.length != 1)\n\t\t\tjudje = false;\n\n\t\tSystem.out.println((judje ? \"Yes\" : \"No\"));\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tboolean judje = true;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tchar[] S = scan.next().toCharArray();\n\t\tchar[] T = scan.next().toCharArray();\n\n\t\tfor(int i = 0; i < S.length; i++)\n\t\t\tif(S[i] != T[i])\n\t\t\t\tjudje = false;\n\n\t\tif(T.length - S.length != 1)\n\t\t\tjudje = false;\n\n\t\tSystem.out.println((judje ? \"Yes\" : \"No\"));\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
boolean judje = true;
Scanner scan = new Scanner(System.in);
char[] S = scan.next().toCharArray();
char[] T = scan.next().toCharArray();
for(int i = 0; i < S.length; i++)
if(S[i] != T[i])
judje = false;
if(T.length - S.length != 1)
judje = false;
System.out.println((judje ? "Yes" : "No"));
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
29,
14,
2,
2,
18,
13,
13,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
33,
35
],
[
26,
36
],
[
36,
37
],
[
37,
38
],
[
26,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
49,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
57,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
57,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
6,
81
],
[
81,
82
]
] |
[
"import java.util.*;\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n char[] S = sc.next().toCharArray();\n char[] T = sc.next().toCharArray();\n for(int i=0; i<S.length; i++){\n if(S[i] != T[i]){\n System.out.print(\"No\");\n return;\n }\n }\n if(T.length - S.length == 1 ){\n System.out.print(\"Yes\");\n }else{\n System.out.print(\"No\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n char[] S = sc.next().toCharArray();\n char[] T = sc.next().toCharArray();\n for(int i=0; i<S.length; i++){\n if(S[i] != T[i]){\n System.out.print(\"No\");\n return;\n }\n }\n if(T.length - S.length == 1 ){\n System.out.print(\"Yes\");\n }else{\n System.out.print(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n char[] S = sc.next().toCharArray();\n char[] T = sc.next().toCharArray();\n for(int i=0; i<S.length; i++){\n if(S[i] != T[i]){\n System.out.print(\"No\");\n return;\n }\n }\n if(T.length - S.length == 1 ){\n System.out.print(\"Yes\");\n }else{\n System.out.print(\"No\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n char[] S = sc.next().toCharArray();\n char[] T = sc.next().toCharArray();\n for(int i=0; i<S.length; i++){\n if(S[i] != T[i]){\n System.out.print(\"No\");\n return;\n }\n }\n if(T.length - S.length == 1 ){\n System.out.print(\"Yes\");\n }else{\n System.out.print(\"No\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"char[] S = sc.next().toCharArray();",
"S",
"sc.next().toCharArray()",
"sc.next().toCharArray",
"sc.next()",
"sc.next",
"sc",
"char[] T = sc.next().toCharArray();",
"T",
"sc.next().toCharArray()",
"sc.next().toCharArray",
"sc.next()",
"sc.next",
"sc",
"for(int i=0; i<S.length; i++){\n if(S[i] != T[i]){\n System.out.print(\"No\");\n return;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<S.length",
"i",
"S.length",
"S",
"S.length",
"i++",
"i++",
"i",
"{\n if(S[i] != T[i]){\n System.out.print(\"No\");\n return;\n }\n }",
"{\n if(S[i] != T[i]){\n System.out.print(\"No\");\n return;\n }\n }",
"if(S[i] != T[i]){\n System.out.print(\"No\");\n return;\n }",
"S[i] != T[i]",
"S[i]",
"S",
"i",
"T[i]",
"T",
"i",
"{\n System.out.print(\"No\");\n return;\n }",
"System.out.print(\"No\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"No\"",
"return;",
"if(T.length - S.length == 1 ){\n System.out.print(\"Yes\");\n }else{\n System.out.print(\"No\");\n }",
"T.length - S.length == 1",
"T.length - S.length",
"T.length",
"T",
"T.length",
"S.length",
"S",
"S.length",
"1",
"{\n System.out.print(\"Yes\");\n }",
"System.out.print(\"Yes\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.print(\"No\");\n }",
"System.out.print(\"No\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args"
] |
import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
char[] S = sc.next().toCharArray();
char[] T = sc.next().toCharArray();
for(int i=0; i<S.length; i++){
if(S[i] != T[i]){
System.out.print("No");
return;
}
}
if(T.length - S.length == 1 ){
System.out.print("Yes");
}else{
System.out.print("No");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
4,
18,
13,
17,
2,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
147,
14
],
[
147,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
17,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
38,
42
],
[
32,
43
],
[
31,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
31,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
15,
56
],
[
56,
57
],
[
147,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
58,
62
],
[
62,
63
],
[
58,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
58,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
73,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
83,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
72,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
58,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
105,
106
],
[
58,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
114,
115
],
[
58,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
123,
124
],
[
58,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
131,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
127,
144
],
[
144,
145
],
[
0,
146
],
[
146,
147
],
[
146,
148
]
] |
[
"\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.*;\n\npublic class Main {\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n public static void main(String[] args) {\n FastReader in = new FastReader();\n String s = in.nextLine();\n String t = in.nextLine();\n if(t.substring(0,t.length()-1).equals(s))\n System.out.println(\"Yes\\n\");\n else System.out.println(\"No\\n\");\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n public static void main(String[] args) {\n FastReader in = new FastReader();\n String s = in.nextLine();\n String t = in.nextLine();\n if(t.substring(0,t.length()-1).equals(s))\n System.out.println(\"Yes\\n\");\n else System.out.println(\"No\\n\");\n }\n}",
"Main",
"public static void main(String[] args) {\n FastReader in = new FastReader();\n String s = in.nextLine();\n String t = in.nextLine();\n if(t.substring(0,t.length()-1).equals(s))\n System.out.println(\"Yes\\n\");\n else System.out.println(\"No\\n\");\n }",
"main",
"{\n FastReader in = new FastReader();\n String s = in.nextLine();\n String t = in.nextLine();\n if(t.substring(0,t.length()-1).equals(s))\n System.out.println(\"Yes\\n\");\n else System.out.println(\"No\\n\");\n }",
"FastReader in = new FastReader();",
"in",
"new FastReader()",
"String s = in.nextLine();",
"s",
"in.nextLine()",
"in.nextLine",
"in",
"String t = in.nextLine();",
"t",
"in.nextLine()",
"in.nextLine",
"in",
"if(t.substring(0,t.length()-1).equals(s))\n System.out.println(\"Yes\\n\");\n else System.out.println(\"No\\n\");",
"t.substring(0,t.length()-1).equals(s)",
"t.substring(0,t.length()-1).equals",
"t.substring(0,t.length()-1)",
"t.substring",
"t",
"0",
"t.length()-1",
"t.length()",
"t.length",
"t",
"1",
"s",
"System.out.println(\"Yes\\n\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\\n\"",
"System.out.println(\"No\\n\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\\n\"",
"String[] args",
"args",
"static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }",
"FastReader",
"{\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }",
"br = new BufferedReader(new\n InputStreamReader(System.in))",
"br",
"new BufferedReader(new\n InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n public static void main(String[] args) {\n FastReader in = new FastReader();\n String s = in.nextLine();\n String t = in.nextLine();\n if(t.substring(0,t.length()-1).equals(s))\n System.out.println(\"Yes\\n\");\n else System.out.println(\"No\\n\");\n }\n}",
"public class Main {\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n public static void main(String[] args) {\n FastReader in = new FastReader();\n String s = in.nextLine();\n String t = in.nextLine();\n if(t.substring(0,t.length()-1).equals(s))\n System.out.println(\"Yes\\n\");\n else System.out.println(\"No\\n\");\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
public class Main {
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new
InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
public static void main(String[] args) {
FastReader in = new FastReader();
String s = in.nextLine();
String t = in.nextLine();
if(t.substring(0,t.length()-1).equals(s))
System.out.println("Yes\n");
else System.out.println("No\n");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
8,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
17,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
46,
5
],
[
46,
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
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
27,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
6,
43
],
[
43,
44
],
[
0,
45
],
[
45,
46
],
[
45,
47
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String S = scan.nextLine();\n String T = scan.nextLine();\n\n System.out.println(S.equals(T.substring(0,S.length())) ? \"Yes\" : \"No\");\n scan.close();\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String S = scan.nextLine();\n String T = scan.nextLine();\n\n System.out.println(S.equals(T.substring(0,S.length())) ? \"Yes\" : \"No\");\n scan.close();\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String S = scan.nextLine();\n String T = scan.nextLine();\n\n System.out.println(S.equals(T.substring(0,S.length())) ? \"Yes\" : \"No\");\n scan.close();\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n String S = scan.nextLine();\n String T = scan.nextLine();\n\n System.out.println(S.equals(T.substring(0,S.length())) ? \"Yes\" : \"No\");\n scan.close();\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String S = scan.nextLine();",
"S",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String T = scan.nextLine();",
"T",
"scan.nextLine()",
"scan.nextLine",
"scan",
"System.out.println(S.equals(T.substring(0,S.length())) ? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"S.equals(T.substring(0,S.length())) ? \"Yes\" : \"No\"",
"S.equals(T.substring(0,S.length()))",
"S.equals",
"S",
"T.substring(0,S.length())",
"T.substring",
"T",
"0",
"S.length()",
"S.length",
"S",
"\"Yes\"",
"\"No\"",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String S = scan.nextLine();\n String T = scan.nextLine();\n\n System.out.println(S.equals(T.substring(0,S.length())) ? \"Yes\" : \"No\");\n scan.close();\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String S = scan.nextLine();\n String T = scan.nextLine();\n\n System.out.println(S.equals(T.substring(0,S.length())) ? \"Yes\" : \"No\");\n scan.close();\n }\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String S = scan.nextLine();
String T = scan.nextLine();
System.out.println(S.equals(T.substring(0,S.length())) ? "Yes" : "No");
scan.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
18,
13,
13,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
18,
13,
13,
2,
18,
13,
13,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
3,
14,
2,
13,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
104,
5
],
[
104,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
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
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
32,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
8,
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
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
65,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
75,
77
],
[
64,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
78,
85
],
[
63,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
86,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
6,
101
],
[
101,
102
],
[
0,
103
],
[
103,
104
],
[
103,
105
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String S = s.next();\n String T = s.next();\n char[] sc = S.toCharArray();\n char[] tc = T.toCharArray();\n\n if((tc.length - sc.length) > 1) {\n System.out.println(\"No\");\n }\n\n // char[] ns = new char[sc.length+1];\n\n for (int i = 0; i < tc.length; i++) {\n if(i < sc.length && sc[i] != tc[i]){\n System.out.println(\"No\");\n break;\n }\n\n if(i == tc.length-1) {\n System.out.println(\"Yes\");\n }\n }\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String S = s.next();\n String T = s.next();\n char[] sc = S.toCharArray();\n char[] tc = T.toCharArray();\n\n if((tc.length - sc.length) > 1) {\n System.out.println(\"No\");\n }\n\n // char[] ns = new char[sc.length+1];\n\n for (int i = 0; i < tc.length; i++) {\n if(i < sc.length && sc[i] != tc[i]){\n System.out.println(\"No\");\n break;\n }\n\n if(i == tc.length-1) {\n System.out.println(\"Yes\");\n }\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String S = s.next();\n String T = s.next();\n char[] sc = S.toCharArray();\n char[] tc = T.toCharArray();\n\n if((tc.length - sc.length) > 1) {\n System.out.println(\"No\");\n }\n\n // char[] ns = new char[sc.length+1];\n\n for (int i = 0; i < tc.length; i++) {\n if(i < sc.length && sc[i] != tc[i]){\n System.out.println(\"No\");\n break;\n }\n\n if(i == tc.length-1) {\n System.out.println(\"Yes\");\n }\n }\n\n }",
"main",
"{\n Scanner s = new Scanner(System.in);\n String S = s.next();\n String T = s.next();\n char[] sc = S.toCharArray();\n char[] tc = T.toCharArray();\n\n if((tc.length - sc.length) > 1) {\n System.out.println(\"No\");\n }\n\n // char[] ns = new char[sc.length+1];\n\n for (int i = 0; i < tc.length; i++) {\n if(i < sc.length && sc[i] != tc[i]){\n System.out.println(\"No\");\n break;\n }\n\n if(i == tc.length-1) {\n System.out.println(\"Yes\");\n }\n }\n\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"String S = s.next();",
"S",
"s.next()",
"s.next",
"s",
"String T = s.next();",
"T",
"s.next()",
"s.next",
"s",
"char[] sc = S.toCharArray();",
"sc",
"S.toCharArray()",
"S.toCharArray",
"S",
"char[] tc = T.toCharArray();",
"tc",
"T.toCharArray()",
"T.toCharArray",
"T",
"if((tc.length - sc.length) > 1) {\n System.out.println(\"No\");\n }",
"(tc.length - sc.length) > 1",
"(tc.length - sc.length)",
"tc.length",
"tc",
"tc.length",
"sc.length",
"sc",
"sc.length",
"1",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"for (int i = 0; i < tc.length; i++) {\n if(i < sc.length && sc[i] != tc[i]){\n System.out.println(\"No\");\n break;\n }\n\n if(i == tc.length-1) {\n System.out.println(\"Yes\");\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < tc.length",
"i",
"tc.length",
"tc",
"tc.length",
"i++",
"i++",
"i",
"{\n if(i < sc.length && sc[i] != tc[i]){\n System.out.println(\"No\");\n break;\n }\n\n if(i == tc.length-1) {\n System.out.println(\"Yes\");\n }\n }",
"{\n if(i < sc.length && sc[i] != tc[i]){\n System.out.println(\"No\");\n break;\n }\n\n if(i == tc.length-1) {\n System.out.println(\"Yes\");\n }\n }",
"if(i < sc.length && sc[i] != tc[i]){\n System.out.println(\"No\");\n break;\n }",
"i < sc.length && sc[i] != tc[i]",
"i < sc.length",
"i",
"sc.length",
"sc",
"sc.length",
"sc[i] != tc[i]",
"sc[i]",
"sc",
"i",
"tc[i]",
"tc",
"i",
"{\n System.out.println(\"No\");\n break;\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"break;",
"if(i == tc.length-1) {\n System.out.println(\"Yes\");\n }",
"i == tc.length-1",
"i",
"tc.length-1",
"tc.length",
"tc",
"tc.length",
"1",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String S = s.next();\n String T = s.next();\n char[] sc = S.toCharArray();\n char[] tc = T.toCharArray();\n\n if((tc.length - sc.length) > 1) {\n System.out.println(\"No\");\n }\n\n // char[] ns = new char[sc.length+1];\n\n for (int i = 0; i < tc.length; i++) {\n if(i < sc.length && sc[i] != tc[i]){\n System.out.println(\"No\");\n break;\n }\n\n if(i == tc.length-1) {\n System.out.println(\"Yes\");\n }\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String S = s.next();\n String T = s.next();\n char[] sc = S.toCharArray();\n char[] tc = T.toCharArray();\n\n if((tc.length - sc.length) > 1) {\n System.out.println(\"No\");\n }\n\n // char[] ns = new char[sc.length+1];\n\n for (int i = 0; i < tc.length; i++) {\n if(i < sc.length && sc[i] != tc[i]){\n System.out.println(\"No\");\n break;\n }\n\n if(i == tc.length-1) {\n System.out.println(\"Yes\");\n }\n }\n\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
String S = s.next();
String T = s.next();
char[] sc = S.toCharArray();
char[] tc = T.toCharArray();
if((tc.length - sc.length) > 1) {
System.out.println("No");
}
// char[] ns = new char[sc.length+1];
for (int i = 0; i < tc.length; i++) {
if(i < sc.length && sc[i] != tc[i]){
System.out.println("No");
break;
}
if(i == tc.length-1) {
System.out.println("Yes");
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
2,
17,
4,
18,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
0,
18,
13,
13,
17,
41,
13,
4,
18,
4,
18,
13,
13,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
14,
40,
18,
13,
13,
30,
4,
13,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
13,
13,
2,
13,
17,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
17,
41,
13,
2,
4,
13,
13,
2,
13,
17,
13,
13,
0,
13,
2,
2,
13,
13,
13,
29,
8,
2,
2,
13,
17,
17,
13,
2,
2,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
18,
13,
13,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
23,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
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
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
27,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
41,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
41,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
63,
67
],
[
55,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
55,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
24,
82
],
[
82,
83
],
[
22,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
86,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
86,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
100,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
104,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
116,
119
],
[
116,
120
],
[
84,
121
],
[
121,
122
],
[
84,
123
],
[
123,
124
],
[
84,
125
],
[
125,
126
],
[
22,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
131,
134
],
[
134,
135
],
[
134,
136
],
[
131,
137
],
[
127,
138
],
[
138,
139
],
[
127,
140
],
[
140,
141
],
[
22,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
149,
150
],
[
144,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
154,
157
],
[
157,
158
],
[
157,
159
],
[
154,
160
],
[
153,
161
],
[
144,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
144,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
170,
176
],
[
170,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
142,
182
],
[
182,
183
],
[
142,
184
],
[
184,
185
],
[
142,
186
],
[
186,
187
],
[
22,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
190,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
194,
199
],
[
199,
200
],
[
199,
201
],
[
201,
202
],
[
201,
203
],
[
194,
204
],
[
204,
205
],
[
205,
206
],
[
194,
207
],
[
208,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
212,
213
],
[
211,
214
],
[
214,
215
],
[
214,
216
],
[
208,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
219,
221
],
[
208,
222
],
[
222,
223
],
[
223,
224
],
[
223,
225
],
[
222,
226
],
[
226,
227
],
[
226,
228
],
[
208,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
229,
233
],
[
188,
234
],
[
234,
235
],
[
22,
236
],
[
236,
237
],
[
236,
238
],
[
238,
239
],
[
236,
240
],
[
240,
241
],
[
236,
242
],
[
242,
243
],
[
236,
244
],
[
244,
245
],
[
236,
246
],
[
246,
247
],
[
246,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
249,
253
],
[
248,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
254,
258
],
[
248,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
259,
263
],
[
248,
264
],
[
264,
265
],
[
265,
266
],
[
265,
267
],
[
264,
268
],
[
246,
269
],
[
269,
270
],
[
246,
271
],
[
271,
272
],
[
246,
273
],
[
273,
274
],
[
246,
275
],
[
275,
276
]
] |
[
"import javax.swing.text.html.HTMLDocument;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.math.BigInteger;\nimport java.nio.Buffer;\nimport java.util.*;\n\nclass Main {\n public static void main(String[] args){\n try {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String s=br.readLine();\n String t=br.readLine();\n if(s.equals(t.substring(0,t.length()-1))){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n } catch (Exception e) {\n System.out.println(\"kkkk \"+ e.getMessage());\n }\n }\n static void dfs(ArrayList<HashSet<Integer>> list,boolean[] vis,int i){\n vis[i]=true;\n Iterator<Integer> it=list.get(i).iterator();\n while(it.hasNext()){\n int u=it.next();\n if(!vis[u]){\n dfs(list,vis,u);\n }\n }\n }\n static int modInverse(int x,int m){\n return power(x,m-2,m);\n }\n static int power(int x, int y, int m)\n {\n if (y == 0)\n return 1;\n\n long p = power(x, y / 2, m) % m;\n p = (p * p) % m;\n\n return (int)((y%2==0)? p : (x*p)%m);\n }\n static void shuffle(String[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n String temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }\n static class quad{\n int a,b,c,d;\n public quad(int a,int b,int c,int d){\n this.a=a;\n this.b=b;\n this.c=c;\n this.d=d;\n }\n }\n}",
"import javax.swing.text.html.HTMLDocument;",
"HTMLDocument",
"javax.swing.text.html",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.nio.Buffer;",
"Buffer",
"java.nio",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String[] args){\n try {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String s=br.readLine();\n String t=br.readLine();\n if(s.equals(t.substring(0,t.length()-1))){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n } catch (Exception e) {\n System.out.println(\"kkkk \"+ e.getMessage());\n }\n }\n static void dfs(ArrayList<HashSet<Integer>> list,boolean[] vis,int i){\n vis[i]=true;\n Iterator<Integer> it=list.get(i).iterator();\n while(it.hasNext()){\n int u=it.next();\n if(!vis[u]){\n dfs(list,vis,u);\n }\n }\n }\n static int modInverse(int x,int m){\n return power(x,m-2,m);\n }\n static int power(int x, int y, int m)\n {\n if (y == 0)\n return 1;\n\n long p = power(x, y / 2, m) % m;\n p = (p * p) % m;\n\n return (int)((y%2==0)? p : (x*p)%m);\n }\n static void shuffle(String[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n String temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }\n static class quad{\n int a,b,c,d;\n public quad(int a,int b,int c,int d){\n this.a=a;\n this.b=b;\n this.c=c;\n this.d=d;\n }\n }\n}",
"Main",
"public static void main(String[] args){\n try {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String s=br.readLine();\n String t=br.readLine();\n if(s.equals(t.substring(0,t.length()-1))){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n } catch (Exception e) {\n System.out.println(\"kkkk \"+ e.getMessage());\n }\n }",
"main",
"{\n try {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String s=br.readLine();\n String t=br.readLine();\n if(s.equals(t.substring(0,t.length()-1))){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n } catch (Exception e) {\n System.out.println(\"kkkk \"+ e.getMessage());\n }\n }",
"try {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String s=br.readLine();\n String t=br.readLine();\n if(s.equals(t.substring(0,t.length()-1))){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n } catch (Exception e) {\n System.out.println(\"kkkk \"+ e.getMessage());\n }",
"catch (Exception e) {\n System.out.println(\"kkkk \"+ e.getMessage());\n }",
"Exception e",
"{\n System.out.println(\"kkkk \"+ e.getMessage());\n }",
"System.out.println(\"kkkk \"+ e.getMessage())",
"System.out.println",
"System.out",
"System",
"System.out",
"\"kkkk \"+ e.getMessage()",
"\"kkkk \"",
"e.getMessage()",
"e.getMessage",
"e",
"{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String s=br.readLine();\n String t=br.readLine();\n if(s.equals(t.substring(0,t.length()-1))){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n }",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String s=br.readLine();",
"s",
"br.readLine()",
"br.readLine",
"br",
"String t=br.readLine();",
"t",
"br.readLine()",
"br.readLine",
"br",
"if(s.equals(t.substring(0,t.length()-1))){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"s.equals(t.substring(0,t.length()-1))",
"s.equals",
"s",
"t.substring(0,t.length()-1)",
"t.substring",
"t",
"0",
"t.length()-1",
"t.length()",
"t.length",
"t",
"1",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"static void dfs(ArrayList<HashSet<Integer>> list,boolean[] vis,int i){\n vis[i]=true;\n Iterator<Integer> it=list.get(i).iterator();\n while(it.hasNext()){\n int u=it.next();\n if(!vis[u]){\n dfs(list,vis,u);\n }\n }\n }",
"dfs",
"{\n vis[i]=true;\n Iterator<Integer> it=list.get(i).iterator();\n while(it.hasNext()){\n int u=it.next();\n if(!vis[u]){\n dfs(list,vis,u);\n }\n }\n }",
"vis[i]=true",
"vis[i]",
"vis",
"i",
"true",
"Iterator<Integer> it=list.get(i).iterator();",
"it",
"list.get(i).iterator()",
"list.get(i).iterator",
"list.get(i)",
"list.get",
"list",
"i",
"while(it.hasNext()){\n int u=it.next();\n if(!vis[u]){\n dfs(list,vis,u);\n }\n }",
"it.hasNext()",
"it.hasNext",
"it",
"{\n int u=it.next();\n if(!vis[u]){\n dfs(list,vis,u);\n }\n }",
"int u=it.next();",
"u",
"it.next()",
"it.next",
"it",
"if(!vis[u]){\n dfs(list,vis,u);\n }",
"!vis[u]",
"vis[u]",
"vis",
"u",
"{\n dfs(list,vis,u);\n }",
"dfs(list,vis,u)",
"dfs",
"list",
"vis",
"u",
"ArrayList<HashSet<Integer>> list",
"list",
"boolean[] vis",
"vis",
"int i",
"i",
"static int modInverse(int x,int m){\n return power(x,m-2,m);\n }",
"modInverse",
"{\n return power(x,m-2,m);\n }",
"return power(x,m-2,m);",
"power(x,m-2,m)",
"power",
"x",
"m-2",
"m",
"2",
"m",
"int x",
"x",
"int m",
"m",
"static int power(int x, int y, int m)\n {\n if (y == 0)\n return 1;\n\n long p = power(x, y / 2, m) % m;\n p = (p * p) % m;\n\n return (int)((y%2==0)? p : (x*p)%m);\n }",
"power",
"{\n if (y == 0)\n return 1;\n\n long p = power(x, y / 2, m) % m;\n p = (p * p) % m;\n\n return (int)((y%2==0)? p : (x*p)%m);\n }",
"if (y == 0)\n return 1;",
"y == 0",
"y",
"0",
"return 1;",
"1",
"long p = power(x, y / 2, m) % m;",
"p",
"power(x, y / 2, m) % m",
"power(x, y / 2, m)",
"power",
"x",
"y / 2",
"y",
"2",
"m",
"m",
"p = (p * p) % m",
"p",
"(p * p) % m",
"(p * p)",
"p",
"p",
"m",
"return (int)((y%2==0)? p : (x*p)%m);",
"(int)((y%2==0)? p : (x*p)%m)",
"(y%2==0)",
"y%2",
"y",
"2",
"0",
"p",
"(x*p)%m",
"(x*p)",
"x",
"p",
"m",
"int x",
"x",
"int y",
"y",
"int m",
"m",
"static void shuffle(String[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n String temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }",
"shuffle",
"{\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n String temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }",
"Random get = new Random();",
"get",
"new Random()",
"for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n String temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a.length",
"i",
"a.length",
"a",
"a.length",
"i++",
"i++",
"i",
"{\n int r = get.nextInt(a.length);\n String temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }",
"{\n int r = get.nextInt(a.length);\n String temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }",
"int r = get.nextInt(a.length);",
"r",
"get.nextInt(a.length)",
"get.nextInt",
"get",
"a.length",
"a",
"a.length",
"String temp = a[i];",
"temp",
"a[i]",
"a",
"i",
"a[i] = a[r]",
"a[i]",
"a",
"i",
"a[r]",
"a",
"r",
"a[r] = temp",
"a[r]",
"a",
"r",
"temp",
"String[] a",
"a",
"static class quad{\n int a,b,c,d;\n public quad(int a,int b,int c,int d){\n this.a=a;\n this.b=b;\n this.c=c;\n this.d=d;\n }\n }",
"quad",
"int a",
"a",
"b",
"b",
"c",
"c",
"d;",
"d",
"public quad(int a,int b,int c,int d){\n this.a=a;\n this.b=b;\n this.c=c;\n this.d=d;\n }",
"quad",
"{\n this.a=a;\n this.b=b;\n this.c=c;\n this.d=d;\n }",
"this.a=a",
"this.a",
"this",
"this.a",
"a",
"this.b=b",
"this.b",
"this",
"this.b",
"b",
"this.c=c",
"this.c",
"this",
"this.c",
"c",
"this.d=d",
"this.d",
"this",
"this.d",
"d",
"int a",
"a",
"int b",
"b",
"int c",
"c",
"int d",
"d"
] |
import javax.swing.text.html.HTMLDocument;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.math.BigInteger;
import java.nio.Buffer;
import java.util.*;
class Main {
public static void main(String[] args){
try {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String s=br.readLine();
String t=br.readLine();
if(s.equals(t.substring(0,t.length()-1))){
System.out.println("Yes");
}else{
System.out.println("No");
}
} catch (Exception e) {
System.out.println("kkkk "+ e.getMessage());
}
}
static void dfs(ArrayList<HashSet<Integer>> list,boolean[] vis,int i){
vis[i]=true;
Iterator<Integer> it=list.get(i).iterator();
while(it.hasNext()){
int u=it.next();
if(!vis[u]){
dfs(list,vis,u);
}
}
}
static int modInverse(int x,int m){
return power(x,m-2,m);
}
static int power(int x, int y, int m)
{
if (y == 0)
return 1;
long p = power(x, y / 2, m) % m;
p = (p * p) % m;
return (int)((y%2==0)? p : (x*p)%m);
}
static void shuffle(String[] a) {
Random get = new Random();
for (int i = 0; i < a.length; i++) {
int r = get.nextInt(a.length);
String temp = a[i];
a[i] = a[r];
a[r] = temp;
}
}
static class quad{
int a,b,c,d;
public quad(int a,int b,int c,int d){
this.a=a;
this.b=b;
this.c=c;
this.d=d;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
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
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
22,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
6,
47
],
[
47,
48
],
[
0,
49
],
[
49,
50
],
[
49,
51
]
] |
[
"import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n String s = input.next();\n String t = input.next();\n if (s.equals(t.substring(0,s.length()))){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n String s = input.next();\n String t = input.next();\n if (s.equals(t.substring(0,s.length()))){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n String s = input.next();\n String t = input.next();\n if (s.equals(t.substring(0,s.length()))){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner input = new Scanner(System.in);\n String s = input.next();\n String t = input.next();\n if (s.equals(t.substring(0,s.length()))){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"String s = input.next();",
"s",
"input.next()",
"input.next",
"input",
"String t = input.next();",
"t",
"input.next()",
"input.next",
"input",
"if (s.equals(t.substring(0,s.length()))){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"s.equals(t.substring(0,s.length()))",
"s.equals",
"s",
"t.substring(0,s.length())",
"t.substring",
"t",
"0",
"s.length()",
"s.length",
"s",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n String s = input.next();\n String t = input.next();\n if (s.equals(t.substring(0,s.length()))){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n String s = input.next();\n String t = input.next();\n if (s.equals(t.substring(0,s.length()))){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String s = input.next();
String t = input.next();
if (s.equals(t.substring(0,s.length()))){
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
4,
18,
13,
17,
2,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
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
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
25,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
29,
33
],
[
23,
34
],
[
22,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
22,
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\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\t\t\n\t\tif(t.substring(0, t.length() - 1).equals(s)) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t\t\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\t\t\n\t\tif(t.substring(0, t.length() - 1).equals(s)) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\t\t\n\t\tif(t.substring(0, t.length() - 1).equals(s)) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t\t\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\t\t\n\t\tif(t.substring(0, t.length() - 1).equals(s)) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String t = sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"if(t.substring(0, t.length() - 1).equals(s)) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");",
"t.substring(0, t.length() - 1).equals(s)",
"t.substring(0, t.length() - 1).equals",
"t.substring(0, t.length() - 1)",
"t.substring",
"t",
"0",
"t.length() - 1",
"t.length()",
"t.length",
"t",
"1",
"s",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\t\t\n\t\tif(t.substring(0, t.length() - 1).equals(s)) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t\t\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\t\t\n\t\tif(t.substring(0, t.length() - 1).equals(s)) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t\t\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
String s = sc.next();
String t = sc.next();
if(t.substring(0, t.length() - 1).equals(s)) System.out.println("Yes");
else System.out.println("No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
4,
18,
13,
4,
18,
13,
17,
2,
4,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
25,
29
],
[
29,
30
],
[
30,
31
],
[
24,
32
],
[
23,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
33,
38
],
[
22,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
22,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
6,
53
],
[
53,
54
]
] |
[
"import java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.next();\n if (t.length() - s.length() == 1 && t.indexOf(s) == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.next();\n if (t.length() - s.length() == 1 && t.indexOf(s) == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.next();\n if (t.length() - s.length() == 1 && t.indexOf(s) == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.next();\n if (t.length() - s.length() == 1 && t.indexOf(s) == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String t = sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"if (t.length() - s.length() == 1 && t.indexOf(s) == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"t.length() - s.length() == 1 && t.indexOf(s) == 0",
"t.length() - s.length() == 1",
"t.length() - s.length()",
"t.length()",
"t.length",
"t",
"s.length()",
"s.length",
"s",
"1",
"t.indexOf(s) == 0",
"t.indexOf(s)",
"t.indexOf",
"t",
"s",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args"
] |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.next();
String t = sc.next();
if (t.length() - s.length() == 1 && t.indexOf(s) == 0) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
4,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
4,
18,
13,
17,
4,
18,
13,
30,
14,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
16,
17
],
[
6,
18
],
[
18,
19
],
[
4,
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
],
[
22,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
33,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
44,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
33,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
20,
75
],
[
75,
76
]
] |
[
"import java.util.*;\n\nclass Main {\n public static void main(String args[]) {\n Scanner inp = new Scanner(System.in);\n do_(inp);\n inp.close();\n }\n public static void do_(Scanner inp) {\n String s = inp.next();\n String t = inp.next();\n if (s.length() + 1 == t.length()) {\n if (s.equals(t.substring(0, s.length()))) {\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }\n }\n else System.out.println(\"No\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String args[]) {\n Scanner inp = new Scanner(System.in);\n do_(inp);\n inp.close();\n }\n public static void do_(Scanner inp) {\n String s = inp.next();\n String t = inp.next();\n if (s.length() + 1 == t.length()) {\n if (s.equals(t.substring(0, s.length()))) {\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }\n }\n else System.out.println(\"No\");\n }\n}",
"Main",
"public static void main(String args[]) {\n Scanner inp = new Scanner(System.in);\n do_(inp);\n inp.close();\n }",
"main",
"{\n Scanner inp = new Scanner(System.in);\n do_(inp);\n inp.close();\n }",
"Scanner inp = new Scanner(System.in);",
"inp",
"new Scanner(System.in)",
"do_(inp)",
"do_",
"inp",
"inp.close()",
"inp.close",
"inp",
"String args[]",
"args",
"public static void do_(Scanner inp) {\n String s = inp.next();\n String t = inp.next();\n if (s.length() + 1 == t.length()) {\n if (s.equals(t.substring(0, s.length()))) {\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }\n }\n else System.out.println(\"No\");\n }",
"do_",
"{\n String s = inp.next();\n String t = inp.next();\n if (s.length() + 1 == t.length()) {\n if (s.equals(t.substring(0, s.length()))) {\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }\n }\n else System.out.println(\"No\");\n }",
"String s = inp.next();",
"s",
"inp.next()",
"inp.next",
"inp",
"String t = inp.next();",
"t",
"inp.next()",
"inp.next",
"inp",
"if (s.length() + 1 == t.length()) {\n if (s.equals(t.substring(0, s.length()))) {\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }\n }\n else System.out.println(\"No\");",
"s.length() + 1 == t.length()",
"s.length() + 1",
"s.length()",
"s.length",
"s",
"1",
"t.length()",
"t.length",
"t",
"{\n if (s.equals(t.substring(0, s.length()))) {\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }\n }",
"if (s.equals(t.substring(0, s.length()))) {\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }",
"s.equals(t.substring(0, s.length()))",
"s.equals",
"s",
"t.substring(0, s.length())",
"t.substring",
"t",
"0",
"s.length()",
"s.length",
"s",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"Scanner inp",
"inp"
] |
import java.util.*;
class Main {
public static void main(String args[]) {
Scanner inp = new Scanner(System.in);
do_(inp);
inp.close();
}
public static void do_(Scanner inp) {
String s = inp.next();
String t = inp.next();
if (s.length() + 1 == t.length()) {
if (s.equals(t.substring(0, s.length()))) {
System.out.println("Yes");
}
else {
System.out.println("No");
}
}
else System.out.println("No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
8,
4,
18,
4,
18,
13,
17,
2,
4,
18,
13,
17,
13,
17,
17,
4,
18,
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
],
[
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
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
31,
35
],
[
25,
36
],
[
24,
37
],
[
24,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
6,
45
],
[
45,
46
],
[
0,
47
],
[
47,
48
],
[
47,
49
]
] |
[
"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 s = sc.next();\n\t\tString t = sc.next();\n\n\t\tString ans = (t.substring(0, t.length() - 1).equals(s)) ? \"Yes\" : \"No\";\n\t\tSystem.out.println(ans);\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 s = sc.next();\n\t\tString t = sc.next();\n\n\t\tString ans = (t.substring(0, t.length() - 1).equals(s)) ? \"Yes\" : \"No\";\n\t\tSystem.out.println(ans);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\n\t\tString ans = (t.substring(0, t.length() - 1).equals(s)) ? \"Yes\" : \"No\";\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\n\t\tString ans = (t.substring(0, t.length() - 1).equals(s)) ? \"Yes\" : \"No\";\n\t\tSystem.out.println(ans);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String t = sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"String ans = (t.substring(0, t.length() - 1).equals(s)) ? \"Yes\" : \"No\";",
"ans",
"(t.substring(0, t.length() - 1).equals(s)) ? \"Yes\" : \"No\"",
"(t.substring(0, t.length() - 1).equals(s))",
"t.substring(0, t.length() - 1).equals",
"t.substring(0, t.length() - 1)",
"t.substring",
"t",
"0",
"t.length() - 1",
"t.length()",
"t.length",
"t",
"1",
"s",
"\"Yes\"",
"\"No\"",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"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 s = sc.next();\n\t\tString t = sc.next();\n\n\t\tString ans = (t.substring(0, t.length() - 1).equals(s)) ? \"Yes\" : \"No\";\n\t\tSystem.out.println(ans);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\n\t\tString ans = (t.substring(0, t.length() - 1).equals(s)) ? \"Yes\" : \"No\";\n\t\tSystem.out.println(ans);\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
String s = sc.next();
String t = sc.next();
String ans = (t.substring(0, t.length() - 1).equals(s)) ? "Yes" : "No";
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
40,
4,
18,
4,
18,
13,
17,
2,
4,
18,
13,
17,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
18,
13,
2,
13,
17,
42,
2,
2,
13,
17,
2,
4,
18,
13,
13,
4,
18,
13,
13,
30,
0,
13,
18,
13,
2,
13,
17,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
30,
40,
13,
0,
18,
13,
13,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
17,
28,
13,
4,
18,
13,
30,
30,
14,
2,
13,
13,
29,
17,
29,
17,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
29,
20,
29,
17,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
40,
17,
29,
17,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
317,
11
],
[
317,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
36,
40
],
[
30,
41
],
[
28,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
28,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
12,
56
],
[
56,
57
],
[
317,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
60,
66
],
[
66,
67
],
[
66,
68
],
[
60,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
82,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
95,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
90,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
109,
111
],
[
82,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
113,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
112,
122
],
[
122,
123
],
[
123,
124
],
[
82,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
60,
130
],
[
130,
131
],
[
58,
132
],
[
132,
133
],
[
317,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
139,
142
],
[
136,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
143,
148
],
[
149,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
154,
155
],
[
136,
156
],
[
156,
157
],
[
134,
158
],
[
158,
159
],
[
317,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
170,
173
],
[
163,
174
],
[
174,
175
],
[
175,
176
],
[
163,
177
],
[
178,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
180,
184
],
[
179,
185
],
[
185,
186
],
[
162,
187
],
[
187,
188
],
[
160,
189
],
[
189,
190
],
[
317,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
194,
198
],
[
198,
199
],
[
199,
200
],
[
193,
201
],
[
201,
202
],
[
191,
203
],
[
203,
204
],
[
317,
205
],
[
205,
206
],
[
205,
207
],
[
207,
208
],
[
205,
209
],
[
209,
210
],
[
205,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
214,
218
],
[
213,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
219,
223
],
[
211,
224
],
[
224,
225
],
[
211,
226
],
[
226,
227
],
[
317,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
228,
232
],
[
232,
233
],
[
228,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
237,
238
],
[
237,
239
],
[
228,
240
],
[
240,
241
],
[
240,
242
],
[
242,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
244,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
243,
252
],
[
252,
253
],
[
253,
254
],
[
254,
255
],
[
254,
256
],
[
256,
257
],
[
257,
258
],
[
258,
259
],
[
253,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
242,
264
],
[
264,
265
],
[
265,
266
],
[
266,
267
],
[
228,
268
],
[
268,
269
],
[
268,
270
],
[
270,
271
],
[
271,
272
],
[
272,
273
],
[
273,
274
],
[
272,
275
],
[
275,
276
],
[
228,
277
],
[
277,
278
],
[
277,
279
],
[
279,
280
],
[
280,
281
],
[
281,
282
],
[
282,
283
],
[
281,
284
],
[
284,
285
],
[
228,
286
],
[
286,
287
],
[
286,
288
],
[
288,
289
],
[
289,
290
],
[
290,
291
],
[
291,
292
],
[
290,
293
],
[
293,
294
],
[
228,
295
],
[
295,
296
],
[
295,
297
],
[
297,
298
],
[
298,
299
],
[
298,
300
],
[
297,
301
],
[
301,
302
],
[
302,
303
],
[
302,
304
],
[
304,
305
],
[
305,
306
],
[
306,
307
],
[
301,
308
],
[
308,
309
],
[
309,
310
],
[
309,
311
],
[
311,
312
],
[
312,
313
],
[
297,
314
],
[
314,
315
],
[
0,
316
],
[
316,
317
],
[
316,
318
]
] |
[
"import java.math.BigInteger;\nimport java.util.*;\nimport java.io.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n String s = sc.nextLine();\n String t = sc.nextLine();\n if (!t.substring(0, t.length()-1).equals(s)) {\n System.out.println(\"No\");\n } else {\n System.out.println(\"Yes\");\n }\n //x+a*t == y - b * t\n //a*t+b*t == y - x\n //(a+b)*t == y - x\n // a + (a*2(k-1) = n*2/k\n // a+(a+2k-2)=2a+2k-2=n*2/k\n }\n\n private static int[] prefix_function(String s) {\n int n = s.length();\n int[] res = new int[n];\n for (int i = 1; i < n; i++) {\n int j = res[i-1];\n while (j > 0 && s.charAt(i) != s.charAt(j)) {\n j = res[j-1];\n }\n if (s.charAt(i)==s.charAt(j)) {\n j++;\n }\n res[i] = j;\n }\n return res;\n }\n\n private static boolean check(String s) {\n char cc = s.charAt(0);\n for (char c : s.toCharArray()) {\n if (c!=cc) return false;\n }\n return true;\n }\n\n private static int[] isPrime(int num) {\n for (int i = 2; i <= (int)Math.sqrt(num); i++) {\n if (num % i == 0) return new int[]{i, num/i};\n }\n return null;\n }\n\n private static int sign(long num) {\n if (num < 0) return -1;\n return 1;\n }\n\n private static class Pair {\n int x;\n int y;\n public Pair(int x, int y) {\n this.x=x;\n this.y=y;\n }\n }\n\n\n\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n\n }\n\n}\n\n/**\n * 7 3\n * 3 1 5\n * 9 6 5\n *\n * i = 1: 1\n * i = 2: 2\n * i = 3: 3\n *\n *\n * 1 2 3 3 3 3 3\n */\n\n\n/**\n *\n * 1+1\n **/",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n String s = sc.nextLine();\n String t = sc.nextLine();\n if (!t.substring(0, t.length()-1).equals(s)) {\n System.out.println(\"No\");\n } else {\n System.out.println(\"Yes\");\n }\n //x+a*t == y - b * t\n //a*t+b*t == y - x\n //(a+b)*t == y - x\n // a + (a*2(k-1) = n*2/k\n // a+(a+2k-2)=2a+2k-2=n*2/k\n }\n\n private static int[] prefix_function(String s) {\n int n = s.length();\n int[] res = new int[n];\n for (int i = 1; i < n; i++) {\n int j = res[i-1];\n while (j > 0 && s.charAt(i) != s.charAt(j)) {\n j = res[j-1];\n }\n if (s.charAt(i)==s.charAt(j)) {\n j++;\n }\n res[i] = j;\n }\n return res;\n }\n\n private static boolean check(String s) {\n char cc = s.charAt(0);\n for (char c : s.toCharArray()) {\n if (c!=cc) return false;\n }\n return true;\n }\n\n private static int[] isPrime(int num) {\n for (int i = 2; i <= (int)Math.sqrt(num); i++) {\n if (num % i == 0) return new int[]{i, num/i};\n }\n return null;\n }\n\n private static int sign(long num) {\n if (num < 0) return -1;\n return 1;\n }\n\n private static class Pair {\n int x;\n int y;\n public Pair(int x, int y) {\n this.x=x;\n this.y=y;\n }\n }\n\n\n\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n\n }\n\n}",
"Main",
"public static void main(String[] args) {\n FastReader sc = new FastReader();\n String s = sc.nextLine();\n String t = sc.nextLine();\n if (!t.substring(0, t.length()-1).equals(s)) {\n System.out.println(\"No\");\n } else {\n System.out.println(\"Yes\");\n }\n //x+a*t == y - b * t\n //a*t+b*t == y - x\n //(a+b)*t == y - x\n // a + (a*2(k-1) = n*2/k\n // a+(a+2k-2)=2a+2k-2=n*2/k\n }",
"main",
"{\n FastReader sc = new FastReader();\n String s = sc.nextLine();\n String t = sc.nextLine();\n if (!t.substring(0, t.length()-1).equals(s)) {\n System.out.println(\"No\");\n } else {\n System.out.println(\"Yes\");\n }\n //x+a*t == y - b * t\n //a*t+b*t == y - x\n //(a+b)*t == y - x\n // a + (a*2(k-1) = n*2/k\n // a+(a+2k-2)=2a+2k-2=n*2/k\n }",
"FastReader sc = new FastReader();",
"sc",
"new FastReader()",
"String s = sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String t = sc.nextLine();",
"t",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if (!t.substring(0, t.length()-1).equals(s)) {\n System.out.println(\"No\");\n } else {\n System.out.println(\"Yes\");\n }",
"!t.substring(0, t.length()-1).equals(s)",
"t.substring(0, t.length()-1).equals(s)",
"t.substring(0, t.length()-1).equals",
"t.substring(0, t.length()-1)",
"t.substring",
"t",
"0",
"t.length()-1",
"t.length()",
"t.length",
"t",
"1",
"s",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"String[] args",
"args",
"private static int[] prefix_function(String s) {\n int n = s.length();\n int[] res = new int[n];\n for (int i = 1; i < n; i++) {\n int j = res[i-1];\n while (j > 0 && s.charAt(i) != s.charAt(j)) {\n j = res[j-1];\n }\n if (s.charAt(i)==s.charAt(j)) {\n j++;\n }\n res[i] = j;\n }\n return res;\n }",
"prefix_function",
"{\n int n = s.length();\n int[] res = new int[n];\n for (int i = 1; i < n; i++) {\n int j = res[i-1];\n while (j > 0 && s.charAt(i) != s.charAt(j)) {\n j = res[j-1];\n }\n if (s.charAt(i)==s.charAt(j)) {\n j++;\n }\n res[i] = j;\n }\n return res;\n }",
"int n = s.length();",
"n",
"s.length()",
"s.length",
"s",
"int[] res = new int[n];",
"res",
"new int[n]",
"n",
"for (int i = 1; i < n; i++) {\n int j = res[i-1];\n while (j > 0 && s.charAt(i) != s.charAt(j)) {\n j = res[j-1];\n }\n if (s.charAt(i)==s.charAt(j)) {\n j++;\n }\n res[i] = j;\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int j = res[i-1];\n while (j > 0 && s.charAt(i) != s.charAt(j)) {\n j = res[j-1];\n }\n if (s.charAt(i)==s.charAt(j)) {\n j++;\n }\n res[i] = j;\n }",
"{\n int j = res[i-1];\n while (j > 0 && s.charAt(i) != s.charAt(j)) {\n j = res[j-1];\n }\n if (s.charAt(i)==s.charAt(j)) {\n j++;\n }\n res[i] = j;\n }",
"int j = res[i-1];",
"j",
"res[i-1]",
"res",
"i-1",
"i",
"1",
"while (j > 0 && s.charAt(i) != s.charAt(j)) {\n j = res[j-1];\n }",
"j > 0 && s.charAt(i) != s.charAt(j)",
"j > 0",
"j",
"0",
"s.charAt(i) != s.charAt(j)",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"s.charAt(j)",
"s.charAt",
"s",
"j",
"{\n j = res[j-1];\n }",
"j = res[j-1]",
"j",
"res[j-1]",
"res",
"j-1",
"j",
"1",
"if (s.charAt(i)==s.charAt(j)) {\n j++;\n }",
"s.charAt(i)==s.charAt(j)",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"s.charAt(j)",
"s.charAt",
"s",
"j",
"{\n j++;\n }",
"j++",
"j",
"res[i] = j",
"res[i]",
"res",
"i",
"j",
"return res;",
"res",
"String s",
"s",
"private static boolean check(String s) {\n char cc = s.charAt(0);\n for (char c : s.toCharArray()) {\n if (c!=cc) return false;\n }\n return true;\n }",
"check",
"{\n char cc = s.charAt(0);\n for (char c : s.toCharArray()) {\n if (c!=cc) return false;\n }\n return true;\n }",
"char cc = s.charAt(0);",
"cc",
"s.charAt(0)",
"s.charAt",
"s",
"0",
"for (char c : s.toCharArray()) {\n if (c!=cc) return false;\n }",
"char c",
"s.toCharArray()",
"s.toCharArray",
"s",
"{\n if (c!=cc) return false;\n }",
"{\n if (c!=cc) return false;\n }",
"if (c!=cc) return false;",
"c!=cc",
"c",
"cc",
"return false;",
"false",
"return true;",
"true",
"String s",
"s",
"private static int[] isPrime(int num) {\n for (int i = 2; i <= (int)Math.sqrt(num); i++) {\n if (num % i == 0) return new int[]{i, num/i};\n }\n return null;\n }",
"isPrime",
"{\n for (int i = 2; i <= (int)Math.sqrt(num); i++) {\n if (num % i == 0) return new int[]{i, num/i};\n }\n return null;\n }",
"for (int i = 2; i <= (int)Math.sqrt(num); i++) {\n if (num % i == 0) return new int[]{i, num/i};\n }",
"int i = 2;",
"int i = 2;",
"i",
"2",
"i <= (int)Math.sqrt(num)",
"i",
"(int)Math.sqrt(num)",
"Math.sqrt",
"Math",
"num",
"i++",
"i++",
"i",
"{\n if (num % i == 0) return new int[]{i, num/i};\n }",
"{\n if (num % i == 0) return new int[]{i, num/i};\n }",
"if (num % i == 0) return new int[]{i, num/i};",
"num % i == 0",
"num % i",
"num",
"i",
"0",
"return new int[]{i, num/i};",
"new int[]{i, num/i}",
"return null;",
"null",
"int num",
"num",
"private static int sign(long num) {\n if (num < 0) return -1;\n return 1;\n }",
"sign",
"{\n if (num < 0) return -1;\n return 1;\n }",
"if (num < 0) return -1;",
"num < 0",
"num",
"0",
"return -1;",
"-1",
"1",
"return 1;",
"1",
"long num",
"num",
"private static class Pair {\n int x;\n int y;\n public Pair(int x, int y) {\n this.x=x;\n this.y=y;\n }\n }",
"Pair",
"int x;",
"x",
"int y;",
"y",
"public Pair(int x, int y) {\n this.x=x;\n this.y=y;\n }",
"Pair",
"{\n this.x=x;\n this.y=y;\n }",
"this.x=x",
"this.x",
"this",
"this.x",
"x",
"this.y=y",
"this.y",
"this",
"this.y",
"y",
"int x",
"x",
"int y",
"y",
"static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }",
"FastReader",
"{\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }",
"br = new BufferedReader(new\n InputStreamReader(System.in))",
"br",
"new BufferedReader(new\n InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n String s = sc.nextLine();\n String t = sc.nextLine();\n if (!t.substring(0, t.length()-1).equals(s)) {\n System.out.println(\"No\");\n } else {\n System.out.println(\"Yes\");\n }\n //x+a*t == y - b * t\n //a*t+b*t == y - x\n //(a+b)*t == y - x\n // a + (a*2(k-1) = n*2/k\n // a+(a+2k-2)=2a+2k-2=n*2/k\n }\n\n private static int[] prefix_function(String s) {\n int n = s.length();\n int[] res = new int[n];\n for (int i = 1; i < n; i++) {\n int j = res[i-1];\n while (j > 0 && s.charAt(i) != s.charAt(j)) {\n j = res[j-1];\n }\n if (s.charAt(i)==s.charAt(j)) {\n j++;\n }\n res[i] = j;\n }\n return res;\n }\n\n private static boolean check(String s) {\n char cc = s.charAt(0);\n for (char c : s.toCharArray()) {\n if (c!=cc) return false;\n }\n return true;\n }\n\n private static int[] isPrime(int num) {\n for (int i = 2; i <= (int)Math.sqrt(num); i++) {\n if (num % i == 0) return new int[]{i, num/i};\n }\n return null;\n }\n\n private static int sign(long num) {\n if (num < 0) return -1;\n return 1;\n }\n\n private static class Pair {\n int x;\n int y;\n public Pair(int x, int y) {\n this.x=x;\n this.y=y;\n }\n }\n\n\n\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n String s = sc.nextLine();\n String t = sc.nextLine();\n if (!t.substring(0, t.length()-1).equals(s)) {\n System.out.println(\"No\");\n } else {\n System.out.println(\"Yes\");\n }\n //x+a*t == y - b * t\n //a*t+b*t == y - x\n //(a+b)*t == y - x\n // a + (a*2(k-1) = n*2/k\n // a+(a+2k-2)=2a+2k-2=n*2/k\n }\n\n private static int[] prefix_function(String s) {\n int n = s.length();\n int[] res = new int[n];\n for (int i = 1; i < n; i++) {\n int j = res[i-1];\n while (j > 0 && s.charAt(i) != s.charAt(j)) {\n j = res[j-1];\n }\n if (s.charAt(i)==s.charAt(j)) {\n j++;\n }\n res[i] = j;\n }\n return res;\n }\n\n private static boolean check(String s) {\n char cc = s.charAt(0);\n for (char c : s.toCharArray()) {\n if (c!=cc) return false;\n }\n return true;\n }\n\n private static int[] isPrime(int num) {\n for (int i = 2; i <= (int)Math.sqrt(num); i++) {\n if (num % i == 0) return new int[]{i, num/i};\n }\n return null;\n }\n\n private static int sign(long num) {\n if (num < 0) return -1;\n return 1;\n }\n\n private static class Pair {\n int x;\n int y;\n public Pair(int x, int y) {\n this.x=x;\n this.y=y;\n }\n }\n\n\n\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n\n }\n\n}",
"Main"
] |
import java.math.BigInteger;
import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) {
FastReader sc = new FastReader();
String s = sc.nextLine();
String t = sc.nextLine();
if (!t.substring(0, t.length()-1).equals(s)) {
System.out.println("No");
} else {
System.out.println("Yes");
}
//x+a*t == y - b * t
//a*t+b*t == y - x
//(a+b)*t == y - x
// a + (a*2(k-1) = n*2/k
// a+(a+2k-2)=2a+2k-2=n*2/k
}
private static int[] prefix_function(String s) {
int n = s.length();
int[] res = new int[n];
for (int i = 1; i < n; i++) {
int j = res[i-1];
while (j > 0 && s.charAt(i) != s.charAt(j)) {
j = res[j-1];
}
if (s.charAt(i)==s.charAt(j)) {
j++;
}
res[i] = j;
}
return res;
}
private static boolean check(String s) {
char cc = s.charAt(0);
for (char c : s.toCharArray()) {
if (c!=cc) return false;
}
return true;
}
private static int[] isPrime(int num) {
for (int i = 2; i <= (int)Math.sqrt(num); i++) {
if (num % i == 0) return new int[]{i, num/i};
}
return null;
}
private static int sign(long num) {
if (num < 0) return -1;
return 1;
}
private static class Pair {
int x;
int y;
public Pair(int x, int y) {
this.x=x;
this.y=y;
}
}
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new
InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
}
/**
* 7 3
* 3 1 5
* 9 6 5
*
* i = 1: 1
* i = 2: 2
* i = 3: 3
*
*
* 1 2 3 3 3 3 3
*/
/**
*
* 1+1
**/
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
55,
5
],
[
55,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
32,
37
],
[
31,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
31,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
6,
52
],
[
52,
53
],
[
0,
54
],
[
54,
55
],
[
54,
56
]
] |
[
"import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner console = new Scanner(System.in);\n String word1 = console.next();\n String word2 = console.next();\n String end = word2.substring(0, word1.length());\n if (word1.compareTo(end) == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner console = new Scanner(System.in);\n String word1 = console.next();\n String word2 = console.next();\n String end = word2.substring(0, word1.length());\n if (word1.compareTo(end) == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner console = new Scanner(System.in);\n String word1 = console.next();\n String word2 = console.next();\n String end = word2.substring(0, word1.length());\n if (word1.compareTo(end) == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner console = new Scanner(System.in);\n String word1 = console.next();\n String word2 = console.next();\n String end = word2.substring(0, word1.length());\n if (word1.compareTo(end) == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"Scanner console = new Scanner(System.in);",
"console",
"new Scanner(System.in)",
"String word1 = console.next();",
"word1",
"console.next()",
"console.next",
"console",
"String word2 = console.next();",
"word2",
"console.next()",
"console.next",
"console",
"String end = word2.substring(0, word1.length());",
"end",
"word2.substring(0, word1.length())",
"word2.substring",
"word2",
"0",
"word1.length()",
"word1.length",
"word1",
"if (word1.compareTo(end) == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"word1.compareTo(end) == 0",
"word1.compareTo(end)",
"word1.compareTo",
"word1",
"end",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner console = new Scanner(System.in);\n String word1 = console.next();\n String word2 = console.next();\n String end = word2.substring(0, word1.length());\n if (word1.compareTo(end) == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner console = new Scanner(System.in);\n String word1 = console.next();\n String word2 = console.next();\n String end = word2.substring(0, word1.length());\n if (word1.compareTo(end) == 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner console = new Scanner(System.in);
String word1 = console.next();
String word2 = console.next();
String end = word2.substring(0, word1.length());
if (word1.compareTo(end) == 0) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
4,
18,
13,
17,
4,
18,
13,
14,
2,
2,
18,
13,
13,
17,
18,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
40,
4,
18,
18,
13,
13,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
29,
4,
18,
18,
13,
13,
17,
29,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
91,
5
],
[
91,
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
],
[
14,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
22,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
31,
41
],
[
41,
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
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
57,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
67,
74
],
[
41,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
41,
81
],
[
8,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
6,
88
],
[
88,
89
],
[
0,
90
],
[
90,
91
],
[
90,
92
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString[] S = sc.next().split(\"\");\n\t\t\tString[] T = sc.next().split(\"\");\n\t\t\tsc.close();\n\t\t\tif (S.length + 1 == T.length) {\n\t\t\t\tfor (int i = 0; i < S.length; i++) {\n\t\t\t\t\tif (! S[i].equals(T[i])){\n\t\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tSystem.out.println(\"No\");\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString[] S = sc.next().split(\"\");\n\t\t\tString[] T = sc.next().split(\"\");\n\t\t\tsc.close();\n\t\t\tif (S.length + 1 == T.length) {\n\t\t\t\tfor (int i = 0; i < S.length; i++) {\n\t\t\t\t\tif (! S[i].equals(T[i])){\n\t\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tSystem.out.println(\"No\");\n }\n}",
"Main",
"public static void main(String[] args){\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString[] S = sc.next().split(\"\");\n\t\t\tString[] T = sc.next().split(\"\");\n\t\t\tsc.close();\n\t\t\tif (S.length + 1 == T.length) {\n\t\t\t\tfor (int i = 0; i < S.length; i++) {\n\t\t\t\t\tif (! S[i].equals(T[i])){\n\t\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tSystem.out.println(\"No\");\n }",
"main",
"{\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString[] S = sc.next().split(\"\");\n\t\t\tString[] T = sc.next().split(\"\");\n\t\t\tsc.close();\n\t\t\tif (S.length + 1 == T.length) {\n\t\t\t\tfor (int i = 0; i < S.length; i++) {\n\t\t\t\t\tif (! S[i].equals(T[i])){\n\t\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tSystem.out.println(\"No\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String[] S = sc.next().split(\"\");",
"S",
"sc.next().split(\"\")",
"sc.next().split",
"sc.next()",
"sc.next",
"sc",
"\"\"",
"String[] T = sc.next().split(\"\");",
"T",
"sc.next().split(\"\")",
"sc.next().split",
"sc.next()",
"sc.next",
"sc",
"\"\"",
"sc.close()",
"sc.close",
"sc",
"if (S.length + 1 == T.length) {\n\t\t\t\tfor (int i = 0; i < S.length; i++) {\n\t\t\t\t\tif (! S[i].equals(T[i])){\n\t\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}",
"S.length + 1 == T.length",
"S.length + 1",
"S.length",
"S",
"S.length",
"1",
"T.length",
"T",
"T.length",
"{\n\t\t\t\tfor (int i = 0; i < S.length; i++) {\n\t\t\t\t\tif (! S[i].equals(T[i])){\n\t\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}",
"for (int i = 0; i < S.length; i++) {\n\t\t\t\t\tif (! S[i].equals(T[i])){\n\t\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < S.length",
"i",
"S.length",
"S",
"S.length",
"i++",
"i++",
"i",
"{\n\t\t\t\t\tif (! S[i].equals(T[i])){\n\t\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif (! S[i].equals(T[i])){\n\t\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}",
"if (! S[i].equals(T[i])){\n\t\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}",
"! S[i].equals(T[i])",
"S[i].equals(T[i])",
"S[i].equals",
"S[i]",
"S",
"i",
"T[i]",
"T",
"i",
"{\n\t\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"return;",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"return;",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString[] S = sc.next().split(\"\");\n\t\t\tString[] T = sc.next().split(\"\");\n\t\t\tsc.close();\n\t\t\tif (S.length + 1 == T.length) {\n\t\t\t\tfor (int i = 0; i < S.length; i++) {\n\t\t\t\t\tif (! S[i].equals(T[i])){\n\t\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tSystem.out.println(\"No\");\n }\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString[] S = sc.next().split(\"\");\n\t\t\tString[] T = sc.next().split(\"\");\n\t\t\tsc.close();\n\t\t\tif (S.length + 1 == T.length) {\n\t\t\t\tfor (int i = 0; i < S.length; i++) {\n\t\t\t\t\tif (! S[i].equals(T[i])){\n\t\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tSystem.out.println(\"No\");\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String[] S = sc.next().split("");
String[] T = sc.next().split("");
sc.close();
if (S.length + 1 == T.length) {
for (int i = 0; i < S.length; i++) {
if (! S[i].equals(T[i])){
System.out.println("No");
return;
}
}
System.out.println("Yes");
return;
}
System.out.println("No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
14,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
55,
5
],
[
55,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
28,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
33,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
33,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
6,
52
],
[
52,
53
],
[
0,
54
],
[
54,
55
],
[
54,
56
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String line1 = sc.nextLine();\n String line2 = sc.nextLine();\n line2 = line2.substring(0,line2.length()-1);\n if(line1.equals(line2)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String line1 = sc.nextLine();\n String line2 = sc.nextLine();\n line2 = line2.substring(0,line2.length()-1);\n if(line1.equals(line2)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String line1 = sc.nextLine();\n String line2 = sc.nextLine();\n line2 = line2.substring(0,line2.length()-1);\n if(line1.equals(line2)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String line1 = sc.nextLine();\n String line2 = sc.nextLine();\n line2 = line2.substring(0,line2.length()-1);\n if(line1.equals(line2)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line1 = sc.nextLine();",
"line1",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String line2 = sc.nextLine();",
"line2",
"sc.nextLine()",
"sc.nextLine",
"sc",
"line2 = line2.substring(0,line2.length()-1)",
"line2",
"line2.substring(0,line2.length()-1)",
"line2.substring",
"line2",
"0",
"line2.length()-1",
"line2.length()",
"line2.length",
"line2",
"1",
"if(line1.equals(line2)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"line1.equals(line2)",
"line1.equals",
"line1",
"line2",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String line1 = sc.nextLine();\n String line2 = sc.nextLine();\n line2 = line2.substring(0,line2.length()-1);\n if(line1.equals(line2)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String line1 = sc.nextLine();\n String line2 = sc.nextLine();\n line2 = line2.substring(0,line2.length()-1);\n if(line1.equals(line2)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
String line1 = sc.nextLine();
String line2 = sc.nextLine();
line2 = line2.substring(0,line2.length()-1);
if(line1.equals(line2)){
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
3,
14,
2,
2,
13,
2,
4,
18,
13,
17,
2,
4,
18,
13,
2,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
4,
18,
13,
4,
18,
13,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
98,
5
],
[
98,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
22,
32
],
[
32,
33
],
[
33,
34
],
[
22,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
38,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
37,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
47,
54
],
[
37,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
59,
63
],
[
56,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
68,
72
],
[
55,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
55,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
81,
85
],
[
85,
86
],
[
86,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
6,
95
],
[
95,
96
],
[
0,
97
],
[
97,
98
],
[
97,
99
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(final String args[]) {\n Scanner scan = new Scanner(System.in);\n String S = scan.next();\n String T = scan.next();\n for(int i = 0;i < S.length();i++){\n if(S.charAt(i) != T.charAt(i)){\n System.out.println(\"No\");\n break;\n }else if((i == S.length() - 1)&&(S.length() == T.length() -1 )){\n System.out.println(\"Yes\");\n }else if(S.length() == T.length()){\n System.out.println(\"No\");\n }\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(final String args[]) {\n Scanner scan = new Scanner(System.in);\n String S = scan.next();\n String T = scan.next();\n for(int i = 0;i < S.length();i++){\n if(S.charAt(i) != T.charAt(i)){\n System.out.println(\"No\");\n break;\n }else if((i == S.length() - 1)&&(S.length() == T.length() -1 )){\n System.out.println(\"Yes\");\n }else if(S.length() == T.length()){\n System.out.println(\"No\");\n }\n }\n }\n}",
"Main",
"public static void main(final String args[]) {\n Scanner scan = new Scanner(System.in);\n String S = scan.next();\n String T = scan.next();\n for(int i = 0;i < S.length();i++){\n if(S.charAt(i) != T.charAt(i)){\n System.out.println(\"No\");\n break;\n }else if((i == S.length() - 1)&&(S.length() == T.length() -1 )){\n System.out.println(\"Yes\");\n }else if(S.length() == T.length()){\n System.out.println(\"No\");\n }\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n String S = scan.next();\n String T = scan.next();\n for(int i = 0;i < S.length();i++){\n if(S.charAt(i) != T.charAt(i)){\n System.out.println(\"No\");\n break;\n }else if((i == S.length() - 1)&&(S.length() == T.length() -1 )){\n System.out.println(\"Yes\");\n }else if(S.length() == T.length()){\n System.out.println(\"No\");\n }\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String S = scan.next();",
"S",
"scan.next()",
"scan.next",
"scan",
"String T = scan.next();",
"T",
"scan.next()",
"scan.next",
"scan",
"for(int i = 0;i < S.length();i++){\n if(S.charAt(i) != T.charAt(i)){\n System.out.println(\"No\");\n break;\n }else if((i == S.length() - 1)&&(S.length() == T.length() -1 )){\n System.out.println(\"Yes\");\n }else if(S.length() == T.length()){\n System.out.println(\"No\");\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < S.length()",
"i",
"S.length()",
"S.length",
"S",
"i++",
"i++",
"i",
"{\n if(S.charAt(i) != T.charAt(i)){\n System.out.println(\"No\");\n break;\n }else if((i == S.length() - 1)&&(S.length() == T.length() -1 )){\n System.out.println(\"Yes\");\n }else if(S.length() == T.length()){\n System.out.println(\"No\");\n }\n }",
"{\n if(S.charAt(i) != T.charAt(i)){\n System.out.println(\"No\");\n break;\n }else if((i == S.length() - 1)&&(S.length() == T.length() -1 )){\n System.out.println(\"Yes\");\n }else if(S.length() == T.length()){\n System.out.println(\"No\");\n }\n }",
"if(S.charAt(i) != T.charAt(i)){\n System.out.println(\"No\");\n break;\n }else if((i == S.length() - 1)&&(S.length() == T.length() -1 )){\n System.out.println(\"Yes\");\n }else if(S.length() == T.length()){\n System.out.println(\"No\");\n }",
"S.charAt(i) != T.charAt(i)",
"S.charAt(i)",
"S.charAt",
"S",
"i",
"T.charAt(i)",
"T.charAt",
"T",
"i",
"{\n System.out.println(\"No\");\n break;\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"break;",
"if((i == S.length() - 1)&&(S.length() == T.length() -1 )){\n System.out.println(\"Yes\");\n }else if(S.length() == T.length()){\n System.out.println(\"No\");\n }",
"(i == S.length() - 1)&&(S.length() == T.length() -1 )",
"(i == S.length() - 1)",
"i",
"S.length() - 1",
"S.length()",
"S.length",
"S",
"1",
"(S.length() == T.length() -1 )",
"S.length()",
"S.length",
"S",
"T.length() -1",
"T.length()",
"T.length",
"T",
"1",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"if(S.length() == T.length()){\n System.out.println(\"No\");\n }",
"S.length() == T.length()",
"S.length()",
"S.length",
"S",
"T.length()",
"T.length",
"T",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"final String args[]",
"args",
"public class Main {\n public static void main(final String args[]) {\n Scanner scan = new Scanner(System.in);\n String S = scan.next();\n String T = scan.next();\n for(int i = 0;i < S.length();i++){\n if(S.charAt(i) != T.charAt(i)){\n System.out.println(\"No\");\n break;\n }else if((i == S.length() - 1)&&(S.length() == T.length() -1 )){\n System.out.println(\"Yes\");\n }else if(S.length() == T.length()){\n System.out.println(\"No\");\n }\n }\n }\n}",
"public class Main {\n public static void main(final String args[]) {\n Scanner scan = new Scanner(System.in);\n String S = scan.next();\n String T = scan.next();\n for(int i = 0;i < S.length();i++){\n if(S.charAt(i) != T.charAt(i)){\n System.out.println(\"No\");\n break;\n }else if((i == S.length() - 1)&&(S.length() == T.length() -1 )){\n System.out.println(\"Yes\");\n }else if(S.length() == T.length()){\n System.out.println(\"No\");\n }\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(final String args[]) {
Scanner scan = new Scanner(System.in);
String S = scan.next();
String T = scan.next();
for(int i = 0;i < S.length();i++){
if(S.charAt(i) != T.charAt(i)){
System.out.println("No");
break;
}else if((i == S.length() - 1)&&(S.length() == T.length() -1 )){
System.out.println("Yes");
}else if(S.length() == T.length()){
System.out.println("No");
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
8,
4,
18,
4,
18,
13,
17,
13,
4,
18,
13,
17,
13,
17,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
62,
11
],
[
62,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
14,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
47,
51
],
[
45,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
52,
56
],
[
44,
57
],
[
44,
58
],
[
12,
59
],
[
59,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString a = br.readLine();\n\t\tString b = br.readLine();\n\t\tint l = Math.min(a.length(), b.length());\n\t\tSystem.out.println(a.substring(0, l).equals(b.subSequence(0, l)) ? \"Yes\" : \"No\");\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) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString a = br.readLine();\n\t\tString b = br.readLine();\n\t\tint l = Math.min(a.length(), b.length());\n\t\tSystem.out.println(a.substring(0, l).equals(b.subSequence(0, l)) ? \"Yes\" : \"No\");\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 a = br.readLine();\n\t\tString b = br.readLine();\n\t\tint l = Math.min(a.length(), b.length());\n\t\tSystem.out.println(a.substring(0, l).equals(b.subSequence(0, l)) ? \"Yes\" : \"No\");\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString a = br.readLine();\n\t\tString b = br.readLine();\n\t\tint l = Math.min(a.length(), b.length());\n\t\tSystem.out.println(a.substring(0, l).equals(b.subSequence(0, l)) ? \"Yes\" : \"No\");\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String a = br.readLine();",
"a",
"br.readLine()",
"br.readLine",
"br",
"String b = br.readLine();",
"b",
"br.readLine()",
"br.readLine",
"br",
"int l = Math.min(a.length(), b.length());",
"l",
"Math.min(a.length(), b.length())",
"Math.min",
"Math",
"a.length()",
"a.length",
"a",
"b.length()",
"b.length",
"b",
"System.out.println(a.substring(0, l).equals(b.subSequence(0, l)) ? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"a.substring(0, l).equals(b.subSequence(0, l)) ? \"Yes\" : \"No\"",
"a.substring(0, l).equals(b.subSequence(0, l))",
"a.substring(0, l).equals",
"a.substring(0, l)",
"a.substring",
"a",
"0",
"l",
"b.subSequence(0, l)",
"b.subSequence",
"b",
"0",
"l",
"\"Yes\"",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString a = br.readLine();\n\t\tString b = br.readLine();\n\t\tint l = Math.min(a.length(), b.length());\n\t\tSystem.out.println(a.substring(0, l).equals(b.subSequence(0, l)) ? \"Yes\" : \"No\");\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 a = br.readLine();\n\t\tString b = br.readLine();\n\t\tint l = Math.min(a.length(), b.length());\n\t\tSystem.out.println(a.substring(0, l).equals(b.subSequence(0, l)) ? \"Yes\" : \"No\");\n\t}\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String a = br.readLine();
String b = br.readLine();
int l = Math.min(a.length(), b.length());
System.out.println(a.substring(0, l).equals(b.subSequence(0, l)) ? "Yes" : "No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
8,
4,
18,
13,
13,
17,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
40,
5
],
[
40,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
30,
35
],
[
30,
36
],
[
6,
37
],
[
37,
38
],
[
0,
39
],
[
39,
40
],
[
39,
41
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\t\tsc.close();\n\t\tSystem.out.println(T.startsWith(S) ? \"Yes\" : \"No\");\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\t\tsc.close();\n\t\tSystem.out.println(T.startsWith(S) ? \"Yes\" : \"No\");\n\t}\n}",
"Main",
"public static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\t\tsc.close();\n\t\tSystem.out.println(T.startsWith(S) ? \"Yes\" : \"No\");\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\t\tsc.close();\n\t\tSystem.out.println(T.startsWith(S) ? \"Yes\" : \"No\");\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"String T = sc.next();",
"T",
"sc.next()",
"sc.next",
"sc",
"sc.close()",
"sc.close",
"sc",
"System.out.println(T.startsWith(S) ? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"T.startsWith(S) ? \"Yes\" : \"No\"",
"T.startsWith(S)",
"T.startsWith",
"T",
"S",
"\"Yes\"",
"\"No\"",
"final String[] args",
"args",
"public class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\t\tsc.close();\n\t\tSystem.out.println(T.startsWith(S) ? \"Yes\" : \"No\");\n\t}\n}",
"public class Main {\n\n\tpublic static void main(final String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\t\tsc.close();\n\t\tSystem.out.println(T.startsWith(S) ? \"Yes\" : \"No\");\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(final String[] args) {
Scanner sc = new Scanner(System.in);
String S = sc.next();
String T = sc.next();
sc.close();
System.out.println(T.startsWith(S) ? "Yes" : "No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
13,
14,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
29,
33
],
[
8,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
34,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
34,
46
],
[
46,
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 Scanner sc = new Scanner(System.in);\n \n \t\tString S = sc.next();\n \tString T = sc.next();\n \n \tint a = S.length();\n \tString b = T.substring(0,a);\n \n if(S.equals(b)){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n \t\tString S = sc.next();\n \tString T = sc.next();\n \n \tint a = S.length();\n \tString b = T.substring(0,a);\n \n if(S.equals(b)){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n \t\tString S = sc.next();\n \tString T = sc.next();\n \n \tint a = S.length();\n \tString b = T.substring(0,a);\n \n if(S.equals(b)){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n \n \t\tString S = sc.next();\n \tString T = sc.next();\n \n \tint a = S.length();\n \tString b = T.substring(0,a);\n \n if(S.equals(b)){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"String T = sc.next();",
"T",
"sc.next()",
"sc.next",
"sc",
"int a = S.length();",
"a",
"S.length()",
"S.length",
"S",
"String b = T.substring(0,a);",
"b",
"T.substring(0,a)",
"T.substring",
"T",
"0",
"a",
"if(S.equals(b)){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }",
"S.equals(b)",
"S.equals",
"S",
"b",
"{\n \tSystem.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n \tSystem.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args"
] |
import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String S = sc.next();
String T = sc.next();
int a = S.length();
String b = T.substring(0,a);
if(S.equals(b)){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
8,
4,
18,
4,
18,
13,
17,
2,
4,
18,
13,
17,
13,
17,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
47,
5
],
[
47,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
10,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
36,
40
],
[
30,
41
],
[
29,
42
],
[
29,
43
],
[
6,
44
],
[
44,
45
],
[
0,
46
],
[
46,
47
],
[
46,
48
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n String S = sc.next();\n String T = sc.next();\n System.out.println(T.substring(0, T.length() - 1).equals(S) ? \"Yes\" : \"No\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n String S = sc.next();\n String T = sc.next();\n System.out.println(T.substring(0, T.length() - 1).equals(S) ? \"Yes\" : \"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n String S = sc.next();\n String T = sc.next();\n System.out.println(T.substring(0, T.length() - 1).equals(S) ? \"Yes\" : \"No\");\n }\n }",
"main",
"{\n try (Scanner sc = new Scanner(System.in)) {\n String S = sc.next();\n String T = sc.next();\n System.out.println(T.substring(0, T.length() - 1).equals(S) ? \"Yes\" : \"No\");\n }\n }",
"try (Scanner sc = new Scanner(System.in)) {\n String S = sc.next();\n String T = sc.next();\n System.out.println(T.substring(0, T.length() - 1).equals(S) ? \"Yes\" : \"No\");\n }",
"{\n String S = sc.next();\n String T = sc.next();\n System.out.println(T.substring(0, T.length() - 1).equals(S) ? \"Yes\" : \"No\");\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"String T = sc.next();",
"T",
"sc.next()",
"sc.next",
"sc",
"System.out.println(T.substring(0, T.length() - 1).equals(S) ? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"T.substring(0, T.length() - 1).equals(S) ? \"Yes\" : \"No\"",
"T.substring(0, T.length() - 1).equals(S)",
"T.substring(0, T.length() - 1).equals",
"T.substring(0, T.length() - 1)",
"T.substring",
"T",
"0",
"T.length() - 1",
"T.length()",
"T.length",
"T",
"1",
"S",
"\"Yes\"",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n String S = sc.next();\n String T = sc.next();\n System.out.println(T.substring(0, T.length() - 1).equals(S) ? \"Yes\" : \"No\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n String S = sc.next();\n String T = sc.next();\n System.out.println(T.substring(0, T.length() - 1).equals(S) ? \"Yes\" : \"No\");\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner sc = new Scanner(System.in)) {
String S = sc.next();
String T = sc.next();
System.out.println(T.substring(0, T.length() - 1).equals(S) ? "Yes" : "No");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
8,
4,
18,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
17,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
51,
8
],
[
51,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
38,
42
],
[
30,
43
],
[
30,
44
],
[
11,
45
],
[
45,
46
],
[
46,
47
],
[
9,
48
],
[
48,
49
],
[
0,
50
],
[
50,
51
],
[
50,
52
]
] |
[
"import java.io.*;\nimport java.util.*;\npublic class Main {\n\tpublic static void main(String[] args) {\n \tScanner file = new Scanner(System.in);\n \tString s = file.next(), t = file.next();\n \tSystem.out.println(s.equals(t.substring(0, t.length() - 1)) ? \"Yes\" : \"No\");\n \tfile.close();\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n \tScanner file = new Scanner(System.in);\n \tString s = file.next(), t = file.next();\n \tSystem.out.println(s.equals(t.substring(0, t.length() - 1)) ? \"Yes\" : \"No\");\n \tfile.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n \tScanner file = new Scanner(System.in);\n \tString s = file.next(), t = file.next();\n \tSystem.out.println(s.equals(t.substring(0, t.length() - 1)) ? \"Yes\" : \"No\");\n \tfile.close();\n }",
"main",
"{\n \tScanner file = new Scanner(System.in);\n \tString s = file.next(), t = file.next();\n \tSystem.out.println(s.equals(t.substring(0, t.length() - 1)) ? \"Yes\" : \"No\");\n \tfile.close();\n }",
"Scanner file = new Scanner(System.in);",
"file",
"new Scanner(System.in)",
"String s = file.next()",
"s",
"file.next()",
"file.next",
"file",
"t = file.next();",
"t",
"file.next()",
"file.next",
"file",
"System.out.println(s.equals(t.substring(0, t.length() - 1)) ? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.equals(t.substring(0, t.length() - 1)) ? \"Yes\" : \"No\"",
"s.equals(t.substring(0, t.length() - 1))",
"s.equals",
"s",
"t.substring(0, t.length() - 1)",
"t.substring",
"t",
"0",
"t.length() - 1",
"t.length()",
"t.length",
"t",
"1",
"\"Yes\"",
"\"No\"",
"file.close()",
"file.close",
"file",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n \tScanner file = new Scanner(System.in);\n \tString s = file.next(), t = file.next();\n \tSystem.out.println(s.equals(t.substring(0, t.length() - 1)) ? \"Yes\" : \"No\");\n \tfile.close();\n }\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n \tScanner file = new Scanner(System.in);\n \tString s = file.next(), t = file.next();\n \tSystem.out.println(s.equals(t.substring(0, t.length() - 1)) ? \"Yes\" : \"No\");\n \tfile.close();\n }\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner file = new Scanner(System.in);
String s = file.next(), t = file.next();
System.out.println(s.equals(t.substring(0, t.length() - 1)) ? "Yes" : "No");
file.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
30,
40,
13,
14,
2,
2,
13,
17,
2,
2,
4,
18,
13,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
87,
5
],
[
87,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
25,
35
],
[
35,
36
],
[
36,
37
],
[
25,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
41,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
40,
50
],
[
50,
51
],
[
51,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
58,
66
],
[
53,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
53,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
8,
81
],
[
81,
82
],
[
82,
83
],
[
6,
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\tScanner sc = new Scanner(System.in);\n\n\t\tString inputId = sc.nextLine();\n\t\tString inputAddId = sc.nextLine();\n\n\t\tint flag = 0;\n\n\t\tfor (int i = 0; i < inputId.length(); i++) {\n\n\t\t\tif (inputId.charAt(i) != inputAddId.charAt(i)) {\n\t\t\t\tflag++;\n\t\t\t}\n\t\t}\n\n\t\tif (flag == 0 && (inputAddId.length() - inputId.length() == 1)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString inputId = sc.nextLine();\n\t\tString inputAddId = sc.nextLine();\n\n\t\tint flag = 0;\n\n\t\tfor (int i = 0; i < inputId.length(); i++) {\n\n\t\t\tif (inputId.charAt(i) != inputAddId.charAt(i)) {\n\t\t\t\tflag++;\n\t\t\t}\n\t\t}\n\n\t\tif (flag == 0 && (inputAddId.length() - inputId.length() == 1)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString inputId = sc.nextLine();\n\t\tString inputAddId = sc.nextLine();\n\n\t\tint flag = 0;\n\n\t\tfor (int i = 0; i < inputId.length(); i++) {\n\n\t\t\tif (inputId.charAt(i) != inputAddId.charAt(i)) {\n\t\t\t\tflag++;\n\t\t\t}\n\t\t}\n\n\t\tif (flag == 0 && (inputAddId.length() - inputId.length() == 1)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString inputId = sc.nextLine();\n\t\tString inputAddId = sc.nextLine();\n\n\t\tint flag = 0;\n\n\t\tfor (int i = 0; i < inputId.length(); i++) {\n\n\t\t\tif (inputId.charAt(i) != inputAddId.charAt(i)) {\n\t\t\t\tflag++;\n\t\t\t}\n\t\t}\n\n\t\tif (flag == 0 && (inputAddId.length() - inputId.length() == 1)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String inputId = sc.nextLine();",
"inputId",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String inputAddId = sc.nextLine();",
"inputAddId",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int flag = 0;",
"flag",
"0",
"for (int i = 0; i < inputId.length(); i++) {\n\n\t\t\tif (inputId.charAt(i) != inputAddId.charAt(i)) {\n\t\t\t\tflag++;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < inputId.length()",
"i",
"inputId.length()",
"inputId.length",
"inputId",
"i++",
"i++",
"i",
"{\n\n\t\t\tif (inputId.charAt(i) != inputAddId.charAt(i)) {\n\t\t\t\tflag++;\n\t\t\t}\n\t\t}",
"{\n\n\t\t\tif (inputId.charAt(i) != inputAddId.charAt(i)) {\n\t\t\t\tflag++;\n\t\t\t}\n\t\t}",
"if (inputId.charAt(i) != inputAddId.charAt(i)) {\n\t\t\t\tflag++;\n\t\t\t}",
"inputId.charAt(i) != inputAddId.charAt(i)",
"inputId.charAt(i)",
"inputId.charAt",
"inputId",
"i",
"inputAddId.charAt(i)",
"inputAddId.charAt",
"inputAddId",
"i",
"{\n\t\t\t\tflag++;\n\t\t\t}",
"flag++",
"flag",
"if (flag == 0 && (inputAddId.length() - inputId.length() == 1)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"flag == 0 && (inputAddId.length() - inputId.length() == 1)",
"flag == 0",
"flag",
"0",
"(inputAddId.length() - inputId.length() == 1)",
"inputAddId.length() - inputId.length()",
"inputAddId.length()",
"inputAddId.length",
"inputAddId",
"inputId.length()",
"inputId.length",
"inputId",
"1",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString inputId = sc.nextLine();\n\t\tString inputAddId = sc.nextLine();\n\n\t\tint flag = 0;\n\n\t\tfor (int i = 0; i < inputId.length(); i++) {\n\n\t\t\tif (inputId.charAt(i) != inputAddId.charAt(i)) {\n\t\t\t\tflag++;\n\t\t\t}\n\t\t}\n\n\t\tif (flag == 0 && (inputAddId.length() - inputId.length() == 1)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString inputId = sc.nextLine();\n\t\tString inputAddId = sc.nextLine();\n\n\t\tint flag = 0;\n\n\t\tfor (int i = 0; i < inputId.length(); i++) {\n\n\t\t\tif (inputId.charAt(i) != inputAddId.charAt(i)) {\n\t\t\t\tflag++;\n\t\t\t}\n\t\t}\n\n\t\tif (flag == 0 && (inputAddId.length() - inputId.length() == 1)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String inputId = sc.nextLine();
String inputAddId = sc.nextLine();
int flag = 0;
for (int i = 0; i < inputId.length(); i++) {
if (inputId.charAt(i) != inputAddId.charAt(i)) {
flag++;
}
}
if (flag == 0 && (inputAddId.length() - inputId.length() == 1)) {
System.out.println("Yes");
} else {
System.out.println("No");
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
13,
14,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
56,
5
],
[
56,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
29,
33
],
[
8,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
34,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
34,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
6,
53
],
[
53,
54
],
[
0,
55
],
[
55,
56
],
[
55,
57
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String args[]){\n Scanner scn = new Scanner(System.in);\n String s = scn.next();\n String t = scn.next();\n int size = s.length();\n String tCut = t.substring(0, size);\n if (s.equals(tCut)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\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 s = scn.next();\n String t = scn.next();\n int size = s.length();\n String tCut = t.substring(0, size);\n if (s.equals(tCut)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner scn = new Scanner(System.in);\n String s = scn.next();\n String t = scn.next();\n int size = s.length();\n String tCut = t.substring(0, size);\n if (s.equals(tCut)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner scn = new Scanner(System.in);\n String s = scn.next();\n String t = scn.next();\n int size = s.length();\n String tCut = t.substring(0, size);\n if (s.equals(tCut)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"String s = scn.next();",
"s",
"scn.next()",
"scn.next",
"scn",
"String t = scn.next();",
"t",
"scn.next()",
"scn.next",
"scn",
"int size = s.length();",
"size",
"s.length()",
"s.length",
"s",
"String tCut = t.substring(0, size);",
"tCut",
"t.substring(0, size)",
"t.substring",
"t",
"0",
"size",
"if (s.equals(tCut)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"s.equals(tCut)",
"s.equals",
"s",
"tCut",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String args[]",
"args",
"public class Main {\n public static void main(String args[]){\n Scanner scn = new Scanner(System.in);\n String s = scn.next();\n String t = scn.next();\n int size = s.length();\n String tCut = t.substring(0, size);\n if (s.equals(tCut)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"public class Main {\n public static void main(String args[]){\n Scanner scn = new Scanner(System.in);\n String s = scn.next();\n String t = scn.next();\n int size = s.length();\n String tCut = t.substring(0, size);\n if (s.equals(tCut)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String args[]){
Scanner scn = new Scanner(System.in);
String s = scn.next();
String t = scn.next();
int size = s.length();
String tCut = t.substring(0, size);
if (s.equals(tCut)){
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
4,
13,
40,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
73,
11
],
[
73,
12
],
[
12,
13
],
[
12,
14
],
[
73,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
17,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
36,
40
],
[
28,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
28,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
73,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
68,
69
],
[
55,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
] |
[
"/* package codechef; // don't place package name! */\n\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\n\n\n/* Name of the class has to be \"Main\" only if the class is public. */\npublic class Main\n \n \n{\n static Scanner in = new Scanner(System.in);\n \n public static void solve()\n {\n String s=in.nextLine();\n String s1=in.nextLine();\n \n if(s.equals(s1.substring(0,s1.length()-1)))\n {\n System.out.println(\"Yes\");\n }\n else\n {\n System.out.println(\"No\");\n }\n }\n \n\n \n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\t// your code goes here\n\t\t\n\t\tint t=1;\n\t//\tin.nextLine();\n\t\t\n\t\twhile(t>0)\n\t\t{\n\t\t \n\t\t solve();\n\t\t t--;\n\t\t}\n\t\t\n\t\t\n\t\n\t//\tSystem.out.println(x);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main\n \n \n{\n static Scanner in = new Scanner(System.in);\n \n public static void solve()\n {\n String s=in.nextLine();\n String s1=in.nextLine();\n \n if(s.equals(s1.substring(0,s1.length()-1)))\n {\n System.out.println(\"Yes\");\n }\n else\n {\n System.out.println(\"No\");\n }\n }\n \n\n \n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\t// your code goes here\n\t\t\n\t\tint t=1;\n\t//\tin.nextLine();\n\t\t\n\t\twhile(t>0)\n\t\t{\n\t\t \n\t\t solve();\n\t\t t--;\n\t\t}\n\t\t\n\t\t\n\t\n\t//\tSystem.out.println(x);\n\t}\n}",
"Main",
"static Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"public static void solve()\n {\n String s=in.nextLine();\n String s1=in.nextLine();\n \n if(s.equals(s1.substring(0,s1.length()-1)))\n {\n System.out.println(\"Yes\");\n }\n else\n {\n System.out.println(\"No\");\n }\n }",
"solve",
"{\n String s=in.nextLine();\n String s1=in.nextLine();\n \n if(s.equals(s1.substring(0,s1.length()-1)))\n {\n System.out.println(\"Yes\");\n }\n else\n {\n System.out.println(\"No\");\n }\n }",
"String s=in.nextLine();",
"s",
"in.nextLine()",
"in.nextLine",
"in",
"String s1=in.nextLine();",
"s1",
"in.nextLine()",
"in.nextLine",
"in",
"if(s.equals(s1.substring(0,s1.length()-1)))\n {\n System.out.println(\"Yes\");\n }\n else\n {\n System.out.println(\"No\");\n }",
"s.equals(s1.substring(0,s1.length()-1))",
"s.equals",
"s",
"s1.substring(0,s1.length()-1)",
"s1.substring",
"s1",
"0",
"s1.length()-1",
"s1.length()",
"s1.length",
"s1",
"1",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"public static void main (String[] args) throws java.lang.Exception\n\t{\n\t\t// your code goes here\n\t\t\n\t\tint t=1;\n\t//\tin.nextLine();\n\t\t\n\t\twhile(t>0)\n\t\t{\n\t\t \n\t\t solve();\n\t\t t--;\n\t\t}\n\t\t\n\t\t\n\t\n\t//\tSystem.out.println(x);\n\t}",
"main",
"{\n\t\t// your code goes here\n\t\t\n\t\tint t=1;\n\t//\tin.nextLine();\n\t\t\n\t\twhile(t>0)\n\t\t{\n\t\t \n\t\t solve();\n\t\t t--;\n\t\t}\n\t\t\n\t\t\n\t\n\t//\tSystem.out.println(x);\n\t}",
"int t=1;",
"t",
"1",
"while(t>0)\n\t\t{\n\t\t \n\t\t solve();\n\t\t t--;\n\t\t}",
"t>0",
"t",
"0",
"{\n\t\t \n\t\t solve();\n\t\t t--;\n\t\t}",
"solve()",
"solve",
"t--",
"t",
"String[] args",
"args",
"public class Main\n \n \n{\n static Scanner in = new Scanner(System.in);\n \n public static void solve()\n {\n String s=in.nextLine();\n String s1=in.nextLine();\n \n if(s.equals(s1.substring(0,s1.length()-1)))\n {\n System.out.println(\"Yes\");\n }\n else\n {\n System.out.println(\"No\");\n }\n }\n \n\n \n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\t// your code goes here\n\t\t\n\t\tint t=1;\n\t//\tin.nextLine();\n\t\t\n\t\twhile(t>0)\n\t\t{\n\t\t \n\t\t solve();\n\t\t t--;\n\t\t}\n\t\t\n\t\t\n\t\n\t//\tSystem.out.println(x);\n\t}\n}",
"public class Main\n \n \n{\n static Scanner in = new Scanner(System.in);\n \n public static void solve()\n {\n String s=in.nextLine();\n String s1=in.nextLine();\n \n if(s.equals(s1.substring(0,s1.length()-1)))\n {\n System.out.println(\"Yes\");\n }\n else\n {\n System.out.println(\"No\");\n }\n }\n \n\n \n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\t// your code goes here\n\t\t\n\t\tint t=1;\n\t//\tin.nextLine();\n\t\t\n\t\twhile(t>0)\n\t\t{\n\t\t \n\t\t solve();\n\t\t t--;\n\t\t}\n\t\t\n\t\t\n\t\n\t//\tSystem.out.println(x);\n\t}\n}",
"Main"
] |
/* package codechef; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
static Scanner in = new Scanner(System.in);
public static void solve()
{
String s=in.nextLine();
String s1=in.nextLine();
if(s.equals(s1.substring(0,s1.length()-1)))
{
System.out.println("Yes");
}
else
{
System.out.println("No");
}
}
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
int t=1;
// in.nextLine();
while(t>0)
{
solve();
t--;
}
// System.out.println(x);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
30,
14,
2,
4,
18,
13,
2,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
64,
5
],
[
64,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
35,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
39,
43
],
[
34,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
22,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
8,
58
],
[
58,
59
],
[
59,
60
],
[
6,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString S = stdIn.next();\n\t\tString T = stdIn.next();\n\t\tif(S.equals(T.substring(0,S.length()))){\n\t\t\tif(S.length() == T.length() - 1){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tstdIn.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString S = stdIn.next();\n\t\tString T = stdIn.next();\n\t\tif(S.equals(T.substring(0,S.length()))){\n\t\t\tif(S.length() == T.length() - 1){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tstdIn.close();\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString S = stdIn.next();\n\t\tString T = stdIn.next();\n\t\tif(S.equals(T.substring(0,S.length()))){\n\t\t\tif(S.length() == T.length() - 1){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tstdIn.close();\n\t}",
"main",
"{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString S = stdIn.next();\n\t\tString T = stdIn.next();\n\t\tif(S.equals(T.substring(0,S.length()))){\n\t\t\tif(S.length() == T.length() - 1){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tstdIn.close();\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"String S = stdIn.next();",
"S",
"stdIn.next()",
"stdIn.next",
"stdIn",
"String T = stdIn.next();",
"T",
"stdIn.next()",
"stdIn.next",
"stdIn",
"if(S.equals(T.substring(0,S.length()))){\n\t\t\tif(S.length() == T.length() - 1){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"S.equals(T.substring(0,S.length()))",
"S.equals",
"S",
"T.substring(0,S.length())",
"T.substring",
"T",
"0",
"S.length()",
"S.length",
"S",
"{\n\t\t\tif(S.length() == T.length() - 1){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t}",
"if(S.length() == T.length() - 1){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}",
"S.length() == T.length() - 1",
"S.length()",
"S.length",
"S",
"T.length() - 1",
"T.length()",
"T.length",
"T",
"1",
"{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"stdIn.close()",
"stdIn.close",
"stdIn",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString S = stdIn.next();\n\t\tString T = stdIn.next();\n\t\tif(S.equals(T.substring(0,S.length()))){\n\t\t\tif(S.length() == T.length() - 1){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tstdIn.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString S = stdIn.next();\n\t\tString T = stdIn.next();\n\t\tif(S.equals(T.substring(0,S.length()))){\n\t\t\tif(S.length() == T.length() - 1){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tstdIn.close();\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner stdIn = new Scanner(System.in);
String S = stdIn.next();
String T = stdIn.next();
if(S.equals(T.substring(0,S.length()))){
if(S.length() == T.length() - 1){
System.out.println("Yes");
}
}
else{
System.out.println("No");
}
stdIn.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
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
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
30,
34
],
[
22,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
22,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
6,
49
],
[
49,
50
],
[
0,
51
],
[
51,
52
],
[
51,
53
]
] |
[
"\nimport java.util.*;\npublic class Main{\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String s = scan.nextLine();\n String t = scan.nextLine();\n\n if(s.equals(t.substring(0,t.length()-1))){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String s = scan.nextLine();\n String t = scan.nextLine();\n\n if(s.equals(t.substring(0,t.length()-1))){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String s = scan.nextLine();\n String t = scan.nextLine();\n\n if(s.equals(t.substring(0,t.length()-1))){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n String s = scan.nextLine();\n String t = scan.nextLine();\n\n if(s.equals(t.substring(0,t.length()-1))){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String s = scan.nextLine();",
"s",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String t = scan.nextLine();",
"t",
"scan.nextLine()",
"scan.nextLine",
"scan",
"if(s.equals(t.substring(0,t.length()-1))){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"s.equals(t.substring(0,t.length()-1))",
"s.equals",
"s",
"t.substring(0,t.length()-1)",
"t.substring",
"t",
"0",
"t.length()-1",
"t.length()",
"t.length",
"t",
"1",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main{\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String s = scan.nextLine();\n String t = scan.nextLine();\n\n if(s.equals(t.substring(0,t.length()-1))){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n }\n}",
"public class Main{\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String s = scan.nextLine();\n String t = scan.nextLine();\n\n if(s.equals(t.substring(0,t.length()-1))){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String s = scan.nextLine();
String t = scan.nextLine();
if(s.equals(t.substring(0,t.length()-1))){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
13,
41,
13,
4,
13,
14,
4,
18,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
29,
4,
18,
4,
13,
17,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
13,
23,
13,
12,
13,
30,
29,
4,
13,
13,
23,
13,
12,
13,
30,
29,
2,
4,
13,
13,
2,
4,
13,
13,
4,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
13,
29,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
13,
30,
0,
13,
2,
13,
13,
29,
4,
13,
13,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
267,
11
],
[
267,
12
],
[
12,
13
],
[
267,
14
],
[
14,
15
],
[
14,
16
],
[
267,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
19,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
36,
40
],
[
28,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
28,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
17,
55
],
[
55,
56
],
[
267,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
61,
65
],
[
267,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
267,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
267,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
91,
92
],
[
267,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
100,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
95,
119
],
[
119,
120
],
[
93,
121
],
[
121,
122
],
[
267,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
135,
136
],
[
135,
137
],
[
130,
138
],
[
138,
139
],
[
139,
140
],
[
130,
141
],
[
142,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
147,
148
],
[
125,
149
],
[
149,
150
],
[
123,
151
],
[
151,
152
],
[
267,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
156,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
155,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
267,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
177,
180
],
[
173,
181
],
[
181,
182
],
[
267,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
183,
190
],
[
190,
191
],
[
267,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
196,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
200,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
206,
208
],
[
192,
209
],
[
209,
210
],
[
192,
211
],
[
211,
212
],
[
267,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
215,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
219,
224
],
[
224,
225
],
[
224,
226
],
[
219,
227
],
[
227,
228
],
[
228,
229
],
[
219,
230
],
[
231,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
234,
236
],
[
215,
237
],
[
237,
238
],
[
213,
239
],
[
239,
240
],
[
267,
241
],
[
241,
242
],
[
241,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
244,
248
],
[
248,
249
],
[
249,
250
],
[
244,
251
],
[
251,
252
],
[
252,
253
],
[
252,
254
],
[
254,
255
],
[
254,
256
],
[
251,
257
],
[
257,
258
],
[
258,
259
],
[
258,
260
],
[
258,
261
],
[
241,
262
],
[
262,
263
],
[
241,
264
],
[
264,
265
],
[
0,
266
],
[
266,
267
],
[
266,
268
]
] |
[
"import java.util.*;\nimport java.io.*;\nimport static java.lang.Math.*;\n\npublic class Main {\n static StringTokenizer st;\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n public static void main(String[] args) throws IOException {\n String s = next();\n String t = next();\n\n if (s.equals(t.substring(0, t.length() - 1))) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n\n static char nextChar() throws IOException {\n return next().charAt(0);\n }\n\n static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static int[] readArray(int n) throws IOException {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n static long[] readLongArray(int n) throws IOException {\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextLong();\n }\n return a;\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine().trim());\n }\n return st.nextToken();\n }\n\n static int Char2Int(Character c) {\n return Character.getNumericValue(c);\n }\n\n static double Char2Double(Character c) {\n return (double) Char2Int(c);\n }\n\n static int nCr(int n, int r) {\n return fact(n) / (fact(r) * fact(n - r));\n }\n\n // Returns factorial of n\n static int fact(int n) {\n int res = 1;\n for (int i = 2; i <= n; i++) {\n res = res * i;\n }\n return res;\n }\n\n static int gcd(int a, int b) {\n if (b == 0) {\n return a;\n } else {\n a = a % b; // 残り部分\n return gcd(b, a); // 残り部分から最小の正方形を見つける\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import static java.lang.Math.*;",
"import static java.lang.Math.*;",
"import static java.lang.Math.*;",
"public class Main {\n static StringTokenizer st;\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n public static void main(String[] args) throws IOException {\n String s = next();\n String t = next();\n\n if (s.equals(t.substring(0, t.length() - 1))) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n\n static char nextChar() throws IOException {\n return next().charAt(0);\n }\n\n static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static int[] readArray(int n) throws IOException {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n static long[] readLongArray(int n) throws IOException {\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextLong();\n }\n return a;\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine().trim());\n }\n return st.nextToken();\n }\n\n static int Char2Int(Character c) {\n return Character.getNumericValue(c);\n }\n\n static double Char2Double(Character c) {\n return (double) Char2Int(c);\n }\n\n static int nCr(int n, int r) {\n return fact(n) / (fact(r) * fact(n - r));\n }\n\n // Returns factorial of n\n static int fact(int n) {\n int res = 1;\n for (int i = 2; i <= n; i++) {\n res = res * i;\n }\n return res;\n }\n\n static int gcd(int a, int b) {\n if (b == 0) {\n return a;\n } else {\n a = a % b; // 残り部分\n return gcd(b, a); // 残り部分から最小の正方形を見つける\n }\n }\n}",
"Main",
"static StringTokenizer st;",
"st",
"static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"public static void main(String[] args) throws IOException {\n String s = next();\n String t = next();\n\n if (s.equals(t.substring(0, t.length() - 1))) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n String s = next();\n String t = next();\n\n if (s.equals(t.substring(0, t.length() - 1))) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"String s = next();",
"s",
"next()",
"next",
"String t = next();",
"t",
"next()",
"next",
"if (s.equals(t.substring(0, t.length() - 1))) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"s.equals(t.substring(0, t.length() - 1))",
"s.equals",
"s",
"t.substring(0, t.length() - 1)",
"t.substring",
"t",
"0",
"t.length() - 1",
"t.length()",
"t.length",
"t",
"1",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"static char nextChar() throws IOException {\n return next().charAt(0);\n }",
"nextChar",
"{\n return next().charAt(0);\n }",
"return next().charAt(0);",
"next().charAt(0)",
"next().charAt",
"next()",
"next",
"0",
"static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"static long nextLong() throws IOException {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"static int[] readArray(int n) throws IOException {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }",
"readArray",
"{\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i] = nextInt();\n }",
"{\n a[i] = nextInt();\n }",
"a[i] = nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"static long[] readLongArray(int n) throws IOException {\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextLong();\n }\n return a;\n }",
"readLongArray",
"{\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextLong();\n }\n return a;\n }",
"long[] a = new long[n];",
"a",
"new long[n]",
"n",
"for (int i = 0; i < n; i++) {\n a[i] = nextLong();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i] = nextLong();\n }",
"{\n a[i] = nextLong();\n }",
"a[i] = nextLong()",
"a[i]",
"a",
"i",
"nextLong()",
"nextLong",
"return a;",
"a",
"int n",
"n",
"static String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine().trim());\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine().trim());\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine().trim());\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n st = new StringTokenizer(br.readLine().trim());\n }",
"st = new StringTokenizer(br.readLine().trim())",
"st",
"new StringTokenizer(br.readLine().trim())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"static int Char2Int(Character c) {\n return Character.getNumericValue(c);\n }",
"Char2Int",
"{\n return Character.getNumericValue(c);\n }",
"return Character.getNumericValue(c);",
"Character.getNumericValue(c)",
"Character.getNumericValue",
"Character",
"c",
"Character c",
"c",
"static double Char2Double(Character c) {\n return (double) Char2Int(c);\n }",
"Char2Double",
"{\n return (double) Char2Int(c);\n }",
"return (double) Char2Int(c);",
"(double) Char2Int(c)",
"Char2Int",
"c",
"Character c",
"c",
"static int nCr(int n, int r) {\n return fact(n) / (fact(r) * fact(n - r));\n }",
"nCr",
"{\n return fact(n) / (fact(r) * fact(n - r));\n }",
"return fact(n) / (fact(r) * fact(n - r));",
"fact(n) / (fact(r) * fact(n - r))",
"fact(n)",
"fact",
"n",
"(fact(r) * fact(n - r))",
"fact(r)",
"fact",
"r",
"fact(n - r)",
"fact",
"n - r",
"n",
"r",
"int n",
"n",
"int r",
"r",
"// Returns factorial of n\n static int fact(int n) {\n int res = 1;\n for (int i = 2; i <= n; i++) {\n res = res * i;\n }\n return res;\n }",
"fact",
"{\n int res = 1;\n for (int i = 2; i <= n; i++) {\n res = res * i;\n }\n return res;\n }",
"int res = 1;",
"res",
"1",
"for (int i = 2; i <= n; i++) {\n res = res * i;\n }",
"int i = 2;",
"int i = 2;",
"i",
"2",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n res = res * i;\n }",
"{\n res = res * i;\n }",
"res = res * i",
"res",
"res * i",
"res",
"i",
"return res;",
"res",
"int n",
"n",
"static int gcd(int a, int b) {\n if (b == 0) {\n return a;\n } else {\n a = a % b; // 残り部分\n return gcd(b, a); // 残り部分から最小の正方形を見つける\n }\n }",
"gcd",
"{\n if (b == 0) {\n return a;\n } else {\n a = a % b; // 残り部分\n return gcd(b, a); // 残り部分から最小の正方形を見つける\n }\n }",
"if (b == 0) {\n return a;\n } else {\n a = a % b; // 残り部分\n return gcd(b, a); // 残り部分から最小の正方形を見つける\n }",
"b == 0",
"b",
"0",
"{\n return a;\n }",
"return a;",
"a",
"{\n a = a % b; // 残り部分\n return gcd(b, a); // 残り部分から最小の正方形を見つける\n }",
"a = a % b",
"a",
"a % b",
"a",
"b",
"return gcd(b, a); // 残り部分から最小の正方形を見つける",
"gcd(b, a)",
"gcd",
"b",
"a",
"int a",
"a",
"int b",
"b",
"public class Main {\n static StringTokenizer st;\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n public static void main(String[] args) throws IOException {\n String s = next();\n String t = next();\n\n if (s.equals(t.substring(0, t.length() - 1))) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n\n static char nextChar() throws IOException {\n return next().charAt(0);\n }\n\n static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static int[] readArray(int n) throws IOException {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n static long[] readLongArray(int n) throws IOException {\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextLong();\n }\n return a;\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine().trim());\n }\n return st.nextToken();\n }\n\n static int Char2Int(Character c) {\n return Character.getNumericValue(c);\n }\n\n static double Char2Double(Character c) {\n return (double) Char2Int(c);\n }\n\n static int nCr(int n, int r) {\n return fact(n) / (fact(r) * fact(n - r));\n }\n\n // Returns factorial of n\n static int fact(int n) {\n int res = 1;\n for (int i = 2; i <= n; i++) {\n res = res * i;\n }\n return res;\n }\n\n static int gcd(int a, int b) {\n if (b == 0) {\n return a;\n } else {\n a = a % b; // 残り部分\n return gcd(b, a); // 残り部分から最小の正方形を見つける\n }\n }\n}",
"public class Main {\n static StringTokenizer st;\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n public static void main(String[] args) throws IOException {\n String s = next();\n String t = next();\n\n if (s.equals(t.substring(0, t.length() - 1))) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n\n static char nextChar() throws IOException {\n return next().charAt(0);\n }\n\n static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static int[] readArray(int n) throws IOException {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n static long[] readLongArray(int n) throws IOException {\n long[] a = new long[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextLong();\n }\n return a;\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine().trim());\n }\n return st.nextToken();\n }\n\n static int Char2Int(Character c) {\n return Character.getNumericValue(c);\n }\n\n static double Char2Double(Character c) {\n return (double) Char2Int(c);\n }\n\n static int nCr(int n, int r) {\n return fact(n) / (fact(r) * fact(n - r));\n }\n\n // Returns factorial of n\n static int fact(int n) {\n int res = 1;\n for (int i = 2; i <= n; i++) {\n res = res * i;\n }\n return res;\n }\n\n static int gcd(int a, int b) {\n if (b == 0) {\n return a;\n } else {\n a = a % b; // 残り部分\n return gcd(b, a); // 残り部分から最小の正方形を見つける\n }\n }\n}",
"Main"
] |
import java.util.*;
import java.io.*;
import static java.lang.Math.*;
public class Main {
static StringTokenizer st;
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
public static void main(String[] args) throws IOException {
String s = next();
String t = next();
if (s.equals(t.substring(0, t.length() - 1))) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
static char nextChar() throws IOException {
return next().charAt(0);
}
static int nextInt() throws IOException {
return Integer.parseInt(next());
}
static long nextLong() throws IOException {
return Long.parseLong(next());
}
static double nextDouble() throws IOException {
return Double.parseDouble(next());
}
static int[] readArray(int n) throws IOException {
int[] a = new int[n];
for (int i = 0; i < n; i++) {
a[i] = nextInt();
}
return a;
}
static long[] readLongArray(int n) throws IOException {
long[] a = new long[n];
for (int i = 0; i < n; i++) {
a[i] = nextLong();
}
return a;
}
static String next() throws IOException {
while (st == null || !st.hasMoreTokens()) {
st = new StringTokenizer(br.readLine().trim());
}
return st.nextToken();
}
static int Char2Int(Character c) {
return Character.getNumericValue(c);
}
static double Char2Double(Character c) {
return (double) Char2Int(c);
}
static int nCr(int n, int r) {
return fact(n) / (fact(r) * fact(n - r));
}
// Returns factorial of n
static int fact(int n) {
int res = 1;
for (int i = 2; i <= n; i++) {
res = res * i;
}
return res;
}
static int gcd(int a, int b) {
if (b == 0) {
return a;
} else {
a = a % b; // 残り部分
return gcd(b, a); // 残り部分から最小の正方形を見つける
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
13,
0,
13,
17,
14,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
83,
5
],
[
83,
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
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
35,
45
],
[
45,
46
],
[
46,
47
],
[
35,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
58,
60
],
[
8,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
61,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
6,
80
],
[
80,
81
],
[
0,
82
],
[
82,
83
],
[
82,
84
]
] |
[
"import java.util.*;\npublic class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner s = new Scanner(System.in);\n\t\tString s1 = s.next();\n\t\tString s2 = s.next();\n\t\t\n\t\tchar[] s1c = s1.toCharArray();\n\t\tchar[] s2c = s2.toCharArray();\n\t\t\n\t\tboolean ok = true;\n\t\t\n\t\tfor(int i = 0; i < s1c.length; i++) {\n\t\t\tif(s1c[i] != s2c[i])\n\t\t\t\tok = false;\n\t\t}\n\t\t\n\t\tif(ok) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t\ts.close();\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner s = new Scanner(System.in);\n\t\tString s1 = s.next();\n\t\tString s2 = s.next();\n\t\t\n\t\tchar[] s1c = s1.toCharArray();\n\t\tchar[] s2c = s2.toCharArray();\n\t\t\n\t\tboolean ok = true;\n\t\t\n\t\tfor(int i = 0; i < s1c.length; i++) {\n\t\t\tif(s1c[i] != s2c[i])\n\t\t\t\tok = false;\n\t\t}\n\t\t\n\t\tif(ok) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t\ts.close();\n\t}\n}",
"Main",
"public static void main(String args[]) {\n\t\tScanner s = new Scanner(System.in);\n\t\tString s1 = s.next();\n\t\tString s2 = s.next();\n\t\t\n\t\tchar[] s1c = s1.toCharArray();\n\t\tchar[] s2c = s2.toCharArray();\n\t\t\n\t\tboolean ok = true;\n\t\t\n\t\tfor(int i = 0; i < s1c.length; i++) {\n\t\t\tif(s1c[i] != s2c[i])\n\t\t\t\tok = false;\n\t\t}\n\t\t\n\t\tif(ok) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t\ts.close();\n\t}",
"main",
"{\n\t\tScanner s = new Scanner(System.in);\n\t\tString s1 = s.next();\n\t\tString s2 = s.next();\n\t\t\n\t\tchar[] s1c = s1.toCharArray();\n\t\tchar[] s2c = s2.toCharArray();\n\t\t\n\t\tboolean ok = true;\n\t\t\n\t\tfor(int i = 0; i < s1c.length; i++) {\n\t\t\tif(s1c[i] != s2c[i])\n\t\t\t\tok = false;\n\t\t}\n\t\t\n\t\tif(ok) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t\ts.close();\n\t}",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"String s1 = s.next();",
"s1",
"s.next()",
"s.next",
"s",
"String s2 = s.next();",
"s2",
"s.next()",
"s.next",
"s",
"char[] s1c = s1.toCharArray();",
"s1c",
"s1.toCharArray()",
"s1.toCharArray",
"s1",
"char[] s2c = s2.toCharArray();",
"s2c",
"s2.toCharArray()",
"s2.toCharArray",
"s2",
"boolean ok = true;",
"ok",
"true",
"for(int i = 0; i < s1c.length; i++) {\n\t\t\tif(s1c[i] != s2c[i])\n\t\t\t\tok = false;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s1c.length",
"i",
"s1c.length",
"s1c",
"s1c.length",
"i++",
"i++",
"i",
"{\n\t\t\tif(s1c[i] != s2c[i])\n\t\t\t\tok = false;\n\t\t}",
"{\n\t\t\tif(s1c[i] != s2c[i])\n\t\t\t\tok = false;\n\t\t}",
"if(s1c[i] != s2c[i])\n\t\t\t\tok = false;",
"s1c[i] != s2c[i]",
"s1c[i]",
"s1c",
"i",
"s2c[i]",
"s2c",
"i",
"ok = false",
"ok",
"false",
"if(ok) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"ok",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"s.close()",
"s.close",
"s",
"String args[]",
"args",
"public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner s = new Scanner(System.in);\n\t\tString s1 = s.next();\n\t\tString s2 = s.next();\n\t\t\n\t\tchar[] s1c = s1.toCharArray();\n\t\tchar[] s2c = s2.toCharArray();\n\t\t\n\t\tboolean ok = true;\n\t\t\n\t\tfor(int i = 0; i < s1c.length; i++) {\n\t\t\tif(s1c[i] != s2c[i])\n\t\t\t\tok = false;\n\t\t}\n\t\t\n\t\tif(ok) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t\ts.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner s = new Scanner(System.in);\n\t\tString s1 = s.next();\n\t\tString s2 = s.next();\n\t\t\n\t\tchar[] s1c = s1.toCharArray();\n\t\tchar[] s2c = s2.toCharArray();\n\t\t\n\t\tboolean ok = true;\n\t\t\n\t\tfor(int i = 0; i < s1c.length; i++) {\n\t\t\tif(s1c[i] != s2c[i])\n\t\t\t\tok = false;\n\t\t}\n\t\t\n\t\tif(ok) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t\ts.close();\n\t}\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner s = new Scanner(System.in);
String s1 = s.next();
String s2 = s.next();
char[] s1c = s1.toCharArray();
char[] s2c = s2.toCharArray();
boolean ok = true;
for(int i = 0; i < s1c.length; i++) {
if(s1c[i] != s2c[i])
ok = false;
}
if(ok) {
System.out.println("Yes");
} else {
System.out.println("No");
}
s.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
13,
30,
0,
13,
17,
3,
14,
13,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
82,
8
],
[
82,
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
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
11,
32
],
[
32,
33
],
[
32,
34
],
[
11,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
35,
45
],
[
45,
46
],
[
46,
47
],
[
35,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
11,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
63,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
11,
73
],
[
73,
74
],
[
74,
75
],
[
11,
76
],
[
76,
77
],
[
77,
78
],
[
9,
79
],
[
79,
80
],
[
0,
81
],
[
81,
82
],
[
81,
83
]
] |
[
"import java.util.*;\nimport java.io.*;\npublic class Main\n{\n public static void main(String args[])throws Exception\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n PrintWriter pw=new PrintWriter(System.out);\n /*String str[]=br.readLine().split(\" \");\n int n=Integer.parseInt(str[0]);\n int k=Integer.parseInt(str[1]);\n */\n char carr1[]=br.readLine().toCharArray();\n char carr2[]=br.readLine().toCharArray();\n boolean b=true;\n for(int i=0;i<carr1.length;i++)\n {\n if(carr1[i]!=carr2[i])\n {\n b=false;\n break;\n }\n }\n if(b)\n pw.println(\"Yes\");\n else\n pw.println(\"No\");\n pw.flush();\n pw.close();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main\n{\n public static void main(String args[])throws Exception\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n PrintWriter pw=new PrintWriter(System.out);\n /*String str[]=br.readLine().split(\" \");\n int n=Integer.parseInt(str[0]);\n int k=Integer.parseInt(str[1]);\n */\n char carr1[]=br.readLine().toCharArray();\n char carr2[]=br.readLine().toCharArray();\n boolean b=true;\n for(int i=0;i<carr1.length;i++)\n {\n if(carr1[i]!=carr2[i])\n {\n b=false;\n break;\n }\n }\n if(b)\n pw.println(\"Yes\");\n else\n pw.println(\"No\");\n pw.flush();\n pw.close();\n }\n}",
"Main",
"public static void main(String args[])throws Exception\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n PrintWriter pw=new PrintWriter(System.out);\n /*String str[]=br.readLine().split(\" \");\n int n=Integer.parseInt(str[0]);\n int k=Integer.parseInt(str[1]);\n */\n char carr1[]=br.readLine().toCharArray();\n char carr2[]=br.readLine().toCharArray();\n boolean b=true;\n for(int i=0;i<carr1.length;i++)\n {\n if(carr1[i]!=carr2[i])\n {\n b=false;\n break;\n }\n }\n if(b)\n pw.println(\"Yes\");\n else\n pw.println(\"No\");\n pw.flush();\n pw.close();\n }",
"main",
"{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n PrintWriter pw=new PrintWriter(System.out);\n /*String str[]=br.readLine().split(\" \");\n int n=Integer.parseInt(str[0]);\n int k=Integer.parseInt(str[1]);\n */\n char carr1[]=br.readLine().toCharArray();\n char carr2[]=br.readLine().toCharArray();\n boolean b=true;\n for(int i=0;i<carr1.length;i++)\n {\n if(carr1[i]!=carr2[i])\n {\n b=false;\n break;\n }\n }\n if(b)\n pw.println(\"Yes\");\n else\n pw.println(\"No\");\n pw.flush();\n pw.close();\n }",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"PrintWriter pw=new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"char carr1[]=br.readLine().toCharArray();",
"carr1",
"br.readLine().toCharArray()",
"br.readLine().toCharArray",
"br.readLine()",
"br.readLine",
"br",
"char carr2[]=br.readLine().toCharArray();",
"carr2",
"br.readLine().toCharArray()",
"br.readLine().toCharArray",
"br.readLine()",
"br.readLine",
"br",
"boolean b=true;",
"b",
"true",
"for(int i=0;i<carr1.length;i++)\n {\n if(carr1[i]!=carr2[i])\n {\n b=false;\n break;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<carr1.length",
"i",
"carr1.length",
"carr1",
"carr1.length",
"i++",
"i++",
"i",
"{\n if(carr1[i]!=carr2[i])\n {\n b=false;\n break;\n }\n }",
"{\n if(carr1[i]!=carr2[i])\n {\n b=false;\n break;\n }\n }",
"if(carr1[i]!=carr2[i])\n {\n b=false;\n break;\n }",
"carr1[i]!=carr2[i]",
"carr1[i]",
"carr1",
"i",
"carr2[i]",
"carr2",
"i",
"{\n b=false;\n break;\n }",
"b=false",
"b",
"false",
"break;",
"if(b)\n pw.println(\"Yes\");\n else\n pw.println(\"No\");",
"b",
"pw.println(\"Yes\")",
"pw.println",
"pw",
"\"Yes\"",
"pw.println(\"No\")",
"pw.println",
"pw",
"\"No\"",
"pw.flush()",
"pw.flush",
"pw",
"pw.close()",
"pw.close",
"pw",
"String args[]",
"args",
"public class Main\n{\n public static void main(String args[])throws Exception\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n PrintWriter pw=new PrintWriter(System.out);\n /*String str[]=br.readLine().split(\" \");\n int n=Integer.parseInt(str[0]);\n int k=Integer.parseInt(str[1]);\n */\n char carr1[]=br.readLine().toCharArray();\n char carr2[]=br.readLine().toCharArray();\n boolean b=true;\n for(int i=0;i<carr1.length;i++)\n {\n if(carr1[i]!=carr2[i])\n {\n b=false;\n break;\n }\n }\n if(b)\n pw.println(\"Yes\");\n else\n pw.println(\"No\");\n pw.flush();\n pw.close();\n }\n}",
"public class Main\n{\n public static void main(String args[])throws Exception\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n PrintWriter pw=new PrintWriter(System.out);\n /*String str[]=br.readLine().split(\" \");\n int n=Integer.parseInt(str[0]);\n int k=Integer.parseInt(str[1]);\n */\n char carr1[]=br.readLine().toCharArray();\n char carr2[]=br.readLine().toCharArray();\n boolean b=true;\n for(int i=0;i<carr1.length;i++)\n {\n if(carr1[i]!=carr2[i])\n {\n b=false;\n break;\n }\n }\n if(b)\n pw.println(\"Yes\");\n else\n pw.println(\"No\");\n pw.flush();\n pw.close();\n }\n}",
"Main"
] |
import java.util.*;
import java.io.*;
public class Main
{
public static void main(String args[])throws Exception
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
PrintWriter pw=new PrintWriter(System.out);
/*String str[]=br.readLine().split(" ");
int n=Integer.parseInt(str[0]);
int k=Integer.parseInt(str[1]);
*/
char carr1[]=br.readLine().toCharArray();
char carr2[]=br.readLine().toCharArray();
boolean b=true;
for(int i=0;i<carr1.length;i++)
{
if(carr1[i]!=carr2[i])
{
b=false;
break;
}
}
if(b)
pw.println("Yes");
else
pw.println("No");
pw.flush();
pw.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
18,
13,
13,
17,
1,
40,
13,
30,
30,
0,
13,
18,
13,
13,
14,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
74,
5
],
[
74,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
30,
42
],
[
42,
43
],
[
43,
44
],
[
30,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
52,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
52,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
6,
71
],
[
71,
72
],
[
0,
73
],
[
73,
74
],
[
73,
75
]
] |
[
"import java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String s = in.next();\n String s2 = in.next();\n char[] arr = s2.toCharArray();\n String res = \"\";\n for (int i = 0; i < arr.length - 1; i++) {\n res += arr[i];\n }\n if (s.equals(res)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String s = in.next();\n String s2 = in.next();\n char[] arr = s2.toCharArray();\n String res = \"\";\n for (int i = 0; i < arr.length - 1; i++) {\n res += arr[i];\n }\n if (s.equals(res)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String s = in.next();\n String s2 = in.next();\n char[] arr = s2.toCharArray();\n String res = \"\";\n for (int i = 0; i < arr.length - 1; i++) {\n res += arr[i];\n }\n if (s.equals(res)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n String s = in.next();\n String s2 = in.next();\n char[] arr = s2.toCharArray();\n String res = \"\";\n for (int i = 0; i < arr.length - 1; i++) {\n res += arr[i];\n }\n if (s.equals(res)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"String s = in.next();",
"s",
"in.next()",
"in.next",
"in",
"String s2 = in.next();",
"s2",
"in.next()",
"in.next",
"in",
"char[] arr = s2.toCharArray();",
"arr",
"s2.toCharArray()",
"s2.toCharArray",
"s2",
"String res = \"\";",
"res",
"\"\"",
"for (int i = 0; i < arr.length - 1; i++) {\n res += arr[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < arr.length - 1",
"i",
"arr.length - 1",
"arr.length",
"arr",
"arr.length",
"1",
"i++",
"i++",
"i",
"{\n res += arr[i];\n }",
"{\n res += arr[i];\n }",
"res += arr[i]",
"res",
"arr[i]",
"arr",
"i",
"if (s.equals(res)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"s.equals(res)",
"s.equals",
"s",
"res",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String s = in.next();\n String s2 = in.next();\n char[] arr = s2.toCharArray();\n String res = \"\";\n for (int i = 0; i < arr.length - 1; i++) {\n res += arr[i];\n }\n if (s.equals(res)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String s = in.next();\n String s2 = in.next();\n char[] arr = s2.toCharArray();\n String res = \"\";\n for (int i = 0; i < arr.length - 1; i++) {\n res += arr[i];\n }\n if (s.equals(res)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String s = in.next();
String s2 = in.next();
char[] arr = s2.toCharArray();
String res = "";
for (int i = 0; i < arr.length - 1; i++) {
res += arr[i];
}
if (s.equals(res)) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
0,
13,
4,
18,
4,
18,
13,
17,
41,
13,
20,
17,
0,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
40,
4,
18,
18,
13,
13,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
3,
30,
14,
2,
13,
2,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
27,
32
],
[
17,
33
],
[
33,
34
],
[
33,
35
],
[
17,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
39,
44
],
[
17,
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
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
60,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
70,
77
],
[
60,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
79,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
15,
94
],
[
94,
95
]
] |
[
"import java.util.*;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.math.*;\nclass Main{\n public static void main(String[]args){\n Scanner scanner = new Scanner(System.in);\n String[] S = new String[11]; S = scanner.nextLine().split(\"\");\n String[] T = new String[11]; T = scanner.nextLine().split(\"\");\n for(int i=0;i<S.length;i++){\n if(!(S[i].equals(T[i]))){\n System.out.println(\"No\");\n break;\n }\n else{\n if(i==S.length-1){\n System.out.println(\"Yes\");\n }\n }\n }\n }\n\n}",
"import java.util.*;",
"util.*",
"java",
"import java.util.List;",
"List",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.math.*;",
"math.*",
"java",
"class Main{\n public static void main(String[]args){\n Scanner scanner = new Scanner(System.in);\n String[] S = new String[11]; S = scanner.nextLine().split(\"\");\n String[] T = new String[11]; T = scanner.nextLine().split(\"\");\n for(int i=0;i<S.length;i++){\n if(!(S[i].equals(T[i]))){\n System.out.println(\"No\");\n break;\n }\n else{\n if(i==S.length-1){\n System.out.println(\"Yes\");\n }\n }\n }\n }\n\n}",
"Main",
"public static void main(String[]args){\n Scanner scanner = new Scanner(System.in);\n String[] S = new String[11]; S = scanner.nextLine().split(\"\");\n String[] T = new String[11]; T = scanner.nextLine().split(\"\");\n for(int i=0;i<S.length;i++){\n if(!(S[i].equals(T[i]))){\n System.out.println(\"No\");\n break;\n }\n else{\n if(i==S.length-1){\n System.out.println(\"Yes\");\n }\n }\n }\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n String[] S = new String[11]; S = scanner.nextLine().split(\"\");\n String[] T = new String[11]; T = scanner.nextLine().split(\"\");\n for(int i=0;i<S.length;i++){\n if(!(S[i].equals(T[i]))){\n System.out.println(\"No\");\n break;\n }\n else{\n if(i==S.length-1){\n System.out.println(\"Yes\");\n }\n }\n }\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"String[] S = new String[11];",
"S",
"new String[11]",
"11",
"S = scanner.nextLine().split(\"\")",
"S",
"scanner.nextLine().split(\"\")",
"scanner.nextLine().split",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"\"\"",
"String[] T = new String[11];",
"T",
"new String[11]",
"11",
"T = scanner.nextLine().split(\"\")",
"T",
"scanner.nextLine().split(\"\")",
"scanner.nextLine().split",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"\"\"",
"for(int i=0;i<S.length;i++){\n if(!(S[i].equals(T[i]))){\n System.out.println(\"No\");\n break;\n }\n else{\n if(i==S.length-1){\n System.out.println(\"Yes\");\n }\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<S.length",
"i",
"S.length",
"S",
"S.length",
"i++",
"i++",
"i",
"{\n if(!(S[i].equals(T[i]))){\n System.out.println(\"No\");\n break;\n }\n else{\n if(i==S.length-1){\n System.out.println(\"Yes\");\n }\n }\n }",
"{\n if(!(S[i].equals(T[i]))){\n System.out.println(\"No\");\n break;\n }\n else{\n if(i==S.length-1){\n System.out.println(\"Yes\");\n }\n }\n }",
"if(!(S[i].equals(T[i]))){\n System.out.println(\"No\");\n break;\n }\n else{\n if(i==S.length-1){\n System.out.println(\"Yes\");\n }\n }",
"!(S[i].equals(T[i]))",
"(S[i].equals(T[i]))",
"S[i].equals",
"S[i]",
"S",
"i",
"T[i]",
"T",
"i",
"{\n System.out.println(\"No\");\n break;\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"break;",
"{\n if(i==S.length-1){\n System.out.println(\"Yes\");\n }\n }",
"if(i==S.length-1){\n System.out.println(\"Yes\");\n }",
"i==S.length-1",
"i",
"S.length-1",
"S.length",
"S",
"S.length",
"1",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"String[]args",
"args"
] |
import java.util.*;
import java.util.List;
import java.util.ArrayList;
import java.math.*;
class Main{
public static void main(String[]args){
Scanner scanner = new Scanner(System.in);
String[] S = new String[11]; S = scanner.nextLine().split("");
String[] T = new String[11]; T = scanner.nextLine().split("");
for(int i=0;i<S.length;i++){
if(!(S[i].equals(T[i]))){
System.out.println("No");
break;
}
else{
if(i==S.length-1){
System.out.println("Yes");
}
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
14,
2,
4,
18,
13,
13,
2,
4,
18,
13,
4,
18,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
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
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
28,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
34,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
39,
43
],
[
43,
44
],
[
44,
45
],
[
33,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
33,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
6,
60
],
[
60,
61
],
[
0,
62
],
[
62,
63
],
[
62,
64
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scr =new Scanner(System.in);\n\t\n\t\tString in = scr.next();\n\t\tString out = scr.next();\n\t\t\n\t\tString a = out.substring(0,out.length()-1);\n\t\n\t\tif(in.equals(a)&&in.length() != out.length()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\t\n\t\t}\n\t\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scr =new Scanner(System.in);\n\t\n\t\tString in = scr.next();\n\t\tString out = scr.next();\n\t\t\n\t\tString a = out.substring(0,out.length()-1);\n\t\n\t\tif(in.equals(a)&&in.length() != out.length()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\t\n\t\t}\n\t\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scr =new Scanner(System.in);\n\t\n\t\tString in = scr.next();\n\t\tString out = scr.next();\n\t\t\n\t\tString a = out.substring(0,out.length()-1);\n\t\n\t\tif(in.equals(a)&&in.length() != out.length()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\t\n\t\t}\n\t\n\t}",
"main",
"{\n\t\tScanner scr =new Scanner(System.in);\n\t\n\t\tString in = scr.next();\n\t\tString out = scr.next();\n\t\t\n\t\tString a = out.substring(0,out.length()-1);\n\t\n\t\tif(in.equals(a)&&in.length() != out.length()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\t\n\t\t}\n\t\n\t}",
"Scanner scr =new Scanner(System.in);",
"scr",
"new Scanner(System.in)",
"String in = scr.next();",
"in",
"scr.next()",
"scr.next",
"scr",
"String out = scr.next();",
"out",
"scr.next()",
"scr.next",
"scr",
"String a = out.substring(0,out.length()-1);",
"a",
"out.substring(0,out.length()-1)",
"out.substring",
"out",
"0",
"out.length()-1",
"out.length()",
"out.length",
"out",
"1",
"if(in.equals(a)&&in.length() != out.length()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\t\n\t\t}",
"in.equals(a)&&in.length() != out.length()",
"in.equals(a)",
"in.equals",
"in",
"a",
"in.length() != out.length()",
"in.length()",
"in.length",
"in",
"out.length()",
"out.length",
"out",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\t\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scr =new Scanner(System.in);\n\t\n\t\tString in = scr.next();\n\t\tString out = scr.next();\n\t\t\n\t\tString a = out.substring(0,out.length()-1);\n\t\n\t\tif(in.equals(a)&&in.length() != out.length()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\t\n\t\t}\n\t\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scr =new Scanner(System.in);\n\t\n\t\tString in = scr.next();\n\t\tString out = scr.next();\n\t\t\n\t\tString a = out.substring(0,out.length()-1);\n\t\n\t\tif(in.equals(a)&&in.length() != out.length()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\t\n\t\t}\n\t\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scr =new Scanner(System.in);
String in = scr.next();
String out = scr.next();
String a = out.substring(0,out.length()-1);
if(in.equals(a)&&in.length() != out.length()) {
System.out.println("Yes");
}else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
4,
18,
13,
13,
4,
18,
13,
2,
4,
18,
13,
17,
14,
4,
18,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
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
],
[
26,
27
],
[
25,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
32,
36
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
38,
43
],
[
37,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
37,
51
],
[
51,
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 public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String t = sc.next();\n\n StringBuilder sb = new StringBuilder();\n sb.append(t);\n sb.setLength(t.length() - 1);\n\n if(sb.toString().equals(s)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String t = sc.next();\n\n StringBuilder sb = new StringBuilder();\n sb.append(t);\n sb.setLength(t.length() - 1);\n\n if(sb.toString().equals(s)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String t = sc.next();\n\n StringBuilder sb = new StringBuilder();\n sb.append(t);\n sb.setLength(t.length() - 1);\n\n if(sb.toString().equals(s)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String t = sc.next();\n\n StringBuilder sb = new StringBuilder();\n sb.append(t);\n sb.setLength(t.length() - 1);\n\n if(sb.toString().equals(s)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String t = sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"sb.append(t)",
"sb.append",
"sb",
"t",
"sb.setLength(t.length() - 1)",
"sb.setLength",
"sb",
"t.length() - 1",
"t.length()",
"t.length",
"t",
"1",
"if(sb.toString().equals(s)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"sb.toString().equals(s)",
"sb.toString().equals",
"sb.toString()",
"sb.toString",
"sb",
"s",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String args[]",
"args",
"public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String t = sc.next();\n\n StringBuilder sb = new StringBuilder();\n sb.append(t);\n sb.setLength(t.length() - 1);\n\n if(sb.toString().equals(s)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"public class Main {\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String t = sc.next();\n\n StringBuilder sb = new StringBuilder();\n sb.append(t);\n sb.setLength(t.length() - 1);\n\n if(sb.toString().equals(s)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
String s = sc.next();
String t = sc.next();
StringBuilder sb = new StringBuilder();
sb.append(t);
sb.setLength(t.length() - 1);
if(sb.toString().equals(s)){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
65,
5
],
[
65,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
29,
37
],
[
28,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
27,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
27,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
6,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.next();\n int len_s = s.length();\n if(t.length() - s.length() == 1 && s.equals(t.substring(0, s.length()))){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.next();\n int len_s = s.length();\n if(t.length() - s.length() == 1 && s.equals(t.substring(0, s.length()))){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.next();\n int len_s = s.length();\n if(t.length() - s.length() == 1 && s.equals(t.substring(0, s.length()))){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.next();\n int len_s = s.length();\n if(t.length() - s.length() == 1 && s.equals(t.substring(0, s.length()))){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String t = sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"int len_s = s.length();",
"len_s",
"s.length()",
"s.length",
"s",
"if(t.length() - s.length() == 1 && s.equals(t.substring(0, s.length()))){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"t.length() - s.length() == 1 && s.equals(t.substring(0, s.length()))",
"t.length() - s.length() == 1",
"t.length() - s.length()",
"t.length()",
"t.length",
"t",
"s.length()",
"s.length",
"s",
"1",
"s.equals(t.substring(0, s.length()))",
"s.equals",
"s",
"t.substring(0, s.length())",
"t.substring",
"t",
"0",
"s.length()",
"s.length",
"s",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.next();\n int len_s = s.length();\n if(t.length() - s.length() == 1 && s.equals(t.substring(0, s.length()))){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.next();\n int len_s = s.length();\n if(t.length() - s.length() == 1 && s.equals(t.substring(0, s.length()))){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.next();
String t = sc.next();
int len_s = s.length();
if(t.length() - s.length() == 1 && s.equals(t.substring(0, s.length()))){
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
4,
18,
18,
13,
13,
8,
4,
18,
13,
13,
17,
17,
23,
13,
6,
13,
41,
13,
18,
13,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
14,
2,
13,
13,
30,
29,
17,
30,
0,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
29,
17,
29,
17,
12,
13,
30,
14,
4,
13,
29,
18,
13,
40,
13,
29,
40,
17,
12,
13,
30,
29,
2,
2,
17,
13,
2,
13,
17,
23,
13,
12,
13,
30,
42,
2,
4,
13,
40,
4,
13,
18,
13,
13,
40,
13,
29,
4,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
20,
41,
13,
4,
13,
42,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
17,
41,
13,
17,
41,
13,
4,
13,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
14,
2,
2,
13,
17,
2,
17,
13,
30,
37,
20,
42,
17,
30,
14,
2,
2,
17,
13,
2,
13,
17,
30,
0,
13,
17,
0,
13,
2,
13,
17,
14,
2,
2,
13,
40,
17,
40,
4,
13,
13,
30,
29,
8,
13,
40,
13,
13,
30,
37,
20,
0,
13,
4,
13,
12,
13,
30,
41,
13,
4,
13,
14,
2,
2,
13,
18,
13,
13,
2,
13,
18,
13,
13,
37,
20,
29,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
304,
11
],
[
304,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
34,
38
],
[
14,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
44,
49
],
[
44,
50
],
[
12,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
53,
60
],
[
60,
61
],
[
60,
62
],
[
53,
64
],
[
64,
65
],
[
64,
66
],
[
53,
67
],
[
67,
68
],
[
67,
69
],
[
53,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
78,
79
],
[
73,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
84,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
80,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
103,
104
],
[
72,
105
],
[
105,
106
],
[
53,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
110,
118
],
[
118,
119
],
[
119,
120
],
[
53,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
129,
130
],
[
129,
131
],
[
121,
132
],
[
132,
133
],
[
53,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
138,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
144,
146
],
[
137,
147
],
[
147,
148
],
[
136,
149
],
[
149,
150
],
[
150,
151
],
[
53,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
155,
159
],
[
159,
160
],
[
154,
161
],
[
161,
162
],
[
161,
163
],
[
154,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
154,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
173,
176
],
[
172,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
154,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
53,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
188,
192
],
[
192,
193
],
[
187,
194
],
[
194,
195
],
[
194,
196
],
[
187,
197
],
[
197,
198
],
[
197,
199
],
[
187,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
187,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
204,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
187,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
218,
220
],
[
217,
221
],
[
221,
222
],
[
221,
223
],
[
216,
224
],
[
224,
225
],
[
225,
226
],
[
187,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
231,
235
],
[
235,
236
],
[
235,
237
],
[
230,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
238,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
244,
246
],
[
230,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
251,
252
],
[
248,
253
],
[
253,
254
],
[
254,
255
],
[
254,
256
],
[
247,
257
],
[
257,
258
],
[
258,
259
],
[
259,
260
],
[
259,
261
],
[
261,
262
],
[
259,
263
],
[
247,
264
],
[
264,
265
],
[
265,
266
],
[
229,
267
],
[
267,
268
],
[
267,
269
],
[
269,
270
],
[
53,
271
],
[
271,
272
],
[
271,
273
],
[
273,
274
],
[
274,
275
],
[
274,
276
],
[
276,
277
],
[
273,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
280,
282
],
[
282,
283
],
[
282,
284
],
[
279,
285
],
[
285,
286
],
[
285,
287
],
[
287,
288
],
[
287,
289
],
[
278,
290
],
[
290,
291
],
[
273,
292
],
[
292,
293
],
[
53,
294
],
[
294,
295
],
[
294,
296
],
[
296,
297
],
[
297,
298
],
[
298,
299
],
[
299,
300
],
[
298,
301
],
[
301,
302
],
[
0,
303
],
[
303,
304
],
[
303,
305
]
] |
[
"import java.io.IOException;\nimport java.io.InputStream;\nimport java.util.NoSuchElementException;\n\npublic class Main {\n\n\tpublic static void main(String[] args){\n\t\tFastScanner sc = new FastScanner();\n\t\tString a = sc.next();\n\t\tString b = sc.next();\n\n\t\tb = b.substring(0,b.length() - 1);\n\n\t\tSystem.out.println(a.equals(b) ? \"Yes\" : \"No\");\n\t}\n}\n\nclass FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n public double nextDouble() { return Double.parseDouble(next());}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.util.NoSuchElementException;",
"NoSuchElementException",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args){\n\t\tFastScanner sc = new FastScanner();\n\t\tString a = sc.next();\n\t\tString b = sc.next();\n\n\t\tb = b.substring(0,b.length() - 1);\n\n\t\tSystem.out.println(a.equals(b) ? \"Yes\" : \"No\");\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tFastScanner sc = new FastScanner();\n\t\tString a = sc.next();\n\t\tString b = sc.next();\n\n\t\tb = b.substring(0,b.length() - 1);\n\n\t\tSystem.out.println(a.equals(b) ? \"Yes\" : \"No\");\n\t}",
"main",
"{\n\t\tFastScanner sc = new FastScanner();\n\t\tString a = sc.next();\n\t\tString b = sc.next();\n\n\t\tb = b.substring(0,b.length() - 1);\n\n\t\tSystem.out.println(a.equals(b) ? \"Yes\" : \"No\");\n\t}",
"FastScanner sc = new FastScanner();",
"sc",
"new FastScanner()",
"String a = sc.next();",
"a",
"sc.next()",
"sc.next",
"sc",
"String b = sc.next();",
"b",
"sc.next()",
"sc.next",
"sc",
"b = b.substring(0,b.length() - 1)",
"b",
"b.substring(0,b.length() - 1)",
"b.substring",
"b",
"0",
"b.length() - 1",
"b.length()",
"b.length",
"b",
"1",
"System.out.println(a.equals(b) ? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"a.equals(b) ? \"Yes\" : \"No\"",
"a.equals(b)",
"a.equals",
"a",
"b",
"\"Yes\"",
"\"No\"",
"String[] args",
"args",
"class FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}\n private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}\n public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}\n public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n public long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n public double nextDouble() { return Double.parseDouble(next());}\n}",
"FastScanner",
"private final InputStream in = System.in;",
"in",
"System.in",
"System",
"System.in",
"private final byte[] buffer = new byte[1024];",
"buffer",
"new byte[1024]",
"1024",
"private int ptr = 0;",
"ptr",
"0",
"private int buflen = 0;",
"buflen",
"0",
"private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }",
"hasNextByte",
"{\n if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }",
"if (ptr < buflen) {\n return true;\n }else{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }",
"ptr < buflen",
"ptr",
"buflen",
"{\n return true;\n }",
"return true;",
"true",
"{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }",
"ptr = 0",
"ptr",
"0",
"try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n buflen = in.read(buffer);\n }",
"buflen = in.read(buffer)",
"buflen",
"in.read(buffer)",
"in.read",
"in",
"buffer",
"if (buflen <= 0) {\n return false;\n }",
"buflen <= 0",
"buflen",
"0",
"{\n return false;\n }",
"return false;",
"false",
"return true;",
"true",
"private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}",
"readByte",
"{ if (hasNextByte()) return buffer[ptr++]; else return -1;}",
"if (hasNextByte()) return buffer[ptr++]; else return -1;",
"hasNextByte()",
"hasNextByte",
"return buffer[ptr++];",
"buffer[ptr++]",
"buffer",
"ptr++",
"ptr",
"return -1;",
"-1",
"1",
"private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}",
"isPrintableChar",
"{ return 33 <= c && c <= 126;}",
"return 33 <= c && c <= 126;",
"33 <= c && c <= 126",
"33 <= c",
"33",
"c",
"c <= 126",
"c",
"126",
"int c",
"c",
"public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}",
"hasNext",
"{ while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}",
"while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;",
"hasNextByte() && !isPrintableChar(buffer[ptr])",
"hasNextByte()",
"hasNextByte",
"!isPrintableChar(buffer[ptr])",
"isPrintableChar(buffer[ptr])",
"isPrintableChar",
"buffer[ptr]",
"buffer",
"ptr",
"ptr++",
"ptr",
"return hasNextByte();",
"hasNextByte()",
"hasNextByte",
"public String next() {\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }",
"next",
"{\n if (!hasNext()) throw new NoSuchElementException();\n StringBuilder sb = new StringBuilder();\n int b = readByte();\n while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }",
"if (!hasNext()) throw new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"while(isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n sb.appendCodePoint(b);\n b = readByte();\n }",
"sb.appendCodePoint(b)",
"sb.appendCodePoint",
"sb",
"b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }",
"nextLong",
"{\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }",
"if (!hasNext()) throw new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"long n = 0;",
"n",
"0",
"boolean minus = false;",
"minus",
"false",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"if (b == '-') {\n minus = true;\n b = readByte();\n }",
"b == '-'",
"b",
"'-'",
"{\n minus = true;\n b = readByte();\n }",
"minus = true",
"minus",
"true",
"b = readByte()",
"b",
"readByte()",
"readByte",
"if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }",
"b < '0' || '9' < b",
"b < '0'",
"b",
"'0'",
"'9' < b",
"'9'",
"b",
"{\n throw new NumberFormatException();\n }",
"throw new NumberFormatException();",
"new NumberFormatException()",
"while(true){\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }",
"true",
"{\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }\n b = readByte();\n }",
"if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n }else if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }",
"'0' <= b && b <= '9'",
"'0' <= b",
"'0'",
"b",
"b <= '9'",
"b",
"'9'",
"{\n n *= 10;\n n += b - '0';\n }",
"n *= 10",
"n",
"10",
"n += b - '0'",
"n",
"b - '0'",
"b",
"'0'",
"if(b == -1 || !isPrintableChar(b)){\n return minus ? -n : n;\n }else{\n throw new NumberFormatException();\n }",
"b == -1 || !isPrintableChar(b)",
"b == -1",
"b",
"-1",
"1",
"!isPrintableChar(b)",
"isPrintableChar(b)",
"isPrintableChar",
"b",
"{\n return minus ? -n : n;\n }",
"return minus ? -n : n;",
"minus ? -n : n",
"minus",
"-n",
"n",
"n",
"{\n throw new NumberFormatException();\n }",
"throw new NumberFormatException();",
"new NumberFormatException()",
"b = readByte()",
"b",
"readByte()",
"readByte",
"public int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }",
"nextInt",
"{\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }",
"long nl = nextLong();",
"nl",
"nextLong()",
"nextLong",
"if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();",
"nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE",
"nl < Integer.MIN_VALUE",
"nl",
"Integer.MIN_VALUE",
"Integer",
"Integer.MIN_VALUE",
"nl > Integer.MAX_VALUE",
"nl",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"throw new NumberFormatException();",
"new NumberFormatException()",
"return (int) nl;",
"(int) nl",
"public double nextDouble() { return Double.parseDouble(next());}",
"nextDouble",
"{ return Double.parseDouble(next());}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public class Main {\n\n\tpublic static void main(String[] args){\n\t\tFastScanner sc = new FastScanner();\n\t\tString a = sc.next();\n\t\tString b = sc.next();\n\n\t\tb = b.substring(0,b.length() - 1);\n\n\t\tSystem.out.println(a.equals(b) ? \"Yes\" : \"No\");\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args){\n\t\tFastScanner sc = new FastScanner();\n\t\tString a = sc.next();\n\t\tString b = sc.next();\n\n\t\tb = b.substring(0,b.length() - 1);\n\n\t\tSystem.out.println(a.equals(b) ? \"Yes\" : \"No\");\n\t}\n}",
"Main"
] |
import java.io.IOException;
import java.io.InputStream;
import java.util.NoSuchElementException;
public class Main {
public static void main(String[] args){
FastScanner sc = new FastScanner();
String a = sc.next();
String b = sc.next();
b = b.substring(0,b.length() - 1);
System.out.println(a.equals(b) ? "Yes" : "No");
}
}
class FastScanner {
private final InputStream in = System.in;
private final byte[] buffer = new byte[1024];
private int ptr = 0;
private int buflen = 0;
private boolean hasNextByte() {
if (ptr < buflen) {
return true;
}else{
ptr = 0;
try {
buflen = in.read(buffer);
} catch (IOException e) {
e.printStackTrace();
}
if (buflen <= 0) {
return false;
}
}
return true;
}
private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}
public String next() {
if (!hasNext()) throw new NoSuchElementException();
StringBuilder sb = new StringBuilder();
int b = readByte();
while(isPrintableChar(b)) {
sb.appendCodePoint(b);
b = readByte();
}
return sb.toString();
}
public long nextLong() {
if (!hasNext()) throw new NoSuchElementException();
long n = 0;
boolean minus = false;
int b = readByte();
if (b == '-') {
minus = true;
b = readByte();
}
if (b < '0' || '9' < b) {
throw new NumberFormatException();
}
while(true){
if ('0' <= b && b <= '9') {
n *= 10;
n += b - '0';
}else if(b == -1 || !isPrintableChar(b)){
return minus ? -n : n;
}else{
throw new NumberFormatException();
}
b = readByte();
}
}
public int nextInt() {
long nl = nextLong();
if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
return (int) nl;
}
public double nextDouble() { return Double.parseDouble(next());}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
14,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
55,
5
],
[
55,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
28,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
33,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
33,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
6,
52
],
[
52,
53
],
[
0,
54
],
[
54,
55
],
[
54,
56
]
] |
[
"import java.util.*;\n \npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String S = sc.nextLine();\n String T = sc.nextLine();\n String t = T.substring(0, T.length()-1);\n\n if(S.equals(t)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String S = sc.nextLine();\n String T = sc.nextLine();\n String t = T.substring(0, T.length()-1);\n\n if(S.equals(t)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String S = sc.nextLine();\n String T = sc.nextLine();\n String t = T.substring(0, T.length()-1);\n\n if(S.equals(t)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String S = sc.nextLine();\n String T = sc.nextLine();\n String t = T.substring(0, T.length()-1);\n\n if(S.equals(t)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String S = sc.nextLine();",
"S",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String T = sc.nextLine();",
"T",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String t = T.substring(0, T.length()-1);",
"t",
"T.substring(0, T.length()-1)",
"T.substring",
"T",
"0",
"T.length()-1",
"T.length()",
"T.length",
"T",
"1",
"if(S.equals(t)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"S.equals(t)",
"S.equals",
"S",
"t",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String S = sc.nextLine();\n String T = sc.nextLine();\n String t = T.substring(0, T.length()-1);\n\n if(S.equals(t)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String S = sc.nextLine();\n String T = sc.nextLine();\n String t = T.substring(0, T.length()-1);\n\n if(S.equals(t)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String S = sc.nextLine();
String T = sc.nextLine();
String t = T.substring(0, T.length()-1);
if(S.equals(t)){
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
2,
4,
18,
13,
17,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
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
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
23,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
28,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
22,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
22,
44
],
[
44,
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 scanner = new Scanner(System.in);\n String S = scanner.next();\n String T = scanner.next();\n \n if(T.contains(S) && S.charAt(0)==T.charAt(0)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args){\n \n Scanner scanner = new Scanner(System.in);\n String S = scanner.next();\n String T = scanner.next();\n \n if(T.contains(S) && S.charAt(0)==T.charAt(0)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n }\n}",
"Main",
"public static void main(String[] args){\n \n Scanner scanner = new Scanner(System.in);\n String S = scanner.next();\n String T = scanner.next();\n \n if(T.contains(S) && S.charAt(0)==T.charAt(0)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n }",
"main",
"{\n \n Scanner scanner = new Scanner(System.in);\n String S = scanner.next();\n String T = scanner.next();\n \n if(T.contains(S) && S.charAt(0)==T.charAt(0)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"String S = scanner.next();",
"S",
"scanner.next()",
"scanner.next",
"scanner",
"String T = scanner.next();",
"T",
"scanner.next()",
"scanner.next",
"scanner",
"if(T.contains(S) && S.charAt(0)==T.charAt(0)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"T.contains(S) && S.charAt(0)==T.charAt(0)",
"T.contains(S)",
"T.contains",
"T",
"S",
"S.charAt(0)==T.charAt(0)",
"S.charAt(0)",
"S.charAt",
"S",
"0",
"T.charAt(0)",
"T.charAt",
"T",
"0",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n \n Scanner scanner = new Scanner(System.in);\n String S = scanner.next();\n String T = scanner.next();\n \n if(T.contains(S) && S.charAt(0)==T.charAt(0)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args){\n \n Scanner scanner = new Scanner(System.in);\n String S = scanner.next();\n String T = scanner.next();\n \n if(T.contains(S) && S.charAt(0)==T.charAt(0)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
String S = scanner.next();
String T = scanner.next();
if(T.contains(S) && S.charAt(0)==T.charAt(0)){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
0,
13,
17,
4,
18,
18,
13,
13,
8,
13,
17,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
65,
5
],
[
65,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
25,
35
],
[
35,
36
],
[
36,
37
],
[
25,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
41,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
40,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
58,
61
],
[
6,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
]
] |
[
"import java.util.*;\npublic class Main{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner in=new Scanner(System.in);\n\t\tString s=in.nextLine();\n\t\tString t=in.nextLine();\n\t\tboolean flag=true;\n\t\tfor(int i=0;i<s.length();i++)\n\t\t{\n\t\t\tif(s.charAt(i)!=t.charAt(i))\n\t\t\t\tflag=false;\n\t\t}\n\t\tSystem.out.println((flag?(\"Yes\"):(\"No\")));\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner in=new Scanner(System.in);\n\t\tString s=in.nextLine();\n\t\tString t=in.nextLine();\n\t\tboolean flag=true;\n\t\tfor(int i=0;i<s.length();i++)\n\t\t{\n\t\t\tif(s.charAt(i)!=t.charAt(i))\n\t\t\t\tflag=false;\n\t\t}\n\t\tSystem.out.println((flag?(\"Yes\"):(\"No\")));\n\t}\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\tScanner in=new Scanner(System.in);\n\t\tString s=in.nextLine();\n\t\tString t=in.nextLine();\n\t\tboolean flag=true;\n\t\tfor(int i=0;i<s.length();i++)\n\t\t{\n\t\t\tif(s.charAt(i)!=t.charAt(i))\n\t\t\t\tflag=false;\n\t\t}\n\t\tSystem.out.println((flag?(\"Yes\"):(\"No\")));\n\t}",
"main",
"{\n\t\tScanner in=new Scanner(System.in);\n\t\tString s=in.nextLine();\n\t\tString t=in.nextLine();\n\t\tboolean flag=true;\n\t\tfor(int i=0;i<s.length();i++)\n\t\t{\n\t\t\tif(s.charAt(i)!=t.charAt(i))\n\t\t\t\tflag=false;\n\t\t}\n\t\tSystem.out.println((flag?(\"Yes\"):(\"No\")));\n\t}",
"Scanner in=new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"String s=in.nextLine();",
"s",
"in.nextLine()",
"in.nextLine",
"in",
"String t=in.nextLine();",
"t",
"in.nextLine()",
"in.nextLine",
"in",
"boolean flag=true;",
"flag",
"true",
"for(int i=0;i<s.length();i++)\n\t\t{\n\t\t\tif(s.charAt(i)!=t.charAt(i))\n\t\t\t\tflag=false;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n\t\t\tif(s.charAt(i)!=t.charAt(i))\n\t\t\t\tflag=false;\n\t\t}",
"{\n\t\t\tif(s.charAt(i)!=t.charAt(i))\n\t\t\t\tflag=false;\n\t\t}",
"if(s.charAt(i)!=t.charAt(i))\n\t\t\t\tflag=false;",
"s.charAt(i)!=t.charAt(i)",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"t.charAt(i)",
"t.charAt",
"t",
"i",
"flag=false",
"flag",
"false",
"System.out.println((flag?(\"Yes\"):(\"No\")))",
"System.out.println",
"System.out",
"System",
"System.out",
"(flag?(\"Yes\"):(\"No\"))",
"flag",
"(\"Yes\")",
"(\"No\")",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner in=new Scanner(System.in);\n\t\tString s=in.nextLine();\n\t\tString t=in.nextLine();\n\t\tboolean flag=true;\n\t\tfor(int i=0;i<s.length();i++)\n\t\t{\n\t\t\tif(s.charAt(i)!=t.charAt(i))\n\t\t\t\tflag=false;\n\t\t}\n\t\tSystem.out.println((flag?(\"Yes\"):(\"No\")));\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner in=new Scanner(System.in);\n\t\tString s=in.nextLine();\n\t\tString t=in.nextLine();\n\t\tboolean flag=true;\n\t\tfor(int i=0;i<s.length();i++)\n\t\t{\n\t\t\tif(s.charAt(i)!=t.charAt(i))\n\t\t\t\tflag=false;\n\t\t}\n\t\tSystem.out.println((flag?(\"Yes\"):(\"No\")));\n\t}\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args)
{
Scanner in=new Scanner(System.in);
String s=in.nextLine();
String t=in.nextLine();
boolean flag=true;
for(int i=0;i<s.length();i++)
{
if(s.charAt(i)!=t.charAt(i))
flag=false;
}
System.out.println((flag?("Yes"):("No")));
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
13,
0,
13,
17,
14,
2,
13,
2,
18,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
80,
5
],
[
80,
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
],
[
26,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
38
],
[
29,
39
],
[
39,
40
],
[
40,
41
],
[
29,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
52,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
55,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
55,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
6,
77
],
[
77,
78
],
[
0,
79
],
[
79,
80
],
[
79,
81
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean bl = true;\n\t\tchar s[] = sc.next().toCharArray();\n\t\tchar t[] = sc.next().toCharArray();\n\t\tfor(int i = 0; i < s.length; i++) {\n\t\t\tif(s[i] != t[i])\n\t\t\t\tbl = false;\n\t\t}\n\t\tif(bl && s.length < t.length)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean bl = true;\n\t\tchar s[] = sc.next().toCharArray();\n\t\tchar t[] = sc.next().toCharArray();\n\t\tfor(int i = 0; i < s.length; i++) {\n\t\t\tif(s[i] != t[i])\n\t\t\t\tbl = false;\n\t\t}\n\t\tif(bl && s.length < t.length)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean bl = true;\n\t\tchar s[] = sc.next().toCharArray();\n\t\tchar t[] = sc.next().toCharArray();\n\t\tfor(int i = 0; i < s.length; i++) {\n\t\t\tif(s[i] != t[i])\n\t\t\t\tbl = false;\n\t\t}\n\t\tif(bl && s.length < t.length)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean bl = true;\n\t\tchar s[] = sc.next().toCharArray();\n\t\tchar t[] = sc.next().toCharArray();\n\t\tfor(int i = 0; i < s.length; i++) {\n\t\t\tif(s[i] != t[i])\n\t\t\t\tbl = false;\n\t\t}\n\t\tif(bl && s.length < t.length)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"boolean bl = true;",
"bl",
"true",
"char s[] = sc.next().toCharArray();",
"s",
"sc.next().toCharArray()",
"sc.next().toCharArray",
"sc.next()",
"sc.next",
"sc",
"char t[] = sc.next().toCharArray();",
"t",
"sc.next().toCharArray()",
"sc.next().toCharArray",
"sc.next()",
"sc.next",
"sc",
"for(int i = 0; i < s.length; i++) {\n\t\t\tif(s[i] != t[i])\n\t\t\t\tbl = false;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.length",
"i",
"s.length",
"s",
"s.length",
"i++",
"i++",
"i",
"{\n\t\t\tif(s[i] != t[i])\n\t\t\t\tbl = false;\n\t\t}",
"{\n\t\t\tif(s[i] != t[i])\n\t\t\t\tbl = false;\n\t\t}",
"if(s[i] != t[i])\n\t\t\t\tbl = false;",
"s[i] != t[i]",
"s[i]",
"s",
"i",
"t[i]",
"t",
"i",
"bl = false",
"bl",
"false",
"if(bl && s.length < t.length)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");",
"bl && s.length < t.length",
"bl",
"s.length < t.length",
"s.length",
"s",
"s.length",
"t.length",
"t",
"t.length",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean bl = true;\n\t\tchar s[] = sc.next().toCharArray();\n\t\tchar t[] = sc.next().toCharArray();\n\t\tfor(int i = 0; i < s.length; i++) {\n\t\t\tif(s[i] != t[i])\n\t\t\t\tbl = false;\n\t\t}\n\t\tif(bl && s.length < t.length)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\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\tboolean bl = true;\n\t\tchar s[] = sc.next().toCharArray();\n\t\tchar t[] = sc.next().toCharArray();\n\t\tfor(int i = 0; i < s.length; i++) {\n\t\t\tif(s[i] != t[i])\n\t\t\t\tbl = false;\n\t\t}\n\t\tif(bl && s.length < t.length)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
boolean bl = true;
char s[] = sc.next().toCharArray();
char t[] = sc.next().toCharArray();
for(int i = 0; i < s.length; i++) {
if(s[i] != t[i])
bl = false;
}
if(bl && s.length < t.length)
System.out.println("Yes");
else
System.out.println("No");
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
4,
18,
13,
42,
4,
18,
13,
30,
0,
13,
4,
18,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
42,
4,
18,
13,
30,
0,
13,
4,
18,
4,
18,
13,
14,
4,
18,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
30,
4,
18,
13,
17,
30,
4,
18,
13,
17,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
2,
17,
17,
41,
13,
17,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
20,
0,
18,
36,
13,
20,
13,
0,
18,
36,
13,
0,
13,
17,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
20,
13,
0,
18,
36,
13,
0,
13,
17,
23,
13,
12,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
18,
36,
13,
20,
0,
18,
36,
13,
20,
13,
0,
18,
36,
13,
0,
13,
17,
23,
13,
12,
13,
30,
41,
13,
20,
13,
41,
13,
17,
41,
13,
42,
2,
0,
13,
4,
13,
40,
17,
30,
14,
2,
13,
17,
30,
3,
0,
18,
13,
40,
13,
13,
29,
20,
12,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
0,
13,
17,
13,
14,
2,
13,
40,
17,
30,
0,
18,
13,
17,
40,
17,
12,
13,
30,
14,
2,
13,
13,
30,
4,
13,
29,
18,
13,
40,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
310,
29
],
[
310,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
32,
43
],
[
43,
44
],
[
43,
45
],
[
32,
46
],
[
46,
47
],
[
46,
48
],
[
32,
49
],
[
49,
50
],
[
49,
51
],
[
32,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
52,
56
],
[
52,
57
],
[
32,
58
],
[
58,
59
],
[
59,
60
],
[
30,
61
],
[
61,
62
],
[
310,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
75,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
67,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
67,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
94,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
67,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
110,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
114,
118
],
[
106,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
106,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
125,
128
],
[
65,
129
],
[
129,
130
],
[
65,
131
],
[
131,
132
],
[
65,
133
],
[
133,
134
],
[
310,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
139,
141
],
[
135,
142
],
[
142,
143
],
[
142,
144
],
[
135,
145
],
[
145,
146
],
[
135,
147
],
[
147,
148
],
[
135,
149
],
[
149,
150
],
[
135,
151
],
[
151,
152
],
[
135,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
155,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
161,
165
],
[
155,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
171,
172
],
[
171,
173
],
[
135,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
176,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
182,
186
],
[
176,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
188,
192
],
[
192,
193
],
[
192,
194
],
[
174,
195
],
[
195,
196
],
[
135,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
204,
205
],
[
200,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
207,
211
],
[
206,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
212,
216
],
[
206,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
218,
222
],
[
222,
223
],
[
222,
224
],
[
197,
225
],
[
225,
226
],
[
135,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
229,
234
],
[
234,
235
],
[
234,
236
],
[
229,
237
],
[
237,
238
],
[
229,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
243,
244
],
[
240,
245
],
[
245,
246
],
[
239,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
248,
252
],
[
252,
253
],
[
247,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
257,
258
],
[
254,
259
],
[
229,
260
],
[
260,
261
],
[
135,
262
],
[
262,
263
],
[
262,
264
],
[
264,
265
],
[
265,
266
],
[
266,
267
],
[
266,
268
],
[
268,
269
],
[
269,
270
],
[
265,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
274,
275
],
[
275,
276
],
[
274,
277
],
[
274,
278
],
[
278,
279
],
[
278,
280
],
[
274,
281
],
[
271,
282
],
[
282,
283
],
[
283,
284
],
[
283,
285
],
[
285,
286
],
[
282,
287
],
[
287,
288
],
[
288,
289
],
[
289,
290
],
[
289,
291
],
[
288,
292
],
[
292,
293
],
[
135,
294
],
[
294,
295
],
[
294,
296
],
[
296,
297
],
[
297,
298
],
[
298,
299
],
[
298,
300
],
[
297,
301
],
[
301,
302
],
[
302,
303
],
[
296,
304
],
[
304,
305
],
[
305,
306
],
[
305,
307
],
[
307,
308
],
[
0,
309
],
[
309,
310
],
[
309,
311
]
] |
[
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.io.DataInputStream;\nimport java.io.IOException;\nimport java.io.FileInputStream;\nimport java.io.FileNotFoundException;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author iavanish\n */\npublic class Main {\n\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ARegistration solver = new ARegistration();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ARegistration {\n\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n String s = in.next().trim();\n while (s.isEmpty()) {\n s = in.next().trim();\n }\n String t = in.next().trim();\n while (t.isEmpty()) {\n t = in.next().trim();\n }\n\n if (s.equals(t.substring(0, t.length() - 1))) {\n out.println(\"Yes\");\n } else {\n out.println(\"No\");\n }\n }\n\n }\n\n static class FastReader {\n\n private final int BUFFER_SIZE = 1 << 16;\n private final int STRING_BUFFER_SIZE = 10000000;\n private final InputStream inputStream;\n private final byte[] buffer;\n private int bufferPointer;\n private int bytesRead;\n\n public FastReader() {\n this.inputStream = new DataInputStream(System.in);\n this.buffer = new byte[BUFFER_SIZE];\n this.bufferPointer = bytesRead = 0;\n }\n\n public FastReader(InputStream inputStream) {\n this.inputStream = inputStream;\n this.buffer = new byte[BUFFER_SIZE];\n this.bufferPointer = bytesRead = 0;\n }\n\n public FastReader(String fileName) {\n try {\n this.inputStream = new DataInputStream(new FileInputStream(fileName));\n this.buffer = new byte[BUFFER_SIZE];\n this.bufferPointer = bytesRead = 0;\n } catch (FileNotFoundException e) {\n throw new RuntimeException(e);\n }\n }\n\n public String next() {\n byte[] buffer = new byte[STRING_BUFFER_SIZE];\n int count = 0;\n int c;\n while ((c = read()) != -1) {\n if (c == '\\n') {\n break;\n }\n buffer[count++] = (byte) c;\n }\n return new String(buffer, 0, count);\n }\n\n public void fillBuffer() {\n try {\n bytesRead = inputStream.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1) {\n buffer[0] = -1;\n }\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n public byte read() {\n if (bufferPointer == bytesRead) {\n fillBuffer();\n }\n return buffer[bufferPointer++];\n }\n\n }\n\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.io.DataInputStream;",
"DataInputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.FileInputStream;",
"FileInputStream",
"java.io",
"import java.io.FileNotFoundException;",
"FileNotFoundException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ARegistration solver = new ARegistration();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ARegistration {\n\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n String s = in.next().trim();\n while (s.isEmpty()) {\n s = in.next().trim();\n }\n String t = in.next().trim();\n while (t.isEmpty()) {\n t = in.next().trim();\n }\n\n if (s.equals(t.substring(0, t.length() - 1))) {\n out.println(\"Yes\");\n } else {\n out.println(\"No\");\n }\n }\n\n }\n\n static class FastReader {\n\n private final int BUFFER_SIZE = 1 << 16;\n private final int STRING_BUFFER_SIZE = 10000000;\n private final InputStream inputStream;\n private final byte[] buffer;\n private int bufferPointer;\n private int bytesRead;\n\n public FastReader() {\n this.inputStream = new DataInputStream(System.in);\n this.buffer = new byte[BUFFER_SIZE];\n this.bufferPointer = bytesRead = 0;\n }\n\n public FastReader(InputStream inputStream) {\n this.inputStream = inputStream;\n this.buffer = new byte[BUFFER_SIZE];\n this.bufferPointer = bytesRead = 0;\n }\n\n public FastReader(String fileName) {\n try {\n this.inputStream = new DataInputStream(new FileInputStream(fileName));\n this.buffer = new byte[BUFFER_SIZE];\n this.bufferPointer = bytesRead = 0;\n } catch (FileNotFoundException e) {\n throw new RuntimeException(e);\n }\n }\n\n public String next() {\n byte[] buffer = new byte[STRING_BUFFER_SIZE];\n int count = 0;\n int c;\n while ((c = read()) != -1) {\n if (c == '\\n') {\n break;\n }\n buffer[count++] = (byte) c;\n }\n return new String(buffer, 0, count);\n }\n\n public void fillBuffer() {\n try {\n bytesRead = inputStream.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1) {\n buffer[0] = -1;\n }\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n public byte read() {\n if (bufferPointer == bytesRead) {\n fillBuffer();\n }\n return buffer[bufferPointer++];\n }\n\n }\n\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ARegistration solver = new ARegistration();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ARegistration solver = new ARegistration();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"FastReader in = new FastReader(inputStream);",
"in",
"new FastReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"ARegistration solver = new ARegistration();",
"solver",
"new ARegistration()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class ARegistration {\n\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n String s = in.next().trim();\n while (s.isEmpty()) {\n s = in.next().trim();\n }\n String t = in.next().trim();\n while (t.isEmpty()) {\n t = in.next().trim();\n }\n\n if (s.equals(t.substring(0, t.length() - 1))) {\n out.println(\"Yes\");\n } else {\n out.println(\"No\");\n }\n }\n\n }",
"ARegistration",
"public void solve(int testNumber, FastReader in, PrintWriter out) {\n String s = in.next().trim();\n while (s.isEmpty()) {\n s = in.next().trim();\n }\n String t = in.next().trim();\n while (t.isEmpty()) {\n t = in.next().trim();\n }\n\n if (s.equals(t.substring(0, t.length() - 1))) {\n out.println(\"Yes\");\n } else {\n out.println(\"No\");\n }\n }",
"solve",
"{\n String s = in.next().trim();\n while (s.isEmpty()) {\n s = in.next().trim();\n }\n String t = in.next().trim();\n while (t.isEmpty()) {\n t = in.next().trim();\n }\n\n if (s.equals(t.substring(0, t.length() - 1))) {\n out.println(\"Yes\");\n } else {\n out.println(\"No\");\n }\n }",
"String s = in.next().trim();",
"s",
"in.next().trim()",
"in.next().trim",
"in.next()",
"in.next",
"in",
"while (s.isEmpty()) {\n s = in.next().trim();\n }",
"s.isEmpty()",
"s.isEmpty",
"s",
"{\n s = in.next().trim();\n }",
"s = in.next().trim()",
"s",
"in.next().trim()",
"in.next().trim",
"in.next()",
"in.next",
"in",
"String t = in.next().trim();",
"t",
"in.next().trim()",
"in.next().trim",
"in.next()",
"in.next",
"in",
"while (t.isEmpty()) {\n t = in.next().trim();\n }",
"t.isEmpty()",
"t.isEmpty",
"t",
"{\n t = in.next().trim();\n }",
"t = in.next().trim()",
"t",
"in.next().trim()",
"in.next().trim",
"in.next()",
"in.next",
"in",
"if (s.equals(t.substring(0, t.length() - 1))) {\n out.println(\"Yes\");\n } else {\n out.println(\"No\");\n }",
"s.equals(t.substring(0, t.length() - 1))",
"s.equals",
"s",
"t.substring(0, t.length() - 1)",
"t.substring",
"t",
"0",
"t.length() - 1",
"t.length()",
"t.length",
"t",
"1",
"{\n out.println(\"Yes\");\n }",
"out.println(\"Yes\")",
"out.println",
"out",
"\"Yes\"",
"{\n out.println(\"No\");\n }",
"out.println(\"No\")",
"out.println",
"out",
"\"No\"",
"int testNumber",
"testNumber",
"FastReader in",
"in",
"PrintWriter out",
"out",
"static class FastReader {\n\n private final int BUFFER_SIZE = 1 << 16;\n private final int STRING_BUFFER_SIZE = 10000000;\n private final InputStream inputStream;\n private final byte[] buffer;\n private int bufferPointer;\n private int bytesRead;\n\n public FastReader() {\n this.inputStream = new DataInputStream(System.in);\n this.buffer = new byte[BUFFER_SIZE];\n this.bufferPointer = bytesRead = 0;\n }\n\n public FastReader(InputStream inputStream) {\n this.inputStream = inputStream;\n this.buffer = new byte[BUFFER_SIZE];\n this.bufferPointer = bytesRead = 0;\n }\n\n public FastReader(String fileName) {\n try {\n this.inputStream = new DataInputStream(new FileInputStream(fileName));\n this.buffer = new byte[BUFFER_SIZE];\n this.bufferPointer = bytesRead = 0;\n } catch (FileNotFoundException e) {\n throw new RuntimeException(e);\n }\n }\n\n public String next() {\n byte[] buffer = new byte[STRING_BUFFER_SIZE];\n int count = 0;\n int c;\n while ((c = read()) != -1) {\n if (c == '\\n') {\n break;\n }\n buffer[count++] = (byte) c;\n }\n return new String(buffer, 0, count);\n }\n\n public void fillBuffer() {\n try {\n bytesRead = inputStream.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1) {\n buffer[0] = -1;\n }\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n public byte read() {\n if (bufferPointer == bytesRead) {\n fillBuffer();\n }\n return buffer[bufferPointer++];\n }\n\n }",
"FastReader",
"private final int BUFFER_SIZE = 1 << 16;",
"BUFFER_SIZE",
"1 << 16",
"1",
"16",
"private final int STRING_BUFFER_SIZE = 10000000;",
"STRING_BUFFER_SIZE",
"10000000",
"private final InputStream inputStream;",
"inputStream",
"private final byte[] buffer;",
"buffer",
"private int bufferPointer;",
"bufferPointer",
"private int bytesRead;",
"bytesRead",
"public FastReader() {\n this.inputStream = new DataInputStream(System.in);\n this.buffer = new byte[BUFFER_SIZE];\n this.bufferPointer = bytesRead = 0;\n }",
"FastReader",
"{\n this.inputStream = new DataInputStream(System.in);\n this.buffer = new byte[BUFFER_SIZE];\n this.bufferPointer = bytesRead = 0;\n }",
"this.inputStream = new DataInputStream(System.in)",
"this.inputStream",
"this",
"this.inputStream",
"new DataInputStream(System.in)",
"this.buffer = new byte[BUFFER_SIZE]",
"this.buffer",
"this",
"this.buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"this.bufferPointer = bytesRead = 0",
"this.bufferPointer",
"this",
"this.bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"public FastReader(InputStream inputStream) {\n this.inputStream = inputStream;\n this.buffer = new byte[BUFFER_SIZE];\n this.bufferPointer = bytesRead = 0;\n }",
"FastReader",
"{\n this.inputStream = inputStream;\n this.buffer = new byte[BUFFER_SIZE];\n this.bufferPointer = bytesRead = 0;\n }",
"this.inputStream = inputStream",
"this.inputStream",
"this",
"this.inputStream",
"inputStream",
"this.buffer = new byte[BUFFER_SIZE]",
"this.buffer",
"this",
"this.buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"this.bufferPointer = bytesRead = 0",
"this.bufferPointer",
"this",
"this.bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"InputStream inputStream",
"inputStream",
"public FastReader(String fileName) {\n try {\n this.inputStream = new DataInputStream(new FileInputStream(fileName));\n this.buffer = new byte[BUFFER_SIZE];\n this.bufferPointer = bytesRead = 0;\n } catch (FileNotFoundException e) {\n throw new RuntimeException(e);\n }\n }",
"FastReader",
"{\n try {\n this.inputStream = new DataInputStream(new FileInputStream(fileName));\n this.buffer = new byte[BUFFER_SIZE];\n this.bufferPointer = bytesRead = 0;\n } catch (FileNotFoundException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n this.inputStream = new DataInputStream(new FileInputStream(fileName));\n this.buffer = new byte[BUFFER_SIZE];\n this.bufferPointer = bytesRead = 0;\n } catch (FileNotFoundException e) {\n throw new RuntimeException(e);\n }",
"catch (FileNotFoundException e) {\n throw new RuntimeException(e);\n }",
"FileNotFoundException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n this.inputStream = new DataInputStream(new FileInputStream(fileName));\n this.buffer = new byte[BUFFER_SIZE];\n this.bufferPointer = bytesRead = 0;\n }",
"this.inputStream = new DataInputStream(new FileInputStream(fileName))",
"this.inputStream",
"this",
"this.inputStream",
"new DataInputStream(new FileInputStream(fileName))",
"this.buffer = new byte[BUFFER_SIZE]",
"this.buffer",
"this",
"this.buffer",
"new byte[BUFFER_SIZE]",
"BUFFER_SIZE",
"this.bufferPointer = bytesRead = 0",
"this.bufferPointer",
"this",
"this.bufferPointer",
"bytesRead = 0",
"bytesRead",
"0",
"String fileName",
"fileName",
"public String next() {\n byte[] buffer = new byte[STRING_BUFFER_SIZE];\n int count = 0;\n int c;\n while ((c = read()) != -1) {\n if (c == '\\n') {\n break;\n }\n buffer[count++] = (byte) c;\n }\n return new String(buffer, 0, count);\n }",
"next",
"{\n byte[] buffer = new byte[STRING_BUFFER_SIZE];\n int count = 0;\n int c;\n while ((c = read()) != -1) {\n if (c == '\\n') {\n break;\n }\n buffer[count++] = (byte) c;\n }\n return new String(buffer, 0, count);\n }",
"byte[] buffer = new byte[STRING_BUFFER_SIZE];",
"buffer",
"new byte[STRING_BUFFER_SIZE]",
"STRING_BUFFER_SIZE",
"int count = 0;",
"count",
"0",
"int c;",
"c",
"while ((c = read()) != -1) {\n if (c == '\\n') {\n break;\n }\n buffer[count++] = (byte) c;\n }",
"(c = read()) != -1",
"(c = read())",
"c",
"read()",
"read",
"-1",
"1",
"{\n if (c == '\\n') {\n break;\n }\n buffer[count++] = (byte) c;\n }",
"if (c == '\\n') {\n break;\n }",
"c == '\\n'",
"c",
"'\\n'",
"{\n break;\n }",
"break;",
"buffer[count++] = (byte) c",
"buffer[count++]",
"buffer",
"count++",
"count",
"(byte) c",
"return new String(buffer, 0, count);",
"new String(buffer, 0, count)",
"public void fillBuffer() {\n try {\n bytesRead = inputStream.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1) {\n buffer[0] = -1;\n }\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"fillBuffer",
"{\n try {\n bytesRead = inputStream.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1) {\n buffer[0] = -1;\n }\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n bytesRead = inputStream.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1) {\n buffer[0] = -1;\n }\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n bytesRead = inputStream.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1) {\n buffer[0] = -1;\n }\n }",
"bytesRead = inputStream.read(buffer, bufferPointer = 0, BUFFER_SIZE)",
"bytesRead",
"inputStream.read(buffer, bufferPointer = 0, BUFFER_SIZE)",
"inputStream.read",
"inputStream",
"buffer",
"bufferPointer = 0",
"bufferPointer",
"0",
"BUFFER_SIZE",
"if (bytesRead == -1) {\n buffer[0] = -1;\n }",
"bytesRead == -1",
"bytesRead",
"-1",
"1",
"{\n buffer[0] = -1;\n }",
"buffer[0] = -1",
"buffer[0]",
"buffer",
"0",
"-1",
"1",
"public byte read() {\n if (bufferPointer == bytesRead) {\n fillBuffer();\n }\n return buffer[bufferPointer++];\n }",
"read",
"{\n if (bufferPointer == bytesRead) {\n fillBuffer();\n }\n return buffer[bufferPointer++];\n }",
"if (bufferPointer == bytesRead) {\n fillBuffer();\n }",
"bufferPointer == bytesRead",
"bufferPointer",
"bytesRead",
"{\n fillBuffer();\n }",
"fillBuffer()",
"fillBuffer",
"return buffer[bufferPointer++];",
"buffer[bufferPointer++]",
"buffer",
"bufferPointer++",
"bufferPointer",
"public class Main {\n\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ARegistration solver = new ARegistration();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ARegistration {\n\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n String s = in.next().trim();\n while (s.isEmpty()) {\n s = in.next().trim();\n }\n String t = in.next().trim();\n while (t.isEmpty()) {\n t = in.next().trim();\n }\n\n if (s.equals(t.substring(0, t.length() - 1))) {\n out.println(\"Yes\");\n } else {\n out.println(\"No\");\n }\n }\n\n }\n\n static class FastReader {\n\n private final int BUFFER_SIZE = 1 << 16;\n private final int STRING_BUFFER_SIZE = 10000000;\n private final InputStream inputStream;\n private final byte[] buffer;\n private int bufferPointer;\n private int bytesRead;\n\n public FastReader() {\n this.inputStream = new DataInputStream(System.in);\n this.buffer = new byte[BUFFER_SIZE];\n this.bufferPointer = bytesRead = 0;\n }\n\n public FastReader(InputStream inputStream) {\n this.inputStream = inputStream;\n this.buffer = new byte[BUFFER_SIZE];\n this.bufferPointer = bytesRead = 0;\n }\n\n public FastReader(String fileName) {\n try {\n this.inputStream = new DataInputStream(new FileInputStream(fileName));\n this.buffer = new byte[BUFFER_SIZE];\n this.bufferPointer = bytesRead = 0;\n } catch (FileNotFoundException e) {\n throw new RuntimeException(e);\n }\n }\n\n public String next() {\n byte[] buffer = new byte[STRING_BUFFER_SIZE];\n int count = 0;\n int c;\n while ((c = read()) != -1) {\n if (c == '\\n') {\n break;\n }\n buffer[count++] = (byte) c;\n }\n return new String(buffer, 0, count);\n }\n\n public void fillBuffer() {\n try {\n bytesRead = inputStream.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1) {\n buffer[0] = -1;\n }\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n public byte read() {\n if (bufferPointer == bytesRead) {\n fillBuffer();\n }\n return buffer[bufferPointer++];\n }\n\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ARegistration solver = new ARegistration();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ARegistration {\n\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n String s = in.next().trim();\n while (s.isEmpty()) {\n s = in.next().trim();\n }\n String t = in.next().trim();\n while (t.isEmpty()) {\n t = in.next().trim();\n }\n\n if (s.equals(t.substring(0, t.length() - 1))) {\n out.println(\"Yes\");\n } else {\n out.println(\"No\");\n }\n }\n\n }\n\n static class FastReader {\n\n private final int BUFFER_SIZE = 1 << 16;\n private final int STRING_BUFFER_SIZE = 10000000;\n private final InputStream inputStream;\n private final byte[] buffer;\n private int bufferPointer;\n private int bytesRead;\n\n public FastReader() {\n this.inputStream = new DataInputStream(System.in);\n this.buffer = new byte[BUFFER_SIZE];\n this.bufferPointer = bytesRead = 0;\n }\n\n public FastReader(InputStream inputStream) {\n this.inputStream = inputStream;\n this.buffer = new byte[BUFFER_SIZE];\n this.bufferPointer = bytesRead = 0;\n }\n\n public FastReader(String fileName) {\n try {\n this.inputStream = new DataInputStream(new FileInputStream(fileName));\n this.buffer = new byte[BUFFER_SIZE];\n this.bufferPointer = bytesRead = 0;\n } catch (FileNotFoundException e) {\n throw new RuntimeException(e);\n }\n }\n\n public String next() {\n byte[] buffer = new byte[STRING_BUFFER_SIZE];\n int count = 0;\n int c;\n while ((c = read()) != -1) {\n if (c == '\\n') {\n break;\n }\n buffer[count++] = (byte) c;\n }\n return new String(buffer, 0, count);\n }\n\n public void fillBuffer() {\n try {\n bytesRead = inputStream.read(buffer, bufferPointer = 0, BUFFER_SIZE);\n if (bytesRead == -1) {\n buffer[0] = -1;\n }\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n public byte read() {\n if (bufferPointer == bytesRead) {\n fillBuffer();\n }\n return buffer[bufferPointer++];\n }\n\n }\n\n}",
"Main"
] |
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author iavanish
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
FastReader in = new FastReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
ARegistration solver = new ARegistration();
solver.solve(1, in, out);
out.close();
}
static class ARegistration {
public void solve(int testNumber, FastReader in, PrintWriter out) {
String s = in.next().trim();
while (s.isEmpty()) {
s = in.next().trim();
}
String t = in.next().trim();
while (t.isEmpty()) {
t = in.next().trim();
}
if (s.equals(t.substring(0, t.length() - 1))) {
out.println("Yes");
} else {
out.println("No");
}
}
}
static class FastReader {
private final int BUFFER_SIZE = 1 << 16;
private final int STRING_BUFFER_SIZE = 10000000;
private final InputStream inputStream;
private final byte[] buffer;
private int bufferPointer;
private int bytesRead;
public FastReader() {
this.inputStream = new DataInputStream(System.in);
this.buffer = new byte[BUFFER_SIZE];
this.bufferPointer = bytesRead = 0;
}
public FastReader(InputStream inputStream) {
this.inputStream = inputStream;
this.buffer = new byte[BUFFER_SIZE];
this.bufferPointer = bytesRead = 0;
}
public FastReader(String fileName) {
try {
this.inputStream = new DataInputStream(new FileInputStream(fileName));
this.buffer = new byte[BUFFER_SIZE];
this.bufferPointer = bytesRead = 0;
} catch (FileNotFoundException e) {
throw new RuntimeException(e);
}
}
public String next() {
byte[] buffer = new byte[STRING_BUFFER_SIZE];
int count = 0;
int c;
while ((c = read()) != -1) {
if (c == '\n') {
break;
}
buffer[count++] = (byte) c;
}
return new String(buffer, 0, count);
}
public void fillBuffer() {
try {
bytesRead = inputStream.read(buffer, bufferPointer = 0, BUFFER_SIZE);
if (bytesRead == -1) {
buffer[0] = -1;
}
} catch (IOException e) {
throw new RuntimeException(e);
}
}
public byte read() {
if (bufferPointer == bytesRead) {
fillBuffer();
}
return buffer[bufferPointer++];
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
37,
20,
14,
2,
13,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
4,
13,
29,
2,
13,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
41,
13,
18,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
4,
18,
13,
2,
13,
13,
13,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
30,
0,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
20,
42,
40,
4,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
29,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
12,
13,
30,
29,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
40,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
447,
8
],
[
447,
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
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
24,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
29,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
48,
52
],
[
40,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
40,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
11,
61
],
[
61,
62
],
[
62,
63
],
[
9,
64
],
[
64,
65
],
[
447,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
66,
74
],
[
74,
75
],
[
66,
76
],
[
76,
77
],
[
66,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
78,
86
],
[
86,
87
],
[
66,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
91,
96
],
[
96,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
106,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
102,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
124,
125
],
[
90,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
66,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
133,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
133,
147
],
[
147,
148
],
[
147,
149
],
[
133,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
154,
159
],
[
159,
160
],
[
159,
161
],
[
161,
162
],
[
133,
163
],
[
163,
164
],
[
163,
165
],
[
133,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
166,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
177,
179
],
[
171,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
133,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
66,
188
],
[
188,
189
],
[
188,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
190,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
195,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
190,
204
],
[
204,
205
],
[
204,
206
],
[
190,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
207,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
211,
216
],
[
216,
217
],
[
216,
218
],
[
218,
219
],
[
190,
220
],
[
220,
221
],
[
220,
222
],
[
190,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
223,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
228,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
234,
236
],
[
228,
237
],
[
237,
238
],
[
237,
239
],
[
239,
240
],
[
190,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
66,
245
],
[
245,
246
],
[
245,
247
],
[
247,
248
],
[
248,
249
],
[
248,
250
],
[
247,
252
],
[
252,
253
],
[
253,
254
],
[
254,
255
],
[
254,
256
],
[
252,
257
],
[
257,
258
],
[
257,
259
],
[
252,
260
],
[
260,
261
],
[
261,
262
],
[
252,
263
],
[
264,
264
],
[
264,
265
],
[
265,
266
],
[
266,
267
],
[
266,
268
],
[
265,
269
],
[
269,
270
],
[
247,
271
],
[
271,
272
],
[
245,
273
],
[
273,
274
],
[
66,
275
],
[
275,
276
],
[
275,
277
],
[
277,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
280,
282
],
[
279,
283
],
[
283,
284
],
[
283,
285
],
[
285,
286
],
[
285,
287
],
[
278,
288
],
[
288,
289
],
[
288,
290
],
[
278,
291
],
[
291,
292
],
[
292,
293
],
[
278,
294
],
[
295,
295
],
[
295,
296
],
[
296,
297
],
[
296,
298
],
[
298,
299
],
[
299,
300
],
[
300,
301
],
[
299,
302
],
[
302,
303
],
[
302,
304
],
[
298,
305
],
[
295,
306
],
[
306,
307
],
[
306,
308
],
[
308,
309
],
[
308,
310
],
[
295,
311
],
[
311,
312
],
[
312,
313
],
[
312,
314
],
[
311,
315
],
[
315,
316
],
[
315,
317
],
[
295,
318
],
[
318,
319
],
[
319,
320
],
[
319,
321
],
[
318,
322
],
[
277,
323
],
[
323,
324
],
[
275,
325
],
[
325,
326
],
[
275,
327
],
[
327,
328
],
[
66,
329
],
[
329,
330
],
[
329,
331
],
[
331,
332
],
[
332,
333
],
[
332,
334
],
[
334,
335
],
[
331,
336
],
[
336,
337
],
[
337,
338
],
[
337,
339
],
[
336,
340
],
[
340,
341
],
[
341,
342
],
[
341,
343
],
[
343,
344
],
[
331,
345
],
[
345,
346
],
[
345,
347
],
[
331,
348
],
[
348,
349
],
[
349,
350
],
[
350,
351
],
[
350,
352
],
[
348,
353
],
[
353,
354
],
[
354,
355
],
[
355,
356
],
[
354,
357
],
[
353,
358
],
[
358,
359
],
[
358,
360
],
[
360,
361
],
[
331,
362
],
[
362,
363
],
[
363,
364
],
[
364,
365
],
[
66,
366
],
[
366,
367
],
[
366,
368
],
[
368,
369
],
[
369,
370
],
[
369,
371
],
[
371,
372
],
[
368,
373
],
[
373,
374
],
[
374,
375
],
[
374,
376
],
[
373,
377
],
[
377,
378
],
[
377,
379
],
[
379,
380
],
[
368,
381
],
[
381,
382
],
[
381,
383
],
[
368,
384
],
[
384,
385
],
[
385,
386
],
[
386,
387
],
[
386,
388
],
[
384,
389
],
[
389,
390
],
[
390,
391
],
[
391,
392
],
[
390,
393
],
[
389,
394
],
[
394,
395
],
[
394,
396
],
[
396,
397
],
[
368,
398
],
[
398,
399
],
[
399,
400
],
[
400,
401
],
[
66,
402
],
[
402,
403
],
[
402,
404
],
[
404,
405
],
[
405,
406
],
[
409,
407
],
[
419,
408
],
[
416,
409
],
[
409,
410
],
[
410,
411
],
[
410,
412
],
[
409,
413
],
[
413,
414
],
[
413,
415
],
[
416,
416
],
[
416,
417
],
[
416,
418
],
[
419,
419
],
[
419,
420
],
[
419,
421
],
[
409,
422
],
[
422,
423
],
[
422,
424
],
[
424,
425
],
[
402,
426
],
[
426,
427
],
[
66,
428
],
[
428,
429
],
[
428,
430
],
[
430,
431
],
[
431,
432
],
[
433,
433
],
[
433,
434
],
[
434,
435
],
[
434,
436
],
[
433,
437
],
[
437,
438
],
[
437,
439
],
[
433,
440
],
[
440,
441
],
[
440,
442
],
[
442,
443
],
[
428,
444
],
[
444,
445
],
[
0,
446
],
[
446,
447
],
[
446,
448
]
] |
[
"import java.io.*;\nimport java.util.*;\npublic class Main {\n public static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n\n String s = sc.nextLine();\n String str = sc.nextLine();\n if(s.equals(str.substring(0,str.length()-1)))\n pw.println(\"Yes\");\n else\n pw.println(\"No\");\n\n }\n pw.close();\n\n }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n static class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int[] nextIntArray(int n) {\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n }\n\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n\n String s = sc.nextLine();\n String str = sc.nextLine();\n if(s.equals(str.substring(0,str.length()-1)))\n pw.println(\"Yes\");\n else\n pw.println(\"No\");\n\n }\n pw.close();\n\n }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n static class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int[] nextIntArray(int n) {\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n }\n\n}",
"Main",
"public static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n\n String s = sc.nextLine();\n String str = sc.nextLine();\n if(s.equals(str.substring(0,str.length()-1)))\n pw.println(\"Yes\");\n else\n pw.println(\"No\");\n\n }\n pw.close();\n\n }",
"main",
"{\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n\n String s = sc.nextLine();\n String str = sc.nextLine();\n if(s.equals(str.substring(0,str.length()-1)))\n pw.println(\"Yes\");\n else\n pw.println(\"No\");\n\n }\n pw.close();\n\n }",
"InputReader sc = new InputReader(System.in);",
"sc",
"new InputReader(System.in)",
"PrintWriter pw = new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"Random gen = new Random();",
"gen",
"new Random()",
"int test = 1;",
"test",
"1",
"while(test-->0) {\n\n String s = sc.nextLine();\n String str = sc.nextLine();\n if(s.equals(str.substring(0,str.length()-1)))\n pw.println(\"Yes\");\n else\n pw.println(\"No\");\n\n }",
"test-->0",
"test--",
"test",
"0",
"{\n\n String s = sc.nextLine();\n String str = sc.nextLine();\n if(s.equals(str.substring(0,str.length()-1)))\n pw.println(\"Yes\");\n else\n pw.println(\"No\");\n\n }",
"String s = sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String str = sc.nextLine();",
"str",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(s.equals(str.substring(0,str.length()-1)))\n pw.println(\"Yes\");\n else\n pw.println(\"No\");",
"s.equals(str.substring(0,str.length()-1))",
"s.equals",
"s",
"str.substring(0,str.length()-1)",
"str.substring",
"str",
"0",
"str.length()-1",
"str.length()",
"str.length",
"str",
"1",
"pw.println(\"Yes\")",
"pw.println",
"pw",
"\"Yes\"",
"pw.println(\"No\")",
"pw.println",
"pw",
"\"No\"",
"pw.close()",
"pw.close",
"pw",
"String[] args",
"args",
"static class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int[] nextIntArray(int n) {\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n }",
"InputReader",
"private final InputStream stream;",
"stream",
"private final byte[] buf = new byte[8192];",
"buf",
"new byte[8192]",
"8192",
"private int curChar",
"curChar",
"snumChars;",
"snumChars",
"public InputReader(InputStream st) {\n this.stream = st;\n }",
"InputReader",
"{\n this.stream = st;\n }",
"this.stream = st",
"this.stream",
"this",
"this.stream",
"st",
"InputStream st",
"st",
"public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }",
"read",
"{\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }",
"if (snumChars == -1)\n throw new InputMismatchException();",
"snumChars == -1",
"snumChars",
"-1",
"1",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }",
"curChar >= snumChars",
"curChar",
"snumChars",
"{\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }",
"curChar = 0",
"curChar",
"0",
"try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }",
"catch (IOException e) {\n throw new InputMismatchException();\n }",
"IOException e",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n snumChars = stream.read(buf);\n }",
"snumChars = stream.read(buf)",
"snumChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (snumChars <= 0)\n return -1;",
"snumChars <= 0",
"snumChars",
"0",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"nextInt",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n c = read();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n sgn = -1;\n c = read();\n }",
"c == '-'",
"c",
"'-'",
"{\n sgn = -1;\n c = read();\n }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"int res = 0;",
"res",
"0",
"do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n res *= 10;\n res += c - '0';\n c = read();\n }",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"nextLong",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n c = read();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"int sgn = 1;",
"sgn",
"1",
"if (c == '-') {\n sgn = -1;\n c = read();\n }",
"c == '-'",
"c",
"'-'",
"{\n sgn = -1;\n c = read();\n }",
"sgn = -1",
"sgn",
"-1",
"1",
"c = read()",
"c",
"read()",
"read",
"long res = 0;",
"res",
"0",
"do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n res *= 10;\n res += c - '0';\n c = read();\n }",
"res *= 10",
"res",
"10",
"res += c - '0'",
"res",
"c - '0'",
"c",
"'0'",
"c = read()",
"c",
"read()",
"read",
"return res * sgn;",
"res * sgn",
"res",
"sgn",
"public int[] nextIntArray(int n) {\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }",
"nextIntArray",
"{\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }",
"int [] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i] = nextInt();\n }",
"{\n a[i] = nextInt();\n }",
"a[i] = nextInt()",
"a[i]",
"a",
"i",
"nextInt()",
"nextInt",
"return a;",
"a",
"int n",
"n",
"public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }",
"shuffle",
"{ for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }",
"for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }",
"int i = 0, n = a.length;",
"int i = 0",
"i",
"0",
"n = a.length;",
"n",
"a.length",
"a",
"a.length",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{ int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }",
"{ int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }",
"int ind = gen.nextInt(n-i)+i;",
"ind",
"gen.nextInt(n-i)+i",
"gen.nextInt(n-i)",
"gen.nextInt",
"gen",
"n-i",
"n",
"i",
"i",
"int d = a[i];",
"d",
"a[i]",
"a",
"i",
"a[i] = a[ind]",
"a[i]",
"a",
"i",
"a[ind]",
"a",
"ind",
"a[ind] = d",
"a[ind]",
"a",
"ind",
"d",
"return a;",
"a",
"int[] a",
"a",
"Random gen",
"gen",
"public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }",
"readString",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c)) {\n c = read();\n }",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n c = read();\n }",
"c = read()",
"c",
"read()",
"read",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n res.appendCodePoint(c);\n c = read();\n }",
"res.appendCodePoint(c)",
"res.appendCodePoint",
"res",
"c",
"c = read()",
"c",
"read()",
"read",
"return res.toString();",
"res.toString()",
"res.toString",
"res",
"public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }",
"nextLine",
"{\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }",
"int c = read();",
"c",
"read()",
"read",
"while (isSpaceChar(c))\n c = read();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = read()",
"c",
"read()",
"read",
"StringBuilder res = new StringBuilder();",
"res",
"new StringBuilder()",
"do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));",
"!isEndOfLine(c)",
"isEndOfLine(c)",
"isEndOfLine",
"c",
"{\n res.appendCodePoint(c);\n c = read();\n }",
"res.appendCodePoint(c)",
"res.appendCodePoint",
"res",
"c",
"c = read()",
"c",
"read()",
"read",
"return res.toString();",
"res.toString()",
"res.toString",
"res",
"public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isSpaceChar",
"{\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == '\\t'",
"c == '\\r'",
"c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1",
"c == ' '",
"c",
"' '",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == '\\t'",
"c",
"'\\t'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }",
"isEndOfLine",
"{\n return c == '\\n' || c == '\\r' || c == -1;\n }",
"return c == '\\n' || c == '\\r' || c == -1;",
"c == '\\n' || c == '\\r' || c == -1",
"c == '\\n' || c == '\\r' || c == -1",
"c == '\\n'",
"c",
"'\\n'",
"c == '\\r'",
"c",
"'\\r'",
"c == -1",
"c",
"-1",
"1",
"int c",
"c",
"public class Main {\n public static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n\n String s = sc.nextLine();\n String str = sc.nextLine();\n if(s.equals(str.substring(0,str.length()-1)))\n pw.println(\"Yes\");\n else\n pw.println(\"No\");\n\n }\n pw.close();\n\n }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n static class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int[] nextIntArray(int n) {\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n }\n\n}",
"public class Main {\n public static void main(String[] args) {\n InputReader sc = new InputReader(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n Random gen = new Random();\n int test = 1;//sc.nextInt();\n while(test-->0) {\n\n String s = sc.nextLine();\n String str = sc.nextLine();\n if(s.equals(str.substring(0,str.length()-1)))\n pw.println(\"Yes\");\n else\n pw.println(\"No\");\n\n }\n pw.close();\n\n }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n static class InputReader {\n\n private final InputStream stream;\n private final byte[] buf = new byte[8192];\n private int curChar, snumChars;\n\n public InputReader(InputStream st) {\n this.stream = st;\n }\n\n public int read() {\n if (snumChars == -1)\n throw new InputMismatchException();\n if (curChar >= snumChars) {\n curChar = 0;\n try {\n snumChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (snumChars <= 0)\n return -1;\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public long nextLong() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n long res = 0;\n do {\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public int[] nextIntArray(int n) {\n int [] a = new int[n];\n for (int i = 0; i < n; i++) {\n a[i] = nextInt();\n }\n return a;\n }\n\n public static int[] shuffle(int[] a, Random gen)\n { for(int i = 0, n = a.length;i < n;i++)\n { int ind = gen.nextInt(n-i)+i;\n int d = a[i];\n a[i] = a[ind];\n a[ind] = d;\n\n }\n return a;\n }\n\n\n public String readString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public String nextLine() {\n int c = read();\n while (isSpaceChar(c))\n c = read();\n StringBuilder res = new StringBuilder();\n do {\n res.appendCodePoint(c);\n c = read();\n } while (!isEndOfLine(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n private boolean isEndOfLine(int c) {\n return c == '\\n' || c == '\\r' || c == -1;\n }\n\n }\n\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
InputReader sc = new InputReader(System.in);
PrintWriter pw = new PrintWriter(System.out);
Random gen = new Random();
int test = 1;//sc.nextInt();
while(test-->0) {
String s = sc.nextLine();
String str = sc.nextLine();
if(s.equals(str.substring(0,str.length()-1)))
pw.println("Yes");
else
pw.println("No");
}
pw.close();
}
static class InputReader {
private final InputStream stream;
private final byte[] buf = new byte[8192];
private int curChar, snumChars;
public InputReader(InputStream st) {
this.stream = st;
}
public int read() {
if (snumChars == -1)
throw new InputMismatchException();
if (curChar >= snumChars) {
curChar = 0;
try {
snumChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (snumChars <= 0)
return -1;
}
return buf[curChar++];
}
public int nextInt() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
int res = 0;
do {
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public long nextLong() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
int sgn = 1;
if (c == '-') {
sgn = -1;
c = read();
}
long res = 0;
do {
res *= 10;
res += c - '0';
c = read();
} while (!isSpaceChar(c));
return res * sgn;
}
public int[] nextIntArray(int n) {
int [] a = new int[n];
for (int i = 0; i < n; i++) {
a[i] = nextInt();
}
return a;
}
public static int[] shuffle(int[] a, Random gen)
{ for(int i = 0, n = a.length;i < n;i++)
{ int ind = gen.nextInt(n-i)+i;
int d = a[i];
a[i] = a[ind];
a[ind] = d;
}
return a;
}
public String readString() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
StringBuilder res = new StringBuilder();
do {
res.appendCodePoint(c);
c = read();
} while (!isSpaceChar(c));
return res.toString();
}
public String nextLine() {
int c = read();
while (isSpaceChar(c))
c = read();
StringBuilder res = new StringBuilder();
do {
res.appendCodePoint(c);
c = read();
} while (!isEndOfLine(c));
return res.toString();
}
public boolean isSpaceChar(int c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
private boolean isEndOfLine(int c) {
return c == '\n' || c == '\r' || c == -1;
}
}
}
|
[
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,
14,
2,
2,
4,
18,
13,
17,
4,
18,
13,
30,
0,
13,
17,
14,
40,
4,
18,
4,
18,
13,
17,
4,
18,
13,
13,
30,
0,
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
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
27,
31
],
[
26,
32
],
[
32,
33
],
[
33,
34
],
[
25,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
41,
50
],
[
39,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
6,
61
],
[
61,
62
]
] |
[
"import java.util.*;\n\nclass Main{\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\n String result = \"Yes\";\n \n if(S.length()+1 != T.length()){\n result = \"No\";\n }\n if(!T.substring(0,S.length()).equals(S)){\n result = \"No\";\n }\n \n System.out.println(result);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\n String result = \"Yes\";\n \n if(S.length()+1 != T.length()){\n result = \"No\";\n }\n if(!T.substring(0,S.length()).equals(S)){\n result = \"No\";\n }\n \n System.out.println(result);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\n String result = \"Yes\";\n \n if(S.length()+1 != T.length()){\n result = \"No\";\n }\n if(!T.substring(0,S.length()).equals(S)){\n result = \"No\";\n }\n \n System.out.println(result);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\n String result = \"Yes\";\n \n if(S.length()+1 != T.length()){\n result = \"No\";\n }\n if(!T.substring(0,S.length()).equals(S)){\n result = \"No\";\n }\n \n System.out.println(result);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"String T = sc.next();",
"T",
"sc.next()",
"sc.next",
"sc",
"String result = \"Yes\";",
"result",
"\"Yes\"",
"if(S.length()+1 != T.length()){\n result = \"No\";\n }",
"S.length()+1 != T.length()",
"S.length()+1",
"S.length()",
"S.length",
"S",
"1",
"T.length()",
"T.length",
"T",
"{\n result = \"No\";\n }",
"result = \"No\"",
"result",
"\"No\"",
"if(!T.substring(0,S.length()).equals(S)){\n result = \"No\";\n }",
"!T.substring(0,S.length()).equals(S)",
"T.substring(0,S.length()).equals(S)",
"T.substring(0,S.length()).equals",
"T.substring(0,S.length())",
"T.substring",
"T",
"0",
"S.length()",
"S.length",
"S",
"S",
"{\n result = \"No\";\n }",
"result = \"No\"",
"result",
"\"No\"",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args"
] |
import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String S = sc.next();
String T = sc.next();
String result = "Yes";
if(S.length()+1 != T.length()){
result = "No";
}
if(!T.substring(0,S.length()).equals(S)){
result = "No";
}
System.out.println(result);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
4,
18,
13,
17,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
53,
5
],
[
53,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
27,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
27,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
6,
50
],
[
50,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
]
] |
[
"import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String t = sc.nextLine();\n int u= s.length();\n if(s.equals(t.substring(0,u))) {\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String t = sc.nextLine();\n int u= s.length();\n if(s.equals(t.substring(0,u))) {\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String t = sc.nextLine();\n int u= s.length();\n if(s.equals(t.substring(0,u))) {\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String t = sc.nextLine();\n int u= s.length();\n if(s.equals(t.substring(0,u))) {\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String t = sc.nextLine();",
"t",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int u= s.length();",
"u",
"s.length()",
"s.length",
"s",
"if(s.equals(t.substring(0,u))) {\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"s.equals(t.substring(0,u))",
"s.equals",
"s",
"t.substring(0,u)",
"t.substring",
"t",
"0",
"u",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String t = sc.nextLine();\n int u= s.length();\n if(s.equals(t.substring(0,u))) {\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String t = sc.nextLine();\n int u= s.length();\n if(s.equals(t.substring(0,u))) {\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.nextLine();
String t = sc.nextLine();
int u= s.length();
if(s.equals(t.substring(0,u))) {
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
4,
18,
13,
17,
4,
18,
13,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
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
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
25,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
23,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
22,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
22,
44
],
[
44,
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\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.next();\n if (s.length() + 1 == t.length() && t.startsWith(s)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.next();\n if (s.length() + 1 == t.length() && t.startsWith(s)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.next();\n if (s.length() + 1 == t.length() && t.startsWith(s)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.next();\n if (s.length() + 1 == t.length() && t.startsWith(s)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String t = sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"if (s.length() + 1 == t.length() && t.startsWith(s)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"s.length() + 1 == t.length() && t.startsWith(s)",
"s.length() + 1 == t.length()",
"s.length() + 1",
"s.length()",
"s.length",
"s",
"1",
"t.length()",
"t.length",
"t",
"t.startsWith(s)",
"t.startsWith",
"t",
"s",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.next();\n if (s.length() + 1 == t.length() && t.startsWith(s)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.next();\n if (s.length() + 1 == t.length() && t.startsWith(s)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.next();
String t = sc.next();
if (s.length() + 1 == t.length() && t.startsWith(s)) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
4,
18,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
4,
18,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
62,
5
],
[
62,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
34,
38
],
[
26,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
42,
44
],
[
25,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
25,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
6,
59
],
[
59,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
]
] |
[
"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\t\tString s = sc.nextLine();\n\t\tString t = sc.nextLine();\n\n\t\tsc.close();\n\n\n\t\tif (s.equals(t.substring(0, t.length()-1)) &&\n\t\t\t\tt.matches(s + \"[a-z]\")) {\n\t\t\t\t//t.substring(t.length(), t.length()).matches(\"[a-z]\")) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\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\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString t = sc.nextLine();\n\n\t\tsc.close();\n\n\n\t\tif (s.equals(t.substring(0, t.length()-1)) &&\n\t\t\t\tt.matches(s + \"[a-z]\")) {\n\t\t\t\t//t.substring(t.length(), t.length()).matches(\"[a-z]\")) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString t = sc.nextLine();\n\n\t\tsc.close();\n\n\n\t\tif (s.equals(t.substring(0, t.length()-1)) &&\n\t\t\t\tt.matches(s + \"[a-z]\")) {\n\t\t\t\t//t.substring(t.length(), t.length()).matches(\"[a-z]\")) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString t = sc.nextLine();\n\n\t\tsc.close();\n\n\n\t\tif (s.equals(t.substring(0, t.length()-1)) &&\n\t\t\t\tt.matches(s + \"[a-z]\")) {\n\t\t\t\t//t.substring(t.length(), t.length()).matches(\"[a-z]\")) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String t = sc.nextLine();",
"t",
"sc.nextLine()",
"sc.nextLine",
"sc",
"sc.close()",
"sc.close",
"sc",
"if (s.equals(t.substring(0, t.length()-1)) &&\n\t\t\t\tt.matches(s + \"[a-z]\")) {\n\t\t\t\t//t.substring(t.length(), t.length()).matches(\"[a-z]\")) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"s.equals(t.substring(0, t.length()-1)) &&\n\t\t\t\tt.matches(s + \"[a-z]\")",
"s.equals(t.substring(0, t.length()-1))",
"s.equals",
"s",
"t.substring(0, t.length()-1)",
"t.substring",
"t",
"0",
"t.length()-1",
"t.length()",
"t.length",
"t",
"1",
"t.matches(s + \"[a-z]\")",
"t.matches",
"t",
"s + \"[a-z]\"",
"s",
"\"[a-z]\"",
"{\n\t\t\t\t//t.substring(t.length(), t.length()).matches(\"[a-z]\")) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString t = sc.nextLine();\n\n\t\tsc.close();\n\n\n\t\tif (s.equals(t.substring(0, t.length()-1)) &&\n\t\t\t\tt.matches(s + \"[a-z]\")) {\n\t\t\t\t//t.substring(t.length(), t.length()).matches(\"[a-z]\")) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString t = sc.nextLine();\n\n\t\tsc.close();\n\n\n\t\tif (s.equals(t.substring(0, t.length()-1)) &&\n\t\t\t\tt.matches(s + \"[a-z]\")) {\n\t\t\t\t//t.substring(t.length(), t.length()).matches(\"[a-z]\")) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\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 s = sc.nextLine();
String t = sc.nextLine();
sc.close();
if (s.equals(t.substring(0, t.length()-1)) &&
t.matches(s + "[a-z]")) {
//t.substring(t.length(), t.length()).matches("[a-z]")) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
4,
18,
13,
4,
18,
13,
17,
13,
2,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
70,
5
],
[
70,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
8,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
43,
47
],
[
39,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
48,
52
],
[
38,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
38,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
6,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString id = sc.next(); //ID\n\t\tString id2 = sc.next(); //ID\n\n\t\tint cnt = id.length();\n\t\tint cnt2 = id2.length();\n\n\t\tString id3 = id2.substring(cnt);\n\n\t\tif(id.equals(id2.substring(0, cnt)) && id3.length() == 1) {\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.print(\"No\");\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString id = sc.next(); //ID\n\t\tString id2 = sc.next(); //ID\n\n\t\tint cnt = id.length();\n\t\tint cnt2 = id2.length();\n\n\t\tString id3 = id2.substring(cnt);\n\n\t\tif(id.equals(id2.substring(0, cnt)) && id3.length() == 1) {\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.print(\"No\");\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString id = sc.next(); //ID\n\t\tString id2 = sc.next(); //ID\n\n\t\tint cnt = id.length();\n\t\tint cnt2 = id2.length();\n\n\t\tString id3 = id2.substring(cnt);\n\n\t\tif(id.equals(id2.substring(0, cnt)) && id3.length() == 1) {\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.print(\"No\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString id = sc.next(); //ID\n\t\tString id2 = sc.next(); //ID\n\n\t\tint cnt = id.length();\n\t\tint cnt2 = id2.length();\n\n\t\tString id3 = id2.substring(cnt);\n\n\t\tif(id.equals(id2.substring(0, cnt)) && id3.length() == 1) {\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.print(\"No\");\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String id = sc.next();",
"id",
"sc.next()",
"sc.next",
"sc",
"String id2 = sc.next();",
"id2",
"sc.next()",
"sc.next",
"sc",
"int cnt = id.length();",
"cnt",
"id.length()",
"id.length",
"id",
"int cnt2 = id2.length();",
"cnt2",
"id2.length()",
"id2.length",
"id2",
"String id3 = id2.substring(cnt);",
"id3",
"id2.substring(cnt)",
"id2.substring",
"id2",
"cnt",
"if(id.equals(id2.substring(0, cnt)) && id3.length() == 1) {\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.print(\"No\");\n\t\t}",
"id.equals(id2.substring(0, cnt)) && id3.length() == 1",
"id.equals(id2.substring(0, cnt))",
"id.equals",
"id",
"id2.substring(0, cnt)",
"id2.substring",
"id2",
"0",
"cnt",
"id3.length() == 1",
"id3.length()",
"id3.length",
"id3",
"1",
"{\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}",
"System.out.print(\"Yes\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.print(\"No\");\n\t\t}",
"System.out.print(\"No\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString id = sc.next(); //ID\n\t\tString id2 = sc.next(); //ID\n\n\t\tint cnt = id.length();\n\t\tint cnt2 = id2.length();\n\n\t\tString id3 = id2.substring(cnt);\n\n\t\tif(id.equals(id2.substring(0, cnt)) && id3.length() == 1) {\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.print(\"No\");\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString id = sc.next(); //ID\n\t\tString id2 = sc.next(); //ID\n\n\t\tint cnt = id.length();\n\t\tint cnt2 = id2.length();\n\n\t\tString id3 = id2.substring(cnt);\n\n\t\tif(id.equals(id2.substring(0, cnt)) && id3.length() == 1) {\n\t\t\tSystem.out.print(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.print(\"No\");\n\t\t}\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 id = sc.next(); //ID
String id2 = sc.next(); //ID
int cnt = id.length();
int cnt2 = id2.length();
String id3 = id2.substring(cnt);
if(id.equals(id2.substring(0, cnt)) && id3.length() == 1) {
System.out.print("Yes");
}else {
System.out.print("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
13,
14,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
56,
5
],
[
56,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
29,
33
],
[
8,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
34,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
34,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
6,
53
],
[
53,
54
],
[
0,
55
],
[
55,
56
],
[
55,
57
]
] |
[
"import java.util.Scanner;\n \npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String passS = scan.nextLine();\n String passT = scan.nextLine();\n int moji = passS.length();\n String passTa = passT.substring(0,moji);\n if (passS.equals(passTa)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String passS = scan.nextLine();\n String passT = scan.nextLine();\n int moji = passS.length();\n String passTa = passT.substring(0,moji);\n if (passS.equals(passTa)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String passS = scan.nextLine();\n String passT = scan.nextLine();\n int moji = passS.length();\n String passTa = passT.substring(0,moji);\n if (passS.equals(passTa)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n String passS = scan.nextLine();\n String passT = scan.nextLine();\n int moji = passS.length();\n String passTa = passT.substring(0,moji);\n if (passS.equals(passTa)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String passS = scan.nextLine();",
"passS",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String passT = scan.nextLine();",
"passT",
"scan.nextLine()",
"scan.nextLine",
"scan",
"int moji = passS.length();",
"moji",
"passS.length()",
"passS.length",
"passS",
"String passTa = passT.substring(0,moji);",
"passTa",
"passT.substring(0,moji)",
"passT.substring",
"passT",
"0",
"moji",
"if (passS.equals(passTa)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"passS.equals(passTa)",
"passS.equals",
"passS",
"passTa",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String passS = scan.nextLine();\n String passT = scan.nextLine();\n int moji = passS.length();\n String passTa = passT.substring(0,moji);\n if (passS.equals(passTa)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String passS = scan.nextLine();\n String passT = scan.nextLine();\n int moji = passS.length();\n String passTa = passT.substring(0,moji);\n if (passS.equals(passTa)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String passS = scan.nextLine();
String passT = scan.nextLine();
int moji = passS.length();
String passTa = passT.substring(0,moji);
if (passS.equals(passTa)) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
2,
2,
4,
18,
13,
17,
4,
18,
13,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
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
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
28,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
26,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
25,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
25,
47
],
[
47,
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\tpublic static void main(String[] args) {\n\n\t\tScanner input = new Scanner(System.in);\n\n\t\tString S = input.next();\n\t\tString T = input.next();\n\n\t\tinput.close();\n\n\t\tif(S.length() + 1 == T.length() & T.startsWith(S)) {\n\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}else {\n\n\t\t\tSystem.out.println(\"No\");\n\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner input = new Scanner(System.in);\n\n\t\tString S = input.next();\n\t\tString T = input.next();\n\n\t\tinput.close();\n\n\t\tif(S.length() + 1 == T.length() & T.startsWith(S)) {\n\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}else {\n\n\t\t\tSystem.out.println(\"No\");\n\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner input = new Scanner(System.in);\n\n\t\tString S = input.next();\n\t\tString T = input.next();\n\n\t\tinput.close();\n\n\t\tif(S.length() + 1 == T.length() & T.startsWith(S)) {\n\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}else {\n\n\t\t\tSystem.out.println(\"No\");\n\n\t\t}\n\t}",
"main",
"{\n\n\t\tScanner input = new Scanner(System.in);\n\n\t\tString S = input.next();\n\t\tString T = input.next();\n\n\t\tinput.close();\n\n\t\tif(S.length() + 1 == T.length() & T.startsWith(S)) {\n\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}else {\n\n\t\t\tSystem.out.println(\"No\");\n\n\t\t}\n\t}",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"String S = input.next();",
"S",
"input.next()",
"input.next",
"input",
"String T = input.next();",
"T",
"input.next()",
"input.next",
"input",
"input.close()",
"input.close",
"input",
"if(S.length() + 1 == T.length() & T.startsWith(S)) {\n\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}else {\n\n\t\t\tSystem.out.println(\"No\");\n\n\t\t}",
"S.length() + 1 == T.length() & T.startsWith(S)",
"S.length() + 1 == T.length()",
"S.length() + 1",
"S.length()",
"S.length",
"S",
"1",
"T.length()",
"T.length",
"T",
"T.startsWith(S)",
"T.startsWith",
"T",
"S",
"{\n\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\n\t\t\tSystem.out.println(\"No\");\n\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner input = new Scanner(System.in);\n\n\t\tString S = input.next();\n\t\tString T = input.next();\n\n\t\tinput.close();\n\n\t\tif(S.length() + 1 == T.length() & T.startsWith(S)) {\n\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}else {\n\n\t\t\tSystem.out.println(\"No\");\n\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner input = new Scanner(System.in);\n\n\t\tString S = input.next();\n\t\tString T = input.next();\n\n\t\tinput.close();\n\n\t\tif(S.length() + 1 == T.length() & T.startsWith(S)) {\n\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}else {\n\n\t\t\tSystem.out.println(\"No\");\n\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String S = input.next();
String T = input.next();
input.close();
if(S.length() + 1 == T.length() & T.startsWith(S)) {
System.out.println("Yes");
}else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
75,
5
],
[
75,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
40,
41
],
[
33,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
43,
47
],
[
42,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
48,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
33,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
22,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
6,
72
],
[
72,
73
],
[
0,
74
],
[
74,
75
],
[
74,
76
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String S = scanner.next();\n String T = scanner.next();\n\n if (S.equals(T.substring(0,S.length()))) {\n String ID = T.substring(S.length());\n if (ID.length() != 1) {\n System.out.println(\"No\");\n System.exit(0);\n }\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String S = scanner.next();\n String T = scanner.next();\n\n if (S.equals(T.substring(0,S.length()))) {\n String ID = T.substring(S.length());\n if (ID.length() != 1) {\n System.out.println(\"No\");\n System.exit(0);\n }\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String S = scanner.next();\n String T = scanner.next();\n\n if (S.equals(T.substring(0,S.length()))) {\n String ID = T.substring(S.length());\n if (ID.length() != 1) {\n System.out.println(\"No\");\n System.exit(0);\n }\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n String S = scanner.next();\n String T = scanner.next();\n\n if (S.equals(T.substring(0,S.length()))) {\n String ID = T.substring(S.length());\n if (ID.length() != 1) {\n System.out.println(\"No\");\n System.exit(0);\n }\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"String S = scanner.next();",
"S",
"scanner.next()",
"scanner.next",
"scanner",
"String T = scanner.next();",
"T",
"scanner.next()",
"scanner.next",
"scanner",
"if (S.equals(T.substring(0,S.length()))) {\n String ID = T.substring(S.length());\n if (ID.length() != 1) {\n System.out.println(\"No\");\n System.exit(0);\n }\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"S.equals(T.substring(0,S.length()))",
"S.equals",
"S",
"T.substring(0,S.length())",
"T.substring",
"T",
"0",
"S.length()",
"S.length",
"S",
"{\n String ID = T.substring(S.length());\n if (ID.length() != 1) {\n System.out.println(\"No\");\n System.exit(0);\n }\n System.out.println(\"Yes\");\n }",
"String ID = T.substring(S.length());",
"ID",
"T.substring(S.length())",
"T.substring",
"T",
"S.length()",
"S.length",
"S",
"if (ID.length() != 1) {\n System.out.println(\"No\");\n System.exit(0);\n }",
"ID.length() != 1",
"ID.length()",
"ID.length",
"ID",
"1",
"{\n System.out.println(\"No\");\n System.exit(0);\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"System.exit(0)",
"System.exit",
"System",
"0",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String S = scanner.next();\n String T = scanner.next();\n\n if (S.equals(T.substring(0,S.length()))) {\n String ID = T.substring(S.length());\n if (ID.length() != 1) {\n System.out.println(\"No\");\n System.exit(0);\n }\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String S = scanner.next();\n String T = scanner.next();\n\n if (S.equals(T.substring(0,S.length()))) {\n String ID = T.substring(S.length());\n if (ID.length() != 1) {\n System.out.println(\"No\");\n System.exit(0);\n }\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String S = scanner.next();
String T = scanner.next();
if (S.equals(T.substring(0,S.length()))) {
String ID = T.substring(S.length());
if (ID.length() != 1) {
System.out.println("No");
System.exit(0);
}
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
17,
17,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
40,
4,
18,
18,
13,
13,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
87,
5
],
[
87,
6
],
[
6,
7
],
[
6,
8
],
[
87,
11
],
[
11,
12
],
[
11,
13
],
[
87,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
16,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
16,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
16,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
16,
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
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
57,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
67,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
16,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
14,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
] |
[
"import java.util.Scanner;\npublic class Main {\n\tstatic int[][] gyo2=new int[100000][12];\n\tstatic int count=0;\n\t@SuppressWarnings(\"resource\")\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tString S=sc.next();\n\t\tString T=sc.next();\n\t\tString[] s=S.split(\"\");\n\t\tString[] t=T.split(\"\");\n\t\tfor(int i=0;i<s.length;i++) {\n\t\t\tif(!s[i].equals(t[i])) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Yes\");\n\n}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tstatic int[][] gyo2=new int[100000][12];\n\tstatic int count=0;\n\t@SuppressWarnings(\"resource\")\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tString S=sc.next();\n\t\tString T=sc.next();\n\t\tString[] s=S.split(\"\");\n\t\tString[] t=T.split(\"\");\n\t\tfor(int i=0;i<s.length;i++) {\n\t\t\tif(!s[i].equals(t[i])) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Yes\");\n\n}\n\n}",
"Main",
"static int[][] gyo2=new int[100000][12];",
"gyo2",
"new int[100000][12]",
"100000",
"12",
"static int count=0;",
"count",
"0",
"@SuppressWarnings(\"resource\")\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tString S=sc.next();\n\t\tString T=sc.next();\n\t\tString[] s=S.split(\"\");\n\t\tString[] t=T.split(\"\");\n\t\tfor(int i=0;i<s.length;i++) {\n\t\t\tif(!s[i].equals(t[i])) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Yes\");\n\n}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tString S=sc.next();\n\t\tString T=sc.next();\n\t\tString[] s=S.split(\"\");\n\t\tString[] t=T.split(\"\");\n\t\tfor(int i=0;i<s.length;i++) {\n\t\t\tif(!s[i].equals(t[i])) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Yes\");\n\n}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String S=sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"String T=sc.next();",
"T",
"sc.next()",
"sc.next",
"sc",
"String[] s=S.split(\"\");",
"s",
"S.split(\"\")",
"S.split",
"S",
"\"\"",
"String[] t=T.split(\"\");",
"t",
"T.split(\"\")",
"T.split",
"T",
"\"\"",
"for(int i=0;i<s.length;i++) {\n\t\t\tif(!s[i].equals(t[i])) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<s.length",
"i",
"s.length",
"s",
"s.length",
"i++",
"i++",
"i",
"{\n\t\t\tif(!s[i].equals(t[i])) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(!s[i].equals(t[i])) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}",
"if(!s[i].equals(t[i])) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"!s[i].equals(t[i])",
"s[i].equals(t[i])",
"s[i].equals",
"s[i]",
"s",
"i",
"t[i]",
"t",
"i",
"{\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"System.exit(0)",
"System.exit",
"System",
"0",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"String[] args",
"args",
"public class Main {\n\tstatic int[][] gyo2=new int[100000][12];\n\tstatic int count=0;\n\t@SuppressWarnings(\"resource\")\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tString S=sc.next();\n\t\tString T=sc.next();\n\t\tString[] s=S.split(\"\");\n\t\tString[] t=T.split(\"\");\n\t\tfor(int i=0;i<s.length;i++) {\n\t\t\tif(!s[i].equals(t[i])) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Yes\");\n\n}\n\n}",
"public class Main {\n\tstatic int[][] gyo2=new int[100000][12];\n\tstatic int count=0;\n\t@SuppressWarnings(\"resource\")\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tString S=sc.next();\n\t\tString T=sc.next();\n\t\tString[] s=S.split(\"\");\n\t\tString[] t=T.split(\"\");\n\t\tfor(int i=0;i<s.length;i++) {\n\t\t\tif(!s[i].equals(t[i])) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Yes\");\n\n}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
static int[][] gyo2=new int[100000][12];
static int count=0;
@SuppressWarnings("resource")
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
String S=sc.next();
String T=sc.next();
String[] s=S.split("");
String[] t=T.split("");
for(int i=0;i<s.length;i++) {
if(!s[i].equals(t[i])) {
System.out.println("No");
System.exit(0);
}
}
System.out.println("Yes");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
2,
4,
18,
13,
2,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
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
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
23,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
28,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
32,
36
],
[
22,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
22,
44
],
[
44,
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 public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n String S = scanner.next();\n String T = scanner.next();\n\n if (T.startsWith(S) && T.length() == S.length() + 1) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n String S = scanner.next();\n String T = scanner.next();\n\n if (T.startsWith(S) && T.length() == S.length() + 1) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n String S = scanner.next();\n String T = scanner.next();\n\n if (T.startsWith(S) && T.length() == S.length() + 1) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n\n String S = scanner.next();\n String T = scanner.next();\n\n if (T.startsWith(S) && T.length() == S.length() + 1) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"String S = scanner.next();",
"S",
"scanner.next()",
"scanner.next",
"scanner",
"String T = scanner.next();",
"T",
"scanner.next()",
"scanner.next",
"scanner",
"if (T.startsWith(S) && T.length() == S.length() + 1) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"T.startsWith(S) && T.length() == S.length() + 1",
"T.startsWith(S)",
"T.startsWith",
"T",
"S",
"T.length() == S.length() + 1",
"T.length()",
"T.length",
"T",
"S.length() + 1",
"S.length()",
"S.length",
"S",
"1",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n String S = scanner.next();\n String T = scanner.next();\n\n if (T.startsWith(S) && T.length() == S.length() + 1) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n String S = scanner.next();\n String T = scanner.next();\n\n if (T.startsWith(S) && T.length() == S.length() + 1) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String S = scanner.next();
String T = scanner.next();
if (T.startsWith(S) && T.length() == S.length() + 1) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
2,
4,
18,
13,
17,
13,
4,
18,
13,
17,
13,
2,
4,
18,
13,
2,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
17,
4,
18,
13,
14,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
89,
8
],
[
89,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
26,
27
],
[
11,
28
],
[
28,
29
],
[
30,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
36,
40
],
[
30,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
45,
49
],
[
28,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
50,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
60,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
60,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
28,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
9,
86
],
[
86,
87
],
[
0,
88
],
[
88,
89
],
[
88,
90
]
] |
[
"import java.util.Scanner;\nimport java.util.regex.Pattern;\n\npublic class Main {\n public static void main(String[] args) {\n //文字列の入力受付\n Scanner inStr = new Scanner(System.in);\n String S = inStr.nextLine();\n String T = inStr.nextLine();\n inStr.close();\n\n /*\n * 以下の条件を満たすこと\n *・S,Tは英小文字、文字数は1~10文字\n *・|T| = |S| + 1\n */\n if (Pattern.matches(\"[a-z]{1,10}\", S) && Pattern.matches(\"[a-z]+\", T)\n && T.length() == S.length() + 1) {\n //Tの文字列がSの文字列を全て含んでいること\n String subStr = T.substring(0, S.length());\n\n //判定結果を出力\n if (S.equals(subStr)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n } else {\n System.out.println(\"No\");\n }\n\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.regex.Pattern;",
"Pattern",
"java.util.regex",
"public class Main {\n public static void main(String[] args) {\n //文字列の入力受付\n Scanner inStr = new Scanner(System.in);\n String S = inStr.nextLine();\n String T = inStr.nextLine();\n inStr.close();\n\n /*\n * 以下の条件を満たすこと\n *・S,Tは英小文字、文字数は1~10文字\n *・|T| = |S| + 1\n */\n if (Pattern.matches(\"[a-z]{1,10}\", S) && Pattern.matches(\"[a-z]+\", T)\n && T.length() == S.length() + 1) {\n //Tの文字列がSの文字列を全て含んでいること\n String subStr = T.substring(0, S.length());\n\n //判定結果を出力\n if (S.equals(subStr)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n } else {\n System.out.println(\"No\");\n }\n\n }\n\n}",
"Main",
"public static void main(String[] args) {\n //文字列の入力受付\n Scanner inStr = new Scanner(System.in);\n String S = inStr.nextLine();\n String T = inStr.nextLine();\n inStr.close();\n\n /*\n * 以下の条件を満たすこと\n *・S,Tは英小文字、文字数は1~10文字\n *・|T| = |S| + 1\n */\n if (Pattern.matches(\"[a-z]{1,10}\", S) && Pattern.matches(\"[a-z]+\", T)\n && T.length() == S.length() + 1) {\n //Tの文字列がSの文字列を全て含んでいること\n String subStr = T.substring(0, S.length());\n\n //判定結果を出力\n if (S.equals(subStr)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n } else {\n System.out.println(\"No\");\n }\n\n }",
"main",
"{\n //文字列の入力受付\n Scanner inStr = new Scanner(System.in);\n String S = inStr.nextLine();\n String T = inStr.nextLine();\n inStr.close();\n\n /*\n * 以下の条件を満たすこと\n *・S,Tは英小文字、文字数は1~10文字\n *・|T| = |S| + 1\n */\n if (Pattern.matches(\"[a-z]{1,10}\", S) && Pattern.matches(\"[a-z]+\", T)\n && T.length() == S.length() + 1) {\n //Tの文字列がSの文字列を全て含んでいること\n String subStr = T.substring(0, S.length());\n\n //判定結果を出力\n if (S.equals(subStr)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n } else {\n System.out.println(\"No\");\n }\n\n }",
"Scanner inStr = new Scanner(System.in);",
"inStr",
"new Scanner(System.in)",
"String S = inStr.nextLine();",
"S",
"inStr.nextLine()",
"inStr.nextLine",
"inStr",
"String T = inStr.nextLine();",
"T",
"inStr.nextLine()",
"inStr.nextLine",
"inStr",
"inStr.close()",
"inStr.close",
"inStr",
"if (Pattern.matches(\"[a-z]{1,10}\", S) && Pattern.matches(\"[a-z]+\", T)\n && T.length() == S.length() + 1) {\n //Tの文字列がSの文字列を全て含んでいること\n String subStr = T.substring(0, S.length());\n\n //判定結果を出力\n if (S.equals(subStr)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n } else {\n System.out.println(\"No\");\n }",
"Pattern.matches(\"[a-z]{1,10}\", S) && Pattern.matches(\"[a-z]+\", T)\n && T.length() == S.length() + 1",
"Pattern.matches(\"[a-z]{1,10}\", S) && Pattern.matches(\"[a-z]+\", T)\n && T.length() == S.length() + 1",
"Pattern.matches(\"[a-z]{1,10}\", S)",
"Pattern.matches",
"Pattern",
"\"[a-z]{1,10}\"",
"S",
"Pattern.matches(\"[a-z]+\", T)",
"Pattern.matches",
"Pattern",
"\"[a-z]+\"",
"T",
"T.length() == S.length() + 1",
"T.length()",
"T.length",
"T",
"S.length() + 1",
"S.length()",
"S.length",
"S",
"1",
"{\n //Tの文字列がSの文字列を全て含んでいること\n String subStr = T.substring(0, S.length());\n\n //判定結果を出力\n if (S.equals(subStr)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }",
"String subStr = T.substring(0, S.length());",
"subStr",
"T.substring(0, S.length())",
"T.substring",
"T",
"0",
"S.length()",
"S.length",
"S",
"if (S.equals(subStr)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"S.equals(subStr)",
"S.equals",
"S",
"subStr",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n //文字列の入力受付\n Scanner inStr = new Scanner(System.in);\n String S = inStr.nextLine();\n String T = inStr.nextLine();\n inStr.close();\n\n /*\n * 以下の条件を満たすこと\n *・S,Tは英小文字、文字数は1~10文字\n *・|T| = |S| + 1\n */\n if (Pattern.matches(\"[a-z]{1,10}\", S) && Pattern.matches(\"[a-z]+\", T)\n && T.length() == S.length() + 1) {\n //Tの文字列がSの文字列を全て含んでいること\n String subStr = T.substring(0, S.length());\n\n //判定結果を出力\n if (S.equals(subStr)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n } else {\n System.out.println(\"No\");\n }\n\n }\n\n}",
"public class Main {\n public static void main(String[] args) {\n //文字列の入力受付\n Scanner inStr = new Scanner(System.in);\n String S = inStr.nextLine();\n String T = inStr.nextLine();\n inStr.close();\n\n /*\n * 以下の条件を満たすこと\n *・S,Tは英小文字、文字数は1~10文字\n *・|T| = |S| + 1\n */\n if (Pattern.matches(\"[a-z]{1,10}\", S) && Pattern.matches(\"[a-z]+\", T)\n && T.length() == S.length() + 1) {\n //Tの文字列がSの文字列を全て含んでいること\n String subStr = T.substring(0, S.length());\n\n //判定結果を出力\n if (S.equals(subStr)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n } else {\n System.out.println(\"No\");\n }\n\n }\n\n}",
"Main"
] |
import java.util.Scanner;
import java.util.regex.Pattern;
public class Main {
public static void main(String[] args) {
//文字列の入力受付
Scanner inStr = new Scanner(System.in);
String S = inStr.nextLine();
String T = inStr.nextLine();
inStr.close();
/*
* 以下の条件を満たすこと
*・S,Tは英小文字、文字数は1~10文字
*・|T| = |S| + 1
*/
if (Pattern.matches("[a-z]{1,10}", S) && Pattern.matches("[a-z]+", T)
&& T.length() == S.length() + 1) {
//Tの文字列がSの文字列を全て含んでいること
String subStr = T.substring(0, S.length());
//判定結果を出力
if (S.equals(subStr)) {
System.out.println("Yes");
} else {
System.out.println("No");
}
} else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
44,
5
],
[
44,
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
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
22,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
22,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
6,
41
],
[
41,
42
],
[
0,
43
],
[
43,
44
],
[
43,
45
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n String t = scanner.nextLine();\n if(t.startsWith(s)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n String t = scanner.nextLine();\n if(t.startsWith(s)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n String t = scanner.nextLine();\n if(t.startsWith(s)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n String t = scanner.nextLine();\n if(t.startsWith(s)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"String s = scanner.nextLine();",
"s",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"String t = scanner.nextLine();",
"t",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"if(t.startsWith(s)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"t.startsWith(s)",
"t.startsWith",
"t",
"s",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n String t = scanner.nextLine();\n if(t.startsWith(s)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n String t = scanner.nextLine();\n if(t.startsWith(s)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String s = scanner.nextLine();
String t = scanner.nextLine();
if(t.startsWith(s)){
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
4,
18,
13,
17,
2,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
141,
8
],
[
141,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
28,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
32,
36
],
[
26,
37
],
[
25,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
25,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
9,
50
],
[
50,
51
],
[
141,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
52,
56
],
[
56,
57
],
[
52,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
52,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
67,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
77,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
66,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
52,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
99,
100
],
[
52,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
108,
109
],
[
52,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
117,
118
],
[
52,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
125,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
121,
138
],
[
138,
139
],
[
0,
140
],
[
140,
141
],
[
140,
142
]
] |
[
"/*\n *created by Kraken on 12-05-2020 at 15:29\n */\nimport java.util.*;\nimport java.io.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n String s = sc.next(), t = sc.next();\n if (t.substring(0, t.length() - 1).equals(s))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n\n static class FastReader {\n\n BufferedReader br;\n\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n String s = sc.next(), t = sc.next();\n if (t.substring(0, t.length() - 1).equals(s))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n\n static class FastReader {\n\n BufferedReader br;\n\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n FastReader sc = new FastReader();\n String s = sc.next(), t = sc.next();\n if (t.substring(0, t.length() - 1).equals(s))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }",
"main",
"{\n FastReader sc = new FastReader();\n String s = sc.next(), t = sc.next();\n if (t.substring(0, t.length() - 1).equals(s))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }",
"FastReader sc = new FastReader();",
"sc",
"new FastReader()",
"String s = sc.next()",
"s",
"sc.next()",
"sc.next",
"sc",
"t = sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"if (t.substring(0, t.length() - 1).equals(s))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");",
"t.substring(0, t.length() - 1).equals(s)",
"t.substring(0, t.length() - 1).equals",
"t.substring(0, t.length() - 1)",
"t.substring",
"t",
"0",
"t.length() - 1",
"t.length()",
"t.length",
"t",
"1",
"s",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"static class FastReader {\n\n BufferedReader br;\n\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"FastReader",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\n }\n catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n String s = sc.next(), t = sc.next();\n if (t.substring(0, t.length() - 1).equals(s))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n\n static class FastReader {\n\n BufferedReader br;\n\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n FastReader sc = new FastReader();\n String s = sc.next(), t = sc.next();\n if (t.substring(0, t.length() - 1).equals(s))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n\n static class FastReader {\n\n BufferedReader br;\n\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n}",
"Main"
] |
/*
*created by Kraken on 12-05-2020 at 15:29
*/
import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) {
FastReader sc = new FastReader();
String s = sc.next(), t = sc.next();
if (t.substring(0, t.length() - 1).equals(s))
System.out.println("Yes");
else
System.out.println("No");
}
static class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
}
catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
str = br.readLine();
}
catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
2,
2,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
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
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
28,
32
],
[
32,
33
],
[
33,
34
],
[
27,
35
],
[
26,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
25,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
25,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\n sc.close();\n\n if (T.length() - S.length() == 1 && T.startsWith(S)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\n sc.close();\n\n if (T.length() - S.length() == 1 && T.startsWith(S)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\n sc.close();\n\n if (T.length() - S.length() == 1 && T.startsWith(S)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\n sc.close();\n\n if (T.length() - S.length() == 1 && T.startsWith(S)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"String T = sc.next();",
"T",
"sc.next()",
"sc.next",
"sc",
"sc.close()",
"sc.close",
"sc",
"if (T.length() - S.length() == 1 && T.startsWith(S)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"T.length() - S.length() == 1 && T.startsWith(S)",
"T.length() - S.length() == 1",
"T.length() - S.length()",
"T.length()",
"T.length",
"T",
"S.length()",
"S.length",
"S",
"1",
"T.startsWith(S)",
"T.startsWith",
"T",
"S",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\n sc.close();\n\n if (T.length() - S.length() == 1 && T.startsWith(S)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\n sc.close();\n\n if (T.length() - S.length() == 1 && T.startsWith(S)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String S = sc.next();
String T = sc.next();
sc.close();
if (T.length() - S.length() == 1 && T.startsWith(S)) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
56,
5
],
[
56,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
28,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
6,
53
],
[
53,
54
],
[
0,
55
],
[
55,
56
],
[
55,
57
]
] |
[
"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 a=\"\";\n String b=\"\";\n a=sc.nextLine();\n b=sc.nextLine();\n\n if(a.equals(b.substring(0,a.length()))){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n public static void main(String []args){\n Scanner sc = new Scanner(System.in);\n String a=\"\";\n String b=\"\";\n a=sc.nextLine();\n b=sc.nextLine();\n\n if(a.equals(b.substring(0,a.length()))){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n\n }\n\n}",
"Main",
"public static void main(String []args){\n Scanner sc = new Scanner(System.in);\n String a=\"\";\n String b=\"\";\n a=sc.nextLine();\n b=sc.nextLine();\n\n if(a.equals(b.substring(0,a.length()))){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String a=\"\";\n String b=\"\";\n a=sc.nextLine();\n b=sc.nextLine();\n\n if(a.equals(b.substring(0,a.length()))){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String a=\"\";",
"a",
"\"\"",
"String b=\"\";",
"b",
"\"\"",
"a=sc.nextLine()",
"a",
"sc.nextLine()",
"sc.nextLine",
"sc",
"b=sc.nextLine()",
"b",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(a.equals(b.substring(0,a.length()))){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"a.equals(b.substring(0,a.length()))",
"a.equals",
"a",
"b.substring(0,a.length())",
"b.substring",
"b",
"0",
"a.length()",
"a.length",
"a",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String []args",
"args",
"public class Main{\n\n public static void main(String []args){\n Scanner sc = new Scanner(System.in);\n String a=\"\";\n String b=\"\";\n a=sc.nextLine();\n b=sc.nextLine();\n\n if(a.equals(b.substring(0,a.length()))){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n\n }\n\n}",
"public class Main{\n\n public static void main(String []args){\n Scanner sc = new Scanner(System.in);\n String a=\"\";\n String b=\"\";\n a=sc.nextLine();\n b=sc.nextLine();\n\n if(a.equals(b.substring(0,a.length()))){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\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);
String a="";
String b="";
a=sc.nextLine();
b=sc.nextLine();
if(a.equals(b.substring(0,a.length()))){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
2,
2,
4,
18,
13,
17,
4,
18,
13,
2,
4,
18,
13,
17,
2,
4,
18,
13,
17,
2,
4,
18,
4,
18,
13,
17,
2,
4,
18,
13,
17,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
25,
24
],
[
40,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
27,
31
],
[
26,
32
],
[
32,
33
],
[
33,
34
],
[
25,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
35,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
40,
44
],
[
25,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
52,
56
],
[
46,
57
],
[
45,
58
],
[
22,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
22,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
6,
73
],
[
73,
74
]
] |
[
"import java.util.Scanner;\n\nclass Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.next();\n\n if(s.length() + 1 == t.length() && s.length() >= 1 && s.length() <= 10 && t.substring(0, t.length()-1).equals(s) == true){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.next();\n\n if(s.length() + 1 == t.length() && s.length() >= 1 && s.length() <= 10 && t.substring(0, t.length()-1).equals(s) == true){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.next();\n\n if(s.length() + 1 == t.length() && s.length() >= 1 && s.length() <= 10 && t.substring(0, t.length()-1).equals(s) == true){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.next();\n\n if(s.length() + 1 == t.length() && s.length() >= 1 && s.length() <= 10 && t.substring(0, t.length()-1).equals(s) == true){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String t = sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"if(s.length() + 1 == t.length() && s.length() >= 1 && s.length() <= 10 && t.substring(0, t.length()-1).equals(s) == true){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }",
"s.length() + 1 == t.length() && s.length() >= 1 && s.length() <= 10 && t.substring(0, t.length()-1).equals(s) == true",
"s.length() <= 10",
"s.length() + 1 == t.length() && s.length() >= 1 && s.length() <= 10 && t.substring(0, t.length()-1).equals(s) == true",
"s.length() + 1 == t.length()",
"s.length() + 1",
"s.length()",
"s.length",
"s",
"1",
"t.length()",
"t.length",
"t",
"s.length() >= 1",
"s.length()",
"s.length",
"s",
"1",
"s.length() <= 10",
"s.length()",
"s.length",
"s",
"10",
"t.substring(0, t.length()-1).equals(s) == true",
"t.substring(0, t.length()-1).equals(s)",
"t.substring(0, t.length()-1).equals",
"t.substring(0, t.length()-1)",
"t.substring",
"t",
"0",
"t.length()-1",
"t.length()",
"t.length",
"t",
"1",
"s",
"true",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String args[]",
"args"
] |
import java.util.Scanner;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
String s = sc.next();
String t = sc.next();
if(s.length() + 1 == t.length() && s.length() >= 1 && s.length() <= 10 && t.substring(0, t.length()-1).equals(s) == true){
System.out.println("Yes");
}
else{
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
13,
30,
40,
13,
14,
2,
13,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
35,
45
],
[
45,
46
],
[
46,
47
],
[
35,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
61,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
6,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
] |
[
"//package atcoder;\n \nimport java.util.*;\n \npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s1 = sc.next();\n\t\tString s2 = sc.next();\n\t\t\n\t\tchar S1[] = s1.toCharArray();\n\t\tchar S2[] = s2.toCharArray();\n\t\n\t\tint count = 0;\n\t\tfor(int i=0;i<S1.length;i++) {\n\t\t\tif(S1[i] == S2[i]) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tif(count == S1.length) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s1 = sc.next();\n\t\tString s2 = sc.next();\n\t\t\n\t\tchar S1[] = s1.toCharArray();\n\t\tchar S2[] = s2.toCharArray();\n\t\n\t\tint count = 0;\n\t\tfor(int i=0;i<S1.length;i++) {\n\t\t\tif(S1[i] == S2[i]) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tif(count == S1.length) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s1 = sc.next();\n\t\tString s2 = sc.next();\n\t\t\n\t\tchar S1[] = s1.toCharArray();\n\t\tchar S2[] = s2.toCharArray();\n\t\n\t\tint count = 0;\n\t\tfor(int i=0;i<S1.length;i++) {\n\t\t\tif(S1[i] == S2[i]) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tif(count == S1.length) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s1 = sc.next();\n\t\tString s2 = sc.next();\n\t\t\n\t\tchar S1[] = s1.toCharArray();\n\t\tchar S2[] = s2.toCharArray();\n\t\n\t\tint count = 0;\n\t\tfor(int i=0;i<S1.length;i++) {\n\t\t\tif(S1[i] == S2[i]) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tif(count == S1.length) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s1 = sc.next();",
"s1",
"sc.next()",
"sc.next",
"sc",
"String s2 = sc.next();",
"s2",
"sc.next()",
"sc.next",
"sc",
"char S1[] = s1.toCharArray();",
"S1",
"s1.toCharArray()",
"s1.toCharArray",
"s1",
"char S2[] = s2.toCharArray();",
"S2",
"s2.toCharArray()",
"s2.toCharArray",
"s2",
"int count = 0;",
"count",
"0",
"for(int i=0;i<S1.length;i++) {\n\t\t\tif(S1[i] == S2[i]) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<S1.length",
"i",
"S1.length",
"S1",
"S1.length",
"i++",
"i++",
"i",
"{\n\t\t\tif(S1[i] == S2[i]) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(S1[i] == S2[i]) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}",
"if(S1[i] == S2[i]) {\n\t\t\t\tcount ++;\n\t\t\t}",
"S1[i] == S2[i]",
"S1[i]",
"S1",
"i",
"S2[i]",
"S2",
"i",
"{\n\t\t\t\tcount ++;\n\t\t\t}",
"count ++",
"count",
"if(count == S1.length) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"count == S1.length",
"count",
"S1.length",
"S1",
"S1.length",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s1 = sc.next();\n\t\tString s2 = sc.next();\n\t\t\n\t\tchar S1[] = s1.toCharArray();\n\t\tchar S2[] = s2.toCharArray();\n\t\n\t\tint count = 0;\n\t\tfor(int i=0;i<S1.length;i++) {\n\t\t\tif(S1[i] == S2[i]) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tif(count == S1.length) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s1 = sc.next();\n\t\tString s2 = sc.next();\n\t\t\n\t\tchar S1[] = s1.toCharArray();\n\t\tchar S2[] = s2.toCharArray();\n\t\n\t\tint count = 0;\n\t\tfor(int i=0;i<S1.length;i++) {\n\t\t\tif(S1[i] == S2[i]) {\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t}\n\t\tif(count == S1.length) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main"
] |
//package atcoder;
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s1 = sc.next();
String s2 = sc.next();
char S1[] = s1.toCharArray();
char S2[] = s2.toCharArray();
int count = 0;
for(int i=0;i<S1.length;i++) {
if(S1[i] == S2[i]) {
count ++;
}
}
if(count == S1.length) {
System.out.println("Yes");
}else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
17,
12,
13,
30,
41,
13,
4,
13,
41,
13,
4,
13,
14,
2,
4,
18,
13,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
12,
13,
30,
0,
13,
20,
41,
13,
4,
18,
13,
17,
14,
2,
13,
17,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
41,
13,
17,
42,
13,
30,
4,
13,
38,
5,
13,
30,
37,
20,
30,
4,
18,
13,
17,
14,
2,
4,
18,
13,
17,
30,
4,
18,
13,
4,
18,
18,
13,
13,
17,
30,
0,
13,
17,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
236,
8
],
[
236,
9
],
[
9,
10
],
[
236,
11
],
[
11,
12
],
[
11,
13
],
[
236,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
16,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
27,
31
],
[
26,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
25,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
236,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
49,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
64,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
49,
74
],
[
74,
75
],
[
74,
76
],
[
49,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
82,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
88,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
94,
98
],
[
93,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
99,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
93,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
47,
113
],
[
113,
114
],
[
236,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
118,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
128,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
117,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
236,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
149,
150
],
[
236,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
155,
158
],
[
158,
159
],
[
236,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
164,
167
],
[
167,
168
],
[
236,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
176,
181
],
[
181,
182
],
[
181,
183
],
[
176,
184
],
[
184,
185
],
[
185,
186
],
[
176,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
188,
192
],
[
192,
193
],
[
171,
194
],
[
194,
195
],
[
169,
196
],
[
196,
197
],
[
236,
198
],
[
198,
199
],
[
198,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
236,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
213,
218
],
[
218,
219
],
[
218,
220
],
[
213,
221
],
[
221,
222
],
[
222,
223
],
[
213,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
225,
229
],
[
229,
230
],
[
208,
231
],
[
231,
232
],
[
206,
233
],
[
233,
234
],
[
0,
235
],
[
235,
236
],
[
235,
237
]
] |
[
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\t\n\t\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tString S = next();\n\t\tString T = next();\n\t\tif(T.indexOf(S, 0) == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\t\n\t\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tString S = next();\n\t\tString T = next();\n\t\tif(T.indexOf(S, 0) == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n}",
"Main",
"//Switch input source (stdin/file)\n\tprivate static BufferedReader br;",
"br",
"//Input read utility\n\tprivate static StringTokenizer tokenizer = null;",
"tokenizer",
"null",
"private static void solve(){\n\t\t//Implement solution here.\n\t\tString S = next();\n\t\tString T = next();\n\t\tif(T.indexOf(S, 0) == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"solve",
"{\n\t\t//Implement solution here.\n\t\tString S = next();\n\t\tString T = next();\n\t\tif(T.indexOf(S, 0) == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"String S = next();",
"S",
"next()",
"next",
"String T = next();",
"T",
"next()",
"next",
"if(T.indexOf(S, 0) == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"T.indexOf(S, 0) == 0",
"T.indexOf(S, 0)",
"T.indexOf",
"T",
"S",
"0",
"0",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"public static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}",
"main",
"{\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String debugDataPath = System.getenv(\"DD_PATH\");",
"debugDataPath",
"System.getenv(\"DD_PATH\")",
"System.getenv",
"System",
"\"DD_PATH\"",
"if(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}",
"debugDataPath != null",
"debugDataPath",
"null",
"{\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}",
"try{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"Exception e",
"{\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}",
"br = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))))",
"br",
"new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))))",
"boolean hasNext = true;",
"hasNext",
"true",
"while(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}",
"hasNext",
"{\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}",
"solve()",
"solve",
"try{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"Exception e",
"{\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}",
"br.mark(1)",
"br.mark",
"br",
"1",
"if(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}",
"br.read() > 0",
"br.read()",
"br.read",
"br",
"0",
"{\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t}",
"br.reset()",
"br.reset",
"br",
"System.out.println(\"---\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"---\"",
"{\n\t\t\t\t\thasNext = false;\n\t\t\t\t}",
"hasNext = false",
"hasNext",
"false",
"String[] args",
"args",
"public static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}",
"next",
"{\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}",
"while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}",
"try {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"Exception e",
"{\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t}",
"tokenizer = new StringTokenizer(br.readLine())",
"tokenizer",
"new StringTokenizer(br.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}",
"ni",
"{\n\t\treturn Integer.parseInt(next());\n\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}",
"nl",
"{\n\t\treturn Long.parseLong(next());\n\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}",
"nd",
"{\n\t\treturn Double.parseDouble(next());\n\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"//Get next int array from one line\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}",
"na",
"{\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = ni();",
"a[i] = ni()",
"a[i]",
"a",
"i",
"ni()",
"ni",
"return a;",
"a",
"int n",
"n",
"//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}",
"ns",
"{\n\t\treturn next().toCharArray();\n\t}",
"return next().toCharArray();",
"next().toCharArray()",
"next().toCharArray",
"next()",
"next",
"//Get next long array from one line\n\tprivate static long[] nal(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}",
"nal",
"{\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}",
"long[] a = new long[n];",
"a",
"new long[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"a[i] = nl();",
"a[i] = nl()",
"a[i]",
"a",
"i",
"nl()",
"nl",
"return a;",
"a",
"int n",
"n",
"public class Main {\t\n\t\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tString S = next();\n\t\tString T = next();\n\t\tif(T.indexOf(S, 0) == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n}",
"public class Main {\t\n\t\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tString S = next();\n\t\tString T = next();\n\t\tif(T.indexOf(S, 0) == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n}",
"Main"
] |
import java.util.*;
import java.io.*;
public class Main {
private static void solve(){
//Implement solution here.
String S = next();
String T = next();
if(T.indexOf(S, 0) == 0) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
//Switch input source (stdin/file)
private static BufferedReader br;
public static void main(String[] args){
br = new BufferedReader(new InputStreamReader(System.in));
String debugDataPath = System.getenv("DD_PATH");
if(debugDataPath != null){
try{
br = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));
}catch(Exception e){
throw new RuntimeException(e);
}
}
boolean hasNext = true;
while(hasNext){
solve();
try{
br.mark(1);
if(br.read() > 0){
br.reset();
System.out.println("---");
} else {
hasNext = false;
}
}catch(Exception e){
throw new RuntimeException(e);
}
}
}
//Input read utility
private static StringTokenizer tokenizer = null;
public static String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(br.readLine());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
//Get next single int
private static int ni() {
return Integer.parseInt(next());
}
//Get next single long
private static long nl() {
return Long.parseLong(next());
}
//Get next single double
private static double nd() {
return Double.parseDouble(next());
}
//Get next int array from one line
private static int[] na(int n) {
int[] a = new int[n];
for (int i = 0; i < n; i++)
a[i] = ni();
return a;
}
//Get next char array from one line
private static char[] ns() {
return next().toCharArray();
}
//Get next long array from one line
private static long[] nal(int n) {
long[] a = new long[n];
for (int i = 0; i < n; i++)
a[i] = nl();
return a;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
13,
30,
0,
13,
17,
3,
14,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
42,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
42,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
8,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
64,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
8,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
6,
85
],
[
85,
86
]
] |
[
"import java.util.*;\nclass Main {\n public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n String s=sc.next();\n String t=sc.next();\n int l=s.length();\n boolean ans=true;\n for(int i=0;i<l;i++){\n char S=s.charAt(i);\n char T=t.charAt(i);\n if(S!=T){\n ans=false;\n break;\n }\n }\n if(ans){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n \n \n System.out.println();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n String s=sc.next();\n String t=sc.next();\n int l=s.length();\n boolean ans=true;\n for(int i=0;i<l;i++){\n char S=s.charAt(i);\n char T=t.charAt(i);\n if(S!=T){\n ans=false;\n break;\n }\n }\n if(ans){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n \n \n System.out.println();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n String s=sc.next();\n String t=sc.next();\n int l=s.length();\n boolean ans=true;\n for(int i=0;i<l;i++){\n char S=s.charAt(i);\n char T=t.charAt(i);\n if(S!=T){\n ans=false;\n break;\n }\n }\n if(ans){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n \n \n System.out.println();\n }",
"main",
"{\n Scanner sc= new Scanner(System.in);\n String s=sc.next();\n String t=sc.next();\n int l=s.length();\n boolean ans=true;\n for(int i=0;i<l;i++){\n char S=s.charAt(i);\n char T=t.charAt(i);\n if(S!=T){\n ans=false;\n break;\n }\n }\n if(ans){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n \n \n System.out.println();\n }",
"Scanner sc= new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s=sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String t=sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"int l=s.length();",
"l",
"s.length()",
"s.length",
"s",
"boolean ans=true;",
"ans",
"true",
"for(int i=0;i<l;i++){\n char S=s.charAt(i);\n char T=t.charAt(i);\n if(S!=T){\n ans=false;\n break;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<l",
"i",
"l",
"i++",
"i++",
"i",
"{\n char S=s.charAt(i);\n char T=t.charAt(i);\n if(S!=T){\n ans=false;\n break;\n }\n }",
"{\n char S=s.charAt(i);\n char T=t.charAt(i);\n if(S!=T){\n ans=false;\n break;\n }\n }",
"char S=s.charAt(i);",
"S",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"char T=t.charAt(i);",
"T",
"t.charAt(i)",
"t.charAt",
"t",
"i",
"if(S!=T){\n ans=false;\n break;\n }",
"S!=T",
"S",
"T",
"{\n ans=false;\n break;\n }",
"ans=false",
"ans",
"false",
"break;",
"if(ans){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }",
"ans",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args"
] |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc= new Scanner(System.in);
String s=sc.next();
String t=sc.next();
int l=s.length();
boolean ans=true;
for(int i=0;i<l;i++){
char S=s.charAt(i);
char T=t.charAt(i);
if(S!=T){
ans=false;
break;
}
}
if(ans){
System.out.println("Yes");
}
else{
System.out.println("No");
}
System.out.println();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
2,
4,
18,
4,
18,
13,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
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
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
23,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
28,
36
],
[
22,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
22,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
] |
[
"import java.util.Scanner;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString t = sc.nextLine();\n\n\t\tif(t.startsWith(s) && t.replaceFirst(s, \"\").length() == 1 ) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tsc.close();\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString t = sc.nextLine();\n\n\t\tif(t.startsWith(s) && t.replaceFirst(s, \"\").length() == 1 ) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tsc.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString t = sc.nextLine();\n\n\t\tif(t.startsWith(s) && t.replaceFirst(s, \"\").length() == 1 ) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tsc.close();\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString t = sc.nextLine();\n\n\t\tif(t.startsWith(s) && t.replaceFirst(s, \"\").length() == 1 ) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String t = sc.nextLine();",
"t",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(t.startsWith(s) && t.replaceFirst(s, \"\").length() == 1 ) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"t.startsWith(s) && t.replaceFirst(s, \"\").length() == 1",
"t.startsWith(s)",
"t.startsWith",
"t",
"s",
"t.replaceFirst(s, \"\").length() == 1",
"t.replaceFirst(s, \"\").length()",
"t.replaceFirst(s, \"\").length",
"t.replaceFirst(s, \"\")",
"t.replaceFirst",
"t",
"s",
"\"\"",
"1",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString t = sc.nextLine();\n\n\t\tif(t.startsWith(s) && t.replaceFirst(s, \"\").length() == 1 ) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tsc.close();\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString t = sc.nextLine();\n\n\t\tif(t.startsWith(s) && t.replaceFirst(s, \"\").length() == 1 ) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tsc.close();\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 s = sc.nextLine();
String t = sc.nextLine();
if(t.startsWith(s) && t.replaceFirst(s, "").length() == 1 ) {
System.out.println("Yes");
}else {
System.out.println("No");
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
8,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
17,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
46,
5
],
[
46,
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
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
27,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
6,
43
],
[
43,
44
],
[
0,
45
],
[
45,
46
],
[
45,
47
]
] |
[
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 文字列の入力\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\n\t\t// 出力\n\t\tSystem.out.println(s.equals(t.substring(0, s.length())) ? \"Yes\" : \"No\");\n\t\tsc.close();\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 文字列の入力\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\n\t\t// 出力\n\t\tSystem.out.println(s.equals(t.substring(0, s.length())) ? \"Yes\" : \"No\");\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 文字列の入力\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\n\t\t// 出力\n\t\tSystem.out.println(s.equals(t.substring(0, s.length())) ? \"Yes\" : \"No\");\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 文字列の入力\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\n\t\t// 出力\n\t\tSystem.out.println(s.equals(t.substring(0, s.length())) ? \"Yes\" : \"No\");\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String t = sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"System.out.println(s.equals(t.substring(0, s.length())) ? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.equals(t.substring(0, s.length())) ? \"Yes\" : \"No\"",
"s.equals(t.substring(0, s.length()))",
"s.equals",
"s",
"t.substring(0, s.length())",
"t.substring",
"t",
"0",
"s.length()",
"s.length",
"s",
"\"Yes\"",
"\"No\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 文字列の入力\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\n\t\t// 出力\n\t\tSystem.out.println(s.equals(t.substring(0, s.length())) ? \"Yes\" : \"No\");\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 文字列の入力\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\n\t\t// 出力\n\t\tSystem.out.println(s.equals(t.substring(0, s.length())) ? \"Yes\" : \"No\");\n\t\tsc.close();\n\t}\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 文字列の入力
String s = sc.next();
String t = sc.next();
// 出力
System.out.println(s.equals(t.substring(0, s.length())) ? "Yes" : "No");
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
14,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
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
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
28,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
33,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
33,
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;\npublic class Main{\n public static void main(String[] args){\n Scanner input=new Scanner(System.in);\n String s=input.next();\n String t=input.next();\n String temp=t.substring(0,t.length()-1);\n if(temp.equals(s)){\n System.out.print(\"Yes\");\n }else System.out.print(\"No\");\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n Scanner input=new Scanner(System.in);\n String s=input.next();\n String t=input.next();\n String temp=t.substring(0,t.length()-1);\n if(temp.equals(s)){\n System.out.print(\"Yes\");\n }else System.out.print(\"No\");\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner input=new Scanner(System.in);\n String s=input.next();\n String t=input.next();\n String temp=t.substring(0,t.length()-1);\n if(temp.equals(s)){\n System.out.print(\"Yes\");\n }else System.out.print(\"No\");\n }",
"main",
"{\n Scanner input=new Scanner(System.in);\n String s=input.next();\n String t=input.next();\n String temp=t.substring(0,t.length()-1);\n if(temp.equals(s)){\n System.out.print(\"Yes\");\n }else System.out.print(\"No\");\n }",
"Scanner input=new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"String s=input.next();",
"s",
"input.next()",
"input.next",
"input",
"String t=input.next();",
"t",
"input.next()",
"input.next",
"input",
"String temp=t.substring(0,t.length()-1);",
"temp",
"t.substring(0,t.length()-1)",
"t.substring",
"t",
"0",
"t.length()-1",
"t.length()",
"t.length",
"t",
"1",
"if(temp.equals(s)){\n System.out.print(\"Yes\");\n }else System.out.print(\"No\");",
"temp.equals(s)",
"temp.equals",
"temp",
"s",
"{\n System.out.print(\"Yes\");\n }",
"System.out.print(\"Yes\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.print(\"No\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner input=new Scanner(System.in);\n String s=input.next();\n String t=input.next();\n String temp=t.substring(0,t.length()-1);\n if(temp.equals(s)){\n System.out.print(\"Yes\");\n }else System.out.print(\"No\");\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner input=new Scanner(System.in);\n String s=input.next();\n String t=input.next();\n String temp=t.substring(0,t.length()-1);\n if(temp.equals(s)){\n System.out.print(\"Yes\");\n }else System.out.print(\"No\");\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner input=new Scanner(System.in);
String s=input.next();
String t=input.next();
String temp=t.substring(0,t.length()-1);
if(temp.equals(s)){
System.out.print("Yes");
}else System.out.print("No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
14,
2,
4,
18,
13,
2,
4,
18,
13,
17,
30,
29,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
30,
29,
17,
29,
17,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
8,
4,
13,
13,
13,
17,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
87,
5
],
[
87,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
12,
13
],
[
10,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
14,
18
],
[
9,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
22,
32
],
[
32,
33
],
[
33,
34
],
[
22,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
38,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
37,
47
],
[
47,
48
],
[
48,
49
],
[
8,
50
],
[
50,
51
],
[
6,
52
],
[
52,
53
],
[
6,
54
],
[
54,
55
],
[
87,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
58,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
58,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
78,
81
],
[
77,
82
],
[
77,
83
],
[
56,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n static boolean test(String s, String t) {\n if (t.length() != s.length() + 1) {\n return false;\n }\n for (int i=0;i<s.length();i++) {\n if (s.charAt(i) != t.charAt(i)) {\n return false;\n }\n }\n\n return true;\n }\n\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String s = in.next(), t = in.next();\n System.out.println(test(s, t) ? \"Yes\" : \"No\");\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n static boolean test(String s, String t) {\n if (t.length() != s.length() + 1) {\n return false;\n }\n for (int i=0;i<s.length();i++) {\n if (s.charAt(i) != t.charAt(i)) {\n return false;\n }\n }\n\n return true;\n }\n\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String s = in.next(), t = in.next();\n System.out.println(test(s, t) ? \"Yes\" : \"No\");\n }\n}",
"Main",
"static boolean test(String s, String t) {\n if (t.length() != s.length() + 1) {\n return false;\n }\n for (int i=0;i<s.length();i++) {\n if (s.charAt(i) != t.charAt(i)) {\n return false;\n }\n }\n\n return true;\n }",
"test",
"{\n if (t.length() != s.length() + 1) {\n return false;\n }\n for (int i=0;i<s.length();i++) {\n if (s.charAt(i) != t.charAt(i)) {\n return false;\n }\n }\n\n return true;\n }",
"if (t.length() != s.length() + 1) {\n return false;\n }",
"t.length() != s.length() + 1",
"t.length()",
"t.length",
"t",
"s.length() + 1",
"s.length()",
"s.length",
"s",
"1",
"{\n return false;\n }",
"return false;",
"false",
"for (int i=0;i<s.length();i++) {\n if (s.charAt(i) != t.charAt(i)) {\n return false;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n if (s.charAt(i) != t.charAt(i)) {\n return false;\n }\n }",
"{\n if (s.charAt(i) != t.charAt(i)) {\n return false;\n }\n }",
"if (s.charAt(i) != t.charAt(i)) {\n return false;\n }",
"s.charAt(i) != t.charAt(i)",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"t.charAt(i)",
"t.charAt",
"t",
"i",
"{\n return false;\n }",
"return false;",
"false",
"return true;",
"true",
"String s",
"s",
"String t",
"t",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String s = in.next(), t = in.next();\n System.out.println(test(s, t) ? \"Yes\" : \"No\");\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n String s = in.next(), t = in.next();\n System.out.println(test(s, t) ? \"Yes\" : \"No\");\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"String s = in.next()",
"s",
"in.next()",
"in.next",
"in",
"t = in.next();",
"t",
"in.next()",
"in.next",
"in",
"System.out.println(test(s, t) ? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"test(s, t) ? \"Yes\" : \"No\"",
"test(s, t)",
"test",
"s",
"t",
"\"Yes\"",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n static boolean test(String s, String t) {\n if (t.length() != s.length() + 1) {\n return false;\n }\n for (int i=0;i<s.length();i++) {\n if (s.charAt(i) != t.charAt(i)) {\n return false;\n }\n }\n\n return true;\n }\n\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String s = in.next(), t = in.next();\n System.out.println(test(s, t) ? \"Yes\" : \"No\");\n }\n}",
"public class Main {\n\n static boolean test(String s, String t) {\n if (t.length() != s.length() + 1) {\n return false;\n }\n for (int i=0;i<s.length();i++) {\n if (s.charAt(i) != t.charAt(i)) {\n return false;\n }\n }\n\n return true;\n }\n\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String s = in.next(), t = in.next();\n System.out.println(test(s, t) ? \"Yes\" : \"No\");\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
static boolean test(String s, String t) {
if (t.length() != s.length() + 1) {
return false;
}
for (int i=0;i<s.length();i++) {
if (s.charAt(i) != t.charAt(i)) {
return false;
}
}
return true;
}
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String s = in.next(), t = in.next();
System.out.println(test(s, t) ? "Yes" : "No");
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
4,
18,
13,
2,
4,
18,
13,
17,
4,
18,
4,
18,
13,
17,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
66,
11
],
[
66,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
34,
38
],
[
29,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
39,
48
],
[
28,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
28,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
12,
63
],
[
63,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String args[]) throws IOException {\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tString S = br.readLine();\n\tString T = br.readLine();\n\tif (T.length() == S.length() + 1 && T.substring(0, S.length()).equals(S)) {\n\t System.out.println(\"Yes\");\n\t} else {\n\t System.out.println(\"No\");\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 public static void main(String args[]) throws IOException {\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tString S = br.readLine();\n\tString T = br.readLine();\n\tif (T.length() == S.length() + 1 && T.substring(0, S.length()).equals(S)) {\n\t System.out.println(\"Yes\");\n\t} else {\n\t System.out.println(\"No\");\n\t}\n }\n}",
"Main",
"public static void main(String args[]) throws IOException {\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tString S = br.readLine();\n\tString T = br.readLine();\n\tif (T.length() == S.length() + 1 && T.substring(0, S.length()).equals(S)) {\n\t System.out.println(\"Yes\");\n\t} else {\n\t System.out.println(\"No\");\n\t}\n }",
"main",
"{\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tString S = br.readLine();\n\tString T = br.readLine();\n\tif (T.length() == S.length() + 1 && T.substring(0, S.length()).equals(S)) {\n\t System.out.println(\"Yes\");\n\t} else {\n\t System.out.println(\"No\");\n\t}\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String S = br.readLine();",
"S",
"br.readLine()",
"br.readLine",
"br",
"String T = br.readLine();",
"T",
"br.readLine()",
"br.readLine",
"br",
"if (T.length() == S.length() + 1 && T.substring(0, S.length()).equals(S)) {\n\t System.out.println(\"Yes\");\n\t} else {\n\t System.out.println(\"No\");\n\t}",
"T.length() == S.length() + 1 && T.substring(0, S.length()).equals(S)",
"T.length() == S.length() + 1",
"T.length()",
"T.length",
"T",
"S.length() + 1",
"S.length()",
"S.length",
"S",
"1",
"T.substring(0, S.length()).equals(S)",
"T.substring(0, S.length()).equals",
"T.substring(0, S.length())",
"T.substring",
"T",
"0",
"S.length()",
"S.length",
"S",
"S",
"{\n\t System.out.println(\"Yes\");\n\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t System.out.println(\"No\");\n\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String args[]",
"args",
"public class Main {\n public static void main(String args[]) throws IOException {\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tString S = br.readLine();\n\tString T = br.readLine();\n\tif (T.length() == S.length() + 1 && T.substring(0, S.length()).equals(S)) {\n\t System.out.println(\"Yes\");\n\t} else {\n\t System.out.println(\"No\");\n\t}\n }\n}",
"public class Main {\n public static void main(String args[]) throws IOException {\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tString S = br.readLine();\n\tString T = br.readLine();\n\tif (T.length() == S.length() + 1 && T.substring(0, S.length()).equals(S)) {\n\t System.out.println(\"Yes\");\n\t} else {\n\t System.out.println(\"No\");\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 S = br.readLine();
String T = br.readLine();
if (T.length() == S.length() + 1 && T.substring(0, S.length()).equals(S)) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
4,
18,
13,
17,
4,
18,
13,
30,
4,
18,
18,
13,
13,
17,
30,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
40,
4,
18,
18,
13,
13,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
3,
30,
40,
13,
14,
2,
13,
4,
18,
13,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
106,
5
],
[
106,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
24,
28
],
[
23,
29
],
[
29,
30
],
[
30,
31
],
[
22,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
22,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
39,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
39,
52
],
[
52,
53
],
[
52,
54
],
[
39,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
55,
65
],
[
65,
66
],
[
66,
67
],
[
55,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
70,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
80,
87
],
[
70,
88
],
[
88,
89
],
[
89,
90
],
[
39,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
91,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
6,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String n1 = sc.nextLine();\n\t\tString n2 = sc.nextLine();\n\t\tif (n1.length() + 1 != n2.length()) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}else{\n\t\t\tString[] n1sp = n1.split(\"\");\n\t\t\tString[] n2sp = n2.split(\"\");\n\t\t\tint count = 0;\n\t\t\tfor (int i = 0; i < n1.length(); i++) {\n\t\t\t\tif (!(n1sp[i].equals(n2sp[i]))){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(count == n1.length())\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String n1 = sc.nextLine();\n\t\tString n2 = sc.nextLine();\n\t\tif (n1.length() + 1 != n2.length()) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}else{\n\t\t\tString[] n1sp = n1.split(\"\");\n\t\t\tString[] n2sp = n2.split(\"\");\n\t\t\tint count = 0;\n\t\t\tfor (int i = 0; i < n1.length(); i++) {\n\t\t\t\tif (!(n1sp[i].equals(n2sp[i]))){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(count == n1.length())\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String n1 = sc.nextLine();\n\t\tString n2 = sc.nextLine();\n\t\tif (n1.length() + 1 != n2.length()) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}else{\n\t\t\tString[] n1sp = n1.split(\"\");\n\t\t\tString[] n2sp = n2.split(\"\");\n\t\t\tint count = 0;\n\t\t\tfor (int i = 0; i < n1.length(); i++) {\n\t\t\t\tif (!(n1sp[i].equals(n2sp[i]))){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(count == n1.length())\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String n1 = sc.nextLine();\n\t\tString n2 = sc.nextLine();\n\t\tif (n1.length() + 1 != n2.length()) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}else{\n\t\t\tString[] n1sp = n1.split(\"\");\n\t\t\tString[] n2sp = n2.split(\"\");\n\t\t\tint count = 0;\n\t\t\tfor (int i = 0; i < n1.length(); i++) {\n\t\t\t\tif (!(n1sp[i].equals(n2sp[i]))){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(count == n1.length())\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String n1 = sc.nextLine();",
"n1",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String n2 = sc.nextLine();",
"n2",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if (n1.length() + 1 != n2.length()) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}else{\n\t\t\tString[] n1sp = n1.split(\"\");\n\t\t\tString[] n2sp = n2.split(\"\");\n\t\t\tint count = 0;\n\t\t\tfor (int i = 0; i < n1.length(); i++) {\n\t\t\t\tif (!(n1sp[i].equals(n2sp[i]))){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(count == n1.length())\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"n1.length() + 1 != n2.length()",
"n1.length() + 1",
"n1.length()",
"n1.length",
"n1",
"1",
"n2.length()",
"n2.length",
"n2",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"{\n\t\t\tString[] n1sp = n1.split(\"\");\n\t\t\tString[] n2sp = n2.split(\"\");\n\t\t\tint count = 0;\n\t\t\tfor (int i = 0; i < n1.length(); i++) {\n\t\t\t\tif (!(n1sp[i].equals(n2sp[i]))){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(count == n1.length())\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"String[] n1sp = n1.split(\"\");",
"n1sp",
"n1.split(\"\")",
"n1.split",
"n1",
"\"\"",
"String[] n2sp = n2.split(\"\");",
"n2sp",
"n2.split(\"\")",
"n2.split",
"n2",
"\"\"",
"int count = 0;",
"count",
"0",
"for (int i = 0; i < n1.length(); i++) {\n\t\t\t\tif (!(n1sp[i].equals(n2sp[i]))){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n1.length()",
"i",
"n1.length()",
"n1.length",
"n1",
"i++",
"i++",
"i",
"{\n\t\t\t\tif (!(n1sp[i].equals(n2sp[i]))){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif (!(n1sp[i].equals(n2sp[i]))){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}",
"if (!(n1sp[i].equals(n2sp[i]))){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\tcount++;\n\t\t\t\t}",
"!(n1sp[i].equals(n2sp[i]))",
"(n1sp[i].equals(n2sp[i]))",
"n1sp[i].equals",
"n1sp[i]",
"n1sp",
"i",
"n2sp[i]",
"n2sp",
"i",
"{\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"break;",
"{\n\t\t\t\tcount++;\n\t\t\t\t}",
"count++",
"count",
"if(count == n1.length())\n\t\t\tSystem.out.println(\"Yes\");",
"count == n1.length()",
"count",
"n1.length()",
"n1.length",
"n1",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String n1 = sc.nextLine();\n\t\tString n2 = sc.nextLine();\n\t\tif (n1.length() + 1 != n2.length()) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}else{\n\t\t\tString[] n1sp = n1.split(\"\");\n\t\t\tString[] n2sp = n2.split(\"\");\n\t\t\tint count = 0;\n\t\t\tfor (int i = 0; i < n1.length(); i++) {\n\t\t\t\tif (!(n1sp[i].equals(n2sp[i]))){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(count == n1.length())\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String n1 = sc.nextLine();\n\t\tString n2 = sc.nextLine();\n\t\tif (n1.length() + 1 != n2.length()) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}else{\n\t\t\tString[] n1sp = n1.split(\"\");\n\t\t\tString[] n2sp = n2.split(\"\");\n\t\t\tint count = 0;\n\t\t\tfor (int i = 0; i < n1.length(); i++) {\n\t\t\t\tif (!(n1sp[i].equals(n2sp[i]))){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(count == n1.length())\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String n1 = sc.nextLine();
String n2 = sc.nextLine();
if (n1.length() + 1 != n2.length()) {
System.out.println("No");
}else{
String[] n1sp = n1.split("");
String[] n2sp = n2.split("");
int count = 0;
for (int i = 0; i < n1.length(); i++) {
if (!(n1sp[i].equals(n2sp[i]))){
System.out.println("No");
break;
}else{
count++;
}
}
if(count == n1.length())
System.out.println("Yes");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
14,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
55,
5
],
[
55,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
28,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
33,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
33,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
6,
52
],
[
52,
53
],
[
0,
54
],
[
54,
55
],
[
54,
56
]
] |
[
"import java.util.*;\npublic class Main {\n\tpublic static void main(String arg[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s1 = sc.next();\n\t\tString s2 = sc.next();\n \n\t\ts2 = s2.substring(0, s2.length()-1);\n\t\tif(s1.equals(s2)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String arg[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s1 = sc.next();\n\t\tString s2 = sc.next();\n \n\t\ts2 = s2.substring(0, s2.length()-1);\n\t\tif(s1.equals(s2)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String arg[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s1 = sc.next();\n\t\tString s2 = sc.next();\n \n\t\ts2 = s2.substring(0, s2.length()-1);\n\t\tif(s1.equals(s2)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s1 = sc.next();\n\t\tString s2 = sc.next();\n \n\t\ts2 = s2.substring(0, s2.length()-1);\n\t\tif(s1.equals(s2)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s1 = sc.next();",
"s1",
"sc.next()",
"sc.next",
"sc",
"String s2 = sc.next();",
"s2",
"sc.next()",
"sc.next",
"sc",
"s2 = s2.substring(0, s2.length()-1)",
"s2",
"s2.substring(0, s2.length()-1)",
"s2.substring",
"s2",
"0",
"s2.length()-1",
"s2.length()",
"s2.length",
"s2",
"1",
"if(s1.equals(s2)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"s1.equals(s2)",
"s1.equals",
"s1",
"s2",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String arg[]",
"arg",
"public class Main {\n\tpublic static void main(String arg[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s1 = sc.next();\n\t\tString s2 = sc.next();\n \n\t\ts2 = s2.substring(0, s2.length()-1);\n\t\tif(s1.equals(s2)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String arg[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s1 = sc.next();\n\t\tString s2 = sc.next();\n \n\t\ts2 = s2.substring(0, s2.length()-1);\n\t\tif(s1.equals(s2)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String arg[]) {
Scanner sc = new Scanner(System.in);
String s1 = sc.next();
String s2 = sc.next();
s2 = s2.substring(0, s2.length()-1);
if(s1.equals(s2)) {
System.out.println("Yes");
}
else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
13,
17,
14,
4,
18,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
62,
5
],
[
62,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
35,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
35,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
8,
56
],
[
56,
57
],
[
57,
58
],
[
6,
59
],
[
59,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
]
] |
[
"import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\t\t//文字数取得\n\t\tint S1 = S.length();\n\t\t//S1番目から1文字取り出す。\n\t\tString T1 = T.substring(S1-0);\n\t\t//Tで入力さえた値が、S+1文字と等しいか\n\t\tif(T.equals(S+T1)) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\tsc.close();\n\t\t }\n\t\t}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\t\t//文字数取得\n\t\tint S1 = S.length();\n\t\t//S1番目から1文字取り出す。\n\t\tString T1 = T.substring(S1-0);\n\t\t//Tで入力さえた値が、S+1文字と等しいか\n\t\tif(T.equals(S+T1)) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\tsc.close();\n\t\t }\n\t\t}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\t\t//文字数取得\n\t\tint S1 = S.length();\n\t\t//S1番目から1文字取り出す。\n\t\tString T1 = T.substring(S1-0);\n\t\t//Tで入力さえた値が、S+1文字と等しいか\n\t\tif(T.equals(S+T1)) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\tsc.close();\n\t\t }",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\t\t//文字数取得\n\t\tint S1 = S.length();\n\t\t//S1番目から1文字取り出す。\n\t\tString T1 = T.substring(S1-0);\n\t\t//Tで入力さえた値が、S+1文字と等しいか\n\t\tif(T.equals(S+T1)) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\tsc.close();\n\t\t }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"String T = sc.next();",
"T",
"sc.next()",
"sc.next",
"sc",
"int S1 = S.length();",
"S1",
"S.length()",
"S.length",
"S",
"String T1 = T.substring(S1-0);",
"T1",
"T.substring(S1-0)",
"T.substring",
"T",
"S1-0",
"S1",
"0",
"if(T.equals(S+T1)) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}",
"T.equals(S+T1)",
"T.equals",
"T",
"S+T1",
"S",
"T1",
"{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\t\t//文字数取得\n\t\tint S1 = S.length();\n\t\t//S1番目から1文字取り出す。\n\t\tString T1 = T.substring(S1-0);\n\t\t//Tで入力さえた値が、S+1文字と等しいか\n\t\tif(T.equals(S+T1)) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\tsc.close();\n\t\t }\n\t\t}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\t\t//文字数取得\n\t\tint S1 = S.length();\n\t\t//S1番目から1文字取り出す。\n\t\tString T1 = T.substring(S1-0);\n\t\t//Tで入力さえた値が、S+1文字と等しいか\n\t\tif(T.equals(S+T1)) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\tsc.close();\n\t\t }\n\t\t}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String S = sc.next();
String T = sc.next();
//文字数取得
int S1 = S.length();
//S1番目から1文字取り出す。
String T1 = T.substring(S1-0);
//Tで入力さえた値が、S+1文字と等しいか
if(T.equals(S+T1)) {
System.out.println("Yes");
}else {
System.out.println("No");
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
58,
5
],
[
58,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
32,
37
],
[
31,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
31,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
6,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
] |
[
"\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString S = scanner.nextLine();\n\t\tString T = scanner.nextLine();\n\n\t\tString t = T.substring(0,S.length());\n\n\t\tif(S.compareTo(t) == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tscanner.close();\n\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString S = scanner.nextLine();\n\t\tString T = scanner.nextLine();\n\n\t\tString t = T.substring(0,S.length());\n\n\t\tif(S.compareTo(t) == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tscanner.close();\n\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString S = scanner.nextLine();\n\t\tString T = scanner.nextLine();\n\n\t\tString t = T.substring(0,S.length());\n\n\t\tif(S.compareTo(t) == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tscanner.close();\n\n\n\t}",
"main",
"{\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString S = scanner.nextLine();\n\t\tString T = scanner.nextLine();\n\n\t\tString t = T.substring(0,S.length());\n\n\t\tif(S.compareTo(t) == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tscanner.close();\n\n\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"String S = scanner.nextLine();",
"S",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"String T = scanner.nextLine();",
"T",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"String t = T.substring(0,S.length());",
"t",
"T.substring(0,S.length())",
"T.substring",
"T",
"0",
"S.length()",
"S.length",
"S",
"if(S.compareTo(t) == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"S.compareTo(t) == 0",
"S.compareTo(t)",
"S.compareTo",
"S",
"t",
"0",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"scanner.close()",
"scanner.close",
"scanner",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString S = scanner.nextLine();\n\t\tString T = scanner.nextLine();\n\n\t\tString t = T.substring(0,S.length());\n\n\t\tif(S.compareTo(t) == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tscanner.close();\n\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString S = scanner.nextLine();\n\t\tString T = scanner.nextLine();\n\n\t\tString t = T.substring(0,S.length());\n\n\t\tif(S.compareTo(t) == 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tscanner.close();\n\n\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String S = scanner.nextLine();
String T = scanner.nextLine();
String t = T.substring(0,S.length());
if(S.compareTo(t) == 0) {
System.out.println("Yes");
}else {
System.out.println("No");
}
scanner.close();
}
}
|
[
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,
4,
18,
13,
14,
4,
18,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
30,
4,
18,
13,
17,
30,
4,
18,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
57,
8
],
[
57,
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
],
[
11,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
36,
40
],
[
28,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
28,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
11,
51
],
[
51,
52
],
[
52,
53
],
[
9,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
] |
[
"import java.io.PrintWriter;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n String s = sc.next();\n String t = sc.next();\n if (s.equals(t.substring(0, t.length() - 1))) {\n out.println(\"Yes\");\n }\n else {\n out.println(\"No\");\n }\n out.flush();\n }\n}",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n String s = sc.next();\n String t = sc.next();\n if (s.equals(t.substring(0, t.length() - 1))) {\n out.println(\"Yes\");\n }\n else {\n out.println(\"No\");\n }\n out.flush();\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n String s = sc.next();\n String t = sc.next();\n if (s.equals(t.substring(0, t.length() - 1))) {\n out.println(\"Yes\");\n }\n else {\n out.println(\"No\");\n }\n out.flush();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n String s = sc.next();\n String t = sc.next();\n if (s.equals(t.substring(0, t.length() - 1))) {\n out.println(\"Yes\");\n }\n else {\n out.println(\"No\");\n }\n out.flush();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String t = sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"if (s.equals(t.substring(0, t.length() - 1))) {\n out.println(\"Yes\");\n }\n else {\n out.println(\"No\");\n }",
"s.equals(t.substring(0, t.length() - 1))",
"s.equals",
"s",
"t.substring(0, t.length() - 1)",
"t.substring",
"t",
"0",
"t.length() - 1",
"t.length()",
"t.length",
"t",
"1",
"{\n out.println(\"Yes\");\n }",
"out.println(\"Yes\")",
"out.println",
"out",
"\"Yes\"",
"{\n out.println(\"No\");\n }",
"out.println(\"No\")",
"out.println",
"out",
"\"No\"",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n String s = sc.next();\n String t = sc.next();\n if (s.equals(t.substring(0, t.length() - 1))) {\n out.println(\"Yes\");\n }\n else {\n out.println(\"No\");\n }\n out.flush();\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n String s = sc.next();\n String t = sc.next();\n if (s.equals(t.substring(0, t.length() - 1))) {\n out.println(\"Yes\");\n }\n else {\n out.println(\"No\");\n }\n out.flush();\n }\n}",
"Main"
] |
import java.io.PrintWriter;
import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
PrintWriter out = new PrintWriter(System.out);
String s = sc.next();
String t = sc.next();
if (s.equals(t.substring(0, t.length() - 1))) {
out.println("Yes");
}
else {
out.println("No");
}
out.flush();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
2,
17,
17,
12,
13,
30,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
4,
18,
13,
4,
13,
8,
2,
4,
18,
13,
4,
18,
13,
17,
13,
17,
17,
17,
12,
13,
30,
0,
13,
20,
0,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
40,
13,
17,
4,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
4,
18,
13,
13,
17,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
8,
2,
13,
17,
13,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
8,
2,
13,
17,
13,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
8,
2,
13,
17,
17,
2,
17,
4,
13,
2,
13,
2,
13,
17,
23,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
2,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
2,
13,
17,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
4,
18,
13,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
322,
11
],
[
322,
12
],
[
12,
13
],
[
322,
14
],
[
14,
15
],
[
322,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
18,
20
],
[
322,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
23,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
23,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
44,
48
],
[
40,
49
],
[
39,
50
],
[
39,
51
],
[
322,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
54,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
54,
66
],
[
66,
67
],
[
66,
68
],
[
54,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
69,
74
],
[
74,
75
],
[
54,
76
],
[
76,
77
],
[
77,
78
],
[
54,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
85,
89
],
[
84,
90
],
[
52,
91
],
[
91,
92
],
[
322,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
93,
100
],
[
100,
101
],
[
322,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
102,
109
],
[
109,
110
],
[
322,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
118,
119
],
[
119,
120
],
[
322,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
125,
128
],
[
128,
129
],
[
129,
130
],
[
322,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
138,
139
],
[
139,
140
],
[
322,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
322,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
152,
157
],
[
157,
158
],
[
157,
159
],
[
157,
160
],
[
160,
161
],
[
160,
162
],
[
148,
163
],
[
163,
164
],
[
148,
165
],
[
165,
166
],
[
322,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
171,
176
],
[
176,
177
],
[
176,
178
],
[
176,
179
],
[
179,
180
],
[
179,
181
],
[
167,
182
],
[
182,
183
],
[
167,
184
],
[
184,
185
],
[
322,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
190,
194
],
[
190,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
199,
201
],
[
201,
202
],
[
201,
203
],
[
186,
204
],
[
204,
205
],
[
322,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
216,
217
],
[
216,
218
],
[
212,
219
],
[
219,
220
],
[
219,
221
],
[
212,
222
],
[
222,
223
],
[
223,
224
],
[
212,
225
],
[
226,
226
],
[
226,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
230,
231
],
[
229,
232
],
[
232,
233
],
[
232,
234
],
[
226,
235
],
[
235,
236
],
[
235,
237
],
[
237,
238
],
[
237,
239
],
[
226,
240
],
[
240,
241
],
[
241,
242
],
[
241,
243
],
[
240,
244
],
[
244,
245
],
[
244,
246
],
[
226,
247
],
[
247,
248
],
[
248,
249
],
[
248,
250
],
[
247,
251
],
[
208,
252
],
[
252,
253
],
[
253,
254
],
[
252,
255
],
[
206,
256
],
[
256,
257
],
[
206,
258
],
[
258,
259
],
[
322,
260
],
[
260,
261
],
[
260,
262
],
[
262,
263
],
[
260,
264
],
[
264,
265
],
[
260,
266
],
[
266,
267
],
[
266,
268
],
[
268,
269
],
[
269,
270
],
[
269,
271
],
[
260,
272
],
[
272,
273
],
[
272,
274
],
[
274,
275
],
[
275,
276
],
[
276,
277
],
[
277,
278
],
[
277,
279
],
[
276,
280
],
[
280,
281
],
[
281,
282
],
[
282,
283
],
[
275,
284
],
[
284,
285
],
[
285,
286
],
[
286,
287
],
[
286,
288
],
[
288,
289
],
[
289,
290
],
[
290,
291
],
[
285,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
274,
296
],
[
296,
297
],
[
297,
298
],
[
298,
299
],
[
260,
300
],
[
300,
301
],
[
300,
302
],
[
302,
303
],
[
303,
304
],
[
303,
305
],
[
302,
306
],
[
306,
307
],
[
307,
308
],
[
307,
309
],
[
309,
310
],
[
310,
311
],
[
311,
312
],
[
306,
313
],
[
313,
314
],
[
314,
315
],
[
314,
316
],
[
316,
317
],
[
317,
318
],
[
302,
319
],
[
319,
320
],
[
0,
321
],
[
321,
322
],
[
321,
323
]
] |
[
"import java.util.*;\nimport java.io.*;\nimport java.math.*;\n \npublic class Main\n{\n public static void process()throws IOException\n {\n String s=nln(),t=nln();\n int n=s.length();\n\n pn((s.compareTo(t.substring(0,n))==0)?\"Yes\":\"No\");\n }\n \n \n static FastReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new FastReader();\n \n long s = System.currentTimeMillis();\n int t=1;\n //t=ni();\n while(t-->0)\n process();\n \n out.flush();\n System.err.println(System.currentTimeMillis()-s+\"ms\");\n }\n \n \n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static int ni()throws IOException{return Integer.parseInt(sc.next());}\n static long nl()throws IOException{return Long.parseLong(sc.next());}\n static double nd()throws IOException{return Double.parseDouble(sc.next());}\n static String nln()throws IOException{return sc.nextLine();}\n static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}\n \n static long mod=(long)1e9+7l;\n \n static<T> void r_sort(T arr[],int n){\n Random r = new Random(); \n for (int i = n-1; i > 0; i--){ \n int j = r.nextInt(i+1); \n \n T temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n } \n Arrays.sort(arr); \n }\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////\n static class FastReader{ \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader(){ \n br = new BufferedReader(new InputStreamReader(System.in)); \n } \n \n String next(){ \n while (st == null || !st.hasMoreElements()){ \n try{ st = new StringTokenizer(br.readLine()); } catch (IOException e){ e.printStackTrace(); } \n } \n return st.nextToken(); \n } \n \n String nextLine(){ \n String str = \"\"; \n try{ str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } \n return str; \n } \n } \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main\n{\n public static void process()throws IOException\n {\n String s=nln(),t=nln();\n int n=s.length();\n\n pn((s.compareTo(t.substring(0,n))==0)?\"Yes\":\"No\");\n }\n \n \n static FastReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new FastReader();\n \n long s = System.currentTimeMillis();\n int t=1;\n //t=ni();\n while(t-->0)\n process();\n \n out.flush();\n System.err.println(System.currentTimeMillis()-s+\"ms\");\n }\n \n \n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static int ni()throws IOException{return Integer.parseInt(sc.next());}\n static long nl()throws IOException{return Long.parseLong(sc.next());}\n static double nd()throws IOException{return Double.parseDouble(sc.next());}\n static String nln()throws IOException{return sc.nextLine();}\n static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}\n \n static long mod=(long)1e9+7l;\n \n static<T> void r_sort(T arr[],int n){\n Random r = new Random(); \n for (int i = n-1; i > 0; i--){ \n int j = r.nextInt(i+1); \n \n T temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n } \n Arrays.sort(arr); \n }\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////\n static class FastReader{ \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader(){ \n br = new BufferedReader(new InputStreamReader(System.in)); \n } \n \n String next(){ \n while (st == null || !st.hasMoreElements()){ \n try{ st = new StringTokenizer(br.readLine()); } catch (IOException e){ e.printStackTrace(); } \n } \n return st.nextToken(); \n } \n \n String nextLine(){ \n String str = \"\"; \n try{ str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } \n return str; \n } \n } \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}",
"Main",
"static FastReader sc;",
"sc",
"static PrintWriter out;",
"out",
"static long mod=(long)1e9+7l;",
"mod",
"(long)1e9+7l",
"(long)1e9",
"7l",
"public static void process()throws IOException\n {\n String s=nln(),t=nln();\n int n=s.length();\n\n pn((s.compareTo(t.substring(0,n))==0)?\"Yes\":\"No\");\n }",
"process",
"{\n String s=nln(),t=nln();\n int n=s.length();\n\n pn((s.compareTo(t.substring(0,n))==0)?\"Yes\":\"No\");\n }",
"String s=nln()",
"s",
"nln()",
"nln",
"t=nln();",
"t",
"nln()",
"nln",
"int n=s.length();",
"n",
"s.length()",
"s.length",
"s",
"pn((s.compareTo(t.substring(0,n))==0)?\"Yes\":\"No\")",
"pn",
"(s.compareTo(t.substring(0,n))==0)?\"Yes\":\"No\"",
"(s.compareTo(t.substring(0,n))==0)",
"s.compareTo(t.substring(0,n))",
"s.compareTo",
"s",
"t.substring(0,n)",
"t.substring",
"t",
"0",
"n",
"0",
"\"Yes\"",
"\"No\"",
"public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new FastReader();\n \n long s = System.currentTimeMillis();\n int t=1;\n //t=ni();\n while(t-->0)\n process();\n \n out.flush();\n System.err.println(System.currentTimeMillis()-s+\"ms\");\n }",
"main",
"{\n out = new PrintWriter(System.out);\n sc=new FastReader();\n \n long s = System.currentTimeMillis();\n int t=1;\n //t=ni();\n while(t-->0)\n process();\n \n out.flush();\n System.err.println(System.currentTimeMillis()-s+\"ms\");\n }",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"sc=new FastReader()",
"sc",
"new FastReader()",
"long s = System.currentTimeMillis();",
"s",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"int t=1;",
"t",
"1",
"while(t-->0)\n process();",
"t-->0",
"t--",
"t",
"0",
"process()",
"process",
"out.flush()",
"out.flush",
"out",
"System.err.println(System.currentTimeMillis()-s+\"ms\")",
"System.err.println",
"System.err",
"System",
"System.err",
"System.currentTimeMillis()-s+\"ms\"",
"System.currentTimeMillis()-s",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"s",
"\"ms\"",
"String[]args",
"args",
"static void pn(Object o){out.println(o);}",
"pn",
"{out.println(o);}",
"out.println(o)",
"out.println",
"out",
"o",
"Object o",
"o",
"static void p(Object o){out.print(o);}",
"p",
"{out.print(o);}",
"out.print(o)",
"out.print",
"out",
"o",
"Object o",
"o",
"static int ni()throws IOException{return Integer.parseInt(sc.next());}",
"ni",
"{return Integer.parseInt(sc.next());}",
"return Integer.parseInt(sc.next());",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"static long nl()throws IOException{return Long.parseLong(sc.next());}",
"nl",
"{return Long.parseLong(sc.next());}",
"return Long.parseLong(sc.next());",
"Long.parseLong(sc.next())",
"Long.parseLong",
"Long",
"sc.next()",
"sc.next",
"sc",
"static double nd()throws IOException{return Double.parseDouble(sc.next());}",
"nd",
"{return Double.parseDouble(sc.next());}",
"return Double.parseDouble(sc.next());",
"Double.parseDouble(sc.next())",
"Double.parseDouble",
"Double",
"sc.next()",
"sc.next",
"sc",
"static String nln()throws IOException{return sc.nextLine();}",
"nln",
"{return sc.nextLine();}",
"return sc.nextLine();",
"sc.nextLine()",
"sc.nextLine",
"sc",
"static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}",
"gcd",
"{return (b==0)?a:gcd(b,a%b);}",
"return (b==0)?a:gcd(b,a%b);",
"(b==0)?a:gcd(b,a%b)",
"(b==0)",
"b",
"0",
"a",
"gcd(b,a%b)",
"gcd",
"b",
"a%b",
"a",
"b",
"long a",
"a",
"long b",
"b",
"static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}",
"gcd",
"{return (b==0)?a:gcd(b,a%b);}",
"return (b==0)?a:gcd(b,a%b);",
"(b==0)?a:gcd(b,a%b)",
"(b==0)",
"b",
"0",
"a",
"gcd(b,a%b)",
"gcd",
"b",
"a%b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}",
"bit",
"{return (n==0)?0:(1+bit(n&(n-1)));}",
"return (n==0)?0:(1+bit(n&(n-1)));",
"(n==0)?0:(1+bit(n&(n-1)))",
"(n==0)",
"n",
"0",
"0",
"(1+bit(n&(n-1)))",
"1",
"bit(n&(n-1))",
"bit",
"n&(n-1)",
"n",
"(n-1)",
"n",
"1",
"long n",
"n",
"static<T> void r_sort(T arr[],int n){\n Random r = new Random(); \n for (int i = n-1; i > 0; i--){ \n int j = r.nextInt(i+1); \n \n T temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n } \n Arrays.sort(arr); \n }",
"r_sort",
"{\n Random r = new Random(); \n for (int i = n-1; i > 0; i--){ \n int j = r.nextInt(i+1); \n \n T temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n } \n Arrays.sort(arr); \n }",
"Random r = new Random();",
"r",
"new Random()",
"for (int i = n-1; i > 0; i--){ \n int j = r.nextInt(i+1); \n \n T temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n }",
"int i = n-1;",
"int i = n-1;",
"i",
"n-1",
"n",
"1",
"i > 0",
"i",
"0",
"i--",
"i--",
"i",
"{ \n int j = r.nextInt(i+1); \n \n T temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n }",
"{ \n int j = r.nextInt(i+1); \n \n T temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n }",
"int j = r.nextInt(i+1);",
"j",
"r.nextInt(i+1)",
"r.nextInt",
"r",
"i+1",
"i",
"1",
"T temp = arr[i];",
"temp",
"arr[i]",
"arr",
"i",
"arr[i] = arr[j]",
"arr[i]",
"arr",
"i",
"arr[j]",
"arr",
"j",
"arr[j] = temp",
"arr[j]",
"arr",
"j",
"temp",
"Arrays.sort(arr)",
"Arrays.sort",
"Arrays",
"arr",
"T arr[]",
"arr",
"int n",
"n",
" static class FastReader{ \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader(){ \n br = new BufferedReader(new InputStreamReader(System.in)); \n } \n \n String next(){ \n while (st == null || !st.hasMoreElements()){ \n try{ st = new StringTokenizer(br.readLine()); } catch (IOException e){ e.printStackTrace(); } \n } \n return st.nextToken(); \n } \n \n String nextLine(){ \n String str = \"\"; \n try{ str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } \n return str; \n } \n }",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader(){ \n br = new BufferedReader(new InputStreamReader(System.in)); \n }",
"FastReader",
"{ \n br = new BufferedReader(new InputStreamReader(System.in)); \n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next(){ \n while (st == null || !st.hasMoreElements()){ \n try{ st = new StringTokenizer(br.readLine()); } catch (IOException e){ e.printStackTrace(); } \n } \n return st.nextToken(); \n }",
"next",
"{ \n while (st == null || !st.hasMoreElements()){ \n try{ st = new StringTokenizer(br.readLine()); } catch (IOException e){ e.printStackTrace(); } \n } \n return st.nextToken(); \n }",
"while (st == null || !st.hasMoreElements()){ \n try{ st = new StringTokenizer(br.readLine()); } catch (IOException e){ e.printStackTrace(); } \n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{ \n try{ st = new StringTokenizer(br.readLine()); } catch (IOException e){ e.printStackTrace(); } \n }",
"try{ st = new StringTokenizer(br.readLine()); } catch (IOException e){ e.printStackTrace(); }",
"catch (IOException e){ e.printStackTrace(); }",
"IOException e",
"{ e.printStackTrace(); }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{ st = new StringTokenizer(br.readLine()); }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"String nextLine(){ \n String str = \"\"; \n try{ str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } \n return str; \n }",
"nextLine",
"{ \n String str = \"\"; \n try{ str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } \n return str; \n }",
"String str = \"\";",
"str",
"\"\"",
"try{ str = br.readLine(); } catch (IOException e) { e.printStackTrace(); }",
"catch (IOException e) { e.printStackTrace(); }",
"IOException e",
"{ e.printStackTrace(); }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{ str = br.readLine(); }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main\n{\n public static void process()throws IOException\n {\n String s=nln(),t=nln();\n int n=s.length();\n\n pn((s.compareTo(t.substring(0,n))==0)?\"Yes\":\"No\");\n }\n \n \n static FastReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new FastReader();\n \n long s = System.currentTimeMillis();\n int t=1;\n //t=ni();\n while(t-->0)\n process();\n \n out.flush();\n System.err.println(System.currentTimeMillis()-s+\"ms\");\n }\n \n \n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static int ni()throws IOException{return Integer.parseInt(sc.next());}\n static long nl()throws IOException{return Long.parseLong(sc.next());}\n static double nd()throws IOException{return Double.parseDouble(sc.next());}\n static String nln()throws IOException{return sc.nextLine();}\n static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}\n \n static long mod=(long)1e9+7l;\n \n static<T> void r_sort(T arr[],int n){\n Random r = new Random(); \n for (int i = n-1; i > 0; i--){ \n int j = r.nextInt(i+1); \n \n T temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n } \n Arrays.sort(arr); \n }\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////\n static class FastReader{ \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader(){ \n br = new BufferedReader(new InputStreamReader(System.in)); \n } \n \n String next(){ \n while (st == null || !st.hasMoreElements()){ \n try{ st = new StringTokenizer(br.readLine()); } catch (IOException e){ e.printStackTrace(); } \n } \n return st.nextToken(); \n } \n \n String nextLine(){ \n String str = \"\"; \n try{ str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } \n return str; \n } \n } \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}",
"public class Main\n{\n public static void process()throws IOException\n {\n String s=nln(),t=nln();\n int n=s.length();\n\n pn((s.compareTo(t.substring(0,n))==0)?\"Yes\":\"No\");\n }\n \n \n static FastReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new FastReader();\n \n long s = System.currentTimeMillis();\n int t=1;\n //t=ni();\n while(t-->0)\n process();\n \n out.flush();\n System.err.println(System.currentTimeMillis()-s+\"ms\");\n }\n \n \n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static int ni()throws IOException{return Integer.parseInt(sc.next());}\n static long nl()throws IOException{return Long.parseLong(sc.next());}\n static double nd()throws IOException{return Double.parseDouble(sc.next());}\n static String nln()throws IOException{return sc.nextLine();}\n static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}\n \n static long mod=(long)1e9+7l;\n \n static<T> void r_sort(T arr[],int n){\n Random r = new Random(); \n for (int i = n-1; i > 0; i--){ \n int j = r.nextInt(i+1); \n \n T temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n } \n Arrays.sort(arr); \n }\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////\n static class FastReader{ \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader(){ \n br = new BufferedReader(new InputStreamReader(System.in)); \n } \n \n String next(){ \n while (st == null || !st.hasMoreElements()){ \n try{ st = new StringTokenizer(br.readLine()); } catch (IOException e){ e.printStackTrace(); } \n } \n return st.nextToken(); \n } \n \n String nextLine(){ \n String str = \"\"; \n try{ str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } \n return str; \n } \n } \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}",
"Main"
] |
import java.util.*;
import java.io.*;
import java.math.*;
public class Main
{
public static void process()throws IOException
{
String s=nln(),t=nln();
int n=s.length();
pn((s.compareTo(t.substring(0,n))==0)?"Yes":"No");
}
static FastReader sc;
static PrintWriter out;
public static void main(String[]args)throws IOException
{
out = new PrintWriter(System.out);
sc=new FastReader();
long s = System.currentTimeMillis();
int t=1;
//t=ni();
while(t-->0)
process();
out.flush();
System.err.println(System.currentTimeMillis()-s+"ms");
}
static void pn(Object o){out.println(o);}
static void p(Object o){out.print(o);}
static int ni()throws IOException{return Integer.parseInt(sc.next());}
static long nl()throws IOException{return Long.parseLong(sc.next());}
static double nd()throws IOException{return Double.parseDouble(sc.next());}
static String nln()throws IOException{return sc.nextLine();}
static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}
static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}
static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}
static long mod=(long)1e9+7l;
static<T> void r_sort(T arr[],int n){
Random r = new Random();
for (int i = n-1; i > 0; i--){
int j = r.nextInt(i+1);
T temp = arr[i];
arr[i] = arr[j];
arr[j] = temp;
}
Arrays.sort(arr);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////
static class FastReader{
BufferedReader br;
StringTokenizer st;
public FastReader(){
br = new BufferedReader(new InputStreamReader(System.in));
}
String next(){
while (st == null || !st.hasMoreElements()){
try{ st = new StringTokenizer(br.readLine()); } catch (IOException e){ e.printStackTrace(); }
}
return st.nextToken();
}
String nextLine(){
String str = "";
try{ str = br.readLine(); } catch (IOException e) { e.printStackTrace(); }
return str;
}
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
4,
18,
13,
17,
4,
18,
13,
4,
18,
4,
18,
13,
17,
2,
4,
18,
13,
17,
13,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
62,
5
],
[
62,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
27,
31
],
[
26,
32
],
[
32,
33
],
[
33,
34
],
[
25,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
41,
45
],
[
35,
46
],
[
24,
47
],
[
47,
48
],
[
47,
49
],
[
24,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
6,
59
],
[
59,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
]
] |
[
"import java.util.*;\npublic class Main { \n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n String o;\n String x=sc.next();\n String y=sc.next();\n if(y.length()-1==x.length()&&y.substring(0,y.length()-1).equals(x))o=\"Yes\";\n \telse o=\"No\";\n \tSystem.out.println(o);\n }\n \n}",
"import java.util.*;",
"util.*",
"java",
"public class Main { \n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n String o;\n String x=sc.next();\n String y=sc.next();\n if(y.length()-1==x.length()&&y.substring(0,y.length()-1).equals(x))o=\"Yes\";\n \telse o=\"No\";\n \tSystem.out.println(o);\n }\n \n}",
"Main",
"public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n String o;\n String x=sc.next();\n String y=sc.next();\n if(y.length()-1==x.length()&&y.substring(0,y.length()-1).equals(x))o=\"Yes\";\n \telse o=\"No\";\n \tSystem.out.println(o);\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n String o;\n String x=sc.next();\n String y=sc.next();\n if(y.length()-1==x.length()&&y.substring(0,y.length()-1).equals(x))o=\"Yes\";\n \telse o=\"No\";\n \tSystem.out.println(o);\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String o;",
"o",
"String x=sc.next();",
"x",
"sc.next()",
"sc.next",
"sc",
"String y=sc.next();",
"y",
"sc.next()",
"sc.next",
"sc",
"if(y.length()-1==x.length()&&y.substring(0,y.length()-1).equals(x))o=\"Yes\";\n \telse o=\"No\";",
"y.length()-1==x.length()&&y.substring(0,y.length()-1).equals(x)",
"y.length()-1==x.length()",
"y.length()-1",
"y.length()",
"y.length",
"y",
"1",
"x.length()",
"x.length",
"x",
"y.substring(0,y.length()-1).equals(x)",
"y.substring(0,y.length()-1).equals",
"y.substring(0,y.length()-1)",
"y.substring",
"y",
"0",
"y.length()-1",
"y.length()",
"y.length",
"y",
"1",
"x",
"o=\"Yes\"",
"o",
"\"Yes\"",
"o=\"No\"",
"o",
"\"No\"",
"System.out.println(o)",
"System.out.println",
"System.out",
"System",
"System.out",
"o",
"String[] args",
"args",
"public class Main { \n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n String o;\n String x=sc.next();\n String y=sc.next();\n if(y.length()-1==x.length()&&y.substring(0,y.length()-1).equals(x))o=\"Yes\";\n \telse o=\"No\";\n \tSystem.out.println(o);\n }\n \n}",
"public class Main { \n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n String o;\n String x=sc.next();\n String y=sc.next();\n if(y.length()-1==x.length()&&y.substring(0,y.length()-1).equals(x))o=\"Yes\";\n \telse o=\"No\";\n \tSystem.out.println(o);\n }\n \n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
String o;
String x=sc.next();
String y=sc.next();
if(y.length()-1==x.length()&&y.substring(0,y.length()-1).equals(x))o="Yes";
else o="No";
System.out.println(o);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
8,
2,
2,
2,
4,
18,
13,
17,
4,
18,
13,
4,
18,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
17,
17,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
38,
5,
13,
30,
37,
20,
30,
29,
4,
18,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
31,
32
],
[
31,
33
],
[
0,
34
],
[
34,
35
],
[
34,
36
],
[
0,
37
],
[
37,
38
],
[
37,
39
],
[
0,
40
],
[
40,
41
],
[
40,
42
],
[
0,
43
],
[
43,
44
],
[
43,
45
],
[
0,
46
],
[
46,
47
],
[
46,
48
],
[
0,
49
],
[
49,
50
],
[
49,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
],
[
0,
55
],
[
55,
56
],
[
55,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
],
[
0,
73
],
[
239,
74
],
[
239,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
77,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
77,
88
],
[
88,
89
],
[
88,
90
],
[
77,
91
],
[
91,
92
],
[
91,
93
],
[
77,
94
],
[
94,
95
],
[
94,
96
],
[
77,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
97,
101
],
[
97,
102
],
[
77,
103
],
[
103,
104
],
[
104,
105
],
[
75,
106
],
[
106,
107
],
[
0,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
115,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
115,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
132,
136
],
[
131,
137
],
[
137,
138
],
[
138,
139
],
[
130,
140
],
[
140,
141
],
[
141,
142
],
[
140,
143
],
[
143,
144
],
[
144,
145
],
[
143,
146
],
[
143,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
147,
151
],
[
129,
152
],
[
129,
153
],
[
113,
154
],
[
154,
155
],
[
113,
156
],
[
156,
157
],
[
113,
158
],
[
158,
159
],
[
0,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
160,
164
],
[
164,
165
],
[
160,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
172,
173
],
[
172,
174
],
[
166,
175
],
[
175,
176
],
[
160,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
183,
184
],
[
184,
185
],
[
180,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
160,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
195,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
194,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
193,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
160,
211
],
[
211,
212
],
[
211,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
215,
218
],
[
218,
219
],
[
160,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
224,
227
],
[
227,
228
],
[
160,
229
],
[
229,
230
],
[
229,
231
],
[
231,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
233,
236
],
[
236,
237
],
[
0,
238
],
[
238,
239
],
[
238,
240
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.text.SimpleDateFormat;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.Comparator;\nimport java.util.Date;\nimport java.util.HashMap;\nimport java.util.HashSet;\nimport java.util.LinkedList;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Queue;\nimport java.util.Set;\nimport java.util.StringTokenizer;\nimport java.util.TreeSet;\n\nimport static java.util.Arrays.binarySearch;\nimport static java.util.Arrays.copyOfRange;\nimport static java.util.Arrays.sort;\n\npublic class Main {\n\n public static void main(String[] args) throws Exception {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n\n Task solver = new Task();\n solver.solve(1, in, out);\n out.close();\n }\n}\n\nclass Task {\n\n private static int mod = 998244353;\n\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n String s = in.next();\n String t = in.next();\n out.println(s.length() + 1 == t.length() && s.equals(t.substring(0, t.length() - 1)) ? \"Yes\" : \"No\");\n }\n\n}\n\nclass InputReader {\n\n private final BufferedReader reader;\n private StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream));\n tokenizer = null;\n }\n\n public String nextLine() {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(nextLine());\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.text.SimpleDateFormat;",
"SimpleDateFormat",
"java.text",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.Comparator;",
"Comparator",
"java.util",
"import java.util.Date;",
"Date",
"java.util",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.HashSet;",
"HashSet",
"java.util",
"import java.util.LinkedList;",
"LinkedList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Map;",
"Map",
"java.util",
"import java.util.Queue;",
"Queue",
"java.util",
"import java.util.Set;",
"Set",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.util.TreeSet;",
"TreeSet",
"java.util",
"import static java.util.Arrays.binarySearch;",
"import static java.util.Arrays.binarySearch;",
"import static java.util.Arrays.binarySearch;",
"import static java.util.Arrays.copyOfRange;",
"import static java.util.Arrays.copyOfRange;",
"import static java.util.Arrays.copyOfRange;",
"import static java.util.Arrays.sort;",
"import static java.util.Arrays.sort;",
"import static java.util.Arrays.sort;",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n\n Task solver = new Task();\n solver.solve(1, in, out);\n out.close();\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n\n Task solver = new Task();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n\n Task solver = new Task();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"Task solver = new Task();",
"solver",
"new Task()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"class Task {\n\n private static int mod = 998244353;\n\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n String s = in.next();\n String t = in.next();\n out.println(s.length() + 1 == t.length() && s.equals(t.substring(0, t.length() - 1)) ? \"Yes\" : \"No\");\n }\n\n}",
"Task",
"private static int mod = 998244353;",
"mod",
"998244353",
"public void solve(int testNumber, InputReader in, PrintWriter out) {\n String s = in.next();\n String t = in.next();\n out.println(s.length() + 1 == t.length() && s.equals(t.substring(0, t.length() - 1)) ? \"Yes\" : \"No\");\n }",
"solve",
"{\n String s = in.next();\n String t = in.next();\n out.println(s.length() + 1 == t.length() && s.equals(t.substring(0, t.length() - 1)) ? \"Yes\" : \"No\");\n }",
"String s = in.next();",
"s",
"in.next()",
"in.next",
"in",
"String t = in.next();",
"t",
"in.next()",
"in.next",
"in",
"out.println(s.length() + 1 == t.length() && s.equals(t.substring(0, t.length() - 1)) ? \"Yes\" : \"No\")",
"out.println",
"out",
"s.length() + 1 == t.length() && s.equals(t.substring(0, t.length() - 1)) ? \"Yes\" : \"No\"",
"s.length() + 1 == t.length() && s.equals(t.substring(0, t.length() - 1))",
"s.length() + 1 == t.length()",
"s.length() + 1",
"s.length()",
"s.length",
"s",
"1",
"t.length()",
"t.length",
"t",
"s.equals(t.substring(0, t.length() - 1))",
"s.equals",
"s",
"t.substring(0, t.length() - 1)",
"t.substring",
"t",
"0",
"t.length() - 1",
"t.length()",
"t.length",
"t",
"1",
"\"Yes\"",
"\"No\"",
"int testNumber",
"testNumber",
"InputReader in",
"in",
"PrintWriter out",
"out",
"class InputReader {\n\n private final BufferedReader reader;\n private StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream));\n tokenizer = null;\n }\n\n public String nextLine() {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(nextLine());\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n}",
"InputReader",
"private final BufferedReader reader;",
"reader",
"private StringTokenizer tokenizer;",
"tokenizer",
"public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream));\n tokenizer = null;\n }",
"InputReader",
"{\n reader = new BufferedReader(new InputStreamReader(stream));\n tokenizer = null;\n }",
"reader = new BufferedReader(new InputStreamReader(stream))",
"reader",
"new BufferedReader(new InputStreamReader(stream))",
"tokenizer = null",
"tokenizer",
"null",
"InputStream stream",
"stream",
"public String nextLine() {\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"nextLine",
"{\n try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n return reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n return reader.readLine();\n }",
"return reader.readLine();",
"reader.readLine()",
"reader.readLine",
"reader",
"public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(nextLine());\n }\n return tokenizer.nextToken();\n }",
"next",
"{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(nextLine());\n }\n return tokenizer.nextToken();\n }",
"while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(nextLine());\n }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n tokenizer = new StringTokenizer(nextLine());\n }",
"tokenizer = new StringTokenizer(nextLine())",
"tokenizer",
"new StringTokenizer(nextLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"public int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n\n Task solver = new Task();\n solver.solve(1, in, out);\n out.close();\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n\n Task solver = new Task();\n solver.solve(1, in, out);\n out.close();\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import java.util.Set;
import java.util.StringTokenizer;
import java.util.TreeSet;
import static java.util.Arrays.binarySearch;
import static java.util.Arrays.copyOfRange;
import static java.util.Arrays.sort;
public class Main {
public static void main(String[] args) throws Exception {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
Task solver = new Task();
solver.solve(1, in, out);
out.close();
}
}
class Task {
private static int mod = 998244353;
public void solve(int testNumber, InputReader in, PrintWriter out) {
String s = in.next();
String t = in.next();
out.println(s.length() + 1 == t.length() && s.equals(t.substring(0, t.length() - 1)) ? "Yes" : "No");
}
}
class InputReader {
private final BufferedReader reader;
private StringTokenizer tokenizer;
public InputReader(InputStream stream) {
reader = new BufferedReader(new InputStreamReader(stream));
tokenizer = null;
}
public String nextLine() {
try {
return reader.readLine();
} catch (IOException e) {
throw new RuntimeException(e);
}
}
public String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
tokenizer = new StringTokenizer(nextLine());
}
return tokenizer.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
public long nextLong() {
return Long.parseLong(next());
}
public double nextDouble() {
return Double.parseDouble(next());
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
14,
2,
2,
4,
18,
13,
17,
2,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
20,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
13,
41,
13,
20,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
13,
41,
13,
17,
14,
2,
2,
4,
18,
13,
17,
4,
18,
13,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
13,
30,
0,
13,
17,
3,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
144,
5
],
[
144,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
19,
23
],
[
18,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
24,
28
],
[
17,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
29,
35
],
[
35,
36
],
[
35,
37
],
[
38,
39
],
[
39,
40
],
[
29,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
41,
51
],
[
51,
52
],
[
52,
53
],
[
41,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
29,
64
],
[
64,
65
],
[
64,
66
],
[
67,
68
],
[
68,
69
],
[
29,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
70,
80
],
[
80,
81
],
[
81,
82
],
[
70,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
29,
93
],
[
93,
94
],
[
93,
95
],
[
29,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
98,
102
],
[
97,
103
],
[
103,
104
],
[
104,
105
],
[
96,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
107,
117
],
[
117,
118
],
[
118,
119
],
[
107,
120
],
[
121,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
127,
128
],
[
127,
129
],
[
122,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
106,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
6,
141
],
[
141,
142
],
[
0,
143
],
[
143,
144
],
[
143,
145
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n if(s.length() >= 1 && s.length() <= 10){\n String t = scan.next();\n\n char[] x = new char[s.length()];\n for(int i = 0 ; i < s.length() ; i++){\n x[i] = s.charAt(i);\n }\n char[] y = new char[t.length()];\n for(int i = 0 ; i < t.length() ; i++){\n y[i] = t.charAt(i);\n }\n\n String out = \"Yes\";\n\n if((s.length() + 1) == t.length()){\n for(int i = 0 ; i < s.length() ; i++){\n if(x[i] != y[i]){\n out = \"No\";\n break;\n }\n }\n System.out.println(out);\n }\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n if(s.length() >= 1 && s.length() <= 10){\n String t = scan.next();\n\n char[] x = new char[s.length()];\n for(int i = 0 ; i < s.length() ; i++){\n x[i] = s.charAt(i);\n }\n char[] y = new char[t.length()];\n for(int i = 0 ; i < t.length() ; i++){\n y[i] = t.charAt(i);\n }\n\n String out = \"Yes\";\n\n if((s.length() + 1) == t.length()){\n for(int i = 0 ; i < s.length() ; i++){\n if(x[i] != y[i]){\n out = \"No\";\n break;\n }\n }\n System.out.println(out);\n }\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n if(s.length() >= 1 && s.length() <= 10){\n String t = scan.next();\n\n char[] x = new char[s.length()];\n for(int i = 0 ; i < s.length() ; i++){\n x[i] = s.charAt(i);\n }\n char[] y = new char[t.length()];\n for(int i = 0 ; i < t.length() ; i++){\n y[i] = t.charAt(i);\n }\n\n String out = \"Yes\";\n\n if((s.length() + 1) == t.length()){\n for(int i = 0 ; i < s.length() ; i++){\n if(x[i] != y[i]){\n out = \"No\";\n break;\n }\n }\n System.out.println(out);\n }\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n if(s.length() >= 1 && s.length() <= 10){\n String t = scan.next();\n\n char[] x = new char[s.length()];\n for(int i = 0 ; i < s.length() ; i++){\n x[i] = s.charAt(i);\n }\n char[] y = new char[t.length()];\n for(int i = 0 ; i < t.length() ; i++){\n y[i] = t.charAt(i);\n }\n\n String out = \"Yes\";\n\n if((s.length() + 1) == t.length()){\n for(int i = 0 ; i < s.length() ; i++){\n if(x[i] != y[i]){\n out = \"No\";\n break;\n }\n }\n System.out.println(out);\n }\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String s = scan.next();",
"s",
"scan.next()",
"scan.next",
"scan",
"if(s.length() >= 1 && s.length() <= 10){\n String t = scan.next();\n\n char[] x = new char[s.length()];\n for(int i = 0 ; i < s.length() ; i++){\n x[i] = s.charAt(i);\n }\n char[] y = new char[t.length()];\n for(int i = 0 ; i < t.length() ; i++){\n y[i] = t.charAt(i);\n }\n\n String out = \"Yes\";\n\n if((s.length() + 1) == t.length()){\n for(int i = 0 ; i < s.length() ; i++){\n if(x[i] != y[i]){\n out = \"No\";\n break;\n }\n }\n System.out.println(out);\n }\n }",
"s.length() >= 1 && s.length() <= 10",
"s.length() >= 1",
"s.length()",
"s.length",
"s",
"1",
"s.length() <= 10",
"s.length()",
"s.length",
"s",
"10",
"{\n String t = scan.next();\n\n char[] x = new char[s.length()];\n for(int i = 0 ; i < s.length() ; i++){\n x[i] = s.charAt(i);\n }\n char[] y = new char[t.length()];\n for(int i = 0 ; i < t.length() ; i++){\n y[i] = t.charAt(i);\n }\n\n String out = \"Yes\";\n\n if((s.length() + 1) == t.length()){\n for(int i = 0 ; i < s.length() ; i++){\n if(x[i] != y[i]){\n out = \"No\";\n break;\n }\n }\n System.out.println(out);\n }\n }",
"String t = scan.next();",
"t",
"scan.next()",
"scan.next",
"scan",
"char[] x = new char[s.length()];",
"x",
"new char[s.length()]",
"s.length()",
"s.length",
"s",
"for(int i = 0 ; i < s.length() ; i++){\n x[i] = 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 x[i] = s.charAt(i);\n }",
"{\n x[i] = s.charAt(i);\n }",
"x[i] = s.charAt(i)",
"x[i]",
"x",
"i",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"char[] y = new char[t.length()];",
"y",
"new char[t.length()]",
"t.length()",
"t.length",
"t",
"for(int i = 0 ; i < t.length() ; i++){\n y[i] = t.charAt(i);\n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < t.length()",
"i",
"t.length()",
"t.length",
"t",
"i++",
"i++",
"i",
"{\n y[i] = t.charAt(i);\n }",
"{\n y[i] = t.charAt(i);\n }",
"y[i] = t.charAt(i)",
"y[i]",
"y",
"i",
"t.charAt(i)",
"t.charAt",
"t",
"i",
"String out = \"Yes\";",
"out",
"\"Yes\"",
"if((s.length() + 1) == t.length()){\n for(int i = 0 ; i < s.length() ; i++){\n if(x[i] != y[i]){\n out = \"No\";\n break;\n }\n }\n System.out.println(out);\n }",
"(s.length() + 1) == t.length()",
"(s.length() + 1)",
"s.length()",
"s.length",
"s",
"1",
"t.length()",
"t.length",
"t",
"{\n for(int i = 0 ; i < s.length() ; i++){\n if(x[i] != y[i]){\n out = \"No\";\n break;\n }\n }\n System.out.println(out);\n }",
"for(int i = 0 ; i < s.length() ; i++){\n if(x[i] != y[i]){\n out = \"No\";\n break;\n }\n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n if(x[i] != y[i]){\n out = \"No\";\n break;\n }\n }",
"{\n if(x[i] != y[i]){\n out = \"No\";\n break;\n }\n }",
"if(x[i] != y[i]){\n out = \"No\";\n break;\n }",
"x[i] != y[i]",
"x[i]",
"x",
"i",
"y[i]",
"y",
"i",
"{\n out = \"No\";\n break;\n }",
"out = \"No\"",
"out",
"\"No\"",
"break;",
"System.out.println(out)",
"System.out.println",
"System.out",
"System",
"System.out",
"out",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n if(s.length() >= 1 && s.length() <= 10){\n String t = scan.next();\n\n char[] x = new char[s.length()];\n for(int i = 0 ; i < s.length() ; i++){\n x[i] = s.charAt(i);\n }\n char[] y = new char[t.length()];\n for(int i = 0 ; i < t.length() ; i++){\n y[i] = t.charAt(i);\n }\n\n String out = \"Yes\";\n\n if((s.length() + 1) == t.length()){\n for(int i = 0 ; i < s.length() ; i++){\n if(x[i] != y[i]){\n out = \"No\";\n break;\n }\n }\n System.out.println(out);\n }\n }\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n if(s.length() >= 1 && s.length() <= 10){\n String t = scan.next();\n\n char[] x = new char[s.length()];\n for(int i = 0 ; i < s.length() ; i++){\n x[i] = s.charAt(i);\n }\n char[] y = new char[t.length()];\n for(int i = 0 ; i < t.length() ; i++){\n y[i] = t.charAt(i);\n }\n\n String out = \"Yes\";\n\n if((s.length() + 1) == t.length()){\n for(int i = 0 ; i < s.length() ; i++){\n if(x[i] != y[i]){\n out = \"No\";\n break;\n }\n }\n System.out.println(out);\n }\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
String s = scan.next();
if(s.length() >= 1 && s.length() <= 10){
String t = scan.next();
char[] x = new char[s.length()];
for(int i = 0 ; i < s.length() ; i++){
x[i] = s.charAt(i);
}
char[] y = new char[t.length()];
for(int i = 0 ; i < t.length() ; i++){
y[i] = t.charAt(i);
}
String out = "Yes";
if((s.length() + 1) == t.length()){
for(int i = 0 ; i < s.length() ; i++){
if(x[i] != y[i]){
out = "No";
break;
}
}
System.out.println(out);
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
42,
2,
13,
13,
30,
14,
2,
17,
2,
4,
18,
13,
13,
4,
18,
13,
13,
30,
3,
40,
13,
14,
2,
4,
18,
4,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
83,
5
],
[
83,
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
],
[
24,
27
],
[
27,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
44,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
41,
53
],
[
53,
54
],
[
40,
55
],
[
55,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
58,
65
],
[
57,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
57,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
6,
80
],
[
80,
81
],
[
0,
82
],
[
82,
83
],
[
82,
84
]
] |
[
"\n\n\nimport java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner=new Scanner(System.in);\n\t\tString a=scanner.next();\n\t\tString b=scanner.next() ;\n\t\tint length = Math.min(a.length(), b.length());\n\t int pos = 0;\n\t while (pos < length) {\n\t if (0 != (a.charAt(pos) ^ b.charAt(pos))) {\n\t break;\n\t }\n\t pos++;\n\t }\n\t // System.out.println(a.substring(pos));\n\t //System.out.println(b.substring(pos));\n\n\t \tif(a.substring(pos).length()==0) {\n\t \t\tSystem.out.println(\"Yes\");\n\t \t}\n\t \telse {\n\t \t\tSystem.out.println(\"No\");\n\t \t}\n\n\n\t\t}\n\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner=new Scanner(System.in);\n\t\tString a=scanner.next();\n\t\tString b=scanner.next() ;\n\t\tint length = Math.min(a.length(), b.length());\n\t int pos = 0;\n\t while (pos < length) {\n\t if (0 != (a.charAt(pos) ^ b.charAt(pos))) {\n\t break;\n\t }\n\t pos++;\n\t }\n\t // System.out.println(a.substring(pos));\n\t //System.out.println(b.substring(pos));\n\n\t \tif(a.substring(pos).length()==0) {\n\t \t\tSystem.out.println(\"Yes\");\n\t \t}\n\t \telse {\n\t \t\tSystem.out.println(\"No\");\n\t \t}\n\n\n\t\t}\n\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner=new Scanner(System.in);\n\t\tString a=scanner.next();\n\t\tString b=scanner.next() ;\n\t\tint length = Math.min(a.length(), b.length());\n\t int pos = 0;\n\t while (pos < length) {\n\t if (0 != (a.charAt(pos) ^ b.charAt(pos))) {\n\t break;\n\t }\n\t pos++;\n\t }\n\t // System.out.println(a.substring(pos));\n\t //System.out.println(b.substring(pos));\n\n\t \tif(a.substring(pos).length()==0) {\n\t \t\tSystem.out.println(\"Yes\");\n\t \t}\n\t \telse {\n\t \t\tSystem.out.println(\"No\");\n\t \t}\n\n\n\t\t}",
"main",
"{\n\t\tScanner scanner=new Scanner(System.in);\n\t\tString a=scanner.next();\n\t\tString b=scanner.next() ;\n\t\tint length = Math.min(a.length(), b.length());\n\t int pos = 0;\n\t while (pos < length) {\n\t if (0 != (a.charAt(pos) ^ b.charAt(pos))) {\n\t break;\n\t }\n\t pos++;\n\t }\n\t // System.out.println(a.substring(pos));\n\t //System.out.println(b.substring(pos));\n\n\t \tif(a.substring(pos).length()==0) {\n\t \t\tSystem.out.println(\"Yes\");\n\t \t}\n\t \telse {\n\t \t\tSystem.out.println(\"No\");\n\t \t}\n\n\n\t\t}",
"Scanner scanner=new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"String a=scanner.next();",
"a",
"scanner.next()",
"scanner.next",
"scanner",
"String b=scanner.next() ;",
"b",
"scanner.next()",
"scanner.next",
"scanner",
"int length = Math.min(a.length(), b.length());",
"length",
"Math.min(a.length(), b.length())",
"Math.min",
"Math",
"a.length()",
"a.length",
"a",
"b.length()",
"b.length",
"b",
"int pos = 0;",
"pos",
"0",
"while (pos < length) {\n\t if (0 != (a.charAt(pos) ^ b.charAt(pos))) {\n\t break;\n\t }\n\t pos++;\n\t }",
"pos < length",
"pos",
"length",
"{\n\t if (0 != (a.charAt(pos) ^ b.charAt(pos))) {\n\t break;\n\t }\n\t pos++;\n\t }",
"if (0 != (a.charAt(pos) ^ b.charAt(pos))) {\n\t break;\n\t }",
"0 != (a.charAt(pos) ^ b.charAt(pos))",
"0",
"(a.charAt(pos) ^ b.charAt(pos))",
"a.charAt(pos)",
"a.charAt",
"a",
"pos",
"b.charAt(pos)",
"b.charAt",
"b",
"pos",
"{\n\t break;\n\t }",
"break;",
"pos++",
"pos",
"if(a.substring(pos).length()==0) {\n\t \t\tSystem.out.println(\"Yes\");\n\t \t}\n\t \telse {\n\t \t\tSystem.out.println(\"No\");\n\t \t}",
"a.substring(pos).length()==0",
"a.substring(pos).length()",
"a.substring(pos).length",
"a.substring(pos)",
"a.substring",
"a",
"pos",
"0",
"{\n\t \t\tSystem.out.println(\"Yes\");\n\t \t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t \t\tSystem.out.println(\"No\");\n\t \t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner=new Scanner(System.in);\n\t\tString a=scanner.next();\n\t\tString b=scanner.next() ;\n\t\tint length = Math.min(a.length(), b.length());\n\t int pos = 0;\n\t while (pos < length) {\n\t if (0 != (a.charAt(pos) ^ b.charAt(pos))) {\n\t break;\n\t }\n\t pos++;\n\t }\n\t // System.out.println(a.substring(pos));\n\t //System.out.println(b.substring(pos));\n\n\t \tif(a.substring(pos).length()==0) {\n\t \t\tSystem.out.println(\"Yes\");\n\t \t}\n\t \telse {\n\t \t\tSystem.out.println(\"No\");\n\t \t}\n\n\n\t\t}\n\n\n}",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner=new Scanner(System.in);\n\t\tString a=scanner.next();\n\t\tString b=scanner.next() ;\n\t\tint length = Math.min(a.length(), b.length());\n\t int pos = 0;\n\t while (pos < length) {\n\t if (0 != (a.charAt(pos) ^ b.charAt(pos))) {\n\t break;\n\t }\n\t pos++;\n\t }\n\t // System.out.println(a.substring(pos));\n\t //System.out.println(b.substring(pos));\n\n\t \tif(a.substring(pos).length()==0) {\n\t \t\tSystem.out.println(\"Yes\");\n\t \t}\n\t \telse {\n\t \t\tSystem.out.println(\"No\");\n\t \t}\n\n\n\t\t}\n\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner scanner=new Scanner(System.in);
String a=scanner.next();
String b=scanner.next() ;
int length = Math.min(a.length(), b.length());
int pos = 0;
while (pos < length) {
if (0 != (a.charAt(pos) ^ b.charAt(pos))) {
break;
}
pos++;
}
// System.out.println(a.substring(pos));
//System.out.println(b.substring(pos));
if(a.substring(pos).length()==0) {
System.out.println("Yes");
}
else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
41,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
30,
0,
13,
17,
3,
14,
2,
2,
13,
17,
13,
0,
13,
17,
14,
2,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
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
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
8,
34
],
[
34,
35
],
[
34,
36
],
[
8,
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
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
51,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
50,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
8,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
65,
71
],
[
71,
72
],
[
71,
73
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
74,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
6,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
] |
[
"/******************************************************************************\n\n Online Java Compiler.\n Code, Compile, Run and Debug java program online.\nWrite your code in this editor and press \"Run\" button to execute it.\n\n*******************************************************************************/\nimport java.util.*;\npublic class Main\n{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString t = sc.nextLine();\n\t\tint n = s.length();\n\t\tint m = t.length();\n\t\tint i,p=0;\n\t\tfor(i=0; i<n; i++)\n\t\t{\n\t\t if(s.charAt(i) != t.charAt(i))\n\t\t {\n\t\t p = 1;\n\t\t break;\n\t\t }\n \t}\n \tif(n+1 != m)\n \t p = 1;\n \tif(p == 1)\n \t System.out.println(\"No\");\n \telse\n \t System.out.println(\"Yes\");\n}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main\n{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString t = sc.nextLine();\n\t\tint n = s.length();\n\t\tint m = t.length();\n\t\tint i,p=0;\n\t\tfor(i=0; i<n; i++)\n\t\t{\n\t\t if(s.charAt(i) != t.charAt(i))\n\t\t {\n\t\t p = 1;\n\t\t break;\n\t\t }\n \t}\n \tif(n+1 != m)\n \t p = 1;\n \tif(p == 1)\n \t System.out.println(\"No\");\n \telse\n \t System.out.println(\"Yes\");\n}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString t = sc.nextLine();\n\t\tint n = s.length();\n\t\tint m = t.length();\n\t\tint i,p=0;\n\t\tfor(i=0; i<n; i++)\n\t\t{\n\t\t if(s.charAt(i) != t.charAt(i))\n\t\t {\n\t\t p = 1;\n\t\t break;\n\t\t }\n \t}\n \tif(n+1 != m)\n \t p = 1;\n \tif(p == 1)\n \t System.out.println(\"No\");\n \telse\n \t System.out.println(\"Yes\");\n}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString t = sc.nextLine();\n\t\tint n = s.length();\n\t\tint m = t.length();\n\t\tint i,p=0;\n\t\tfor(i=0; i<n; i++)\n\t\t{\n\t\t if(s.charAt(i) != t.charAt(i))\n\t\t {\n\t\t p = 1;\n\t\t break;\n\t\t }\n \t}\n \tif(n+1 != m)\n \t p = 1;\n \tif(p == 1)\n \t System.out.println(\"No\");\n \telse\n \t System.out.println(\"Yes\");\n}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String t = sc.nextLine();",
"t",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int n = s.length();",
"n",
"s.length()",
"s.length",
"s",
"int m = t.length();",
"m",
"t.length()",
"t.length",
"t",
"int i",
"i",
"p=0;",
"p",
"0",
"for(i=0; i<n; i++)\n\t\t{\n\t\t if(s.charAt(i) != t.charAt(i))\n\t\t {\n\t\t p = 1;\n\t\t break;\n\t\t }\n \t}",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t if(s.charAt(i) != t.charAt(i))\n\t\t {\n\t\t p = 1;\n\t\t break;\n\t\t }\n \t}",
"{\n\t\t if(s.charAt(i) != t.charAt(i))\n\t\t {\n\t\t p = 1;\n\t\t break;\n\t\t }\n \t}",
"if(s.charAt(i) != t.charAt(i))\n\t\t {\n\t\t p = 1;\n\t\t break;\n\t\t }",
"s.charAt(i) != t.charAt(i)",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"t.charAt(i)",
"t.charAt",
"t",
"i",
"{\n\t\t p = 1;\n\t\t break;\n\t\t }",
"p = 1",
"p",
"1",
"break;",
"if(n+1 != m)\n \t p = 1;",
"n+1 != m",
"n+1",
"n",
"1",
"m",
"p = 1",
"p",
"1",
"if(p == 1)\n \t System.out.println(\"No\");\n \telse\n \t System.out.println(\"Yes\");",
"p == 1",
"p",
"1",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"String[] args",
"args",
"public class Main\n{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString t = sc.nextLine();\n\t\tint n = s.length();\n\t\tint m = t.length();\n\t\tint i,p=0;\n\t\tfor(i=0; i<n; i++)\n\t\t{\n\t\t if(s.charAt(i) != t.charAt(i))\n\t\t {\n\t\t p = 1;\n\t\t break;\n\t\t }\n \t}\n \tif(n+1 != m)\n \t p = 1;\n \tif(p == 1)\n \t System.out.println(\"No\");\n \telse\n \t System.out.println(\"Yes\");\n}\n}",
"public class Main\n{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString t = sc.nextLine();\n\t\tint n = s.length();\n\t\tint m = t.length();\n\t\tint i,p=0;\n\t\tfor(i=0; i<n; i++)\n\t\t{\n\t\t if(s.charAt(i) != t.charAt(i))\n\t\t {\n\t\t p = 1;\n\t\t break;\n\t\t }\n \t}\n \tif(n+1 != m)\n \t p = 1;\n \tif(p == 1)\n \t System.out.println(\"No\");\n \telse\n \t System.out.println(\"Yes\");\n}\n}",
"Main"
] |
/******************************************************************************
Online Java Compiler.
Code, Compile, Run and Debug java program online.
Write your code in this editor and press "Run" button to execute it.
*******************************************************************************/
import java.util.*;
public class Main
{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.nextLine();
String t = sc.nextLine();
int n = s.length();
int m = t.length();
int i,p=0;
for(i=0; i<n; i++)
{
if(s.charAt(i) != t.charAt(i))
{
p = 1;
break;
}
}
if(n+1 != m)
p = 1;
if(p == 1)
System.out.println("No");
else
System.out.println("Yes");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
8,
4,
18,
13,
13,
17,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
37,
5
],
[
37,
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
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
27,
32
],
[
27,
33
],
[
6,
34
],
[
34,
35
],
[
0,
36
],
[
36,
37
],
[
36,
38
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\t\tSystem.out.println(t.startsWith(s) ? \"Yes\" : \"No\");\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\t\tSystem.out.println(t.startsWith(s) ? \"Yes\" : \"No\");\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\t\tSystem.out.println(t.startsWith(s) ? \"Yes\" : \"No\");\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\t\tSystem.out.println(t.startsWith(s) ? \"Yes\" : \"No\");\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String t = sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"System.out.println(t.startsWith(s) ? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"t.startsWith(s) ? \"Yes\" : \"No\"",
"t.startsWith(s)",
"t.startsWith",
"t",
"s",
"\"Yes\"",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\t\tSystem.out.println(t.startsWith(s) ? \"Yes\" : \"No\");\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\t\tSystem.out.println(t.startsWith(s) ? \"Yes\" : \"No\");\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.next();
String t = sc.next();
System.out.println(t.startsWith(s) ? "Yes" : "No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
4,
18,
13,
41,
13,
4,
18,
13,
17,
4,
18,
13,
14,
2,
4,
18,
13,
13,
2,
2,
4,
18,
13,
17,
4,
18,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
72,
5
],
[
72,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
41,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
47,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
40,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
40,
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.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String t = sc.next();\n\n String ss = s.substring(0, s.length());\n String ts = t.substring(0, s.length());\n\n if(ss.equals(ts) && s.length()+1 == t.length()){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String t = sc.next();\n\n String ss = s.substring(0, s.length());\n String ts = t.substring(0, s.length());\n\n if(ss.equals(ts) && s.length()+1 == t.length()){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String t = sc.next();\n\n String ss = s.substring(0, s.length());\n String ts = t.substring(0, s.length());\n\n if(ss.equals(ts) && s.length()+1 == t.length()){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String t = sc.next();\n\n String ss = s.substring(0, s.length());\n String ts = t.substring(0, s.length());\n\n if(ss.equals(ts) && s.length()+1 == t.length()){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String t = sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"String ss = s.substring(0, s.length());",
"ss",
"s.substring(0, s.length())",
"s.substring",
"s",
"0",
"s.length()",
"s.length",
"s",
"String ts = t.substring(0, s.length());",
"ts",
"t.substring(0, s.length())",
"t.substring",
"t",
"0",
"s.length()",
"s.length",
"s",
"if(ss.equals(ts) && s.length()+1 == t.length()){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"ss.equals(ts) && s.length()+1 == t.length()",
"ss.equals(ts)",
"ss.equals",
"ss",
"ts",
"s.length()+1 == t.length()",
"s.length()+1",
"s.length()",
"s.length",
"s",
"1",
"t.length()",
"t.length",
"t",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String t = sc.next();\n\n String ss = s.substring(0, s.length());\n String ts = t.substring(0, s.length());\n\n if(ss.equals(ts) && s.length()+1 == t.length()){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String t = sc.next();\n\n String ss = s.substring(0, s.length());\n String ts = t.substring(0, s.length());\n\n if(ss.equals(ts) && s.length()+1 == t.length()){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String s = sc.next();
String t = sc.next();
String ss = s.substring(0, s.length());
String ts = t.substring(0, s.length());
if(ss.equals(ts) && s.length()+1 == t.length()){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
4,
18,
2,
13,
13,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
8,
13,
17,
17,
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
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
38,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
54,
57
],
[
6,
58
],
[
58,
59
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
] |
[
"import java.util.Scanner;\npublic class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n String str1 = sc.next();\n boolean b = false;\n for(char c = 'a'; c <= 'z'; c++)\n {\n if((str+c).equals(str1))\n {\n b = true;\n }\n }\n System.out.println(b?\"Yes\":\"No\");\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n String str1 = sc.next();\n boolean b = false;\n for(char c = 'a'; c <= 'z'; c++)\n {\n if((str+c).equals(str1))\n {\n b = true;\n }\n }\n System.out.println(b?\"Yes\":\"No\");\n }\n}",
"Main",
"public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n String str1 = sc.next();\n boolean b = false;\n for(char c = 'a'; c <= 'z'; c++)\n {\n if((str+c).equals(str1))\n {\n b = true;\n }\n }\n System.out.println(b?\"Yes\":\"No\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n String str1 = sc.next();\n boolean b = false;\n for(char c = 'a'; c <= 'z'; c++)\n {\n if((str+c).equals(str1))\n {\n b = true;\n }\n }\n System.out.println(b?\"Yes\":\"No\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"String str1 = sc.next();",
"str1",
"sc.next()",
"sc.next",
"sc",
"boolean b = false;",
"b",
"false",
"for(char c = 'a'; c <= 'z'; c++)\n {\n if((str+c).equals(str1))\n {\n b = true;\n }\n }",
"char c = 'a';",
"char c = 'a';",
"c",
"'a'",
"c <= 'z'",
"c",
"'z'",
"c++",
"c++",
"c",
"{\n if((str+c).equals(str1))\n {\n b = true;\n }\n }",
"{\n if((str+c).equals(str1))\n {\n b = true;\n }\n }",
"if((str+c).equals(str1))\n {\n b = true;\n }",
"(str+c).equals(str1)",
"(str+c).equals",
"(str+c)",
"str",
"c",
"str1",
"{\n b = true;\n }",
"b = true",
"b",
"true",
"System.out.println(b?\"Yes\":\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"b?\"Yes\":\"No\"",
"b",
"\"Yes\"",
"\"No\"",
"String[] args",
"args",
"public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n String str1 = sc.next();\n boolean b = false;\n for(char c = 'a'; c <= 'z'; c++)\n {\n if((str+c).equals(str1))\n {\n b = true;\n }\n }\n System.out.println(b?\"Yes\":\"No\");\n }\n}",
"public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n String str1 = sc.next();\n boolean b = false;\n for(char c = 'a'; c <= 'z'; c++)\n {\n if((str+c).equals(str1))\n {\n b = true;\n }\n }\n System.out.println(b?\"Yes\":\"No\");\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
String str = sc.next();
String str1 = sc.next();
boolean b = false;
for(char c = 'a'; c <= 'z'; c++)
{
if((str+c).equals(str1))
{
b = true;
}
}
System.out.println(b?"Yes":"No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
2,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
17,
4,
18,
13,
14,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
64,
5
],
[
64,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
27,
31
],
[
22,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
35,
39
],
[
39,
40
],
[
40,
41
],
[
32,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
42,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
42,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
6,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
] |
[
"import java.util.Scanner;\n\npublic class Main{\n\n\t\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t String str1 = sc.next();\n\t String str2 = sc.next();\n\t \n\t if(str2.length() == str1.length()+1) {\n\t String sub = str2.substring(0,str1.length());\n\t if(sub.equals(str1)) {\n\t \tSystem.out.println(\"Yes\"); \n\t }\n\t else {\n\t \tSystem.out.println(\"No\"); \n\t }\n\t }\n \n \n\n \n\t \n //System.out.println(res); \n\t \n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n\t\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t String str1 = sc.next();\n\t String str2 = sc.next();\n\t \n\t if(str2.length() == str1.length()+1) {\n\t String sub = str2.substring(0,str1.length());\n\t if(sub.equals(str1)) {\n\t \tSystem.out.println(\"Yes\"); \n\t }\n\t else {\n\t \tSystem.out.println(\"No\"); \n\t }\n\t }\n \n \n\n \n\t \n //System.out.println(res); \n\t \n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t String str1 = sc.next();\n\t String str2 = sc.next();\n\t \n\t if(str2.length() == str1.length()+1) {\n\t String sub = str2.substring(0,str1.length());\n\t if(sub.equals(str1)) {\n\t \tSystem.out.println(\"Yes\"); \n\t }\n\t else {\n\t \tSystem.out.println(\"No\"); \n\t }\n\t }\n \n \n\n \n\t \n //System.out.println(res); \n\t \n\t}",
"main",
"{\n\t Scanner sc = new Scanner(System.in);\n\t String str1 = sc.next();\n\t String str2 = sc.next();\n\t \n\t if(str2.length() == str1.length()+1) {\n\t String sub = str2.substring(0,str1.length());\n\t if(sub.equals(str1)) {\n\t \tSystem.out.println(\"Yes\"); \n\t }\n\t else {\n\t \tSystem.out.println(\"No\"); \n\t }\n\t }\n \n \n\n \n\t \n //System.out.println(res); \n\t \n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String str1 = sc.next();",
"str1",
"sc.next()",
"sc.next",
"sc",
"String str2 = sc.next();",
"str2",
"sc.next()",
"sc.next",
"sc",
"if(str2.length() == str1.length()+1) {\n\t String sub = str2.substring(0,str1.length());\n\t if(sub.equals(str1)) {\n\t \tSystem.out.println(\"Yes\"); \n\t }\n\t else {\n\t \tSystem.out.println(\"No\"); \n\t }\n\t }",
"str2.length() == str1.length()+1",
"str2.length()",
"str2.length",
"str2",
"str1.length()+1",
"str1.length()",
"str1.length",
"str1",
"1",
"{\n\t String sub = str2.substring(0,str1.length());\n\t if(sub.equals(str1)) {\n\t \tSystem.out.println(\"Yes\"); \n\t }\n\t else {\n\t \tSystem.out.println(\"No\"); \n\t }\n\t }",
"String sub = str2.substring(0,str1.length());",
"sub",
"str2.substring(0,str1.length())",
"str2.substring",
"str2",
"0",
"str1.length()",
"str1.length",
"str1",
"if(sub.equals(str1)) {\n\t \tSystem.out.println(\"Yes\"); \n\t }\n\t else {\n\t \tSystem.out.println(\"No\"); \n\t }",
"sub.equals(str1)",
"sub.equals",
"sub",
"str1",
"{\n\t \tSystem.out.println(\"Yes\"); \n\t }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t \tSystem.out.println(\"No\"); \n\t }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main{\n\n\t\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t String str1 = sc.next();\n\t String str2 = sc.next();\n\t \n\t if(str2.length() == str1.length()+1) {\n\t String sub = str2.substring(0,str1.length());\n\t if(sub.equals(str1)) {\n\t \tSystem.out.println(\"Yes\"); \n\t }\n\t else {\n\t \tSystem.out.println(\"No\"); \n\t }\n\t }\n \n \n\n \n\t \n //System.out.println(res); \n\t \n\t}\n}",
"public class Main{\n\n\t\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t String str1 = sc.next();\n\t String str2 = sc.next();\n\t \n\t if(str2.length() == str1.length()+1) {\n\t String sub = str2.substring(0,str1.length());\n\t if(sub.equals(str1)) {\n\t \tSystem.out.println(\"Yes\"); \n\t }\n\t else {\n\t \tSystem.out.println(\"No\"); \n\t }\n\t }\n \n \n\n \n\t \n //System.out.println(res); \n\t \n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String str1 = sc.next();
String str2 = sc.next();
if(str2.length() == str1.length()+1) {
String sub = str2.substring(0,str1.length());
if(sub.equals(str1)) {
System.out.println("Yes");
}
else {
System.out.println("No");
}
}
//System.out.println(res);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
4,
18,
13,
2,
4,
18,
13,
17,
14,
4,
18,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
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
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
29,
33
],
[
8,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
34,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
34,
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\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\n\t\tString newStr = s + t.charAt(t.length() -1);\n\t\tif (t.equals(newStr))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\n\t\tString newStr = s + t.charAt(t.length() -1);\n\t\tif (t.equals(newStr))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\n\t\tString newStr = s + t.charAt(t.length() -1);\n\t\tif (t.equals(newStr))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\n\t\tString newStr = s + t.charAt(t.length() -1);\n\t\tif (t.equals(newStr))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String t = sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"String newStr = s + t.charAt(t.length() -1);",
"newStr",
"s + t.charAt(t.length() -1)",
"s",
"t.charAt(t.length() -1)",
"t.charAt",
"t",
"t.length() -1",
"t.length()",
"t.length",
"t",
"1",
"if (t.equals(newStr))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");",
"t.equals(newStr)",
"t.equals",
"t",
"newStr",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\n\t\tString newStr = s + t.charAt(t.length() -1);\n\t\tif (t.equals(newStr))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\n\t\tString newStr = s + t.charAt(t.length() -1);\n\t\tif (t.equals(newStr))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\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 s = sc.next();
String t = sc.next();
String newStr = s + t.charAt(t.length() -1);
if (t.equals(newStr))
System.out.println("Yes");
else
System.out.println("No");
}
}
|
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
20,
13,
13,
23,
13,
12,
13,
30,
14,
2,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
17,
14,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
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
],
[
16,
17
],
[
17,
18
],
[
5,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
19,
23
],
[
3,
24
],
[
24,
25
],
[
1,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
28,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
47,
51
],
[
51,
52
],
[
52,
53
],
[
43,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
43,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
26,
66
],
[
66,
67
],
[
26,
68
],
[
68,
69
]
] |
[
"class Main {\n\tpublic static void main(String[] args) {\n \tjava.util.Scanner input = new java.util.Scanner(System.in);\n \tString S = input.nextLine();\n \tString T = input.nextLine();\n \t new Main().solve(S, T);\n }\n \tprivate void solve(String s, String t) {\n if(s.length() >= t.length())\n System.out.print(\"No\");\n \t if(s.equals(t.substring(0, s.length())))\n System.out.print(\"Yes\");\n else\n System.out.print(\"No\");\n }\n}",
"class Main {\n\tpublic static void main(String[] args) {\n \tjava.util.Scanner input = new java.util.Scanner(System.in);\n \tString S = input.nextLine();\n \tString T = input.nextLine();\n \t new Main().solve(S, T);\n }\n \tprivate void solve(String s, String t) {\n if(s.length() >= t.length())\n System.out.print(\"No\");\n \t if(s.equals(t.substring(0, s.length())))\n System.out.print(\"Yes\");\n else\n System.out.print(\"No\");\n }\n}",
"Main",
"public static void main(String[] args) {\n \tjava.util.Scanner input = new java.util.Scanner(System.in);\n \tString S = input.nextLine();\n \tString T = input.nextLine();\n \t new Main().solve(S, T);\n }",
"main",
"{\n \tjava.util.Scanner input = new java.util.Scanner(System.in);\n \tString S = input.nextLine();\n \tString T = input.nextLine();\n \t new Main().solve(S, T);\n }",
"java.util.Scanner input = new java.util.Scanner(System.in);",
"input",
"new java.util.Scanner(System.in)",
"String S = input.nextLine();",
"S",
"input.nextLine()",
"input.nextLine",
"input",
"String T = input.nextLine();",
"T",
"input.nextLine()",
"input.nextLine",
"input",
"new Main().solve(S, T)",
"new Main().solve",
"new Main()",
"S",
"T",
"String[] args",
"args",
"private void solve(String s, String t) {\n if(s.length() >= t.length())\n System.out.print(\"No\");\n \t if(s.equals(t.substring(0, s.length())))\n System.out.print(\"Yes\");\n else\n System.out.print(\"No\");\n }",
"solve",
"{\n if(s.length() >= t.length())\n System.out.print(\"No\");\n \t if(s.equals(t.substring(0, s.length())))\n System.out.print(\"Yes\");\n else\n System.out.print(\"No\");\n }",
"if(s.length() >= t.length())\n System.out.print(\"No\");",
"s.length() >= t.length()",
"s.length()",
"s.length",
"s",
"t.length()",
"t.length",
"t",
"System.out.print(\"No\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"No\"",
"if(s.equals(t.substring(0, s.length())))\n System.out.print(\"Yes\");\n else\n System.out.print(\"No\");",
"s.equals(t.substring(0, s.length()))",
"s.equals",
"s",
"t.substring(0, s.length())",
"t.substring",
"t",
"0",
"s.length()",
"s.length",
"s",
"System.out.print(\"Yes\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.print(\"No\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"No\"",
"String s",
"s",
"String t",
"t"
] |
class Main {
public static void main(String[] args) {
java.util.Scanner input = new java.util.Scanner(System.in);
String S = input.nextLine();
String T = input.nextLine();
new Main().solve(S, T);
}
private void solve(String s, String t) {
if(s.length() >= t.length())
System.out.print("No");
if(s.equals(t.substring(0, s.length())))
System.out.print("Yes");
else
System.out.print("No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
44,
5
],
[
44,
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
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
22,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
22,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
6,
41
],
[
41,
42
],
[
0,
43
],
[
43,
44
],
[
43,
45
]
] |
[
"import java.util.*;\n\n\npublic class Main{\n public static void main(String[] args) throws Exception{\n \n Scanner sc = new Scanner(System.in);\n \n String s = sc.next();\n String t = sc.next();\n\n if(t.startsWith(s)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args) throws Exception{\n \n Scanner sc = new Scanner(System.in);\n \n String s = sc.next();\n String t = sc.next();\n\n if(t.startsWith(s)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args) throws Exception{\n \n Scanner sc = new Scanner(System.in);\n \n String s = sc.next();\n String t = sc.next();\n\n if(t.startsWith(s)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"main",
"{\n \n Scanner sc = new Scanner(System.in);\n \n String s = sc.next();\n String t = sc.next();\n\n if(t.startsWith(s)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String t = sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"if(t.startsWith(s)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"t.startsWith(s)",
"t.startsWith",
"t",
"s",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) throws Exception{\n \n Scanner sc = new Scanner(System.in);\n \n String s = sc.next();\n String t = sc.next();\n\n if(t.startsWith(s)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\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 s = sc.next();\n String t = sc.next();\n\n if(t.startsWith(s)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args) throws Exception{
Scanner sc = new Scanner(System.in);
String s = sc.next();
String t = sc.next();
if(t.startsWith(s)){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
14,
2,
2,
4,
18,
13,
2,
4,
18,
13,
17,
4,
18,
4,
18,
13,
17,
4,
18,
13,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
62,
5
],
[
62,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
34,
38
],
[
29,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
39,
48
],
[
28,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
6,
59
],
[
59,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
]
] |
[
"\nimport java.util.*;\n\npublic class Main {\n public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final String s = sc.next();\n final String t = sc.next();\n sc.close();\n String result = \"No\";\n\n if (t.length() == s.length() + 1 && t.substring(0, s.length()).equals(s)) {\n result = \"Yes\";\n }\n\n System.out.println(result);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final String s = sc.next();\n final String t = sc.next();\n sc.close();\n String result = \"No\";\n\n if (t.length() == s.length() + 1 && t.substring(0, s.length()).equals(s)) {\n result = \"Yes\";\n }\n\n System.out.println(result);\n }\n}",
"Main",
"public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final String s = sc.next();\n final String t = sc.next();\n sc.close();\n String result = \"No\";\n\n if (t.length() == s.length() + 1 && t.substring(0, s.length()).equals(s)) {\n result = \"Yes\";\n }\n\n System.out.println(result);\n }",
"main",
"{\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final String s = sc.next();\n final String t = sc.next();\n sc.close();\n String result = \"No\";\n\n if (t.length() == s.length() + 1 && t.substring(0, s.length()).equals(s)) {\n result = \"Yes\";\n }\n\n System.out.println(result);\n }",
"final Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"final String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"final String t = sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"sc.close()",
"sc.close",
"sc",
"String result = \"No\";",
"result",
"\"No\"",
"if (t.length() == s.length() + 1 && t.substring(0, s.length()).equals(s)) {\n result = \"Yes\";\n }",
"t.length() == s.length() + 1 && t.substring(0, s.length()).equals(s)",
"t.length() == s.length() + 1",
"t.length()",
"t.length",
"t",
"s.length() + 1",
"s.length()",
"s.length",
"s",
"1",
"t.substring(0, s.length()).equals(s)",
"t.substring(0, s.length()).equals",
"t.substring(0, s.length())",
"t.substring",
"t",
"0",
"s.length()",
"s.length",
"s",
"s",
"{\n result = \"Yes\";\n }",
"result = \"Yes\"",
"result",
"\"Yes\"",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"final String[] args",
"args",
"public class Main {\n public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final String s = sc.next();\n final String t = sc.next();\n sc.close();\n String result = \"No\";\n\n if (t.length() == s.length() + 1 && t.substring(0, s.length()).equals(s)) {\n result = \"Yes\";\n }\n\n System.out.println(result);\n }\n}",
"public class Main {\n public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final String s = sc.next();\n final String t = sc.next();\n sc.close();\n String result = \"No\";\n\n if (t.length() == s.length() + 1 && t.substring(0, s.length()).equals(s)) {\n result = \"Yes\";\n }\n\n System.out.println(result);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(final String[] args) {
final Scanner sc = new Scanner(System.in);
// 整数の入力
// final int a = sc.nextInt();
// 文字列の入力
// final String s1 = sc.next();
final String s = sc.next();
final String t = sc.next();
sc.close();
String result = "No";
if (t.length() == s.length() + 1 && t.substring(0, s.length()).equals(s)) {
result = "Yes";
}
System.out.println(result);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
18,
13,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
13,
18,
13,
13,
14,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
76,
5
],
[
76,
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
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
30,
42
],
[
42,
43
],
[
43,
44
],
[
30,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
54,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
54,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
6,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
] |
[
"import java.util.Scanner;\n \npublic class Main{\n public static void main(String[] args) {\n Scanner in=new Scanner(System.in);\n String s=in.nextLine();\n String ss=in.nextLine();\n char ch[]=ss.toCharArray();\n String c=\"\";\n for (int i = 0; i < ch.length-1; i++) {\n c=c+ch[i];\n }\n if(c.equals(s)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args) {\n Scanner in=new Scanner(System.in);\n String s=in.nextLine();\n String ss=in.nextLine();\n char ch[]=ss.toCharArray();\n String c=\"\";\n for (int i = 0; i < ch.length-1; i++) {\n c=c+ch[i];\n }\n if(c.equals(s)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner in=new Scanner(System.in);\n String s=in.nextLine();\n String ss=in.nextLine();\n char ch[]=ss.toCharArray();\n String c=\"\";\n for (int i = 0; i < ch.length-1; i++) {\n c=c+ch[i];\n }\n if(c.equals(s)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner in=new Scanner(System.in);\n String s=in.nextLine();\n String ss=in.nextLine();\n char ch[]=ss.toCharArray();\n String c=\"\";\n for (int i = 0; i < ch.length-1; i++) {\n c=c+ch[i];\n }\n if(c.equals(s)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"Scanner in=new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"String s=in.nextLine();",
"s",
"in.nextLine()",
"in.nextLine",
"in",
"String ss=in.nextLine();",
"ss",
"in.nextLine()",
"in.nextLine",
"in",
"char ch[]=ss.toCharArray();",
"ch",
"ss.toCharArray()",
"ss.toCharArray",
"ss",
"String c=\"\";",
"c",
"\"\"",
"for (int i = 0; i < ch.length-1; i++) {\n c=c+ch[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < ch.length-1",
"i",
"ch.length-1",
"ch.length",
"ch",
"ch.length",
"1",
"i++",
"i++",
"i",
"{\n c=c+ch[i];\n }",
"{\n c=c+ch[i];\n }",
"c=c+ch[i]",
"c",
"c+ch[i]",
"c",
"ch[i]",
"ch",
"i",
"if(c.equals(s)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"c.equals(s)",
"c.equals",
"c",
"s",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) {\n Scanner in=new Scanner(System.in);\n String s=in.nextLine();\n String ss=in.nextLine();\n char ch[]=ss.toCharArray();\n String c=\"\";\n for (int i = 0; i < ch.length-1; i++) {\n c=c+ch[i];\n }\n if(c.equals(s)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"public class Main{\n public static void main(String[] args) {\n Scanner in=new Scanner(System.in);\n String s=in.nextLine();\n String ss=in.nextLine();\n char ch[]=ss.toCharArray();\n String c=\"\";\n for (int i = 0; i < ch.length-1; i++) {\n c=c+ch[i];\n }\n if(c.equals(s)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
String s=in.nextLine();
String ss=in.nextLine();
char ch[]=ss.toCharArray();
String c="";
for (int i = 0; i < ch.length-1; i++) {
c=c+ch[i];
}
if(c.equals(s)){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
17,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
2,
17,
17,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
8,
4,
18,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
17,
17,
12,
13,
30,
4,
18,
20,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
69,
5
],
[
69,
6
],
[
6,
7
],
[
6,
8
],
[
69,
9
],
[
9,
10
],
[
9,
11
],
[
69,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
69,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
19,
21
],
[
69,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
24,
26
],
[
69,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
29,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
53,
57
],
[
45,
58
],
[
45,
59
],
[
69,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
60,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
] |
[
"import java.util.*;\n\npublic class Main {\n\tScanner sc = new Scanner(System.in);\n\tfinal int MOD = 1000000007;\n\tfinal int MAX = Integer.MAX_VALUE;\n\tfinal long LMAX = Long.MAX_VALUE;\n\tint len = (int)1e6 + 1;\n\t\n\tvoid doIt() {\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\t\tSystem.out.println((S.equals(T.substring(0, T.length() - 1)))?\"Yes\":\"No\");\n\t\t\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tScanner sc = new Scanner(System.in);\n\tfinal int MOD = 1000000007;\n\tfinal int MAX = Integer.MAX_VALUE;\n\tfinal long LMAX = Long.MAX_VALUE;\n\tint len = (int)1e6 + 1;\n\t\n\tvoid doIt() {\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\t\tSystem.out.println((S.equals(T.substring(0, T.length() - 1)))?\"Yes\":\"No\");\n\t\t\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}\n\n}",
"Main",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"final int MOD = 1000000007;",
"MOD",
"1000000007",
"final int MAX = Integer.MAX_VALUE;",
"MAX",
"Integer.MAX_VALUE",
"Integer",
"Integer.MAX_VALUE",
"final long LMAX = Long.MAX_VALUE;",
"LMAX",
"Long.MAX_VALUE",
"Long",
"Long.MAX_VALUE",
"int len = (int)1e6 + 1;",
"len",
"(int)1e6 + 1",
"(int)1e6",
"1",
"void doIt() {\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\t\tSystem.out.println((S.equals(T.substring(0, T.length() - 1)))?\"Yes\":\"No\");\n\t\t\n\t}",
"doIt",
"{\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\t\tSystem.out.println((S.equals(T.substring(0, T.length() - 1)))?\"Yes\":\"No\");\n\t\t\n\t}",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"String T = sc.next();",
"T",
"sc.next()",
"sc.next",
"sc",
"System.out.println((S.equals(T.substring(0, T.length() - 1)))?\"Yes\":\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"(S.equals(T.substring(0, T.length() - 1)))?\"Yes\":\"No\"",
"(S.equals(T.substring(0, T.length() - 1)))",
"S.equals",
"S",
"T.substring(0, T.length() - 1)",
"T.substring",
"T",
"0",
"T.length() - 1",
"T.length()",
"T.length",
"T",
"1",
"\"Yes\"",
"\"No\"",
"public static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}",
"main",
"{\n\t\tnew Main().doIt();\n\t}",
"new Main().doIt()",
"new Main().doIt",
"new Main()",
"String[] args",
"args",
"public class Main {\n\tScanner sc = new Scanner(System.in);\n\tfinal int MOD = 1000000007;\n\tfinal int MAX = Integer.MAX_VALUE;\n\tfinal long LMAX = Long.MAX_VALUE;\n\tint len = (int)1e6 + 1;\n\t\n\tvoid doIt() {\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\t\tSystem.out.println((S.equals(T.substring(0, T.length() - 1)))?\"Yes\":\"No\");\n\t\t\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}\n\n}",
"public class Main {\n\tScanner sc = new Scanner(System.in);\n\tfinal int MOD = 1000000007;\n\tfinal int MAX = Integer.MAX_VALUE;\n\tfinal long LMAX = Long.MAX_VALUE;\n\tint len = (int)1e6 + 1;\n\t\n\tvoid doIt() {\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\t\tSystem.out.println((S.equals(T.substring(0, T.length() - 1)))?\"Yes\":\"No\");\n\t\t\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}\n\n}",
"Main"
] |
import java.util.*;
public class Main {
Scanner sc = new Scanner(System.in);
final int MOD = 1000000007;
final int MAX = Integer.MAX_VALUE;
final long LMAX = Long.MAX_VALUE;
int len = (int)1e6 + 1;
void doIt() {
String S = sc.next();
String T = sc.next();
System.out.println((S.equals(T.substring(0, T.length() - 1)))?"Yes":"No");
}
public static void main(String[] args) {
new Main().doIt();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
4,
18,
13,
17,
2,
4,
18,
13,
17,
13,
4,
18,
4,
18,
13,
17,
2,
4,
18,
13,
17,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
68,
5
],
[
68,
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
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
30,
34
],
[
24,
35
],
[
23,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
38,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
42,
46
],
[
36,
47
],
[
22,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
22,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
8,
62
],
[
62,
63
],
[
63,
64
],
[
6,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
]
] |
[
"//package Beg_167;\nimport java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner a = new Scanner(System.in);\n\t\tString s1 = a.nextLine();\n\t\tString s2=a.nextLine();\n\t\tif ((s1.substring(0,s1.length()-1).equals(s2)) || (s2.substring(0,s2.length()-1).equals(s1))) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\na.close();\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner a = new Scanner(System.in);\n\t\tString s1 = a.nextLine();\n\t\tString s2=a.nextLine();\n\t\tif ((s1.substring(0,s1.length()-1).equals(s2)) || (s2.substring(0,s2.length()-1).equals(s1))) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\na.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner a = new Scanner(System.in);\n\t\tString s1 = a.nextLine();\n\t\tString s2=a.nextLine();\n\t\tif ((s1.substring(0,s1.length()-1).equals(s2)) || (s2.substring(0,s2.length()-1).equals(s1))) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\na.close();\n\t}",
"main",
"{\n\t\tScanner a = new Scanner(System.in);\n\t\tString s1 = a.nextLine();\n\t\tString s2=a.nextLine();\n\t\tif ((s1.substring(0,s1.length()-1).equals(s2)) || (s2.substring(0,s2.length()-1).equals(s1))) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\na.close();\n\t}",
"Scanner a = new Scanner(System.in);",
"a",
"new Scanner(System.in)",
"String s1 = a.nextLine();",
"s1",
"a.nextLine()",
"a.nextLine",
"a",
"String s2=a.nextLine();",
"s2",
"a.nextLine()",
"a.nextLine",
"a",
"if ((s1.substring(0,s1.length()-1).equals(s2)) || (s2.substring(0,s2.length()-1).equals(s1))) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"(s1.substring(0,s1.length()-1).equals(s2)) || (s2.substring(0,s2.length()-1).equals(s1))",
"(s1.substring(0,s1.length()-1).equals(s2))",
"s1.substring(0,s1.length()-1).equals",
"s1.substring(0,s1.length()-1)",
"s1.substring",
"s1",
"0",
"s1.length()-1",
"s1.length()",
"s1.length",
"s1",
"1",
"s2",
"(s2.substring(0,s2.length()-1).equals(s1))",
"s2.substring(0,s2.length()-1).equals",
"s2.substring(0,s2.length()-1)",
"s2.substring",
"s2",
"0",
"s2.length()-1",
"s2.length()",
"s2.length",
"s2",
"1",
"s1",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"a.close()",
"a.close",
"a",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner a = new Scanner(System.in);\n\t\tString s1 = a.nextLine();\n\t\tString s2=a.nextLine();\n\t\tif ((s1.substring(0,s1.length()-1).equals(s2)) || (s2.substring(0,s2.length()-1).equals(s1))) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\na.close();\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner a = new Scanner(System.in);\n\t\tString s1 = a.nextLine();\n\t\tString s2=a.nextLine();\n\t\tif ((s1.substring(0,s1.length()-1).equals(s2)) || (s2.substring(0,s2.length()-1).equals(s1))) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\na.close();\n\t}\n}",
"Main"
] |
//package Beg_167;
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner a = new Scanner(System.in);
String s1 = a.nextLine();
String s2=a.nextLine();
if ((s1.substring(0,s1.length()-1).equals(s2)) || (s2.substring(0,s2.length()-1).equals(s1))) {
System.out.println("Yes");
}
else {
System.out.println("No");
}
a.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
8,
4,
13,
13,
13,
17,
17,
4,
18,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
13,
23,
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
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
28,
31
],
[
27,
32
],
[
27,
33
],
[
8,
34
],
[
34,
35
],
[
35,
36
],
[
6,
37
],
[
37,
38
],
[
52,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
39,
47
],
[
47,
48
],
[
39,
49
],
[
49,
50
],
[
0,
51
],
[
51,
52
],
[
51,
53
]
] |
[
"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 S = sc.next();\n String T = sc.next();\n\n System.out.println(solve(S, T) ? \"Yes\" : \"No\");\n\n sc.close();\n }\n\n static boolean solve(String S, String T) {\n return T.startsWith(S);\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 S = sc.next();\n String T = sc.next();\n\n System.out.println(solve(S, T) ? \"Yes\" : \"No\");\n\n sc.close();\n }\n\n static boolean solve(String S, String T) {\n return T.startsWith(S);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n String S = sc.next();\n String T = sc.next();\n\n System.out.println(solve(S, T) ? \"Yes\" : \"No\");\n\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n String S = sc.next();\n String T = sc.next();\n\n System.out.println(solve(S, T) ? \"Yes\" : \"No\");\n\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"String T = sc.next();",
"T",
"sc.next()",
"sc.next",
"sc",
"System.out.println(solve(S, T) ? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"solve(S, T) ? \"Yes\" : \"No\"",
"solve(S, T)",
"solve",
"S",
"T",
"\"Yes\"",
"\"No\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"static boolean solve(String S, String T) {\n return T.startsWith(S);\n }",
"solve",
"{\n return T.startsWith(S);\n }",
"return T.startsWith(S);",
"T.startsWith(S)",
"T.startsWith",
"T",
"S",
"String S",
"S",
"String T",
"T",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n String S = sc.next();\n String T = sc.next();\n\n System.out.println(solve(S, T) ? \"Yes\" : \"No\");\n\n sc.close();\n }\n\n static boolean solve(String S, String T) {\n return T.startsWith(S);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n String S = sc.next();\n String T = sc.next();\n\n System.out.println(solve(S, T) ? \"Yes\" : \"No\");\n\n sc.close();\n }\n\n static boolean solve(String S, String T) {\n return T.startsWith(S);\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String S = sc.next();
String T = sc.next();
System.out.println(solve(S, T) ? "Yes" : "No");
sc.close();
}
static boolean solve(String S, String T) {
return T.startsWith(S);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
55,
5
],
[
55,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
30,
34
],
[
22,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
22,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
6,
52
],
[
52,
53
],
[
0,
54
],
[
54,
55
],
[
54,
56
]
] |
[
"import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner scan =new Scanner(System.in);\n\n\t\tString a = scan.next();\n\t\tString b = scan.next();\n\n\nif(a.equals(b.substring(0,b.length()-1))) {\n\tSystem.out.println(\"Yes\");\n}else {\n\tSystem.out.println(\"No\");\n}\n\t\tscan.close();\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner scan =new Scanner(System.in);\n\n\t\tString a = scan.next();\n\t\tString b = scan.next();\n\n\nif(a.equals(b.substring(0,b.length()-1))) {\n\tSystem.out.println(\"Yes\");\n}else {\n\tSystem.out.println(\"No\");\n}\n\t\tscan.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner scan =new Scanner(System.in);\n\n\t\tString a = scan.next();\n\t\tString b = scan.next();\n\n\nif(a.equals(b.substring(0,b.length()-1))) {\n\tSystem.out.println(\"Yes\");\n}else {\n\tSystem.out.println(\"No\");\n}\n\t\tscan.close();\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner scan =new Scanner(System.in);\n\n\t\tString a = scan.next();\n\t\tString b = scan.next();\n\n\nif(a.equals(b.substring(0,b.length()-1))) {\n\tSystem.out.println(\"Yes\");\n}else {\n\tSystem.out.println(\"No\");\n}\n\t\tscan.close();\n\t}",
"Scanner scan =new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String a = scan.next();",
"a",
"scan.next()",
"scan.next",
"scan",
"String b = scan.next();",
"b",
"scan.next()",
"scan.next",
"scan",
"if(a.equals(b.substring(0,b.length()-1))) {\n\tSystem.out.println(\"Yes\");\n}else {\n\tSystem.out.println(\"No\");\n}",
"a.equals(b.substring(0,b.length()-1))",
"a.equals",
"a",
"b.substring(0,b.length()-1)",
"b.substring",
"b",
"0",
"b.length()-1",
"b.length()",
"b.length",
"b",
"1",
"{\n\tSystem.out.println(\"Yes\");\n}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\tSystem.out.println(\"No\");\n}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner scan =new Scanner(System.in);\n\n\t\tString a = scan.next();\n\t\tString b = scan.next();\n\n\nif(a.equals(b.substring(0,b.length()-1))) {\n\tSystem.out.println(\"Yes\");\n}else {\n\tSystem.out.println(\"No\");\n}\n\t\tscan.close();\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner scan =new Scanner(System.in);\n\n\t\tString a = scan.next();\n\t\tString b = scan.next();\n\n\nif(a.equals(b.substring(0,b.length()-1))) {\n\tSystem.out.println(\"Yes\");\n}else {\n\tSystem.out.println(\"No\");\n}\n\t\tscan.close();\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner scan =new Scanner(System.in);
String a = scan.next();
String b = scan.next();
if(a.equals(b.substring(0,b.length()-1))) {
System.out.println("Yes");
}else {
System.out.println("No");
}
scan.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
18,
13,
2,
4,
18,
13,
17,
41,
13,
4,
18,
13,
17,
13,
13,
14,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
70,
8
],
[
70,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
11,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
35,
39
],
[
11,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
42,
46
],
[
42,
47
],
[
11,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
48,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
48,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
9,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
] |
[
"import java.util.StringJoiner;\nimport java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\nScanner sc = new Scanner(System.in);\nString line = sc.nextLine();\n\nString line2 = sc.nextLine();\nString column[] = line2.split(\"\");\nString addword = column[line2.length() -1];\nString newID = String.join(\"\" , line , addword);\n\nif(line2.equals(newID)){\n System.out.println(\"Yes\");\n}else{\n System.out.println(\"No\");\n}\n\n \n}\n}",
"import java.util.StringJoiner;",
"StringJoiner",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\nScanner sc = new Scanner(System.in);\nString line = sc.nextLine();\n\nString line2 = sc.nextLine();\nString column[] = line2.split(\"\");\nString addword = column[line2.length() -1];\nString newID = String.join(\"\" , line , addword);\n\nif(line2.equals(newID)){\n System.out.println(\"Yes\");\n}else{\n System.out.println(\"No\");\n}\n\n \n}\n}",
"Main",
"public static void main(String[] args){\nScanner sc = new Scanner(System.in);\nString line = sc.nextLine();\n\nString line2 = sc.nextLine();\nString column[] = line2.split(\"\");\nString addword = column[line2.length() -1];\nString newID = String.join(\"\" , line , addword);\n\nif(line2.equals(newID)){\n System.out.println(\"Yes\");\n}else{\n System.out.println(\"No\");\n}\n\n \n}",
"main",
"{\nScanner sc = new Scanner(System.in);\nString line = sc.nextLine();\n\nString line2 = sc.nextLine();\nString column[] = line2.split(\"\");\nString addword = column[line2.length() -1];\nString newID = String.join(\"\" , line , addword);\n\nif(line2.equals(newID)){\n System.out.println(\"Yes\");\n}else{\n System.out.println(\"No\");\n}\n\n \n}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line = sc.nextLine();",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String line2 = sc.nextLine();",
"line2",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String column[] = line2.split(\"\");",
"column",
"line2.split(\"\")",
"line2.split",
"line2",
"\"\"",
"String addword = column[line2.length() -1];",
"addword",
"column[line2.length() -1]",
"column",
"line2.length() -1",
"line2.length()",
"line2.length",
"line2",
"1",
"String newID = String.join(\"\" , line , addword);",
"newID",
"String.join(\"\" , line , addword)",
"String.join",
"String",
"\"\"",
"line",
"addword",
"if(line2.equals(newID)){\n System.out.println(\"Yes\");\n}else{\n System.out.println(\"No\");\n}",
"line2.equals(newID)",
"line2.equals",
"line2",
"newID",
"{\n System.out.println(\"Yes\");\n}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\nScanner sc = new Scanner(System.in);\nString line = sc.nextLine();\n\nString line2 = sc.nextLine();\nString column[] = line2.split(\"\");\nString addword = column[line2.length() -1];\nString newID = String.join(\"\" , line , addword);\n\nif(line2.equals(newID)){\n System.out.println(\"Yes\");\n}else{\n System.out.println(\"No\");\n}\n\n \n}\n}",
"public class Main{\n public static void main(String[] args){\nScanner sc = new Scanner(System.in);\nString line = sc.nextLine();\n\nString line2 = sc.nextLine();\nString column[] = line2.split(\"\");\nString addword = column[line2.length() -1];\nString newID = String.join(\"\" , line , addword);\n\nif(line2.equals(newID)){\n System.out.println(\"Yes\");\n}else{\n System.out.println(\"No\");\n}\n\n \n}\n}",
"Main"
] |
import java.util.StringJoiner;
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
String line2 = sc.nextLine();
String column[] = line2.split("");
String addword = column[line2.length() -1];
String newID = String.join("" , line , addword);
if(line2.equals(newID)){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
29,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
72,
5
],
[
72,
6
],
[
6,
7
],
[
6,
8
],
[
72,
9
],
[
9,
10
],
[
9,
11
],
[
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
],
[
24,
25
],
[
25,
26
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
11,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
32,
42
],
[
42,
43
],
[
43,
44
],
[
32,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
55,
62
],
[
11,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
9,
69
],
[
69,
70
],
[
0,
71
],
[
71,
72
],
[
71,
73
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n static Scanner stdIn = new Scanner(System.in);\n public static void main(String[] args){\n String s = stdIn.next();\n String t = stdIn.next();\n\n char[] cs = s.toCharArray();\n char[] ct = t.toCharArray();\n\n for(int i=0; i<cs.length; i++){\n if(cs[i] != ct[i]){\n System.out.println(\"No\");\n return;\n }\n }\n\n System.out.println(\"Yes\");\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n static Scanner stdIn = new Scanner(System.in);\n public static void main(String[] args){\n String s = stdIn.next();\n String t = stdIn.next();\n\n char[] cs = s.toCharArray();\n char[] ct = t.toCharArray();\n\n for(int i=0; i<cs.length; i++){\n if(cs[i] != ct[i]){\n System.out.println(\"No\");\n return;\n }\n }\n\n System.out.println(\"Yes\");\n }\n}",
"Main",
"static Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"public static void main(String[] args){\n String s = stdIn.next();\n String t = stdIn.next();\n\n char[] cs = s.toCharArray();\n char[] ct = t.toCharArray();\n\n for(int i=0; i<cs.length; i++){\n if(cs[i] != ct[i]){\n System.out.println(\"No\");\n return;\n }\n }\n\n System.out.println(\"Yes\");\n }",
"main",
"{\n String s = stdIn.next();\n String t = stdIn.next();\n\n char[] cs = s.toCharArray();\n char[] ct = t.toCharArray();\n\n for(int i=0; i<cs.length; i++){\n if(cs[i] != ct[i]){\n System.out.println(\"No\");\n return;\n }\n }\n\n System.out.println(\"Yes\");\n }",
"String s = stdIn.next();",
"s",
"stdIn.next()",
"stdIn.next",
"stdIn",
"String t = stdIn.next();",
"t",
"stdIn.next()",
"stdIn.next",
"stdIn",
"char[] cs = s.toCharArray();",
"cs",
"s.toCharArray()",
"s.toCharArray",
"s",
"char[] ct = t.toCharArray();",
"ct",
"t.toCharArray()",
"t.toCharArray",
"t",
"for(int i=0; i<cs.length; i++){\n if(cs[i] != ct[i]){\n System.out.println(\"No\");\n return;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<cs.length",
"i",
"cs.length",
"cs",
"cs.length",
"i++",
"i++",
"i",
"{\n if(cs[i] != ct[i]){\n System.out.println(\"No\");\n return;\n }\n }",
"{\n if(cs[i] != ct[i]){\n System.out.println(\"No\");\n return;\n }\n }",
"if(cs[i] != ct[i]){\n System.out.println(\"No\");\n return;\n }",
"cs[i] != ct[i]",
"cs[i]",
"cs",
"i",
"ct[i]",
"ct",
"i",
"{\n System.out.println(\"No\");\n return;\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"return;",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"String[] args",
"args",
"public class Main {\n static Scanner stdIn = new Scanner(System.in);\n public static void main(String[] args){\n String s = stdIn.next();\n String t = stdIn.next();\n\n char[] cs = s.toCharArray();\n char[] ct = t.toCharArray();\n\n for(int i=0; i<cs.length; i++){\n if(cs[i] != ct[i]){\n System.out.println(\"No\");\n return;\n }\n }\n\n System.out.println(\"Yes\");\n }\n}",
"public class Main {\n static Scanner stdIn = new Scanner(System.in);\n public static void main(String[] args){\n String s = stdIn.next();\n String t = stdIn.next();\n\n char[] cs = s.toCharArray();\n char[] ct = t.toCharArray();\n\n for(int i=0; i<cs.length; i++){\n if(cs[i] != ct[i]){\n System.out.println(\"No\");\n return;\n }\n }\n\n System.out.println(\"Yes\");\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
static Scanner stdIn = new Scanner(System.in);
public static void main(String[] args){
String s = stdIn.next();
String t = stdIn.next();
char[] cs = s.toCharArray();
char[] ct = t.toCharArray();
for(int i=0; i<cs.length; i++){
if(cs[i] != ct[i]){
System.out.println("No");
return;
}
}
System.out.println("Yes");
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
13,
30,
4,
18,
13,
17,
29,
4,
18,
13,
17,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
152,
26
],
[
152,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
29,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
29,
40
],
[
40,
41
],
[
40,
42
],
[
29,
43
],
[
43,
44
],
[
43,
45
],
[
29,
46
],
[
46,
47
],
[
46,
48
],
[
29,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
49,
53
],
[
49,
54
],
[
29,
55
],
[
55,
56
],
[
56,
57
],
[
27,
58
],
[
58,
59
],
[
152,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
64,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
64,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
79,
89
],
[
89,
90
],
[
90,
91
],
[
79,
92
],
[
93,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
99,
100
],
[
99,
101
],
[
94,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
102,
107
],
[
64,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
62,
112
],
[
112,
113
],
[
62,
114
],
[
114,
115
],
[
62,
116
],
[
116,
117
],
[
152,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
118,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
122,
128
],
[
128,
129
],
[
118,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
136,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
132,
149
],
[
149,
150
],
[
0,
151
],
[
151,
152
],
[
151,
153
]
] |
[
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author EDGE\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ARegistration solver = new ARegistration();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ARegistration {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n char[] s = in.nextLine().toCharArray();\n char[] t = in.nextLine().toCharArray();\n for (int i = 0; i < s.length; i++) {\n if (s[i] != t[i]) {\n out.println(\"No\");\n return;\n }\n }\n\n out.println(\"Yes\");\n }\n\n }\n\n static class FastReader {\n BufferedReader br;\n\n public FastReader(InputStream inputStream) {\n br = new BufferedReader(new\n InputStreamReader(inputStream));\n }\n\n public String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ARegistration solver = new ARegistration();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ARegistration {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n char[] s = in.nextLine().toCharArray();\n char[] t = in.nextLine().toCharArray();\n for (int i = 0; i < s.length; i++) {\n if (s[i] != t[i]) {\n out.println(\"No\");\n return;\n }\n }\n\n out.println(\"Yes\");\n }\n\n }\n\n static class FastReader {\n BufferedReader br;\n\n public FastReader(InputStream inputStream) {\n br = new BufferedReader(new\n InputStreamReader(inputStream));\n }\n\n public String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ARegistration solver = new ARegistration();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ARegistration solver = new ARegistration();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"FastReader in = new FastReader(inputStream);",
"in",
"new FastReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"ARegistration solver = new ARegistration();",
"solver",
"new ARegistration()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class ARegistration {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n char[] s = in.nextLine().toCharArray();\n char[] t = in.nextLine().toCharArray();\n for (int i = 0; i < s.length; i++) {\n if (s[i] != t[i]) {\n out.println(\"No\");\n return;\n }\n }\n\n out.println(\"Yes\");\n }\n\n }",
"ARegistration",
"public void solve(int testNumber, FastReader in, PrintWriter out) {\n char[] s = in.nextLine().toCharArray();\n char[] t = in.nextLine().toCharArray();\n for (int i = 0; i < s.length; i++) {\n if (s[i] != t[i]) {\n out.println(\"No\");\n return;\n }\n }\n\n out.println(\"Yes\");\n }",
"solve",
"{\n char[] s = in.nextLine().toCharArray();\n char[] t = in.nextLine().toCharArray();\n for (int i = 0; i < s.length; i++) {\n if (s[i] != t[i]) {\n out.println(\"No\");\n return;\n }\n }\n\n out.println(\"Yes\");\n }",
"char[] s = in.nextLine().toCharArray();",
"s",
"in.nextLine().toCharArray()",
"in.nextLine().toCharArray",
"in.nextLine()",
"in.nextLine",
"in",
"char[] t = in.nextLine().toCharArray();",
"t",
"in.nextLine().toCharArray()",
"in.nextLine().toCharArray",
"in.nextLine()",
"in.nextLine",
"in",
"for (int i = 0; i < s.length; i++) {\n if (s[i] != t[i]) {\n out.println(\"No\");\n return;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.length",
"i",
"s.length",
"s",
"s.length",
"i++",
"i++",
"i",
"{\n if (s[i] != t[i]) {\n out.println(\"No\");\n return;\n }\n }",
"{\n if (s[i] != t[i]) {\n out.println(\"No\");\n return;\n }\n }",
"if (s[i] != t[i]) {\n out.println(\"No\");\n return;\n }",
"s[i] != t[i]",
"s[i]",
"s",
"i",
"t[i]",
"t",
"i",
"{\n out.println(\"No\");\n return;\n }",
"out.println(\"No\")",
"out.println",
"out",
"\"No\"",
"return;",
"out.println(\"Yes\")",
"out.println",
"out",
"\"Yes\"",
"int testNumber",
"testNumber",
"FastReader in",
"in",
"PrintWriter out",
"out",
"static class FastReader {\n BufferedReader br;\n\n public FastReader(InputStream inputStream) {\n br = new BufferedReader(new\n InputStreamReader(inputStream));\n }\n\n public String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n }",
"FastReader",
"BufferedReader br;",
"br",
"public FastReader(InputStream inputStream) {\n br = new BufferedReader(new\n InputStreamReader(inputStream));\n }",
"FastReader",
"{\n br = new BufferedReader(new\n InputStreamReader(inputStream));\n }",
"br = new BufferedReader(new\n InputStreamReader(inputStream))",
"br",
"new BufferedReader(new\n InputStreamReader(inputStream))",
"InputStream inputStream",
"inputStream",
"public String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ARegistration solver = new ARegistration();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ARegistration {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n char[] s = in.nextLine().toCharArray();\n char[] t = in.nextLine().toCharArray();\n for (int i = 0; i < s.length; i++) {\n if (s[i] != t[i]) {\n out.println(\"No\");\n return;\n }\n }\n\n out.println(\"Yes\");\n }\n\n }\n\n static class FastReader {\n BufferedReader br;\n\n public FastReader(InputStream inputStream) {\n br = new BufferedReader(new\n InputStreamReader(inputStream));\n }\n\n public String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ARegistration solver = new ARegistration();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ARegistration {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n char[] s = in.nextLine().toCharArray();\n char[] t = in.nextLine().toCharArray();\n for (int i = 0; i < s.length; i++) {\n if (s[i] != t[i]) {\n out.println(\"No\");\n return;\n }\n }\n\n out.println(\"Yes\");\n }\n\n }\n\n static class FastReader {\n BufferedReader br;\n\n public FastReader(InputStream inputStream) {\n br = new BufferedReader(new\n InputStreamReader(inputStream));\n }\n\n public String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n }\n}",
"Main"
] |
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author EDGE
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
FastReader in = new FastReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
ARegistration solver = new ARegistration();
solver.solve(1, in, out);
out.close();
}
static class ARegistration {
public void solve(int testNumber, FastReader in, PrintWriter out) {
char[] s = in.nextLine().toCharArray();
char[] t = in.nextLine().toCharArray();
for (int i = 0; i < s.length; i++) {
if (s[i] != t[i]) {
out.println("No");
return;
}
}
out.println("Yes");
}
}
static class FastReader {
BufferedReader br;
public FastReader(InputStream inputStream) {
br = new BufferedReader(new
InputStreamReader(inputStream));
}
public String nextLine() {
String str = "";
try {
str = br.readLine();
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
49,
5
],
[
49,
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
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
23,
28
],
[
22,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
22,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
8,
43
],
[
43,
44
],
[
44,
45
],
[
6,
46
],
[
46,
47
],
[
0,
48
],
[
48,
49
],
[
48,
50
]
] |
[
"import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tString s=sc.next();\n\t\tString t=sc.next();\n\t\t\n\t\t\n\t\tif(t.indexOf(s)==0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\t\t\n\tsc.close();\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tString s=sc.next();\n\t\tString t=sc.next();\n\t\t\n\t\t\n\t\tif(t.indexOf(s)==0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\t\t\n\tsc.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tString s=sc.next();\n\t\tString t=sc.next();\n\t\t\n\t\t\n\t\tif(t.indexOf(s)==0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\t\t\n\tsc.close();\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tString s=sc.next();\n\t\tString t=sc.next();\n\t\t\n\t\t\n\t\tif(t.indexOf(s)==0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\t\t\n\tsc.close();\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s=sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String t=sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"if(t.indexOf(s)==0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"t.indexOf(s)==0",
"t.indexOf(s)",
"t.indexOf",
"t",
"s",
"0",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tString s=sc.next();\n\t\tString t=sc.next();\n\t\t\n\t\t\n\t\tif(t.indexOf(s)==0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\t\t\n\tsc.close();\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tString s=sc.next();\n\t\tString t=sc.next();\n\t\t\n\t\t\n\t\tif(t.indexOf(s)==0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\t\t\n\tsc.close();\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc=new Scanner(System.in);
String s=sc.next();
String t=sc.next();
if(t.indexOf(s)==0) {
System.out.println("Yes");
}else {
System.out.println("No");
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
18,
13,
17,
41,
13,
4,
18,
13,
41,
13,
18,
13,
17,
41,
13,
4,
18,
13,
14,
2,
2,
18,
13,
13,
17,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
29,
11,
1,
41,
13,
17,
2,
13,
2,
18,
13,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
29,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
42,
4,
18,
13,
30,
4,
18,
13,
4,
18,
13,
29,
4,
18,
13,
20,
4,
18,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
121,
5
],
[
121,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
40,
42
],
[
33,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
43,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
51,
63
],
[
63,
64
],
[
64,
65
],
[
51,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
76,
83
],
[
8,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
6,
90
],
[
90,
91
],
[
121,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
98,
100
],
[
94,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
101,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
109,
110
],
[
110,
111
],
[
94,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
117,
118
],
[
118,
119
],
[
0,
120
],
[
120,
121
],
[
120,
122
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n String[] lines = getStdin();\n String id = lines[0];\n char[] s = id.toCharArray();\n String newid = lines[1];\n char[] t = newid.toCharArray();\n \n if(s.length + 1 != t.length){\n System.out.println(\"No\");\n return;\n }\n \n for (int i = 0; i < t.length -1; i++){\n if (s[i] != t[i]){\n System.out.println(\"No\");\n return;\n }\n \n } System.out.println(\"Yes\");\n }\n \n private static String[] getStdin() {\n Scanner scanner = new Scanner(System.in);\n ArrayList<String> lines = new ArrayList<>();\n while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }\n return lines.toArray(new String[lines.size()]);\n }\n \n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n String[] lines = getStdin();\n String id = lines[0];\n char[] s = id.toCharArray();\n String newid = lines[1];\n char[] t = newid.toCharArray();\n \n if(s.length + 1 != t.length){\n System.out.println(\"No\");\n return;\n }\n \n for (int i = 0; i < t.length -1; i++){\n if (s[i] != t[i]){\n System.out.println(\"No\");\n return;\n }\n \n } System.out.println(\"Yes\");\n }\n \n private static String[] getStdin() {\n Scanner scanner = new Scanner(System.in);\n ArrayList<String> lines = new ArrayList<>();\n while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }\n return lines.toArray(new String[lines.size()]);\n }\n \n}",
"Main",
"public static void main(String[] args) throws Exception {\n String[] lines = getStdin();\n String id = lines[0];\n char[] s = id.toCharArray();\n String newid = lines[1];\n char[] t = newid.toCharArray();\n \n if(s.length + 1 != t.length){\n System.out.println(\"No\");\n return;\n }\n \n for (int i = 0; i < t.length -1; i++){\n if (s[i] != t[i]){\n System.out.println(\"No\");\n return;\n }\n \n } System.out.println(\"Yes\");\n }",
"main",
"{\n String[] lines = getStdin();\n String id = lines[0];\n char[] s = id.toCharArray();\n String newid = lines[1];\n char[] t = newid.toCharArray();\n \n if(s.length + 1 != t.length){\n System.out.println(\"No\");\n return;\n }\n \n for (int i = 0; i < t.length -1; i++){\n if (s[i] != t[i]){\n System.out.println(\"No\");\n return;\n }\n \n } System.out.println(\"Yes\");\n }",
"String[] lines = getStdin();",
"lines",
"getStdin()",
"getStdin",
"String id = lines[0];",
"id",
"lines[0]",
"lines",
"0",
"char[] s = id.toCharArray();",
"s",
"id.toCharArray()",
"id.toCharArray",
"id",
"String newid = lines[1];",
"newid",
"lines[1]",
"lines",
"1",
"char[] t = newid.toCharArray();",
"t",
"newid.toCharArray()",
"newid.toCharArray",
"newid",
"if(s.length + 1 != t.length){\n System.out.println(\"No\");\n return;\n }",
"s.length + 1 != t.length",
"s.length + 1",
"s.length",
"s",
"s.length",
"1",
"t.length",
"t",
"t.length",
"{\n System.out.println(\"No\");\n return;\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"return;",
"for (int i = 0; i < t.length -1; i++){\n if (s[i] != t[i]){\n System.out.println(\"No\");\n return;\n }\n \n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < t.length -1",
"i",
"t.length -1",
"t.length",
"t",
"t.length",
"1",
"i++",
"i++",
"i",
"{\n if (s[i] != t[i]){\n System.out.println(\"No\");\n return;\n }\n \n }",
"{\n if (s[i] != t[i]){\n System.out.println(\"No\");\n return;\n }\n \n }",
"if (s[i] != t[i]){\n System.out.println(\"No\");\n return;\n }",
"s[i] != t[i]",
"s[i]",
"s",
"i",
"t[i]",
"t",
"i",
"{\n System.out.println(\"No\");\n return;\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"return;",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"String[] args",
"args",
"private static String[] getStdin() {\n Scanner scanner = new Scanner(System.in);\n ArrayList<String> lines = new ArrayList<>();\n while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }\n return lines.toArray(new String[lines.size()]);\n }",
"getStdin",
"{\n Scanner scanner = new Scanner(System.in);\n ArrayList<String> lines = new ArrayList<>();\n while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }\n return lines.toArray(new String[lines.size()]);\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"ArrayList<String> lines = new ArrayList<>();",
"lines",
"new ArrayList<>()",
"while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }",
"scanner.hasNext()",
"scanner.hasNext",
"scanner",
"{\n lines.add(scanner.nextLine());\n }",
"lines.add(scanner.nextLine())",
"lines.add",
"lines",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"return lines.toArray(new String[lines.size()]);",
"lines.toArray(new String[lines.size()])",
"lines.toArray",
"lines",
"new String[lines.size()]",
"lines.size()",
"lines.size",
"lines",
"public class Main {\n public static void main(String[] args) throws Exception {\n String[] lines = getStdin();\n String id = lines[0];\n char[] s = id.toCharArray();\n String newid = lines[1];\n char[] t = newid.toCharArray();\n \n if(s.length + 1 != t.length){\n System.out.println(\"No\");\n return;\n }\n \n for (int i = 0; i < t.length -1; i++){\n if (s[i] != t[i]){\n System.out.println(\"No\");\n return;\n }\n \n } System.out.println(\"Yes\");\n }\n \n private static String[] getStdin() {\n Scanner scanner = new Scanner(System.in);\n ArrayList<String> lines = new ArrayList<>();\n while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }\n return lines.toArray(new String[lines.size()]);\n }\n \n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n String[] lines = getStdin();\n String id = lines[0];\n char[] s = id.toCharArray();\n String newid = lines[1];\n char[] t = newid.toCharArray();\n \n if(s.length + 1 != t.length){\n System.out.println(\"No\");\n return;\n }\n \n for (int i = 0; i < t.length -1; i++){\n if (s[i] != t[i]){\n System.out.println(\"No\");\n return;\n }\n \n } System.out.println(\"Yes\");\n }\n \n private static String[] getStdin() {\n Scanner scanner = new Scanner(System.in);\n ArrayList<String> lines = new ArrayList<>();\n while (scanner.hasNext()) {\n lines.add(scanner.nextLine());\n }\n return lines.toArray(new String[lines.size()]);\n }\n \n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
String[] lines = getStdin();
String id = lines[0];
char[] s = id.toCharArray();
String newid = lines[1];
char[] t = newid.toCharArray();
if(s.length + 1 != t.length){
System.out.println("No");
return;
}
for (int i = 0; i < t.length -1; i++){
if (s[i] != t[i]){
System.out.println("No");
return;
}
} System.out.println("Yes");
}
private static String[] getStdin() {
Scanner scanner = new Scanner(System.in);
ArrayList<String> lines = new ArrayList<>();
while (scanner.hasNext()) {
lines.add(scanner.nextLine());
}
return lines.toArray(new String[lines.size()]);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
8,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
17,
17,
23,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
89,
17
],
[
89,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
20,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
20,
31
],
[
31,
32
],
[
31,
33
],
[
20,
34
],
[
34,
35
],
[
34,
36
],
[
20,
37
],
[
37,
38
],
[
37,
39
],
[
20,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
40,
45
],
[
20,
46
],
[
46,
47
],
[
47,
48
],
[
18,
49
],
[
49,
50
],
[
89,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
55,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
73,
77
],
[
77,
78
],
[
78,
79
],
[
69,
80
],
[
69,
81
],
[
53,
82
],
[
82,
83
],
[
53,
84
],
[
84,
85
],
[
53,
86
],
[
86,
87
],
[
0,
88
],
[
88,
89
],
[
88,
90
]
] |
[
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n */\npublic class Main\n{\n public static void main(String[] args)\n {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskA\n {\n public void solve(int testNumber, Scanner in, PrintWriter out)\n {\n String s = in.next();\n String t = in.next();\n out.println(s.equals(t.substring(0, s.length())) ? \"Yes\" : \"No\");\n }\n\n }\n}\n",
"import java.io.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main\n{\n public static void main(String[] args)\n {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskA\n {\n public void solve(int testNumber, Scanner in, PrintWriter out)\n {\n String s = in.next();\n String t = in.next();\n out.println(s.equals(t.substring(0, s.length())) ? \"Yes\" : \"No\");\n }\n\n }\n}",
"Main",
"public static void main(String[] args)\n {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }",
"InputStream inputStream = System.in;",
"inputStream",
"System.in",
"System",
"System.in",
"OutputStream outputStream = System.out;",
"outputStream",
"System.out",
"System",
"System.out",
"Scanner in = new Scanner(inputStream);",
"in",
"new Scanner(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"TaskA solver = new TaskA();",
"solver",
"new TaskA()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class TaskA\n {\n public void solve(int testNumber, Scanner in, PrintWriter out)\n {\n String s = in.next();\n String t = in.next();\n out.println(s.equals(t.substring(0, s.length())) ? \"Yes\" : \"No\");\n }\n\n }",
"TaskA",
"public void solve(int testNumber, Scanner in, PrintWriter out)\n {\n String s = in.next();\n String t = in.next();\n out.println(s.equals(t.substring(0, s.length())) ? \"Yes\" : \"No\");\n }",
"solve",
"{\n String s = in.next();\n String t = in.next();\n out.println(s.equals(t.substring(0, s.length())) ? \"Yes\" : \"No\");\n }",
"String s = in.next();",
"s",
"in.next()",
"in.next",
"in",
"String t = in.next();",
"t",
"in.next()",
"in.next",
"in",
"out.println(s.equals(t.substring(0, s.length())) ? \"Yes\" : \"No\")",
"out.println",
"out",
"s.equals(t.substring(0, s.length())) ? \"Yes\" : \"No\"",
"s.equals(t.substring(0, s.length()))",
"s.equals",
"s",
"t.substring(0, s.length())",
"t.substring",
"t",
"0",
"s.length()",
"s.length",
"s",
"\"Yes\"",
"\"No\"",
"int testNumber",
"testNumber",
"Scanner in",
"in",
"PrintWriter out",
"out",
"public class Main\n{\n public static void main(String[] args)\n {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskA\n {\n public void solve(int testNumber, Scanner in, PrintWriter out)\n {\n String s = in.next();\n String t = in.next();\n out.println(s.equals(t.substring(0, s.length())) ? \"Yes\" : \"No\");\n }\n\n }\n}",
"public class Main\n{\n public static void main(String[] args)\n {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskA solver = new TaskA();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskA\n {\n public void solve(int testNumber, Scanner in, PrintWriter out)\n {\n String s = in.next();\n String t = in.next();\n out.println(s.equals(t.substring(0, s.length())) ? \"Yes\" : \"No\");\n }\n\n }\n}",
"Main"
] |
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*/
public class Main
{
public static void main(String[] args)
{
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
Scanner in = new Scanner(inputStream);
PrintWriter out = new PrintWriter(outputStream);
TaskA solver = new TaskA();
solver.solve(1, in, out);
out.close();
}
static class TaskA
{
public void solve(int testNumber, Scanner in, PrintWriter out)
{
String s = in.next();
String t = in.next();
out.println(s.equals(t.substring(0, s.length())) ? "Yes" : "No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
14,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
55,
5
],
[
55,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
28,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
33,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
33,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
6,
52
],
[
52,
53
],
[
0,
54
],
[
54,
55
],
[
54,
56
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \tString befId = sc.next();\n \tString aftId = sc.next();\n \n String modId = aftId.substring(0, aftId.length()-1);\n \t/* modId.setLength(aftId.length()-1);*/\n \n if(befId.equals(modId)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\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 \tString befId = sc.next();\n \tString aftId = sc.next();\n \n String modId = aftId.substring(0, aftId.length()-1);\n \t/* modId.setLength(aftId.length()-1);*/\n \n if(befId.equals(modId)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \tString befId = sc.next();\n \tString aftId = sc.next();\n \n String modId = aftId.substring(0, aftId.length()-1);\n \t/* modId.setLength(aftId.length()-1);*/\n \n if(befId.equals(modId)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n \tString befId = sc.next();\n \tString aftId = sc.next();\n \n String modId = aftId.substring(0, aftId.length()-1);\n \t/* modId.setLength(aftId.length()-1);*/\n \n if(befId.equals(modId)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String befId = sc.next();",
"befId",
"sc.next()",
"sc.next",
"sc",
"String aftId = sc.next();",
"aftId",
"sc.next()",
"sc.next",
"sc",
"String modId = aftId.substring(0, aftId.length()-1);",
"modId",
"aftId.substring(0, aftId.length()-1)",
"aftId.substring",
"aftId",
"0",
"aftId.length()-1",
"aftId.length()",
"aftId.length",
"aftId",
"1",
"if(befId.equals(modId)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"befId.equals(modId)",
"befId.equals",
"befId",
"modId",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \tString befId = sc.next();\n \tString aftId = sc.next();\n \n String modId = aftId.substring(0, aftId.length()-1);\n \t/* modId.setLength(aftId.length()-1);*/\n \n if(befId.equals(modId)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \tString befId = sc.next();\n \tString aftId = sc.next();\n \n String modId = aftId.substring(0, aftId.length()-1);\n \t/* modId.setLength(aftId.length()-1);*/\n \n if(befId.equals(modId)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String befId = sc.next();
String aftId = sc.next();
String modId = aftId.substring(0, aftId.length()-1);
/* modId.setLength(aftId.length()-1);*/
if(befId.equals(modId)) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
4,
18,
13,
17,
0,
13,
13,
14,
4,
18,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
55,
5
],
[
55,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
27,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
35,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
6,
52
],
[
52,
53
],
[
0,
54
],
[
54,
55
],
[
54,
56
]
] |
[
"\nimport java.util.*;\n\npublic class Main {\n\tstatic public void main(String args[]){\n\t\tScanner sc=new Scanner(System.in);\n\t\t \n\t\t String str=sc.next();\n\t\t String str2=sc.next();\n\t\t \n\t\t char ch=str2.charAt(str2.length()-1);\n\t\t str+=ch;\n\t\t if(str.equals(str2))System.out.print(\"Yes\");\n\t\t else System.out.print(\"No\");\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tstatic public void main(String args[]){\n\t\tScanner sc=new Scanner(System.in);\n\t\t \n\t\t String str=sc.next();\n\t\t String str2=sc.next();\n\t\t \n\t\t char ch=str2.charAt(str2.length()-1);\n\t\t str+=ch;\n\t\t if(str.equals(str2))System.out.print(\"Yes\");\n\t\t else System.out.print(\"No\");\n\t}\n}",
"Main",
"static public void main(String args[]){\n\t\tScanner sc=new Scanner(System.in);\n\t\t \n\t\t String str=sc.next();\n\t\t String str2=sc.next();\n\t\t \n\t\t char ch=str2.charAt(str2.length()-1);\n\t\t str+=ch;\n\t\t if(str.equals(str2))System.out.print(\"Yes\");\n\t\t else System.out.print(\"No\");\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\t \n\t\t String str=sc.next();\n\t\t String str2=sc.next();\n\t\t \n\t\t char ch=str2.charAt(str2.length()-1);\n\t\t str+=ch;\n\t\t if(str.equals(str2))System.out.print(\"Yes\");\n\t\t else System.out.print(\"No\");\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String str=sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"String str2=sc.next();",
"str2",
"sc.next()",
"sc.next",
"sc",
"char ch=str2.charAt(str2.length()-1);",
"ch",
"str2.charAt(str2.length()-1)",
"str2.charAt",
"str2",
"str2.length()-1",
"str2.length()",
"str2.length",
"str2",
"1",
"str+=ch",
"str",
"ch",
"if(str.equals(str2))System.out.print(\"Yes\");\n\t\t else System.out.print(\"No\");",
"str.equals(str2)",
"str.equals",
"str",
"str2",
"System.out.print(\"Yes\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.print(\"No\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"No\"",
"String args[]",
"args",
"public class Main {\n\tstatic public void main(String args[]){\n\t\tScanner sc=new Scanner(System.in);\n\t\t \n\t\t String str=sc.next();\n\t\t String str2=sc.next();\n\t\t \n\t\t char ch=str2.charAt(str2.length()-1);\n\t\t str+=ch;\n\t\t if(str.equals(str2))System.out.print(\"Yes\");\n\t\t else System.out.print(\"No\");\n\t}\n}",
"public class Main {\n\tstatic public void main(String args[]){\n\t\tScanner sc=new Scanner(System.in);\n\t\t \n\t\t String str=sc.next();\n\t\t String str2=sc.next();\n\t\t \n\t\t char ch=str2.charAt(str2.length()-1);\n\t\t str+=ch;\n\t\t if(str.equals(str2))System.out.print(\"Yes\");\n\t\t else System.out.print(\"No\");\n\t}\n}",
"Main"
] |
import java.util.*;
public class Main {
static public void main(String args[]){
Scanner sc=new Scanner(System.in);
String str=sc.next();
String str2=sc.next();
char ch=str2.charAt(str2.length()-1);
str+=ch;
if(str.equals(str2))System.out.print("Yes");
else System.out.print("No");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
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,
40,
4,
18,
18,
13,
13,
18,
13,
13,
30,
0,
13,
17,
14,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
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
],
[
24,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
8,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
37,
47
],
[
47,
48
],
[
48,
49
],
[
37,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
52,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
8,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
66,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
6,
82
],
[
82,
83
]
] |
[
"import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String a=scan.next();\n String b=scan.next();\n String[] a1=a.split(\"\");\n String[] b1=b.split(\"\");\n boolean flag=true;\n for(int x=0; x<a1.length; x++){\n if(!(a1[x].equals(b1[x]))){\n flag=false;\n }\n }\n if(flag){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\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 a=scan.next();\n String b=scan.next();\n String[] a1=a.split(\"\");\n String[] b1=b.split(\"\");\n boolean flag=true;\n for(int x=0; x<a1.length; x++){\n if(!(a1[x].equals(b1[x]))){\n flag=false;\n }\n }\n if(flag){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String a=scan.next();\n String b=scan.next();\n String[] a1=a.split(\"\");\n String[] b1=b.split(\"\");\n boolean flag=true;\n for(int x=0; x<a1.length; x++){\n if(!(a1[x].equals(b1[x]))){\n flag=false;\n }\n }\n if(flag){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner scan=new Scanner(System.in);\n String a=scan.next();\n String b=scan.next();\n String[] a1=a.split(\"\");\n String[] b1=b.split(\"\");\n boolean flag=true;\n for(int x=0; x<a1.length; x++){\n if(!(a1[x].equals(b1[x]))){\n flag=false;\n }\n }\n if(flag){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String a=scan.next();",
"a",
"scan.next()",
"scan.next",
"scan",
"String b=scan.next();",
"b",
"scan.next()",
"scan.next",
"scan",
"String[] a1=a.split(\"\");",
"a1",
"a.split(\"\")",
"a.split",
"a",
"\"\"",
"String[] b1=b.split(\"\");",
"b1",
"b.split(\"\")",
"b.split",
"b",
"\"\"",
"boolean flag=true;",
"flag",
"true",
"for(int x=0; x<a1.length; x++){\n if(!(a1[x].equals(b1[x]))){\n flag=false;\n }\n }",
"int x=0;",
"int x=0;",
"x",
"0",
"x<a1.length",
"x",
"a1.length",
"a1",
"a1.length",
"x++",
"x++",
"x",
"{\n if(!(a1[x].equals(b1[x]))){\n flag=false;\n }\n }",
"{\n if(!(a1[x].equals(b1[x]))){\n flag=false;\n }\n }",
"if(!(a1[x].equals(b1[x]))){\n flag=false;\n }",
"!(a1[x].equals(b1[x]))",
"(a1[x].equals(b1[x]))",
"a1[x].equals",
"a1[x]",
"a1",
"x",
"b1[x]",
"b1",
"x",
"{\n flag=false;\n }",
"flag=false",
"flag",
"false",
"if(flag){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"flag",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args"
] |
import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
String a=scan.next();
String b=scan.next();
String[] a1=a.split("");
String[] b1=b.split("");
boolean flag=true;
for(int x=0; x<a1.length; x++){
if(!(a1[x].equals(b1[x]))){
flag=false;
}
}
if(flag){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
14,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
55,
5
],
[
55,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
28,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
33,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
33,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
6,
52
],
[
52,
53
],
[
0,
54
],
[
54,
55
],
[
54,
56
]
] |
[
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner (System.in);\n\t\tString S=in.next();\n\t\tString T=in.next();\n\t\tString X=T.substring(0, T.length()-1);\n\t\tif(S.equals(X)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner (System.in);\n\t\tString S=in.next();\n\t\tString T=in.next();\n\t\tString X=T.substring(0, T.length()-1);\n\t\tif(S.equals(X)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner in=new Scanner (System.in);\n\t\tString S=in.next();\n\t\tString T=in.next();\n\t\tString X=T.substring(0, T.length()-1);\n\t\tif(S.equals(X)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner in=new Scanner (System.in);\n\t\tString S=in.next();\n\t\tString T=in.next();\n\t\tString X=T.substring(0, T.length()-1);\n\t\tif(S.equals(X)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"Scanner in=new Scanner (System.in);",
"in",
"new Scanner (System.in)",
"String S=in.next();",
"S",
"in.next()",
"in.next",
"in",
"String T=in.next();",
"T",
"in.next()",
"in.next",
"in",
"String X=T.substring(0, T.length()-1);",
"X",
"T.substring(0, T.length()-1)",
"T.substring",
"T",
"0",
"T.length()-1",
"T.length()",
"T.length",
"T",
"1",
"if(S.equals(X)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"S.equals(X)",
"S.equals",
"S",
"X",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner (System.in);\n\t\tString S=in.next();\n\t\tString T=in.next();\n\t\tString X=T.substring(0, T.length()-1);\n\t\tif(S.equals(X)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner (System.in);\n\t\tString S=in.next();\n\t\tString T=in.next();\n\t\tString X=T.substring(0, T.length()-1);\n\t\tif(S.equals(X)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner in=new Scanner (System.in);
String S=in.next();
String T=in.next();
String X=T.substring(0, T.length()-1);
if(S.equals(X)) {
System.out.println("Yes");
}
else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
42,
2,
13,
17,
30,
4,
18,
13,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
2,
13,
17,
41,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
8,
4,
18,
13,
17,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
89,
17
],
[
89,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
27
],
[
27,
28
],
[
27,
29
],
[
20,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
20,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
20,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
20,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
20,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
66,
68
],
[
20,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
20,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
80,
84
],
[
80,
85
],
[
18,
86
],
[
86,
87
],
[
0,
88
],
[
88,
89
],
[
88,
90
]
] |
[
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\npublic class Main {\n\n public static void main(String[] args) throws Exception {\n\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(is);\n\n ArrayList<String> mylist = new ArrayList<>();\n\n // 標準入力からの値を変数strinputに代入\n String strinput = reader.readLine();\n\n while (strinput != null) {\n mylist.add(strinput);\n strinput = reader.readLine();\n }\n\n String s = mylist.get(0);\n String t = mylist.get(1);\n\n // 正規表現パターン指定\n Pattern p1 = Pattern.compile(s + \"[a-z]\");\n Matcher m1 = p1.matcher(t);\n System.out.println(m1.find() ? \"Yes\" : \"No\");\n\n }\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.regex.Matcher;",
"Matcher",
"java.util.regex",
"import java.util.regex.Pattern;",
"Pattern",
"java.util.regex",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(is);\n\n ArrayList<String> mylist = new ArrayList<>();\n\n // 標準入力からの値を変数strinputに代入\n String strinput = reader.readLine();\n\n while (strinput != null) {\n mylist.add(strinput);\n strinput = reader.readLine();\n }\n\n String s = mylist.get(0);\n String t = mylist.get(1);\n\n // 正規表現パターン指定\n Pattern p1 = Pattern.compile(s + \"[a-z]\");\n Matcher m1 = p1.matcher(t);\n System.out.println(m1.find() ? \"Yes\" : \"No\");\n\n }\n\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(is);\n\n ArrayList<String> mylist = new ArrayList<>();\n\n // 標準入力からの値を変数strinputに代入\n String strinput = reader.readLine();\n\n while (strinput != null) {\n mylist.add(strinput);\n strinput = reader.readLine();\n }\n\n String s = mylist.get(0);\n String t = mylist.get(1);\n\n // 正規表現パターン指定\n Pattern p1 = Pattern.compile(s + \"[a-z]\");\n Matcher m1 = p1.matcher(t);\n System.out.println(m1.find() ? \"Yes\" : \"No\");\n\n }",
"main",
"{\n\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(is);\n\n ArrayList<String> mylist = new ArrayList<>();\n\n // 標準入力からの値を変数strinputに代入\n String strinput = reader.readLine();\n\n while (strinput != null) {\n mylist.add(strinput);\n strinput = reader.readLine();\n }\n\n String s = mylist.get(0);\n String t = mylist.get(1);\n\n // 正規表現パターン指定\n Pattern p1 = Pattern.compile(s + \"[a-z]\");\n Matcher m1 = p1.matcher(t);\n System.out.println(m1.find() ? \"Yes\" : \"No\");\n\n }",
"InputStreamReader is = new InputStreamReader(System.in);",
"is",
"new InputStreamReader(System.in)",
"BufferedReader reader = new BufferedReader(is);",
"reader",
"new BufferedReader(is)",
"ArrayList<String> mylist = new ArrayList<>();",
"mylist",
"new ArrayList<>()",
"String strinput = reader.readLine();",
"strinput",
"reader.readLine()",
"reader.readLine",
"reader",
"while (strinput != null) {\n mylist.add(strinput);\n strinput = reader.readLine();\n }",
"strinput != null",
"strinput",
"null",
"{\n mylist.add(strinput);\n strinput = reader.readLine();\n }",
"mylist.add(strinput)",
"mylist.add",
"mylist",
"strinput",
"strinput = reader.readLine()",
"strinput",
"reader.readLine()",
"reader.readLine",
"reader",
"String s = mylist.get(0);",
"s",
"mylist.get(0)",
"mylist.get",
"mylist",
"0",
"String t = mylist.get(1);",
"t",
"mylist.get(1)",
"mylist.get",
"mylist",
"1",
"Pattern p1 = Pattern.compile(s + \"[a-z]\");",
"p1",
"Pattern.compile(s + \"[a-z]\")",
"Pattern.compile",
"Pattern",
"s + \"[a-z]\"",
"s",
"\"[a-z]\"",
"Matcher m1 = p1.matcher(t);",
"m1",
"p1.matcher(t)",
"p1.matcher",
"p1",
"t",
"System.out.println(m1.find() ? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"m1.find() ? \"Yes\" : \"No\"",
"m1.find()",
"m1.find",
"m1",
"\"Yes\"",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(is);\n\n ArrayList<String> mylist = new ArrayList<>();\n\n // 標準入力からの値を変数strinputに代入\n String strinput = reader.readLine();\n\n while (strinput != null) {\n mylist.add(strinput);\n strinput = reader.readLine();\n }\n\n String s = mylist.get(0);\n String t = mylist.get(1);\n\n // 正規表現パターン指定\n Pattern p1 = Pattern.compile(s + \"[a-z]\");\n Matcher m1 = p1.matcher(t);\n System.out.println(m1.find() ? \"Yes\" : \"No\");\n\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(is);\n\n ArrayList<String> mylist = new ArrayList<>();\n\n // 標準入力からの値を変数strinputに代入\n String strinput = reader.readLine();\n\n while (strinput != null) {\n mylist.add(strinput);\n strinput = reader.readLine();\n }\n\n String s = mylist.get(0);\n String t = mylist.get(1);\n\n // 正規表現パターン指定\n Pattern p1 = Pattern.compile(s + \"[a-z]\");\n Matcher m1 = p1.matcher(t);\n System.out.println(m1.find() ? \"Yes\" : \"No\");\n\n }\n\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Main {
public static void main(String[] args) throws Exception {
InputStreamReader is = new InputStreamReader(System.in);
BufferedReader reader = new BufferedReader(is);
ArrayList<String> mylist = new ArrayList<>();
// 標準入力からの値を変数strinputに代入
String strinput = reader.readLine();
while (strinput != null) {
mylist.add(strinput);
strinput = reader.readLine();
}
String s = mylist.get(0);
String t = mylist.get(1);
// 正規表現パターン指定
Pattern p1 = Pattern.compile(s + "[a-z]");
Matcher m1 = p1.matcher(t);
System.out.println(m1.find() ? "Yes" : "No");
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.