node_ids
listlengths 4
1.4k
| edge_index
listlengths 1
2.22k
| text
listlengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
29,
14,
40,
4,
18,
4,
18,
13,
17,
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
],
[
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
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
28,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
35,
42
],
[
8,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
47,
51
],
[
45,
52
],
[
43,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
53,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
6,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
] |
[
"import java.util.*;\npublic class Main {\n public static void main(String... args) {\n \tScanner input = new Scanner(System.in);\n \tString first = input.next();\n String second = input.next();\n \n int n = first.length();\n \n if (second.length() != n + 1) {\n System.out.println(\"No\");\n return;\n }\n \n if (!second.substring(0, n).equals(first)) {\n System.out.println(\"No\");\n return;\n }\n \n System.out.println(\"Yes\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String... args) {\n \tScanner input = new Scanner(System.in);\n \tString first = input.next();\n String second = input.next();\n \n int n = first.length();\n \n if (second.length() != n + 1) {\n System.out.println(\"No\");\n return;\n }\n \n if (!second.substring(0, n).equals(first)) {\n System.out.println(\"No\");\n return;\n }\n \n System.out.println(\"Yes\");\n }\n}",
"Main",
"public static void main(String... args) {\n \tScanner input = new Scanner(System.in);\n \tString first = input.next();\n String second = input.next();\n \n int n = first.length();\n \n if (second.length() != n + 1) {\n System.out.println(\"No\");\n return;\n }\n \n if (!second.substring(0, n).equals(first)) {\n System.out.println(\"No\");\n return;\n }\n \n System.out.println(\"Yes\");\n }",
"main",
"{\n \tScanner input = new Scanner(System.in);\n \tString first = input.next();\n String second = input.next();\n \n int n = first.length();\n \n if (second.length() != n + 1) {\n System.out.println(\"No\");\n return;\n }\n \n if (!second.substring(0, n).equals(first)) {\n System.out.println(\"No\");\n return;\n }\n \n System.out.println(\"Yes\");\n }",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"String first = input.next();",
"first",
"input.next()",
"input.next",
"input",
"String second = input.next();",
"second",
"input.next()",
"input.next",
"input",
"int n = first.length();",
"n",
"first.length()",
"first.length",
"first",
"if (second.length() != n + 1) {\n System.out.println(\"No\");\n return;\n }",
"second.length() != n + 1",
"second.length()",
"second.length",
"second",
"n + 1",
"n",
"1",
"{\n System.out.println(\"No\");\n return;\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"return;",
"if (!second.substring(0, n).equals(first)) {\n System.out.println(\"No\");\n return;\n }",
"!second.substring(0, n).equals(first)",
"second.substring(0, n).equals(first)",
"second.substring(0, n).equals",
"second.substring(0, n)",
"second.substring",
"second",
"0",
"n",
"first",
"{\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 public static void main(String... args) {\n \tScanner input = new Scanner(System.in);\n \tString first = input.next();\n String second = input.next();\n \n int n = first.length();\n \n if (second.length() != n + 1) {\n System.out.println(\"No\");\n return;\n }\n \n if (!second.substring(0, n).equals(first)) {\n System.out.println(\"No\");\n return;\n }\n \n System.out.println(\"Yes\");\n }\n}",
"public class Main {\n public static void main(String... args) {\n \tScanner input = new Scanner(System.in);\n \tString first = input.next();\n String second = input.next();\n \n int n = first.length();\n \n if (second.length() != n + 1) {\n System.out.println(\"No\");\n return;\n }\n \n if (!second.substring(0, n).equals(first)) {\n System.out.println(\"No\");\n return;\n }\n \n System.out.println(\"Yes\");\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String... args) {
Scanner input = new Scanner(System.in);
String first = input.next();
String second = input.next();
int n = first.length();
if (second.length() != n + 1) {
System.out.println("No");
return;
}
if (!second.substring(0, n).equals(first)) {
System.out.println("No");
return;
}
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,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
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,
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
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
28,
38
],
[
38,
39
],
[
39,
40
],
[
28,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
42,
49
],
[
49,
50
],
[
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
],
[
6,
80
],
[
80,
81
],
[
0,
82
],
[
82,
83
],
[
82,
84
]
] |
[
"import java.util.*;\n\npublic class Main {\n\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 sc.close();\n\n boolean isOK = true;\n for (int i = 0; i < S.length(); i++) {\n char sVal = S.charAt(i);\n char tVal = T.charAt(i);\n if (sVal != tVal) {\n isOK = false;\n break;\n }\n }\n\n if (isOK) {\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 sc = new Scanner(System.in);\n String S = sc.nextLine();\n String T = sc.nextLine();\n sc.close();\n\n boolean isOK = true;\n for (int i = 0; i < S.length(); i++) {\n char sVal = S.charAt(i);\n char tVal = T.charAt(i);\n if (sVal != tVal) {\n isOK = false;\n break;\n }\n }\n\n if (isOK) {\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.nextLine();\n String T = sc.nextLine();\n sc.close();\n\n boolean isOK = true;\n for (int i = 0; i < S.length(); i++) {\n char sVal = S.charAt(i);\n char tVal = T.charAt(i);\n if (sVal != tVal) {\n isOK = false;\n break;\n }\n }\n\n if (isOK) {\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 sc.close();\n\n boolean isOK = true;\n for (int i = 0; i < S.length(); i++) {\n char sVal = S.charAt(i);\n char tVal = T.charAt(i);\n if (sVal != tVal) {\n isOK = false;\n break;\n }\n }\n\n if (isOK) {\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",
"sc.close()",
"sc.close",
"sc",
"boolean isOK = true;",
"isOK",
"true",
"for (int i = 0; i < S.length(); i++) {\n char sVal = S.charAt(i);\n char tVal = T.charAt(i);\n if (sVal != tVal) {\n isOK = false;\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 char sVal = S.charAt(i);\n char tVal = T.charAt(i);\n if (sVal != tVal) {\n isOK = false;\n break;\n }\n }",
"{\n char sVal = S.charAt(i);\n char tVal = T.charAt(i);\n if (sVal != tVal) {\n isOK = false;\n break;\n }\n }",
"char sVal = S.charAt(i);",
"sVal",
"S.charAt(i)",
"S.charAt",
"S",
"i",
"char tVal = T.charAt(i);",
"tVal",
"T.charAt(i)",
"T.charAt",
"T",
"i",
"if (sVal != tVal) {\n isOK = false;\n break;\n }",
"sVal != tVal",
"sVal",
"tVal",
"{\n isOK = false;\n break;\n }",
"isOK = false",
"isOK",
"false",
"break;",
"if (isOK) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"isOK",
"{\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.nextLine();\n String T = sc.nextLine();\n sc.close();\n\n boolean isOK = true;\n for (int i = 0; i < S.length(); i++) {\n char sVal = S.charAt(i);\n char tVal = T.charAt(i);\n if (sVal != tVal) {\n isOK = false;\n break;\n }\n }\n\n if (isOK) {\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.nextLine();\n String T = sc.nextLine();\n sc.close();\n\n boolean isOK = true;\n for (int i = 0; i < S.length(); i++) {\n char sVal = S.charAt(i);\n char tVal = T.charAt(i);\n if (sVal != tVal) {\n isOK = false;\n break;\n }\n }\n\n if (isOK) {\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 sc = new Scanner(System.in);
String S = sc.nextLine();
String T = sc.nextLine();
sc.close();
boolean isOK = true;
for (int i = 0; i < S.length(); i++) {
char sVal = S.charAt(i);
char tVal = T.charAt(i);
if (sVal != tVal) {
isOK = false;
break;
}
}
if (isOK) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
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
],
[
66,
5
],
[
66,
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
],
[
59,
61
],
[
57,
62
],
[
6,
63
],
[
63,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n @SuppressWarnings(\"resource\")\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.println(\"No\");\n return;\n }\n }\n System.out.println(\"Yes\");\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n @SuppressWarnings(\"resource\")\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.println(\"No\");\n return;\n }\n }\n System.out.println(\"Yes\");\n }\n\n}",
"Main",
"public static void main(String[] args) {\n @SuppressWarnings(\"resource\")\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.println(\"No\");\n return;\n }\n }\n System.out.println(\"Yes\");\n }",
"main",
"{\n @SuppressWarnings(\"resource\")\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.println(\"No\");\n return;\n }\n }\n System.out.println(\"Yes\");\n }",
"@SuppressWarnings(\"resource\")\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.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 System.out.println(\"No\");\n return;\n }\n }",
"{\n if (s[i] != t[i]) {\n System.out.println(\"No\");\n return;\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",
"public class Main {\n\n public static void main(String[] args) {\n @SuppressWarnings(\"resource\")\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.println(\"No\");\n return;\n }\n }\n System.out.println(\"Yes\");\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n @SuppressWarnings(\"resource\")\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.println(\"No\");\n return;\n }\n }\n System.out.println(\"Yes\");\n }\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
@SuppressWarnings("resource")
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.println("No");
return;
}
}
System.out.println("Yes");
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
41,
13,
4,
13,
41,
13,
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,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
105,
8
],
[
105,
9
],
[
9,
10
],
[
105,
11
],
[
11,
12
],
[
105,
13
],
[
13,
14
],
[
105,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
17,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
17,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
37,
41
],
[
29,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
29,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
15,
56
],
[
56,
57
],
[
105,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
105,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
74,
75
],
[
105,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
105,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
88,
97
],
[
97,
98
],
[
97,
99
],
[
87,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
] |
[
"import java.util.*; \nimport java.io.*;\n\npublic class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n \n String S = next();\n String T = next();\n \n\n if(S.equals(T.substring(0, T.length()-1))){\n System.out.println(\"Yes\");\n } \n else{\n System.out.println(\"No\");\n }\n\n\n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n \n String S = next();\n String T = next();\n \n\n if(S.equals(T.substring(0, T.length()-1))){\n System.out.println(\"Yes\");\n } \n else{\n System.out.println(\"No\");\n }\n\n\n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"Main",
"static StringTokenizer st;",
"st",
"static BufferedReader br;",
"br",
"static PrintWriter out;",
"out",
"public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n \n String S = next();\n String T = next();\n \n\n if(S.equals(T.substring(0, T.length()-1))){\n System.out.println(\"Yes\");\n } \n else{\n System.out.println(\"No\");\n }\n\n\n }",
"main",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n\n \n String S = next();\n String T = next();\n \n\n if(S.equals(T.substring(0, T.length()-1))){\n System.out.println(\"Yes\");\n } \n else{\n System.out.println(\"No\");\n }\n\n\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"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 } \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 static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine().trim())",
"st",
"new StringTokenizer(br.readLine().trim())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n \n String S = next();\n String T = next();\n \n\n if(S.equals(T.substring(0, T.length()-1))){\n System.out.println(\"Yes\");\n } \n else{\n System.out.println(\"No\");\n }\n\n\n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"public class Main {\n static StringTokenizer st;\n static BufferedReader br; \n static PrintWriter out;\n \n public static void main(String[] args) throws IOException {\n br = new BufferedReader(new InputStreamReader(System.in));\n\n \n String S = next();\n String T = next();\n \n\n if(S.equals(T.substring(0, T.length()-1))){\n System.out.println(\"Yes\");\n } \n else{\n System.out.println(\"No\");\n }\n\n\n }\n \n \n public static int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public static long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public static double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n static String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine().trim());\n return st.nextToken();\n }\n}",
"Main"
] |
import java.util.*;
import java.io.*;
public class Main {
static StringTokenizer st;
static BufferedReader br;
static PrintWriter out;
public static void main(String[] args) throws IOException {
br = new BufferedReader(new InputStreamReader(System.in));
String S = next();
String T = next();
if(S.equals(T.substring(0, T.length()-1))){
System.out.println("Yes");
}
else{
System.out.println("No");
}
}
public static int nextInt() throws IOException {
return Integer.parseInt(next());
}
public static long nextLong() throws IOException {
return Long.parseLong(next());
}
public static double nextDouble() throws IOException {
return Double.parseDouble(next());
}
static String next() throws IOException {
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(br.readLine().trim());
return st.nextToken();
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
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,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
52,
5
],
[
52,
6
],
[
6,
7
],
[
6,
8
],
[
52,
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
],
[
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
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
22,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
9,
49
],
[
49,
50
],
[
0,
51
],
[
51,
52
],
[
51,
53
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tstatic Scanner src = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tString str1 = src.next();\n\t\tString str2 = src.next();\n\t\tif(str2.substring(0, str2.length() - 1).equals(str1)) {\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.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tstatic Scanner src = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tString str1 = src.next();\n\t\tString str2 = src.next();\n\t\tif(str2.substring(0, str2.length() - 1).equals(str1)) {\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",
"static Scanner src = new Scanner(System.in);",
"src",
"new Scanner(System.in)",
"public static void main(String[] args) {\n\t\tString str1 = src.next();\n\t\tString str2 = src.next();\n\t\tif(str2.substring(0, str2.length() - 1).equals(str1)) {\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\tString str1 = src.next();\n\t\tString str2 = src.next();\n\t\tif(str2.substring(0, str2.length() - 1).equals(str1)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"String str1 = src.next();",
"str1",
"src.next()",
"src.next",
"src",
"String str2 = src.next();",
"str2",
"src.next()",
"src.next",
"src",
"if(str2.substring(0, str2.length() - 1).equals(str1)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"str2.substring(0, str2.length() - 1).equals(str1)",
"str2.substring(0, str2.length() - 1).equals",
"str2.substring(0, str2.length() - 1)",
"str2.substring",
"str2",
"0",
"str2.length() - 1",
"str2.length()",
"str2.length",
"str2",
"1",
"str1",
"{\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\tstatic Scanner src = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tString str1 = src.next();\n\t\tString str2 = src.next();\n\t\tif(str2.substring(0, str2.length() - 1).equals(str1)) {\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\tstatic Scanner src = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tString str1 = src.next();\n\t\tString str2 = src.next();\n\t\tif(str2.substring(0, str2.length() - 1).equals(str1)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
static Scanner src = new Scanner(System.in);
public static void main(String[] args) {
String str1 = src.next();
String str2 = src.next();
if(str2.substring(0, str2.length() - 1).equals(str1)) {
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,
30,
0,
13,
17,
3,
14,
2,
13,
2,
2,
4,
18,
13,
17,
4,
18,
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
],
[
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
],
[
51,
53
],
[
50,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
59,
63
],
[
58,
64
],
[
64,
65
],
[
65,
66
],
[
55,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
55,
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\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tString s = kb.next();\n\t\tString t = kb.next();\n\t\tboolean j = true;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (s.charAt(i) != t.charAt(i)) {\n\t\t\t\tj = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (j && (s.length() + 1 == t.length())) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tkb.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 Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tString s = kb.next();\n\t\tString t = kb.next();\n\t\tboolean j = true;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (s.charAt(i) != t.charAt(i)) {\n\t\t\t\tj = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (j && (s.length() + 1 == t.length())) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tkb.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tString s = kb.next();\n\t\tString t = kb.next();\n\t\tboolean j = true;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (s.charAt(i) != t.charAt(i)) {\n\t\t\t\tj = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (j && (s.length() + 1 == t.length())) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tkb.close();\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tString s = kb.next();\n\t\tString t = kb.next();\n\t\tboolean j = true;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (s.charAt(i) != t.charAt(i)) {\n\t\t\t\tj = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (j && (s.length() + 1 == t.length())) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tkb.close();\n\t}",
"Scanner kb = new Scanner(System.in);",
"kb",
"new Scanner(System.in)",
"String s = kb.next();",
"s",
"kb.next()",
"kb.next",
"kb",
"String t = kb.next();",
"t",
"kb.next()",
"kb.next",
"kb",
"boolean j = true;",
"j",
"true",
"for (int i = 0; i < s.length(); i++) {\n\t\t\tif (s.charAt(i) != t.charAt(i)) {\n\t\t\t\tj = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n\t\t\tif (s.charAt(i) != t.charAt(i)) {\n\t\t\t\tj = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (s.charAt(i) != t.charAt(i)) {\n\t\t\t\tj = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"if (s.charAt(i) != t.charAt(i)) {\n\t\t\t\tj = false;\n\t\t\t\tbreak;\n\t\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\t\tj = false;\n\t\t\t\tbreak;\n\t\t\t}",
"j = false",
"j",
"false",
"break;",
"if (j && (s.length() + 1 == t.length())) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"j && (s.length() + 1 == t.length())",
"j",
"(s.length() + 1 == t.length())",
"s.length() + 1",
"s.length()",
"s.length",
"s",
"1",
"t.length()",
"t.length",
"t",
"{\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\"",
"kb.close()",
"kb.close",
"kb",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tString s = kb.next();\n\t\tString t = kb.next();\n\t\tboolean j = true;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (s.charAt(i) != t.charAt(i)) {\n\t\t\t\tj = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (j && (s.length() + 1 == t.length())) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tkb.close();\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner kb = new Scanner(System.in);\n\t\tString s = kb.next();\n\t\tString t = kb.next();\n\t\tboolean j = true;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (s.charAt(i) != t.charAt(i)) {\n\t\t\t\tj = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (j && (s.length() + 1 == t.length())) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\n\t\telse {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tkb.close();\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner kb = new Scanner(System.in);
String s = kb.next();
String t = kb.next();
boolean j = true;
for (int i = 0; i < s.length(); i++) {
if (s.charAt(i) != t.charAt(i)) {
j = false;
break;
}
}
if (j && (s.length() + 1 == t.length())) {
System.out.println("Yes");
}
else {
System.out.println("No");
}
kb.close();
}
}
|
[
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,
29,
14,
40,
4,
18,
13,
4,
18,
13,
17,
4,
18,
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
],
[
69,
5
],
[
69,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
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
],
[
32,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
40,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
52,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
6,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String args[]) {\n Scanner scan = new Scanner(System.in);\n\n String s = scan.next();\n String t = scan.next();\n\n if (s.length() + 1 != t.length()) {\n System.out.println(\"No\");\n return;\n }\n\n if (!s.equals(t.substring(0, s.length()))) {\n System.out.println(\"No\");\n return;\n }\n\n System.out.println(\"Yes\");\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String args[]) {\n Scanner scan = new Scanner(System.in);\n\n String s = scan.next();\n String t = scan.next();\n\n if (s.length() + 1 != t.length()) {\n System.out.println(\"No\");\n return;\n }\n\n if (!s.equals(t.substring(0, s.length()))) {\n System.out.println(\"No\");\n return;\n }\n\n System.out.println(\"Yes\");\n }\n}",
"Main",
"public static void main(String args[]) {\n Scanner scan = new Scanner(System.in);\n\n String s = scan.next();\n String t = scan.next();\n\n if (s.length() + 1 != t.length()) {\n System.out.println(\"No\");\n return;\n }\n\n if (!s.equals(t.substring(0, s.length()))) {\n System.out.println(\"No\");\n return;\n }\n\n System.out.println(\"Yes\");\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n\n String s = scan.next();\n String t = scan.next();\n\n if (s.length() + 1 != t.length()) {\n System.out.println(\"No\");\n return;\n }\n\n if (!s.equals(t.substring(0, s.length()))) {\n System.out.println(\"No\");\n return;\n }\n\n System.out.println(\"Yes\");\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",
"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.length",
"s",
"1",
"t.length()",
"t.length",
"t",
"{\n System.out.println(\"No\");\n return;\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"return;",
"if (!s.equals(t.substring(0, s.length()))) {\n System.out.println(\"No\");\n return;\n }",
"!s.equals(t.substring(0, s.length()))",
"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(\"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 public static void main(String args[]) {\n Scanner scan = new Scanner(System.in);\n\n String s = scan.next();\n String t = scan.next();\n\n if (s.length() + 1 != t.length()) {\n System.out.println(\"No\");\n return;\n }\n\n if (!s.equals(t.substring(0, s.length()))) {\n System.out.println(\"No\");\n return;\n }\n\n System.out.println(\"Yes\");\n }\n}",
"public class Main {\n public static void main(String args[]) {\n Scanner scan = new Scanner(System.in);\n\n String s = scan.next();\n String t = scan.next();\n\n if (s.length() + 1 != t.length()) {\n System.out.println(\"No\");\n return;\n }\n\n if (!s.equals(t.substring(0, s.length()))) {\n System.out.println(\"No\");\n return;\n }\n\n System.out.println(\"Yes\");\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();
String t = scan.next();
if (s.length() + 1 != t.length()) {
System.out.println("No");
return;
}
if (!s.equals(t.substring(0, s.length()))) {
System.out.println("No");
return;
}
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,
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
],
[
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
],
[
23,
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
]
] |
[
"\nimport 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 A = sc.next();\n\t\tString B = sc.next();\n\t\tif(B.substring(0,A.length()). equals (A)){\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.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 A = sc.next();\n\t\tString B = sc.next();\n\t\tif(B.substring(0,A.length()). equals (A)){\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\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString A = sc.next();\n\t\tString B = sc.next();\n\t\tif(B.substring(0,A.length()). equals (A)){\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\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString A = sc.next();\n\t\tString B = sc.next();\n\t\tif(B.substring(0,A.length()). equals (A)){\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 A = sc.next();",
"A",
"sc.next()",
"sc.next",
"sc",
"String B = sc.next();",
"B",
"sc.next()",
"sc.next",
"sc",
"if(B.substring(0,A.length()). equals (A)){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"B.substring(0,A.length()). equals (A)",
"B.substring(0,A.length()). equals",
"B.substring(0,A.length())",
"B.substring",
"B",
"0",
"A.length()",
"A.length",
"A",
"A",
"{\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\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString A = sc.next();\n\t\tString B = sc.next();\n\t\tif(B.substring(0,A.length()). equals (A)){\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\n\tpublic static void main(String[] args) {\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString A = sc.next();\n\t\tString B = sc.next();\n\t\tif(B.substring(0,A.length()). equals (A)){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ
Scanner sc = new Scanner(System.in);
String A = sc.next();
String B = sc.next();
if(B.substring(0,A.length()). equals (A)){
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,
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
],
[
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
],
[
23,
26
],
[
26,
27
],
[
26,
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
],
[
6,
43
],
[
43,
44
],
[
0,
45
],
[
45,
46
],
[
45,
47
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\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.matches(S + \"[a-z]\")) {\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}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.nextLine();\n\t\tString T = sc.nextLine();\n\n\t\tif (T.matches(S + \"[a-z]\")) {\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}",
"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.matches(S + \"[a-z]\")) {\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\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.matches(S + \"[a-z]\")) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String S = sc.nextLine();",
"S",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String T = sc.nextLine();",
"T",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if (T.matches(S + \"[a-z]\")) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"T.matches(S + \"[a-z]\")",
"T.matches",
"T",
"S + \"[a-z]\"",
"S",
"\"[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\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.matches(S + \"[a-z]\")) {\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}",
"public class Main {\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.matches(S + \"[a-z]\")) {\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}",
"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.matches(S + "[a-z]")) {
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,
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,
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,
13,
17,
29,
4,
18,
13,
17,
23,
13,
23,
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,
30,
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,
30,
29,
40,
17,
29,
18,
13,
40,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
13,
42,
2,
2,
13,
17,
2,
13,
40,
17,
30,
14,
2,
13,
17,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
41,
13,
4,
13,
42,
2,
4,
18,
4,
18,
13,
17,
30,
0,
13,
4,
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
],
[
240,
23
],
[
240,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
26,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
26,
37
],
[
37,
38
],
[
37,
39
],
[
26,
40
],
[
40,
41
],
[
40,
42
],
[
26,
43
],
[
43,
44
],
[
43,
45
],
[
26,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
46,
50
],
[
46,
51
],
[
26,
52
],
[
52,
53
],
[
53,
54
],
[
24,
55
],
[
55,
56
],
[
240,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
61,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
72,
82
],
[
82,
83
],
[
83,
84
],
[
72,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
88,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
87,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
97,
102
],
[
61,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
59,
107
],
[
107,
108
],
[
59,
109
],
[
109,
110
],
[
59,
111
],
[
111,
112
],
[
240,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
113,
117
],
[
117,
118
],
[
117,
119
],
[
113,
121
],
[
121,
122
],
[
113,
123
],
[
123,
124
],
[
113,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
125,
133
],
[
133,
134
],
[
113,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
138,
143
],
[
143,
144
],
[
144,
145
],
[
137,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
154,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
163,
166
],
[
150,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
137,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
113,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
182,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
182,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
190,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
200,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
205,
208
],
[
199,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
182,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
113,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
219,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
225,
231
],
[
224,
232
],
[
232,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
219,
237
],
[
237,
238
],
[
0,
239
],
[
239,
240
],
[
239,
241
]
] |
[
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.InputMismatchException;\nimport java.io.IOException;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author Vishal Burman\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n 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, InputReader in, PrintWriter out) {\n String str = in.readLine();\n String str2 = in.readLine();\n for (int i = 0; i < str.length(); i++) {\n if (str.charAt(i) != str2.charAt(i)) {\n out.println(\"No\");\n return;\n }\n }\n out.println(\"Yes\");\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n private String readLine0() {\n StringBuilder buf = new StringBuilder();\n int c = read();\n while (c != '\\n' && c != -1) {\n if (c != '\\r') {\n buf.appendCodePoint(c);\n }\n c = read();\n }\n return buf.toString();\n }\n\n public String readLine() {\n String s = readLine0();\n while (s.trim().length() == 0) {\n s = readLine0();\n }\n return s;\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.InputMismatchException;",
"InputMismatchException",
"java.util",
"import java.io.IOException;",
"IOException",
"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 InputReader in = new InputReader(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, InputReader in, PrintWriter out) {\n String str = in.readLine();\n String str2 = in.readLine();\n for (int i = 0; i < str.length(); i++) {\n if (str.charAt(i) != str2.charAt(i)) {\n out.println(\"No\");\n return;\n }\n }\n out.println(\"Yes\");\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n private String readLine0() {\n StringBuilder buf = new StringBuilder();\n int c = read();\n while (c != '\\n' && c != -1) {\n if (c != '\\r') {\n buf.appendCodePoint(c);\n }\n c = read();\n }\n return buf.toString();\n }\n\n public String readLine() {\n String s = readLine0();\n while (s.trim().length() == 0) {\n s = readLine0();\n }\n return s;\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n 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 InputReader in = new InputReader(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",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(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, InputReader in, PrintWriter out) {\n String str = in.readLine();\n String str2 = in.readLine();\n for (int i = 0; i < str.length(); i++) {\n if (str.charAt(i) != str2.charAt(i)) {\n out.println(\"No\");\n return;\n }\n }\n out.println(\"Yes\");\n }\n\n }",
"ARegistration",
"public void solve(int testNumber, InputReader in, PrintWriter out) {\n String str = in.readLine();\n String str2 = in.readLine();\n for (int i = 0; i < str.length(); i++) {\n if (str.charAt(i) != str2.charAt(i)) {\n out.println(\"No\");\n return;\n }\n }\n out.println(\"Yes\");\n }",
"solve",
"{\n String str = in.readLine();\n String str2 = in.readLine();\n for (int i = 0; i < str.length(); i++) {\n if (str.charAt(i) != str2.charAt(i)) {\n out.println(\"No\");\n return;\n }\n }\n out.println(\"Yes\");\n }",
"String str = in.readLine();",
"str",
"in.readLine()",
"in.readLine",
"in",
"String str2 = in.readLine();",
"str2",
"in.readLine()",
"in.readLine",
"in",
"for (int i = 0; i < str.length(); i++) {\n if (str.charAt(i) != str2.charAt(i)) {\n out.println(\"No\");\n return;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n if (str.charAt(i) != str2.charAt(i)) {\n out.println(\"No\");\n return;\n }\n }",
"{\n if (str.charAt(i) != str2.charAt(i)) {\n out.println(\"No\");\n return;\n }\n }",
"if (str.charAt(i) != str2.charAt(i)) {\n out.println(\"No\");\n return;\n }",
"str.charAt(i) != str2.charAt(i)",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"str2.charAt(i)",
"str2.charAt",
"str2",
"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",
"InputReader in",
"in",
"PrintWriter out",
"out",
"static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n private String readLine0() {\n StringBuilder buf = new StringBuilder();\n int c = read();\n while (c != '\\n' && c != -1) {\n if (c != '\\r') {\n buf.appendCodePoint(c);\n }\n c = read();\n }\n return buf.toString();\n }\n\n public String readLine() {\n String s = readLine0();\n while (s.trim().length() == 0) {\n s = readLine0();\n }\n return s;\n }\n\n }",
"InputReader",
"private InputStream stream;",
"stream",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar;",
"curChar",
"private int numChars;",
"numChars",
"public InputReader(InputStream stream) {\n this.stream = stream;\n }",
"InputReader",
"{\n this.stream = stream;\n }",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"read",
"{\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"if (numChars == -1) {\n throw new InputMismatchException();\n }",
"numChars == -1",
"numChars",
"-1",
"1",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar >= numChars",
"curChar",
"numChars",
"{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar = 0",
"curChar",
"0",
"try {\n numChars = 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 numChars = stream.read(buf);\n }",
"numChars = stream.read(buf)",
"numChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (numChars <= 0) {\n return -1;\n }",
"numChars <= 0",
"numChars",
"0",
"{\n return -1;\n }",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"private String readLine0() {\n StringBuilder buf = new StringBuilder();\n int c = read();\n while (c != '\\n' && c != -1) {\n if (c != '\\r') {\n buf.appendCodePoint(c);\n }\n c = read();\n }\n return buf.toString();\n }",
"readLine0",
"{\n StringBuilder buf = new StringBuilder();\n int c = read();\n while (c != '\\n' && c != -1) {\n if (c != '\\r') {\n buf.appendCodePoint(c);\n }\n c = read();\n }\n return buf.toString();\n }",
"StringBuilder buf = new StringBuilder();",
"buf",
"new StringBuilder()",
"int c = read();",
"c",
"read()",
"read",
"while (c != '\\n' && c != -1) {\n if (c != '\\r') {\n buf.appendCodePoint(c);\n }\n c = read();\n }",
"c != '\\n' && c != -1",
"c != '\\n'",
"c",
"'\\n'",
"c != -1",
"c",
"-1",
"1",
"{\n if (c != '\\r') {\n buf.appendCodePoint(c);\n }\n c = read();\n }",
"if (c != '\\r') {\n buf.appendCodePoint(c);\n }",
"c != '\\r'",
"c",
"'\\r'",
"{\n buf.appendCodePoint(c);\n }",
"buf.appendCodePoint(c)",
"buf.appendCodePoint",
"buf",
"c",
"c = read()",
"c",
"read()",
"read",
"return buf.toString();",
"buf.toString()",
"buf.toString",
"buf",
"public String readLine() {\n String s = readLine0();\n while (s.trim().length() == 0) {\n s = readLine0();\n }\n return s;\n }",
"readLine",
"{\n String s = readLine0();\n while (s.trim().length() == 0) {\n s = readLine0();\n }\n return s;\n }",
"String s = readLine0();",
"s",
"readLine0()",
"readLine0",
"while (s.trim().length() == 0) {\n s = readLine0();\n }",
"s.trim().length() == 0",
"s.trim().length()",
"s.trim().length",
"s.trim()",
"s.trim",
"s",
"0",
"{\n s = readLine0();\n }",
"s = readLine0()",
"s",
"readLine0()",
"readLine0",
"return s;",
"s",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n 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, InputReader in, PrintWriter out) {\n String str = in.readLine();\n String str2 = in.readLine();\n for (int i = 0; i < str.length(); i++) {\n if (str.charAt(i) != str2.charAt(i)) {\n out.println(\"No\");\n return;\n }\n }\n out.println(\"Yes\");\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n private String readLine0() {\n StringBuilder buf = new StringBuilder();\n int c = read();\n while (c != '\\n' && c != -1) {\n if (c != '\\r') {\n buf.appendCodePoint(c);\n }\n c = read();\n }\n return buf.toString();\n }\n\n public String readLine() {\n String s = readLine0();\n while (s.trim().length() == 0) {\n s = readLine0();\n }\n return s;\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n 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, InputReader in, PrintWriter out) {\n String str = in.readLine();\n String str2 = in.readLine();\n for (int i = 0; i < str.length(); i++) {\n if (str.charAt(i) != str2.charAt(i)) {\n out.println(\"No\");\n return;\n }\n }\n out.println(\"Yes\");\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n private String readLine0() {\n StringBuilder buf = new StringBuilder();\n int c = read();\n while (c != '\\n' && c != -1) {\n if (c != '\\r') {\n buf.appendCodePoint(c);\n }\n c = read();\n }\n return buf.toString();\n }\n\n public String readLine() {\n String s = readLine0();\n while (s.trim().length() == 0) {\n s = readLine0();\n }\n return s;\n }\n\n }\n}",
"Main"
] |
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author Vishal Burman
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
ARegistration solver = new ARegistration();
solver.solve(1, in, out);
out.close();
}
static class ARegistration {
public void solve(int testNumber, InputReader in, PrintWriter out) {
String str = in.readLine();
String str2 = in.readLine();
for (int i = 0; i < str.length(); i++) {
if (str.charAt(i) != str2.charAt(i)) {
out.println("No");
return;
}
}
out.println("Yes");
}
}
static class InputReader {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
public InputReader(InputStream stream) {
this.stream = stream;
}
public int read() {
if (numChars == -1) {
throw new InputMismatchException();
}
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (numChars <= 0) {
return -1;
}
}
return buf[curChar++];
}
private String readLine0() {
StringBuilder buf = new StringBuilder();
int c = read();
while (c != '\n' && c != -1) {
if (c != '\r') {
buf.appendCodePoint(c);
}
c = read();
}
return buf.toString();
}
public String readLine() {
String s = readLine0();
while (s.trim().length() == 0) {
s = readLine0();
}
return s;
}
}
}
|
[
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,
0,
13,
4,
18,
13,
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
],
[
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
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
30,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
35,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
35,
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.*;\npublic 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 sc.close();\n s += t.charAt(t.length() - 1);\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.next();\n String t = sc.next();\n sc.close();\n s += t.charAt(t.length() - 1);\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.next();\n String t = sc.next();\n sc.close();\n s += t.charAt(t.length() - 1);\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.next();\n String t = sc.next();\n sc.close();\n s += t.charAt(t.length() - 1);\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.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String t = sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"sc.close()",
"sc.close",
"sc",
"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(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.next();\n String t = sc.next();\n sc.close();\n s += t.charAt(t.length() - 1);\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.next();\n String t = sc.next();\n sc.close();\n s += t.charAt(t.length() - 1);\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.next();
String t = sc.next();
sc.close();
s += t.charAt(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,
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
],
[
51,
5
],
[
51,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
24,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
29,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
29,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
6,
48
],
[
48,
49
],
[
0,
50
],
[
50,
51
],
[
50,
52
]
] |
[
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String S = sc.next();\n String T = sc.next();\n \n String regaxT = String.format(\"%s.\", S);\n\n if(T.matches(regaxT)){\n System.out.println(\"Yes\");\n }\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 String regaxT = String.format(\"%s.\", S);\n\n if(T.matches(regaxT)){\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\n String S = sc.next();\n String T = sc.next();\n \n String regaxT = String.format(\"%s.\", S);\n\n if(T.matches(regaxT)){\n System.out.println(\"Yes\");\n }\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 regaxT = String.format(\"%s.\", S);\n\n if(T.matches(regaxT)){\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",
"String regaxT = String.format(\"%s.\", S);",
"regaxT",
"String.format(\"%s.\", S)",
"String.format",
"String",
"\"%s.\"",
"S",
"if(T.matches(regaxT)){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }",
"T.matches(regaxT)",
"T.matches",
"T",
"regaxT",
"{\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 regaxT = String.format(\"%s.\", S);\n\n if(T.matches(regaxT)){\n System.out.println(\"Yes\");\n }\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 regaxT = String.format(\"%s.\", S);\n\n if(T.matches(regaxT)){\n System.out.println(\"Yes\");\n }\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();
String regaxT = String.format("%s.", S);
if(T.matches(regaxT)){
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,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
30,
14,
2,
4,
18,
13,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
71,
5
],
[
71,
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
],
[
23,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
22,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
46,
47
],
[
41,
48
],
[
40,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
40,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
22,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
6,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\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\n\t\tif(S.substring(0,S.length()).equals(T.substring(0,S.length()))) {\n\t\t\tif(T.substring(T.length()) != \"\") {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}\n\t\t\telse\n\t\t\t\tSystem.out.print(\"No\");\n\t\t}\n\t\telse\n\t\t\tSystem.out.print(\"No\");\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\n\t\tif(S.substring(0,S.length()).equals(T.substring(0,S.length()))) {\n\t\t\tif(T.substring(T.length()) != \"\") {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}\n\t\t\telse\n\t\t\t\tSystem.out.print(\"No\");\n\t\t}\n\t\telse\n\t\t\tSystem.out.print(\"No\");\n\n }\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\n\t\tif(S.substring(0,S.length()).equals(T.substring(0,S.length()))) {\n\t\t\tif(T.substring(T.length()) != \"\") {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}\n\t\t\telse\n\t\t\t\tSystem.out.print(\"No\");\n\t\t}\n\t\telse\n\t\t\tSystem.out.print(\"No\");\n\n }",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\n\t\tif(S.substring(0,S.length()).equals(T.substring(0,S.length()))) {\n\t\t\tif(T.substring(T.length()) != \"\") {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}\n\t\t\telse\n\t\t\t\tSystem.out.print(\"No\");\n\t\t}\n\t\telse\n\t\t\tSystem.out.print(\"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.substring(0,S.length()).equals(T.substring(0,S.length()))) {\n\t\t\tif(T.substring(T.length()) != \"\") {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}\n\t\t\telse\n\t\t\t\tSystem.out.print(\"No\");\n\t\t}\n\t\telse\n\t\t\tSystem.out.print(\"No\");",
"S.substring(0,S.length()).equals(T.substring(0,S.length()))",
"S.substring(0,S.length()).equals",
"S.substring(0,S.length())",
"S.substring",
"S",
"0",
"S.length()",
"S.length",
"S",
"T.substring(0,S.length())",
"T.substring",
"T",
"0",
"S.length()",
"S.length",
"S",
"{\n\t\t\tif(T.substring(T.length()) != \"\") {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}\n\t\t\telse\n\t\t\t\tSystem.out.print(\"No\");\n\t\t}",
"if(T.substring(T.length()) != \"\") {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}\n\t\t\telse\n\t\t\t\tSystem.out.print(\"No\");",
"T.substring(T.length()) != \"\"",
"T.substring(T.length())",
"T.substring",
"T",
"T.length()",
"T.length",
"T",
"\"\"",
"{\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}",
"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\"",
"System.out.print(\"No\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\n\t\tif(S.substring(0,S.length()).equals(T.substring(0,S.length()))) {\n\t\t\tif(T.substring(T.length()) != \"\") {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}\n\t\t\telse\n\t\t\t\tSystem.out.print(\"No\");\n\t\t}\n\t\telse\n\t\t\tSystem.out.print(\"No\");\n\n }\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\n\t\tif(S.substring(0,S.length()).equals(T.substring(0,S.length()))) {\n\t\t\tif(T.substring(T.length()) != \"\") {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}\n\t\t\telse\n\t\t\t\tSystem.out.print(\"No\");\n\t\t}\n\t\telse\n\t\t\tSystem.out.print(\"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();
if(S.substring(0,S.length()).equals(T.substring(0,S.length()))) {
if(T.substring(T.length()) != "") {
System.out.print("Yes");
}
else
System.out.print("No");
}
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,
4,
18,
18,
13,
13,
4,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
18,
13,
13,
18,
13,
13,
29,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
13,
29,
17,
29,
17,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
88,
5
],
[
88,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
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
],
[
27,
30
],
[
6,
31
],
[
31,
32
],
[
88,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
35,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
56,
66
],
[
66,
67
],
[
67,
68
],
[
56,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
35,
81
],
[
81,
82
],
[
33,
83
],
[
83,
84
],
[
33,
85
],
[
85,
86
],
[
0,
87
],
[
87,
88
],
[
87,
89
]
] |
[
"import java.util.Scanner;\n\n/**\n * Description ๏ผ\n *\n * @author poyun\n * @version V1.0.0\n * @since 1.0\n * date 2020/5/10\n */\npublic class Main {\n\n public static void main(String[]args){\n Scanner input = new Scanner(System.in);\n String s = input.nextLine();\n String t = input.nextLine();\n System.out.println(compare(s,t));\n }\n\n\n public static String compare(String S , String T){\n char[] chars1 = S.toCharArray();\n char[] chars2 = T.toCharArray();\n if(chars1.length>=chars2.length) return \"No\";\n for (int i = 0; i < chars1.length; i++) {\n if(chars1[i]!=chars2[i]) return \"No\";\n }\n return \"Yes\";\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[]args){\n Scanner input = new Scanner(System.in);\n String s = input.nextLine();\n String t = input.nextLine();\n System.out.println(compare(s,t));\n }\n\n\n public static String compare(String S , String T){\n char[] chars1 = S.toCharArray();\n char[] chars2 = T.toCharArray();\n if(chars1.length>=chars2.length) return \"No\";\n for (int i = 0; i < chars1.length; i++) {\n if(chars1[i]!=chars2[i]) return \"No\";\n }\n return \"Yes\";\n }\n}",
"Main",
"public static void main(String[]args){\n Scanner input = new Scanner(System.in);\n String s = input.nextLine();\n String t = input.nextLine();\n System.out.println(compare(s,t));\n }",
"main",
"{\n Scanner input = new Scanner(System.in);\n String s = input.nextLine();\n String t = input.nextLine();\n System.out.println(compare(s,t));\n }",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"String s = input.nextLine();",
"s",
"input.nextLine()",
"input.nextLine",
"input",
"String t = input.nextLine();",
"t",
"input.nextLine()",
"input.nextLine",
"input",
"System.out.println(compare(s,t))",
"System.out.println",
"System.out",
"System",
"System.out",
"compare(s,t)",
"compare",
"s",
"t",
"String[]args",
"args",
"public static String compare(String S , String T){\n char[] chars1 = S.toCharArray();\n char[] chars2 = T.toCharArray();\n if(chars1.length>=chars2.length) return \"No\";\n for (int i = 0; i < chars1.length; i++) {\n if(chars1[i]!=chars2[i]) return \"No\";\n }\n return \"Yes\";\n }",
"compare",
"{\n char[] chars1 = S.toCharArray();\n char[] chars2 = T.toCharArray();\n if(chars1.length>=chars2.length) return \"No\";\n for (int i = 0; i < chars1.length; i++) {\n if(chars1[i]!=chars2[i]) return \"No\";\n }\n return \"Yes\";\n }",
"char[] chars1 = S.toCharArray();",
"chars1",
"S.toCharArray()",
"S.toCharArray",
"S",
"char[] chars2 = T.toCharArray();",
"chars2",
"T.toCharArray()",
"T.toCharArray",
"T",
"if(chars1.length>=chars2.length) return \"No\";",
"chars1.length>=chars2.length",
"chars1.length",
"chars1",
"chars1.length",
"chars2.length",
"chars2",
"chars2.length",
"return \"No\";",
"\"No\"",
"for (int i = 0; i < chars1.length; i++) {\n if(chars1[i]!=chars2[i]) return \"No\";\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < chars1.length",
"i",
"chars1.length",
"chars1",
"chars1.length",
"i++",
"i++",
"i",
"{\n if(chars1[i]!=chars2[i]) return \"No\";\n }",
"{\n if(chars1[i]!=chars2[i]) return \"No\";\n }",
"if(chars1[i]!=chars2[i]) return \"No\";",
"chars1[i]!=chars2[i]",
"chars1[i]",
"chars1",
"i",
"chars2[i]",
"chars2",
"i",
"return \"No\";",
"\"No\"",
"return \"Yes\";",
"\"Yes\"",
"String S",
"S",
"String T",
"T",
"public class Main {\n\n public static void main(String[]args){\n Scanner input = new Scanner(System.in);\n String s = input.nextLine();\n String t = input.nextLine();\n System.out.println(compare(s,t));\n }\n\n\n public static String compare(String S , String T){\n char[] chars1 = S.toCharArray();\n char[] chars2 = T.toCharArray();\n if(chars1.length>=chars2.length) return \"No\";\n for (int i = 0; i < chars1.length; i++) {\n if(chars1[i]!=chars2[i]) return \"No\";\n }\n return \"Yes\";\n }\n}",
"public class Main {\n\n public static void main(String[]args){\n Scanner input = new Scanner(System.in);\n String s = input.nextLine();\n String t = input.nextLine();\n System.out.println(compare(s,t));\n }\n\n\n public static String compare(String S , String T){\n char[] chars1 = S.toCharArray();\n char[] chars2 = T.toCharArray();\n if(chars1.length>=chars2.length) return \"No\";\n for (int i = 0; i < chars1.length; i++) {\n if(chars1[i]!=chars2[i]) return \"No\";\n }\n return \"Yes\";\n }\n}",
"Main"
] |
import java.util.Scanner;
/**
* Description ๏ผ
*
* @author poyun
* @version V1.0.0
* @since 1.0
* date 2020/5/10
*/
public class Main {
public static void main(String[]args){
Scanner input = new Scanner(System.in);
String s = input.nextLine();
String t = input.nextLine();
System.out.println(compare(s,t));
}
public static String compare(String S , String T){
char[] chars1 = S.toCharArray();
char[] chars2 = T.toCharArray();
if(chars1.length>=chars2.length) return "No";
for (int i = 0; i < chars1.length; i++) {
if(chars1[i]!=chars2[i]) return "No";
}
return "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,
2,
4,
18,
13,
13,
2,
4,
18,
13,
2,
4,
18,
13,
17,
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
],
[
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
],
[
30,
31
],
[
29,
32
],
[
28,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
37,
41
],
[
27,
42
],
[
27,
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 Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.next();\n System.out.println(t.startsWith(s)&&t.length() == s.length()+1?\"Yes\":\"No\");\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.next();\n System.out.println(t.startsWith(s)&&t.length() == s.length()+1?\"Yes\":\"No\");\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 System.out.println(t.startsWith(s)&&t.length() == s.length()+1?\"Yes\":\"No\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.next();\n System.out.println(t.startsWith(s)&&t.length() == s.length()+1?\"Yes\":\"No\");\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(t.startsWith(s)&&t.length() == s.length()+1?\"Yes\":\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"t.startsWith(s)&&t.length() == s.length()+1?\"Yes\":\"No\"",
"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",
"\"Yes\"",
"\"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.next();\n String t = sc.next();\n System.out.println(t.startsWith(s)&&t.length() == s.length()+1?\"Yes\":\"No\");\n }\n}",
"public 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 System.out.println(t.startsWith(s)&&t.length() == s.length()+1?\"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 s = sc.next();
String t = sc.next();
System.out.println(t.startsWith(s)&&t.length() == s.length()+1?"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,
4,
18,
13,
17,
4,
18,
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
] |
[
[
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
],
[
24,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
22,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
22,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
6,
57
],
[
57,
58
]
] |
[
"import java.util.*;\n\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String a = sc.nextLine();\n String b = sc.nextLine();\n if (a.equals(b.substring(0,a.length())) && a.length() +1 == b.length()){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String a = sc.nextLine();\n String b = sc.nextLine();\n if (a.equals(b.substring(0,a.length())) && a.length() +1 == b.length()){\n System.out.println(\"Yes\");\n }\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 a = sc.nextLine();\n String b = sc.nextLine();\n if (a.equals(b.substring(0,a.length())) && a.length() +1 == b.length()){\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 a = sc.nextLine();\n String b = sc.nextLine();\n if (a.equals(b.substring(0,a.length())) && a.length() +1 == b.length()){\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 a = sc.nextLine();",
"a",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String b = sc.nextLine();",
"b",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if (a.equals(b.substring(0,a.length())) && a.length() +1 == b.length()){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }",
"a.equals(b.substring(0,a.length())) && a.length() +1 == b.length()",
"a.equals(b.substring(0,a.length()))",
"a.equals",
"a",
"b.substring(0,a.length())",
"b.substring",
"b",
"0",
"a.length()",
"a.length",
"a",
"a.length() +1 == b.length()",
"a.length() +1",
"a.length()",
"a.length",
"a",
"1",
"b.length()",
"b.length",
"b",
"{\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 a = sc.nextLine();
String b = sc.nextLine();
if (a.equals(b.substring(0,a.length())) && a.length() +1 == b.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,
4,
18,
13,
17,
4,
18,
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,
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
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
25,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
23,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
35,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
39,
43
],
[
33,
44
],
[
22,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
22,
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 public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n String t = scanner.nextLine();\n\n if (s.length() + 1 == t.length() && t.substring(0, t.length() - 1).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\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\n if (s.length() + 1 == t.length() && t.substring(0, t.length() - 1).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 scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n String t = scanner.nextLine();\n\n if (s.length() + 1 == t.length() && t.substring(0, t.length() - 1).equals(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\n if (s.length() + 1 == t.length() && t.substring(0, t.length() - 1).equals(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 (s.length() + 1 == t.length() && t.substring(0, t.length() - 1).equals(s)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"s.length() + 1 == t.length() && t.substring(0, t.length() - 1).equals(s)",
"s.length() + 1 == t.length()",
"s.length() + 1",
"s.length()",
"s.length",
"s",
"1",
"t.length()",
"t.length",
"t",
"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(\"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\n if (s.length() + 1 == t.length() && t.substring(0, t.length() - 1).equals(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\n if (s.length() + 1 == t.length() && t.substring(0, t.length() - 1).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 scanner = new Scanner(System.in);
String s = scanner.nextLine();
String t = scanner.nextLine();
if (s.length() + 1 == t.length() && 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,
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 public static void main(String[] args) {\n final Scanner scanner = new Scanner(System.in);\n\n String a = scanner.next();\n String b = scanner.next();\n\n if((a.length() + 1 == b.length()) && b.startsWith(a)) {\n System.out.println(\"Yes\");\n }\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 final Scanner scanner = new Scanner(System.in);\n\n String a = scanner.next();\n String b = scanner.next();\n\n if((a.length() + 1 == b.length()) && b.startsWith(a)) {\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n final Scanner scanner = new Scanner(System.in);\n\n String a = scanner.next();\n String b = scanner.next();\n\n if((a.length() + 1 == b.length()) && b.startsWith(a)) {\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n final Scanner scanner = new Scanner(System.in);\n\n String a = scanner.next();\n String b = scanner.next();\n\n if((a.length() + 1 == b.length()) && b.startsWith(a)) {\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }\n }",
"final 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",
"if((a.length() + 1 == b.length()) && b.startsWith(a)) {\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }",
"(a.length() + 1 == b.length()) && b.startsWith(a)",
"(a.length() + 1 == b.length())",
"a.length() + 1",
"a.length()",
"a.length",
"a",
"1",
"b.length()",
"b.length",
"b",
"b.startsWith(a)",
"b.startsWith",
"b",
"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 public static void main(String[] args) {\n final Scanner scanner = new Scanner(System.in);\n\n String a = scanner.next();\n String b = scanner.next();\n\n if((a.length() + 1 == b.length()) && b.startsWith(a)) {\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n final Scanner scanner = new Scanner(System.in);\n\n String a = scanner.next();\n String b = scanner.next();\n\n if((a.length() + 1 == b.length()) && b.startsWith(a)) {\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
final Scanner scanner = new Scanner(System.in);
String a = scanner.next();
String b = scanner.next();
if((a.length() + 1 == b.length()) && b.startsWith(a)) {
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,
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;\npublic class Main{\n\t\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 sSize = s.length();\n\n\t\tString tMinus1 = t.substring(0, sSize);\n\n\t\tif (tMinus1.equals(s)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\t\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 sSize = s.length();\n\n\t\tString tMinus1 = t.substring(0, sSize);\n\n\t\tif (tMinus1.equals(s)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString t = sc.nextLine();\n\t\tint sSize = s.length();\n\n\t\tString tMinus1 = t.substring(0, sSize);\n\n\t\tif (tMinus1.equals(s)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString t = sc.nextLine();\n\t\tint sSize = s.length();\n\n\t\tString tMinus1 = t.substring(0, sSize);\n\n\t\tif (tMinus1.equals(s)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\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",
"int sSize = s.length();",
"sSize",
"s.length()",
"s.length",
"s",
"String tMinus1 = t.substring(0, sSize);",
"tMinus1",
"t.substring(0, sSize)",
"t.substring",
"t",
"0",
"sSize",
"if (tMinus1.equals(s)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"tMinus1.equals(s)",
"tMinus1.equals",
"tMinus1",
"s",
"{\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\t\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 sSize = s.length();\n\n\t\tString tMinus1 = t.substring(0, sSize);\n\n\t\tif (tMinus1.equals(s)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\n\t}\n}",
"public class Main{\n\t\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 sSize = s.length();\n\n\t\tString tMinus1 = t.substring(0, sSize);\n\n\t\tif (tMinus1.equals(s)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\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.nextLine();
String t = sc.nextLine();
int sSize = s.length();
String tMinus1 = t.substring(0, sSize);
if (tMinus1.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,
41,
13,
4,
18,
13,
17,
2,
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
],
[
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
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
36,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
36,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
6,
53
],
[
53,
54
],
[
0,
55
],
[
55,
56
],
[
55,
57
]
] |
[
"import java.util.*;\npublic class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String c = sc.next();\n int l = c.length();\n String g = c.substring(0,l-1);\n if(s.equals(g))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\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.next();\n String c = sc.next();\n int l = c.length();\n String g = c.substring(0,l-1);\n if(s.equals(g))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n }",
"Main",
"public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String c = sc.next();\n int l = c.length();\n String g = c.substring(0,l-1);\n if(s.equals(g))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String c = sc.next();\n int l = c.length();\n String g = c.substring(0,l-1);\n if(s.equals(g))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String c = sc.next();",
"c",
"sc.next()",
"sc.next",
"sc",
"int l = c.length();",
"l",
"c.length()",
"c.length",
"c",
"String g = c.substring(0,l-1);",
"g",
"c.substring(0,l-1)",
"c.substring",
"c",
"0",
"l-1",
"l",
"1",
"if(s.equals(g))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");",
"s.equals(g)",
"s.equals",
"s",
"g",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String args[]",
"args",
"public class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String c = sc.next();\n int l = c.length();\n String g = c.substring(0,l-1);\n if(s.equals(g))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n }",
"public class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String c = sc.next();\n int l = c.length();\n String g = c.substring(0,l-1);\n if(s.equals(g))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\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 c = sc.next();
int l = c.length();
String g = c.substring(0,l-1);
if(s.equals(g))
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,
30,
0,
13,
17,
3,
14,
40,
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
],
[
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
],
[
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
],
[
51,
53
],
[
50,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
55,
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.*;\npublic class Main {\n public static void main(String[] args ){\n Scanner o = new Scanner(System.in);\n String s1 = o.nextLine();\n String s2 = o.nextLine();\n boolean ok = true;\n for ( int i = 0 ; i < s1.length() ; i++ )\n {\n if ( s1.charAt(i) != s2.charAt(i) )\n {\n ok = false;\n break;\n }\n }\n\n if(!ok){\n System.out.println(\"No\");\n }\n else{\n System.out.println(\"Yes\");\n }\n \n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args ){\n Scanner o = new Scanner(System.in);\n String s1 = o.nextLine();\n String s2 = o.nextLine();\n boolean ok = true;\n for ( int i = 0 ; i < s1.length() ; i++ )\n {\n if ( s1.charAt(i) != s2.charAt(i) )\n {\n ok = false;\n break;\n }\n }\n\n if(!ok){\n System.out.println(\"No\");\n }\n else{\n System.out.println(\"Yes\");\n }\n \n }\n}",
"Main",
"public static void main(String[] args ){\n Scanner o = new Scanner(System.in);\n String s1 = o.nextLine();\n String s2 = o.nextLine();\n boolean ok = true;\n for ( int i = 0 ; i < s1.length() ; i++ )\n {\n if ( s1.charAt(i) != s2.charAt(i) )\n {\n ok = false;\n break;\n }\n }\n\n if(!ok){\n System.out.println(\"No\");\n }\n else{\n System.out.println(\"Yes\");\n }\n \n }",
"main",
"{\n Scanner o = new Scanner(System.in);\n String s1 = o.nextLine();\n String s2 = o.nextLine();\n boolean ok = true;\n for ( int i = 0 ; i < s1.length() ; i++ )\n {\n if ( s1.charAt(i) != s2.charAt(i) )\n {\n ok = false;\n break;\n }\n }\n\n if(!ok){\n System.out.println(\"No\");\n }\n else{\n System.out.println(\"Yes\");\n }\n \n }",
"Scanner o = new Scanner(System.in);",
"o",
"new Scanner(System.in)",
"String s1 = o.nextLine();",
"s1",
"o.nextLine()",
"o.nextLine",
"o",
"String s2 = o.nextLine();",
"s2",
"o.nextLine()",
"o.nextLine",
"o",
"boolean ok = true;",
"ok",
"true",
"for ( int i = 0 ; i < s1.length() ; i++ )\n {\n if ( s1.charAt(i) != s2.charAt(i) )\n {\n ok = false;\n break;\n }\n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < s1.length()",
"i",
"s1.length()",
"s1.length",
"s1",
"i++",
"i++",
"i",
"{\n if ( s1.charAt(i) != s2.charAt(i) )\n {\n ok = false;\n break;\n }\n }",
"{\n if ( s1.charAt(i) != s2.charAt(i) )\n {\n ok = false;\n break;\n }\n }",
"if ( s1.charAt(i) != s2.charAt(i) )\n {\n ok = false;\n break;\n }",
"s1.charAt(i) != s2.charAt(i)",
"s1.charAt(i)",
"s1.charAt",
"s1",
"i",
"s2.charAt(i)",
"s2.charAt",
"s2",
"i",
"{\n ok = false;\n break;\n }",
"ok = false",
"ok",
"false",
"break;",
"if(!ok){\n System.out.println(\"No\");\n }\n else{\n System.out.println(\"Yes\");\n }",
"!ok",
"ok",
"{\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",
"public class Main {\n public static void main(String[] args ){\n Scanner o = new Scanner(System.in);\n String s1 = o.nextLine();\n String s2 = o.nextLine();\n boolean ok = true;\n for ( int i = 0 ; i < s1.length() ; i++ )\n {\n if ( s1.charAt(i) != s2.charAt(i) )\n {\n ok = false;\n break;\n }\n }\n\n if(!ok){\n System.out.println(\"No\");\n }\n else{\n System.out.println(\"Yes\");\n }\n \n }\n}",
"public class Main {\n public static void main(String[] args ){\n Scanner o = new Scanner(System.in);\n String s1 = o.nextLine();\n String s2 = o.nextLine();\n boolean ok = true;\n for ( int i = 0 ; i < s1.length() ; i++ )\n {\n if ( s1.charAt(i) != s2.charAt(i) )\n {\n ok = false;\n break;\n }\n }\n\n if(!ok){\n System.out.println(\"No\");\n }\n else{\n System.out.println(\"Yes\");\n }\n \n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args ){
Scanner o = new Scanner(System.in);
String s1 = o.nextLine();
String s2 = o.nextLine();
boolean ok = true;
for ( int i = 0 ; i < s1.length() ; i++ )
{
if ( s1.charAt(i) != s2.charAt(i) )
{
ok = false;
break;
}
}
if(!ok){
System.out.println("No");
}
else{
System.out.println("Yes");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
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,
40,
13,
14,
2,
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
],
[
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
],
[
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
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
52,
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\tpublic static void main(String[] args) { \n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\n int check =0;\n for (int i=0; i<S.length(); i++) {\n if (S.charAt(i) == T.charAt(i)) check++;\n }\n if (check == 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\tpublic static void main(String[] args) { \n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\n int check =0;\n for (int i=0; i<S.length(); i++) {\n if (S.charAt(i) == T.charAt(i)) check++;\n }\n if (check == 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 check =0;\n for (int i=0; i<S.length(); i++) {\n if (S.charAt(i) == T.charAt(i)) check++;\n }\n if (check == 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 check =0;\n for (int i=0; i<S.length(); i++) {\n if (S.charAt(i) == T.charAt(i)) check++;\n }\n if (check == 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 check =0;",
"check",
"0",
"for (int i=0; i<S.length(); i++) {\n if (S.charAt(i) == T.charAt(i)) check++;\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)) check++;\n }",
"{\n if (S.charAt(i) == T.charAt(i)) check++;\n }",
"if (S.charAt(i) == T.charAt(i)) check++;",
"S.charAt(i) == T.charAt(i)",
"S.charAt(i)",
"S.charAt",
"S",
"i",
"T.charAt(i)",
"T.charAt",
"T",
"i",
"check++",
"check",
"if (check == S.length()) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"check == S.length()",
"check",
"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\tpublic static void main(String[] args) { \n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\n int check =0;\n for (int i=0; i<S.length(); i++) {\n if (S.charAt(i) == T.charAt(i)) check++;\n }\n if (check == S.length()) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"public 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 int check =0;\n for (int i=0; i<S.length(); i++) {\n if (S.charAt(i) == T.charAt(i)) check++;\n }\n if (check == 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 check =0;
for (int i=0; i<S.length(); i++) {
if (S.charAt(i) == T.charAt(i)) check++;
}
if (check == 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,
14,
2,
4,
18,
13,
2,
4,
18,
13,
17,
30,
14,
4,
18,
2,
13,
4,
18,
13,
2,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
74,
11
],
[
74,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
33,
37
],
[
28,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
47,
51
],
[
40,
52
],
[
39,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
39,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
28,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
12,
71
],
[
71,
72
],
[
0,
73
],
[
73,
74
],
[
73,
75
]
] |
[
"/* package codechef; // don't place package name! */\n\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\n/* Name of the class has to be \"Main\" only if the class is public. */\npublic class Main\n{\n public static void main (String[] args) throws java.lang.Exception\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n String S = s.next();\n String T = s.next();\n if(T.length()==S.length()+1)\n {\n if((S+T.charAt(T.length()-1)).equals(T))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n else\n System.out.println(\"No\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main\n{\n public static void main (String[] args) throws java.lang.Exception\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n String S = s.next();\n String T = s.next();\n if(T.length()==S.length()+1)\n {\n if((S+T.charAt(T.length()-1)).equals(T))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n else\n System.out.println(\"No\");\n }\n}",
"Main",
"public static void main (String[] args) throws java.lang.Exception\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n String S = s.next();\n String T = s.next();\n if(T.length()==S.length()+1)\n {\n if((S+T.charAt(T.length()-1)).equals(T))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n else\n System.out.println(\"No\");\n }",
"main",
"{\n // your code goes here\n Scanner s = new Scanner(System.in);\n String S = s.next();\n String T = s.next();\n if(T.length()==S.length()+1)\n {\n if((S+T.charAt(T.length()-1)).equals(T))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n else\n System.out.println(\"No\");\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",
"if(T.length()==S.length()+1)\n {\n if((S+T.charAt(T.length()-1)).equals(T))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n else\n System.out.println(\"No\");",
"T.length()==S.length()+1",
"T.length()",
"T.length",
"T",
"S.length()+1",
"S.length()",
"S.length",
"S",
"1",
"{\n if((S+T.charAt(T.length()-1)).equals(T))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }",
"if((S+T.charAt(T.length()-1)).equals(T))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");",
"(S+T.charAt(T.length()-1)).equals(T)",
"(S+T.charAt(T.length()-1)).equals",
"(S+T.charAt(T.length()-1))",
"S",
"T.charAt(T.length()-1)",
"T.charAt",
"T",
"T.length()-1",
"T.length()",
"T.length",
"T",
"1",
"T",
"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\"",
"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) throws java.lang.Exception\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n String S = s.next();\n String T = s.next();\n if(T.length()==S.length()+1)\n {\n if((S+T.charAt(T.length()-1)).equals(T))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n else\n System.out.println(\"No\");\n }\n}",
"public class Main\n{\n public static void main (String[] args) throws java.lang.Exception\n {\n // your code goes here\n Scanner s = new Scanner(System.in);\n String S = s.next();\n String T = s.next();\n if(T.length()==S.length()+1)\n {\n if((S+T.charAt(T.length()-1)).equals(T))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n else\n System.out.println(\"No\");\n }\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
{
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
Scanner s = new Scanner(System.in);
String S = s.next();
String T = s.next();
if(T.length()==S.length()+1)
{
if((S+T.charAt(T.length()-1)).equals(T))
System.out.println("Yes");
else
System.out.println("No");
}
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,
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,
4,
18,
13,
4,
18,
13,
13,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
18,
18,
13,
13,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
4,
13,
20,
23,
13,
12,
13,
30,
38,
5,
13,
30,
37,
20,
30,
4,
18,
13,
13,
0,
13,
17,
29,
36,
23,
13,
12,
13,
30,
38,
5,
13,
30,
37,
20,
30,
4,
18,
13,
13,
17,
4,
18,
13,
0,
13,
17,
29,
36,
23,
13,
12,
13,
30,
14,
40,
13,
30,
4,
13,
17,
29,
4,
13,
13,
23,
13,
12,
13,
30,
29,
4,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
13,
4,
18,
13,
0,
13,
17,
14,
13,
30,
38,
5,
13,
30,
37,
20,
30,
4,
18,
13,
29,
36,
12,
13,
30,
38,
5,
13,
30,
37,
20,
30,
4,
18,
13,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
8,
13,
13,
13,
23,
13,
12,
12,
13,
6,
13,
41,
13,
17,
41,
13,
17,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
14,
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,
38,
5,
13,
30,
37,
20,
30,
4,
18,
18,
36,
13,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
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
],
[
378,
44
],
[
378,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
47,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
47,
58
],
[
58,
59
],
[
58,
60
],
[
47,
61
],
[
61,
62
],
[
61,
63
],
[
47,
64
],
[
64,
65
],
[
64,
66
],
[
47,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
67,
71
],
[
67,
72
],
[
47,
73
],
[
73,
74
],
[
74,
75
],
[
45,
76
],
[
76,
77
],
[
378,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
82,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
82,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
80,
102
],
[
102,
103
],
[
80,
104
],
[
104,
105
],
[
80,
106
],
[
106,
107
],
[
378,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
108,
112
],
[
112,
113
],
[
112,
114
],
[
108,
115
],
[
115,
116
],
[
115,
117
],
[
108,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
108,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
125,
133
],
[
133,
134
],
[
108,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
135,
141
],
[
141,
142
],
[
108,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
146,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
153,
156
],
[
152,
157
],
[
157,
158
],
[
157,
159
],
[
145,
160
],
[
160,
161
],
[
143,
162
],
[
162,
163
],
[
108,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
167,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
174,
177
],
[
174,
178
],
[
174,
179
],
[
179,
180
],
[
180,
181
],
[
173,
182
],
[
182,
183
],
[
182,
184
],
[
166,
185
],
[
185,
186
],
[
164,
187
],
[
187,
188
],
[
108,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
192,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
191,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
189,
203
],
[
203,
204
],
[
108,
205
],
[
205,
206
],
[
205,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
212,
213
],
[
211,
214
],
[
205,
215
],
[
215,
216
],
[
108,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
223,
224
],
[
219,
225
],
[
225,
226
],
[
225,
227
],
[
219,
228
],
[
228,
229
],
[
228,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
234,
235
],
[
235,
236
],
[
231,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
219,
241
],
[
241,
242
],
[
108,
243
],
[
243,
244
],
[
243,
245
],
[
245,
246
],
[
246,
247
],
[
247,
248
],
[
247,
249
],
[
249,
250
],
[
250,
251
],
[
246,
252
],
[
252,
253
],
[
253,
254
],
[
254,
255
],
[
108,
256
],
[
256,
257
],
[
256,
258
],
[
258,
259
],
[
256,
260
],
[
260,
261
],
[
256,
262
],
[
262,
263
],
[
256,
264
],
[
264,
265
],
[
256,
266
],
[
266,
267
],
[
256,
268
],
[
268,
269
],
[
256,
270
],
[
270,
271
],
[
256,
272
],
[
272,
273
],
[
256,
274
],
[
274,
275
],
[
256,
276
],
[
276,
277
],
[
256,
278
],
[
278,
279
],
[
256,
280
],
[
280,
281
],
[
256,
282
],
[
282,
283
],
[
256,
284
],
[
284,
285
],
[
256,
286
],
[
286,
287
],
[
256,
288
],
[
288,
289
],
[
288,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
292,
294
],
[
291,
295
],
[
290,
296
],
[
296,
297
],
[
297,
298
],
[
297,
299
],
[
296,
300
],
[
288,
301
],
[
301,
302
],
[
288,
303
],
[
303,
304
],
[
256,
305
],
[
305,
306
],
[
305,
307
],
[
307,
308
],
[
308,
309
],
[
309,
310
],
[
309,
311
],
[
309,
312
],
[
305,
313
],
[
313,
314
],
[
256,
315
],
[
256,
316
],
[
108,
317
],
[
378,
318
],
[
318,
319
],
[
318,
320
],
[
320,
321
],
[
320,
322
],
[
318,
323
],
[
323,
324
],
[
323,
325
],
[
318,
326
],
[
326,
327
],
[
326,
328
],
[
328,
329
],
[
329,
330
],
[
329,
331
],
[
326,
332
],
[
332,
333
],
[
318,
334
],
[
334,
335
],
[
334,
336
],
[
336,
337
],
[
337,
338
],
[
338,
339
],
[
339,
340
],
[
339,
341
],
[
338,
342
],
[
342,
343
],
[
343,
344
],
[
344,
345
],
[
337,
346
],
[
346,
347
],
[
347,
348
],
[
348,
349
],
[
348,
350
],
[
350,
351
],
[
351,
352
],
[
347,
353
],
[
353,
354
],
[
354,
355
],
[
354,
356
],
[
336,
357
],
[
357,
358
],
[
358,
359
],
[
359,
360
],
[
318,
361
],
[
361,
362
],
[
361,
363
],
[
363,
364
],
[
364,
365
],
[
365,
366
],
[
365,
367
],
[
367,
368
],
[
368,
369
],
[
364,
370
],
[
370,
371
],
[
371,
372
],
[
372,
373
],
[
373,
374
],
[
373,
375
],
[
318,
376
],
[
0,
377
],
[
377,
378
],
[
377,
379
]
] |
[
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.BufferedOutputStream;\nimport java.io.UncheckedIOException;\nimport java.nio.charset.Charset;\nimport java.util.StringTokenizer;\nimport java.io.Writer;\nimport java.io.OutputStreamWriter;\nimport java.io.BufferedReader;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author mikit\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n LightScanner in = new LightScanner(inputStream);\n LightWriter out = new LightWriter(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, LightScanner in, LightWriter out) {\n String s1 = in.string(), s2 = in.string();\n out.ans(s2.startsWith(s1)).ln();\n }\n\n }\n\n static class LightWriter implements AutoCloseable {\n private final Writer out;\n private boolean autoflush = false;\n private boolean breaked = true;\n private LightWriter.BoolLabel boolLabel = LightWriter.BoolLabel.YES_NO_FIRST_UP;\n\n public LightWriter(Writer out) {\n this.out = out;\n }\n\n public LightWriter(OutputStream out) {\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }\n\n public LightWriter print(char c) {\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter print(String s) {\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter ans(String s) {\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }\n\n public LightWriter ans(boolean b) {\n return ans(boolLabel.transfer(b));\n }\n\n public LightWriter ln() {\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }\n\n public void close() {\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n public enum BoolLabel {\n YES_NO_FIRST_UP(\"Yes\", \"No\"),\n YES_NO_ALL_UP(\"YES\", \"NO\"),\n YES_NO_ALL_DOWN(\"yes\", \"no\"),\n Y_N_ALL_UP(\"Y\", \"N\"),\n POSSIBLE_IMPOSSIBLE_FIRST_UP(\"Possible\", \"Impossible\"),\n POSSIBLE_IMPOSSIBLE_ALL_UP(\"POSSIBLE\", \"IMPOSSIBLE\"),\n POSSIBLE_IMPOSSIBLE_ALL_DOWN(\"possible\", \"impossible\"),\n FIRST_SECOND_FIRST_UP(\"First\", \"Second\"),\n FIRST_SECOND_ALL_UP(\"FIRST\", \"SECOND\"),\n FIRST_SECOND_ALL_DOWN(\"first\", \"second\"),\n ALICE_BOB_FIRST_UP(\"Alice\", \"Bob\"),\n ALICE_BOB_ALL_UP(\"ALICE\", \"BOB\"),\n ALICE_BOB_ALL_DOWN(\"alice\", \"bob\"),\n ;\n private final String positive;\n private final String negative;\n\n BoolLabel(String positive, String negative) {\n this.positive = positive;\n this.negative = negative;\n }\n\n private String transfer(boolean f) {\n return f ? positive : negative;\n }\n\n }\n\n }\n\n static class LightScanner implements AutoCloseable {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public LightScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n public String string() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public void close() {\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\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.OutputStream;",
"OutputStream",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.BufferedOutputStream;",
"BufferedOutputStream",
"java.io",
"import java.io.UncheckedIOException;",
"UncheckedIOException",
"java.io",
"import java.nio.charset.Charset;",
"Charset",
"java.nio.charset",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.io.Writer;",
"Writer",
"java.io",
"import java.io.OutputStreamWriter;",
"OutputStreamWriter",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"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 LightScanner in = new LightScanner(inputStream);\n LightWriter out = new LightWriter(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, LightScanner in, LightWriter out) {\n String s1 = in.string(), s2 = in.string();\n out.ans(s2.startsWith(s1)).ln();\n }\n\n }\n\n static class LightWriter implements AutoCloseable {\n private final Writer out;\n private boolean autoflush = false;\n private boolean breaked = true;\n private LightWriter.BoolLabel boolLabel = LightWriter.BoolLabel.YES_NO_FIRST_UP;\n\n public LightWriter(Writer out) {\n this.out = out;\n }\n\n public LightWriter(OutputStream out) {\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }\n\n public LightWriter print(char c) {\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter print(String s) {\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter ans(String s) {\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }\n\n public LightWriter ans(boolean b) {\n return ans(boolLabel.transfer(b));\n }\n\n public LightWriter ln() {\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }\n\n public void close() {\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n public enum BoolLabel {\n YES_NO_FIRST_UP(\"Yes\", \"No\"),\n YES_NO_ALL_UP(\"YES\", \"NO\"),\n YES_NO_ALL_DOWN(\"yes\", \"no\"),\n Y_N_ALL_UP(\"Y\", \"N\"),\n POSSIBLE_IMPOSSIBLE_FIRST_UP(\"Possible\", \"Impossible\"),\n POSSIBLE_IMPOSSIBLE_ALL_UP(\"POSSIBLE\", \"IMPOSSIBLE\"),\n POSSIBLE_IMPOSSIBLE_ALL_DOWN(\"possible\", \"impossible\"),\n FIRST_SECOND_FIRST_UP(\"First\", \"Second\"),\n FIRST_SECOND_ALL_UP(\"FIRST\", \"SECOND\"),\n FIRST_SECOND_ALL_DOWN(\"first\", \"second\"),\n ALICE_BOB_FIRST_UP(\"Alice\", \"Bob\"),\n ALICE_BOB_ALL_UP(\"ALICE\", \"BOB\"),\n ALICE_BOB_ALL_DOWN(\"alice\", \"bob\"),\n ;\n private final String positive;\n private final String negative;\n\n BoolLabel(String positive, String negative) {\n this.positive = positive;\n this.negative = negative;\n }\n\n private String transfer(boolean f) {\n return f ? positive : negative;\n }\n\n }\n\n }\n\n static class LightScanner implements AutoCloseable {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public LightScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n public String string() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public void close() {\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n LightScanner in = new LightScanner(inputStream);\n LightWriter out = new LightWriter(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 LightScanner in = new LightScanner(inputStream);\n LightWriter out = new LightWriter(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",
"LightScanner in = new LightScanner(inputStream);",
"in",
"new LightScanner(inputStream)",
"LightWriter out = new LightWriter(outputStream);",
"out",
"new LightWriter(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, LightScanner in, LightWriter out) {\n String s1 = in.string(), s2 = in.string();\n out.ans(s2.startsWith(s1)).ln();\n }\n\n }",
"ARegistration",
"public void solve(int testNumber, LightScanner in, LightWriter out) {\n String s1 = in.string(), s2 = in.string();\n out.ans(s2.startsWith(s1)).ln();\n }",
"solve",
"{\n String s1 = in.string(), s2 = in.string();\n out.ans(s2.startsWith(s1)).ln();\n }",
"String s1 = in.string()",
"s1",
"in.string()",
"in.string",
"in",
"s2 = in.string();",
"s2",
"in.string()",
"in.string",
"in",
"out.ans(s2.startsWith(s1)).ln()",
"out.ans(s2.startsWith(s1)).ln",
"out.ans(s2.startsWith(s1))",
"out.ans",
"out",
"s2.startsWith(s1)",
"s2.startsWith",
"s2",
"s1",
"int testNumber",
"testNumber",
"LightScanner in",
"in",
"LightWriter out",
"out",
"static class LightWriter implements AutoCloseable {\n private final Writer out;\n private boolean autoflush = false;\n private boolean breaked = true;\n private LightWriter.BoolLabel boolLabel = LightWriter.BoolLabel.YES_NO_FIRST_UP;\n\n public LightWriter(Writer out) {\n this.out = out;\n }\n\n public LightWriter(OutputStream out) {\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }\n\n public LightWriter print(char c) {\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter print(String s) {\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter ans(String s) {\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }\n\n public LightWriter ans(boolean b) {\n return ans(boolLabel.transfer(b));\n }\n\n public LightWriter ln() {\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }\n\n public void close() {\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n public enum BoolLabel {\n YES_NO_FIRST_UP(\"Yes\", \"No\"),\n YES_NO_ALL_UP(\"YES\", \"NO\"),\n YES_NO_ALL_DOWN(\"yes\", \"no\"),\n Y_N_ALL_UP(\"Y\", \"N\"),\n POSSIBLE_IMPOSSIBLE_FIRST_UP(\"Possible\", \"Impossible\"),\n POSSIBLE_IMPOSSIBLE_ALL_UP(\"POSSIBLE\", \"IMPOSSIBLE\"),\n POSSIBLE_IMPOSSIBLE_ALL_DOWN(\"possible\", \"impossible\"),\n FIRST_SECOND_FIRST_UP(\"First\", \"Second\"),\n FIRST_SECOND_ALL_UP(\"FIRST\", \"SECOND\"),\n FIRST_SECOND_ALL_DOWN(\"first\", \"second\"),\n ALICE_BOB_FIRST_UP(\"Alice\", \"Bob\"),\n ALICE_BOB_ALL_UP(\"ALICE\", \"BOB\"),\n ALICE_BOB_ALL_DOWN(\"alice\", \"bob\"),\n ;\n private final String positive;\n private final String negative;\n\n BoolLabel(String positive, String negative) {\n this.positive = positive;\n this.negative = negative;\n }\n\n private String transfer(boolean f) {\n return f ? positive : negative;\n }\n\n }\n\n }",
"LightWriter",
"private final Writer out;",
"out",
"private boolean autoflush = false;",
"autoflush",
"false",
"private boolean breaked = true;",
"breaked",
"true",
"private LightWriter.BoolLabel boolLabel = LightWriter.BoolLabel.YES_NO_FIRST_UP;",
"boolLabel",
"LightWriter.BoolLabel.YES_NO_FIRST_UP",
"LightWriter.BoolLabel",
"LightWriter",
"LightWriter.BoolLabel",
"LightWriter.BoolLabel.YES_NO_FIRST_UP",
"public LightWriter(Writer out) {\n this.out = out;\n }",
"LightWriter",
"{\n this.out = out;\n }",
"this.out = out",
"this.out",
"this",
"this.out",
"out",
"Writer out",
"out",
"public LightWriter(OutputStream out) {\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }",
"LightWriter",
"{\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }",
"this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()))",
"this",
"new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset())",
"OutputStream out",
"out",
"public LightWriter print(char c) {\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }",
"print",
"{\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }",
"try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"IOException ex",
"{\n throw new UncheckedIOException(ex);\n }",
"throw new UncheckedIOException(ex);",
"new UncheckedIOException(ex)",
"{\n out.write(c);\n breaked = false;\n }",
"out.write(c)",
"out.write",
"out",
"c",
"breaked = false",
"breaked",
"false",
"return this;",
"this",
"char c",
"c",
"public LightWriter print(String s) {\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }",
"print",
"{\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }",
"try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"IOException ex",
"{\n throw new UncheckedIOException(ex);\n }",
"throw new UncheckedIOException(ex);",
"new UncheckedIOException(ex)",
"{\n out.write(s, 0, s.length());\n breaked = false;\n }",
"out.write(s, 0, s.length())",
"out.write",
"out",
"s",
"0",
"s.length()",
"s.length",
"s",
"breaked = false",
"breaked",
"false",
"return this;",
"this",
"String s",
"s",
"public LightWriter ans(String s) {\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }",
"ans",
"{\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }",
"if (!breaked) {\n print(' ');\n }",
"!breaked",
"breaked",
"{\n print(' ');\n }",
"print(' ')",
"print",
"' '",
"return print(s);",
"print(s)",
"print",
"s",
"String s",
"s",
"public LightWriter ans(boolean b) {\n return ans(boolLabel.transfer(b));\n }",
"ans",
"{\n return ans(boolLabel.transfer(b));\n }",
"return ans(boolLabel.transfer(b));",
"ans(boolLabel.transfer(b))",
"ans",
"boolLabel.transfer(b)",
"boolLabel.transfer",
"boolLabel",
"b",
"boolean b",
"b",
"public LightWriter ln() {\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }",
"ln",
"{\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }",
"print(System.lineSeparator())",
"print",
"System.lineSeparator()",
"System.lineSeparator",
"System",
"breaked = true",
"breaked",
"true",
"if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"autoflush",
"{\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"IOException ex",
"{\n throw new UncheckedIOException(ex);\n }",
"throw new UncheckedIOException(ex);",
"new UncheckedIOException(ex)",
"{\n out.flush();\n }",
"out.flush()",
"out.flush",
"out",
"return this;",
"this",
"public void close() {\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"close",
"{\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"IOException ex",
"{\n throw new UncheckedIOException(ex);\n }",
"throw new UncheckedIOException(ex);",
"new UncheckedIOException(ex)",
"{\n out.close();\n }",
"out.close()",
"out.close",
"out",
"public enum BoolLabel {\n YES_NO_FIRST_UP(\"Yes\", \"No\"),\n YES_NO_ALL_UP(\"YES\", \"NO\"),\n YES_NO_ALL_DOWN(\"yes\", \"no\"),\n Y_N_ALL_UP(\"Y\", \"N\"),\n POSSIBLE_IMPOSSIBLE_FIRST_UP(\"Possible\", \"Impossible\"),\n POSSIBLE_IMPOSSIBLE_ALL_UP(\"POSSIBLE\", \"IMPOSSIBLE\"),\n POSSIBLE_IMPOSSIBLE_ALL_DOWN(\"possible\", \"impossible\"),\n FIRST_SECOND_FIRST_UP(\"First\", \"Second\"),\n FIRST_SECOND_ALL_UP(\"FIRST\", \"SECOND\"),\n FIRST_SECOND_ALL_DOWN(\"first\", \"second\"),\n ALICE_BOB_FIRST_UP(\"Alice\", \"Bob\"),\n ALICE_BOB_ALL_UP(\"ALICE\", \"BOB\"),\n ALICE_BOB_ALL_DOWN(\"alice\", \"bob\"),\n ;\n private final String positive;\n private final String negative;\n\n BoolLabel(String positive, String negative) {\n this.positive = positive;\n this.negative = negative;\n }\n\n private String transfer(boolean f) {\n return f ? positive : negative;\n }\n\n }",
"BoolLabel",
"YES_NO_FIRST_UP(\"Yes\", \"No\")",
"YES_NO_FIRST_UP",
"YES_NO_ALL_UP(\"YES\", \"NO\")",
"YES_NO_ALL_UP",
"YES_NO_ALL_DOWN(\"yes\", \"no\")",
"YES_NO_ALL_DOWN",
"Y_N_ALL_UP(\"Y\", \"N\")",
"Y_N_ALL_UP",
"POSSIBLE_IMPOSSIBLE_FIRST_UP(\"Possible\", \"Impossible\")",
"POSSIBLE_IMPOSSIBLE_FIRST_UP",
"POSSIBLE_IMPOSSIBLE_ALL_UP(\"POSSIBLE\", \"IMPOSSIBLE\")",
"POSSIBLE_IMPOSSIBLE_ALL_UP",
"POSSIBLE_IMPOSSIBLE_ALL_DOWN(\"possible\", \"impossible\")",
"POSSIBLE_IMPOSSIBLE_ALL_DOWN",
"FIRST_SECOND_FIRST_UP(\"First\", \"Second\")",
"FIRST_SECOND_FIRST_UP",
"FIRST_SECOND_ALL_UP(\"FIRST\", \"SECOND\")",
"FIRST_SECOND_ALL_UP",
"FIRST_SECOND_ALL_DOWN(\"first\", \"second\")",
"FIRST_SECOND_ALL_DOWN",
"ALICE_BOB_FIRST_UP(\"Alice\", \"Bob\")",
"ALICE_BOB_FIRST_UP",
"ALICE_BOB_ALL_UP(\"ALICE\", \"BOB\")",
"ALICE_BOB_ALL_UP",
"ALICE_BOB_ALL_DOWN(\"alice\", \"bob\")",
"ALICE_BOB_ALL_DOWN",
"private final String positive;",
"positive",
"private final String negative;",
"negative",
"BoolLabel(String positive, String negative) {\n this.positive = positive;\n this.negative = negative;\n }",
"BoolLabel",
"{\n this.positive = positive;\n this.negative = negative;\n }",
"this.positive = positive",
"this.positive",
"this",
"this.positive",
"positive",
"this.negative = negative",
"this.negative",
"this",
"this.negative",
"negative",
"String positive",
"positive",
"String negative",
"negative",
"private String transfer(boolean f) {\n return f ? positive : negative;\n }",
"transfer",
"{\n return f ? positive : negative;\n }",
"return f ? positive : negative;",
"f ? positive : negative",
"f",
"positive",
"negative",
"boolean f",
"f",
"import java.io.OutputStream;\nimport ja",
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.",
"AutoCloseable",
"static class LightScanner implements AutoCloseable {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public LightScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n public String string() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public void close() {\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }",
"LightScanner",
"private BufferedReader reader = null;",
"reader",
"null",
"private StringTokenizer tokenizer = null;",
"tokenizer",
"null",
"public LightScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }",
"LightScanner",
"{\n reader = new BufferedReader(new InputStreamReader(in));\n }",
"reader = new BufferedReader(new InputStreamReader(in))",
"reader",
"new BufferedReader(new InputStreamReader(in))",
"InputStream in",
"in",
"public String string() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"string",
"{\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }",
"try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }",
"catch (IOException e) {\n throw new UncheckedIOException(e);\n }",
"IOException e",
"{\n throw new UncheckedIOException(e);\n }",
"throw new UncheckedIOException(e);",
"new UncheckedIOException(e)",
"{\n tokenizer = new StringTokenizer(reader.readLine());\n }",
"tokenizer = new StringTokenizer(reader.readLine())",
"tokenizer",
"new StringTokenizer(reader.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"public void close() {\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"close",
"{\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }",
"IOException ex",
"{\n throw new UncheckedIOException(ex);\n }",
"throw new UncheckedIOException(ex);",
"new UncheckedIOException(ex)",
"{\n this.reader.close();\n }",
"this.reader.close()",
"this.reader.close",
"this.reader",
"this",
"this.reader",
"AutoCloseable",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n LightScanner in = new LightScanner(inputStream);\n LightWriter out = new LightWriter(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, LightScanner in, LightWriter out) {\n String s1 = in.string(), s2 = in.string();\n out.ans(s2.startsWith(s1)).ln();\n }\n\n }\n\n static class LightWriter implements AutoCloseable {\n private final Writer out;\n private boolean autoflush = false;\n private boolean breaked = true;\n private LightWriter.BoolLabel boolLabel = LightWriter.BoolLabel.YES_NO_FIRST_UP;\n\n public LightWriter(Writer out) {\n this.out = out;\n }\n\n public LightWriter(OutputStream out) {\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }\n\n public LightWriter print(char c) {\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter print(String s) {\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter ans(String s) {\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }\n\n public LightWriter ans(boolean b) {\n return ans(boolLabel.transfer(b));\n }\n\n public LightWriter ln() {\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }\n\n public void close() {\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n public enum BoolLabel {\n YES_NO_FIRST_UP(\"Yes\", \"No\"),\n YES_NO_ALL_UP(\"YES\", \"NO\"),\n YES_NO_ALL_DOWN(\"yes\", \"no\"),\n Y_N_ALL_UP(\"Y\", \"N\"),\n POSSIBLE_IMPOSSIBLE_FIRST_UP(\"Possible\", \"Impossible\"),\n POSSIBLE_IMPOSSIBLE_ALL_UP(\"POSSIBLE\", \"IMPOSSIBLE\"),\n POSSIBLE_IMPOSSIBLE_ALL_DOWN(\"possible\", \"impossible\"),\n FIRST_SECOND_FIRST_UP(\"First\", \"Second\"),\n FIRST_SECOND_ALL_UP(\"FIRST\", \"SECOND\"),\n FIRST_SECOND_ALL_DOWN(\"first\", \"second\"),\n ALICE_BOB_FIRST_UP(\"Alice\", \"Bob\"),\n ALICE_BOB_ALL_UP(\"ALICE\", \"BOB\"),\n ALICE_BOB_ALL_DOWN(\"alice\", \"bob\"),\n ;\n private final String positive;\n private final String negative;\n\n BoolLabel(String positive, String negative) {\n this.positive = positive;\n this.negative = negative;\n }\n\n private String transfer(boolean f) {\n return f ? positive : negative;\n }\n\n }\n\n }\n\n static class LightScanner implements AutoCloseable {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public LightScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n public String string() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public void close() {\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\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 LightScanner in = new LightScanner(inputStream);\n LightWriter out = new LightWriter(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, LightScanner in, LightWriter out) {\n String s1 = in.string(), s2 = in.string();\n out.ans(s2.startsWith(s1)).ln();\n }\n\n }\n\n static class LightWriter implements AutoCloseable {\n private final Writer out;\n private boolean autoflush = false;\n private boolean breaked = true;\n private LightWriter.BoolLabel boolLabel = LightWriter.BoolLabel.YES_NO_FIRST_UP;\n\n public LightWriter(Writer out) {\n this.out = out;\n }\n\n public LightWriter(OutputStream out) {\n this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));\n }\n\n public LightWriter print(char c) {\n try {\n out.write(c);\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter print(String s) {\n try {\n out.write(s, 0, s.length());\n breaked = false;\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n return this;\n }\n\n public LightWriter ans(String s) {\n if (!breaked) {\n print(' ');\n }\n return print(s);\n }\n\n public LightWriter ans(boolean b) {\n return ans(boolLabel.transfer(b));\n }\n\n public LightWriter ln() {\n print(System.lineSeparator());\n breaked = true;\n if (autoflush) {\n try {\n out.flush();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n return this;\n }\n\n public void close() {\n try {\n out.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n public enum BoolLabel {\n YES_NO_FIRST_UP(\"Yes\", \"No\"),\n YES_NO_ALL_UP(\"YES\", \"NO\"),\n YES_NO_ALL_DOWN(\"yes\", \"no\"),\n Y_N_ALL_UP(\"Y\", \"N\"),\n POSSIBLE_IMPOSSIBLE_FIRST_UP(\"Possible\", \"Impossible\"),\n POSSIBLE_IMPOSSIBLE_ALL_UP(\"POSSIBLE\", \"IMPOSSIBLE\"),\n POSSIBLE_IMPOSSIBLE_ALL_DOWN(\"possible\", \"impossible\"),\n FIRST_SECOND_FIRST_UP(\"First\", \"Second\"),\n FIRST_SECOND_ALL_UP(\"FIRST\", \"SECOND\"),\n FIRST_SECOND_ALL_DOWN(\"first\", \"second\"),\n ALICE_BOB_FIRST_UP(\"Alice\", \"Bob\"),\n ALICE_BOB_ALL_UP(\"ALICE\", \"BOB\"),\n ALICE_BOB_ALL_DOWN(\"alice\", \"bob\"),\n ;\n private final String positive;\n private final String negative;\n\n BoolLabel(String positive, String negative) {\n this.positive = positive;\n this.negative = negative;\n }\n\n private String transfer(boolean f) {\n return f ? positive : negative;\n }\n\n }\n\n }\n\n static class LightScanner implements AutoCloseable {\n private BufferedReader reader = null;\n private StringTokenizer tokenizer = null;\n\n public LightScanner(InputStream in) {\n reader = new BufferedReader(new InputStreamReader(in));\n }\n\n public String string() {\n if (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public void close() {\n try {\n this.reader.close();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }\n\n }\n}",
"Main"
] |
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.BufferedOutputStream;
import java.io.UncheckedIOException;
import java.nio.charset.Charset;
import java.util.StringTokenizer;
import java.io.Writer;
import java.io.OutputStreamWriter;
import java.io.BufferedReader;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author mikit
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
LightScanner in = new LightScanner(inputStream);
LightWriter out = new LightWriter(outputStream);
ARegistration solver = new ARegistration();
solver.solve(1, in, out);
out.close();
}
static class ARegistration {
public void solve(int testNumber, LightScanner in, LightWriter out) {
String s1 = in.string(), s2 = in.string();
out.ans(s2.startsWith(s1)).ln();
}
}
static class LightWriter implements AutoCloseable {
private final Writer out;
private boolean autoflush = false;
private boolean breaked = true;
private LightWriter.BoolLabel boolLabel = LightWriter.BoolLabel.YES_NO_FIRST_UP;
public LightWriter(Writer out) {
this.out = out;
}
public LightWriter(OutputStream out) {
this(new OutputStreamWriter(new BufferedOutputStream(out), Charset.defaultCharset()));
}
public LightWriter print(char c) {
try {
out.write(c);
breaked = false;
} catch (IOException ex) {
throw new UncheckedIOException(ex);
}
return this;
}
public LightWriter print(String s) {
try {
out.write(s, 0, s.length());
breaked = false;
} catch (IOException ex) {
throw new UncheckedIOException(ex);
}
return this;
}
public LightWriter ans(String s) {
if (!breaked) {
print(' ');
}
return print(s);
}
public LightWriter ans(boolean b) {
return ans(boolLabel.transfer(b));
}
public LightWriter ln() {
print(System.lineSeparator());
breaked = true;
if (autoflush) {
try {
out.flush();
} catch (IOException ex) {
throw new UncheckedIOException(ex);
}
}
return this;
}
public void close() {
try {
out.close();
} catch (IOException ex) {
throw new UncheckedIOException(ex);
}
}
public enum BoolLabel {
YES_NO_FIRST_UP("Yes", "No"),
YES_NO_ALL_UP("YES", "NO"),
YES_NO_ALL_DOWN("yes", "no"),
Y_N_ALL_UP("Y", "N"),
POSSIBLE_IMPOSSIBLE_FIRST_UP("Possible", "Impossible"),
POSSIBLE_IMPOSSIBLE_ALL_UP("POSSIBLE", "IMPOSSIBLE"),
POSSIBLE_IMPOSSIBLE_ALL_DOWN("possible", "impossible"),
FIRST_SECOND_FIRST_UP("First", "Second"),
FIRST_SECOND_ALL_UP("FIRST", "SECOND"),
FIRST_SECOND_ALL_DOWN("first", "second"),
ALICE_BOB_FIRST_UP("Alice", "Bob"),
ALICE_BOB_ALL_UP("ALICE", "BOB"),
ALICE_BOB_ALL_DOWN("alice", "bob"),
;
private final String positive;
private final String negative;
BoolLabel(String positive, String negative) {
this.positive = positive;
this.negative = negative;
}
private String transfer(boolean f) {
return f ? positive : negative;
}
}
}
static class LightScanner implements AutoCloseable {
private BufferedReader reader = null;
private StringTokenizer tokenizer = null;
public LightScanner(InputStream in) {
reader = new BufferedReader(new InputStreamReader(in));
}
public String string() {
if (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new UncheckedIOException(e);
}
}
return tokenizer.nextToken();
}
public void close() {
try {
this.reader.close();
} catch (IOException ex) {
throw new UncheckedIOException(ex);
}
}
}
}
|
[
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,
2,
13,
17,
14,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
29,
33
],
[
33,
34
],
[
33,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
36,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
36,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
6,
58
],
[
58,
59
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
] |
[
"\nimport java.util.*;\n\n\n public class Main{\n\n\tpublic static void main(String[] args) {\n\t\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tString s=sc.nextLine();\n\t\tString x=sc.nextLine();\n\t\tint n=x.length();\n\t\n\t\tString r=x.substring(0,n-1);\n\t\t\n\t\t\n\t\tif(r.equals(s))\n\t\t{System.out.println(\"Yes\");}\n\t\telse\n\t\t{System.out.println(\"No\");}\n\t\t\n\t\tsc.close();\n\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tString s=sc.nextLine();\n\t\tString x=sc.nextLine();\n\t\tint n=x.length();\n\t\n\t\tString r=x.substring(0,n-1);\n\t\t\n\t\t\n\t\tif(r.equals(s))\n\t\t{System.out.println(\"Yes\");}\n\t\telse\n\t\t{System.out.println(\"No\");}\n\t\t\n\t\tsc.close();\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tString s=sc.nextLine();\n\t\tString x=sc.nextLine();\n\t\tint n=x.length();\n\t\n\t\tString r=x.substring(0,n-1);\n\t\t\n\t\t\n\t\tif(r.equals(s))\n\t\t{System.out.println(\"Yes\");}\n\t\telse\n\t\t{System.out.println(\"No\");}\n\t\t\n\t\tsc.close();\n\n\t}",
"main",
"{\n\t\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tString s=sc.nextLine();\n\t\tString x=sc.nextLine();\n\t\tint n=x.length();\n\t\n\t\tString r=x.substring(0,n-1);\n\t\t\n\t\t\n\t\tif(r.equals(s))\n\t\t{System.out.println(\"Yes\");}\n\t\telse\n\t\t{System.out.println(\"No\");}\n\t\t\n\t\tsc.close();\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 x=sc.nextLine();",
"x",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int n=x.length();",
"n",
"x.length()",
"x.length",
"x",
"String r=x.substring(0,n-1);",
"r",
"x.substring(0,n-1)",
"x.substring",
"x",
"0",
"n-1",
"n",
"1",
"if(r.equals(s))\n\t\t{System.out.println(\"Yes\");}\n\t\telse\n\t\t{System.out.println(\"No\");}",
"r.equals(s)",
"r.equals",
"r",
"s",
"{System.out.println(\"Yes\");}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{System.out.println(\"No\");}",
"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\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tString s=sc.nextLine();\n\t\tString x=sc.nextLine();\n\t\tint n=x.length();\n\t\n\t\tString r=x.substring(0,n-1);\n\t\t\n\t\t\n\t\tif(r.equals(s))\n\t\t{System.out.println(\"Yes\");}\n\t\telse\n\t\t{System.out.println(\"No\");}\n\t\t\n\t\tsc.close();\n\n\t}\n\n}",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\n\t\t\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tString s=sc.nextLine();\n\t\tString x=sc.nextLine();\n\t\tint n=x.length();\n\t\n\t\tString r=x.substring(0,n-1);\n\t\t\n\t\t\n\t\tif(r.equals(s))\n\t\t{System.out.println(\"Yes\");}\n\t\telse\n\t\t{System.out.println(\"No\");}\n\t\t\n\t\tsc.close();\n\n\t}\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 x=sc.nextLine();
int n=x.length();
String r=x.substring(0,n-1);
if(r.equals(s))
{System.out.println("Yes");}
else
{System.out.println("No");}
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
4,
18,
13,
17,
41,
13,
18,
13,
17,
0,
13,
4,
18,
4,
18,
4,
18,
13,
17,
41,
13,
18,
13,
17,
4,
18,
13,
4,
13,
13,
13,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
14,
2,
4,
18,
13,
2,
4,
18,
13,
17,
30,
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,
30,
29,
17,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
115,
8
],
[
115,
9
],
[
9,
10
],
[
9,
11
],
[
115,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
20,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
30,
32
],
[
14,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
35,
42
],
[
14,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
14,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
51,
53
],
[
51,
54
],
[
14,
55
],
[
55,
56
],
[
56,
57
],
[
14,
58
],
[
58,
59
],
[
59,
60
],
[
12,
61
],
[
61,
62
],
[
115,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
71,
75
],
[
66,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
77,
87
],
[
87,
88
],
[
88,
89
],
[
77,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
93,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
92,
102
],
[
102,
103
],
[
103,
104
],
[
76,
105
],
[
105,
106
],
[
66,
107
],
[
107,
108
],
[
108,
109
],
[
63,
110
],
[
110,
111
],
[
63,
112
],
[
112,
113
],
[
0,
114
],
[
114,
115
],
[
114,
116
]
] |
[
"import java.util.*;\nimport java.io.*;\n\npublic class Main{\n\tstatic PrintWriter out=new PrintWriter(System.out);\n\tpublic static void main (String[] args) throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString[] input=br.readLine().trim().split(\" \");\n\t\t\n\t\t\n\t\tString a=input[0];\n\t\tinput=br.readLine().trim().split(\" \");\n\t\tString b=input[0];\n\t\t\n\t\tout.println(isPossible(a,b));\n\t\t\n\t\tout.flush();\n\t\tout.close();\n\t}\n\tpublic static String isPossible(String a,String b)\n\t{\n\t if(b.length()==a.length()+1){\n\t for(int i=0;i<a.length();i++){\n\t if(a.charAt(i)!=b.charAt(i)){\n\t return \"No\";\n\t }\n\t }\n\t return \"Yes\";\n\t }\n\t else{\n\t return \"No\";\n\t }\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n\tstatic PrintWriter out=new PrintWriter(System.out);\n\tpublic static void main (String[] args) throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString[] input=br.readLine().trim().split(\" \");\n\t\t\n\t\t\n\t\tString a=input[0];\n\t\tinput=br.readLine().trim().split(\" \");\n\t\tString b=input[0];\n\t\t\n\t\tout.println(isPossible(a,b));\n\t\t\n\t\tout.flush();\n\t\tout.close();\n\t}\n\tpublic static String isPossible(String a,String b)\n\t{\n\t if(b.length()==a.length()+1){\n\t for(int i=0;i<a.length();i++){\n\t if(a.charAt(i)!=b.charAt(i)){\n\t return \"No\";\n\t }\n\t }\n\t return \"Yes\";\n\t }\n\t else{\n\t return \"No\";\n\t }\n\t}\n}",
"Main",
"static PrintWriter out=new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"public static void main (String[] args) throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString[] input=br.readLine().trim().split(\" \");\n\t\t\n\t\t\n\t\tString a=input[0];\n\t\tinput=br.readLine().trim().split(\" \");\n\t\tString b=input[0];\n\t\t\n\t\tout.println(isPossible(a,b));\n\t\t\n\t\tout.flush();\n\t\tout.close();\n\t}",
"main",
"{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString[] input=br.readLine().trim().split(\" \");\n\t\t\n\t\t\n\t\tString a=input[0];\n\t\tinput=br.readLine().trim().split(\" \");\n\t\tString b=input[0];\n\t\t\n\t\tout.println(isPossible(a,b));\n\t\t\n\t\tout.flush();\n\t\tout.close();\n\t}",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String[] input=br.readLine().trim().split(\" \");",
"input",
"br.readLine().trim().split(\" \")",
"br.readLine().trim().split",
"br.readLine().trim()",
"br.readLine().trim",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"String a=input[0];",
"a",
"input[0]",
"input",
"0",
"input=br.readLine().trim().split(\" \")",
"input",
"br.readLine().trim().split(\" \")",
"br.readLine().trim().split",
"br.readLine().trim()",
"br.readLine().trim",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"String b=input[0];",
"b",
"input[0]",
"input",
"0",
"out.println(isPossible(a,b))",
"out.println",
"out",
"isPossible(a,b)",
"isPossible",
"a",
"b",
"out.flush()",
"out.flush",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"public static String isPossible(String a,String b)\n\t{\n\t if(b.length()==a.length()+1){\n\t for(int i=0;i<a.length();i++){\n\t if(a.charAt(i)!=b.charAt(i)){\n\t return \"No\";\n\t }\n\t }\n\t return \"Yes\";\n\t }\n\t else{\n\t return \"No\";\n\t }\n\t}",
"isPossible",
"{\n\t if(b.length()==a.length()+1){\n\t for(int i=0;i<a.length();i++){\n\t if(a.charAt(i)!=b.charAt(i)){\n\t return \"No\";\n\t }\n\t }\n\t return \"Yes\";\n\t }\n\t else{\n\t return \"No\";\n\t }\n\t}",
"if(b.length()==a.length()+1){\n\t for(int i=0;i<a.length();i++){\n\t if(a.charAt(i)!=b.charAt(i)){\n\t return \"No\";\n\t }\n\t }\n\t return \"Yes\";\n\t }\n\t else{\n\t return \"No\";\n\t }",
"b.length()==a.length()+1",
"b.length()",
"b.length",
"b",
"a.length()+1",
"a.length()",
"a.length",
"a",
"1",
"{\n\t for(int i=0;i<a.length();i++){\n\t if(a.charAt(i)!=b.charAt(i)){\n\t return \"No\";\n\t }\n\t }\n\t return \"Yes\";\n\t }",
"for(int i=0;i<a.length();i++){\n\t if(a.charAt(i)!=b.charAt(i)){\n\t return \"No\";\n\t }\n\t }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a.length()",
"i",
"a.length()",
"a.length",
"a",
"i++",
"i++",
"i",
"{\n\t if(a.charAt(i)!=b.charAt(i)){\n\t return \"No\";\n\t }\n\t }",
"{\n\t if(a.charAt(i)!=b.charAt(i)){\n\t return \"No\";\n\t }\n\t }",
"if(a.charAt(i)!=b.charAt(i)){\n\t return \"No\";\n\t }",
"a.charAt(i)!=b.charAt(i)",
"a.charAt(i)",
"a.charAt",
"a",
"i",
"b.charAt(i)",
"b.charAt",
"b",
"i",
"{\n\t return \"No\";\n\t }",
"return \"No\";",
"\"No\"",
"return \"Yes\";",
"\"Yes\"",
"{\n\t return \"No\";\n\t }",
"return \"No\";",
"\"No\"",
"String a",
"a",
"String b",
"b",
"public class Main{\n\tstatic PrintWriter out=new PrintWriter(System.out);\n\tpublic static void main (String[] args) throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString[] input=br.readLine().trim().split(\" \");\n\t\t\n\t\t\n\t\tString a=input[0];\n\t\tinput=br.readLine().trim().split(\" \");\n\t\tString b=input[0];\n\t\t\n\t\tout.println(isPossible(a,b));\n\t\t\n\t\tout.flush();\n\t\tout.close();\n\t}\n\tpublic static String isPossible(String a,String b)\n\t{\n\t if(b.length()==a.length()+1){\n\t for(int i=0;i<a.length();i++){\n\t if(a.charAt(i)!=b.charAt(i)){\n\t return \"No\";\n\t }\n\t }\n\t return \"Yes\";\n\t }\n\t else{\n\t return \"No\";\n\t }\n\t}\n}",
"public class Main{\n\tstatic PrintWriter out=new PrintWriter(System.out);\n\tpublic static void main (String[] args) throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString[] input=br.readLine().trim().split(\" \");\n\t\t\n\t\t\n\t\tString a=input[0];\n\t\tinput=br.readLine().trim().split(\" \");\n\t\tString b=input[0];\n\t\t\n\t\tout.println(isPossible(a,b));\n\t\t\n\t\tout.flush();\n\t\tout.close();\n\t}\n\tpublic static String isPossible(String a,String b)\n\t{\n\t if(b.length()==a.length()+1){\n\t for(int i=0;i<a.length();i++){\n\t if(a.charAt(i)!=b.charAt(i)){\n\t return \"No\";\n\t }\n\t }\n\t return \"Yes\";\n\t }\n\t else{\n\t return \"No\";\n\t }\n\t}\n}",
"Main"
] |
import java.util.*;
import java.io.*;
public class Main{
static PrintWriter out=new PrintWriter(System.out);
public static void main (String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String[] input=br.readLine().trim().split(" ");
String a=input[0];
input=br.readLine().trim().split(" ");
String b=input[0];
out.println(isPossible(a,b));
out.flush();
out.close();
}
public static String isPossible(String a,String b)
{
if(b.length()==a.length()+1){
for(int i=0;i<a.length();i++){
if(a.charAt(i)!=b.charAt(i)){
return "No";
}
}
return "Yes";
}
else{
return "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,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
59,
5
],
[
59,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
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
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
6,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
] |
[
"import java.util.Scanner;\n \npublic class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str1 = scan.next();\n String str2 = scan.next();\n int cnt1 = str1.length();\n String str3 = str2.substring(0, cnt1);\n if (str1.equals(str3)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n scan.close();\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 str1 = scan.next();\n String str2 = scan.next();\n int cnt1 = str1.length();\n String str3 = str2.substring(0, cnt1);\n if (str1.equals(str3)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n scan.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str1 = scan.next();\n String str2 = scan.next();\n int cnt1 = str1.length();\n String str3 = str2.substring(0, cnt1);\n if (str1.equals(str3)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n scan.close();\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n String str1 = scan.next();\n String str2 = scan.next();\n int cnt1 = str1.length();\n String str3 = str2.substring(0, cnt1);\n if (str1.equals(str3)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n scan.close();\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String str1 = scan.next();",
"str1",
"scan.next()",
"scan.next",
"scan",
"String str2 = scan.next();",
"str2",
"scan.next()",
"scan.next",
"scan",
"int cnt1 = str1.length();",
"cnt1",
"str1.length()",
"str1.length",
"str1",
"String str3 = str2.substring(0, cnt1);",
"str3",
"str2.substring(0, cnt1)",
"str2.substring",
"str2",
"0",
"cnt1",
"if (str1.equals(str3)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"str1.equals(str3)",
"str1.equals",
"str1",
"str3",
"{\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\"",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str1 = scan.next();\n String str2 = scan.next();\n int cnt1 = str1.length();\n String str3 = str2.substring(0, cnt1);\n if (str1.equals(str3)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n scan.close();\n }\n}",
"public class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str1 = scan.next();\n String str2 = scan.next();\n int cnt1 = str1.length();\n String str3 = str2.substring(0, cnt1);\n if (str1.equals(str3)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n scan.close();\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String str1 = scan.next();
String str2 = scan.next();
int cnt1 = str1.length();
String str3 = str2.substring(0, cnt1);
if (str1.equals(str3)) {
System.out.println("Yes");
} else {
System.out.println("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,
17,
4,
18,
13,
41,
13,
4,
18,
13,
17,
4,
18,
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
],
[
60,
5
],
[
60,
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
],
[
41,
44
],
[
40,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
40,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
6,
57
],
[
57,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
] |
[
"import java.util.*;\n \npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\t\tString s = S.substring(0, S.length());\n\t\tString t = T.substring(0, S.length());\n\t\tif(s.equals(t))\n\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\tSystem.out.println(\"No\");\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\t\tString s = S.substring(0, S.length());\n\t\tString t = T.substring(0, S.length());\n\t\tif(s.equals(t))\n\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\tSystem.out.println(\"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\tString s = S.substring(0, S.length());\n\t\tString t = T.substring(0, S.length());\n\t\tif(s.equals(t))\n\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\tSystem.out.println(\"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\tString s = S.substring(0, S.length());\n\t\tString t = T.substring(0, S.length());\n\t\tif(s.equals(t))\n\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\tSystem.out.println(\"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",
"String s = S.substring(0, S.length());",
"s",
"S.substring(0, S.length())",
"S.substring",
"S",
"0",
"S.length()",
"S.length",
"S",
"String t = T.substring(0, S.length());",
"t",
"T.substring(0, S.length())",
"T.substring",
"T",
"0",
"S.length()",
"S.length",
"S",
"if(s.equals(t))\n\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\tSystem.out.println(\"No\");",
"s.equals(t)",
"s.equals",
"s",
"t",
"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\t\tString S = sc.next();\n\t\tString T = sc.next();\n\t\tString s = S.substring(0, S.length());\n\t\tString t = T.substring(0, S.length());\n\t\tif(s.equals(t))\n\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\tSystem.out.println(\"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\tString s = S.substring(0, S.length());\n\t\tString t = T.substring(0, S.length());\n\t\tif(s.equals(t))\n\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\tSystem.out.println(\"No\");\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();
String s = S.substring(0, S.length());
String t = T.substring(0, S.length());
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,
2,
4,
18,
13,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
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
],
[
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
],
[
26,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
23,
31
],
[
22,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
22,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
41,
46
],
[
40,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
40,
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 /**\n * @param args\n */\n public static void main(String[] args) {\n // TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n Scanner cin = new Scanner(System.in);\n String S = cin.next();\n String T = cin.next();\n if ((T.length() - S.length()) != 1){\n System.out.println(\"No\");\n }\n else{\n if (T.indexOf(S) == 0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n /**\n * @param args\n */\n public static void main(String[] args) {\n // TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n Scanner cin = new Scanner(System.in);\n String S = cin.next();\n String T = cin.next();\n if ((T.length() - S.length()) != 1){\n System.out.println(\"No\");\n }\n else{\n if (T.indexOf(S) == 0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n }\n\n}",
"Main",
"/**\n * @param args\n */\n public static void main(String[] args) {\n // TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n Scanner cin = new Scanner(System.in);\n String S = cin.next();\n String T = cin.next();\n if ((T.length() - S.length()) != 1){\n System.out.println(\"No\");\n }\n else{\n if (T.indexOf(S) == 0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n }",
"main",
"{\n // TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n Scanner cin = new Scanner(System.in);\n String S = cin.next();\n String T = cin.next();\n if ((T.length() - S.length()) != 1){\n System.out.println(\"No\");\n }\n else{\n if (T.indexOf(S) == 0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n }",
"Scanner cin = new Scanner(System.in);",
"cin",
"new Scanner(System.in)",
"String S = cin.next();",
"S",
"cin.next()",
"cin.next",
"cin",
"String T = cin.next();",
"T",
"cin.next()",
"cin.next",
"cin",
"if ((T.length() - S.length()) != 1){\n System.out.println(\"No\");\n }\n else{\n if (T.indexOf(S) == 0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }",
"(T.length() - S.length()) != 1",
"(T.length() - S.length())",
"T.length()",
"T.length",
"T",
"S.length()",
"S.length",
"S",
"1",
"{\n System.out.println(\"No\");\n }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"{\n if (T.indexOf(S) == 0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }",
"if (T.indexOf(S) == 0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }",
"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",
"public class Main {\n\n /**\n * @param args\n */\n public static void main(String[] args) {\n // TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n Scanner cin = new Scanner(System.in);\n String S = cin.next();\n String T = cin.next();\n if ((T.length() - S.length()) != 1){\n System.out.println(\"No\");\n }\n else{\n if (T.indexOf(S) == 0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n }\n\n}",
"public class Main {\n\n /**\n * @param args\n */\n public static void main(String[] args) {\n // TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n Scanner cin = new Scanner(System.in);\n String S = cin.next();\n String T = cin.next();\n if ((T.length() - S.length()) != 1){\n System.out.println(\"No\");\n }\n else{\n if (T.indexOf(S) == 0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n }\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ
Scanner cin = new Scanner(System.in);
String S = cin.next();
String T = cin.next();
if ((T.length() - S.length()) != 1){
System.out.println("No");
}
else{
if (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,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
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
],
[
59,
5
],
[
59,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
34,
38
],
[
33,
39
],
[
39,
40
],
[
40,
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
],
[
6,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
] |
[
"import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\t\tScanner scan =new Scanner(System.in);\n\t\tString S =scan.next();\n\t\tString T =scan.next();\n\t\tint result =T.indexOf(S);\n\t\tif(result==0&&S.length()+1==T.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\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\t\tScanner scan =new Scanner(System.in);\n\t\tString S =scan.next();\n\t\tString T =scan.next();\n\t\tint result =T.indexOf(S);\n\t\tif(result==0&&S.length()+1==T.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\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\t\tScanner scan =new Scanner(System.in);\n\t\tString S =scan.next();\n\t\tString T =scan.next();\n\t\tint result =T.indexOf(S);\n\t\tif(result==0&&S.length()+1==T.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\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\t\tScanner scan =new Scanner(System.in);\n\t\tString S =scan.next();\n\t\tString T =scan.next();\n\t\tint result =T.indexOf(S);\n\t\tif(result==0&&S.length()+1==T.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 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",
"int result =T.indexOf(S);",
"result",
"T.indexOf(S)",
"T.indexOf",
"T",
"S",
"if(result==0&&S.length()+1==T.length()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"result==0&&S.length()+1==T.length()",
"result==0",
"result",
"0",
"S.length()+1==T.length()",
"S.length()+1",
"S.length()",
"S.length",
"S",
"1",
"T.length()",
"T.length",
"T",
"{\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\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\t\tScanner scan =new Scanner(System.in);\n\t\tString S =scan.next();\n\t\tString T =scan.next();\n\t\tint result =T.indexOf(S);\n\t\tif(result==0&&S.length()+1==T.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\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\t\tScanner scan =new Scanner(System.in);\n\t\tString S =scan.next();\n\t\tString T =scan.next();\n\t\tint result =T.indexOf(S);\n\t\tif(result==0&&S.length()+1==T.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\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ
Scanner scan =new Scanner(System.in);
String S =scan.next();
String T =scan.next();
int result =T.indexOf(S);
if(result==0&&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,
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,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
66,
5
],
[
66,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
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
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
38,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
31,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
31,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
6,
63
],
[
63,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
]
] |
[
"import java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\t\tString st = t.substring(0,s.length());\n\t\tif (s.matches(st) && s.length() + 1 == t.length()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\t\n\t\tsc.close();\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\t\tString st = t.substring(0,s.length());\n\t\tif (s.matches(st) && s.length() + 1 == t.length()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\t\n\t\tsc.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\t\tString st = t.substring(0,s.length());\n\t\tif (s.matches(st) && s.length() + 1 == t.length()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\t\n\t\tsc.close();\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\t\tString st = t.substring(0,s.length());\n\t\tif (s.matches(st) && s.length() + 1 == t.length()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\t\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",
"String st = t.substring(0,s.length());",
"st",
"t.substring(0,s.length())",
"t.substring",
"t",
"0",
"s.length()",
"s.length",
"s",
"if (s.matches(st) && s.length() + 1 == t.length()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"s.matches(st) && s.length() + 1 == t.length()",
"s.matches(st)",
"s.matches",
"s",
"st",
"s.length() + 1 == t.length()",
"s.length() + 1",
"s.length()",
"s.length",
"s",
"1",
"t.length()",
"t.length",
"t",
"{\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 Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\t\tString st = t.substring(0,s.length());\n\t\tif (s.matches(st) && s.length() + 1 == t.length()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\t\n\t\tsc.close();\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString t = sc.next();\n\t\tString st = t.substring(0,s.length());\n\t\tif (s.matches(st) && s.length() + 1 == t.length()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\t\n\t\tsc.close();\n\t}\n\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
String s = sc.next();
String t = sc.next();
String st = t.substring(0,s.length());
if (s.matches(st) && s.length() + 1 == t.length()) {
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,
20,
41,
13,
4,
18,
4,
18,
13,
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
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
27,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
32,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
32,
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\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString a = sc.next();\n\t\tStringBuilder b = new StringBuilder(sc.next());\n\t\tString r = b.deleteCharAt(b.length()-1).toString();\n\n\t\tif (a.equals(r)) {\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\n\t\tString a = sc.next();\n\t\tStringBuilder b = new StringBuilder(sc.next());\n\t\tString r = b.deleteCharAt(b.length()-1).toString();\n\n\t\tif (a.equals(r)) {\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\n\t\tString a = sc.next();\n\t\tStringBuilder b = new StringBuilder(sc.next());\n\t\tString r = b.deleteCharAt(b.length()-1).toString();\n\n\t\tif (a.equals(r)) {\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\n\t\tString a = sc.next();\n\t\tStringBuilder b = new StringBuilder(sc.next());\n\t\tString r = b.deleteCharAt(b.length()-1).toString();\n\n\t\tif (a.equals(r)) {\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 a = sc.next();",
"a",
"sc.next()",
"sc.next",
"sc",
"StringBuilder b = new StringBuilder(sc.next());",
"b",
"new StringBuilder(sc.next())",
"String r = b.deleteCharAt(b.length()-1).toString();",
"r",
"b.deleteCharAt(b.length()-1).toString()",
"b.deleteCharAt(b.length()-1).toString",
"b.deleteCharAt(b.length()-1)",
"b.deleteCharAt",
"b",
"b.length()-1",
"b.length()",
"b.length",
"b",
"1",
"if (a.equals(r)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"a.equals(r)",
"a.equals",
"a",
"r",
"{\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\n\t\tString a = sc.next();\n\t\tStringBuilder b = new StringBuilder(sc.next());\n\t\tString r = b.deleteCharAt(b.length()-1).toString();\n\n\t\tif (a.equals(r)) {\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\n\t\tString a = sc.next();\n\t\tStringBuilder b = new StringBuilder(sc.next());\n\t\tString r = b.deleteCharAt(b.length()-1).toString();\n\n\t\tif (a.equals(r)) {\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 a = sc.next();
StringBuilder b = new StringBuilder(sc.next());
String r = b.deleteCharAt(b.length()-1).toString();
if (a.equals(r)) {
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
]
] |
[
"\nimport 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 name = sc.next();\n\t\tString name2 = sc.next();\n\t\tString name3 = name2.substring(0,name2.length()-1);\n\n\t\tif(name.equals(name3)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\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 name = sc.next();\n\t\tString name2 = sc.next();\n\t\tString name3 = name2.substring(0,name2.length()-1);\n\n\t\tif(name.equals(name3)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\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 name = sc.next();\n\t\tString name2 = sc.next();\n\t\tString name3 = name2.substring(0,name2.length()-1);\n\n\t\tif(name.equals(name3)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t}",
"main",
"{\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString name = sc.next();\n\t\tString name2 = sc.next();\n\t\tString name3 = name2.substring(0,name2.length()-1);\n\n\t\tif(name.equals(name3)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String name = sc.next();",
"name",
"sc.next()",
"sc.next",
"sc",
"String name2 = sc.next();",
"name2",
"sc.next()",
"sc.next",
"sc",
"String name3 = name2.substring(0,name2.length()-1);",
"name3",
"name2.substring(0,name2.length()-1)",
"name2.substring",
"name2",
"0",
"name2.length()-1",
"name2.length()",
"name2.length",
"name2",
"1",
"if(name.equals(name3)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t\t}",
"name.equals(name3)",
"name.equals",
"name",
"name3",
"{\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\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString name = sc.next();\n\t\tString name2 = sc.next();\n\t\tString name3 = name2.substring(0,name2.length()-1);\n\n\t\tif(name.equals(name3)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\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 name = sc.next();\n\t\tString name2 = sc.next();\n\t\tString name3 = name2.substring(0,name2.length()-1);\n\n\t\tif(name.equals(name3)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\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 name = sc.next();
String name2 = sc.next();
String name3 = name2.substring(0,name2.length()-1);
if(name.equals(name3)) {
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,
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
],
[
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
],
[
23,
26
],
[
26,
27
],
[
26,
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
],
[
6,
43
],
[
43,
44
],
[
0,
45
],
[
45,
46
],
[
45,
47
]
] |
[
"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\tif (T.matches(S+\".\")) {\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.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\tif (T.matches(S+\".\")) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\t\tif (T.matches(S+\".\")) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\t\tif (T.matches(S+\".\")) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"String T = sc.next();",
"T",
"sc.next()",
"sc.next",
"sc",
"if (T.matches(S+\".\")) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"T.matches(S+\".\")",
"T.matches",
"T",
"S+\".\"",
"S",
"\".\"",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\t\tif (T.matches(S+\".\")) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tString T = sc.next();\n\t\tif (T.matches(S+\".\")) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.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 (T.matches(S+".")) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
4,
13,
41,
13,
4,
13,
41,
13,
17,
14,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
0,
13,
20,
14,
2,
2,
13,
17,
2,
18,
13,
13,
13,
30,
0,
13,
4,
18,
4,
18,
13,
17,
0,
13,
17,
12,
13,
30,
4,
13,
29,
4,
18,
13,
18,
13,
40,
13,
12,
13,
30,
4,
13,
29,
4,
18,
13,
18,
13,
40,
13,
12,
13,
30,
4,
13,
29,
18,
13,
40,
13,
12,
13,
30,
4,
13,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
0,
13,
18,
13,
13,
29,
13,
12,
13,
30,
4,
13,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
0,
13,
18,
13,
13,
29,
13,
12,
13,
30,
4,
13,
0,
13,
18,
13,
13,
29,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
269,
8
],
[
269,
9
],
[
9,
10
],
[
9,
11
],
[
269,
12
],
[
12,
13
],
[
12,
14
],
[
269,
15
],
[
15,
16
],
[
15,
17
],
[
269,
18
],
[
18,
19
],
[
18,
20
],
[
269,
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
],
[
23,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
39,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
23,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
21,
56
],
[
56,
57
],
[
269,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
64,
65
],
[
65,
66
],
[
60,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
60,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
72,
82
],
[
82,
83
],
[
83,
84
],
[
72,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
94,
96
],
[
60,
97
],
[
97,
98
],
[
58,
99
],
[
99,
100
],
[
269,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
103,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
112,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
125,
130
],
[
122,
131
],
[
131,
132
],
[
131,
133
],
[
269,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
140,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
269,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
149,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
153,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
269,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
162,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
269,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
172,
175
],
[
175,
176
],
[
175,
177
],
[
178,
179
],
[
178,
180
],
[
172,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
181,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
188,
190
],
[
181,
191
],
[
191,
192
],
[
192,
193
],
[
181,
194
],
[
195,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
196,
200
],
[
200,
201
],
[
201,
202
],
[
200,
203
],
[
203,
204
],
[
203,
205
],
[
172,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
208,
210
],
[
172,
211
],
[
211,
212
],
[
269,
213
],
[
213,
214
],
[
213,
215
],
[
215,
216
],
[
216,
217
],
[
215,
218
],
[
218,
219
],
[
218,
220
],
[
221,
222
],
[
221,
223
],
[
215,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
224,
229
],
[
229,
230
],
[
229,
231
],
[
231,
232
],
[
231,
233
],
[
224,
234
],
[
234,
235
],
[
235,
236
],
[
224,
237
],
[
238,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
239,
243
],
[
243,
244
],
[
244,
245
],
[
243,
246
],
[
246,
247
],
[
246,
248
],
[
215,
249
],
[
249,
250
],
[
249,
251
],
[
251,
252
],
[
251,
253
],
[
215,
254
],
[
254,
255
],
[
269,
256
],
[
256,
257
],
[
256,
258
],
[
258,
259
],
[
259,
260
],
[
258,
261
],
[
261,
262
],
[
261,
263
],
[
263,
264
],
[
263,
265
],
[
258,
266
],
[
266,
267
],
[
0,
268
],
[
268,
269
],
[
268,
270
]
] |
[
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\n\tfinal static long MOD = 1000000007;\n\tpublic static String[] Ws = null;\n\tpublic static int wsIndx = 0;\n\tpublic static BufferedReader in = null;\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tString s = nextString();\n\t\tString t = nextString();\n\t\tString ans = \"No\";\n\t\tif(s.equals(t.substring(0,s.length()))){\n\t\t\tans=\"Yes\";\n\t\t};\n\n\t\tSystem.out.println(ans);\n\t}\n\n\n\tpublic static String[] toStringArray(String s) {\n\t\tString[] tmp = new String[s.length()];\n\t\tchar[] c = s.toCharArray();\n\t\tfor (int i = 0; i < tmp.length; i++) {\n\t\t\ttmp[i] = String.valueOf(c[i]);\n\t\t}\n\t\treturn tmp;\n\t}\n\n\tpublic static void check() throws Exception{\n\t\tif(in == null){\n\t\t\tin = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\t\tif(Ws==null || Ws.length<=wsIndx){\n\t\t\tWs = in.readLine().split(\" \");\n\t\t\twsIndx=0;\n\t\t}\n\t}\n\tpublic static int nextInt()throws Exception{\n\t\tcheck();\n\t\treturn Integer.parseInt(Ws[wsIndx++]);\n\t}\n\n\tpublic static long nextLong()throws Exception{\n\t\tcheck();\n\t\treturn Long.parseLong(Ws[wsIndx++]);\n\t}\n\n\tpublic static String nextString()throws Exception{\n\t\tcheck();\n\t\treturn Ws[wsIndx++];\n\t}\n\n\tpublic static int[] nextInts()throws Exception{\n\t\tcheck();\n\t\tint[] tmp = new int[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}\n\n\tpublic static long[] nextLongs()throws Exception{\n\t\tcheck();\n\t\tlong[] tmp = new long[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}\n\n\tpublic static String[] nextStrings()throws Exception{\n\t\tcheck();\n\t\twsIndx=Ws.length;\n\t\treturn Ws;\n\t}\n\n\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tfinal static long MOD = 1000000007;\n\tpublic static String[] Ws = null;\n\tpublic static int wsIndx = 0;\n\tpublic static BufferedReader in = null;\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tString s = nextString();\n\t\tString t = nextString();\n\t\tString ans = \"No\";\n\t\tif(s.equals(t.substring(0,s.length()))){\n\t\t\tans=\"Yes\";\n\t\t};\n\n\t\tSystem.out.println(ans);\n\t}\n\n\n\tpublic static String[] toStringArray(String s) {\n\t\tString[] tmp = new String[s.length()];\n\t\tchar[] c = s.toCharArray();\n\t\tfor (int i = 0; i < tmp.length; i++) {\n\t\t\ttmp[i] = String.valueOf(c[i]);\n\t\t}\n\t\treturn tmp;\n\t}\n\n\tpublic static void check() throws Exception{\n\t\tif(in == null){\n\t\t\tin = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\t\tif(Ws==null || Ws.length<=wsIndx){\n\t\t\tWs = in.readLine().split(\" \");\n\t\t\twsIndx=0;\n\t\t}\n\t}\n\tpublic static int nextInt()throws Exception{\n\t\tcheck();\n\t\treturn Integer.parseInt(Ws[wsIndx++]);\n\t}\n\n\tpublic static long nextLong()throws Exception{\n\t\tcheck();\n\t\treturn Long.parseLong(Ws[wsIndx++]);\n\t}\n\n\tpublic static String nextString()throws Exception{\n\t\tcheck();\n\t\treturn Ws[wsIndx++];\n\t}\n\n\tpublic static int[] nextInts()throws Exception{\n\t\tcheck();\n\t\tint[] tmp = new int[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}\n\n\tpublic static long[] nextLongs()throws Exception{\n\t\tcheck();\n\t\tlong[] tmp = new long[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}\n\n\tpublic static String[] nextStrings()throws Exception{\n\t\tcheck();\n\t\twsIndx=Ws.length;\n\t\treturn Ws;\n\t}\n\n\n}",
"Main",
"final static long MOD = 1000000007;",
"MOD",
"1000000007",
"public static String[] Ws = null;",
"Ws",
"null",
"public static int wsIndx = 0;",
"wsIndx",
"0",
"public static BufferedReader in = null;",
"in",
"null",
"public static void main(String[] args) throws Exception {\n\n\t\tString s = nextString();\n\t\tString t = nextString();\n\t\tString ans = \"No\";\n\t\tif(s.equals(t.substring(0,s.length()))){\n\t\t\tans=\"Yes\";\n\t\t};\n\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\n\t\tString s = nextString();\n\t\tString t = nextString();\n\t\tString ans = \"No\";\n\t\tif(s.equals(t.substring(0,s.length()))){\n\t\t\tans=\"Yes\";\n\t\t};\n\n\t\tSystem.out.println(ans);\n\t}",
"String s = nextString();",
"s",
"nextString()",
"nextString",
"String t = nextString();",
"t",
"nextString()",
"nextString",
"String ans = \"No\";",
"ans",
"\"No\"",
"if(s.equals(t.substring(0,s.length()))){\n\t\t\tans=\"Yes\";\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\tans=\"Yes\";\n\t\t}",
"ans=\"Yes\"",
"ans",
"\"Yes\"",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public static String[] toStringArray(String s) {\n\t\tString[] tmp = new String[s.length()];\n\t\tchar[] c = s.toCharArray();\n\t\tfor (int i = 0; i < tmp.length; i++) {\n\t\t\ttmp[i] = String.valueOf(c[i]);\n\t\t}\n\t\treturn tmp;\n\t}",
"toStringArray",
"{\n\t\tString[] tmp = new String[s.length()];\n\t\tchar[] c = s.toCharArray();\n\t\tfor (int i = 0; i < tmp.length; i++) {\n\t\t\ttmp[i] = String.valueOf(c[i]);\n\t\t}\n\t\treturn tmp;\n\t}",
"String[] tmp = new String[s.length()];",
"tmp",
"new String[s.length()]",
"s.length()",
"s.length",
"s",
"char[] c = s.toCharArray();",
"c",
"s.toCharArray()",
"s.toCharArray",
"s",
"for (int i = 0; i < tmp.length; i++) {\n\t\t\ttmp[i] = String.valueOf(c[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < tmp.length",
"i",
"tmp.length",
"tmp",
"tmp.length",
"i++",
"i++",
"i",
"{\n\t\t\ttmp[i] = String.valueOf(c[i]);\n\t\t}",
"{\n\t\t\ttmp[i] = String.valueOf(c[i]);\n\t\t}",
"tmp[i] = String.valueOf(c[i])",
"tmp[i]",
"tmp",
"i",
"String.valueOf(c[i])",
"String.valueOf",
"String",
"c[i]",
"c",
"i",
"return tmp;",
"tmp",
"String s",
"s",
"public static void check() throws Exception{\n\t\tif(in == null){\n\t\t\tin = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\t\tif(Ws==null || Ws.length<=wsIndx){\n\t\t\tWs = in.readLine().split(\" \");\n\t\t\twsIndx=0;\n\t\t}\n\t}",
"check",
"{\n\t\tif(in == null){\n\t\t\tin = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\t\tif(Ws==null || Ws.length<=wsIndx){\n\t\t\tWs = in.readLine().split(\" \");\n\t\t\twsIndx=0;\n\t\t}\n\t}",
"if(in == null){\n\t\t\tin = new BufferedReader(new InputStreamReader(System.in));\n\t\t}",
"in == null",
"in",
"null",
"{\n\t\t\tin = new BufferedReader(new InputStreamReader(System.in));\n\t\t}",
"in = new BufferedReader(new InputStreamReader(System.in))",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"if(Ws==null || Ws.length<=wsIndx){\n\t\t\tWs = in.readLine().split(\" \");\n\t\t\twsIndx=0;\n\t\t}",
"Ws==null || Ws.length<=wsIndx",
"Ws==null",
"Ws",
"null",
"Ws.length<=wsIndx",
"Ws.length",
"Ws",
"Ws.length",
"wsIndx",
"{\n\t\t\tWs = in.readLine().split(\" \");\n\t\t\twsIndx=0;\n\t\t}",
"Ws = in.readLine().split(\" \")",
"Ws",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"wsIndx=0",
"wsIndx",
"0",
"public static int nextInt()throws Exception{\n\t\tcheck();\n\t\treturn Integer.parseInt(Ws[wsIndx++]);\n\t}",
"nextInt",
"{\n\t\tcheck();\n\t\treturn Integer.parseInt(Ws[wsIndx++]);\n\t}",
"check()",
"check",
"return Integer.parseInt(Ws[wsIndx++]);",
"Integer.parseInt(Ws[wsIndx++])",
"Integer.parseInt",
"Integer",
"Ws[wsIndx++]",
"Ws",
"wsIndx++",
"wsIndx",
"public static long nextLong()throws Exception{\n\t\tcheck();\n\t\treturn Long.parseLong(Ws[wsIndx++]);\n\t}",
"nextLong",
"{\n\t\tcheck();\n\t\treturn Long.parseLong(Ws[wsIndx++]);\n\t}",
"check()",
"check",
"return Long.parseLong(Ws[wsIndx++]);",
"Long.parseLong(Ws[wsIndx++])",
"Long.parseLong",
"Long",
"Ws[wsIndx++]",
"Ws",
"wsIndx++",
"wsIndx",
"public static String nextString()throws Exception{\n\t\tcheck();\n\t\treturn Ws[wsIndx++];\n\t}",
"nextString",
"{\n\t\tcheck();\n\t\treturn Ws[wsIndx++];\n\t}",
"check()",
"check",
"return Ws[wsIndx++];",
"Ws[wsIndx++]",
"Ws",
"wsIndx++",
"wsIndx",
"public static int[] nextInts()throws Exception{\n\t\tcheck();\n\t\tint[] tmp = new int[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}",
"nextInts",
"{\n\t\tcheck();\n\t\tint[] tmp = new int[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}",
"check()",
"check",
"int[] tmp = new int[Ws.length];",
"tmp",
"new int[Ws.length]",
"Ws.length",
"Ws",
"Ws.length",
"for(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<tmp.length",
"i",
"tmp.length",
"tmp",
"tmp.length",
"i++",
"i++",
"i",
"{\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}",
"{\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}",
"tmp[i]=Integer.parseInt(Ws[i])",
"tmp[i]",
"tmp",
"i",
"Integer.parseInt(Ws[i])",
"Integer.parseInt",
"Integer",
"Ws[i]",
"Ws",
"i",
"wsIndx=Ws.length",
"wsIndx",
"Ws.length",
"Ws",
"Ws.length",
"return tmp;",
"tmp",
"public static long[] nextLongs()throws Exception{\n\t\tcheck();\n\t\tlong[] tmp = new long[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}",
"nextLongs",
"{\n\t\tcheck();\n\t\tlong[] tmp = new long[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}",
"check()",
"check",
"long[] tmp = new long[Ws.length];",
"tmp",
"new long[Ws.length]",
"Ws.length",
"Ws",
"Ws.length",
"for(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<tmp.length",
"i",
"tmp.length",
"tmp",
"tmp.length",
"i++",
"i++",
"i",
"{\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}",
"{\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}",
"tmp[i]=Long.parseLong(Ws[i])",
"tmp[i]",
"tmp",
"i",
"Long.parseLong(Ws[i])",
"Long.parseLong",
"Long",
"Ws[i]",
"Ws",
"i",
"wsIndx=Ws.length",
"wsIndx",
"Ws.length",
"Ws",
"Ws.length",
"return tmp;",
"tmp",
"public static String[] nextStrings()throws Exception{\n\t\tcheck();\n\t\twsIndx=Ws.length;\n\t\treturn Ws;\n\t}",
"nextStrings",
"{\n\t\tcheck();\n\t\twsIndx=Ws.length;\n\t\treturn Ws;\n\t}",
"check()",
"check",
"wsIndx=Ws.length",
"wsIndx",
"Ws.length",
"Ws",
"Ws.length",
"return Ws;",
"Ws",
"public class Main {\n\n\tfinal static long MOD = 1000000007;\n\tpublic static String[] Ws = null;\n\tpublic static int wsIndx = 0;\n\tpublic static BufferedReader in = null;\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tString s = nextString();\n\t\tString t = nextString();\n\t\tString ans = \"No\";\n\t\tif(s.equals(t.substring(0,s.length()))){\n\t\t\tans=\"Yes\";\n\t\t};\n\n\t\tSystem.out.println(ans);\n\t}\n\n\n\tpublic static String[] toStringArray(String s) {\n\t\tString[] tmp = new String[s.length()];\n\t\tchar[] c = s.toCharArray();\n\t\tfor (int i = 0; i < tmp.length; i++) {\n\t\t\ttmp[i] = String.valueOf(c[i]);\n\t\t}\n\t\treturn tmp;\n\t}\n\n\tpublic static void check() throws Exception{\n\t\tif(in == null){\n\t\t\tin = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\t\tif(Ws==null || Ws.length<=wsIndx){\n\t\t\tWs = in.readLine().split(\" \");\n\t\t\twsIndx=0;\n\t\t}\n\t}\n\tpublic static int nextInt()throws Exception{\n\t\tcheck();\n\t\treturn Integer.parseInt(Ws[wsIndx++]);\n\t}\n\n\tpublic static long nextLong()throws Exception{\n\t\tcheck();\n\t\treturn Long.parseLong(Ws[wsIndx++]);\n\t}\n\n\tpublic static String nextString()throws Exception{\n\t\tcheck();\n\t\treturn Ws[wsIndx++];\n\t}\n\n\tpublic static int[] nextInts()throws Exception{\n\t\tcheck();\n\t\tint[] tmp = new int[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}\n\n\tpublic static long[] nextLongs()throws Exception{\n\t\tcheck();\n\t\tlong[] tmp = new long[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}\n\n\tpublic static String[] nextStrings()throws Exception{\n\t\tcheck();\n\t\twsIndx=Ws.length;\n\t\treturn Ws;\n\t}\n\n\n}",
"public class Main {\n\n\tfinal static long MOD = 1000000007;\n\tpublic static String[] Ws = null;\n\tpublic static int wsIndx = 0;\n\tpublic static BufferedReader in = null;\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tString s = nextString();\n\t\tString t = nextString();\n\t\tString ans = \"No\";\n\t\tif(s.equals(t.substring(0,s.length()))){\n\t\t\tans=\"Yes\";\n\t\t};\n\n\t\tSystem.out.println(ans);\n\t}\n\n\n\tpublic static String[] toStringArray(String s) {\n\t\tString[] tmp = new String[s.length()];\n\t\tchar[] c = s.toCharArray();\n\t\tfor (int i = 0; i < tmp.length; i++) {\n\t\t\ttmp[i] = String.valueOf(c[i]);\n\t\t}\n\t\treturn tmp;\n\t}\n\n\tpublic static void check() throws Exception{\n\t\tif(in == null){\n\t\t\tin = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\t\tif(Ws==null || Ws.length<=wsIndx){\n\t\t\tWs = in.readLine().split(\" \");\n\t\t\twsIndx=0;\n\t\t}\n\t}\n\tpublic static int nextInt()throws Exception{\n\t\tcheck();\n\t\treturn Integer.parseInt(Ws[wsIndx++]);\n\t}\n\n\tpublic static long nextLong()throws Exception{\n\t\tcheck();\n\t\treturn Long.parseLong(Ws[wsIndx++]);\n\t}\n\n\tpublic static String nextString()throws Exception{\n\t\tcheck();\n\t\treturn Ws[wsIndx++];\n\t}\n\n\tpublic static int[] nextInts()throws Exception{\n\t\tcheck();\n\t\tint[] tmp = new int[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}\n\n\tpublic static long[] nextLongs()throws Exception{\n\t\tcheck();\n\t\tlong[] tmp = new long[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}\n\n\tpublic static String[] nextStrings()throws Exception{\n\t\tcheck();\n\t\twsIndx=Ws.length;\n\t\treturn Ws;\n\t}\n\n\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main {
final static long MOD = 1000000007;
public static String[] Ws = null;
public static int wsIndx = 0;
public static BufferedReader in = null;
public static void main(String[] args) throws Exception {
String s = nextString();
String t = nextString();
String ans = "No";
if(s.equals(t.substring(0,s.length()))){
ans="Yes";
};
System.out.println(ans);
}
public static String[] toStringArray(String s) {
String[] tmp = new String[s.length()];
char[] c = s.toCharArray();
for (int i = 0; i < tmp.length; i++) {
tmp[i] = String.valueOf(c[i]);
}
return tmp;
}
public static void check() throws Exception{
if(in == null){
in = new BufferedReader(new InputStreamReader(System.in));
}
if(Ws==null || Ws.length<=wsIndx){
Ws = in.readLine().split(" ");
wsIndx=0;
}
}
public static int nextInt()throws Exception{
check();
return Integer.parseInt(Ws[wsIndx++]);
}
public static long nextLong()throws Exception{
check();
return Long.parseLong(Ws[wsIndx++]);
}
public static String nextString()throws Exception{
check();
return Ws[wsIndx++];
}
public static int[] nextInts()throws Exception{
check();
int[] tmp = new int[Ws.length];
for(int i=0;i<tmp.length;i++){
tmp[i]=Integer.parseInt(Ws[i]);
}
wsIndx=Ws.length;
return tmp;
}
public static long[] nextLongs()throws Exception{
check();
long[] tmp = new long[Ws.length];
for(int i=0;i<tmp.length;i++){
tmp[i]=Long.parseLong(Ws[i]);
}
wsIndx=Ws.length;
return tmp;
}
public static String[] nextStrings()throws Exception{
check();
wsIndx=Ws.length;
return Ws;
}
}
|
[
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,
2,
4,
18,
13,
17,
14,
4,
18,
13,
2,
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
],
[
59,
5
],
[
59,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
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
],
[
32,
33
],
[
30,
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
],
[
6,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args ) throws Exception {\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\n\n String end = T.substring(S.length(),S.length()+1);\n if(T.equals(S+end)){\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 ) throws Exception {\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\n\n String end = T.substring(S.length(),S.length()+1);\n if(T.equals(S+end)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }\n}",
"Main",
"public static void main(String[] args ) throws Exception {\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\n\n String end = T.substring(S.length(),S.length()+1);\n if(T.equals(S+end)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\n\n String end = T.substring(S.length(),S.length()+1);\n if(T.equals(S+end)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\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 end = T.substring(S.length(),S.length()+1);",
"end",
"T.substring(S.length(),S.length()+1)",
"T.substring",
"T",
"S.length()",
"S.length",
"S",
"S.length()+1",
"S.length()",
"S.length",
"S",
"1",
"if(T.equals(S+end)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"T.equals(S+end)",
"T.equals",
"T",
"S+end",
"S",
"end",
"{\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 S = sc.next();\n String T = sc.next();\n\n String end = T.substring(S.length(),S.length()+1);\n if(T.equals(S+end)){\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 ) throws Exception {\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\n\n String end = T.substring(S.length(),S.length()+1);\n if(T.equals(S+end)){\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 ) throws Exception {
Scanner sc = new Scanner(System.in);
String S = sc.next();
String T = sc.next();
String end = T.substring(S.length(),S.length()+1);
if(T.equals(S+end)){
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,
0,
13,
2,
13,
4,
18,
13,
13,
14,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
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
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
35,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
35,
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.*;\n\npublic class Main{\n \n public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String t = sc.nextLine();\n int n = s.length();\n \n s = s + t.charAt(n);\n \n // System.out.println(s+\" \"+t);\n \n if(s.equals(t)){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n \n }\n \n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n \n public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String t = sc.nextLine();\n int n = s.length();\n \n s = s + t.charAt(n);\n \n // System.out.println(s+\" \"+t);\n \n if(s.equals(t)){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n \n }\n \n}",
"Main",
"public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String t = sc.nextLine();\n int n = s.length();\n \n s = s + t.charAt(n);\n \n // System.out.println(s+\" \"+t);\n \n if(s.equals(t)){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n \n }",
"main",
"{\n \n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String t = sc.nextLine();\n int n = s.length();\n \n s = s + t.charAt(n);\n \n // System.out.println(s+\" \"+t);\n \n if(s.equals(t)){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\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 n = s.length();",
"n",
"s.length()",
"s.length",
"s",
"s = s + t.charAt(n)",
"s",
"s + t.charAt(n)",
"s",
"t.charAt(n)",
"t.charAt",
"t",
"n",
"if(s.equals(t)){\n System.out.println(\"Yes\");\n }\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 \n public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String t = sc.nextLine();\n int n = s.length();\n \n s = s + t.charAt(n);\n \n // System.out.println(s+\" \"+t);\n \n if(s.equals(t)){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n \n }\n \n}",
"public class Main{\n \n public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String t = sc.nextLine();\n int n = s.length();\n \n s = s + t.charAt(n);\n \n // System.out.println(s+\" \"+t);\n \n if(s.equals(t)){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n \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 n = s.length();
s = s + t.charAt(n);
// System.out.println(s+" "+t);
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,
2,
4,
18,
13,
17,
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,
30,
4,
18,
18,
13,
13,
17,
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
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
27,
31
],
[
22,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
33,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
22,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
6,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
]
] |
[
"import java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n \tString s = scn.next();\n \tString t = scn.next();\n \tif(s.length() == t.length() - 1){\n \tif(s.equals(t.substring(0, s.length()))){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }\n }else{\n \tSystem.out.println(\"No\");\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 scn = new Scanner(System.in);\n \tString s = scn.next();\n \tString t = scn.next();\n \tif(s.length() == t.length() - 1){\n \tif(s.equals(t.substring(0, s.length()))){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }\n }else{\n \tSystem.out.println(\"No\");\n }\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n \tString s = scn.next();\n \tString t = scn.next();\n \tif(s.length() == t.length() - 1){\n \tif(s.equals(t.substring(0, s.length()))){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }\n }else{\n \tSystem.out.println(\"No\");\n }\n\t}",
"main",
"{\n\t\tScanner scn = new Scanner(System.in);\n \tString s = scn.next();\n \tString t = scn.next();\n \tif(s.length() == t.length() - 1){\n \tif(s.equals(t.substring(0, s.length()))){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }\n }else{\n \tSystem.out.println(\"No\");\n }\n\t}",
"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",
"if(s.length() == t.length() - 1){\n \tif(s.equals(t.substring(0, s.length()))){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }\n }else{\n \tSystem.out.println(\"No\");\n }",
"s.length() == t.length() - 1",
"s.length()",
"s.length",
"s",
"t.length() - 1",
"t.length()",
"t.length",
"t",
"1",
"{\n \tif(s.equals(t.substring(0, s.length()))){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }\n }",
"if(s.equals(t.substring(0, s.length()))){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.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 \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\"",
"{\n \tSystem.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\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n \tString s = scn.next();\n \tString t = scn.next();\n \tif(s.length() == t.length() - 1){\n \tif(s.equals(t.substring(0, s.length()))){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }\n }else{\n \tSystem.out.println(\"No\");\n }\n\t}\n}",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n \tString s = scn.next();\n \tString t = scn.next();\n \tif(s.length() == t.length() - 1){\n \tif(s.equals(t.substring(0, s.length()))){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }\n }else{\n \tSystem.out.println(\"No\");\n }\n\t}\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();
if(s.length() == t.length() - 1){
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,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
13,
2,
13,
17,
13,
0,
13,
4,
18,
13,
13,
13,
41,
13,
2,
18,
13,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
18,
13,
2,
2,
13,
13,
17,
2,
13,
17,
2,
18,
13,
2,
2,
13,
13,
17,
18,
13,
2,
13,
17,
30,
4,
13,
2,
13,
13,
2,
13,
17,
23,
13,
23,
13,
12,
13,
30,
42,
2,
2,
2,
13,
13,
17,
2,
2,
13,
13,
17,
30,
14,
2,
13,
13,
0,
13,
13,
0,
13,
13,
29,
8,
2,
13,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
8,
2,
2,
13,
13,
17,
2,
13,
13,
2,
2,
13,
13,
17,
23,
13,
23,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
2,
13,
17,
0,
13,
17,
29,
13,
23,
13,
12,
13,
30,
42,
2,
40,
13,
17,
4,
18,
13,
2,
17,
17,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
14,
2,
4,
18,
13,
13,
17,
29,
17,
29,
17,
23,
13,
12,
13,
30,
41,
13,
20,
0,
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,
2,
4,
18,
13,
17,
13,
30,
4,
18,
13,
17,
30,
4,
18,
13,
17,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
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,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
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,
0,
18,
13,
13,
4,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
2,
2,
18,
36,
13,
17,
18,
36,
13,
12,
13,
30,
14,
2,
18,
36,
13,
18,
13,
13,
29,
2,
18,
36,
13,
18,
13,
13,
30,
29,
2,
18,
36,
13,
18,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
17,
14,
2,
4,
18,
36,
4,
18,
13,
30,
29,
17,
41,
13,
13,
29,
2,
2,
18,
36,
13,
18,
13,
13,
2,
18,
36,
13,
18,
13,
13,
23,
13,
13,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
14,
2,
18,
36,
13,
18,
13,
13,
29,
2,
18,
36,
13,
18,
13,
13,
30,
14,
2,
18,
36,
13,
18,
13,
13,
29,
2,
18,
36,
13,
18,
13,
13,
29,
2,
18,
36,
13,
18,
13,
13,
23,
13,
12,
13,
30,
29,
2,
2,
18,
36,
13,
18,
13,
13,
2,
18,
36,
13,
18,
13,
13,
23,
13,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
655,
8
],
[
655,
9
],
[
9,
10
],
[
655,
11
],
[
11,
12
],
[
655,
13
],
[
13,
14
],
[
655,
15
],
[
15,
16
],
[
655,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
20,
26
],
[
19,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
29,
33
],
[
19,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
19,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
56,
64
],
[
64,
65
],
[
64,
66
],
[
55,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
67,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
77,
79
],
[
54,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
86,
87
],
[
86,
88
],
[
17,
89
],
[
89,
90
],
[
17,
91
],
[
91,
92
],
[
655,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
97,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
96,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
113,
114
],
[
113,
115
],
[
109,
116
],
[
116,
117
],
[
116,
118
],
[
95,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
120,
125
],
[
93,
126
],
[
126,
127
],
[
93,
128
],
[
128,
129
],
[
655,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
134,
140
],
[
140,
141
],
[
140,
142
],
[
134,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
130,
148
],
[
148,
149
],
[
130,
150
],
[
150,
151
],
[
655,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
165,
167
],
[
162,
168
],
[
168,
169
],
[
168,
170
],
[
154,
171
],
[
171,
172
],
[
152,
173
],
[
173,
174
],
[
655,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
179,
182
],
[
178,
183
],
[
183,
184
],
[
184,
185
],
[
183,
186
],
[
186,
187
],
[
186,
188
],
[
175,
189
],
[
189,
190
],
[
655,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
194,
199
],
[
199,
200
],
[
199,
201
],
[
201,
202
],
[
202,
203
],
[
194,
204
],
[
204,
205
],
[
205,
206
],
[
194,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
210,
213
],
[
209,
214
],
[
208,
215
],
[
215,
216
],
[
193,
217
],
[
217,
218
],
[
191,
219
],
[
219,
220
],
[
655,
221
],
[
221,
222
],
[
221,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
223,
227
],
[
227,
228
],
[
227,
229
],
[
223,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
233,
234
],
[
223,
235
],
[
235,
236
],
[
235,
237
],
[
237,
238
],
[
238,
239
],
[
223,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
244,
245
],
[
242,
246
],
[
246,
247
],
[
247,
248
],
[
248,
249
],
[
246,
250
],
[
241,
251
],
[
251,
252
],
[
252,
253
],
[
253,
254
],
[
254,
255
],
[
253,
256
],
[
253,
257
],
[
257,
258
],
[
258,
259
],
[
259,
260
],
[
257,
261
],
[
251,
262
],
[
240,
263
],
[
263,
264
],
[
264,
265
],
[
265,
266
],
[
264,
267
],
[
240,
268
],
[
268,
269
],
[
269,
270
],
[
270,
271
],
[
269,
272
],
[
223,
273
],
[
273,
274
],
[
274,
275
],
[
221,
276
],
[
276,
277
],
[
655,
278
],
[
278,
279
],
[
278,
280
],
[
280,
281
],
[
278,
282
],
[
282,
283
],
[
278,
284
],
[
284,
285
],
[
284,
286
],
[
286,
287
],
[
287,
288
],
[
287,
289
],
[
284,
290
],
[
290,
291
],
[
278,
292
],
[
292,
293
],
[
292,
294
],
[
294,
295
],
[
295,
296
],
[
295,
297
],
[
292,
298
],
[
298,
299
],
[
278,
300
],
[
300,
301
],
[
300,
302
],
[
302,
303
],
[
303,
304
],
[
304,
305
],
[
305,
306
],
[
305,
307
],
[
304,
308
],
[
308,
309
],
[
309,
310
],
[
310,
311
],
[
303,
312
],
[
312,
313
],
[
312,
314
],
[
302,
315
],
[
315,
316
],
[
316,
317
],
[
317,
318
],
[
278,
319
],
[
319,
320
],
[
319,
321
],
[
321,
322
],
[
322,
323
],
[
323,
324
],
[
324,
325
],
[
323,
326
],
[
326,
327
],
[
278,
328
],
[
328,
329
],
[
328,
330
],
[
330,
331
],
[
331,
332
],
[
332,
333
],
[
333,
334
],
[
332,
335
],
[
335,
336
],
[
278,
337
],
[
337,
338
],
[
337,
339
],
[
339,
340
],
[
340,
341
],
[
341,
342
],
[
342,
343
],
[
278,
344
],
[
344,
345
],
[
344,
346
],
[
346,
347
],
[
347,
348
],
[
348,
349
],
[
349,
350
],
[
348,
351
],
[
351,
352
],
[
278,
353
],
[
353,
354
],
[
353,
355
],
[
355,
356
],
[
356,
357
],
[
356,
358
],
[
355,
360
],
[
360,
361
],
[
361,
362
],
[
362,
363
],
[
362,
364
],
[
360,
365
],
[
365,
366
],
[
365,
367
],
[
367,
368
],
[
367,
369
],
[
360,
370
],
[
370,
371
],
[
371,
372
],
[
360,
373
],
[
373,
374
],
[
374,
375
],
[
375,
376
],
[
375,
377
],
[
374,
378
],
[
378,
379
],
[
355,
380
],
[
380,
381
],
[
353,
382
],
[
382,
383
],
[
278,
384
],
[
384,
385
],
[
384,
386
],
[
386,
387
],
[
387,
388
],
[
387,
389
],
[
386,
391
],
[
391,
392
],
[
392,
393
],
[
393,
394
],
[
393,
395
],
[
391,
396
],
[
396,
397
],
[
396,
398
],
[
391,
399
],
[
399,
400
],
[
400,
401
],
[
391,
402
],
[
402,
403
],
[
403,
404
],
[
404,
405
],
[
404,
406
],
[
403,
407
],
[
407,
408
],
[
386,
409
],
[
409,
410
],
[
384,
411
],
[
411,
412
],
[
278,
413
],
[
413,
414
],
[
413,
415
],
[
415,
416
],
[
416,
417
],
[
417,
418
],
[
418,
419
],
[
655,
420
],
[
420,
421
],
[
420,
422
],
[
422,
423
],
[
420,
424
],
[
424,
425
],
[
420,
426
],
[
426,
427
],
[
426,
428
],
[
428,
429
],
[
429,
430
],
[
430,
431
],
[
430,
432
],
[
429,
433
],
[
428,
434
],
[
434,
435
],
[
435,
436
],
[
435,
437
],
[
434,
438
],
[
426,
439
],
[
439,
440
],
[
426,
441
],
[
441,
442
],
[
420,
443
],
[
443,
444
],
[
443,
445
],
[
445,
446
],
[
446,
447
],
[
447,
448
],
[
448,
449
],
[
449,
450
],
[
450,
451
],
[
451,
452
],
[
451,
453
],
[
450,
454
],
[
449,
455
],
[
455,
456
],
[
455,
457
],
[
420,
458
],
[
458,
459
],
[
458,
460
],
[
460,
461
],
[
461,
462
],
[
462,
463
],
[
463,
464
],
[
463,
465
],
[
462,
466
],
[
466,
467
],
[
466,
468
],
[
461,
469
],
[
469,
470
],
[
470,
471
],
[
471,
472
],
[
471,
473
],
[
470,
474
],
[
474,
475
],
[
474,
476
],
[
461,
477
],
[
477,
478
],
[
478,
479
],
[
479,
480
],
[
480,
481
],
[
480,
482
],
[
479,
483
],
[
483,
484
],
[
483,
485
],
[
458,
486
],
[
486,
487
],
[
420,
488
],
[
488,
489
],
[
488,
490
],
[
490,
491
],
[
491,
492
],
[
492,
493
],
[
492,
494
],
[
491,
495
],
[
495,
496
],
[
496,
497
],
[
490,
498
],
[
498,
499
],
[
499,
500
],
[
500,
501
],
[
501,
502
],
[
499,
503
],
[
503,
504
],
[
504,
505
],
[
498,
506
],
[
506,
507
],
[
507,
508
],
[
490,
509
],
[
509,
510
],
[
509,
511
],
[
490,
512
],
[
512,
513
],
[
513,
514
],
[
514,
515
],
[
515,
516
],
[
515,
517
],
[
514,
518
],
[
518,
519
],
[
518,
520
],
[
513,
521
],
[
521,
522
],
[
522,
523
],
[
522,
524
],
[
521,
525
],
[
525,
526
],
[
525,
527
],
[
488,
528
],
[
528,
529
],
[
420,
530
],
[
655,
531
],
[
531,
532
],
[
531,
533
],
[
533,
534
],
[
531,
535
],
[
535,
536
],
[
531,
537
],
[
537,
538
],
[
531,
539
],
[
539,
540
],
[
539,
541
],
[
541,
542
],
[
542,
543
],
[
543,
544
],
[
543,
545
],
[
542,
546
],
[
541,
547
],
[
547,
548
],
[
548,
549
],
[
548,
550
],
[
547,
551
],
[
541,
552
],
[
552,
553
],
[
553,
554
],
[
553,
555
],
[
552,
556
],
[
539,
557
],
[
557,
558
],
[
539,
559
],
[
559,
560
],
[
539,
561
],
[
561,
562
],
[
531,
563
],
[
563,
564
],
[
563,
565
],
[
565,
566
],
[
566,
567
],
[
567,
568
],
[
568,
569
],
[
568,
570
],
[
567,
571
],
[
571,
572
],
[
571,
573
],
[
566,
574
],
[
574,
575
],
[
575,
576
],
[
576,
577
],
[
576,
578
],
[
575,
579
],
[
579,
580
],
[
579,
581
],
[
566,
582
],
[
582,
583
],
[
583,
584
],
[
584,
585
],
[
585,
586
],
[
585,
587
],
[
584,
588
],
[
588,
589
],
[
588,
590
],
[
583,
591
],
[
591,
592
],
[
592,
593
],
[
593,
594
],
[
593,
595
],
[
592,
596
],
[
596,
597
],
[
596,
598
],
[
583,
599
],
[
599,
600
],
[
600,
601
],
[
601,
602
],
[
601,
603
],
[
600,
604
],
[
604,
605
],
[
604,
606
],
[
563,
607
],
[
607,
608
],
[
531,
609
],
[
609,
610
],
[
609,
611
],
[
611,
612
],
[
612,
613
],
[
613,
614
],
[
614,
615
],
[
615,
616
],
[
615,
617
],
[
614,
618
],
[
618,
619
],
[
618,
620
],
[
613,
621
],
[
621,
622
],
[
622,
623
],
[
622,
624
],
[
621,
625
],
[
625,
626
],
[
625,
627
],
[
609,
628
],
[
628,
629
],
[
531,
630
],
[
655,
631
],
[
631,
632
],
[
631,
633
],
[
633,
634
],
[
631,
635
],
[
635,
636
],
[
631,
637
],
[
637,
638
],
[
637,
639
],
[
639,
640
],
[
640,
641
],
[
641,
642
],
[
641,
643
],
[
640,
644
],
[
639,
645
],
[
645,
646
],
[
646,
647
],
[
646,
648
],
[
645,
649
],
[
637,
650
],
[
650,
651
],
[
637,
652
],
[
652,
653
],
[
0,
654
],
[
654,
655
],
[
654,
656
]
] |
[
"import java.io.*;\nimport java.util.*;\npublic class Main {\n static PrintWriter pw;\n static int[] visit;\n static int max;\n static int[] arr;\n static void dfs(int i, int c) {\n visit[i-1]=c;\n max=Math.max(c, max);\n int lim=arr.length/i;\n for(int j=2; j<=lim; j++){\n if(visit[i*j-1]<c+1 && arr[i*j-1]>arr[i-1]){\n dfs(i*j, c+1);\n }\n }\n }\n public static long gcf(long x, long y) {\n while(x%y!=0 && y%x!=0) {\n if(x>y)\n x%=y;\n else\n y%=x;\n }\n return x>y? y:x;\n }\n static int ceildiv(int x, int y){\n return x%y==0? x/y: x/y+1;\n }\n static int count1s(int x){\n int ans=0;\n while(x>0){\n ans+=(x&1);\n x>>=1;\n }\n return ans;\n }\n static void print(int n){\n while(n-->0)\n pw.print(0+\" \");\n }\n static boolean binary(String s){\n for(int i=0; i<s.length(); i++)\n if(s.charAt(i)>'1')\n return false;\n return true;\n }\n public static void main(String[] args) throws Exception {\n Scanner sc= new Scanner(System.in);\n pw = new PrintWriter(System.out);\n String s=sc.next(),t=sc.next();\n if(s.length()==t.length()-1 && t.substring(0, t.length()-1).equals(s)){\n pw.println(\"Yes\");\n }else{\n pw.println(\"No\");\n }\n pw.close();\n }\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader r) {\n br = new BufferedReader(r);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public int[] nextArr(int n) throws IOException {\n int[] arr = new int[n];\n for (int i = 0; i < arr.length; i++)\n arr[i] = nextInt();\n return arr;\n }\n public Integer[] nextsort(int n) throws IOException{\n Integer[] arr=new Integer[n];\n for(int i=0; i<n; i++)\n arr[i]=nextInt();\n return arr;\n }\n public boolean ready() throws IOException {\n return br.ready();\n }\n }\n static class Pair implements Comparable<Pair>{\n int x;\n int y;\n public Pair(int x, int y) {\n this.x=x;\n this.y=y;\n }\n public int hashCode() {\n return (this.x+\"\"+this.y).hashCode();\n }\n public int compareTo(Pair other) {\n if(this.x!=other.x)\n return this.x-other.x;\n else {\n return this.y-other.y;\n }\n }\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (this.getClass() != obj.getClass()) {\n return false;\n }\n Pair p = (Pair) obj;\n return this.x == p.x && this.y == p.y;\n }\n }\n static class tuple implements Comparable<tuple>{\n int x;int y;int z;\n public tuple(int x, int y, int z){\n this.x=x;\n this.y=y;\n this.z=z;\n }\n public int compareTo(tuple other) {\n if(this.x!=other.x)\n return this.x-other.x;\n else {\n if(this.y!=other.y)\n return this.y-other.y;\n else\n return this.z-other.z;\n }\n }\n public boolean equal(tuple t){\n return this.x==t.x && this.y==t.y;\n }\n }\n static class visit {\n int x;\n boolean y;\n public visit(int x, boolean y){\n this.x=x;\n this.y=y;\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n static PrintWriter pw;\n static int[] visit;\n static int max;\n static int[] arr;\n static void dfs(int i, int c) {\n visit[i-1]=c;\n max=Math.max(c, max);\n int lim=arr.length/i;\n for(int j=2; j<=lim; j++){\n if(visit[i*j-1]<c+1 && arr[i*j-1]>arr[i-1]){\n dfs(i*j, c+1);\n }\n }\n }\n public static long gcf(long x, long y) {\n while(x%y!=0 && y%x!=0) {\n if(x>y)\n x%=y;\n else\n y%=x;\n }\n return x>y? y:x;\n }\n static int ceildiv(int x, int y){\n return x%y==0? x/y: x/y+1;\n }\n static int count1s(int x){\n int ans=0;\n while(x>0){\n ans+=(x&1);\n x>>=1;\n }\n return ans;\n }\n static void print(int n){\n while(n-->0)\n pw.print(0+\" \");\n }\n static boolean binary(String s){\n for(int i=0; i<s.length(); i++)\n if(s.charAt(i)>'1')\n return false;\n return true;\n }\n public static void main(String[] args) throws Exception {\n Scanner sc= new Scanner(System.in);\n pw = new PrintWriter(System.out);\n String s=sc.next(),t=sc.next();\n if(s.length()==t.length()-1 && t.substring(0, t.length()-1).equals(s)){\n pw.println(\"Yes\");\n }else{\n pw.println(\"No\");\n }\n pw.close();\n }\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader r) {\n br = new BufferedReader(r);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public int[] nextArr(int n) throws IOException {\n int[] arr = new int[n];\n for (int i = 0; i < arr.length; i++)\n arr[i] = nextInt();\n return arr;\n }\n public Integer[] nextsort(int n) throws IOException{\n Integer[] arr=new Integer[n];\n for(int i=0; i<n; i++)\n arr[i]=nextInt();\n return arr;\n }\n public boolean ready() throws IOException {\n return br.ready();\n }\n }\n static class Pair implements Comparable<Pair>{\n int x;\n int y;\n public Pair(int x, int y) {\n this.x=x;\n this.y=y;\n }\n public int hashCode() {\n return (this.x+\"\"+this.y).hashCode();\n }\n public int compareTo(Pair other) {\n if(this.x!=other.x)\n return this.x-other.x;\n else {\n return this.y-other.y;\n }\n }\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (this.getClass() != obj.getClass()) {\n return false;\n }\n Pair p = (Pair) obj;\n return this.x == p.x && this.y == p.y;\n }\n }\n static class tuple implements Comparable<tuple>{\n int x;int y;int z;\n public tuple(int x, int y, int z){\n this.x=x;\n this.y=y;\n this.z=z;\n }\n public int compareTo(tuple other) {\n if(this.x!=other.x)\n return this.x-other.x;\n else {\n if(this.y!=other.y)\n return this.y-other.y;\n else\n return this.z-other.z;\n }\n }\n public boolean equal(tuple t){\n return this.x==t.x && this.y==t.y;\n }\n }\n static class visit {\n int x;\n boolean y;\n public visit(int x, boolean y){\n this.x=x;\n this.y=y;\n }\n }\n}",
"Main",
"static PrintWriter pw;",
"pw",
"static int[] visit;",
"visit",
"static int max;",
"max",
"static int[] arr;",
"arr",
"static void dfs(int i, int c) {\n visit[i-1]=c;\n max=Math.max(c, max);\n int lim=arr.length/i;\n for(int j=2; j<=lim; j++){\n if(visit[i*j-1]<c+1 && arr[i*j-1]>arr[i-1]){\n dfs(i*j, c+1);\n }\n }\n }",
"dfs",
"{\n visit[i-1]=c;\n max=Math.max(c, max);\n int lim=arr.length/i;\n for(int j=2; j<=lim; j++){\n if(visit[i*j-1]<c+1 && arr[i*j-1]>arr[i-1]){\n dfs(i*j, c+1);\n }\n }\n }",
"visit[i-1]=c",
"visit[i-1]",
"visit",
"i-1",
"i",
"1",
"c",
"max=Math.max(c, max)",
"max",
"Math.max(c, max)",
"Math.max",
"Math",
"c",
"max",
"int lim=arr.length/i;",
"lim",
"arr.length/i",
"arr.length",
"arr",
"arr.length",
"i",
"for(int j=2; j<=lim; j++){\n if(visit[i*j-1]<c+1 && arr[i*j-1]>arr[i-1]){\n dfs(i*j, c+1);\n }\n }",
"int j=2;",
"int j=2;",
"j",
"2",
"j<=lim",
"j",
"lim",
"j++",
"j++",
"j",
"{\n if(visit[i*j-1]<c+1 && arr[i*j-1]>arr[i-1]){\n dfs(i*j, c+1);\n }\n }",
"{\n if(visit[i*j-1]<c+1 && arr[i*j-1]>arr[i-1]){\n dfs(i*j, c+1);\n }\n }",
"if(visit[i*j-1]<c+1 && arr[i*j-1]>arr[i-1]){\n dfs(i*j, c+1);\n }",
"visit[i*j-1]<c+1 && arr[i*j-1]>arr[i-1]",
"visit[i*j-1]<c+1",
"visit[i*j-1]",
"visit",
"i*j-1",
"i*j",
"i",
"j",
"1",
"c+1",
"c",
"1",
"arr[i*j-1]>arr[i-1]",
"arr[i*j-1]",
"arr",
"i*j-1",
"i*j",
"i",
"j",
"1",
"arr[i-1]",
"arr",
"i-1",
"i",
"1",
"{\n dfs(i*j, c+1);\n }",
"dfs(i*j, c+1)",
"dfs",
"i*j",
"i",
"j",
"c+1",
"c",
"1",
"int i",
"i",
"int c",
"c",
"public static long gcf(long x, long y) {\n while(x%y!=0 && y%x!=0) {\n if(x>y)\n x%=y;\n else\n y%=x;\n }\n return x>y? y:x;\n }",
"gcf",
"{\n while(x%y!=0 && y%x!=0) {\n if(x>y)\n x%=y;\n else\n y%=x;\n }\n return x>y? y:x;\n }",
"while(x%y!=0 && y%x!=0) {\n if(x>y)\n x%=y;\n else\n y%=x;\n }",
"x%y!=0 && y%x!=0",
"x%y!=0",
"x%y",
"x",
"y",
"0",
"y%x!=0",
"y%x",
"y",
"x",
"0",
"{\n if(x>y)\n x%=y;\n else\n y%=x;\n }",
"if(x>y)\n x%=y;\n else\n y%=x;",
"x>y",
"x",
"y",
"x%=y",
"x",
"y",
"y%=x",
"y",
"x",
"return x>y? y:x;",
"x>y? y:x",
"x>y",
"x",
"y",
"y",
"x",
"long x",
"x",
"long y",
"y",
"static int ceildiv(int x, int y){\n return x%y==0? x/y: x/y+1;\n }",
"ceildiv",
"{\n return x%y==0? x/y: x/y+1;\n }",
"return x%y==0? x/y: x/y+1;",
"x%y==0? x/y: x/y+1",
"x%y==0",
"x%y",
"x",
"y",
"0",
"x/y",
"x",
"y",
"x/y+1",
"x/y",
"x",
"y",
"1",
"int x",
"x",
"int y",
"y",
"static int count1s(int x){\n int ans=0;\n while(x>0){\n ans+=(x&1);\n x>>=1;\n }\n return ans;\n }",
"count1s",
"{\n int ans=0;\n while(x>0){\n ans+=(x&1);\n x>>=1;\n }\n return ans;\n }",
"int ans=0;",
"ans",
"0",
"while(x>0){\n ans+=(x&1);\n x>>=1;\n }",
"x>0",
"x",
"0",
"{\n ans+=(x&1);\n x>>=1;\n }",
"ans+=(x&1)",
"ans",
"(x&1)",
"x",
"1",
"x>>=1",
"x",
"1",
"return ans;",
"ans",
"int x",
"x",
"static void print(int n){\n while(n-->0)\n pw.print(0+\" \");\n }",
"print",
"{\n while(n-->0)\n pw.print(0+\" \");\n }",
"while(n-->0)\n pw.print(0+\" \");",
"n-->0",
"n--",
"n",
"0",
"pw.print(0+\" \")",
"pw.print",
"pw",
"0+\" \"",
"0",
"\" \"",
"int n",
"n",
"static boolean binary(String s){\n for(int i=0; i<s.length(); i++)\n if(s.charAt(i)>'1')\n return false;\n return true;\n }",
"binary",
"{\n for(int i=0; i<s.length(); i++)\n if(s.charAt(i)>'1')\n return false;\n return true;\n }",
"for(int i=0; i<s.length(); i++)\n if(s.charAt(i)>'1')\n return false;",
"int i=0;",
"int i=0;",
"i",
"0",
"i<s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"if(s.charAt(i)>'1')\n return false;",
"if(s.charAt(i)>'1')\n return false;",
"s.charAt(i)>'1'",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"'1'",
"return false;",
"false",
"return true;",
"true",
"String s",
"s",
"public static void main(String[] args) throws Exception {\n Scanner sc= new Scanner(System.in);\n pw = new PrintWriter(System.out);\n String s=sc.next(),t=sc.next();\n if(s.length()==t.length()-1 && t.substring(0, t.length()-1).equals(s)){\n pw.println(\"Yes\");\n }else{\n pw.println(\"No\");\n }\n pw.close();\n }",
"main",
"{\n Scanner sc= new Scanner(System.in);\n pw = new PrintWriter(System.out);\n String s=sc.next(),t=sc.next();\n if(s.length()==t.length()-1 && t.substring(0, t.length()-1).equals(s)){\n pw.println(\"Yes\");\n }else{\n pw.println(\"No\");\n }\n pw.close();\n }",
"Scanner sc= new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"pw = new PrintWriter(System.out)",
"pw",
"new PrintWriter(System.out)",
"String s=sc.next()",
"s",
"sc.next()",
"sc.next",
"sc",
"t=sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"if(s.length()==t.length()-1 && t.substring(0, t.length()-1).equals(s)){\n pw.println(\"Yes\");\n }else{\n pw.println(\"No\");\n }",
"s.length()==t.length()-1 && t.substring(0, t.length()-1).equals(s)",
"s.length()==t.length()-1",
"s.length()",
"s.length",
"s",
"t.length()-1",
"t.length()",
"t.length",
"t",
"1",
"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 pw.println(\"Yes\");\n }",
"pw.println(\"Yes\")",
"pw.println",
"pw",
"\"Yes\"",
"{\n pw.println(\"No\");\n }",
"pw.println(\"No\")",
"pw.println",
"pw",
"\"No\"",
"pw.close()",
"pw.close",
"pw",
"String[] args",
"args",
"static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader r) {\n br = new BufferedReader(r);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public int[] nextArr(int n) throws IOException {\n int[] arr = new int[n];\n for (int i = 0; i < arr.length; i++)\n arr[i] = nextInt();\n return arr;\n }\n public Integer[] nextsort(int n) throws IOException{\n Integer[] arr=new Integer[n];\n for(int i=0; i<n; i++)\n arr[i]=nextInt();\n return arr;\n }\n public boolean ready() throws IOException {\n return br.ready();\n }\n }",
"Scanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }",
"Scanner",
"{\n br = new BufferedReader(new InputStreamReader(s));\n }",
"br = new BufferedReader(new InputStreamReader(s))",
"br",
"new BufferedReader(new InputStreamReader(s))",
"InputStream s",
"s",
"public Scanner(FileReader r) {\n br = new BufferedReader(r);\n }",
"Scanner",
"{\n br = new BufferedReader(r);\n }",
"br = new BufferedReader(r)",
"br",
"new BufferedReader(r)",
"FileReader r",
"r",
"public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public long nextLong() throws IOException {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public String nextLine() throws IOException {\n return br.readLine();\n }",
"nextLine",
"{\n return br.readLine();\n }",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"public 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",
"public int[] nextArr(int n) throws IOException {\n int[] arr = new int[n];\n for (int i = 0; i < arr.length; i++)\n arr[i] = nextInt();\n return arr;\n }",
"nextArr",
"{\n int[] arr = new int[n];\n for (int i = 0; i < arr.length; i++)\n arr[i] = nextInt();\n return arr;\n }",
"int[] arr = new int[n];",
"arr",
"new int[n]",
"n",
"for (int i = 0; i < arr.length; i++)\n arr[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < arr.length",
"i",
"arr.length",
"arr",
"arr.length",
"i++",
"i++",
"i",
"arr[i] = nextInt();",
"arr[i] = nextInt()",
"arr[i]",
"arr",
"i",
"nextInt()",
"nextInt",
"return arr;",
"arr",
"int n",
"n",
"public Integer[] nextsort(int n) throws IOException{\n Integer[] arr=new Integer[n];\n for(int i=0; i<n; i++)\n arr[i]=nextInt();\n return arr;\n }",
"nextsort",
"{\n Integer[] arr=new Integer[n];\n for(int i=0; i<n; i++)\n arr[i]=nextInt();\n return arr;\n }",
"Integer[] arr=new Integer[n];",
"arr",
"new Integer[n]",
"n",
"for(int i=0; i<n; i++)\n arr[i]=nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"arr[i]=nextInt();",
"arr[i]=nextInt()",
"arr[i]",
"arr",
"i",
"nextInt()",
"nextInt",
"return arr;",
"arr",
"int n",
"n",
"public boolean ready() throws IOException {\n return br.ready();\n }",
"ready",
"{\n return br.ready();\n }",
"return br.ready();",
"br.ready()",
"br.ready",
"br",
"static class Pair implements Comparable<Pair>{\n int x;\n int y;\n public Pair(int x, int y) {\n this.x=x;\n this.y=y;\n }\n public int hashCode() {\n return (this.x+\"\"+this.y).hashCode();\n }\n public int compareTo(Pair other) {\n if(this.x!=other.x)\n return this.x-other.x;\n else {\n return this.y-other.y;\n }\n }\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (this.getClass() != obj.getClass()) {\n return false;\n }\n Pair p = (Pair) obj;\n return this.x == p.x && this.y == p.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",
"public int hashCode() {\n return (this.x+\"\"+this.y).hashCode();\n }",
"hashCode",
"{\n return (this.x+\"\"+this.y).hashCode();\n }",
"return (this.x+\"\"+this.y).hashCode();",
"(this.x+\"\"+this.y).hashCode()",
"(this.x+\"\"+this.y).hashCode",
"(this.x+\"\"+this.y)",
"this.x+\"\"+this.y",
"this.x",
"this",
"this.x",
"\"\"",
"this.y",
"this",
"this.y",
"public int compareTo(Pair other) {\n if(this.x!=other.x)\n return this.x-other.x;\n else {\n return this.y-other.y;\n }\n }",
"compareTo",
"{\n if(this.x!=other.x)\n return this.x-other.x;\n else {\n return this.y-other.y;\n }\n }",
"if(this.x!=other.x)\n return this.x-other.x;\n else {\n return this.y-other.y;\n }",
"this.x!=other.x",
"this.x",
"this",
"this.x",
"other.x",
"other",
"other.x",
"return this.x-other.x;",
"this.x-other.x",
"this.x",
"this",
"this.x",
"other.x",
"other",
"other.x",
"{\n return this.y-other.y;\n }",
"return this.y-other.y;",
"this.y-other.y",
"this.y",
"this",
"this.y",
"other.y",
"other",
"other.y",
"Pair other",
"other",
"public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (this.getClass() != obj.getClass()) {\n return false;\n }\n Pair p = (Pair) obj;\n return this.x == p.x && this.y == p.y;\n }",
"equals",
"{\n if (obj == null) {\n return false;\n }\n if (this.getClass() != obj.getClass()) {\n return false;\n }\n Pair p = (Pair) obj;\n return this.x == p.x && this.y == p.y;\n }",
"if (obj == null) {\n return false;\n }",
"obj == null",
"obj",
"null",
"{\n return false;\n }",
"return false;",
"false",
"if (this.getClass() != obj.getClass()) {\n return false;\n }",
"this.getClass() != obj.getClass()",
"this.getClass()",
"this.getClass",
"this",
"obj.getClass()",
"obj.getClass",
"obj",
"{\n return false;\n }",
"return false;",
"false",
"Pair p = (Pair) obj;",
"p",
"(Pair) obj",
"return this.x == p.x && this.y == p.y;",
"this.x == p.x && this.y == p.y",
"this.x == p.x",
"this.x",
"this",
"this.x",
"p.x",
"p",
"p.x",
"this.y == p.y",
"this.y",
"this",
"this.y",
"p.y",
"p",
"p.y",
"Object obj",
"obj",
"Comparable",
"static class tuple implements Comparable<tuple>{\n int x;int y;int z;\n public tuple(int x, int y, int z){\n this.x=x;\n this.y=y;\n this.z=z;\n }\n public int compareTo(tuple other) {\n if(this.x!=other.x)\n return this.x-other.x;\n else {\n if(this.y!=other.y)\n return this.y-other.y;\n else\n return this.z-other.z;\n }\n }\n public boolean equal(tuple t){\n return this.x==t.x && this.y==t.y;\n }\n }",
"tuple",
"int x;",
"x",
"int y;",
"y",
"int z;",
"z",
"public tuple(int x, int y, int z){\n this.x=x;\n this.y=y;\n this.z=z;\n }",
"tuple",
"{\n this.x=x;\n this.y=y;\n this.z=z;\n }",
"this.x=x",
"this.x",
"this",
"this.x",
"x",
"this.y=y",
"this.y",
"this",
"this.y",
"y",
"this.z=z",
"this.z",
"this",
"this.z",
"z",
"int x",
"x",
"int y",
"y",
"int z",
"z",
"public int compareTo(tuple other) {\n if(this.x!=other.x)\n return this.x-other.x;\n else {\n if(this.y!=other.y)\n return this.y-other.y;\n else\n return this.z-other.z;\n }\n }",
"compareTo",
"{\n if(this.x!=other.x)\n return this.x-other.x;\n else {\n if(this.y!=other.y)\n return this.y-other.y;\n else\n return this.z-other.z;\n }\n }",
"if(this.x!=other.x)\n return this.x-other.x;\n else {\n if(this.y!=other.y)\n return this.y-other.y;\n else\n return this.z-other.z;\n }",
"this.x!=other.x",
"this.x",
"this",
"this.x",
"other.x",
"other",
"other.x",
"return this.x-other.x;",
"this.x-other.x",
"this.x",
"this",
"this.x",
"other.x",
"other",
"other.x",
"{\n if(this.y!=other.y)\n return this.y-other.y;\n else\n return this.z-other.z;\n }",
"if(this.y!=other.y)\n return this.y-other.y;\n else\n return this.z-other.z;",
"this.y!=other.y",
"this.y",
"this",
"this.y",
"other.y",
"other",
"other.y",
"return this.y-other.y;",
"this.y-other.y",
"this.y",
"this",
"this.y",
"other.y",
"other",
"other.y",
"return this.z-other.z;",
"this.z-other.z",
"this.z",
"this",
"this.z",
"other.z",
"other",
"other.z",
"tuple other",
"other",
"public boolean equal(tuple t){\n return this.x==t.x && this.y==t.y;\n }",
"equal",
"{\n return this.x==t.x && this.y==t.y;\n }",
"return this.x==t.x && this.y==t.y;",
"this.x==t.x && this.y==t.y",
"this.x==t.x",
"this.x",
"this",
"this.x",
"t.x",
"t",
"t.x",
"this.y==t.y",
"this.y",
"this",
"this.y",
"t.y",
"t",
"t.y",
"tuple t",
"t",
"Comparable",
"static class visit {\n int x;\n boolean y;\n public visit(int x, boolean y){\n this.x=x;\n this.y=y;\n }\n }",
"visit",
"int x;",
"x",
"boolean y;",
"y",
"public visit(int x, boolean y){\n this.x=x;\n this.y=y;\n }",
"visit",
"{\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",
"boolean y",
"y",
"public class Main {\n static PrintWriter pw;\n static int[] visit;\n static int max;\n static int[] arr;\n static void dfs(int i, int c) {\n visit[i-1]=c;\n max=Math.max(c, max);\n int lim=arr.length/i;\n for(int j=2; j<=lim; j++){\n if(visit[i*j-1]<c+1 && arr[i*j-1]>arr[i-1]){\n dfs(i*j, c+1);\n }\n }\n }\n public static long gcf(long x, long y) {\n while(x%y!=0 && y%x!=0) {\n if(x>y)\n x%=y;\n else\n y%=x;\n }\n return x>y? y:x;\n }\n static int ceildiv(int x, int y){\n return x%y==0? x/y: x/y+1;\n }\n static int count1s(int x){\n int ans=0;\n while(x>0){\n ans+=(x&1);\n x>>=1;\n }\n return ans;\n }\n static void print(int n){\n while(n-->0)\n pw.print(0+\" \");\n }\n static boolean binary(String s){\n for(int i=0; i<s.length(); i++)\n if(s.charAt(i)>'1')\n return false;\n return true;\n }\n public static void main(String[] args) throws Exception {\n Scanner sc= new Scanner(System.in);\n pw = new PrintWriter(System.out);\n String s=sc.next(),t=sc.next();\n if(s.length()==t.length()-1 && t.substring(0, t.length()-1).equals(s)){\n pw.println(\"Yes\");\n }else{\n pw.println(\"No\");\n }\n pw.close();\n }\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader r) {\n br = new BufferedReader(r);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public int[] nextArr(int n) throws IOException {\n int[] arr = new int[n];\n for (int i = 0; i < arr.length; i++)\n arr[i] = nextInt();\n return arr;\n }\n public Integer[] nextsort(int n) throws IOException{\n Integer[] arr=new Integer[n];\n for(int i=0; i<n; i++)\n arr[i]=nextInt();\n return arr;\n }\n public boolean ready() throws IOException {\n return br.ready();\n }\n }\n static class Pair implements Comparable<Pair>{\n int x;\n int y;\n public Pair(int x, int y) {\n this.x=x;\n this.y=y;\n }\n public int hashCode() {\n return (this.x+\"\"+this.y).hashCode();\n }\n public int compareTo(Pair other) {\n if(this.x!=other.x)\n return this.x-other.x;\n else {\n return this.y-other.y;\n }\n }\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (this.getClass() != obj.getClass()) {\n return false;\n }\n Pair p = (Pair) obj;\n return this.x == p.x && this.y == p.y;\n }\n }\n static class tuple implements Comparable<tuple>{\n int x;int y;int z;\n public tuple(int x, int y, int z){\n this.x=x;\n this.y=y;\n this.z=z;\n }\n public int compareTo(tuple other) {\n if(this.x!=other.x)\n return this.x-other.x;\n else {\n if(this.y!=other.y)\n return this.y-other.y;\n else\n return this.z-other.z;\n }\n }\n public boolean equal(tuple t){\n return this.x==t.x && this.y==t.y;\n }\n }\n static class visit {\n int x;\n boolean y;\n public visit(int x, boolean y){\n this.x=x;\n this.y=y;\n }\n }\n}",
"public class Main {\n static PrintWriter pw;\n static int[] visit;\n static int max;\n static int[] arr;\n static void dfs(int i, int c) {\n visit[i-1]=c;\n max=Math.max(c, max);\n int lim=arr.length/i;\n for(int j=2; j<=lim; j++){\n if(visit[i*j-1]<c+1 && arr[i*j-1]>arr[i-1]){\n dfs(i*j, c+1);\n }\n }\n }\n public static long gcf(long x, long y) {\n while(x%y!=0 && y%x!=0) {\n if(x>y)\n x%=y;\n else\n y%=x;\n }\n return x>y? y:x;\n }\n static int ceildiv(int x, int y){\n return x%y==0? x/y: x/y+1;\n }\n static int count1s(int x){\n int ans=0;\n while(x>0){\n ans+=(x&1);\n x>>=1;\n }\n return ans;\n }\n static void print(int n){\n while(n-->0)\n pw.print(0+\" \");\n }\n static boolean binary(String s){\n for(int i=0; i<s.length(); i++)\n if(s.charAt(i)>'1')\n return false;\n return true;\n }\n public static void main(String[] args) throws Exception {\n Scanner sc= new Scanner(System.in);\n pw = new PrintWriter(System.out);\n String s=sc.next(),t=sc.next();\n if(s.length()==t.length()-1 && t.substring(0, t.length()-1).equals(s)){\n pw.println(\"Yes\");\n }else{\n pw.println(\"No\");\n }\n pw.close();\n }\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader r) {\n br = new BufferedReader(r);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public int[] nextArr(int n) throws IOException {\n int[] arr = new int[n];\n for (int i = 0; i < arr.length; i++)\n arr[i] = nextInt();\n return arr;\n }\n public Integer[] nextsort(int n) throws IOException{\n Integer[] arr=new Integer[n];\n for(int i=0; i<n; i++)\n arr[i]=nextInt();\n return arr;\n }\n public boolean ready() throws IOException {\n return br.ready();\n }\n }\n static class Pair implements Comparable<Pair>{\n int x;\n int y;\n public Pair(int x, int y) {\n this.x=x;\n this.y=y;\n }\n public int hashCode() {\n return (this.x+\"\"+this.y).hashCode();\n }\n public int compareTo(Pair other) {\n if(this.x!=other.x)\n return this.x-other.x;\n else {\n return this.y-other.y;\n }\n }\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (this.getClass() != obj.getClass()) {\n return false;\n }\n Pair p = (Pair) obj;\n return this.x == p.x && this.y == p.y;\n }\n }\n static class tuple implements Comparable<tuple>{\n int x;int y;int z;\n public tuple(int x, int y, int z){\n this.x=x;\n this.y=y;\n this.z=z;\n }\n public int compareTo(tuple other) {\n if(this.x!=other.x)\n return this.x-other.x;\n else {\n if(this.y!=other.y)\n return this.y-other.y;\n else\n return this.z-other.z;\n }\n }\n public boolean equal(tuple t){\n return this.x==t.x && this.y==t.y;\n }\n }\n static class visit {\n int x;\n boolean y;\n public visit(int x, boolean y){\n this.x=x;\n this.y=y;\n }\n }\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main {
static PrintWriter pw;
static int[] visit;
static int max;
static int[] arr;
static void dfs(int i, int c) {
visit[i-1]=c;
max=Math.max(c, max);
int lim=arr.length/i;
for(int j=2; j<=lim; j++){
if(visit[i*j-1]<c+1 && arr[i*j-1]>arr[i-1]){
dfs(i*j, c+1);
}
}
}
public static long gcf(long x, long y) {
while(x%y!=0 && y%x!=0) {
if(x>y)
x%=y;
else
y%=x;
}
return x>y? y:x;
}
static int ceildiv(int x, int y){
return x%y==0? x/y: x/y+1;
}
static int count1s(int x){
int ans=0;
while(x>0){
ans+=(x&1);
x>>=1;
}
return ans;
}
static void print(int n){
while(n-->0)
pw.print(0+" ");
}
static boolean binary(String s){
for(int i=0; i<s.length(); i++)
if(s.charAt(i)>'1')
return false;
return true;
}
public static void main(String[] args) throws Exception {
Scanner sc= new Scanner(System.in);
pw = new PrintWriter(System.out);
String s=sc.next(),t=sc.next();
if(s.length()==t.length()-1 && t.substring(0, t.length()-1).equals(s)){
pw.println("Yes");
}else{
pw.println("No");
}
pw.close();
}
static class Scanner {
StringTokenizer st;
BufferedReader br;
public Scanner(InputStream s) {
br = new BufferedReader(new InputStreamReader(s));
}
public Scanner(FileReader r) {
br = new BufferedReader(r);
}
public String next() throws IOException {
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(br.readLine());
return st.nextToken();
}
public int nextInt() throws IOException {
return Integer.parseInt(next());
}
public long nextLong() throws IOException {
return Long.parseLong(next());
}
public String nextLine() throws IOException {
return br.readLine();
}
public double nextDouble() throws IOException {
return Double.parseDouble(next());
}
public int[] nextArr(int n) throws IOException {
int[] arr = new int[n];
for (int i = 0; i < arr.length; i++)
arr[i] = nextInt();
return arr;
}
public Integer[] nextsort(int n) throws IOException{
Integer[] arr=new Integer[n];
for(int i=0; i<n; i++)
arr[i]=nextInt();
return arr;
}
public boolean ready() throws IOException {
return br.ready();
}
}
static class Pair implements Comparable<Pair>{
int x;
int y;
public Pair(int x, int y) {
this.x=x;
this.y=y;
}
public int hashCode() {
return (this.x+""+this.y).hashCode();
}
public int compareTo(Pair other) {
if(this.x!=other.x)
return this.x-other.x;
else {
return this.y-other.y;
}
}
public boolean equals(Object obj) {
if (obj == null) {
return false;
}
if (this.getClass() != obj.getClass()) {
return false;
}
Pair p = (Pair) obj;
return this.x == p.x && this.y == p.y;
}
}
static class tuple implements Comparable<tuple>{
int x;int y;int z;
public tuple(int x, int y, int z){
this.x=x;
this.y=y;
this.z=z;
}
public int compareTo(tuple other) {
if(this.x!=other.x)
return this.x-other.x;
else {
if(this.y!=other.y)
return this.y-other.y;
else
return this.z-other.z;
}
}
public boolean equal(tuple t){
return this.x==t.x && this.y==t.y;
}
}
static class visit {
int x;
boolean y;
public visit(int x, boolean y){
this.x=x;
this.y=y;
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
0,
13,
2,
13,
13,
0,
13,
2,
13,
13,
0,
13,
17,
29,
13,
23,
13,
23,
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,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
29,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
192,
17
],
[
192,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
29,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
28,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
28,
45
],
[
45,
46
],
[
45,
47
],
[
20,
48
],
[
48,
49
],
[
18,
50
],
[
50,
51
],
[
18,
52
],
[
52,
53
],
[
192,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
56,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
56,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
56,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
77,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
81,
85
],
[
73,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
73,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
56,
98
],
[
98,
99
],
[
99,
100
],
[
54,
101
],
[
101,
102
],
[
192,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
103,
107
],
[
107,
108
],
[
103,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
103,
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
],
[
133,
134
],
[
128,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
117,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
103,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
147,
150
],
[
150,
151
],
[
103,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
156,
159
],
[
159,
160
],
[
103,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
165,
168
],
[
168,
169
],
[
103,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
176,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
187,
188
],
[
172,
189
],
[
189,
190
],
[
0,
191
],
[
191,
192
],
[
191,
193
]
] |
[
"\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n\tstatic long expo(long base, long exp) {\n\t\tlong t = 1L;\n\t\twhile (exp > 0) {\n\t\t\tif (exp % 2 != 0)\n\t\t\t\tt = (t * base);\n\n\t\t\tbase = (base * base);\n\t\t\texp /= 2;\n\t\t}\n\t\treturn t;\n\t}\n\n\tpublic static void main(String args[]) throws Exception {\n\t\tMyScanner sc = new MyScanner();\n\t\tPrintWriter pr = new PrintWriter(System.out);\n\t\tString a = sc.nextLine() , b = sc.nextLine();\n\t\t\n\t\tif(a.equals(b.substring(0, b.length() - 1)))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\tpr.close();\n\t}\n\n\tpublic static class MyScanner {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic MyScanner() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\n\tstatic long expo(long base, long exp) {\n\t\tlong t = 1L;\n\t\twhile (exp > 0) {\n\t\t\tif (exp % 2 != 0)\n\t\t\t\tt = (t * base);\n\n\t\t\tbase = (base * base);\n\t\t\texp /= 2;\n\t\t}\n\t\treturn t;\n\t}\n\n\tpublic static void main(String args[]) throws Exception {\n\t\tMyScanner sc = new MyScanner();\n\t\tPrintWriter pr = new PrintWriter(System.out);\n\t\tString a = sc.nextLine() , b = sc.nextLine();\n\t\t\n\t\tif(a.equals(b.substring(0, b.length() - 1)))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\tpr.close();\n\t}\n\n\tpublic static class MyScanner {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic MyScanner() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}\n}",
"Main",
"static long expo(long base, long exp) {\n\t\tlong t = 1L;\n\t\twhile (exp > 0) {\n\t\t\tif (exp % 2 != 0)\n\t\t\t\tt = (t * base);\n\n\t\t\tbase = (base * base);\n\t\t\texp /= 2;\n\t\t}\n\t\treturn t;\n\t}",
"expo",
"{\n\t\tlong t = 1L;\n\t\twhile (exp > 0) {\n\t\t\tif (exp % 2 != 0)\n\t\t\t\tt = (t * base);\n\n\t\t\tbase = (base * base);\n\t\t\texp /= 2;\n\t\t}\n\t\treturn t;\n\t}",
"long t = 1L;",
"t",
"1L",
"while (exp > 0) {\n\t\t\tif (exp % 2 != 0)\n\t\t\t\tt = (t * base);\n\n\t\t\tbase = (base * base);\n\t\t\texp /= 2;\n\t\t}",
"exp > 0",
"exp",
"0",
"{\n\t\t\tif (exp % 2 != 0)\n\t\t\t\tt = (t * base);\n\n\t\t\tbase = (base * base);\n\t\t\texp /= 2;\n\t\t}",
"if (exp % 2 != 0)\n\t\t\t\tt = (t * base);",
"exp % 2 != 0",
"exp % 2",
"exp",
"2",
"0",
"t = (t * base)",
"t",
"(t * base)",
"t",
"base",
"base = (base * base)",
"base",
"(base * base)",
"base",
"base",
"exp /= 2",
"exp",
"2",
"return t;",
"t",
"long base",
"base",
"long exp",
"exp",
"public static void main(String args[]) throws Exception {\n\t\tMyScanner sc = new MyScanner();\n\t\tPrintWriter pr = new PrintWriter(System.out);\n\t\tString a = sc.nextLine() , b = sc.nextLine();\n\t\t\n\t\tif(a.equals(b.substring(0, b.length() - 1)))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\tpr.close();\n\t}",
"main",
"{\n\t\tMyScanner sc = new MyScanner();\n\t\tPrintWriter pr = new PrintWriter(System.out);\n\t\tString a = sc.nextLine() , b = sc.nextLine();\n\t\t\n\t\tif(a.equals(b.substring(0, b.length() - 1)))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\tpr.close();\n\t}",
"MyScanner sc = new MyScanner();",
"sc",
"new MyScanner()",
"PrintWriter pr = new PrintWriter(System.out);",
"pr",
"new PrintWriter(System.out)",
"String a = sc.nextLine()",
"a",
"sc.nextLine()",
"sc.nextLine",
"sc",
"b = sc.nextLine();",
"b",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(a.equals(b.substring(0, b.length() - 1)))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");",
"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",
"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\"",
"pr.close()",
"pr.close",
"pr",
"String args[]",
"args",
"public static class MyScanner {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic MyScanner() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}",
"MyScanner",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public MyScanner() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}",
"MyScanner",
"{\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}",
"while (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"try {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t}",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"nextDouble",
"{\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}",
"nextLine",
"{\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}",
"String str = \"\";",
"str",
"\"\"",
"try {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"IOException e",
"{\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\tstr = br.readLine();\n\t\t\t}",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n\n\tstatic long expo(long base, long exp) {\n\t\tlong t = 1L;\n\t\twhile (exp > 0) {\n\t\t\tif (exp % 2 != 0)\n\t\t\t\tt = (t * base);\n\n\t\t\tbase = (base * base);\n\t\t\texp /= 2;\n\t\t}\n\t\treturn t;\n\t}\n\n\tpublic static void main(String args[]) throws Exception {\n\t\tMyScanner sc = new MyScanner();\n\t\tPrintWriter pr = new PrintWriter(System.out);\n\t\tString a = sc.nextLine() , b = sc.nextLine();\n\t\t\n\t\tif(a.equals(b.substring(0, b.length() - 1)))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\tpr.close();\n\t}\n\n\tpublic static class MyScanner {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic MyScanner() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}\n}",
"public class Main {\n\n\tstatic long expo(long base, long exp) {\n\t\tlong t = 1L;\n\t\twhile (exp > 0) {\n\t\t\tif (exp % 2 != 0)\n\t\t\t\tt = (t * base);\n\n\t\t\tbase = (base * base);\n\t\t\texp /= 2;\n\t\t}\n\t\treturn t;\n\t}\n\n\tpublic static void main(String args[]) throws Exception {\n\t\tMyScanner sc = new MyScanner();\n\t\tPrintWriter pr = new PrintWriter(System.out);\n\t\tString a = sc.nextLine() , b = sc.nextLine();\n\t\t\n\t\tif(a.equals(b.substring(0, b.length() - 1)))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\tpr.close();\n\t}\n\n\tpublic static class MyScanner {\n\t\tBufferedReader br;\n\t\tStringTokenizer st;\n\n\t\tpublic MyScanner() {\n\t\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\n\t\tString next() {\n\t\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\t\ttry {\n\t\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tint nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tlong nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tdouble nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tString nextLine() {\n\t\t\tString str = \"\";\n\t\t\ttry {\n\t\t\t\tstr = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t}\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class Main {
static long expo(long base, long exp) {
long t = 1L;
while (exp > 0) {
if (exp % 2 != 0)
t = (t * base);
base = (base * base);
exp /= 2;
}
return t;
}
public static void main(String args[]) throws Exception {
MyScanner sc = new MyScanner();
PrintWriter pr = new PrintWriter(System.out);
String a = sc.nextLine() , b = sc.nextLine();
if(a.equals(b.substring(0, b.length() - 1)))
System.out.println("Yes");
else
System.out.println("No");
pr.close();
}
public static class MyScanner {
BufferedReader br;
StringTokenizer st;
public MyScanner() {
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,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
41,
13,
2,
4,
18,
13,
4,
18,
13,
14,
2,
2,
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
],
[
61,
5
],
[
61,
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
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
28,
32
],
[
32,
33
],
[
33,
34
],
[
8,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
35,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
35,
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 a = sc.next().trim();\n String b = sc.next().trim();\n \n int len = b.length() - a.length();\n \n if (len == 1 && b.startsWith(a)) {\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 a = sc.next().trim();\n String b = sc.next().trim();\n \n int len = b.length() - a.length();\n \n if (len == 1 && b.startsWith(a)) {\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 a = sc.next().trim();\n String b = sc.next().trim();\n \n int len = b.length() - a.length();\n \n if (len == 1 && b.startsWith(a)) {\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 a = sc.next().trim();\n String b = sc.next().trim();\n \n int len = b.length() - a.length();\n \n if (len == 1 && b.startsWith(a)) {\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 a = sc.next().trim();",
"a",
"sc.next().trim()",
"sc.next().trim",
"sc.next()",
"sc.next",
"sc",
"String b = sc.next().trim();",
"b",
"sc.next().trim()",
"sc.next().trim",
"sc.next()",
"sc.next",
"sc",
"int len = b.length() - a.length();",
"len",
"b.length() - a.length()",
"b.length()",
"b.length",
"b",
"a.length()",
"a.length",
"a",
"if (len == 1 && b.startsWith(a)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"len == 1 && b.startsWith(a)",
"len == 1",
"len",
"1",
"b.startsWith(a)",
"b.startsWith",
"b",
"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 public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n String a = sc.next().trim();\n String b = sc.next().trim();\n \n int len = b.length() - a.length();\n \n if (len == 1 && b.startsWith(a)) {\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 a = sc.next().trim();\n String b = sc.next().trim();\n \n int len = b.length() - a.length();\n \n if (len == 1 && b.startsWith(a)) {\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 a = sc.next().trim();
String b = sc.next().trim();
int len = b.length() - a.length();
if (len == 1 && b.startsWith(a)) {
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,
29,
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
],
[
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
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
6,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
] |
[
"import java.util.*;\npublic class Main{\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String a = in.next();\n String b = in.next();\n for (int i = 0; i < a.length(); i++) {\n if(a.charAt(i)!=b.charAt(i)){\n System.out.println(\"No\");return;\n }\n }\n System.out.println(\"Yes\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String a = in.next();\n String b = in.next();\n for (int i = 0; i < a.length(); i++) {\n if(a.charAt(i)!=b.charAt(i)){\n System.out.println(\"No\");return;\n }\n }\n System.out.println(\"Yes\");\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String a = in.next();\n String b = in.next();\n for (int i = 0; i < a.length(); i++) {\n if(a.charAt(i)!=b.charAt(i)){\n System.out.println(\"No\");return;\n }\n }\n System.out.println(\"Yes\");\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n String a = in.next();\n String b = in.next();\n for (int i = 0; i < a.length(); i++) {\n if(a.charAt(i)!=b.charAt(i)){\n System.out.println(\"No\");return;\n }\n }\n System.out.println(\"Yes\");\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"String a = in.next();",
"a",
"in.next()",
"in.next",
"in",
"String b = in.next();",
"b",
"in.next()",
"in.next",
"in",
"for (int i = 0; i < a.length(); i++) {\n if(a.charAt(i)!=b.charAt(i)){\n System.out.println(\"No\");return;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a.length()",
"i",
"a.length()",
"a.length",
"a",
"i++",
"i++",
"i",
"{\n if(a.charAt(i)!=b.charAt(i)){\n System.out.println(\"No\");return;\n }\n }",
"{\n if(a.charAt(i)!=b.charAt(i)){\n System.out.println(\"No\");return;\n }\n }",
"if(a.charAt(i)!=b.charAt(i)){\n System.out.println(\"No\");return;\n }",
"a.charAt(i)!=b.charAt(i)",
"a.charAt(i)",
"a.charAt",
"a",
"i",
"b.charAt(i)",
"b.charAt",
"b",
"i",
"{\n System.out.println(\"No\");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 public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String a = in.next();\n String b = in.next();\n for (int i = 0; i < a.length(); i++) {\n if(a.charAt(i)!=b.charAt(i)){\n System.out.println(\"No\");return;\n }\n }\n System.out.println(\"Yes\");\n }\n}",
"public class Main{\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String a = in.next();\n String b = in.next();\n for (int i = 0; i < a.length(); i++) {\n if(a.charAt(i)!=b.charAt(i)){\n System.out.println(\"No\");return;\n }\n }\n System.out.println(\"Yes\");\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String a = in.next();
String b = in.next();
for (int i = 0; i < a.length(); i++) {
if(a.charAt(i)!=b.charAt(i)){
System.out.println("No");return;
}
}
System.out.println("Yes");
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
14,
2,
2,
4,
18,
13,
2,
4,
18,
13,
4,
18,
13,
17,
2,
4,
18,
13,
2,
4,
18,
13,
4,
18,
13,
17,
29,
17,
29,
8,
2,
4,
18,
13,
13,
17,
17,
17,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
4,
18,
18,
13,
13,
4,
13,
4,
18,
4,
18,
13,
4,
18,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
80,
8
],
[
80,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
15,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
18,
22
],
[
22,
23
],
[
23,
24
],
[
14,
25
],
[
13,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
12,
38
],
[
38,
39
],
[
11,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
42,
47
],
[
41,
48
],
[
41,
49
],
[
9,
50
],
[
50,
51
],
[
9,
52
],
[
52,
53
],
[
80,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
65,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
54,
77
],
[
77,
78
],
[
0,
79
],
[
79,
80
],
[
79,
81
]
] |
[
"import java.util.*;\n\n\nimport java.io.*;\n\npublic class Main {\n \n public static String solve(String s1 , String s2){\n if(Math.abs(s1.length() - s2.length()) > 1 || Math.abs(s1.length() - s2.length())== 0)\n return \"No\";\n return (s2.indexOf(s1) == 0) ? \"Yes\" : \"No\";\n }\n \n\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n System.out.println(solve(br.readLine().trim(),br.readLine().trim()));\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n \n public static String solve(String s1 , String s2){\n if(Math.abs(s1.length() - s2.length()) > 1 || Math.abs(s1.length() - s2.length())== 0)\n return \"No\";\n return (s2.indexOf(s1) == 0) ? \"Yes\" : \"No\";\n }\n \n\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n System.out.println(solve(br.readLine().trim(),br.readLine().trim()));\n }\n}",
"Main",
"public static String solve(String s1 , String s2){\n if(Math.abs(s1.length() - s2.length()) > 1 || Math.abs(s1.length() - s2.length())== 0)\n return \"No\";\n return (s2.indexOf(s1) == 0) ? \"Yes\" : \"No\";\n }",
"solve",
"{\n if(Math.abs(s1.length() - s2.length()) > 1 || Math.abs(s1.length() - s2.length())== 0)\n return \"No\";\n return (s2.indexOf(s1) == 0) ? \"Yes\" : \"No\";\n }",
"if(Math.abs(s1.length() - s2.length()) > 1 || Math.abs(s1.length() - s2.length())== 0)\n return \"No\";",
"Math.abs(s1.length() - s2.length()) > 1 || Math.abs(s1.length() - s2.length())== 0",
"Math.abs(s1.length() - s2.length()) > 1",
"Math.abs(s1.length() - s2.length())",
"Math.abs",
"Math",
"s1.length() - s2.length()",
"s1.length()",
"s1.length",
"s1",
"s2.length()",
"s2.length",
"s2",
"1",
"Math.abs(s1.length() - s2.length())== 0",
"Math.abs(s1.length() - s2.length())",
"Math.abs",
"Math",
"s1.length() - s2.length()",
"s1.length()",
"s1.length",
"s1",
"s2.length()",
"s2.length",
"s2",
"0",
"return \"No\";",
"\"No\"",
"return (s2.indexOf(s1) == 0) ? \"Yes\" : \"No\";",
"(s2.indexOf(s1) == 0) ? \"Yes\" : \"No\"",
"(s2.indexOf(s1) == 0)",
"s2.indexOf(s1)",
"s2.indexOf",
"s2",
"s1",
"0",
"\"Yes\"",
"\"No\"",
"String s1",
"s1",
"String s2",
"s2",
"public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n System.out.println(solve(br.readLine().trim(),br.readLine().trim()));\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n System.out.println(solve(br.readLine().trim(),br.readLine().trim()));\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"System.out.println(solve(br.readLine().trim(),br.readLine().trim()))",
"System.out.println",
"System.out",
"System",
"System.out",
"solve(br.readLine().trim(),br.readLine().trim())",
"solve",
"br.readLine().trim()",
"br.readLine().trim",
"br.readLine()",
"br.readLine",
"br",
"br.readLine().trim()",
"br.readLine().trim",
"br.readLine()",
"br.readLine",
"br",
"String[] args",
"args",
"public class Main {\n \n public static String solve(String s1 , String s2){\n if(Math.abs(s1.length() - s2.length()) > 1 || Math.abs(s1.length() - s2.length())== 0)\n return \"No\";\n return (s2.indexOf(s1) == 0) ? \"Yes\" : \"No\";\n }\n \n\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n System.out.println(solve(br.readLine().trim(),br.readLine().trim()));\n }\n}",
"public class Main {\n \n public static String solve(String s1 , String s2){\n if(Math.abs(s1.length() - s2.length()) > 1 || Math.abs(s1.length() - s2.length())== 0)\n return \"No\";\n return (s2.indexOf(s1) == 0) ? \"Yes\" : \"No\";\n }\n \n\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n System.out.println(solve(br.readLine().trim(),br.readLine().trim()));\n }\n}",
"Main"
] |
import java.util.*;
import java.io.*;
public class Main {
public static String solve(String s1 , String s2){
if(Math.abs(s1.length() - s2.length()) > 1 || Math.abs(s1.length() - s2.length())== 0)
return "No";
return (s2.indexOf(s1) == 0) ? "Yes" : "No";
}
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println(solve(br.readLine().trim(),br.readLine().trim()));
}
}
|
[
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,
2,
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,
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
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
28,
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
],
[
0,
55
],
[
55,
56
],
[
55,
57
]
] |
[
"import java.util.*;\npublic class Main{\n\tpublic static void main (String[] args){ \n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n \tString T = sc.next();\n \tif(T.length() == S.length()+1 && T.indexOf(S) == 0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main (String[] args){ \n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n \tString T = sc.next();\n \tif(T.length() == S.length()+1 && T.indexOf(S) == 0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main (String[] args){ \n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n \tString T = sc.next();\n \tif(T.length() == S.length()+1 && T.indexOf(S) == 0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }",
"main",
"{ \n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n \tString T = sc.next();\n \tif(T.length() == S.length()+1 && T.indexOf(S) == 0){\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(T.length() == S.length()+1 && T.indexOf(S) == 0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }",
"T.length() == S.length()+1 && T.indexOf(S) == 0",
"T.length() == S.length()+1",
"T.length()",
"T.length",
"T",
"S.length()+1",
"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",
"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 \tString T = sc.next();\n \tif(T.length() == S.length()+1 && T.indexOf(S) == 0){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\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 \tString T = sc.next();\n \tif(T.length() == S.length()+1 && T.indexOf(S) == 0){\n System.out.println(\"Yes\");\n }\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();
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,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
4,
18,
13,
17,
2,
13,
17,
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
],
[
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
],
[
33,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
36,
40
],
[
40,
41
],
[
40,
42
],
[
32,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
32,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
6,
55
],
[
55,
56
]
] |
[
"import java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\n\n int sLen = S.length();\n int tLen = T.length();\n if (S.equals(T.substring(0, tLen-1)))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\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\n int sLen = S.length();\n int tLen = T.length();\n if (S.equals(T.substring(0, tLen-1)))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\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 int sLen = S.length();\n int tLen = T.length();\n if (S.equals(T.substring(0, tLen-1)))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\n\n int sLen = S.length();\n int tLen = T.length();\n if (S.equals(T.substring(0, tLen-1)))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\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 sLen = S.length();",
"sLen",
"S.length()",
"S.length",
"S",
"int tLen = T.length();",
"tLen",
"T.length()",
"T.length",
"T",
"if (S.equals(T.substring(0, tLen-1)))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");",
"S.equals(T.substring(0, tLen-1))",
"S.equals",
"S",
"T.substring(0, tLen-1)",
"T.substring",
"T",
"0",
"tLen-1",
"tLen",
"1",
"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"
] |
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 sLen = S.length();
int tLen = T.length();
if (S.equals(T.substring(0, tLen-1)))
System.out.println("Yes");
else
System.out.println("No");
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
4,
18,
13,
41,
13,
20,
4,
18,
13,
8,
4,
18,
13,
13,
17,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
55,
8
],
[
55,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
13,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
13,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
13,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
13,
36
],
[
36,
37
],
[
36,
38
],
[
13,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
42,
47
],
[
42,
48
],
[
13,
49
],
[
49,
50
],
[
50,
51
],
[
9,
52
],
[
52,
53
],
[
0,
54
],
[
54,
55
],
[
54,
56
]
] |
[
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n \n String s = br.readLine();\n String t = br.readLine();\n t = t.substring(0, s.length());\n \n PrintWriter pw = new PrintWriter(System.out);\n pw.println((s.equals(t)) ? \"Yes\" : \"No\");\n pw.flush();\n \n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n \n String s = br.readLine();\n String t = br.readLine();\n t = t.substring(0, s.length());\n \n PrintWriter pw = new PrintWriter(System.out);\n pw.println((s.equals(t)) ? \"Yes\" : \"No\");\n pw.flush();\n \n }\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n \n String s = br.readLine();\n String t = br.readLine();\n t = t.substring(0, s.length());\n \n PrintWriter pw = new PrintWriter(System.out);\n pw.println((s.equals(t)) ? \"Yes\" : \"No\");\n pw.flush();\n \n }\n }",
"main",
"{\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n \n String s = br.readLine();\n String t = br.readLine();\n t = t.substring(0, s.length());\n \n PrintWriter pw = new PrintWriter(System.out);\n pw.println((s.equals(t)) ? \"Yes\" : \"No\");\n pw.flush();\n \n }\n }",
"try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n \n String s = br.readLine();\n String t = br.readLine();\n t = t.substring(0, s.length());\n \n PrintWriter pw = new PrintWriter(System.out);\n pw.println((s.equals(t)) ? \"Yes\" : \"No\");\n pw.flush();\n \n }",
"{\n \n String s = br.readLine();\n String t = br.readLine();\n t = t.substring(0, s.length());\n \n PrintWriter pw = new PrintWriter(System.out);\n pw.println((s.equals(t)) ? \"Yes\" : \"No\");\n pw.flush();\n \n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in))",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in))",
"new BufferedReader(new InputStreamReader(System.in))",
"String s = br.readLine();",
"s",
"br.readLine()",
"br.readLine",
"br",
"String t = br.readLine();",
"t",
"br.readLine()",
"br.readLine",
"br",
"t = t.substring(0, s.length())",
"t",
"t.substring(0, s.length())",
"t.substring",
"t",
"0",
"s.length()",
"s.length",
"s",
"PrintWriter pw = new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"pw.println((s.equals(t)) ? \"Yes\" : \"No\")",
"pw.println",
"pw",
"(s.equals(t)) ? \"Yes\" : \"No\"",
"(s.equals(t))",
"s.equals",
"s",
"t",
"\"Yes\"",
"\"No\"",
"pw.flush()",
"pw.flush",
"pw",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n \n String s = br.readLine();\n String t = br.readLine();\n t = t.substring(0, s.length());\n \n PrintWriter pw = new PrintWriter(System.out);\n pw.println((s.equals(t)) ? \"Yes\" : \"No\");\n pw.flush();\n \n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n \n String s = br.readLine();\n String t = br.readLine();\n t = t.substring(0, s.length());\n \n PrintWriter pw = new PrintWriter(System.out);\n pw.println((s.equals(t)) ? \"Yes\" : \"No\");\n pw.flush();\n \n }\n }\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
String s = br.readLine();
String t = br.readLine();
t = t.substring(0, s.length());
PrintWriter pw = new PrintWriter(System.out);
pw.println((s.equals(t)) ? "Yes" : "No");
pw.flush();
}
}
}
|
[
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,
4,
18,
13,
2,
4,
18,
13,
17,
30,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
30,
0,
13,
17,
3,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
90,
5
],
[
90,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
30,
34
],
[
25,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
8,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
39,
49
],
[
49,
50
],
[
50,
51
],
[
39,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
55,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
54,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
8,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
69,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
6,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
] |
[
"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 boolean judge = true;\n if(T.length() != S.length() + 1){\n judge = false;\n }\n \n for(int i =0; i<S.length(); i++){\n if(S.charAt(i) != T.charAt(i)){\n judge = false;\n break;\n }\n }\n \n if(judge == false){\n System.out.println(\"No\");\n }\n else{\n System.out.println(\"Yes\");\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 boolean judge = true;\n if(T.length() != S.length() + 1){\n judge = false;\n }\n \n for(int i =0; i<S.length(); i++){\n if(S.charAt(i) != T.charAt(i)){\n judge = false;\n break;\n }\n }\n \n if(judge == false){\n System.out.println(\"No\");\n }\n else{\n System.out.println(\"Yes\");\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 boolean judge = true;\n if(T.length() != S.length() + 1){\n judge = false;\n }\n \n for(int i =0; i<S.length(); i++){\n if(S.charAt(i) != T.charAt(i)){\n judge = false;\n break;\n }\n }\n \n if(judge == false){\n System.out.println(\"No\");\n }\n else{\n System.out.println(\"Yes\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String S = sc.nextLine();\n String T = sc.nextLine();\n boolean judge = true;\n if(T.length() != S.length() + 1){\n judge = false;\n }\n \n for(int i =0; i<S.length(); i++){\n if(S.charAt(i) != T.charAt(i)){\n judge = false;\n break;\n }\n }\n \n if(judge == false){\n System.out.println(\"No\");\n }\n else{\n System.out.println(\"Yes\");\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",
"boolean judge = true;",
"judge",
"true",
"if(T.length() != S.length() + 1){\n judge = false;\n }",
"T.length() != S.length() + 1",
"T.length()",
"T.length",
"T",
"S.length() + 1",
"S.length()",
"S.length",
"S",
"1",
"{\n judge = false;\n }",
"judge = false",
"judge",
"false",
"for(int i =0; i<S.length(); i++){\n if(S.charAt(i) != T.charAt(i)){\n judge = false;\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(S.charAt(i) != T.charAt(i)){\n judge = false;\n break;\n }\n }",
"{\n if(S.charAt(i) != T.charAt(i)){\n judge = false;\n break;\n }\n }",
"if(S.charAt(i) != T.charAt(i)){\n judge = false;\n break;\n }",
"S.charAt(i) != T.charAt(i)",
"S.charAt(i)",
"S.charAt",
"S",
"i",
"T.charAt(i)",
"T.charAt",
"T",
"i",
"{\n judge = false;\n break;\n }",
"judge = false",
"judge",
"false",
"break;",
"if(judge == false){\n System.out.println(\"No\");\n }\n else{\n System.out.println(\"Yes\");\n }",
"judge == false",
"judge",
"false",
"{\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",
"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 boolean judge = true;\n if(T.length() != S.length() + 1){\n judge = false;\n }\n \n for(int i =0; i<S.length(); i++){\n if(S.charAt(i) != T.charAt(i)){\n judge = false;\n break;\n }\n }\n \n if(judge == false){\n System.out.println(\"No\");\n }\n else{\n System.out.println(\"Yes\");\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 boolean judge = true;\n if(T.length() != S.length() + 1){\n judge = false;\n }\n \n for(int i =0; i<S.length(); i++){\n if(S.charAt(i) != T.charAt(i)){\n judge = false;\n break;\n }\n }\n \n if(judge == false){\n System.out.println(\"No\");\n }\n else{\n System.out.println(\"Yes\");\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();
boolean judge = true;
if(T.length() != S.length() + 1){
judge = false;
}
for(int i =0; i<S.length(); i++){
if(S.charAt(i) != T.charAt(i)){
judge = false;
break;
}
}
if(judge == false){
System.out.println("No");
}
else{
System.out.println("Yes");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
2,
17,
17,
41,
13,
17,
41,
13,
20,
17,
41,
13,
20,
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,
41,
13,
17,
42,
2,
40,
13,
17,
30,
4,
13,
4,
18,
13,
23,
13,
12,
13,
30,
29,
2,
2,
2,
2,
13,
13,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
2,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
2,
2,
2,
13,
13,
2,
13,
13,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
4,
18,
13,
13,
4,
18,
13,
17,
23,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
0,
13,
13,
0,
13,
2,
13,
13,
0,
13,
17,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
20,
29,
4,
18,
13,
13,
23,
13,
12,
13,
30,
0,
18,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
40,
18,
13,
13,
30,
11,
1,
41,
13,
2,
17,
13,
2,
13,
17,
1,
0,
13,
13,
30,
0,
18,
13,
13,
17,
12,
13,
30,
14,
2,
13,
17,
29,
17,
11,
1,
41,
13,
17,
2,
2,
13,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
29,
17,
29,
17,
23,
13,
12,
13,
30,
14,
2,
13,
17,
29,
13,
29,
4,
13,
13,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
4,
13,
14,
4,
18,
4,
18,
13,
17,
4,
18,
13,
13,
4,
18,
13,
17,
4,
18,
13,
17,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
13,
0,
13,
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
],
[
15,
16
],
[
15,
17
],
[
13,
18
],
[
18,
19
],
[
18,
20
],
[
13,
21
],
[
21,
22
],
[
13,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
13,
28
],
[
28,
29
],
[
28,
30
],
[
13,
31
],
[
31,
32
],
[
31,
33
],
[
13,
35
],
[
35,
36
],
[
35,
37
],
[
13,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
41,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
51,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
40,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
13,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
13,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
13,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
89,
94
],
[
94,
95
],
[
95,
96
],
[
85,
97
],
[
97,
98
],
[
98,
99
],
[
83,
100
],
[
100,
101
],
[
13,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
107,
113
],
[
106,
114
],
[
102,
115
],
[
115,
116
],
[
102,
117
],
[
117,
118
],
[
13,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
119,
128
],
[
128,
129
],
[
119,
130
],
[
130,
131
],
[
13,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
142,
143
],
[
142,
144
],
[
137,
145
],
[
136,
146
],
[
132,
147
],
[
147,
148
],
[
132,
149
],
[
149,
150
],
[
13,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
156,
159
],
[
155,
160
],
[
160,
161
],
[
161,
162
],
[
160,
163
],
[
151,
164
],
[
164,
165
],
[
13,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
182
],
[
177,
183
],
[
183,
184
],
[
183,
185
],
[
176,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
188,
190
],
[
176,
191
],
[
191,
192
],
[
191,
193
],
[
168,
194
],
[
194,
195
],
[
166,
196
],
[
196,
197
],
[
166,
198
],
[
198,
199
],
[
13,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
202,
206
],
[
206,
207
],
[
206,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
210,
213
],
[
202,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
215,
218
],
[
200,
219
],
[
219,
220
],
[
13,
221
],
[
221,
222
],
[
221,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
224,
228
],
[
223,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
231,
233
],
[
229,
234
],
[
234,
235
],
[
234,
236
],
[
229,
237
],
[
237,
238
],
[
238,
239
],
[
229,
240
],
[
241,
241
],
[
241,
242
],
[
242,
243
],
[
243,
244
],
[
244,
245
],
[
244,
246
],
[
242,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
250,
251
],
[
250,
252
],
[
252,
253
],
[
252,
254
],
[
248,
255
],
[
255,
256
],
[
255,
257
],
[
248,
258
],
[
258,
259
],
[
259,
260
],
[
259,
261
],
[
248,
262
],
[
262,
263
],
[
263,
264
],
[
264,
265
],
[
264,
266
],
[
263,
267
],
[
13,
268
],
[
268,
269
],
[
268,
270
],
[
270,
271
],
[
271,
272
],
[
272,
273
],
[
272,
274
],
[
271,
275
],
[
275,
276
],
[
270,
277
],
[
277,
278
],
[
278,
279
],
[
279,
280
],
[
279,
281
],
[
277,
282
],
[
282,
283
],
[
283,
284
],
[
283,
285
],
[
282,
286
],
[
277,
287
],
[
287,
288
],
[
288,
289
],
[
277,
290
],
[
291,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
294,
295
],
[
294,
296
],
[
293,
297
],
[
292,
298
],
[
298,
299
],
[
270,
300
],
[
300,
301
],
[
268,
302
],
[
302,
303
],
[
13,
304
],
[
304,
305
],
[
304,
306
],
[
306,
307
],
[
307,
308
],
[
308,
309
],
[
308,
310
],
[
307,
311
],
[
311,
312
],
[
306,
313
],
[
313,
314
],
[
314,
315
],
[
314,
316
],
[
314,
317
],
[
317,
318
],
[
317,
319
],
[
304,
320
],
[
320,
321
],
[
304,
322
],
[
322,
323
],
[
13,
324
],
[
324,
325
],
[
324,
326
],
[
326,
327
],
[
327,
328
],
[
327,
329
],
[
329,
330
],
[
326,
331
],
[
331,
332
],
[
331,
333
],
[
333,
334
],
[
326,
335
],
[
335,
336
],
[
336,
337
],
[
337,
338
],
[
338,
339
],
[
339,
340
],
[
338,
341
],
[
338,
342
],
[
342,
343
],
[
343,
344
],
[
336,
345
],
[
335,
346
],
[
346,
347
],
[
347,
348
],
[
346,
349
],
[
335,
350
],
[
350,
351
],
[
351,
352
],
[
350,
353
],
[
13,
354
],
[
354,
355
],
[
354,
356
],
[
356,
357
],
[
354,
358
],
[
358,
359
],
[
354,
360
],
[
360,
361
],
[
360,
362
],
[
362,
363
],
[
363,
364
],
[
363,
365
],
[
362,
366
],
[
366,
367
],
[
366,
368
],
[
360,
369
],
[
369,
370
],
[
360,
371
],
[
371,
372
]
] |
[
"import java.math.BigInteger;\nimport java.util.*;\nimport java.io.*;\nimport java.text.*;\n\nclass Main {\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 32768);\n static PrintWriter out = new PrintWriter(System.out);\n static StringTokenizer t;\n\n static String sn() {\n while (t == null || !t.hasMoreTokens()) {\n try {\n t = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }\n return t.nextToken();\n }\n\n static int ni() {\n return Integer.parseInt(sn());\n }\n\n static long nlo() {\n return Long.parseLong(sn());\n }\n\n public static void main(String args[]) {\n int t = 1;\n while (t-- > 0) {\n solve();\n }\n out.close();\n }\n\n static long mod = (long) 1e9 + 7;\n\n static long pro(long a, long b) {\n return (a % mod * b % mod) % mod;\n }\n\n static long add(long a, long b) {\n return (a + b) % mod;\n }\n\n static long sub(long a, long b) {\n return ((a % mod - b % mod) + mod) % mod;\n }\n\n static int maxn = 1000005;\n\n static int pow(int n) {\n return (int) (Math.log10(n) / Math.log10(2));\n }\n\n static long modpow(long x, long y) {\n long res = 1l;\n// x %= mod;\n while (y > 0) {\n if (y % 2 != 0)\n res *= x;\n x = x * x;\n y /= 2;\n }\n return res;\n }\n\n static class pair {\n String a;\n int b;\n\n pair(String x, int y) {\n a = x;\n b = y;\n }\n }\n\n static long modInverse(long n) {\n BigInteger n1 = new BigInteger(Long.toString(n));\n String s = (n1.modInverse(new BigInteger(Long.toString(mod)))).toString();\n return Long.parseLong(s);\n }\n\n static boolean v[] = new boolean[1000005];\n\n static void seive() {\n v[1] = true;\n for (int i = 2; i < 1000005; i++) {\n if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }\n }\n }\n\n static boolean isprime(long n) {\n if (n == 1)\n return false;\n for (int i = 2; i * i <= n; i++) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n static int gcd(int a, int b) {\n if (b == 0)\n return a;\n return gcd(b, a % b);\n }\n\n static DecimalFormat df = new DecimalFormat(\"0.000000000000000000000\");\n\n static void solve() {\n String s=sn();\n String t=sn();\n if(t.substring(0,s.length()).equals(s))\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }\n}\n",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.text.*;",
"text.*",
"java",
"class Main {\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 32768);\n static PrintWriter out = new PrintWriter(System.out);\n static StringTokenizer t;\n\n static String sn() {\n while (t == null || !t.hasMoreTokens()) {\n try {\n t = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }\n return t.nextToken();\n }\n\n static int ni() {\n return Integer.parseInt(sn());\n }\n\n static long nlo() {\n return Long.parseLong(sn());\n }\n\n public static void main(String args[]) {\n int t = 1;\n while (t-- > 0) {\n solve();\n }\n out.close();\n }\n\n static long mod = (long) 1e9 + 7;\n\n static long pro(long a, long b) {\n return (a % mod * b % mod) % mod;\n }\n\n static long add(long a, long b) {\n return (a + b) % mod;\n }\n\n static long sub(long a, long b) {\n return ((a % mod - b % mod) + mod) % mod;\n }\n\n static int maxn = 1000005;\n\n static int pow(int n) {\n return (int) (Math.log10(n) / Math.log10(2));\n }\n\n static long modpow(long x, long y) {\n long res = 1l;\n// x %= mod;\n while (y > 0) {\n if (y % 2 != 0)\n res *= x;\n x = x * x;\n y /= 2;\n }\n return res;\n }\n\n static class pair {\n String a;\n int b;\n\n pair(String x, int y) {\n a = x;\n b = y;\n }\n }\n\n static long modInverse(long n) {\n BigInteger n1 = new BigInteger(Long.toString(n));\n String s = (n1.modInverse(new BigInteger(Long.toString(mod)))).toString();\n return Long.parseLong(s);\n }\n\n static boolean v[] = new boolean[1000005];\n\n static void seive() {\n v[1] = true;\n for (int i = 2; i < 1000005; i++) {\n if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }\n }\n }\n\n static boolean isprime(long n) {\n if (n == 1)\n return false;\n for (int i = 2; i * i <= n; i++) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n static int gcd(int a, int b) {\n if (b == 0)\n return a;\n return gcd(b, a % b);\n }\n\n static DecimalFormat df = new DecimalFormat(\"0.000000000000000000000\");\n\n static void solve() {\n String s=sn();\n String t=sn();\n if(t.substring(0,s.length()).equals(s))\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }\n}",
"Main",
"static BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 32768);",
"br",
"new BufferedReader(new InputStreamReader(System.in), 32768)",
"static PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"static StringTokenizer t;",
"t",
"static long mod = (long) 1e9 + 7;",
"mod",
"(long) 1e9 + 7",
"(long) 1e9",
"7",
"static int maxn = 1000005;",
"maxn",
"1000005",
"static boolean v[] = new boolean[1000005];",
"v",
"new boolean[1000005]",
"1000005",
"static DecimalFormat df = new DecimalFormat(\"0.000000000000000000000\");",
"df",
"new DecimalFormat(\"0.000000000000000000000\")",
"static String sn() {\n while (t == null || !t.hasMoreTokens()) {\n try {\n t = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }\n return t.nextToken();\n }",
"sn",
"{\n while (t == null || !t.hasMoreTokens()) {\n try {\n t = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }\n return t.nextToken();\n }",
"while (t == null || !t.hasMoreTokens()) {\n try {\n t = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }",
"t == null || !t.hasMoreTokens()",
"t == null",
"t",
"null",
"!t.hasMoreTokens()",
"t.hasMoreTokens()",
"t.hasMoreTokens",
"t",
"{\n try {\n t = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }",
"try {\n t = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException();\n }",
"catch (IOException e) {\n throw new RuntimeException();\n }",
"IOException e",
"{\n throw new RuntimeException();\n }",
"throw new RuntimeException();",
"new RuntimeException()",
"{\n t = new StringTokenizer(br.readLine());\n }",
"t = new StringTokenizer(br.readLine())",
"t",
"new StringTokenizer(br.readLine())",
"return t.nextToken();",
"t.nextToken()",
"t.nextToken",
"t",
"static int ni() {\n return Integer.parseInt(sn());\n }",
"ni",
"{\n return Integer.parseInt(sn());\n }",
"return Integer.parseInt(sn());",
"Integer.parseInt(sn())",
"Integer.parseInt",
"Integer",
"sn()",
"sn",
"static long nlo() {\n return Long.parseLong(sn());\n }",
"nlo",
"{\n return Long.parseLong(sn());\n }",
"return Long.parseLong(sn());",
"Long.parseLong(sn())",
"Long.parseLong",
"Long",
"sn()",
"sn",
"public static void main(String args[]) {\n int t = 1;\n while (t-- > 0) {\n solve();\n }\n out.close();\n }",
"main",
"{\n int t = 1;\n while (t-- > 0) {\n solve();\n }\n out.close();\n }",
"int t = 1;",
"t",
"1",
"while (t-- > 0) {\n solve();\n }",
"t-- > 0",
"t--",
"t",
"0",
"{\n solve();\n }",
"solve()",
"solve",
"out.close()",
"out.close",
"out",
"String args[]",
"args",
"static long pro(long a, long b) {\n return (a % mod * b % mod) % mod;\n }",
"pro",
"{\n return (a % mod * b % mod) % mod;\n }",
"return (a % mod * b % mod) % mod;",
"(a % mod * b % mod) % mod",
"(a % mod * b % mod)",
"a % mod * b",
"a % mod",
"a",
"mod",
"b",
"mod",
"mod",
"long a",
"a",
"long b",
"b",
"static long add(long a, long b) {\n return (a + b) % mod;\n }",
"add",
"{\n return (a + b) % mod;\n }",
"return (a + b) % mod;",
"(a + b) % mod",
"(a + b)",
"a",
"b",
"mod",
"long a",
"a",
"long b",
"b",
"static long sub(long a, long b) {\n return ((a % mod - b % mod) + mod) % mod;\n }",
"sub",
"{\n return ((a % mod - b % mod) + mod) % mod;\n }",
"return ((a % mod - b % mod) + mod) % mod;",
"((a % mod - b % mod) + mod) % mod",
"((a % mod - b % mod) + mod)",
"(a % mod - b % mod)",
"a % mod",
"a",
"mod",
"b % mod",
"b",
"mod",
"mod",
"mod",
"long a",
"a",
"long b",
"b",
"static int pow(int n) {\n return (int) (Math.log10(n) / Math.log10(2));\n }",
"pow",
"{\n return (int) (Math.log10(n) / Math.log10(2));\n }",
"return (int) (Math.log10(n) / Math.log10(2));",
"(int) (Math.log10(n) / Math.log10(2))",
"Math.log10(n)",
"Math.log10",
"Math",
"n",
"Math.log10(2)",
"Math.log10",
"Math",
"2",
"int n",
"n",
"static long modpow(long x, long y) {\n long res = 1l;\n// x %= mod;\n while (y > 0) {\n if (y % 2 != 0)\n res *= x;\n x = x * x;\n y /= 2;\n }\n return res;\n }",
"modpow",
"{\n long res = 1l;\n// x %= mod;\n while (y > 0) {\n if (y % 2 != 0)\n res *= x;\n x = x * x;\n y /= 2;\n }\n return res;\n }",
"long res = 1l;",
"res",
"1l",
"while (y > 0) {\n if (y % 2 != 0)\n res *= x;\n x = x * x;\n y /= 2;\n }",
"y > 0",
"y",
"0",
"{\n if (y % 2 != 0)\n res *= x;\n x = x * x;\n y /= 2;\n }",
"if (y % 2 != 0)\n res *= x;",
"y % 2 != 0",
"y % 2",
"y",
"2",
"0",
"res *= x",
"res",
"x",
"x = x * x",
"x",
"x * x",
"x",
"x",
"y /= 2",
"y",
"2",
"return res;",
"res",
"long x",
"x",
"long y",
"y",
"static long modInverse(long n) {\n BigInteger n1 = new BigInteger(Long.toString(n));\n String s = (n1.modInverse(new BigInteger(Long.toString(mod)))).toString();\n return Long.parseLong(s);\n }",
"modInverse",
"{\n BigInteger n1 = new BigInteger(Long.toString(n));\n String s = (n1.modInverse(new BigInteger(Long.toString(mod)))).toString();\n return Long.parseLong(s);\n }",
"BigInteger n1 = new BigInteger(Long.toString(n));",
"n1",
"new BigInteger(Long.toString(n))",
"String s = (n1.modInverse(new BigInteger(Long.toString(mod)))).toString();",
"s",
"(n1.modInverse(new BigInteger(Long.toString(mod)))).toString()",
"(n1.modInverse(new BigInteger(Long.toString(mod)))).toString",
"(n1.modInverse(new BigInteger(Long.toString(mod))))",
"n1.modInverse",
"n1",
"new BigInteger(Long.toString(mod))",
"return Long.parseLong(s);",
"Long.parseLong(s)",
"Long.parseLong",
"Long",
"s",
"long n",
"n",
"static void seive() {\n v[1] = true;\n for (int i = 2; i < 1000005; i++) {\n if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }\n }\n }",
"seive",
"{\n v[1] = true;\n for (int i = 2; i < 1000005; i++) {\n if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }\n }\n }",
"v[1] = true",
"v[1]",
"v",
"1",
"true",
"for (int i = 2; i < 1000005; i++) {\n if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }\n }",
"int i = 2;",
"int i = 2;",
"i",
"2",
"i < 1000005",
"i",
"1000005",
"i++",
"i++",
"i",
"{\n if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }\n }",
"{\n if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }\n }",
"if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }",
"!v[i]",
"v[i]",
"v",
"i",
"{\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }",
"for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;",
"int j = 2 * i;",
"int j = 2 * i;",
"j",
"2 * i",
"2",
"i",
"j < 1000005",
"j",
"1000005",
"j += i",
"j += i",
"j",
"i",
"v[j] = true;",
"v[j] = true",
"v[j]",
"v",
"j",
"true",
"static boolean isprime(long n) {\n if (n == 1)\n return false;\n for (int i = 2; i * i <= n; i++) {\n if (n % i == 0)\n return false;\n }\n return true;\n }",
"isprime",
"{\n if (n == 1)\n return false;\n for (int i = 2; i * i <= n; i++) {\n if (n % i == 0)\n return false;\n }\n return true;\n }",
"if (n == 1)\n return false;",
"n == 1",
"n",
"1",
"return false;",
"false",
"for (int i = 2; i * i <= n; i++) {\n if (n % i == 0)\n return false;\n }",
"int i = 2;",
"int i = 2;",
"i",
"2",
"i * i <= n",
"i * i",
"i",
"i",
"n",
"i++",
"i++",
"i",
"{\n if (n % i == 0)\n return false;\n }",
"{\n if (n % i == 0)\n return false;\n }",
"if (n % i == 0)\n return false;",
"n % i == 0",
"n % i",
"n",
"i",
"0",
"return false;",
"false",
"return true;",
"true",
"long n",
"n",
"static int gcd(int a, int b) {\n if (b == 0)\n return a;\n return gcd(b, a % b);\n }",
"gcd",
"{\n if (b == 0)\n return a;\n return gcd(b, a % b);\n }",
"if (b == 0)\n return a;",
"b == 0",
"b",
"0",
"return a;",
"a",
"return gcd(b, a % b);",
"gcd(b, a % b)",
"gcd",
"b",
"a % b",
"a",
"b",
"int a",
"a",
"int b",
"b",
"static void solve() {\n String s=sn();\n String t=sn();\n if(t.substring(0,s.length()).equals(s))\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }",
"solve",
"{\n String s=sn();\n String t=sn();\n if(t.substring(0,s.length()).equals(s))\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }",
"String s=sn();",
"s",
"sn()",
"sn",
"String t=sn();",
"t",
"sn()",
"sn",
"if(t.substring(0,s.length()).equals(s))\n out.println(\"Yes\");\n else\n out.println(\"No\");",
"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",
"out.println(\"Yes\")",
"out.println",
"out",
"\"Yes\"",
"out.println(\"No\")",
"out.println",
"out",
"\"No\"",
"static class pair {\n String a;\n int b;\n\n pair(String x, int y) {\n a = x;\n b = y;\n }\n }",
"pair",
"String a;",
"a",
"int b;",
"b",
"pair(String x, int y) {\n a = x;\n b = y;\n }",
"pair",
"{\n a = x;\n b = y;\n }",
"a = x",
"a",
"x",
"b = y",
"b",
"y",
"String x",
"x",
"int y",
"y"
] |
import java.math.BigInteger;
import java.util.*;
import java.io.*;
import java.text.*;
class Main {
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 32768);
static PrintWriter out = new PrintWriter(System.out);
static StringTokenizer t;
static String sn() {
while (t == null || !t.hasMoreTokens()) {
try {
t = new StringTokenizer(br.readLine());
} catch (IOException e) {
throw new RuntimeException();
}
}
return t.nextToken();
}
static int ni() {
return Integer.parseInt(sn());
}
static long nlo() {
return Long.parseLong(sn());
}
public static void main(String args[]) {
int t = 1;
while (t-- > 0) {
solve();
}
out.close();
}
static long mod = (long) 1e9 + 7;
static long pro(long a, long b) {
return (a % mod * b % mod) % mod;
}
static long add(long a, long b) {
return (a + b) % mod;
}
static long sub(long a, long b) {
return ((a % mod - b % mod) + mod) % mod;
}
static int maxn = 1000005;
static int pow(int n) {
return (int) (Math.log10(n) / Math.log10(2));
}
static long modpow(long x, long y) {
long res = 1l;
// x %= mod;
while (y > 0) {
if (y % 2 != 0)
res *= x;
x = x * x;
y /= 2;
}
return res;
}
static class pair {
String a;
int b;
pair(String x, int y) {
a = x;
b = y;
}
}
static long modInverse(long n) {
BigInteger n1 = new BigInteger(Long.toString(n));
String s = (n1.modInverse(new BigInteger(Long.toString(mod)))).toString();
return Long.parseLong(s);
}
static boolean v[] = new boolean[1000005];
static void seive() {
v[1] = true;
for (int i = 2; i < 1000005; i++) {
if (!v[i]) {
for (int j = 2 * i; j < 1000005; j += i)
v[j] = true;
}
}
}
static boolean isprime(long n) {
if (n == 1)
return false;
for (int i = 2; i * i <= n; i++) {
if (n % i == 0)
return false;
}
return true;
}
static int gcd(int a, int b) {
if (b == 0)
return a;
return gcd(b, a % b);
}
static DecimalFormat df = new DecimalFormat("0.000000000000000000000");
static void solve() {
String s=sn();
String t=sn();
if(t.substring(0,s.length()).equals(s))
out.println("Yes");
else
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,
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,
40,
13,
14,
2,
2,
13,
17,
4,
18,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
12,
13,
30,
4,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
86,
5
],
[
86,
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
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
28,
38
],
[
38,
39
],
[
39,
40
],
[
28,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
44,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
43,
53
],
[
53,
54
],
[
54,
55
],
[
8,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
56,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
56,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
86,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
78,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
] |
[
"import java.util.Scanner;\npublic class Main {\n\t\t \n\t\tstatic void solve() {\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString S = sc.next();\n\t\t\tString T = sc.next();\n\t\t\tint res = 0;\n\t\t\tsc.close();\n\t\t\tfor(int i = 0; i<S.length();i++) {\n\t\t\t\tif(S.charAt(i)==T.charAt(i)) {\n\t\t\t\t\tres++;\n\t\t\t\t}\n\t\t\t}\t\n\t\t\tif(res +1>=T.length()) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.print(\"No\");\n\t\t}\n\t}\n\tpublic static void main(String[] args) {\n\t\tsolve();\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\t\t \n\t\tstatic void solve() {\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString S = sc.next();\n\t\t\tString T = sc.next();\n\t\t\tint res = 0;\n\t\t\tsc.close();\n\t\t\tfor(int i = 0; i<S.length();i++) {\n\t\t\t\tif(S.charAt(i)==T.charAt(i)) {\n\t\t\t\t\tres++;\n\t\t\t\t}\n\t\t\t}\t\n\t\t\tif(res +1>=T.length()) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.print(\"No\");\n\t\t}\n\t}\n\tpublic static void main(String[] args) {\n\t\tsolve();\n\t}\n\n}",
"Main",
"static void solve() {\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString S = sc.next();\n\t\t\tString T = sc.next();\n\t\t\tint res = 0;\n\t\t\tsc.close();\n\t\t\tfor(int i = 0; i<S.length();i++) {\n\t\t\t\tif(S.charAt(i)==T.charAt(i)) {\n\t\t\t\t\tres++;\n\t\t\t\t}\n\t\t\t}\t\n\t\t\tif(res +1>=T.length()) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.print(\"No\");\n\t\t}\n\t}",
"solve",
"{\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString S = sc.next();\n\t\t\tString T = sc.next();\n\t\t\tint res = 0;\n\t\t\tsc.close();\n\t\t\tfor(int i = 0; i<S.length();i++) {\n\t\t\t\tif(S.charAt(i)==T.charAt(i)) {\n\t\t\t\t\tres++;\n\t\t\t\t}\n\t\t\t}\t\n\t\t\tif(res +1>=T.length()) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.print(\"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",
"int res = 0;",
"res",
"0",
"sc.close()",
"sc.close",
"sc",
"for(int i = 0; i<S.length();i++) {\n\t\t\t\tif(S.charAt(i)==T.charAt(i)) {\n\t\t\t\t\tres++;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<S.length()",
"i",
"S.length()",
"S.length",
"S",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(S.charAt(i)==T.charAt(i)) {\n\t\t\t\t\tres++;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(S.charAt(i)==T.charAt(i)) {\n\t\t\t\t\tres++;\n\t\t\t\t}\n\t\t\t}",
"if(S.charAt(i)==T.charAt(i)) {\n\t\t\t\t\tres++;\n\t\t\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\t\t\tres++;\n\t\t\t\t}",
"res++",
"res",
"if(res +1>=T.length()) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.print(\"No\");\n\t\t}",
"res +1>=T.length()",
"res +1",
"res",
"1",
"T.length()",
"T.length",
"T",
"{\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}",
"System.out.print(\"Yes\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\t\tSystem.out.print(\"No\");\n\t\t}",
"System.out.print(\"No\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"No\"",
"public static void main(String[] args) {\n\t\tsolve();\n\t}",
"main",
"{\n\t\tsolve();\n\t}",
"solve()",
"solve",
"String[] args",
"args",
"public class Main {\n\t\t \n\t\tstatic void solve() {\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString S = sc.next();\n\t\t\tString T = sc.next();\n\t\t\tint res = 0;\n\t\t\tsc.close();\n\t\t\tfor(int i = 0; i<S.length();i++) {\n\t\t\t\tif(S.charAt(i)==T.charAt(i)) {\n\t\t\t\t\tres++;\n\t\t\t\t}\n\t\t\t}\t\n\t\t\tif(res +1>=T.length()) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.print(\"No\");\n\t\t}\n\t}\n\tpublic static void main(String[] args) {\n\t\tsolve();\n\t}\n\n}",
"public class Main {\n\t\t \n\t\tstatic void solve() {\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString S = sc.next();\n\t\t\tString T = sc.next();\n\t\t\tint res = 0;\n\t\t\tsc.close();\n\t\t\tfor(int i = 0; i<S.length();i++) {\n\t\t\t\tif(S.charAt(i)==T.charAt(i)) {\n\t\t\t\t\tres++;\n\t\t\t\t}\n\t\t\t}\t\n\t\t\tif(res +1>=T.length()) {\n\t\t\t\tSystem.out.print(\"Yes\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.print(\"No\");\n\t\t}\n\t}\n\tpublic static void main(String[] args) {\n\t\tsolve();\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
static void solve() {
Scanner sc = new Scanner(System.in);
String S = sc.next();
String T = sc.next();
int res = 0;
sc.close();
for(int i = 0; i<S.length();i++) {
if(S.charAt(i)==T.charAt(i)) {
res++;
}
}
if(res +1>=T.length()) {
System.out.print("Yes");
}
else {
System.out.print("No");
}
}
public static void main(String[] args) {
solve();
}
}
|
[
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,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
18,
13,
13,
30,
9,
0,
13,
17,
14,
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
],
[
78,
5
],
[
78,
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
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
31,
41
],
[
41,
42
],
[
42,
43
],
[
31,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
46,
55
],
[
55,
56
],
[
46,
57
],
[
57,
58
],
[
57,
59
],
[
8,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
60,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
6,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] s = sc.next().split(\"\");\n String[] t = sc.next().split(\"\");\n boolean flg = true;\n for (int i = 0; i < s.length; i++) {\n if (s[i].equals(t[i])) {continue;}\n else flg = false;\n }\n if (flg) {System.out.println(\"Yes\");}\n else System.out.println(\"No\");\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.next().split(\"\");\n String[] t = sc.next().split(\"\");\n boolean flg = true;\n for (int i = 0; i < s.length; i++) {\n if (s[i].equals(t[i])) {continue;}\n else flg = false;\n }\n if (flg) {System.out.println(\"Yes\");}\n else System.out.println(\"No\");\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] s = sc.next().split(\"\");\n String[] t = sc.next().split(\"\");\n boolean flg = true;\n for (int i = 0; i < s.length; i++) {\n if (s[i].equals(t[i])) {continue;}\n else flg = false;\n }\n if (flg) {System.out.println(\"Yes\");}\n else System.out.println(\"No\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String[] s = sc.next().split(\"\");\n String[] t = sc.next().split(\"\");\n boolean flg = true;\n for (int i = 0; i < s.length; i++) {\n if (s[i].equals(t[i])) {continue;}\n else flg = false;\n }\n if (flg) {System.out.println(\"Yes\");}\n else System.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",
"\"\"",
"boolean flg = true;",
"flg",
"true",
"for (int i = 0; i < s.length; i++) {\n if (s[i].equals(t[i])) {continue;}\n else flg = false;\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])) {continue;}\n else flg = false;\n }",
"{\n if (s[i].equals(t[i])) {continue;}\n else flg = false;\n }",
"if (s[i].equals(t[i])) {continue;}\n else flg = false;",
"s[i].equals(t[i])",
"s[i].equals",
"s[i]",
"s",
"i",
"t[i]",
"t",
"i",
"{continue;}",
"continue;",
"flg = false",
"flg",
"false",
"if (flg) {System.out.println(\"Yes\");}\n else System.out.println(\"No\");",
"flg",
"{System.out.println(\"Yes\");}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] s = sc.next().split(\"\");\n String[] t = sc.next().split(\"\");\n boolean flg = true;\n for (int i = 0; i < s.length; i++) {\n if (s[i].equals(t[i])) {continue;}\n else flg = false;\n }\n if (flg) {System.out.println(\"Yes\");}\n else System.out.println(\"No\");\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] s = sc.next().split(\"\");\n String[] t = sc.next().split(\"\");\n boolean flg = true;\n for (int i = 0; i < s.length; i++) {\n if (s[i].equals(t[i])) {continue;}\n else flg = false;\n }\n if (flg) {System.out.println(\"Yes\");}\n else System.out.println(\"No\");\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().split("");
String[] t = sc.next().split("");
boolean flg = true;
for (int i = 0; i < s.length; i++) {
if (s[i].equals(t[i])) {continue;}
else flg = false;
}
if (flg) {System.out.println("Yes");}
else System.out.println("No");
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
13,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
4,
18,
13,
14,
2,
2,
4,
18,
13,
4,
18,
13,
4,
18,
13,
13,
30,
4,
18,
13,
17,
4,
18,
13,
17,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
37,
20,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
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
],
[
154,
8
],
[
154,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
19,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
11,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
11,
36
],
[
36,
37
],
[
37,
38
],
[
9,
39
],
[
39,
40
],
[
154,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
45,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
45,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
65,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
65,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
43,
87
],
[
87,
88
],
[
43,
89
],
[
89,
90
],
[
154,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
91,
95
],
[
95,
96
],
[
91,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
103,
104
],
[
103,
105
],
[
97,
106
],
[
106,
107
],
[
91,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
111,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
121,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
110,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
91,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
139,
142
],
[
142,
143
],
[
91,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
148,
151
],
[
151,
152
],
[
0,
153
],
[
153,
154
],
[
153,
155
]
] |
[
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(in, out);\n out.close();\n }\n\n static class Task {\n public void solve(InputReader in, PrintWriter out) {\n String s = in.next();\n String t = in.next();\n String t_substring = t.substring(0, s.length());\n if(s.length() == t_substring.length() && s.equals(t_substring)){\n out.println(\"Yes\");\n }\n else out.println(\"No\");\n }\n\n \n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong(){\n return Long.parseLong(next());\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 InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(in, out);\n out.close();\n }\n\n static class Task {\n public void solve(InputReader in, PrintWriter out) {\n String s = in.next();\n String t = in.next();\n String t_substring = t.substring(0, s.length());\n if(s.length() == t_substring.length() && s.equals(t_substring)){\n out.println(\"Yes\");\n }\n else out.println(\"No\");\n }\n\n \n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong(){\n return Long.parseLong(next());\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(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(in, out)",
"solver.solve",
"solver",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class Task {\n public void solve(InputReader in, PrintWriter out) {\n String s = in.next();\n String t = in.next();\n String t_substring = t.substring(0, s.length());\n if(s.length() == t_substring.length() && s.equals(t_substring)){\n out.println(\"Yes\");\n }\n else out.println(\"No\");\n }\n\n \n }",
"Task",
"public void solve(InputReader in, PrintWriter out) {\n String s = in.next();\n String t = in.next();\n String t_substring = t.substring(0, s.length());\n if(s.length() == t_substring.length() && s.equals(t_substring)){\n out.println(\"Yes\");\n }\n else out.println(\"No\");\n }",
"solve",
"{\n String s = in.next();\n String t = in.next();\n String t_substring = t.substring(0, s.length());\n if(s.length() == t_substring.length() && s.equals(t_substring)){\n out.println(\"Yes\");\n }\n else out.println(\"No\");\n }",
"String s = in.next();",
"s",
"in.next()",
"in.next",
"in",
"String t = in.next();",
"t",
"in.next()",
"in.next",
"in",
"String t_substring = t.substring(0, s.length());",
"t_substring",
"t.substring(0, s.length())",
"t.substring",
"t",
"0",
"s.length()",
"s.length",
"s",
"if(s.length() == t_substring.length() && s.equals(t_substring)){\n out.println(\"Yes\");\n }\n else out.println(\"No\");",
"s.length() == t_substring.length() && s.equals(t_substring)",
"s.length() == t_substring.length()",
"s.length()",
"s.length",
"s",
"t_substring.length()",
"t_substring.length",
"t_substring",
"s.equals(t_substring)",
"s.equals",
"s",
"t_substring",
"{\n out.println(\"Yes\");\n }",
"out.println(\"Yes\")",
"out.println",
"out",
"\"Yes\"",
"out.println(\"No\")",
"out.println",
"out",
"\"No\"",
"InputReader in",
"in",
"PrintWriter out",
"out",
"static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong(){\n return Long.parseLong(next());\n }\n\n }",
"InputReader",
"public BufferedReader reader;",
"reader",
"public StringTokenizer tokenizer;",
"tokenizer",
"public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }",
"InputReader",
"{\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }",
"reader = new BufferedReader(new InputStreamReader(stream), 32768)",
"reader",
"new BufferedReader(new InputStreamReader(stream), 32768)",
"tokenizer = null",
"tokenizer",
"null",
"InputStream stream",
"stream",
"public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"next",
"{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }",
"while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"tokenizer == null || !tokenizer.hasMoreTokens()",
"tokenizer == null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n tokenizer = new StringTokenizer(reader.readLine());\n }",
"tokenizer = new StringTokenizer(reader.readLine())",
"tokenizer",
"new StringTokenizer(reader.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"public int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public 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 class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(in, out);\n out.close();\n }\n\n static class Task {\n public void solve(InputReader in, PrintWriter out) {\n String s = in.next();\n String t = in.next();\n String t_substring = t.substring(0, s.length());\n if(s.length() == t_substring.length() && s.equals(t_substring)){\n out.println(\"Yes\");\n }\n else out.println(\"No\");\n }\n\n \n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong(){\n return Long.parseLong(next());\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n solver.solve(in, out);\n out.close();\n }\n\n static class Task {\n public void solve(InputReader in, PrintWriter out) {\n String s = in.next();\n String t = in.next();\n String t_substring = t.substring(0, s.length());\n if(s.length() == t_substring.length() && s.equals(t_substring)){\n out.println(\"Yes\");\n }\n else out.println(\"No\");\n }\n\n \n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong(){\n return Long.parseLong(next());\n }\n\n }\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
Task solver = new Task();
solver.solve(in, out);
out.close();
}
static class Task {
public void solve(InputReader in, PrintWriter out) {
String s = in.next();
String t = in.next();
String t_substring = t.substring(0, s.length());
if(s.length() == t_substring.length() && s.equals(t_substring)){
out.println("Yes");
}
else out.println("No");
}
}
static class InputReader {
public BufferedReader reader;
public StringTokenizer tokenizer;
public InputReader(InputStream stream) {
reader = new BufferedReader(new InputStreamReader(stream), 32768);
tokenizer = null;
}
public String next() {
while (tokenizer == null || !tokenizer.hasMoreTokens()) {
try {
tokenizer = new StringTokenizer(reader.readLine());
} catch (IOException e) {
throw new RuntimeException(e);
}
}
return tokenizer.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
public long nextLong(){
return Long.parseLong(next());
}
}
}
|
[
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,
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,
3,
4,
18,
18,
13,
13,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
14,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
22,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
31,
41
],
[
41,
42
],
[
42,
43
],
[
31,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
46,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
6,
67
],
[
67,
68
]
] |
[
"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().split(\"\");\n String[] T = sc.next().split(\"\");\n String ret = \"Yes\";\n for (int i = 0; i < S.length; i++) {\n if (!S[i].equals(T[i])) {\n ret = \"No\";\n break;\n }\n }\n System.out.println(ret);\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().split(\"\");\n String[] T = sc.next().split(\"\");\n String ret = \"Yes\";\n for (int i = 0; i < S.length; i++) {\n if (!S[i].equals(T[i])) {\n ret = \"No\";\n break;\n }\n }\n System.out.println(ret);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] S = sc.next().split(\"\");\n String[] T = sc.next().split(\"\");\n String ret = \"Yes\";\n for (int i = 0; i < S.length; i++) {\n if (!S[i].equals(T[i])) {\n ret = \"No\";\n break;\n }\n }\n System.out.println(ret);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String[] S = sc.next().split(\"\");\n String[] T = sc.next().split(\"\");\n String ret = \"Yes\";\n for (int i = 0; i < S.length; i++) {\n if (!S[i].equals(T[i])) {\n ret = \"No\";\n break;\n }\n }\n System.out.println(ret);\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",
"\"\"",
"String ret = \"Yes\";",
"ret",
"\"Yes\"",
"for (int i = 0; i < S.length; i++) {\n if (!S[i].equals(T[i])) {\n ret = \"No\";\n break;\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 ret = \"No\";\n break;\n }\n }",
"{\n if (!S[i].equals(T[i])) {\n ret = \"No\";\n break;\n }\n }",
"if (!S[i].equals(T[i])) {\n ret = \"No\";\n break;\n }",
"!S[i].equals(T[i])",
"S[i].equals(T[i])",
"S[i].equals",
"S[i]",
"S",
"i",
"T[i]",
"T",
"i",
"{\n ret = \"No\";\n break;\n }",
"ret = \"No\"",
"ret",
"\"No\"",
"break;",
"System.out.println(ret)",
"System.out.println",
"System.out",
"System",
"System.out",
"ret",
"String[] args",
"args"
] |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String[] S = sc.next().split("");
String[] T = sc.next().split("");
String ret = "Yes";
for (int i = 0; i < S.length; i++) {
if (!S[i].equals(T[i])) {
ret = "No";
break;
}
}
System.out.println(ret);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
4,
18,
13,
17,
4,
18,
13,
14,
4,
18,
13,
4,
18,
13,
13,
30,
4,
18,
13,
17,
30,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
71,
11
],
[
71,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
14,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
36,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
14,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
44,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
14,
62
],
[
62,
63
],
[
63,
64
],
[
14,
65
],
[
65,
66
],
[
66,
67
],
[
12,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.PrintWriter;\n\npublic class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n \n String S = br.readLine();\n String T = br.readLine();\n\n String tmp = T.substring(T.length() - 1, T.length());\n\n if(T.equals(S.concat(tmp))) {\n pw.println(\"Yes\");\n } else {\n pw.println(\"No\");\n }\n\n br.close();\n pw.close();\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"public class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n \n String S = br.readLine();\n String T = br.readLine();\n\n String tmp = T.substring(T.length() - 1, T.length());\n\n if(T.equals(S.concat(tmp))) {\n pw.println(\"Yes\");\n } else {\n pw.println(\"No\");\n }\n\n br.close();\n pw.close();\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n \n String S = br.readLine();\n String T = br.readLine();\n\n String tmp = T.substring(T.length() - 1, T.length());\n\n if(T.equals(S.concat(tmp))) {\n pw.println(\"Yes\");\n } else {\n pw.println(\"No\");\n }\n\n br.close();\n pw.close();\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n \n String S = br.readLine();\n String T = br.readLine();\n\n String tmp = T.substring(T.length() - 1, T.length());\n\n if(T.equals(S.concat(tmp))) {\n pw.println(\"Yes\");\n } else {\n pw.println(\"No\");\n }\n\n br.close();\n pw.close();\n }",
"BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));",
"br",
"new BufferedReader(new java.io.InputStreamReader(System.in))",
"PrintWriter pw = new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"String S = br.readLine();",
"S",
"br.readLine()",
"br.readLine",
"br",
"String T = br.readLine();",
"T",
"br.readLine()",
"br.readLine",
"br",
"String tmp = T.substring(T.length() - 1, T.length());",
"tmp",
"T.substring(T.length() - 1, T.length())",
"T.substring",
"T",
"T.length() - 1",
"T.length()",
"T.length",
"T",
"1",
"T.length()",
"T.length",
"T",
"if(T.equals(S.concat(tmp))) {\n pw.println(\"Yes\");\n } else {\n pw.println(\"No\");\n }",
"T.equals(S.concat(tmp))",
"T.equals",
"T",
"S.concat(tmp)",
"S.concat",
"S",
"tmp",
"{\n pw.println(\"Yes\");\n }",
"pw.println(\"Yes\")",
"pw.println",
"pw",
"\"Yes\"",
"{\n pw.println(\"No\");\n }",
"pw.println(\"No\")",
"pw.println",
"pw",
"\"No\"",
"br.close()",
"br.close",
"br",
"pw.close()",
"pw.close",
"pw",
"String[] args",
"args",
"public class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n \n String S = br.readLine();\n String T = br.readLine();\n\n String tmp = T.substring(T.length() - 1, T.length());\n\n if(T.equals(S.concat(tmp))) {\n pw.println(\"Yes\");\n } else {\n pw.println(\"No\");\n }\n\n br.close();\n pw.close();\n }\n}",
"public class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n \n String S = br.readLine();\n String T = br.readLine();\n\n String tmp = T.substring(T.length() - 1, T.length());\n\n if(T.equals(S.concat(tmp))) {\n pw.println(\"Yes\");\n } else {\n pw.println(\"No\");\n }\n\n br.close();\n pw.close();\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
PrintWriter pw = new PrintWriter(System.out);
String S = br.readLine();
String T = br.readLine();
String tmp = T.substring(T.length() - 1, T.length());
if(T.equals(S.concat(tmp))) {
pw.println("Yes");
} else {
pw.println("No");
}
br.close();
pw.close();
}
}
|
[
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,
14,
4,
18,
4,
18,
13,
17,
2,
4,
18,
13,
17,
13,
30,
4,
18,
13,
17,
30,
4,
18,
13,
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
],
[
96,
17
],
[
96,
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
],
[
96,
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
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
69,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
73,
77
],
[
67,
78
],
[
66,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
66,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
53,
89
],
[
89,
90
],
[
53,
91
],
[
91,
92
],
[
53,
93
],
[
93,
94
],
[
0,
95
],
[
95,
96
],
[
95,
97
]
] |
[
"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 *\n * @author Mehvix\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n abc167_a solver = new abc167_a();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class abc167_a {\n public void solve(int testNumber, Scanner fin, PrintWriter fout) {\n String s = fin.next();\n String t = fin.next();\n\n\n if (t.substring(0, t.length() - 1).equals(s)) {\n fout.println(\"Yes\");\n } else {\n fout.println(\"No\");\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.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n abc167_a solver = new abc167_a();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class abc167_a {\n public void solve(int testNumber, Scanner fin, PrintWriter fout) {\n String s = fin.next();\n String t = fin.next();\n\n\n if (t.substring(0, t.length() - 1).equals(s)) {\n fout.println(\"Yes\");\n } else {\n fout.println(\"No\");\n }\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n abc167_a solver = new abc167_a();\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 abc167_a solver = new abc167_a();\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)",
"abc167_a solver = new abc167_a();",
"solver",
"new abc167_a()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class abc167_a {\n public void solve(int testNumber, Scanner fin, PrintWriter fout) {\n String s = fin.next();\n String t = fin.next();\n\n\n if (t.substring(0, t.length() - 1).equals(s)) {\n fout.println(\"Yes\");\n } else {\n fout.println(\"No\");\n }\n }\n\n }",
"abc167_a",
"public void solve(int testNumber, Scanner fin, PrintWriter fout) {\n String s = fin.next();\n String t = fin.next();\n\n\n if (t.substring(0, t.length() - 1).equals(s)) {\n fout.println(\"Yes\");\n } else {\n fout.println(\"No\");\n }\n }",
"solve",
"{\n String s = fin.next();\n String t = fin.next();\n\n\n if (t.substring(0, t.length() - 1).equals(s)) {\n fout.println(\"Yes\");\n } else {\n fout.println(\"No\");\n }\n }",
"String s = fin.next();",
"s",
"fin.next()",
"fin.next",
"fin",
"String t = fin.next();",
"t",
"fin.next()",
"fin.next",
"fin",
"if (t.substring(0, t.length() - 1).equals(s)) {\n fout.println(\"Yes\");\n } else {\n fout.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",
"{\n fout.println(\"Yes\");\n }",
"fout.println(\"Yes\")",
"fout.println",
"fout",
"\"Yes\"",
"{\n fout.println(\"No\");\n }",
"fout.println(\"No\")",
"fout.println",
"fout",
"\"No\"",
"int testNumber",
"testNumber",
"Scanner fin",
"fin",
"PrintWriter fout",
"fout",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n abc167_a solver = new abc167_a();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class abc167_a {\n public void solve(int testNumber, Scanner fin, PrintWriter fout) {\n String s = fin.next();\n String t = fin.next();\n\n\n if (t.substring(0, t.length() - 1).equals(s)) {\n fout.println(\"Yes\");\n } else {\n fout.println(\"No\");\n }\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n abc167_a solver = new abc167_a();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class abc167_a {\n public void solve(int testNumber, Scanner fin, PrintWriter fout) {\n String s = fin.next();\n String t = fin.next();\n\n\n if (t.substring(0, t.length() - 1).equals(s)) {\n fout.println(\"Yes\");\n } else {\n fout.println(\"No\");\n }\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
*
* @author Mehvix
*/
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);
abc167_a solver = new abc167_a();
solver.solve(1, in, out);
out.close();
}
static class abc167_a {
public void solve(int testNumber, Scanner fin, PrintWriter fout) {
String s = fin.next();
String t = fin.next();
if (t.substring(0, t.length() - 1).equals(s)) {
fout.println("Yes");
} else {
fout.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,
2,
2,
4,
18,
13,
17,
2,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
17,
14,
2,
2,
4,
18,
13,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
17,
14,
2,
4,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
17,
14,
2,
4,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
17,
14,
4,
18,
4,
18,
13,
17,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
17,
13,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
27,
31
],
[
26,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
32,
36
],
[
25,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
37,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
11,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
49,
57
],
[
48,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
58,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
11,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
69,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
75,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
11,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
86,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
92,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
11,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
106,
110
],
[
110,
111
],
[
111,
112
],
[
104,
113
],
[
103,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
103,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
11,
128
],
[
128,
129
],
[
129,
130
],
[
9,
131
],
[
131,
132
],
[
7,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
137,
140
],
[
137,
141
],
[
133,
142
],
[
142,
143
]
] |
[
"import java.util.*;\nimport java.util.regex.Pattern;\n\nclass 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 if(s.length() <= 0 || s.length() >= 11) {\n System.out.println(\"No\");\n System.exit(0);\n }\n\n if((t.length()-s.length()) != 1) {\n System.out.println(\"No\");\n System.exit(0);\n }\n\n if(isHalfAlphanumeric(s) == false) {\n System.out.println(\"No\");\n System.exit(0);\n }\n\n if(isHalfAlphanumeric(t) == false) {\n System.out.println(\"No\");\n System.exit(0);\n }\n\n if(t.substring(0, s.length()).equals(s)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n sc.close();\n }\n public static boolean isHalfAlphanumeric(String str) {\n return Pattern.matches(\"^[a-z]+$\", str);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.util.regex.Pattern;",
"Pattern",
"java.util.regex",
"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 if(s.length() <= 0 || s.length() >= 11) {\n System.out.println(\"No\");\n System.exit(0);\n }\n\n if((t.length()-s.length()) != 1) {\n System.out.println(\"No\");\n System.exit(0);\n }\n\n if(isHalfAlphanumeric(s) == false) {\n System.out.println(\"No\");\n System.exit(0);\n }\n\n if(isHalfAlphanumeric(t) == false) {\n System.out.println(\"No\");\n System.exit(0);\n }\n\n if(t.substring(0, s.length()).equals(s)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n sc.close();\n }\n public static boolean isHalfAlphanumeric(String str) {\n return Pattern.matches(\"^[a-z]+$\", str);\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 if(s.length() <= 0 || s.length() >= 11) {\n System.out.println(\"No\");\n System.exit(0);\n }\n\n if((t.length()-s.length()) != 1) {\n System.out.println(\"No\");\n System.exit(0);\n }\n\n if(isHalfAlphanumeric(s) == false) {\n System.out.println(\"No\");\n System.exit(0);\n }\n\n if(isHalfAlphanumeric(t) == false) {\n System.out.println(\"No\");\n System.exit(0);\n }\n\n if(t.substring(0, s.length()).equals(s)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"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 if(s.length() <= 0 || s.length() >= 11) {\n System.out.println(\"No\");\n System.exit(0);\n }\n\n if((t.length()-s.length()) != 1) {\n System.out.println(\"No\");\n System.exit(0);\n }\n\n if(isHalfAlphanumeric(s) == false) {\n System.out.println(\"No\");\n System.exit(0);\n }\n\n if(isHalfAlphanumeric(t) == false) {\n System.out.println(\"No\");\n System.exit(0);\n }\n\n if(t.substring(0, s.length()).equals(s)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"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",
"if(s.length() <= 0 || s.length() >= 11) {\n System.out.println(\"No\");\n System.exit(0);\n }",
"s.length() <= 0 || s.length() >= 11",
"s.length() <= 0",
"s.length()",
"s.length",
"s",
"0",
"s.length() >= 11",
"s.length()",
"s.length",
"s",
"11",
"{\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",
"if((t.length()-s.length()) != 1) {\n System.out.println(\"No\");\n System.exit(0);\n }",
"(t.length()-s.length()) != 1",
"(t.length()-s.length())",
"t.length()",
"t.length",
"t",
"s.length()",
"s.length",
"s",
"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",
"if(isHalfAlphanumeric(s) == false) {\n System.out.println(\"No\");\n System.exit(0);\n }",
"isHalfAlphanumeric(s) == false",
"isHalfAlphanumeric(s)",
"isHalfAlphanumeric",
"s",
"false",
"{\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",
"if(isHalfAlphanumeric(t) == false) {\n System.out.println(\"No\");\n System.exit(0);\n }",
"isHalfAlphanumeric(t) == false",
"isHalfAlphanumeric(t)",
"isHalfAlphanumeric",
"t",
"false",
"{\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",
"if(t.substring(0, s.length()).equals(s)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"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 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\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public static boolean isHalfAlphanumeric(String str) {\n return Pattern.matches(\"^[a-z]+$\", str);\n }",
"isHalfAlphanumeric",
"{\n return Pattern.matches(\"^[a-z]+$\", str);\n }",
"return Pattern.matches(\"^[a-z]+$\", str);",
"Pattern.matches(\"^[a-z]+$\", str)",
"Pattern.matches",
"Pattern",
"\"^[a-z]+$\"",
"str",
"String str",
"str"
] |
import java.util.*;
import java.util.regex.Pattern;
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() <= 0 || s.length() >= 11) {
System.out.println("No");
System.exit(0);
}
if((t.length()-s.length()) != 1) {
System.out.println("No");
System.exit(0);
}
if(isHalfAlphanumeric(s) == false) {
System.out.println("No");
System.exit(0);
}
if(isHalfAlphanumeric(t) == false) {
System.out.println("No");
System.exit(0);
}
if(t.substring(0, s.length()).equals(s)) {
System.out.println("Yes");
} else {
System.out.println("No");
}
sc.close();
}
public static boolean isHalfAlphanumeric(String str) {
return Pattern.matches("^[a-z]+$", str);
}
}
|
[
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,
13,
13,
17,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
39,
5
],
[
39,
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
],
[
30,
33
],
[
29,
34
],
[
29,
35
],
[
6,
36
],
[
36,
37
],
[
0,
38
],
[
38,
39
],
[
38,
40
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tString s = scanner.next(), t = scanner.next();\n\t\t\tSystem.out.println((t.startsWith(s)) ? \"Yes\" : \"No\");\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tString s = scanner.next(), t = scanner.next();\n\t\t\tSystem.out.println((t.startsWith(s)) ? \"Yes\" : \"No\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tString s = scanner.next(), t = scanner.next();\n\t\t\tSystem.out.println((t.startsWith(s)) ? \"Yes\" : \"No\");\n\t\t}\n\t}",
"main",
"{\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tString s = scanner.next(), t = scanner.next();\n\t\t\tSystem.out.println((t.startsWith(s)) ? \"Yes\" : \"No\");\n\t\t}\n\t}",
"try (Scanner scanner = new Scanner(System.in)) {\n\t\t\tString s = scanner.next(), t = scanner.next();\n\t\t\tSystem.out.println((t.startsWith(s)) ? \"Yes\" : \"No\");\n\t\t}",
"{\n\t\t\tString s = scanner.next(), t = scanner.next();\n\t\t\tSystem.out.println((t.startsWith(s)) ? \"Yes\" : \"No\");\n\t\t}",
"Scanner scanner = new Scanner(System.in)",
"Scanner scanner = new Scanner(System.in)",
"new Scanner(System.in)",
"String s = scanner.next()",
"s",
"scanner.next()",
"scanner.next",
"scanner",
"t = scanner.next();",
"t",
"scanner.next()",
"scanner.next",
"scanner",
"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\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tString s = scanner.next(), t = scanner.next();\n\t\t\tSystem.out.println((t.startsWith(s)) ? \"Yes\" : \"No\");\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tString s = scanner.next(), t = scanner.next();\n\t\t\tSystem.out.println((t.startsWith(s)) ? \"Yes\" : \"No\");\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner scanner = new Scanner(System.in)) {
String s = scanner.next(), t = scanner.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,
41,
13,
4,
18,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
18,
13,
13,
18,
13,
13,
30,
30,
0,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
13,
17,
30,
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
],
[
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
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
52,
61
],
[
52,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
66,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
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\n\tpublic static void main(String[] args) {\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString a = scan.next();\n\t\tString b = scan.next();\n\t\t\n\t\tString[] a1 = a.split(\"\");\n\t\tString[] b1 = b.split(\"\");\n\t\t\n\t\tboolean judge = false;\n\t\t\n\t\tfor(int i = 0; i < a1.length; i++) {\n\t\t\tif(a1[i].equals(b1[i])) {\n\t\t\t}\n\t\t\telse {\n\t\t\t\tjudge = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(judge == false) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse if(judge == true) {\n\t\t\tSystem.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\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString a = scan.next();\n\t\tString b = scan.next();\n\t\t\n\t\tString[] a1 = a.split(\"\");\n\t\tString[] b1 = b.split(\"\");\n\t\t\n\t\tboolean judge = false;\n\t\t\n\t\tfor(int i = 0; i < a1.length; i++) {\n\t\t\tif(a1[i].equals(b1[i])) {\n\t\t\t}\n\t\t\telse {\n\t\t\t\tjudge = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(judge == false) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse if(judge == true) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString a = scan.next();\n\t\tString b = scan.next();\n\t\t\n\t\tString[] a1 = a.split(\"\");\n\t\tString[] b1 = b.split(\"\");\n\t\t\n\t\tboolean judge = false;\n\t\t\n\t\tfor(int i = 0; i < a1.length; i++) {\n\t\t\tif(a1[i].equals(b1[i])) {\n\t\t\t}\n\t\t\telse {\n\t\t\t\tjudge = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(judge == false) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse if(judge == true) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}",
"main",
"{\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString a = scan.next();\n\t\tString b = scan.next();\n\t\t\n\t\tString[] a1 = a.split(\"\");\n\t\tString[] b1 = b.split(\"\");\n\t\t\n\t\tboolean judge = false;\n\t\t\n\t\tfor(int i = 0; i < a1.length; i++) {\n\t\t\tif(a1[i].equals(b1[i])) {\n\t\t\t}\n\t\t\telse {\n\t\t\t\tjudge = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(judge == false) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse if(judge == true) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\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",
"String[] a1 = a.split(\"\");",
"a1",
"a.split(\"\")",
"a.split",
"a",
"\"\"",
"String[] b1 = b.split(\"\");",
"b1",
"b.split(\"\")",
"b.split",
"b",
"\"\"",
"boolean judge = false;",
"judge",
"false",
"for(int i = 0; i < a1.length; i++) {\n\t\t\tif(a1[i].equals(b1[i])) {\n\t\t\t}\n\t\t\telse {\n\t\t\t\tjudge = true;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a1.length",
"i",
"a1.length",
"a1",
"a1.length",
"i++",
"i++",
"i",
"{\n\t\t\tif(a1[i].equals(b1[i])) {\n\t\t\t}\n\t\t\telse {\n\t\t\t\tjudge = true;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(a1[i].equals(b1[i])) {\n\t\t\t}\n\t\t\telse {\n\t\t\t\tjudge = true;\n\t\t\t}\n\t\t}",
"if(a1[i].equals(b1[i])) {\n\t\t\t}\n\t\t\telse {\n\t\t\t\tjudge = true;\n\t\t\t}",
"a1[i].equals(b1[i])",
"a1[i].equals",
"a1[i]",
"a1",
"i",
"b1[i]",
"b1",
"i",
"{\n\t\t\t}",
"{\n\t\t\t\tjudge = true;\n\t\t\t}",
"judge = true",
"judge",
"true",
"if(judge == false) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse if(judge == true) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"judge == false",
"judge",
"false",
"{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"if(judge == true) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"judge == true",
"judge",
"true",
"{\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\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString a = scan.next();\n\t\tString b = scan.next();\n\t\t\n\t\tString[] a1 = a.split(\"\");\n\t\tString[] b1 = b.split(\"\");\n\t\t\n\t\tboolean judge = false;\n\t\t\n\t\tfor(int i = 0; i < a1.length; i++) {\n\t\t\tif(a1[i].equals(b1[i])) {\n\t\t\t}\n\t\t\telse {\n\t\t\t\tjudge = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(judge == false) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse if(judge == true) {\n\t\t\tSystem.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\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString a = scan.next();\n\t\tString b = scan.next();\n\t\t\n\t\tString[] a1 = a.split(\"\");\n\t\tString[] b1 = b.split(\"\");\n\t\t\n\t\tboolean judge = false;\n\t\t\n\t\tfor(int i = 0; i < a1.length; i++) {\n\t\t\tif(a1[i].equals(b1[i])) {\n\t\t\t}\n\t\t\telse {\n\t\t\t\tjudge = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(judge == false) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse if(judge == true) {\n\t\t\tSystem.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 scan = new Scanner(System.in);
String a = scan.next();
String b = scan.next();
String[] a1 = a.split("");
String[] b1 = b.split("");
boolean judge = false;
for(int i = 0; i < a1.length; i++) {
if(a1[i].equals(b1[i])) {
}
else {
judge = true;
}
}
if(judge == false) {
System.out.println("Yes");
}
else if(judge == true) {
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,
4,
18,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
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
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
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
],
[
42,
44
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
] |
[
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String a = sc.next();\n String b = sc.next();\n sc.close();\n\n String result = \"No\";\n if (a.equals(b.substring(0, b.length()-1))) {\n result = \"Yes\";\n }\n System.out.println(result);\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 a = sc.next();\n String b = sc.next();\n sc.close();\n\n String result = \"No\";\n if (a.equals(b.substring(0, b.length()-1))) {\n result = \"Yes\";\n }\n System.out.println(result);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String a = sc.next();\n String b = sc.next();\n sc.close();\n\n String result = \"No\";\n if (a.equals(b.substring(0, b.length()-1))) {\n result = \"Yes\";\n }\n System.out.println(result);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String a = sc.next();\n String b = sc.next();\n sc.close();\n\n String result = \"No\";\n if (a.equals(b.substring(0, b.length()-1))) {\n result = \"Yes\";\n }\n System.out.println(result);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String a = sc.next();",
"a",
"sc.next()",
"sc.next",
"sc",
"String b = sc.next();",
"b",
"sc.next()",
"sc.next",
"sc",
"sc.close()",
"sc.close",
"sc",
"String result = \"No\";",
"result",
"\"No\"",
"if (a.equals(b.substring(0, b.length()-1))) {\n result = \"Yes\";\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 result = \"Yes\";\n }",
"result = \"Yes\"",
"result",
"\"Yes\"",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String a = sc.next();\n String b = sc.next();\n sc.close();\n\n String result = \"No\";\n if (a.equals(b.substring(0, b.length()-1))) {\n result = \"Yes\";\n }\n System.out.println(result);\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String a = sc.next();\n String b = sc.next();\n sc.close();\n\n String result = \"No\";\n if (a.equals(b.substring(0, b.length()-1))) {\n result = \"Yes\";\n }\n System.out.println(result);\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String a = sc.next();
String b = sc.next();
sc.close();
String result = "No";
if (a.equals(b.substring(0, b.length()-1))) {
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,
2,
4,
18,
13,
17,
14,
4,
18,
13,
2,
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
],
[
24,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
27,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
36,
38
],
[
32,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
32,
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\n \n\n\npublic class Main {\n public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n \n String s = sc.next(); \n String t = sc.next(); \n \n \n String T1 = t.substring(s.length() - 0); \n \n\n if(t.equals(s+T1)) \n {\n System.out.println(\"Yes\");\n }\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 \n Scanner sc = new Scanner(System.in);\n \n String s = sc.next(); \n String t = sc.next(); \n \n \n String T1 = t.substring(s.length() - 0); \n \n\n if(t.equals(s+T1)) \n {\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n }",
"Main",
"public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n \n String s = sc.next(); \n String t = sc.next(); \n \n \n String T1 = t.substring(s.length() - 0); \n \n\n if(t.equals(s+T1)) \n {\n System.out.println(\"Yes\");\n }\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 \n String T1 = t.substring(s.length() - 0); \n \n\n if(t.equals(s+T1)) \n {\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",
"String T1 = t.substring(s.length() - 0);",
"T1",
"t.substring(s.length() - 0)",
"t.substring",
"t",
"s.length() - 0",
"s.length()",
"s.length",
"s",
"0",
"if(t.equals(s+T1)) \n {\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }",
"t.equals(s+T1)",
"t.equals",
"t",
"s+T1",
"s",
"T1",
"{\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 sc = new Scanner(System.in);\n \n String s = sc.next(); \n String t = sc.next(); \n \n \n String T1 = t.substring(s.length() - 0); \n \n\n if(t.equals(s+T1)) \n {\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n }",
"public class Main {\n public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n \n String s = sc.next(); \n String t = sc.next(); \n \n \n String T1 = t.substring(s.length() - 0); \n \n\n if(t.equals(s+T1)) \n {\n System.out.println(\"Yes\");\n }\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();
String T1 = t.substring(s.length() - 0);
if(t.equals(s+T1))
{
System.out.println("Yes");
}
else{
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
17,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
17,
0,
13,
4,
18,
13,
17,
4,
18,
13,
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
],
[
62,
5
],
[
62,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
13,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
41,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
41,
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 public static void main(String[] args) {\n String a;\n String b;\n int count = 0;\n\n Scanner sc = new Scanner(System.in);\n a = sc.next();\n b = sc.next();\n String new_b = \"\";\n new_b = b.substring(0,a.length());\n if(a.equals(new_b))\n {\n System.out.println(\"Yes\");\n }\n else System.out.println(\"No\");\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n String a;\n String b;\n int count = 0;\n\n Scanner sc = new Scanner(System.in);\n a = sc.next();\n b = sc.next();\n String new_b = \"\";\n new_b = b.substring(0,a.length());\n if(a.equals(new_b))\n {\n System.out.println(\"Yes\");\n }\n else System.out.println(\"No\");\n }\n}",
"Main",
"public static void main(String[] args) {\n String a;\n String b;\n int count = 0;\n\n Scanner sc = new Scanner(System.in);\n a = sc.next();\n b = sc.next();\n String new_b = \"\";\n new_b = b.substring(0,a.length());\n if(a.equals(new_b))\n {\n System.out.println(\"Yes\");\n }\n else System.out.println(\"No\");\n }",
"main",
"{\n String a;\n String b;\n int count = 0;\n\n Scanner sc = new Scanner(System.in);\n a = sc.next();\n b = sc.next();\n String new_b = \"\";\n new_b = b.substring(0,a.length());\n if(a.equals(new_b))\n {\n System.out.println(\"Yes\");\n }\n else System.out.println(\"No\");\n }",
"String a;",
"a",
"String b;",
"b",
"int count = 0;",
"count",
"0",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"a = sc.next()",
"a",
"sc.next()",
"sc.next",
"sc",
"b = sc.next()",
"b",
"sc.next()",
"sc.next",
"sc",
"String new_b = \"\";",
"new_b",
"\"\"",
"new_b = b.substring(0,a.length())",
"new_b",
"b.substring(0,a.length())",
"b.substring",
"b",
"0",
"a.length()",
"a.length",
"a",
"if(a.equals(new_b))\n {\n System.out.println(\"Yes\");\n }\n else System.out.println(\"No\");",
"a.equals(new_b)",
"a.equals",
"a",
"new_b",
"{\n System.out.println(\"Yes\");\n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n String a;\n String b;\n int count = 0;\n\n Scanner sc = new Scanner(System.in);\n a = sc.next();\n b = sc.next();\n String new_b = \"\";\n new_b = b.substring(0,a.length());\n if(a.equals(new_b))\n {\n System.out.println(\"Yes\");\n }\n else System.out.println(\"No\");\n }\n}",
"public class Main {\n public static void main(String[] args) {\n String a;\n String b;\n int count = 0;\n\n Scanner sc = new Scanner(System.in);\n a = sc.next();\n b = sc.next();\n String new_b = \"\";\n new_b = b.substring(0,a.length());\n if(a.equals(new_b))\n {\n System.out.println(\"Yes\");\n }\n else System.out.println(\"No\");\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
String a;
String b;
int count = 0;
Scanner sc = new Scanner(System.in);
a = sc.next();
b = sc.next();
String new_b = "";
new_b = b.substring(0,a.length());
if(a.equals(new_b))
{
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,
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
]
] |
[
"import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n String a=sc.next();\n String b=sc.next();\n if (a.equalsIgnoreCase(b.substring(0,b.length()-1))){\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\n }\n\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n String a=sc.next();\n String b=sc.next();\n if (a.equalsIgnoreCase(b.substring(0,b.length()-1))){\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\n }\n\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n String a=sc.next();\n String b=sc.next();\n if (a.equalsIgnoreCase(b.substring(0,b.length()-1))){\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=sc.next();\n String b=sc.next();\n if (a.equalsIgnoreCase(b.substring(0,b.length()-1))){\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=sc.next();",
"a",
"sc.next()",
"sc.next",
"sc",
"String b=sc.next();",
"b",
"sc.next()",
"sc.next",
"sc",
"if (a.equalsIgnoreCase(b.substring(0,b.length()-1))){\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\n }",
"a.equalsIgnoreCase(b.substring(0,b.length()-1))",
"a.equalsIgnoreCase",
"a",
"b.substring(0,b.length()-1)",
"b.substring",
"b",
"0",
"b.length()-1",
"b.length()",
"b.length",
"b",
"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 sc=new Scanner(System.in);\n String a=sc.next();\n String b=sc.next();\n if (a.equalsIgnoreCase(b.substring(0,b.length()-1))){\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) {\n Scanner sc=new Scanner(System.in);\n String a=sc.next();\n String b=sc.next();\n if (a.equalsIgnoreCase(b.substring(0,b.length()-1))){\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\n }\n\n\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
String a=sc.next();
String b=sc.next();
if (a.equalsIgnoreCase(b.substring(0,b.length()-1))){
System.out.println("Yes");
}else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
41,
13,
17,
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,
0,
13,
17,
3,
14,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
76,
5
],
[
76,
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
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
29,
41
],
[
41,
42
],
[
42,
43
],
[
29,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
8,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
6,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
] |
[
"import java.util.*;\npublic class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tchar[] S = sc.next().toCharArray();\n \tchar[] T = sc.next().toCharArray();\n \tboolean isTrue = true;\n \tfor(int i = 0; i < T.length-1; i++){\n \tif(S[i] != T[i]){\n isTrue = false;\n break;\n }\n }\n \tif(isTrue) System.out.println(\"Yes\");\n \telse System.out.println(\"No\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tchar[] S = sc.next().toCharArray();\n \tchar[] T = sc.next().toCharArray();\n \tboolean isTrue = true;\n \tfor(int i = 0; i < T.length-1; i++){\n \tif(S[i] != T[i]){\n isTrue = false;\n break;\n }\n }\n \tif(isTrue) System.out.println(\"Yes\");\n \telse System.out.println(\"No\");\n }\n}",
"Main",
"public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tchar[] S = sc.next().toCharArray();\n \tchar[] T = sc.next().toCharArray();\n \tboolean isTrue = true;\n \tfor(int i = 0; i < T.length-1; i++){\n \tif(S[i] != T[i]){\n isTrue = false;\n break;\n }\n }\n \tif(isTrue) System.out.println(\"Yes\");\n \telse System.out.println(\"No\");\n }",
"main",
"{\n \tScanner sc = new Scanner(System.in);\n \tchar[] S = sc.next().toCharArray();\n \tchar[] T = sc.next().toCharArray();\n \tboolean isTrue = true;\n \tfor(int i = 0; i < T.length-1; i++){\n \tif(S[i] != T[i]){\n isTrue = false;\n break;\n }\n }\n \tif(isTrue) System.out.println(\"Yes\");\n \telse System.out.println(\"No\");\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",
"boolean isTrue = true;",
"isTrue",
"true",
"for(int i = 0; i < T.length-1; i++){\n \tif(S[i] != T[i]){\n isTrue = false;\n break;\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 \tif(S[i] != T[i]){\n isTrue = false;\n break;\n }\n }",
"{\n \tif(S[i] != T[i]){\n isTrue = false;\n break;\n }\n }",
"if(S[i] != T[i]){\n isTrue = false;\n break;\n }",
"S[i] != T[i]",
"S[i]",
"S",
"i",
"T[i]",
"T",
"i",
"{\n isTrue = false;\n break;\n }",
"isTrue = false",
"isTrue",
"false",
"break;",
"if(isTrue) System.out.println(\"Yes\");\n \telse System.out.println(\"No\");",
"isTrue",
"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 \tScanner sc = new Scanner(System.in);\n \tchar[] S = sc.next().toCharArray();\n \tchar[] T = sc.next().toCharArray();\n \tboolean isTrue = true;\n \tfor(int i = 0; i < T.length-1; i++){\n \tif(S[i] != T[i]){\n isTrue = false;\n break;\n }\n }\n \tif(isTrue) System.out.println(\"Yes\");\n \telse System.out.println(\"No\");\n }\n}",
"public class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n \tchar[] S = sc.next().toCharArray();\n \tchar[] T = sc.next().toCharArray();\n \tboolean isTrue = true;\n \tfor(int i = 0; i < T.length-1; i++){\n \tif(S[i] != T[i]){\n isTrue = false;\n break;\n }\n }\n \tif(isTrue) System.out.println(\"Yes\");\n \telse System.out.println(\"No\");\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
char[] S = sc.next().toCharArray();
char[] T = sc.next().toCharArray();
boolean isTrue = true;
for(int i = 0; i < T.length-1; i++){
if(S[i] != T[i]){
isTrue = false;
break;
}
}
if(isTrue) 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,
41,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
41,
13,
8,
4,
18,
13,
13,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
57,
11
],
[
57,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
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
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
41,
46
],
[
41,
47
],
[
14,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
12,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
] |
[
"import java.util.Scanner;\nimport java.util.Arrays;\nimport java.util.List;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t String input1 = sc.nextLine();\n\t String input2 = sc.nextLine();\n\t\tString before = input2.substring(0, input2.length()-1);\n\t\tString result = input1.equals(before) ? \"Yes\" : \"No\";\n\t System.out.println(result);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.List;",
"List",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t String input1 = sc.nextLine();\n\t String input2 = sc.nextLine();\n\t\tString before = input2.substring(0, input2.length()-1);\n\t\tString result = input1.equals(before) ? \"Yes\" : \"No\";\n\t System.out.println(result);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t String input1 = sc.nextLine();\n\t String input2 = sc.nextLine();\n\t\tString before = input2.substring(0, input2.length()-1);\n\t\tString result = input1.equals(before) ? \"Yes\" : \"No\";\n\t System.out.println(result);\n\t}",
"main",
"{\n\t Scanner sc = new Scanner(System.in);\n\t String input1 = sc.nextLine();\n\t String input2 = sc.nextLine();\n\t\tString before = input2.substring(0, input2.length()-1);\n\t\tString result = input1.equals(before) ? \"Yes\" : \"No\";\n\t System.out.println(result);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String input1 = sc.nextLine();",
"input1",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String input2 = sc.nextLine();",
"input2",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String before = input2.substring(0, input2.length()-1);",
"before",
"input2.substring(0, input2.length()-1)",
"input2.substring",
"input2",
"0",
"input2.length()-1",
"input2.length()",
"input2.length",
"input2",
"1",
"String result = input1.equals(before) ? \"Yes\" : \"No\";",
"result",
"input1.equals(before) ? \"Yes\" : \"No\"",
"input1.equals(before)",
"input1.equals",
"input1",
"before",
"\"Yes\"",
"\"No\"",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t String input1 = sc.nextLine();\n\t String input2 = sc.nextLine();\n\t\tString before = input2.substring(0, input2.length()-1);\n\t\tString result = input1.equals(before) ? \"Yes\" : \"No\";\n\t System.out.println(result);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t String input1 = sc.nextLine();\n\t String input2 = sc.nextLine();\n\t\tString before = input2.substring(0, input2.length()-1);\n\t\tString result = input1.equals(before) ? \"Yes\" : \"No\";\n\t System.out.println(result);\n\t}\n}",
"Main"
] |
import java.util.Scanner;
import java.util.Arrays;
import java.util.List;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String input1 = sc.nextLine();
String input2 = sc.nextLine();
String before = input2.substring(0, input2.length()-1);
String result = input1.equals(before) ? "Yes" : "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,
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
],
[
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
],
[
24,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
8,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
31,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
31,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
6,
50
],
[
50,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
]
] |
[
"import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String S = scan.next();\n String T = scan.next();\n String judge = T.substring(0,S.length());\n if (S.equals(judge)){\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 S = scan.next();\n String T = scan.next();\n String judge = T.substring(0,S.length());\n if (S.equals(judge)){\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 S = scan.next();\n String T = scan.next();\n String judge = T.substring(0,S.length());\n if (S.equals(judge)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n String S = scan.next();\n String T = scan.next();\n String judge = T.substring(0,S.length());\n if (S.equals(judge)){\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 S = scan.next();",
"S",
"scan.next()",
"scan.next",
"scan",
"String T = scan.next();",
"T",
"scan.next()",
"scan.next",
"scan",
"String judge = T.substring(0,S.length());",
"judge",
"T.substring(0,S.length())",
"T.substring",
"T",
"0",
"S.length()",
"S.length",
"S",
"if (S.equals(judge)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }",
"S.equals(judge)",
"S.equals",
"S",
"judge",
"{\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 S = scan.next();\n String T = scan.next();\n String judge = T.substring(0,S.length());\n if (S.equals(judge)){\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 S = scan.next();\n String T = scan.next();\n String judge = T.substring(0,S.length());\n if (S.equals(judge)){\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 S = scan.next();
String T = scan.next();
String judge = T.substring(0,S.length());
if (S.equals(judge)){
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,
6,
13,
41,
13,
17,
12,
13,
30,
14,
2,
13,
17,
29,
13,
29,
4,
13,
2,
13,
13,
13,
23,
13,
23,
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,
0,
13,
17,
3,
14,
2,
13,
17,
30,
14,
2,
2,
4,
18,
13,
17,
4,
18,
13,
4,
18,
18,
13,
13,
17,
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
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
217,
20
],
[
217,
21
],
[
21,
22
],
[
21,
23
],
[
217,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
26,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
24,
40
],
[
40,
41
],
[
24,
42
],
[
42,
43
],
[
217,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
46,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
46,
60
],
[
60,
61
],
[
60,
62
],
[
46,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
63,
73
],
[
73,
74
],
[
74,
75
],
[
63,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
79,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
78,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
46,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
100,
104
],
[
99,
105
],
[
105,
106
],
[
106,
107
],
[
98,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
98,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
93,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
44,
126
],
[
126,
127
],
[
217,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
128,
132
],
[
132,
133
],
[
128,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
128,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
143,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
153,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
142,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
128,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
172,
175
],
[
175,
176
],
[
128,
177
],
[
177,
178
],
[
177,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
181,
184
],
[
184,
185
],
[
128,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
190,
193
],
[
193,
194
],
[
128,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
197,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
201,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
212,
213
],
[
197,
214
],
[
214,
215
],
[
0,
216
],
[
216,
217
],
[
216,
218
]
] |
[
"import javax.print.attribute.HashAttributeSet;\nimport java.io.*;\n\nimport java.math.BigInteger;\nimport java.util.*;\n\nimport java.util.ArrayList;\n\nimport java.util.Scanner;\n\n\npublic class Main {\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 static final int mod = 1000000007;\n\n public static int gcd(int a, int b)\n {\n if (a == 0)\n return b;\n return gcd(b % a, a);\n }\n\n\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 f=1;\n for(int j=0;j<s.length();j++)\n {\n if(s.charAt(j)!=t.charAt(j))\n {\n f=0;\n break;\n }\n\n }\n if(f==1)\n {\n if(s.length()+1==t.length())\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n else\n System.out.println(\"No\");\n\n\n }\n}\n\n\n\n\n\n\n",
"import javax.print.attribute.HashAttributeSet;",
"HashAttributeSet",
"javax.print.attribute",
"import java.io.*;",
"io.*",
"java",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.*;",
"util.*",
"java",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\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 static final int mod = 1000000007;\n\n public static int gcd(int a, int b)\n {\n if (a == 0)\n return b;\n return gcd(b % a, a);\n }\n\n\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 f=1;\n for(int j=0;j<s.length();j++)\n {\n if(s.charAt(j)!=t.charAt(j))\n {\n f=0;\n break;\n }\n\n }\n if(f==1)\n {\n if(s.length()+1==t.length())\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n else\n System.out.println(\"No\");\n\n\n }\n}",
"Main",
"static final int mod = 1000000007;",
"mod",
"1000000007",
"public static int gcd(int a, int b)\n {\n if (a == 0)\n return b;\n return gcd(b % a, a);\n }",
"gcd",
"{\n if (a == 0)\n return b;\n return gcd(b % a, a);\n }",
"if (a == 0)\n return b;",
"a == 0",
"a",
"0",
"return b;",
"b",
"return gcd(b % a, a);",
"gcd(b % a, a)",
"gcd",
"b % a",
"b",
"a",
"a",
"int a",
"a",
"int b",
"b",
"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 f=1;\n for(int j=0;j<s.length();j++)\n {\n if(s.charAt(j)!=t.charAt(j))\n {\n f=0;\n break;\n }\n\n }\n if(f==1)\n {\n if(s.length()+1==t.length())\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n else\n System.out.println(\"No\");\n\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String s=sc.nextLine();\n String t=sc.nextLine();\n int f=1;\n for(int j=0;j<s.length();j++)\n {\n if(s.charAt(j)!=t.charAt(j))\n {\n f=0;\n break;\n }\n\n }\n if(f==1)\n {\n if(s.length()+1==t.length())\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n else\n System.out.println(\"No\");\n\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 f=1;",
"f",
"1",
"for(int j=0;j<s.length();j++)\n {\n if(s.charAt(j)!=t.charAt(j))\n {\n f=0;\n break;\n }\n\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<s.length()",
"j",
"s.length()",
"s.length",
"s",
"j++",
"j++",
"j",
"{\n if(s.charAt(j)!=t.charAt(j))\n {\n f=0;\n break;\n }\n\n }",
"{\n if(s.charAt(j)!=t.charAt(j))\n {\n f=0;\n break;\n }\n\n }",
"if(s.charAt(j)!=t.charAt(j))\n {\n f=0;\n break;\n }",
"s.charAt(j)!=t.charAt(j)",
"s.charAt(j)",
"s.charAt",
"s",
"j",
"t.charAt(j)",
"t.charAt",
"t",
"j",
"{\n f=0;\n break;\n }",
"f=0",
"f",
"0",
"break;",
"if(f==1)\n {\n if(s.length()+1==t.length())\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n else\n System.out.println(\"No\");",
"f==1",
"f",
"1",
"{\n if(s.length()+1==t.length())\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }",
"if(s.length()+1==t.length())\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");",
"s.length()+1==t.length()",
"s.length()+1",
"s.length()",
"s.length",
"s",
"1",
"t.length()",
"t.length",
"t",
"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\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"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\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 static final int mod = 1000000007;\n\n public static int gcd(int a, int b)\n {\n if (a == 0)\n return b;\n return gcd(b % a, a);\n }\n\n\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 f=1;\n for(int j=0;j<s.length();j++)\n {\n if(s.charAt(j)!=t.charAt(j))\n {\n f=0;\n break;\n }\n\n }\n if(f==1)\n {\n if(s.length()+1==t.length())\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n else\n System.out.println(\"No\");\n\n\n }\n}",
"public class Main {\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\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 static final int mod = 1000000007;\n\n public static int gcd(int a, int b)\n {\n if (a == 0)\n return b;\n return gcd(b % a, a);\n }\n\n\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 f=1;\n for(int j=0;j<s.length();j++)\n {\n if(s.charAt(j)!=t.charAt(j))\n {\n f=0;\n break;\n }\n\n }\n if(f==1)\n {\n if(s.length()+1==t.length())\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n else\n System.out.println(\"No\");\n\n\n }\n}",
"Main"
] |
import javax.print.attribute.HashAttributeSet;
import java.io.*;
import java.math.BigInteger;
import java.util.*;
import java.util.ArrayList;
import java.util.Scanner;
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;
}
}
static final int mod = 1000000007;
public static int gcd(int a, int b)
{
if (a == 0)
return b;
return gcd(b % a, a);
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s=sc.nextLine();
String t=sc.nextLine();
int f=1;
for(int j=0;j<s.length();j++)
{
if(s.charAt(j)!=t.charAt(j))
{
f=0;
break;
}
}
if(f==1)
{
if(s.length()+1==t.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,
38,
5,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
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,
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
],
[
13,
14
],
[
13,
15
],
[
12,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
16,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
16,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
34,
38
],
[
28,
39
],
[
27,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
27,
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.io.*;\npublic class Main {\npublic static void main (String[]args) {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String s = br.readLine();\n String t = br.readLine();\n if((t.substring(0,t.length()-1).equals(s))) {\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n\n }catch (Exception e) {\n }\n }\n }",
"import java.io.*;",
"io.*",
"java",
"public class Main {\npublic static void main (String[]args) {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String s = br.readLine();\n String t = br.readLine();\n if((t.substring(0,t.length()-1).equals(s))) {\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n\n }catch (Exception e) {\n }\n }\n }",
"Main",
"public static void main (String[]args) {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String s = br.readLine();\n String t = br.readLine();\n if((t.substring(0,t.length()-1).equals(s))) {\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n\n }catch (Exception e) {\n }\n }",
"main",
"{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String s = br.readLine();\n String t = br.readLine();\n if((t.substring(0,t.length()-1).equals(s))) {\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n\n }catch (Exception e) {\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"try {\n String s = br.readLine();\n String t = br.readLine();\n if((t.substring(0,t.length()-1).equals(s))) {\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n\n }catch (Exception e) {\n }",
"catch (Exception e) {\n }",
"Exception e",
"{\n }",
"{\n String s = br.readLine();\n String t = br.readLine();\n if((t.substring(0,t.length()-1).equals(s))) {\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n\n }",
"String s = br.readLine();",
"s",
"br.readLine()",
"br.readLine",
"br",
"String t = br.readLine();",
"t",
"br.readLine()",
"br.readLine",
"br",
"if((t.substring(0,t.length()-1).equals(s))) {\n System.out.println(\"Yes\");\n }\n else{\n 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",
"{\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 {\npublic static void main (String[]args) {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String s = br.readLine();\n String t = br.readLine();\n if((t.substring(0,t.length()-1).equals(s))) {\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n\n }catch (Exception e) {\n }\n }\n }",
"public class Main {\npublic static void main (String[]args) {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String s = br.readLine();\n String t = br.readLine();\n if((t.substring(0,t.length()-1).equals(s))) {\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n\n }catch (Exception e) {\n }\n }\n }",
"Main"
] |
import java.io.*;
public class Main {
public static void main (String[]args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
String s = br.readLine();
String t = br.readLine();
if((t.substring(0,t.length()-1).equals(s))) {
System.out.println("Yes");
}
else{
System.out.println("No");
}
}catch (Exception e) {
}
}
}
|
[
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,
2,
4,
18,
13,
17,
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
],
[
59,
5
],
[
59,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
28,
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
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
6,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
] |
[
"import java.util.Scanner;\n \n \n\tpublic class Main{\n\t public static void main(String[] args) {\n\t\t \n\t\t Scanner scanner = new Scanner(System.in);\n\t\t \n\t\t String S = scanner.next();\n\t \t\tString T = scanner.next();\n\t \t\t\n\t\t if (T.length() == S.length()+1 && T.indexOf(S) == 0) {\n\t\t\t System.out.println(\"Yes\");\n\t\t }\n\t\t else{\n\t\t\t System.out.println(\"No\");\n\t\t }\n\t\t scanner.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\t public static void main(String[] args) {\n\t\t \n\t\t Scanner scanner = new Scanner(System.in);\n\t\t \n\t\t String S = scanner.next();\n\t \t\tString T = scanner.next();\n\t \t\t\n\t\t if (T.length() == S.length()+1 && T.indexOf(S) == 0) {\n\t\t\t System.out.println(\"Yes\");\n\t\t }\n\t\t else{\n\t\t\t System.out.println(\"No\");\n\t\t }\n\t\t scanner.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t \n\t\t Scanner scanner = new Scanner(System.in);\n\t\t \n\t\t String S = scanner.next();\n\t \t\tString T = scanner.next();\n\t \t\t\n\t\t if (T.length() == S.length()+1 && T.indexOf(S) == 0) {\n\t\t\t System.out.println(\"Yes\");\n\t\t }\n\t\t else{\n\t\t\t System.out.println(\"No\");\n\t\t }\n\t\t scanner.close();\n\t}",
"main",
"{\n\t\t \n\t\t Scanner scanner = new Scanner(System.in);\n\t\t \n\t\t String S = scanner.next();\n\t \t\tString T = scanner.next();\n\t \t\t\n\t\t if (T.length() == S.length()+1 && T.indexOf(S) == 0) {\n\t\t\t System.out.println(\"Yes\");\n\t\t }\n\t\t else{\n\t\t\t System.out.println(\"No\");\n\t\t }\n\t\t scanner.close();\n\t}",
"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.length() == S.length()+1 && T.indexOf(S) == 0) {\n\t\t\t System.out.println(\"Yes\");\n\t\t }\n\t\t else{\n\t\t\t System.out.println(\"No\");\n\t\t }",
"T.length() == S.length()+1 && T.indexOf(S) == 0",
"T.length() == S.length()+1",
"T.length()",
"T.length",
"T",
"S.length()+1",
"S.length()",
"S.length",
"S",
"1",
"T.indexOf(S) == 0",
"T.indexOf(S)",
"T.indexOf",
"T",
"S",
"0",
"{\n\t\t\t System.out.println(\"Yes\");\n\t\t }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t\t System.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\t public static void main(String[] args) {\n\t\t \n\t\t Scanner scanner = new Scanner(System.in);\n\t\t \n\t\t String S = scanner.next();\n\t \t\tString T = scanner.next();\n\t \t\t\n\t\t if (T.length() == S.length()+1 && T.indexOf(S) == 0) {\n\t\t\t System.out.println(\"Yes\");\n\t\t }\n\t\t else{\n\t\t\t System.out.println(\"No\");\n\t\t }\n\t\t scanner.close();\n\t}\n}",
"public class Main{\n\t public static void main(String[] args) {\n\t\t \n\t\t Scanner scanner = new Scanner(System.in);\n\t\t \n\t\t String S = scanner.next();\n\t \t\tString T = scanner.next();\n\t \t\t\n\t\t if (T.length() == S.length()+1 && T.indexOf(S) == 0) {\n\t\t\t System.out.println(\"Yes\");\n\t\t }\n\t\t else{\n\t\t\t System.out.println(\"No\");\n\t\t }\n\t\t scanner.close();\n\t}\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.length() == S.length()+1 && T.indexOf(S) == 0) {
System.out.println("Yes");
}
else{
System.out.println("No");
}
scanner.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,
2,
2,
4,
18,
13,
2,
4,
18,
13,
17,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
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
],
[
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
],
[
37,
38
],
[
35,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
39,
43
],
[
34,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
33,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
33,
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
]
] |
[
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String args[]){\n\n Scanner scan = new Scanner(System.in);\n\n String s = scan.nextLine();\n String t = scan.nextLine();\n\n \n String tt = t.substring(0, t.length()-1);\n\n \n \n \n if ( (s.length() == t.length() -1) && (s.equals(tt)) ){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n scan.close();\n }\n }",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String args[]){\n\n Scanner scan = new Scanner(System.in);\n\n String s = scan.nextLine();\n String t = scan.nextLine();\n\n \n String tt = t.substring(0, t.length()-1);\n\n \n \n \n if ( (s.length() == t.length() -1) && (s.equals(tt)) ){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n scan.close();\n }\n }",
"Main",
"public static void main(String args[]){\n\n Scanner scan = new Scanner(System.in);\n\n String s = scan.nextLine();\n String t = scan.nextLine();\n\n \n String tt = t.substring(0, t.length()-1);\n\n \n \n \n if ( (s.length() == t.length() -1) && (s.equals(tt)) ){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n scan.close();\n }",
"main",
"{\n\n Scanner scan = new Scanner(System.in);\n\n String s = scan.nextLine();\n String t = scan.nextLine();\n\n \n String tt = t.substring(0, t.length()-1);\n\n \n \n \n if ( (s.length() == t.length() -1) && (s.equals(tt)) ){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\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",
"String tt = t.substring(0, t.length()-1);",
"tt",
"t.substring(0, t.length()-1)",
"t.substring",
"t",
"0",
"t.length()-1",
"t.length()",
"t.length",
"t",
"1",
"if ( (s.length() == t.length() -1) && (s.equals(tt)) ){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"(s.length() == t.length() -1) && (s.equals(tt))",
"(s.length() == t.length() -1)",
"s.length()",
"s.length",
"s",
"t.length() -1",
"t.length()",
"t.length",
"t",
"1",
"(s.equals(tt))",
"s.equals",
"s",
"tt",
"{\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\"",
"scan.close()",
"scan.close",
"scan",
"String args[]",
"args",
"public class Main{\n public static void main(String args[]){\n\n Scanner scan = new Scanner(System.in);\n\n String s = scan.nextLine();\n String t = scan.nextLine();\n\n \n String tt = t.substring(0, t.length()-1);\n\n \n \n \n if ( (s.length() == t.length() -1) && (s.equals(tt)) ){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n scan.close();\n }\n }",
"public class Main{\n public static void main(String args[]){\n\n Scanner scan = new Scanner(System.in);\n\n String s = scan.nextLine();\n String t = scan.nextLine();\n\n \n String tt = t.substring(0, t.length()-1);\n\n \n \n \n if ( (s.length() == t.length() -1) && (s.equals(tt)) ){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n scan.close();\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();
String tt = t.substring(0, t.length()-1);
if ( (s.length() == t.length() -1) && (s.equals(tt)) ){
System.out.println("Yes");
} else {
System.out.println("No");
}
scan.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
4,
13,
18,
13,
13,
18,
13,
13,
23,
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,
4,
18,
13,
17,
4,
18,
13,
17,
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
],
[
70,
11
],
[
70,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
17,
19
],
[
15,
20
],
[
20,
21
],
[
20,
22
],
[
12,
23
],
[
23,
24
],
[
70,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
27,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
27,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
47,
51
],
[
27,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
52,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
52,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
25,
65
],
[
65,
66
],
[
25,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
] |
[
"\nimport java.io.InputStream;\nimport java.io.PrintStream;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n String s = scan.next();\n String t = scan.next();\n\n String sub = t.substring(0, t.length()-1);\n\n if(s.equals(sub))\n os.println(\"Yes\");\n else\n os.println(\"No\");\n }\n}",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.PrintStream;",
"PrintStream",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n String s = scan.next();\n String t = scan.next();\n\n String sub = t.substring(0, t.length()-1);\n\n if(s.equals(sub))\n os.println(\"Yes\");\n else\n os.println(\"No\");\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }",
"main",
"{\n solve(System.in, System.out);\n }",
"solve(System.in, System.out)",
"solve",
"System.in",
"System",
"System.in",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n String s = scan.next();\n String t = scan.next();\n\n String sub = t.substring(0, t.length()-1);\n\n if(s.equals(sub))\n os.println(\"Yes\");\n else\n os.println(\"No\");\n }",
"solve",
"{\n // Your code here!\n Scanner scan = new Scanner(is);\n String s = scan.next();\n String t = scan.next();\n\n String sub = t.substring(0, t.length()-1);\n\n if(s.equals(sub))\n os.println(\"Yes\");\n else\n os.println(\"No\");\n }",
"Scanner scan = new Scanner(is);",
"scan",
"new Scanner(is)",
"String s = scan.next();",
"s",
"scan.next()",
"scan.next",
"scan",
"String t = scan.next();",
"t",
"scan.next()",
"scan.next",
"scan",
"String sub = t.substring(0, t.length()-1);",
"sub",
"t.substring(0, t.length()-1)",
"t.substring",
"t",
"0",
"t.length()-1",
"t.length()",
"t.length",
"t",
"1",
"if(s.equals(sub))\n os.println(\"Yes\");\n else\n os.println(\"No\");",
"s.equals(sub)",
"s.equals",
"s",
"sub",
"os.println(\"Yes\")",
"os.println",
"os",
"\"Yes\"",
"os.println(\"No\")",
"os.println",
"os",
"\"No\"",
"InputStream is",
"is",
"PrintStream os",
"os",
"public class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n String s = scan.next();\n String t = scan.next();\n\n String sub = t.substring(0, t.length()-1);\n\n if(s.equals(sub))\n os.println(\"Yes\");\n else\n os.println(\"No\");\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n String s = scan.next();\n String t = scan.next();\n\n String sub = t.substring(0, t.length()-1);\n\n if(s.equals(sub))\n os.println(\"Yes\");\n else\n os.println(\"No\");\n }\n}",
"Main"
] |
import java.io.InputStream;
import java.io.PrintStream;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
solve(System.in, System.out);
}
static void solve(InputStream is, PrintStream os) {
// Your code here!
Scanner scan = new Scanner(is);
String s = scan.next();
String t = scan.next();
String sub = t.substring(0, t.length()-1);
if(s.equals(sub))
os.println("Yes");
else
os.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,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
13,
30,
40,
13,
14,
2,
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
],
[
82,
5
],
[
82,
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
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
39,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
39,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
8,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
59,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
59,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
6,
79
],
[
79,
80
],
[
0,
81
],
[
81,
82
],
[
81,
83
]
] |
[
"import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString S = scan.next();\n\t\tString T = scan.next();\n\t\tint count = 0; \n\t\t\n\t\tfor(int i=0;i<S.length();i++) {\n\t\t\tchar s = S.charAt(i);\n\t\t\tchar t = T.charAt(i);\n\t\t\tif(s == t) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif(count == S.length()) {\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\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString S = scan.next();\n\t\tString T = scan.next();\n\t\tint count = 0; \n\t\t\n\t\tfor(int i=0;i<S.length();i++) {\n\t\t\tchar s = S.charAt(i);\n\t\t\tchar t = T.charAt(i);\n\t\t\tif(s == t) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif(count == S.length()) {\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\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString S = scan.next();\n\t\tString T = scan.next();\n\t\tint count = 0; \n\t\t\n\t\tfor(int i=0;i<S.length();i++) {\n\t\t\tchar s = S.charAt(i);\n\t\t\tchar t = T.charAt(i);\n\t\t\tif(s == t) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif(count == S.length()) {\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\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString S = scan.next();\n\t\tString T = scan.next();\n\t\tint count = 0; \n\t\t\n\t\tfor(int i=0;i<S.length();i++) {\n\t\t\tchar s = S.charAt(i);\n\t\t\tchar t = T.charAt(i);\n\t\t\tif(s == t) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif(count == S.length()) {\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 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",
"int count = 0;",
"count",
"0",
"for(int i=0;i<S.length();i++) {\n\t\t\tchar s = S.charAt(i);\n\t\t\tchar t = T.charAt(i);\n\t\t\tif(s == t) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<S.length()",
"i",
"S.length()",
"S.length",
"S",
"i++",
"i++",
"i",
"{\n\t\t\tchar s = S.charAt(i);\n\t\t\tchar t = T.charAt(i);\n\t\t\tif(s == t) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tchar s = S.charAt(i);\n\t\t\tchar t = T.charAt(i);\n\t\t\tif(s == t) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}",
"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\t\t\t\tcount++;\n\t\t\t}",
"s == t",
"s",
"t",
"{\n\t\t\t\tcount++;\n\t\t\t}",
"count++",
"count",
"if(count == S.length()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"count == S.length()",
"count",
"S.length()",
"S.length",
"S",
"{\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 scan = new Scanner(System.in);\n\t\t\n\t\tString S = scan.next();\n\t\tString T = scan.next();\n\t\tint count = 0; \n\t\t\n\t\tfor(int i=0;i<S.length();i++) {\n\t\t\tchar s = S.charAt(i);\n\t\t\tchar t = T.charAt(i);\n\t\t\tif(s == t) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif(count == S.length()) {\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\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString S = scan.next();\n\t\tString T = scan.next();\n\t\tint count = 0; \n\t\t\n\t\tfor(int i=0;i<S.length();i++) {\n\t\t\tchar s = S.charAt(i);\n\t\t\tchar t = T.charAt(i);\n\t\t\tif(s == t) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif(count == S.length()) {\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 scan = new Scanner(System.in);
String S = scan.next();
String T = scan.next();
int count = 0;
for(int i=0;i<S.length();i++) {
char s = S.charAt(i);
char t = T.charAt(i);
if(s == t) {
count++;
}
}
if(count == 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,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
12,
13,
30,
41,
13,
20,
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
],
[
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
],
[
50,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
41,
47
],
[
47,
48
],
[
0,
49
],
[
49,
50
],
[
49,
51
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n public Main(){\n Scanner sc = new Scanner(System.in);\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\n public static void main(String[] args) {\n Main M = new Main();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public Main(){\n Scanner sc = new Scanner(System.in);\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\n public static void main(String[] args) {\n Main M = new Main();\n }\n}",
"Main",
"public Main(){\n Scanner sc = new Scanner(System.in);\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 Scanner sc = new Scanner(System.in);\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\"",
"public static void main(String[] args) {\n Main M = new Main();\n }",
"main",
"{\n Main M = new Main();\n }",
"Main M = new Main();",
"M",
"new Main()",
"String[] args",
"args",
"public class Main {\n\n public Main(){\n Scanner sc = new Scanner(System.in);\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\n public static void main(String[] args) {\n Main M = new Main();\n }\n}",
"public class Main {\n\n public Main(){\n Scanner sc = new Scanner(System.in);\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\n public static void main(String[] args) {\n Main M = new Main();\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public Main(){
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");
}
}
public static void main(String[] args) {
Main M = new Main();
}
}
|
[
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,
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,
0,
13,
17,
14,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
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,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
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,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
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,
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,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
13,
4,
13,
13,
4,
18,
13,
13,
29,
13,
23,
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,
4,
13,
13,
4,
18,
13,
13,
29,
13,
23,
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,
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,
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,
4,
13,
17,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
4,
18,
13,
17
] |
[
[
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
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
29,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
29,
43
],
[
43,
44
],
[
43,
45
],
[
29,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
46,
56
],
[
56,
57
],
[
57,
58
],
[
46,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
62,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
61,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
29,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
75,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
27,
91
],
[
91,
92
],
[
25,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
103,
105
],
[
96,
106
],
[
106,
107
],
[
107,
108
],
[
96,
109
],
[
110,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
113,
117
],
[
117,
118
],
[
117,
119
],
[
110,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
122,
124
],
[
110,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
129,
130
],
[
129,
131
],
[
110,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
93,
137
],
[
137,
138
],
[
25,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
142,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
149,
151
],
[
142,
152
],
[
152,
153
],
[
153,
154
],
[
142,
155
],
[
156,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
159,
163
],
[
163,
164
],
[
163,
165
],
[
156,
166
],
[
166,
167
],
[
166,
168
],
[
168,
169
],
[
168,
170
],
[
156,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
175,
176
],
[
175,
177
],
[
156,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
182
],
[
139,
183
],
[
183,
184
],
[
25,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
185,
189
],
[
189,
190
],
[
185,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
191,
197
],
[
197,
198
],
[
185,
199
],
[
199,
200
],
[
199,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
199,
205
],
[
205,
206
],
[
185,
207
],
[
207,
208
],
[
207,
209
],
[
209,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
211,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
210,
219
],
[
219,
220
],
[
219,
221
],
[
209,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
185,
226
],
[
226,
227
],
[
226,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
228,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
235,
237
],
[
233,
238
],
[
238,
239
],
[
238,
240
],
[
233,
241
],
[
241,
242
],
[
242,
243
],
[
233,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
246,
248
],
[
245,
249
],
[
249,
250
],
[
228,
251
],
[
251,
252
],
[
226,
253
],
[
253,
254
],
[
185,
255
],
[
255,
256
],
[
255,
257
],
[
257,
258
],
[
258,
259
],
[
258,
260
],
[
257,
262
],
[
262,
263
],
[
263,
264
],
[
264,
265
],
[
264,
266
],
[
262,
267
],
[
267,
268
],
[
267,
269
],
[
262,
270
],
[
270,
271
],
[
271,
272
],
[
262,
273
],
[
273,
274
],
[
274,
275
],
[
275,
276
],
[
275,
277
],
[
274,
278
],
[
278,
279
],
[
257,
280
],
[
280,
281
],
[
255,
282
],
[
282,
283
],
[
185,
284
],
[
284,
285
],
[
284,
286
],
[
286,
287
],
[
287,
288
],
[
287,
289
],
[
286,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
291,
296
],
[
296,
297
],
[
296,
298
],
[
291,
299
],
[
299,
300
],
[
300,
301
],
[
291,
302
],
[
302,
303
],
[
303,
304
],
[
304,
305
],
[
304,
306
],
[
303,
307
],
[
307,
308
],
[
286,
309
],
[
309,
310
],
[
309,
311
],
[
286,
312
],
[
312,
313
],
[
313,
314
],
[
312,
315
],
[
286,
316
],
[
316,
317
],
[
284,
318
],
[
318,
319
],
[
185,
320
],
[
320,
321
],
[
320,
322
],
[
322,
323
],
[
323,
324
],
[
323,
325
],
[
322,
327
],
[
327,
328
],
[
328,
329
],
[
329,
330
],
[
329,
331
],
[
327,
332
],
[
332,
333
],
[
332,
334
],
[
327,
335
],
[
335,
336
],
[
336,
337
],
[
327,
338
],
[
338,
339
],
[
339,
340
],
[
340,
341
],
[
340,
342
],
[
339,
343
],
[
343,
344
],
[
322,
345
],
[
345,
346
],
[
345,
347
],
[
322,
348
],
[
348,
349
],
[
349,
350
],
[
348,
351
],
[
322,
352
],
[
352,
353
],
[
320,
354
],
[
354,
355
],
[
185,
356
],
[
356,
357
],
[
356,
358
],
[
358,
359
],
[
359,
360
],
[
359,
361
],
[
358,
363
],
[
363,
364
],
[
364,
365
],
[
365,
366
],
[
365,
367
],
[
363,
368
],
[
368,
369
],
[
368,
370
],
[
363,
371
],
[
371,
372
],
[
372,
373
],
[
363,
374
],
[
374,
375
],
[
375,
376
],
[
376,
377
],
[
376,
378
],
[
375,
379
],
[
379,
380
],
[
358,
381
],
[
381,
382
],
[
356,
383
],
[
383,
384
],
[
185,
385
],
[
385,
386
],
[
385,
387
],
[
387,
388
],
[
388,
389
],
[
388,
390
],
[
387,
392
],
[
392,
393
],
[
393,
394
],
[
394,
395
],
[
394,
396
],
[
392,
397
],
[
397,
398
],
[
397,
399
],
[
392,
400
],
[
400,
401
],
[
401,
402
],
[
392,
403
],
[
403,
404
],
[
404,
405
],
[
405,
406
],
[
405,
407
],
[
404,
408
],
[
408,
409
],
[
387,
410
],
[
410,
411
],
[
385,
412
],
[
412,
413
],
[
185,
414
],
[
414,
415
],
[
414,
416
],
[
416,
417
],
[
417,
418
],
[
418,
419
],
[
419,
420
],
[
185,
421
],
[
421,
422
],
[
421,
423
],
[
423,
424
],
[
424,
425
],
[
425,
426
],
[
426,
427
],
[
425,
428
],
[
428,
429
],
[
185,
430
],
[
430,
431
],
[
430,
432
],
[
432,
433
],
[
433,
434
],
[
434,
435
],
[
435,
436
],
[
434,
437
],
[
437,
438
],
[
185,
439
],
[
439,
440
],
[
439,
441
],
[
441,
442
],
[
442,
443
],
[
443,
444
],
[
444,
445
],
[
445,
446
],
[
443,
447
],
[
185,
448
],
[
448,
449
],
[
448,
450
],
[
450,
451
],
[
451,
452
],
[
452,
453
],
[
453,
454
],
[
452,
455
],
[
455,
456
],
[
185,
457
],
[
457,
458
],
[
457,
459
],
[
459,
460
],
[
460,
461
],
[
461,
462
],
[
462,
463
],
[
185,
464
],
[
464,
465
],
[
464,
466
],
[
466,
467
],
[
467,
468
],
[
468,
469
],
[
467,
470
]
] |
[
"import java.io.BufferedReader;\nimport java.io.FileReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.Scanner;\nimport java.util.StringTokenizer;\nclass Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tMScanner s = new MScanner(System.in);\n\t\tString s1 = s.next();\n\t\tString s2 = s.next();\n\t\tboolean ans = false;\n\t\tfor (int i = 0; i < s1.length(); i++) {\n\t\t\tif (s1.charAt(i) != s2.charAt(i)) {\n\t\t\t\tans = true;\n\t\t\t}\n\t\t}\n\t\tif (ans) {\n\t\t\tSystem.out.println(\"No\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t}\n\n\tstatic class MScanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic int[] intArr(int n) throws IOException {\n\t\t\tint[] in = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic long[] longArr(int n) throws IOException {\n\t\t\tlong[] in = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic int[] intSortedArr(int n) throws IOException {\n\t\t\tint[] in = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\tshuffle(in);\n\t\t\tArrays.sort(in);\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic long[] longSortedArr(int n) throws IOException {\n\t\t\tlong[] in = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\tshuffle(in);\n\t\t\tArrays.sort(in);\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic Integer[] IntegerArr(int n) throws IOException {\n\t\t\tInteger[] in = new Integer[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic Long[] LongArr(int n) throws IOException {\n\t\t\tLong[] in = new Long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n\n\tstatic void shuffle(int[] in) {\n\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\tint idx = (int) (Math.random() * in.length);\n\t\t\tint tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}\n\t}\n\n\tstatic void shuffle(long[] in) {\n\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\tint idx = (int) (Math.random() * in.length);\n\t\t\tlong tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.FileReader;",
"FileReader",
"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.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tMScanner s = new MScanner(System.in);\n\t\tString s1 = s.next();\n\t\tString s2 = s.next();\n\t\tboolean ans = false;\n\t\tfor (int i = 0; i < s1.length(); i++) {\n\t\t\tif (s1.charAt(i) != s2.charAt(i)) {\n\t\t\t\tans = true;\n\t\t\t}\n\t\t}\n\t\tif (ans) {\n\t\t\tSystem.out.println(\"No\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t}\n\n\tstatic class MScanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic int[] intArr(int n) throws IOException {\n\t\t\tint[] in = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic long[] longArr(int n) throws IOException {\n\t\t\tlong[] in = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic int[] intSortedArr(int n) throws IOException {\n\t\t\tint[] in = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\tshuffle(in);\n\t\t\tArrays.sort(in);\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic long[] longSortedArr(int n) throws IOException {\n\t\t\tlong[] in = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\tshuffle(in);\n\t\t\tArrays.sort(in);\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic Integer[] IntegerArr(int n) throws IOException {\n\t\t\tInteger[] in = new Integer[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic Long[] LongArr(int n) throws IOException {\n\t\t\tLong[] in = new Long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n\n\tstatic void shuffle(int[] in) {\n\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\tint idx = (int) (Math.random() * in.length);\n\t\t\tint tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}\n\t}\n\n\tstatic void shuffle(long[] in) {\n\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\tint idx = (int) (Math.random() * in.length);\n\t\t\tlong tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tMScanner s = new MScanner(System.in);\n\t\tString s1 = s.next();\n\t\tString s2 = s.next();\n\t\tboolean ans = false;\n\t\tfor (int i = 0; i < s1.length(); i++) {\n\t\t\tif (s1.charAt(i) != s2.charAt(i)) {\n\t\t\t\tans = true;\n\t\t\t}\n\t\t}\n\t\tif (ans) {\n\t\t\tSystem.out.println(\"No\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tMScanner s = new MScanner(System.in);\n\t\tString s1 = s.next();\n\t\tString s2 = s.next();\n\t\tboolean ans = false;\n\t\tfor (int i = 0; i < s1.length(); i++) {\n\t\t\tif (s1.charAt(i) != s2.charAt(i)) {\n\t\t\t\tans = true;\n\t\t\t}\n\t\t}\n\t\tif (ans) {\n\t\t\tSystem.out.println(\"No\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t}",
"MScanner s = new MScanner(System.in);",
"s",
"new MScanner(System.in)",
"String s1 = s.next();",
"s1",
"s.next()",
"s.next",
"s",
"String s2 = s.next();",
"s2",
"s.next()",
"s.next",
"s",
"boolean ans = false;",
"ans",
"false",
"for (int i = 0; i < s1.length(); i++) {\n\t\t\tif (s1.charAt(i) != s2.charAt(i)) {\n\t\t\t\tans = true;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < s1.length()",
"i",
"s1.length()",
"s1.length",
"s1",
"i++",
"i++",
"i",
"{\n\t\t\tif (s1.charAt(i) != s2.charAt(i)) {\n\t\t\t\tans = true;\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (s1.charAt(i) != s2.charAt(i)) {\n\t\t\t\tans = true;\n\t\t\t}\n\t\t}",
"if (s1.charAt(i) != s2.charAt(i)) {\n\t\t\t\tans = true;\n\t\t\t}",
"s1.charAt(i) != s2.charAt(i)",
"s1.charAt(i)",
"s1.charAt",
"s1",
"i",
"s2.charAt(i)",
"s2.charAt",
"s2",
"i",
"{\n\t\t\t\tans = true;\n\t\t\t}",
"ans = true",
"ans",
"true",
"if (ans) {\n\t\t\tSystem.out.println(\"No\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}",
"ans",
"{\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\tSystem.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"String[] args",
"args",
"static void shuffle(int[] in) {\n\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\tint idx = (int) (Math.random() * in.length);\n\t\t\tint tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}\n\t}",
"shuffle",
"{\n\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\tint idx = (int) (Math.random() * in.length);\n\t\t\tint tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}\n\t}",
"for (int i = 0; i < in.length; i++) {\n\t\t\tint idx = (int) (Math.random() * in.length);\n\t\t\tint tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < in.length",
"i",
"in.length",
"in",
"in.length",
"i++",
"i++",
"i",
"{\n\t\t\tint idx = (int) (Math.random() * in.length);\n\t\t\tint tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}",
"{\n\t\t\tint idx = (int) (Math.random() * in.length);\n\t\t\tint tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}",
"int idx = (int) (Math.random() * in.length);",
"idx",
"(int) (Math.random() * in.length)",
"Math.random()",
"Math.random",
"Math",
"in.length",
"in",
"in.length",
"int tmp = in[i];",
"tmp",
"in[i]",
"in",
"i",
"in[i] = in[idx]",
"in[i]",
"in",
"i",
"in[idx]",
"in",
"idx",
"in[idx] = tmp",
"in[idx]",
"in",
"idx",
"tmp",
"int[] in",
"in",
"static void shuffle(long[] in) {\n\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\tint idx = (int) (Math.random() * in.length);\n\t\t\tlong tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}\n\t}",
"shuffle",
"{\n\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\tint idx = (int) (Math.random() * in.length);\n\t\t\tlong tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}\n\t}",
"for (int i = 0; i < in.length; i++) {\n\t\t\tint idx = (int) (Math.random() * in.length);\n\t\t\tlong tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < in.length",
"i",
"in.length",
"in",
"in.length",
"i++",
"i++",
"i",
"{\n\t\t\tint idx = (int) (Math.random() * in.length);\n\t\t\tlong tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}",
"{\n\t\t\tint idx = (int) (Math.random() * in.length);\n\t\t\tlong tmp = in[i];\n\t\t\tin[i] = in[idx];\n\t\t\tin[idx] = tmp;\n\t\t}",
"int idx = (int) (Math.random() * in.length);",
"idx",
"(int) (Math.random() * in.length)",
"Math.random()",
"Math.random",
"Math",
"in.length",
"in",
"in.length",
"long tmp = in[i];",
"tmp",
"in[i]",
"in",
"i",
"in[i] = in[idx]",
"in[i]",
"in",
"i",
"in[idx]",
"in",
"idx",
"in[idx] = tmp",
"in[idx]",
"in",
"idx",
"tmp",
"long[] in",
"in",
"static class MScanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n\n\t\tpublic MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic int[] intArr(int n) throws IOException {\n\t\t\tint[] in = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic long[] longArr(int n) throws IOException {\n\t\t\tlong[] in = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic int[] intSortedArr(int n) throws IOException {\n\t\t\tint[] in = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\tshuffle(in);\n\t\t\tArrays.sort(in);\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic long[] longSortedArr(int n) throws IOException {\n\t\t\tlong[] in = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\tshuffle(in);\n\t\t\tArrays.sort(in);\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic Integer[] IntegerArr(int n) throws IOException {\n\t\t\tInteger[] in = new Integer[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic Long[] LongArr(int n) throws IOException {\n\t\t\tLong[] in = new Long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\treturn in;\n\t\t}\n\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n\n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n\n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}",
"MScanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}",
"MScanner",
"{\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}",
"br = new BufferedReader(new InputStreamReader(system))",
"br",
"new BufferedReader(new InputStreamReader(system))",
"InputStream system",
"system",
"public MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}",
"MScanner",
"{\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}",
"br = new BufferedReader(new FileReader(file))",
"br",
"new BufferedReader(new FileReader(file))",
"String file",
"file",
"public String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}",
"while (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int[] intArr(int n) throws IOException {\n\t\t\tint[] in = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\treturn in;\n\t\t}",
"intArr",
"{\n\t\t\tint[] in = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\treturn in;\n\t\t}",
"int[] in = new int[n];",
"in",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"in[i] = nextInt();",
"in[i] = nextInt()",
"in[i]",
"in",
"i",
"nextInt()",
"nextInt",
"return in;",
"in",
"int n",
"n",
"public long[] longArr(int n) throws IOException {\n\t\t\tlong[] in = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\treturn in;\n\t\t}",
"longArr",
"{\n\t\t\tlong[] in = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\treturn in;\n\t\t}",
"long[] in = new long[n];",
"in",
"new long[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"in[i] = nextLong();",
"in[i] = nextLong()",
"in[i]",
"in",
"i",
"nextLong()",
"nextLong",
"return in;",
"in",
"int n",
"n",
"public int[] intSortedArr(int n) throws IOException {\n\t\t\tint[] in = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\tshuffle(in);\n\t\t\tArrays.sort(in);\n\t\t\treturn in;\n\t\t}",
"intSortedArr",
"{\n\t\t\tint[] in = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\tshuffle(in);\n\t\t\tArrays.sort(in);\n\t\t\treturn in;\n\t\t}",
"int[] in = new int[n];",
"in",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"in[i] = nextInt();",
"in[i] = nextInt()",
"in[i]",
"in",
"i",
"nextInt()",
"nextInt",
"shuffle(in)",
"shuffle",
"in",
"Arrays.sort(in)",
"Arrays.sort",
"Arrays",
"in",
"return in;",
"in",
"int n",
"n",
"public long[] longSortedArr(int n) throws IOException {\n\t\t\tlong[] in = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\tshuffle(in);\n\t\t\tArrays.sort(in);\n\t\t\treturn in;\n\t\t}",
"longSortedArr",
"{\n\t\t\tlong[] in = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\tshuffle(in);\n\t\t\tArrays.sort(in);\n\t\t\treturn in;\n\t\t}",
"long[] in = new long[n];",
"in",
"new long[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"in[i] = nextLong();",
"in[i] = nextLong()",
"in[i]",
"in",
"i",
"nextLong()",
"nextLong",
"shuffle(in)",
"shuffle",
"in",
"Arrays.sort(in)",
"Arrays.sort",
"Arrays",
"in",
"return in;",
"in",
"int n",
"n",
"public Integer[] IntegerArr(int n) throws IOException {\n\t\t\tInteger[] in = new Integer[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\treturn in;\n\t\t}",
"IntegerArr",
"{\n\t\t\tInteger[] in = new Integer[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();\n\t\t\treturn in;\n\t\t}",
"Integer[] in = new Integer[n];",
"in",
"new Integer[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"in[i] = nextInt();",
"in[i] = nextInt()",
"in[i]",
"in",
"i",
"nextInt()",
"nextInt",
"return in;",
"in",
"int n",
"n",
"public Long[] LongArr(int n) throws IOException {\n\t\t\tLong[] in = new Long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\treturn in;\n\t\t}",
"LongArr",
"{\n\t\t\tLong[] in = new Long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();\n\t\t\treturn in;\n\t\t}",
"Long[] in = new Long[n];",
"in",
"new Long[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\tin[i] = nextLong();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"in[i] = nextLong();",
"in[i] = nextLong()",
"in[i]",
"in",
"i",
"nextLong()",
"nextLong",
"return in;",
"in",
"int n",
"n",
"public String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}",
"nextLine",
"{\n\t\t\treturn br.readLine();\n\t\t}",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"public int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"nextDouble",
"{\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}",
"nextChar",
"{\n\t\t\treturn next().charAt(0);\n\t\t}",
"return next().charAt(0);",
"next().charAt(0)",
"next().charAt",
"next()",
"next",
"0",
"public long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}",
"ready",
"{\n\t\t\treturn br.ready();\n\t\t}",
"return br.ready();",
"br.ready()",
"br.ready",
"br",
"public void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}",
"waitForInput",
"{\n\t\t\tThread.sleep(3000);\n\t\t}",
"Thread.sleep(3000)",
"Thread.sleep",
"Thread",
"3000"
] |
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Scanner;
import java.util.StringTokenizer;
class Main {
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
MScanner s = new MScanner(System.in);
String s1 = s.next();
String s2 = s.next();
boolean ans = false;
for (int i = 0; i < s1.length(); i++) {
if (s1.charAt(i) != s2.charAt(i)) {
ans = true;
}
}
if (ans) {
System.out.println("No");
} else {
System.out.println("Yes");
}
}
static class MScanner {
StringTokenizer st;
BufferedReader br;
public MScanner(InputStream system) {
br = new BufferedReader(new InputStreamReader(system));
}
public MScanner(String file) throws Exception {
br = new BufferedReader(new FileReader(file));
}
public String next() throws IOException {
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(br.readLine());
return st.nextToken();
}
public int[] intArr(int n) throws IOException {
int[] in = new int[n];
for (int i = 0; i < n; i++)
in[i] = nextInt();
return in;
}
public long[] longArr(int n) throws IOException {
long[] in = new long[n];
for (int i = 0; i < n; i++)
in[i] = nextLong();
return in;
}
public int[] intSortedArr(int n) throws IOException {
int[] in = new int[n];
for (int i = 0; i < n; i++)
in[i] = nextInt();
shuffle(in);
Arrays.sort(in);
return in;
}
public long[] longSortedArr(int n) throws IOException {
long[] in = new long[n];
for (int i = 0; i < n; i++)
in[i] = nextLong();
shuffle(in);
Arrays.sort(in);
return in;
}
public Integer[] IntegerArr(int n) throws IOException {
Integer[] in = new Integer[n];
for (int i = 0; i < n; i++)
in[i] = nextInt();
return in;
}
public Long[] LongArr(int n) throws IOException {
Long[] in = new Long[n];
for (int i = 0; i < n; i++)
in[i] = nextLong();
return in;
}
public String nextLine() throws IOException {
return br.readLine();
}
public int nextInt() throws IOException {
return Integer.parseInt(next());
}
public double nextDouble() throws IOException {
return Double.parseDouble(next());
}
public char nextChar() throws IOException {
return next().charAt(0);
}
public long nextLong() throws IOException {
return Long.parseLong(next());
}
public boolean ready() throws IOException {
return br.ready();
}
public void waitForInput() throws InterruptedException {
Thread.sleep(3000);
}
}
static void shuffle(int[] in) {
for (int i = 0; i < in.length; i++) {
int idx = (int) (Math.random() * in.length);
int tmp = in[i];
in[i] = in[idx];
in[idx] = tmp;
}
}
static void shuffle(long[] in) {
for (int i = 0; i < in.length; i++) {
int idx = (int) (Math.random() * in.length);
long tmp = in[i];
in[i] = in[idx];
in[idx] = tmp;
}
}
}
|
[
7,
15,
13,
17,
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,
41,
13,
2,
4,
18,
13,
17,
41,
13,
4,
18,
13,
17,
13,
14,
2,
2,
4,
18,
13,
13,
40,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
81,
8
],
[
81,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
11,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
31,
35
],
[
11,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
38,
42
],
[
11,
43
],
[
43,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
45,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
45,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
59,
63
],
[
43,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
43,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
9,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
]
] |
[
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws Exception\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String s1=br.readLine().trim();\n String s2=br.readLine().trim();\n int n=s2.length()-1;\n String s3=s2.substring(0,n);\n\n if(s3.equals(s1) && !s1.equals(s2) && (s2.length()==s1.length()+1))\n {\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n\n\n\n\n }\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n public static void main(String[] args) throws Exception\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String s1=br.readLine().trim();\n String s2=br.readLine().trim();\n int n=s2.length()-1;\n String s3=s2.substring(0,n);\n\n if(s3.equals(s1) && !s1.equals(s2) && (s2.length()==s1.length()+1))\n {\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n\n\n\n\n }\n\n}",
"Main",
"public static void main(String[] args) throws Exception\n {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String s1=br.readLine().trim();\n String s2=br.readLine().trim();\n int n=s2.length()-1;\n String s3=s2.substring(0,n);\n\n if(s3.equals(s1) && !s1.equals(s2) && (s2.length()==s1.length()+1))\n {\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n\n\n\n\n }",
"main",
"{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n String s1=br.readLine().trim();\n String s2=br.readLine().trim();\n int n=s2.length()-1;\n String s3=s2.substring(0,n);\n\n if(s3.equals(s1) && !s1.equals(s2) && (s2.length()==s1.length()+1))\n {\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n\n\n\n\n }",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String s1=br.readLine().trim();",
"s1",
"br.readLine().trim()",
"br.readLine().trim",
"br.readLine()",
"br.readLine",
"br",
"String s2=br.readLine().trim();",
"s2",
"br.readLine().trim()",
"br.readLine().trim",
"br.readLine()",
"br.readLine",
"br",
"int n=s2.length()-1;",
"n",
"s2.length()-1",
"s2.length()",
"s2.length",
"s2",
"1",
"String s3=s2.substring(0,n);",
"s3",
"s2.substring(0,n)",
"s2.substring",
"s2",
"0",
"n",
"if(s3.equals(s1) && !s1.equals(s2) && (s2.length()==s1.length()+1))\n {\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }",
"s3.equals(s1) && !s1.equals(s2) && (s2.length()==s1.length()+1)",
"s3.equals(s1) && !s1.equals(s2) && (s2.length()==s1.length()+1)",
"s3.equals(s1)",
"s3.equals",
"s3",
"s1",
"!s1.equals(s2)",
"s1.equals(s2)",
"s1.equals",
"s1",
"s2",
"(s2.length()==s1.length()+1)",
"s2.length()",
"s2.length",
"s2",
"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\"",
"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 String s1=br.readLine().trim();\n String s2=br.readLine().trim();\n int n=s2.length()-1;\n String s3=s2.substring(0,n);\n\n if(s3.equals(s1) && !s1.equals(s2) && (s2.length()==s1.length()+1))\n {\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n\n\n\n\n }\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 String s1=br.readLine().trim();\n String s2=br.readLine().trim();\n int n=s2.length()-1;\n String s3=s2.substring(0,n);\n\n if(s3.equals(s1) && !s1.equals(s2) && (s2.length()==s1.length()+1))\n {\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n\n\n\n\n }\n\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String s1=br.readLine().trim();
String s2=br.readLine().trim();
int n=s2.length()-1;
String s3=s2.substring(0,n);
if(s3.equals(s1) && !s1.equals(s2) && (s2.length()==s1.length()+1))
{
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,
20,
41,
13,
20,
14,
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
],
[
47,
5
],
[
47,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
27,
28
],
[
28,
29
],
[
23,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
23,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
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) throws Exception {\n Scanner scanner = new Scanner(System.in);\n \n String id = scanner.nextLine();\n StringBuilder addOneId = new StringBuilder(scanner.nextLine());\n StringBuilder aoi = new StringBuilder(addOneId.deleteCharAt(addOneId.length()-1));\n \n if(id.equals(aoi.toString())) {\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) throws Exception {\n Scanner scanner = new Scanner(System.in);\n \n String id = scanner.nextLine();\n StringBuilder addOneId = new StringBuilder(scanner.nextLine());\n StringBuilder aoi = new StringBuilder(addOneId.deleteCharAt(addOneId.length()-1));\n \n if(id.equals(aoi.toString())) {\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 scanner = new Scanner(System.in);\n \n String id = scanner.nextLine();\n StringBuilder addOneId = new StringBuilder(scanner.nextLine());\n StringBuilder aoi = new StringBuilder(addOneId.deleteCharAt(addOneId.length()-1));\n \n if(id.equals(aoi.toString())) {\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 id = scanner.nextLine();\n StringBuilder addOneId = new StringBuilder(scanner.nextLine());\n StringBuilder aoi = new StringBuilder(addOneId.deleteCharAt(addOneId.length()-1));\n \n if(id.equals(aoi.toString())) {\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 id = scanner.nextLine();",
"id",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"StringBuilder addOneId = new StringBuilder(scanner.nextLine());",
"addOneId",
"new StringBuilder(scanner.nextLine())",
"StringBuilder aoi = new StringBuilder(addOneId.deleteCharAt(addOneId.length()-1));",
"aoi",
"new StringBuilder(addOneId.deleteCharAt(addOneId.length()-1))",
"if(id.equals(aoi.toString())) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"id.equals(aoi.toString())",
"id.equals",
"id",
"aoi.toString()",
"aoi.toString",
"aoi",
"{\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 scanner = new Scanner(System.in);\n \n String id = scanner.nextLine();\n StringBuilder addOneId = new StringBuilder(scanner.nextLine());\n StringBuilder aoi = new StringBuilder(addOneId.deleteCharAt(addOneId.length()-1));\n \n if(id.equals(aoi.toString())) {\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 scanner = new Scanner(System.in);\n \n String id = scanner.nextLine();\n StringBuilder addOneId = new StringBuilder(scanner.nextLine());\n StringBuilder aoi = new StringBuilder(addOneId.deleteCharAt(addOneId.length()-1));\n \n if(id.equals(aoi.toString())) {\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) throws Exception {
Scanner scanner = new Scanner(System.in);
String id = scanner.nextLine();
StringBuilder addOneId = new StringBuilder(scanner.nextLine());
StringBuilder aoi = new StringBuilder(addOneId.deleteCharAt(addOneId.length()-1));
if(id.equals(aoi.toString())) {
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,
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;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\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\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\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\t\tScanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\n if (T.startsWith(S)){\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\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\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\n if (T.startsWith(S)){\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\n }\n }\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\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 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,
41,
13,
12,
13,
30,
0,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
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
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
4,
8
],
[
8,
9
],
[
8,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
10,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
28,
32
],
[
32,
33
],
[
33,
34
],
[
24,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
24,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
8,
47
],
[
47,
48
]
] |
[
"import java.util.*;\n\nclass Main {\n private static Scanner sc;\n\n public static void main(final String[] args) {\n sc = new Scanner(System.in);\n String a = sc.next(),b = sc.next();\n if(a.equals(b.substring(0,a.length()))) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}\n\n\n\n\n\n",
"import java.util.*;",
"util.*",
"java",
"class Main {\n private static Scanner sc;\n\n public static void main(final String[] args) {\n sc = new Scanner(System.in);\n String a = sc.next(),b = sc.next();\n if(a.equals(b.substring(0,a.length()))) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}",
"Main",
"private static Scanner sc;",
"sc",
"public static void main(final String[] args) {\n sc = new Scanner(System.in);\n String a = sc.next(),b = sc.next();\n if(a.equals(b.substring(0,a.length()))) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }",
"main",
"{\n sc = new Scanner(System.in);\n String a = sc.next(),b = sc.next();\n if(a.equals(b.substring(0,a.length()))) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }",
"sc = new Scanner(System.in)",
"sc",
"new Scanner(System.in)",
"String a = sc.next()",
"a",
"sc.next()",
"sc.next",
"sc",
"b = sc.next();",
"b",
"sc.next()",
"sc.next",
"sc",
"if(a.equals(b.substring(0,a.length()))) System.out.println(\"Yes\");\n else System.out.println(\"No\");",
"a.equals(b.substring(0,a.length()))",
"a.equals",
"a",
"b.substring(0,a.length())",
"b.substring",
"b",
"0",
"a.length()",
"a.length",
"a",
"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\"",
"final String[] args",
"args"
] |
import java.util.*;
class Main {
private static Scanner sc;
public static void main(final String[] args) {
sc = new Scanner(System.in);
String a = sc.next(),b = sc.next();
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,
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,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
56,
5
],
[
56,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
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
],
[
32,
35
],
[
31,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
31,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
8,
50
],
[
50,
51
],
[
51,
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 // write your code here\n Scanner scan = new Scanner(System.in);\n String str = scan.nextLine();\n String str2 = scan.nextLine();\n\n String c = str2.substring(0, str.length());\n\n\n if (str.equals(c)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n scan.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n // write your code here\n Scanner scan = new Scanner(System.in);\n String str = scan.nextLine();\n String str2 = scan.nextLine();\n\n String c = str2.substring(0, str.length());\n\n\n if (str.equals(c)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n scan.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n // write your code here\n Scanner scan = new Scanner(System.in);\n String str = scan.nextLine();\n String str2 = scan.nextLine();\n\n String c = str2.substring(0, str.length());\n\n\n if (str.equals(c)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n scan.close();\n }",
"main",
"{\n // write your code here\n Scanner scan = new Scanner(System.in);\n String str = scan.nextLine();\n String str2 = scan.nextLine();\n\n String c = str2.substring(0, str.length());\n\n\n if (str.equals(c)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n scan.close();\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String str = scan.nextLine();",
"str",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String str2 = scan.nextLine();",
"str2",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String c = str2.substring(0, str.length());",
"c",
"str2.substring(0, str.length())",
"str2.substring",
"str2",
"0",
"str.length()",
"str.length",
"str",
"if (str.equals(c)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"str.equals(c)",
"str.equals",
"str",
"c",
"{\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\"",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n // write your code here\n Scanner scan = new Scanner(System.in);\n String str = scan.nextLine();\n String str2 = scan.nextLine();\n\n String c = str2.substring(0, str.length());\n\n\n if (str.equals(c)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n scan.close();\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n // write your code here\n Scanner scan = new Scanner(System.in);\n String str = scan.nextLine();\n String str2 = scan.nextLine();\n\n String c = str2.substring(0, str.length());\n\n\n if (str.equals(c)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n scan.close();\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// write your code here
Scanner scan = new Scanner(System.in);
String str = scan.nextLine();
String str2 = scan.nextLine();
String c = str2.substring(0, str.length());
if (str.equals(c)) {
System.out.println("Yes");
} else {
System.out.println("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,
4,
18,
18,
13,
13,
8,
4,
18,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
17,
17,
29,
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
],
[
37,
38
],
[
35,
39
],
[
27,
40
],
[
27,
41
],
[
8,
42
],
[
6,
43
],
[
43,
44
],
[
0,
45
],
[
45,
46
],
[
45,
47
]
] |
[
"import java.io.*;\n\npublic class Main {\n public static void main (String[] args) throws Exception {\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n String S = reader.readLine();\n String T = reader.readLine();\n System.out.println (S.equals (T.substring (0, T.length() - 1)) ? \"Yes\"\n : \"No\");\n return;\n }\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main (String[] args) throws Exception {\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n String S = reader.readLine();\n String T = reader.readLine();\n System.out.println (S.equals (T.substring (0, T.length() - 1)) ? \"Yes\"\n : \"No\");\n return;\n }\n}",
"Main",
"public static void main (String[] args) throws Exception {\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n String S = reader.readLine();\n String T = reader.readLine();\n System.out.println (S.equals (T.substring (0, T.length() - 1)) ? \"Yes\"\n : \"No\");\n return;\n }",
"main",
"{\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n String S = reader.readLine();\n String T = reader.readLine();\n System.out.println (S.equals (T.substring (0, T.length() - 1)) ? \"Yes\"\n : \"No\");\n return;\n }",
"BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));",
"reader",
"new BufferedReader (new InputStreamReader (System.in))",
"String S = reader.readLine();",
"S",
"reader.readLine()",
"reader.readLine",
"reader",
"String T = reader.readLine();",
"T",
"reader.readLine()",
"reader.readLine",
"reader",
"System.out.println (S.equals (T.substring (0, T.length() - 1)) ? \"Yes\"\n : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"S.equals (T.substring (0, T.length() - 1)) ? \"Yes\"\n : \"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\"",
"return;",
"String[] args",
"args",
"public class Main {\n public static void main (String[] args) throws Exception {\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n String S = reader.readLine();\n String T = reader.readLine();\n System.out.println (S.equals (T.substring (0, T.length() - 1)) ? \"Yes\"\n : \"No\");\n return;\n }\n}",
"public class Main {\n public static void main (String[] args) throws Exception {\n BufferedReader reader =\n new BufferedReader (new InputStreamReader (System.in));\n String S = reader.readLine();\n String T = reader.readLine();\n System.out.println (S.equals (T.substring (0, T.length() - 1)) ? \"Yes\"\n : \"No\");\n return;\n }\n}",
"Main"
] |
import java.io.*;
public class Main {
public static void main (String[] args) throws Exception {
BufferedReader reader =
new BufferedReader (new InputStreamReader (System.in));
String S = reader.readLine();
String T = reader.readLine();
System.out.println (S.equals (T.substring (0, T.length() - 1)) ? "Yes"
: "No");
return;
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
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,
6,
13,
41,
13,
12,
13,
30,
41,
13,
20,
0,
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,
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
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
7,
11
],
[
11,
12
],
[
7,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
7,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
22,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
32,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
21,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
7,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
54,
55
],
[
7,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
7,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
7,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
80,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
76,
93
],
[
93,
94
],
[
0,
95
],
[
150,
96
],
[
150,
97
],
[
97,
98
],
[
150,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
105,
106
],
[
105,
107
],
[
101,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
101,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
101,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
120,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
124,
128
],
[
101,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
130,
133
],
[
129,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
129,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
140,
143
],
[
101,
144
],
[
144,
145
],
[
145,
146
],
[
99,
147
],
[
147,
148
],
[
0,
149
],
[
149,
150
],
[
149,
151
]
] |
[
"\nimport java.io.*;\nimport java.util.*;\n\nclass MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine(){\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n}\n\n\n\npublic class Main {\n\n public static PrintWriter out;\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n String s = sc.next();\n String t = sc.next();\n String sub = t.substring(0,t.length()-1);\n if (sub.equals(s)){\n out.println(\"Yes\");\n }else {\n out.println(\"No\");\n }\n out.close();\n }\n\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine(){\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n\n}",
"MyScanner",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"MyScanner",
"{\n br = new BufferedReader(new InputStreamReader(System.in));\n }",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n return Long.parseLong(next());\n }",
"nextLong",
"{\n return Long.parseLong(next());\n }",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n return Double.parseDouble(next());\n }",
"nextDouble",
"{\n return Double.parseDouble(next());\n }",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine(){\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"nextLine",
"{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }",
"String str = \"\";",
"str",
"\"\"",
"try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n str = br.readLine();\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n\n public static PrintWriter out;\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n String s = sc.next();\n String t = sc.next();\n String sub = t.substring(0,t.length()-1);\n if (sub.equals(s)){\n out.println(\"Yes\");\n }else {\n out.println(\"No\");\n }\n out.close();\n }\n\n}",
"Main",
"public static PrintWriter out;",
"out",
"public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n String s = sc.next();\n String t = sc.next();\n String sub = t.substring(0,t.length()-1);\n if (sub.equals(s)){\n out.println(\"Yes\");\n }else {\n out.println(\"No\");\n }\n out.close();\n }",
"main",
"{\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n String s = sc.next();\n String t = sc.next();\n String sub = t.substring(0,t.length()-1);\n if (sub.equals(s)){\n out.println(\"Yes\");\n }else {\n out.println(\"No\");\n }\n out.close();\n }",
"MyScanner sc = new MyScanner();",
"sc",
"new MyScanner()",
"out = new PrintWriter(new BufferedOutputStream(System.out))",
"out",
"new PrintWriter(new BufferedOutputStream(System.out))",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String t = sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"String sub = t.substring(0,t.length()-1);",
"sub",
"t.substring(0,t.length()-1)",
"t.substring",
"t",
"0",
"t.length()-1",
"t.length()",
"t.length",
"t",
"1",
"if (sub.equals(s)){\n out.println(\"Yes\");\n }else {\n out.println(\"No\");\n }",
"sub.equals(s)",
"sub.equals",
"sub",
"s",
"{\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.close()",
"out.close",
"out",
"String[] args",
"args",
"public class Main {\n\n public static PrintWriter out;\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n String s = sc.next();\n String t = sc.next();\n String sub = t.substring(0,t.length()-1);\n if (sub.equals(s)){\n out.println(\"Yes\");\n }else {\n out.println(\"No\");\n }\n out.close();\n }\n\n}",
"public class Main {\n\n public static PrintWriter out;\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n String s = sc.next();\n String t = sc.next();\n String sub = t.substring(0,t.length()-1);\n if (sub.equals(s)){\n out.println(\"Yes\");\n }else {\n out.println(\"No\");\n }\n out.close();\n }\n\n}",
"Main"
] |
import java.io.*;
import java.util.*;
class MyScanner {
BufferedReader br;
StringTokenizer st;
public MyScanner() {
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 class Main {
public static PrintWriter out;
public static void main(String[] args) {
MyScanner sc = new MyScanner();
out = new PrintWriter(new BufferedOutputStream(System.out));
String s = sc.next();
String t = sc.next();
String sub = t.substring(0,t.length()-1);
if (sub.equals(s)){
out.println("Yes");
}else {
out.println("No");
}
out.close();
}
}
|
[
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.*;\npublic class Main{\n\tpublic static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n \n String a = sc.next();\n String n = sc.next();\n \n if (n.startsWith(a) && n.length() == a.length() + 1) {\n \tSystem.out.println(\"Yes\");\n } else {\n \tSystem.out.println(\"No\"); \n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n \n String a = sc.next();\n String n = sc.next();\n \n if (n.startsWith(a) && n.length() == a.length() + 1) {\n \tSystem.out.println(\"Yes\");\n } else {\n \tSystem.out.println(\"No\"); \n }\n }\n}",
"Main",
"public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n \n String a = sc.next();\n String n = sc.next();\n \n if (n.startsWith(a) && n.length() == a.length() + 1) {\n \tSystem.out.println(\"Yes\");\n } else {\n \tSystem.out.println(\"No\"); \n }\n }",
"main",
"{\n \n Scanner sc = new Scanner(System.in);\n \n String a = sc.next();\n String n = sc.next();\n \n if (n.startsWith(a) && n.length() == a.length() + 1) {\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 a = sc.next();",
"a",
"sc.next()",
"sc.next",
"sc",
"String n = sc.next();",
"n",
"sc.next()",
"sc.next",
"sc",
"if (n.startsWith(a) && n.length() == a.length() + 1) {\n \tSystem.out.println(\"Yes\");\n } else {\n \tSystem.out.println(\"No\"); \n }",
"n.startsWith(a) && n.length() == a.length() + 1",
"n.startsWith(a)",
"n.startsWith",
"n",
"a",
"n.length() == a.length() + 1",
"n.length()",
"n.length",
"n",
"a.length() + 1",
"a.length()",
"a.length",
"a",
"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\"",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n \n String a = sc.next();\n String n = sc.next();\n \n if (n.startsWith(a) && n.length() == a.length() + 1) {\n \tSystem.out.println(\"Yes\");\n } else {\n \tSystem.out.println(\"No\"); \n }\n }\n}",
"public class Main{\n\tpublic static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n \n String a = sc.next();\n String n = sc.next();\n \n if (n.startsWith(a) && n.length() == a.length() + 1) {\n \tSystem.out.println(\"Yes\");\n } else {\n \tSystem.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 a = sc.next();
String n = sc.next();
if (n.startsWith(a) && n.length() == a.length() + 1) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
29,
17,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
2,
13,
13,
2,
13,
13,
30,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
30,
29,
17,
40,
13,
29,
2,
2,
13,
13,
2,
2,
13,
13,
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,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
105,
5
],
[
105,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
9,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
43,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
42,
52
],
[
52,
53
],
[
53,
54
],
[
41,
55
],
[
55,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
6,
67
],
[
67,
68
],
[
6,
69
],
[
69,
70
],
[
105,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
73,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
73,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
93,
96
],
[
92,
97
],
[
92,
98
],
[
73,
99
],
[
99,
100
],
[
100,
101
],
[
71,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n private static boolean canBeAppended(String s1, String s2) {\n if (s1 == null || s2 == null) {\n return false;\n }\n\n int m = s1.length(), n = s2.length(), i = 0;\n while (i < m && i < n) {\n if (s1.charAt(i) != s2.charAt(i)) {\n return false;\n }\n i++;\n }\n\n return n != i && n - i <= 2;\n }\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s1 = sc.next();\n String s2 = sc.next();\n\n System.out.println(canBeAppended(s1, s2) ? \"Yes\" : \"No\");\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n private static boolean canBeAppended(String s1, String s2) {\n if (s1 == null || s2 == null) {\n return false;\n }\n\n int m = s1.length(), n = s2.length(), i = 0;\n while (i < m && i < n) {\n if (s1.charAt(i) != s2.charAt(i)) {\n return false;\n }\n i++;\n }\n\n return n != i && n - i <= 2;\n }\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s1 = sc.next();\n String s2 = sc.next();\n\n System.out.println(canBeAppended(s1, s2) ? \"Yes\" : \"No\");\n sc.close();\n }\n}",
"Main",
"private static boolean canBeAppended(String s1, String s2) {\n if (s1 == null || s2 == null) {\n return false;\n }\n\n int m = s1.length(), n = s2.length(), i = 0;\n while (i < m && i < n) {\n if (s1.charAt(i) != s2.charAt(i)) {\n return false;\n }\n i++;\n }\n\n return n != i && n - i <= 2;\n }",
"canBeAppended",
"{\n if (s1 == null || s2 == null) {\n return false;\n }\n\n int m = s1.length(), n = s2.length(), i = 0;\n while (i < m && i < n) {\n if (s1.charAt(i) != s2.charAt(i)) {\n return false;\n }\n i++;\n }\n\n return n != i && n - i <= 2;\n }",
"if (s1 == null || s2 == null) {\n return false;\n }",
"s1 == null || s2 == null",
"s1 == null",
"s1",
"null",
"s2 == null",
"s2",
"null",
"{\n return false;\n }",
"return false;",
"false",
"int m = s1.length()",
"m",
"s1.length()",
"s1.length",
"s1",
"n = s2.length()",
"n",
"s2.length()",
"s2.length",
"s2",
"i = 0;",
"i",
"0",
"while (i < m && i < n) {\n if (s1.charAt(i) != s2.charAt(i)) {\n return false;\n }\n i++;\n }",
"i < m && i < n",
"i < m",
"i",
"m",
"i < n",
"i",
"n",
"{\n if (s1.charAt(i) != s2.charAt(i)) {\n return false;\n }\n i++;\n }",
"if (s1.charAt(i) != s2.charAt(i)) {\n return false;\n }",
"s1.charAt(i) != s2.charAt(i)",
"s1.charAt(i)",
"s1.charAt",
"s1",
"i",
"s2.charAt(i)",
"s2.charAt",
"s2",
"i",
"{\n return false;\n }",
"return false;",
"false",
"i++",
"i",
"return n != i && n - i <= 2;",
"n != i && n - i <= 2",
"n != i",
"n",
"i",
"n - i <= 2",
"n - i",
"n",
"i",
"2",
"String s1",
"s1",
"String s2",
"s2",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s1 = sc.next();\n String s2 = sc.next();\n\n System.out.println(canBeAppended(s1, s2) ? \"Yes\" : \"No\");\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String s1 = sc.next();\n String s2 = sc.next();\n\n System.out.println(canBeAppended(s1, s2) ? \"Yes\" : \"No\");\n sc.close();\n }",
"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",
"System.out.println(canBeAppended(s1, s2) ? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"canBeAppended(s1, s2) ? \"Yes\" : \"No\"",
"canBeAppended(s1, s2)",
"canBeAppended",
"s1",
"s2",
"\"Yes\"",
"\"No\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n private static boolean canBeAppended(String s1, String s2) {\n if (s1 == null || s2 == null) {\n return false;\n }\n\n int m = s1.length(), n = s2.length(), i = 0;\n while (i < m && i < n) {\n if (s1.charAt(i) != s2.charAt(i)) {\n return false;\n }\n i++;\n }\n\n return n != i && n - i <= 2;\n }\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s1 = sc.next();\n String s2 = sc.next();\n\n System.out.println(canBeAppended(s1, s2) ? \"Yes\" : \"No\");\n sc.close();\n }\n}",
"public class Main {\n\n private static boolean canBeAppended(String s1, String s2) {\n if (s1 == null || s2 == null) {\n return false;\n }\n\n int m = s1.length(), n = s2.length(), i = 0;\n while (i < m && i < n) {\n if (s1.charAt(i) != s2.charAt(i)) {\n return false;\n }\n i++;\n }\n\n return n != i && n - i <= 2;\n }\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s1 = sc.next();\n String s2 = sc.next();\n\n System.out.println(canBeAppended(s1, s2) ? \"Yes\" : \"No\");\n sc.close();\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
private static boolean canBeAppended(String s1, String s2) {
if (s1 == null || s2 == null) {
return false;
}
int m = s1.length(), n = s2.length(), i = 0;
while (i < m && i < n) {
if (s1.charAt(i) != s2.charAt(i)) {
return false;
}
i++;
}
return n != i && n - i <= 2;
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s1 = sc.next();
String s2 = sc.next();
System.out.println(canBeAppended(s1, s2) ? "Yes" : "No");
sc.close();
}
}
|
[
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,
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,
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,
41,
13,
20,
17,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
40,
17,
30,
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,
30,
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,
20,
42,
40,
4,
13,
13,
30,
14,
4,
18,
13,
13,
30,
4,
18,
13,
13,
0,
13,
4,
13,
29,
4,
18,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
4,
18,
13,
13,
29,
4,
13,
13,
23,
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,
6,
13,
12,
13,
23,
13,
6,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
18,
36,
13,
20,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
17,
30,
4,
18,
13,
17,
4,
18,
13,
18,
13,
13,
23,
13,
12,
13,
30,
4,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
4,
18,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
31,
32
],
[
31,
33
],
[
0,
34
],
[
351,
35
],
[
351,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
38,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
38,
49
],
[
49,
50
],
[
49,
51
],
[
38,
52
],
[
52,
53
],
[
52,
54
],
[
38,
55
],
[
55,
56
],
[
55,
57
],
[
38,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
58,
62
],
[
58,
63
],
[
38,
64
],
[
64,
65
],
[
65,
66
],
[
36,
67
],
[
67,
68
],
[
351,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
73,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
73,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
88,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
92,
96
],
[
84,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
84,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
71,
107
],
[
107,
108
],
[
71,
109
],
[
109,
110
],
[
71,
111
],
[
111,
112
],
[
351,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
113,
117
],
[
117,
118
],
[
117,
119
],
[
113,
121
],
[
121,
122
],
[
113,
123
],
[
123,
124
],
[
113,
125
],
[
125,
126
],
[
113,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
127,
135
],
[
135,
136
],
[
113,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
140,
145
],
[
145,
146
],
[
146,
147
],
[
139,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
148,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
156,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
165,
168
],
[
152,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
139,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
113,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
184,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
189,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
184,
198
],
[
198,
199
],
[
198,
200
],
[
184,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
201,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
208,
211
],
[
207,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
213,
216
],
[
206,
217
],
[
217,
218
],
[
217,
219
],
[
219,
220
],
[
184,
221
],
[
221,
222
],
[
222,
223
],
[
223,
224
],
[
113,
225
],
[
225,
226
],
[
225,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
229,
231
],
[
228,
232
],
[
232,
233
],
[
233,
234
],
[
234,
235
],
[
235,
236
],
[
234,
237
],
[
227,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
225,
242
],
[
242,
243
],
[
113,
244
],
[
244,
245
],
[
244,
246
],
[
246,
247
],
[
247,
248
],
[
251,
249
],
[
261,
250
],
[
258,
251
],
[
251,
252
],
[
252,
253
],
[
252,
254
],
[
251,
255
],
[
255,
256
],
[
255,
257
],
[
258,
258
],
[
258,
259
],
[
258,
260
],
[
261,
261
],
[
261,
262
],
[
261,
263
],
[
251,
264
],
[
264,
265
],
[
264,
266
],
[
266,
267
],
[
244,
268
],
[
268,
269
],
[
113,
270
],
[
270,
271
],
[
270,
272
],
[
272,
273
],
[
272,
274
],
[
274,
275
],
[
351,
276
],
[
276,
277
],
[
276,
278
],
[
278,
279
],
[
276,
280
],
[
280,
281
],
[
280,
282
],
[
282,
283
],
[
283,
284
],
[
283,
285
],
[
280,
286
],
[
286,
287
],
[
276,
288
],
[
288,
289
],
[
288,
290
],
[
290,
291
],
[
291,
292
],
[
292,
293
],
[
292,
294
],
[
291,
295
],
[
288,
296
],
[
296,
297
],
[
276,
298
],
[
298,
299
],
[
298,
300
],
[
300,
301
],
[
301,
302
],
[
302,
303
],
[
303,
304
],
[
303,
305
],
[
301,
306
],
[
306,
307
],
[
306,
308
],
[
308,
309
],
[
308,
310
],
[
301,
311
],
[
311,
312
],
[
312,
313
],
[
301,
314
],
[
315,
315
],
[
315,
316
],
[
316,
317
],
[
317,
318
],
[
317,
319
],
[
316,
320
],
[
320,
321
],
[
321,
322
],
[
322,
323
],
[
321,
324
],
[
315,
325
],
[
325,
326
],
[
326,
327
],
[
325,
328
],
[
328,
329
],
[
328,
330
],
[
298,
331
],
[
331,
332
],
[
276,
333
],
[
333,
334
],
[
333,
335
],
[
335,
336
],
[
336,
337
],
[
336,
338
],
[
335,
339
],
[
339,
340
],
[
340,
341
],
[
333,
342
],
[
342,
343
],
[
276,
344
],
[
344,
345
],
[
344,
346
],
[
346,
347
],
[
347,
348
],
[
348,
349
],
[
0,
350
],
[
350,
351
],
[
350,
352
]
] |
[
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.io.BufferedWriter;\nimport java.io.Writer;\nimport java.io.OutputStreamWriter;\nimport java.util.InputMismatchException;\nimport java.io.IOException;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author roger\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(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, InputReader in, OutputWriter out) {\n String s = in.nextString(), t = in.nextString();\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 InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public String nextString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }\n\n public void println(Object... objects) {\n print(objects);\n writer.println();\n }\n\n public void close() {\n writer.close();\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.OutputStream;",
"OutputStream",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.io.BufferedWriter;",
"BufferedWriter",
"java.io",
"import java.io.Writer;",
"Writer",
"java.io",
"import java.io.OutputStreamWriter;",
"OutputStreamWriter",
"java.io",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"import java.io.IOException;",
"IOException",
"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 InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(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, InputReader in, OutputWriter out) {\n String s = in.nextString(), t = in.nextString();\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 InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public String nextString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }\n\n public void println(Object... objects) {\n print(objects);\n writer.println();\n }\n\n public void close() {\n writer.close();\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(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 InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(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",
"InputReader in = new InputReader(inputStream);",
"in",
"new InputReader(inputStream)",
"OutputWriter out = new OutputWriter(outputStream);",
"out",
"new OutputWriter(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, InputReader in, OutputWriter out) {\n String s = in.nextString(), t = in.nextString();\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, InputReader in, OutputWriter out) {\n String s = in.nextString(), t = in.nextString();\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.nextString(), t = in.nextString();\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.nextString()",
"s",
"in.nextString()",
"in.nextString",
"in",
"t = in.nextString();",
"t",
"in.nextString()",
"in.nextString",
"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",
"InputReader in",
"in",
"OutputWriter out",
"out",
"static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public String nextString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }",
"InputReader",
"private InputStream stream;",
"stream",
"private byte[] buf = new byte[1024];",
"buf",
"new byte[1024]",
"1024",
"private int curChar;",
"curChar",
"private int numChars;",
"numChars",
"private InputReader.SpaceCharFilter filter;",
"filter",
"public InputReader(InputStream stream) {\n this.stream = stream;\n }",
"InputReader",
"{\n this.stream = stream;\n }",
"this.stream = stream",
"this.stream",
"this",
"this.stream",
"stream",
"InputStream stream",
"stream",
"public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"read",
"{\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }",
"if (numChars == -1) {\n throw new InputMismatchException();\n }",
"numChars == -1",
"numChars",
"-1",
"1",
"{\n throw new InputMismatchException();\n }",
"throw new InputMismatchException();",
"new InputMismatchException()",
"if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar >= numChars",
"curChar",
"numChars",
"{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }",
"curChar = 0",
"curChar",
"0",
"try {\n numChars = 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 numChars = stream.read(buf);\n }",
"numChars = stream.read(buf)",
"numChars",
"stream.read(buf)",
"stream.read",
"stream",
"buf",
"if (numChars <= 0) {\n return -1;\n }",
"numChars <= 0",
"numChars",
"0",
"{\n return -1;\n }",
"return -1;",
"-1",
"1",
"return buf[curChar++];",
"buf[curChar++]",
"buf",
"curChar++",
"curChar",
"public String nextString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }",
"nextString",
"{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\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 if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n }",
"if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }",
"Character.isValidCodePoint(c)",
"Character.isValidCodePoint",
"Character",
"c",
"{\n res.appendCodePoint(c);\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 if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }",
"isSpaceChar",
"{\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }",
"if (filter != null) {\n return filter.isSpaceChar(c);\n }",
"filter != null",
"filter",
"null",
"{\n return filter.isSpaceChar(c);\n }",
"return filter.isSpaceChar(c);",
"filter.isSpaceChar(c)",
"filter.isSpaceChar",
"filter",
"c",
"return isWhitespace(c);",
"isWhitespace(c)",
"isWhitespace",
"c",
"int c",
"c",
"public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }",
"isWhitespace",
"{\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",
"public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }",
"SpaceCharFilter",
"public boolean isSpaceChar(int ch);",
"isSpaceChar",
"int ch",
"ch",
"static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }\n\n public void println(Object... objects) {\n print(objects);\n writer.println();\n }\n\n public void close() {\n writer.close();\n }\n\n }",
"OutputWriter",
"private final PrintWriter writer;",
"writer",
"public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }",
"OutputWriter",
"{\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }",
"writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))",
"writer",
"new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)))",
"OutputStream outputStream",
"outputStream",
"public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }",
"OutputWriter",
"{\n this.writer = new PrintWriter(writer);\n }",
"this.writer = new PrintWriter(writer)",
"this.writer",
"this",
"this.writer",
"new PrintWriter(writer)",
"Writer writer",
"writer",
"public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }",
"print",
"{\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }",
"for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < objects.length",
"i",
"objects.length",
"objects",
"objects.length",
"i++",
"i++",
"i",
"{\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }",
"{\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }",
"if (i != 0) {\n writer.print(' ');\n }",
"i != 0",
"i",
"0",
"{\n writer.print(' ');\n }",
"writer.print(' ')",
"writer.print",
"writer",
"' '",
"writer.print(objects[i])",
"writer.print",
"writer",
"objects[i]",
"objects",
"i",
"Object... objects",
"objects",
"public void println(Object... objects) {\n print(objects);\n writer.println();\n }",
"println",
"{\n print(objects);\n writer.println();\n }",
"print(objects)",
"print",
"objects",
"writer.println()",
"writer.println",
"writer",
"Object... objects",
"objects",
"public void close() {\n writer.close();\n }",
"close",
"{\n writer.close();\n }",
"writer.close()",
"writer.close",
"writer",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(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, InputReader in, OutputWriter out) {\n String s = in.nextString(), t = in.nextString();\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 InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public String nextString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }\n\n public void println(Object... objects) {\n print(objects);\n writer.println();\n }\n\n public void close() {\n writer.close();\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n OutputWriter out = new OutputWriter(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, InputReader in, OutputWriter out) {\n String s = in.nextString(), t = in.nextString();\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 InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public String nextString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n\n static class OutputWriter {\n private final PrintWriter writer;\n\n public OutputWriter(OutputStream outputStream) {\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));\n }\n\n public OutputWriter(Writer writer) {\n this.writer = new PrintWriter(writer);\n }\n\n public void print(Object... objects) {\n for (int i = 0; i < objects.length; i++) {\n if (i != 0) {\n writer.print(' ');\n }\n writer.print(objects[i]);\n }\n }\n\n public void println(Object... objects) {\n print(objects);\n writer.println();\n }\n\n public void close() {\n writer.close();\n }\n\n }\n}",
"Main"
] |
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.BufferedWriter;
import java.io.Writer;
import java.io.OutputStreamWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author roger
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
OutputWriter out = new OutputWriter(outputStream);
ARegistration solver = new ARegistration();
solver.solve(1, in, out);
out.close();
}
static class ARegistration {
public void solve(int testNumber, InputReader in, OutputWriter out) {
String s = in.nextString(), t = in.nextString();
if (s.equals(t.substring(0, t.length() - 1))) {
out.println("Yes");
} else {
out.println("No");
}
}
}
static class InputReader {
private InputStream stream;
private byte[] buf = new byte[1024];
private int curChar;
private int numChars;
private InputReader.SpaceCharFilter filter;
public InputReader(InputStream stream) {
this.stream = stream;
}
public int read() {
if (numChars == -1) {
throw new InputMismatchException();
}
if (curChar >= numChars) {
curChar = 0;
try {
numChars = stream.read(buf);
} catch (IOException e) {
throw new InputMismatchException();
}
if (numChars <= 0) {
return -1;
}
}
return buf[curChar++];
}
public String nextString() {
int c = read();
while (isSpaceChar(c)) {
c = read();
}
StringBuilder res = new StringBuilder();
do {
if (Character.isValidCodePoint(c)) {
res.appendCodePoint(c);
}
c = read();
} while (!isSpaceChar(c));
return res.toString();
}
public boolean isSpaceChar(int c) {
if (filter != null) {
return filter.isSpaceChar(c);
}
return isWhitespace(c);
}
public static boolean isWhitespace(int c) {
return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
public interface SpaceCharFilter {
public boolean isSpaceChar(int ch);
}
}
static class OutputWriter {
private final PrintWriter writer;
public OutputWriter(OutputStream outputStream) {
writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));
}
public OutputWriter(Writer writer) {
this.writer = new PrintWriter(writer);
}
public void print(Object... objects) {
for (int i = 0; i < objects.length; i++) {
if (i != 0) {
writer.print(' ');
}
writer.print(objects[i]);
}
}
public void println(Object... objects) {
print(objects);
writer.println();
}
public void close() {
writer.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,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
53,
8
],
[
53,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
25,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
9,
50
],
[
50,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
]
] |
[
"import java.util.*;\nimport java.io.*;\n\npublic 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(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",
"import java.io.*;",
"io.*",
"java",
"public 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(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 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 sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.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 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.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 sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.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 sc = new Scanner(System.in);\n String s = sc.next();\n String t = sc.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.*;
import java.io.*;
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.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,
41,
13,
4,
18,
13,
17,
4,
18,
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
],
[
51,
5
],
[
51,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
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
],
[
32,
35
],
[
31,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
31,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
6,
48
],
[
48,
49
],
[
0,
50
],
[
50,
51
],
[
50,
52
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n \tScanner sc = new Scanner(System.in);\n \tString s = sc.nextLine();\n \tString t = sc.nextLine();\n String t2 = t.substring(0, s.length());\n if(s.equals(t2)) System.out.println(\"Yes\");\n else 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 \tScanner sc = new Scanner(System.in);\n \tString s = sc.nextLine();\n \tString t = sc.nextLine();\n String t2 = t.substring(0, s.length());\n if(s.equals(t2)) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n \n}",
"Main",
"public static void main(String[] args) throws Exception {\n \tScanner sc = new Scanner(System.in);\n \tString s = sc.nextLine();\n \tString t = sc.nextLine();\n String t2 = t.substring(0, s.length());\n if(s.equals(t2)) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }",
"main",
"{\n \tScanner sc = new Scanner(System.in);\n \tString s = sc.nextLine();\n \tString t = sc.nextLine();\n String t2 = t.substring(0, s.length());\n if(s.equals(t2)) System.out.println(\"Yes\");\n else System.out.println(\"No\");\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 t2 = t.substring(0, s.length());",
"t2",
"t.substring(0, s.length())",
"t.substring",
"t",
"0",
"s.length()",
"s.length",
"s",
"if(s.equals(t2)) System.out.println(\"Yes\");\n else System.out.println(\"No\");",
"s.equals(t2)",
"s.equals",
"s",
"t2",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n \tScanner sc = new Scanner(System.in);\n \tString s = sc.nextLine();\n \tString t = sc.nextLine();\n String t2 = t.substring(0, s.length());\n if(s.equals(t2)) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n \n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n \tScanner sc = new Scanner(System.in);\n \tString s = sc.nextLine();\n \tString t = sc.nextLine();\n String t2 = t.substring(0, s.length());\n if(s.equals(t2)) System.out.println(\"Yes\");\n else 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.nextLine();
String t = sc.nextLine();
String t2 = t.substring(0, s.length());
if(s.equals(t2)) 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,
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,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
0,
13,
17,
14,
2,
13,
2,
2,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
17,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
41,
13,
4,
13,
29,
4,
18,
13,
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
],
[
142,
8
],
[
142,
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
],
[
28,
30
],
[
11,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
31,
41
],
[
41,
42
],
[
42,
43
],
[
31,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
46,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
45,
55
],
[
55,
56
],
[
55,
57
],
[
11,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
62,
66
],
[
66,
67
],
[
67,
68
],
[
61,
69
],
[
58,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
58,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
11,
78
],
[
78,
79
],
[
79,
80
],
[
9,
81
],
[
81,
82
],
[
142,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
83,
87
],
[
87,
88
],
[
83,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
95,
97
],
[
89,
98
],
[
98,
99
],
[
83,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
103,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
102,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
83,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
122,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
128,
131
],
[
83,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
136,
139
],
[
139,
140
],
[
0,
141
],
[
141,
142
],
[
141,
143
]
] |
[
"import java.io.*;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n InputReader in=new InputReader(System.in);\n String s=in.next();\n String t=in.next();\n boolean flag=true;\n for(int i=0;i<s.length();i++)\n if(s.charAt(i)!=t.charAt(i))\n flag=false;\n if(flag&&t.length()-s.length()==1)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n out.flush();\n }\n static class InputReader{\n private BufferedReader in;\n private StringTokenizer tokenizer;\n public InputReader(InputStream stream){\n in = new BufferedReader(new InputStreamReader(stream),32768);\n tokenizer = null;\n }\n public String next() throws IOException{\n while(tokenizer==null || !tokenizer.hasMoreTokens()){\n tokenizer = new StringTokenizer(in.readLine());\n }\n return tokenizer.nextToken();\n }\n public Long nextLong() throws IOException {\n String next = next();\n return Long.valueOf(next);\n }\n public int nextInt() throws IOException{\n return Integer.valueOf(next());\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n public static void main(String[] args) throws IOException {\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n InputReader in=new InputReader(System.in);\n String s=in.next();\n String t=in.next();\n boolean flag=true;\n for(int i=0;i<s.length();i++)\n if(s.charAt(i)!=t.charAt(i))\n flag=false;\n if(flag&&t.length()-s.length()==1)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n out.flush();\n }\n static class InputReader{\n private BufferedReader in;\n private StringTokenizer tokenizer;\n public InputReader(InputStream stream){\n in = new BufferedReader(new InputStreamReader(stream),32768);\n tokenizer = null;\n }\n public String next() throws IOException{\n while(tokenizer==null || !tokenizer.hasMoreTokens()){\n tokenizer = new StringTokenizer(in.readLine());\n }\n return tokenizer.nextToken();\n }\n public Long nextLong() throws IOException {\n String next = next();\n return Long.valueOf(next);\n }\n public int nextInt() throws IOException{\n return Integer.valueOf(next());\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n InputReader in=new InputReader(System.in);\n String s=in.next();\n String t=in.next();\n boolean flag=true;\n for(int i=0;i<s.length();i++)\n if(s.charAt(i)!=t.charAt(i))\n flag=false;\n if(flag&&t.length()-s.length()==1)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n out.flush();\n }",
"main",
"{\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n InputReader in=new InputReader(System.in);\n String s=in.next();\n String t=in.next();\n boolean flag=true;\n for(int i=0;i<s.length();i++)\n if(s.charAt(i)!=t.charAt(i))\n flag=false;\n if(flag&&t.length()-s.length()==1)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n out.flush();\n }",
"PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));",
"out",
"new PrintWriter(new OutputStreamWriter(System.out))",
"InputReader in=new InputReader(System.in);",
"in",
"new InputReader(System.in)",
"String s=in.next();",
"s",
"in.next()",
"in.next",
"in",
"String t=in.next();",
"t",
"in.next()",
"in.next",
"in",
"boolean flag=true;",
"flag",
"true",
"for(int i=0;i<s.length();i++)\n if(s.charAt(i)!=t.charAt(i))\n flag=false;",
"int i=0;",
"int i=0;",
"i",
"0",
"i<s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"if(s.charAt(i)!=t.charAt(i))\n flag=false;",
"if(s.charAt(i)!=t.charAt(i))\n flag=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",
"if(flag&&t.length()-s.length()==1)\n out.println(\"Yes\");\n else\n out.println(\"No\");",
"flag&&t.length()-s.length()==1",
"flag",
"t.length()-s.length()==1",
"t.length()-s.length()",
"t.length()",
"t.length",
"t",
"s.length()",
"s.length",
"s",
"1",
"out.println(\"Yes\")",
"out.println",
"out",
"\"Yes\"",
"out.println(\"No\")",
"out.println",
"out",
"\"No\"",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"static class InputReader{\n private BufferedReader in;\n private StringTokenizer tokenizer;\n public InputReader(InputStream stream){\n in = new BufferedReader(new InputStreamReader(stream),32768);\n tokenizer = null;\n }\n public String next() throws IOException{\n while(tokenizer==null || !tokenizer.hasMoreTokens()){\n tokenizer = new StringTokenizer(in.readLine());\n }\n return tokenizer.nextToken();\n }\n public Long nextLong() throws IOException {\n String next = next();\n return Long.valueOf(next);\n }\n public int nextInt() throws IOException{\n return Integer.valueOf(next());\n }\n }",
"InputReader",
"private BufferedReader in;",
"in",
"private StringTokenizer tokenizer;",
"tokenizer",
"public InputReader(InputStream stream){\n in = new BufferedReader(new InputStreamReader(stream),32768);\n tokenizer = null;\n }",
"InputReader",
"{\n in = new BufferedReader(new InputStreamReader(stream),32768);\n tokenizer = null;\n }",
"in = new BufferedReader(new InputStreamReader(stream),32768)",
"in",
"new BufferedReader(new InputStreamReader(stream),32768)",
"tokenizer = null",
"tokenizer",
"null",
"InputStream stream",
"stream",
"public String next() throws IOException{\n while(tokenizer==null || !tokenizer.hasMoreTokens()){\n tokenizer = new StringTokenizer(in.readLine());\n }\n return tokenizer.nextToken();\n }",
"next",
"{\n while(tokenizer==null || !tokenizer.hasMoreTokens()){\n tokenizer = new StringTokenizer(in.readLine());\n }\n return tokenizer.nextToken();\n }",
"while(tokenizer==null || !tokenizer.hasMoreTokens()){\n tokenizer = new StringTokenizer(in.readLine());\n }",
"tokenizer==null || !tokenizer.hasMoreTokens()",
"tokenizer==null",
"tokenizer",
"null",
"!tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens()",
"tokenizer.hasMoreTokens",
"tokenizer",
"{\n tokenizer = new StringTokenizer(in.readLine());\n }",
"tokenizer = new StringTokenizer(in.readLine())",
"tokenizer",
"new StringTokenizer(in.readLine())",
"return tokenizer.nextToken();",
"tokenizer.nextToken()",
"tokenizer.nextToken",
"tokenizer",
"public Long nextLong() throws IOException {\n String next = next();\n return Long.valueOf(next);\n }",
"nextLong",
"{\n String next = next();\n return Long.valueOf(next);\n }",
"String next = next();",
"next",
"next()",
"next",
"return Long.valueOf(next);",
"Long.valueOf(next)",
"Long.valueOf",
"Long",
"next",
"public int nextInt() throws IOException{\n return Integer.valueOf(next());\n }",
"nextInt",
"{\n return Integer.valueOf(next());\n }",
"return Integer.valueOf(next());",
"Integer.valueOf(next())",
"Integer.valueOf",
"Integer",
"next()",
"next",
"public class Main {\n public static void main(String[] args) throws IOException {\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n InputReader in=new InputReader(System.in);\n String s=in.next();\n String t=in.next();\n boolean flag=true;\n for(int i=0;i<s.length();i++)\n if(s.charAt(i)!=t.charAt(i))\n flag=false;\n if(flag&&t.length()-s.length()==1)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n out.flush();\n }\n static class InputReader{\n private BufferedReader in;\n private StringTokenizer tokenizer;\n public InputReader(InputStream stream){\n in = new BufferedReader(new InputStreamReader(stream),32768);\n tokenizer = null;\n }\n public String next() throws IOException{\n while(tokenizer==null || !tokenizer.hasMoreTokens()){\n tokenizer = new StringTokenizer(in.readLine());\n }\n return tokenizer.nextToken();\n }\n public Long nextLong() throws IOException {\n String next = next();\n return Long.valueOf(next);\n }\n public int nextInt() throws IOException{\n return Integer.valueOf(next());\n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));\n InputReader in=new InputReader(System.in);\n String s=in.next();\n String t=in.next();\n boolean flag=true;\n for(int i=0;i<s.length();i++)\n if(s.charAt(i)!=t.charAt(i))\n flag=false;\n if(flag&&t.length()-s.length()==1)\n out.println(\"Yes\");\n else\n out.println(\"No\");\n out.flush();\n }\n static class InputReader{\n private BufferedReader in;\n private StringTokenizer tokenizer;\n public InputReader(InputStream stream){\n in = new BufferedReader(new InputStreamReader(stream),32768);\n tokenizer = null;\n }\n public String next() throws IOException{\n while(tokenizer==null || !tokenizer.hasMoreTokens()){\n tokenizer = new StringTokenizer(in.readLine());\n }\n return tokenizer.nextToken();\n }\n public Long nextLong() throws IOException {\n String next = next();\n return Long.valueOf(next);\n }\n public int nextInt() throws IOException{\n return Integer.valueOf(next());\n }\n }\n}",
"Main"
] |
import java.io.*;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws IOException {
PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
InputReader in=new InputReader(System.in);
String s=in.next();
String t=in.next();
boolean flag=true;
for(int i=0;i<s.length();i++)
if(s.charAt(i)!=t.charAt(i))
flag=false;
if(flag&&t.length()-s.length()==1)
out.println("Yes");
else
out.println("No");
out.flush();
}
static class InputReader{
private BufferedReader in;
private StringTokenizer tokenizer;
public InputReader(InputStream stream){
in = new BufferedReader(new InputStreamReader(stream),32768);
tokenizer = null;
}
public String next() throws IOException{
while(tokenizer==null || !tokenizer.hasMoreTokens()){
tokenizer = new StringTokenizer(in.readLine());
}
return tokenizer.nextToken();
}
public Long nextLong() throws IOException {
String next = next();
return Long.valueOf(next);
}
public int nextInt() throws IOException{
return Integer.valueOf(next());
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
2,
13,
17,
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
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
4,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
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
],
[
25,
28
],
[
28,
29
],
[
28,
30
],
[
11,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
11,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
11,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
41,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
41,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
9,
60
],
[
60,
61
]
] |
[
"import java.util.Scanner;\n\nclass Main {\n static Scanner sc = new Scanner(System.in);\n\n public static void main(String[] args) {\n StringBuilder s = new StringBuilder(sc.next());\n StringBuilder t = new StringBuilder(sc.next());\n int len = t.length();\n t = t.deleteCharAt(len - 1);\n String ss = s.toString();\n String tt = t.toString();\n if (ss.equals(tt)) {\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 static Scanner sc = new Scanner(System.in);\n\n public static void main(String[] args) {\n StringBuilder s = new StringBuilder(sc.next());\n StringBuilder t = new StringBuilder(sc.next());\n int len = t.length();\n t = t.deleteCharAt(len - 1);\n String ss = s.toString();\n String tt = t.toString();\n if (ss.equals(tt)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) {\n StringBuilder s = new StringBuilder(sc.next());\n StringBuilder t = new StringBuilder(sc.next());\n int len = t.length();\n t = t.deleteCharAt(len - 1);\n String ss = s.toString();\n String tt = t.toString();\n if (ss.equals(tt)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"main",
"{\n StringBuilder s = new StringBuilder(sc.next());\n StringBuilder t = new StringBuilder(sc.next());\n int len = t.length();\n t = t.deleteCharAt(len - 1);\n String ss = s.toString();\n String tt = t.toString();\n if (ss.equals(tt)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }",
"StringBuilder s = new StringBuilder(sc.next());",
"s",
"new StringBuilder(sc.next())",
"StringBuilder t = new StringBuilder(sc.next());",
"t",
"new StringBuilder(sc.next())",
"int len = t.length();",
"len",
"t.length()",
"t.length",
"t",
"t = t.deleteCharAt(len - 1)",
"t",
"t.deleteCharAt(len - 1)",
"t.deleteCharAt",
"t",
"len - 1",
"len",
"1",
"String ss = s.toString();",
"ss",
"s.toString()",
"s.toString",
"s",
"String tt = t.toString();",
"tt",
"t.toString()",
"t.toString",
"t",
"if (ss.equals(tt)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"ss.equals(tt)",
"ss.equals",
"ss",
"tt",
"{\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 {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
StringBuilder s = new StringBuilder(sc.next());
StringBuilder t = new StringBuilder(sc.next());
int len = t.length();
t = t.deleteCharAt(len - 1);
String ss = s.toString();
String tt = t.toString();
if (ss.equals(tt)) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
2,
17,
17,
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,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
104,
8
],
[
104,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
11,
13
],
[
104,
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
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
39,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
43,
47
],
[
35,
48
],
[
35,
49
],
[
14,
50
],
[
50,
51
],
[
104,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
52,
56
],
[
56,
57
],
[
52,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
58,
64
],
[
64,
65
],
[
52,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
69,
78
],
[
78,
79
],
[
78,
80
],
[
68,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
52,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
52,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
101,
102
],
[
0,
103
],
[
103,
104
],
[
103,
105
]
] |
[
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\n\tstatic long m = (long) (1e9 + 7);\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner scn = new Scanner(System.in);\n//\t\tStringBuilder sb = new StringBuilder();\n//\t\tint T = scn.nextInt(), tcs = 0;\n//\t\tA: while (tcs++ < T) {\n//\t\t\tint n = scn.nextInt();\n//\n//\t\t}\n//\t\tSystem.out.println(sb);\n\t\tString s = scn.next(), t = scn.next();\n\t\tSystem.out.println(s.equals(t.substring(0, t.length() - 1)) ? \"Yes\" : \"No\");\n\t}\n\n\tstatic class Scanner {\n\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream s) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tstatic long m = (long) (1e9 + 7);\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner scn = new Scanner(System.in);\n//\t\tStringBuilder sb = new StringBuilder();\n//\t\tint T = scn.nextInt(), tcs = 0;\n//\t\tA: while (tcs++ < T) {\n//\t\t\tint n = scn.nextInt();\n//\n//\t\t}\n//\t\tSystem.out.println(sb);\n\t\tString s = scn.next(), t = scn.next();\n\t\tSystem.out.println(s.equals(t.substring(0, t.length() - 1)) ? \"Yes\" : \"No\");\n\t}\n\n\tstatic class Scanner {\n\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream s) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n}",
"Main",
"static long m = (long) (1e9 + 7);",
"m",
"(long) (1e9 + 7)",
"1e9",
"7",
"public static void main(String[] args) throws IOException {\n\t\tScanner scn = new Scanner(System.in);\n//\t\tStringBuilder sb = new StringBuilder();\n//\t\tint T = scn.nextInt(), tcs = 0;\n//\t\tA: while (tcs++ < T) {\n//\t\t\tint n = scn.nextInt();\n//\n//\t\t}\n//\t\tSystem.out.println(sb);\n\t\tString s = scn.next(), t = scn.next();\n\t\tSystem.out.println(s.equals(t.substring(0, t.length() - 1)) ? \"Yes\" : \"No\");\n\t}",
"main",
"{\n\t\tScanner scn = new Scanner(System.in);\n//\t\tStringBuilder sb = new StringBuilder();\n//\t\tint T = scn.nextInt(), tcs = 0;\n//\t\tA: while (tcs++ < T) {\n//\t\t\tint n = scn.nextInt();\n//\n//\t\t}\n//\t\tSystem.out.println(sb);\n\t\tString s = scn.next(), t = scn.next();\n\t\tSystem.out.println(s.equals(t.substring(0, t.length() - 1)) ? \"Yes\" : \"No\");\n\t}",
"Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"String s = scn.next()",
"s",
"scn.next()",
"scn.next",
"scn",
"t = scn.next();",
"t",
"scn.next()",
"scn.next",
"scn",
"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\"",
"String[] args",
"args",
"static class Scanner {\n\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream s) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}",
"Scanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public Scanner(InputStream s) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}",
"Scanner",
"{\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}",
"br = new BufferedReader(new InputStreamReader(s))",
"br",
"new BufferedReader(new InputStreamReader(s))",
"InputStream s",
"s",
"public String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}",
"next",
"{\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}",
"while (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"nextInt",
"{\n\t\t\treturn Integer.parseInt(next());\n\t\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"nextLong",
"{\n\t\t\treturn Long.parseLong(next());\n\t\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public class Main {\n\n\tstatic long m = (long) (1e9 + 7);\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner scn = new Scanner(System.in);\n//\t\tStringBuilder sb = new StringBuilder();\n//\t\tint T = scn.nextInt(), tcs = 0;\n//\t\tA: while (tcs++ < T) {\n//\t\t\tint n = scn.nextInt();\n//\n//\t\t}\n//\t\tSystem.out.println(sb);\n\t\tString s = scn.next(), t = scn.next();\n\t\tSystem.out.println(s.equals(t.substring(0, t.length() - 1)) ? \"Yes\" : \"No\");\n\t}\n\n\tstatic class Scanner {\n\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream s) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n}",
"public class Main {\n\n\tstatic long m = (long) (1e9 + 7);\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner scn = new Scanner(System.in);\n//\t\tStringBuilder sb = new StringBuilder();\n//\t\tint T = scn.nextInt(), tcs = 0;\n//\t\tA: while (tcs++ < T) {\n//\t\t\tint n = scn.nextInt();\n//\n//\t\t}\n//\t\tSystem.out.println(sb);\n\t\tString s = scn.next(), t = scn.next();\n\t\tSystem.out.println(s.equals(t.substring(0, t.length() - 1)) ? \"Yes\" : \"No\");\n\t}\n\n\tstatic class Scanner {\n\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\n\t\tpublic Scanner(InputStream s) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(s));\n\t\t}\n\n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\t}\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main {
static long m = (long) (1e9 + 7);
public static void main(String[] args) throws IOException {
Scanner scn = new Scanner(System.in);
// StringBuilder sb = new StringBuilder();
// int T = scn.nextInt(), tcs = 0;
// A: while (tcs++ < T) {
// int n = scn.nextInt();
//
// }
// System.out.println(sb);
String s = scn.next(), t = scn.next();
System.out.println(s.equals(t.substring(0, t.length() - 1)) ? "Yes" : "No");
}
static class Scanner {
StringTokenizer st;
BufferedReader br;
public Scanner(InputStream s) {
br = new BufferedReader(new InputStreamReader(s));
}
public String next() throws IOException {
while (st == null || !st.hasMoreTokens())
st = new StringTokenizer(br.readLine());
return st.nextToken();
}
public int nextInt() throws IOException {
return Integer.parseInt(next());
}
public long nextLong() throws IOException {
return Long.parseLong(next());
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
18,
13,
13,
41,
13,
18,
13,
13,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
17,
13,
13,
4,
18,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
18,
13,
13,
4,
18,
13,
17,
4,
18,
13,
17,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
38,
5,
13,
30,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
135,
8
],
[
135,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
14,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
19,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
11,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
31,
36
],
[
11,
37
],
[
37,
38
],
[
38,
39
],
[
11,
40
],
[
40,
41
],
[
41,
42
],
[
9,
43
],
[
43,
44
],
[
135,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
49,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
60,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
60,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
47,
73
],
[
73,
74
],
[
47,
75
],
[
75,
76
],
[
47,
77
],
[
77,
78
],
[
135,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
79,
83
],
[
83,
84
],
[
79,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
85,
91
],
[
91,
92
],
[
79,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
93,
99
],
[
99,
100
],
[
79,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
104,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
103,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
79,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
132,
133
],
[
0,
134
],
[
134,
135
],
[
134,
136
]
] |
[
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputstream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputstream);\n AtcoderA solution = new AtcoderA();\n solution.solve(1, in, out);\n out.flush();\n out.close();\n }\n static class AtcoderA {\n public void solve(int testNumber, Scanner sc, PrintWriter out) {\n String s = sc.next(), t = sc.next();\n if (t.startsWith(s))\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }\n }\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader f) {\n br = new BufferedReader(f);\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputstream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputstream);\n AtcoderA solution = new AtcoderA();\n solution.solve(1, in, out);\n out.flush();\n out.close();\n }\n static class AtcoderA {\n public void solve(int testNumber, Scanner sc, PrintWriter out) {\n String s = sc.next(), t = sc.next();\n if (t.startsWith(s))\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }\n }\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader f) {\n br = new BufferedReader(f);\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputstream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputstream);\n AtcoderA solution = new AtcoderA();\n solution.solve(1, in, out);\n out.flush();\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 AtcoderA solution = new AtcoderA();\n solution.solve(1, in, out);\n out.flush();\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)",
"AtcoderA solution = new AtcoderA();",
"solution",
"new AtcoderA()",
"solution.solve(1, in, out)",
"solution.solve",
"solution",
"1",
"in",
"out",
"out.flush()",
"out.flush",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class AtcoderA {\n public void solve(int testNumber, Scanner sc, PrintWriter out) {\n String s = sc.next(), t = sc.next();\n if (t.startsWith(s))\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }\n }",
"AtcoderA",
"public void solve(int testNumber, Scanner sc, PrintWriter out) {\n String s = sc.next(), t = sc.next();\n if (t.startsWith(s))\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }",
"solve",
"{\n String s = sc.next(), t = sc.next();\n if (t.startsWith(s))\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }",
"String s = sc.next()",
"s",
"sc.next()",
"sc.next",
"sc",
"t = sc.next();",
"t",
"sc.next()",
"sc.next",
"sc",
"if (t.startsWith(s))\n out.println(\"Yes\");\n else\n out.println(\"No\");",
"t.startsWith(s)",
"t.startsWith",
"t",
"s",
"out.println(\"Yes\")",
"out.println",
"out",
"\"Yes\"",
"out.println(\"No\")",
"out.println",
"out",
"\"No\"",
"int testNumber",
"testNumber",
"Scanner sc",
"sc",
"PrintWriter out",
"out",
"static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader f) {\n br = new BufferedReader(f);\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n }",
"Scanner",
"StringTokenizer st;",
"st",
"BufferedReader br;",
"br",
"public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }",
"Scanner",
"{\n br = new BufferedReader(new InputStreamReader(s));\n }",
"br = new BufferedReader(new InputStreamReader(s))",
"br",
"new BufferedReader(new InputStreamReader(s))",
"InputStream s",
"s",
"public Scanner(FileReader f) {\n br = new BufferedReader(f);\n }",
"Scanner",
"{\n br = new BufferedReader(f);\n }",
"br = new BufferedReader(f)",
"br",
"new BufferedReader(f)",
"FileReader f",
"f",
"public String next() {\n while (st == null || !st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n }",
"catch (Exception e) {\n }",
"Exception e",
"{\n }",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public int nextInt() {\n return Integer.parseInt(next());\n }",
"nextInt",
"{\n return Integer.parseInt(next());\n }",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputstream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputstream);\n AtcoderA solution = new AtcoderA();\n solution.solve(1, in, out);\n out.flush();\n out.close();\n }\n static class AtcoderA {\n public void solve(int testNumber, Scanner sc, PrintWriter out) {\n String s = sc.next(), t = sc.next();\n if (t.startsWith(s))\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }\n }\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader f) {\n br = new BufferedReader(f);\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputstream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputstream);\n AtcoderA solution = new AtcoderA();\n solution.solve(1, in, out);\n out.flush();\n out.close();\n }\n static class AtcoderA {\n public void solve(int testNumber, Scanner sc, PrintWriter out) {\n String s = sc.next(), t = sc.next();\n if (t.startsWith(s))\n out.println(\"Yes\");\n else\n out.println(\"No\");\n }\n }\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader f) {\n br = new BufferedReader(f);\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (Exception e) {\n }\n return st.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n }\n}",
"Main"
] |
import java.io.*;
import java.util.*;
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);
AtcoderA solution = new AtcoderA();
solution.solve(1, in, out);
out.flush();
out.close();
}
static class AtcoderA {
public void solve(int testNumber, Scanner sc, PrintWriter out) {
String s = sc.next(), t = sc.next();
if (t.startsWith(s))
out.println("Yes");
else
out.println("No");
}
}
static class Scanner {
StringTokenizer st;
BufferedReader br;
public Scanner(InputStream s) {
br = new BufferedReader(new InputStreamReader(s));
}
public Scanner(FileReader f) {
br = new BufferedReader(f);
}
public String next() {
while (st == null || !st.hasMoreTokens())
try {
st = new StringTokenizer(br.readLine());
} catch (Exception e) {
}
return st.nextToken();
}
public int nextInt() {
return Integer.parseInt(next());
}
}
}
|
[
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,
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
],
[
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
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
33,
37
],
[
25,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
25,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
6,
52
],
[
52,
53
],
[
0,
54
],
[
54,
55
],
[
54,
56
]
] |
[
"\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(final String[] args) throws Exception {\n final Scanner scan = new Scanner(System.in);\n String str1 = scan.next();\n String str2 = scan.next(); \n scan.close();\n\n if (str1.equals(str2.substring(0, str2.length()-1))) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n \n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(final String[] args) throws Exception {\n final Scanner scan = new Scanner(System.in);\n String str1 = scan.next();\n String str2 = scan.next(); \n scan.close();\n\n if (str1.equals(str2.substring(0, str2.length()-1))) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n \n }\n}",
"Main",
"public static void main(final String[] args) throws Exception {\n final Scanner scan = new Scanner(System.in);\n String str1 = scan.next();\n String str2 = scan.next(); \n scan.close();\n\n if (str1.equals(str2.substring(0, str2.length()-1))) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n \n }",
"main",
"{\n final Scanner scan = new Scanner(System.in);\n String str1 = scan.next();\n String str2 = scan.next(); \n scan.close();\n\n if (str1.equals(str2.substring(0, str2.length()-1))) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n \n }",
"final Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String str1 = scan.next();",
"str1",
"scan.next()",
"scan.next",
"scan",
"String str2 = scan.next();",
"str2",
"scan.next()",
"scan.next",
"scan",
"scan.close()",
"scan.close",
"scan",
"if (str1.equals(str2.substring(0, str2.length()-1))) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }",
"str1.equals(str2.substring(0, str2.length()-1))",
"str1.equals",
"str1",
"str2.substring(0, str2.length()-1)",
"str2.substring",
"str2",
"0",
"str2.length()-1",
"str2.length()",
"str2.length",
"str2",
"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\"",
"final String[] args",
"args",
"public class Main {\n public static void main(final String[] args) throws Exception {\n final Scanner scan = new Scanner(System.in);\n String str1 = scan.next();\n String str2 = scan.next(); \n scan.close();\n\n if (str1.equals(str2.substring(0, str2.length()-1))) {\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(final String[] args) throws Exception {\n final Scanner scan = new Scanner(System.in);\n String str1 = scan.next();\n String str2 = scan.next(); \n scan.close();\n\n if (str1.equals(str2.substring(0, str2.length()-1))) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n \n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(final String[] args) throws Exception {
final Scanner scan = new Scanner(System.in);
String str1 = scan.next();
String str2 = scan.next();
scan.close();
if (str1.equals(str2.substring(0, str2.length()-1))) {
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,
2,
13,
17,
14,
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
],
[
51,
5
],
[
51,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
31,
33
],
[
27,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
27,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
6,
48
],
[
48,
49
],
[
0,
50
],
[
50,
51
],
[
50,
52
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner a = new Scanner(System.in);\t\t\n\t\tString S = a.next();\n\t\tString T = a.next();\n\t\tString str = S + \"[a-z]\";\n\t\t\n\t\tif(T.matches(S + \"[a-z]\")) {\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}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner a = new Scanner(System.in);\t\t\n\t\tString S = a.next();\n\t\tString T = a.next();\n\t\tString str = S + \"[a-z]\";\n\t\t\n\t\tif(T.matches(S + \"[a-z]\")) {\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}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner a = new Scanner(System.in);\t\t\n\t\tString S = a.next();\n\t\tString T = a.next();\n\t\tString str = S + \"[a-z]\";\n\t\t\n\t\tif(T.matches(S + \"[a-z]\")) {\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}",
"main",
"{\n\t\tScanner a = new Scanner(System.in);\t\t\n\t\tString S = a.next();\n\t\tString T = a.next();\n\t\tString str = S + \"[a-z]\";\n\t\t\n\t\tif(T.matches(S + \"[a-z]\")) {\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}",
"Scanner a = new Scanner(System.in);",
"a",
"new Scanner(System.in)",
"String S = a.next();",
"S",
"a.next()",
"a.next",
"a",
"String T = a.next();",
"T",
"a.next()",
"a.next",
"a",
"String str = S + \"[a-z]\";",
"str",
"S + \"[a-z]\"",
"S",
"\"[a-z]\"",
"if(T.matches(S + \"[a-z]\")) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"T.matches(S + \"[a-z]\")",
"T.matches",
"T",
"S + \"[a-z]\"",
"S",
"\"[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\t\tScanner a = new Scanner(System.in);\t\t\n\t\tString S = a.next();\n\t\tString T = a.next();\n\t\tString str = S + \"[a-z]\";\n\t\t\n\t\tif(T.matches(S + \"[a-z]\")) {\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}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner a = new Scanner(System.in);\t\t\n\t\tString S = a.next();\n\t\tString T = a.next();\n\t\tString str = S + \"[a-z]\";\n\t\t\n\t\tif(T.matches(S + \"[a-z]\")) {\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}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner a = new Scanner(System.in);
String S = a.next();
String T = a.next();
String str = S + "[a-z]";
if(T.matches(S + "[a-z]")) {
System.out.println("Yes");
}else {
System.out.println("No");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
2,
2,
2,
4,
18,
13,
17,
2,
4,
18,
13,
17,
2,
4,
18,
13,
13,
17,
2,
2,
4,
18,
13,
17,
4,
18,
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
],
[
71,
5
],
[
71,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
13,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
29,
28
],
[
40,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
30,
34
],
[
29,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
35,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
40,
45
],
[
29,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
47,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
26,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
26,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
6,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tString S;\n\t\tString T;\n\t\tScanner sc = new Scanner(System.in);\n\t\tS = sc.next();\n\t\tT = sc.next();\n\t\tif (S.length() < 1 || S.length() > 10 || T.startsWith(S) == false || S.length() + 1 != T.length()) {\n\t\t\tSystem.out.println(\"No\");\n\t\t} else\n\t\t\tSystem.out.println(\"Yes\");\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tString S;\n\t\tString T;\n\t\tScanner sc = new Scanner(System.in);\n\t\tS = sc.next();\n\t\tT = sc.next();\n\t\tif (S.length() < 1 || S.length() > 10 || T.startsWith(S) == false || S.length() + 1 != T.length()) {\n\t\t\tSystem.out.println(\"No\");\n\t\t} else\n\t\t\tSystem.out.println(\"Yes\");\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tString S;\n\t\tString T;\n\t\tScanner sc = new Scanner(System.in);\n\t\tS = sc.next();\n\t\tT = sc.next();\n\t\tif (S.length() < 1 || S.length() > 10 || T.startsWith(S) == false || S.length() + 1 != T.length()) {\n\t\t\tSystem.out.println(\"No\");\n\t\t} else\n\t\t\tSystem.out.println(\"Yes\");\n\t}",
"main",
"{\n\t\tString S;\n\t\tString T;\n\t\tScanner sc = new Scanner(System.in);\n\t\tS = sc.next();\n\t\tT = sc.next();\n\t\tif (S.length() < 1 || S.length() > 10 || T.startsWith(S) == false || S.length() + 1 != T.length()) {\n\t\t\tSystem.out.println(\"No\");\n\t\t} else\n\t\t\tSystem.out.println(\"Yes\");\n\t}",
"String S;",
"S",
"String T;",
"T",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"S = sc.next()",
"S",
"sc.next()",
"sc.next",
"sc",
"T = sc.next()",
"T",
"sc.next()",
"sc.next",
"sc",
"if (S.length() < 1 || S.length() > 10 || T.startsWith(S) == false || S.length() + 1 != T.length()) {\n\t\t\tSystem.out.println(\"No\");\n\t\t} else\n\t\t\tSystem.out.println(\"Yes\");",
"S.length() < 1 || S.length() > 10 || T.startsWith(S) == false || S.length() + 1 != T.length()",
"T.startsWith(S) == false",
"S.length() < 1 || S.length() > 10 || T.startsWith(S) == false || S.length() + 1 != T.length()",
"S.length() < 1",
"S.length()",
"S.length",
"S",
"1",
"S.length() > 10",
"S.length()",
"S.length",
"S",
"10",
"T.startsWith(S) == false",
"T.startsWith(S)",
"T.startsWith",
"T",
"S",
"false",
"S.length() + 1 != T.length()",
"S.length() + 1",
"S.length()",
"S.length",
"S",
"1",
"T.length()",
"T.length",
"T",
"{\n\t\t\tSystem.out.println(\"No\");\n\t\t}",
"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\tString S;\n\t\tString T;\n\t\tScanner sc = new Scanner(System.in);\n\t\tS = sc.next();\n\t\tT = sc.next();\n\t\tif (S.length() < 1 || S.length() > 10 || T.startsWith(S) == false || S.length() + 1 != T.length()) {\n\t\t\tSystem.out.println(\"No\");\n\t\t} else\n\t\t\tSystem.out.println(\"Yes\");\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tString S;\n\t\tString T;\n\t\tScanner sc = new Scanner(System.in);\n\t\tS = sc.next();\n\t\tT = sc.next();\n\t\tif (S.length() < 1 || S.length() > 10 || T.startsWith(S) == false || S.length() + 1 != T.length()) {\n\t\t\tSystem.out.println(\"No\");\n\t\t} else\n\t\t\tSystem.out.println(\"Yes\");\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
String S;
String T;
Scanner sc = new Scanner(System.in);
S = sc.next();
T = sc.next();
if (S.length() < 1 || S.length() > 10 || T.startsWith(S) == false || S.length() + 1 != T.length()) {
System.out.println("No");
} else
System.out.println("Yes");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
0,
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,
3,
14,
2,
13,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
82,
5
],
[
82,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
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
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
58,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
66,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
6,
79
],
[
79,
80
],
[
0,
81
],
[
81,
82
],
[
81,
83
]
] |
[
"import java.util.Scanner;\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner= new Scanner(System.in);\n String a = scanner.next();\n String b = scanner.next();\n int i = 0;\n char[] a1 = a.toCharArray();\n char[] b1 = b.toCharArray();\n\n for (i = 0;i<a1.length;i++){\n if (a1[i]!=b1[i]){\n System.out.println(\"No\");\n break;\n }\n }\n if (i == a1.length){\n System.out.println(\"Yes\");\n }\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 a = scanner.next();\n String b = scanner.next();\n int i = 0;\n char[] a1 = a.toCharArray();\n char[] b1 = b.toCharArray();\n\n for (i = 0;i<a1.length;i++){\n if (a1[i]!=b1[i]){\n System.out.println(\"No\");\n break;\n }\n }\n if (i == a1.length){\n System.out.println(\"Yes\");\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner= new Scanner(System.in);\n String a = scanner.next();\n String b = scanner.next();\n int i = 0;\n char[] a1 = a.toCharArray();\n char[] b1 = b.toCharArray();\n\n for (i = 0;i<a1.length;i++){\n if (a1[i]!=b1[i]){\n System.out.println(\"No\");\n break;\n }\n }\n if (i == a1.length){\n System.out.println(\"Yes\");\n }\n\n }",
"main",
"{\n Scanner scanner= new Scanner(System.in);\n String a = scanner.next();\n String b = scanner.next();\n int i = 0;\n char[] a1 = a.toCharArray();\n char[] b1 = b.toCharArray();\n\n for (i = 0;i<a1.length;i++){\n if (a1[i]!=b1[i]){\n System.out.println(\"No\");\n break;\n }\n }\n if (i == a1.length){\n System.out.println(\"Yes\");\n }\n\n }",
"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 i = 0;",
"i",
"0",
"char[] a1 = a.toCharArray();",
"a1",
"a.toCharArray()",
"a.toCharArray",
"a",
"char[] b1 = b.toCharArray();",
"b1",
"b.toCharArray()",
"b.toCharArray",
"b",
"for (i = 0;i<a1.length;i++){\n if (a1[i]!=b1[i]){\n System.out.println(\"No\");\n break;\n }\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i<a1.length",
"i",
"a1.length",
"a1",
"a1.length",
"i++",
"i++",
"i",
"{\n if (a1[i]!=b1[i]){\n System.out.println(\"No\");\n break;\n }\n }",
"{\n if (a1[i]!=b1[i]){\n System.out.println(\"No\");\n break;\n }\n }",
"if (a1[i]!=b1[i]){\n System.out.println(\"No\");\n break;\n }",
"a1[i]!=b1[i]",
"a1[i]",
"a1",
"i",
"b1[i]",
"b1",
"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 == a1.length){\n System.out.println(\"Yes\");\n }",
"i == a1.length",
"i",
"a1.length",
"a1",
"a1.length",
"{\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 scanner= new Scanner(System.in);\n String a = scanner.next();\n String b = scanner.next();\n int i = 0;\n char[] a1 = a.toCharArray();\n char[] b1 = b.toCharArray();\n\n for (i = 0;i<a1.length;i++){\n if (a1[i]!=b1[i]){\n System.out.println(\"No\");\n break;\n }\n }\n if (i == a1.length){\n System.out.println(\"Yes\");\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner= new Scanner(System.in);\n String a = scanner.next();\n String b = scanner.next();\n int i = 0;\n char[] a1 = a.toCharArray();\n char[] b1 = b.toCharArray();\n\n for (i = 0;i<a1.length;i++){\n if (a1[i]!=b1[i]){\n System.out.println(\"No\");\n break;\n }\n }\n if (i == a1.length){\n System.out.println(\"Yes\");\n }\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 i = 0;
char[] a1 = a.toCharArray();
char[] b1 = b.toCharArray();
for (i = 0;i<a1.length;i++){
if (a1[i]!=b1[i]){
System.out.println("No");
break;
}
}
if (i == a1.length){
System.out.println("Yes");
}
}
}
|
[
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,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
61,
11
],
[
61,
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
],
[
40,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
39,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
12,
58
],
[
58,
59
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
] |
[
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String S = br.readLine();\n String T = br.readLine();\n String actualString = T.substring(0,T.length()-1);\n if(S.equals(actualString)){\n System.out.println(\"Yes\");\n }\n else{\n 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",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String S = br.readLine();\n String T = br.readLine();\n String actualString = T.substring(0,T.length()-1);\n if(S.equals(actualString)){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String S = br.readLine();\n String T = br.readLine();\n String actualString = T.substring(0,T.length()-1);\n if(S.equals(actualString)){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String S = br.readLine();\n String T = br.readLine();\n String actualString = T.substring(0,T.length()-1);\n if(S.equals(actualString)){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\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",
"String actualString = T.substring(0,T.length()-1);",
"actualString",
"T.substring(0,T.length()-1)",
"T.substring",
"T",
"0",
"T.length()-1",
"T.length()",
"T.length",
"T",
"1",
"if(S.equals(actualString)){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }",
"S.equals(actualString)",
"S.equals",
"S",
"actualString",
"{\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) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String S = br.readLine();\n String T = br.readLine();\n String actualString = T.substring(0,T.length()-1);\n if(S.equals(actualString)){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String S = br.readLine();\n String T = br.readLine();\n String actualString = T.substring(0,T.length()-1);\n if(S.equals(actualString)){\n System.out.println(\"Yes\");\n }\n else{\n System.out.println(\"No\");\n }\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String S = br.readLine();
String T = br.readLine();
String actualString = T.substring(0,T.length()-1);
if(S.equals(actualString)){
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,
4,
18,
13,
41,
13,
4,
18,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
59,
8
],
[
59,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
11,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
37,
41
],
[
29,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
29,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
9,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
] |
[
"import java.util.*;\nimport java.io.*;\npublic class Main\n{\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = br.readLine().trim();\n\t\tString t = br.readLine().trim();\n\t\tif(s.equals(t.substring(0, t.length()-1))){\n\t\t System.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t System.out.println(\"No\");\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main\n{\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = br.readLine().trim();\n\t\tString t = br.readLine().trim();\n\t\tif(s.equals(t.substring(0, t.length()-1))){\n\t\t System.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t System.out.println(\"No\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = br.readLine().trim();\n\t\tString t = br.readLine().trim();\n\t\tif(s.equals(t.substring(0, t.length()-1))){\n\t\t System.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t System.out.println(\"No\");\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = br.readLine().trim();\n\t\tString t = br.readLine().trim();\n\t\tif(s.equals(t.substring(0, t.length()-1))){\n\t\t System.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t System.out.println(\"No\");\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String s = br.readLine().trim();",
"s",
"br.readLine().trim()",
"br.readLine().trim",
"br.readLine()",
"br.readLine",
"br",
"String t = br.readLine().trim();",
"t",
"br.readLine().trim()",
"br.readLine().trim",
"br.readLine()",
"br.readLine",
"br",
"if(s.equals(t.substring(0, t.length()-1))){\n\t\t System.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t System.out.println(\"No\");\n\t\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",
"{\n\t\t System.out.println(\"Yes\");\n\t\t}",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"{\n\t\t System.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) throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = br.readLine().trim();\n\t\tString t = br.readLine().trim();\n\t\tif(s.equals(t.substring(0, t.length()-1))){\n\t\t System.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t System.out.println(\"No\");\n\t\t}\n\t}\n}",
"public class Main\n{\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = br.readLine().trim();\n\t\tString t = br.readLine().trim();\n\t\tif(s.equals(t.substring(0, t.length()-1))){\n\t\t System.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t System.out.println(\"No\");\n\t\t}\n\t}\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));
String s = br.readLine().trim();
String t = br.readLine().trim();
if(s.equals(t.substring(0, t.length()-1))){
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,
30,
4,
18,
18,
13,
13,
17,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
30,
0,
13,
17,
30,
0,
13,
17,
3,
14,
13,
30,
14,
2,
2,
4,
18,
13,
17,
4,
18,
13,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
99,
5
],
[
99,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
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
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
39,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
58,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
57,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
57,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
8,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
81,
85
],
[
80,
86
],
[
86,
87
],
[
87,
88
],
[
79,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
6,
96
],
[
96,
97
],
[
0,
98
],
[
98,
99
],
[
98,
100
]
] |
[
"import java.util.*;\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 String t = sc.next();\n boolean juage = false;\n for(int i = 0;i<s.length();i++){\n if(s.charAt(i)!=t.charAt(i)){\n System.out.println(\"No\");\n }\n if(s.charAt(i)==t.charAt(i)){\n juage = true;\n }\n else{\n juage = false;\n break;\n }\n }\n if(juage){\n if(s.length()+1==t.length()){\n System.out.println(\"Yes\");\n \n }\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n String t = sc.next();\n boolean juage = false;\n for(int i = 0;i<s.length();i++){\n if(s.charAt(i)!=t.charAt(i)){\n System.out.println(\"No\");\n }\n if(s.charAt(i)==t.charAt(i)){\n juage = true;\n }\n else{\n juage = false;\n break;\n }\n }\n if(juage){\n if(s.length()+1==t.length()){\n System.out.println(\"Yes\");\n \n }\n }\n }\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n String t = sc.next();\n boolean juage = false;\n for(int i = 0;i<s.length();i++){\n if(s.charAt(i)!=t.charAt(i)){\n System.out.println(\"No\");\n }\n if(s.charAt(i)==t.charAt(i)){\n juage = true;\n }\n else{\n juage = false;\n break;\n }\n }\n if(juage){\n if(s.length()+1==t.length()){\n System.out.println(\"Yes\");\n \n }\n }\n }",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n String t = sc.next();\n boolean juage = false;\n for(int i = 0;i<s.length();i++){\n if(s.charAt(i)!=t.charAt(i)){\n System.out.println(\"No\");\n }\n if(s.charAt(i)==t.charAt(i)){\n juage = true;\n }\n else{\n juage = false;\n break;\n }\n }\n if(juage){\n if(s.length()+1==t.length()){\n System.out.println(\"Yes\");\n \n }\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",
"boolean juage = false;",
"juage",
"false",
"for(int i = 0;i<s.length();i++){\n if(s.charAt(i)!=t.charAt(i)){\n System.out.println(\"No\");\n }\n if(s.charAt(i)==t.charAt(i)){\n juage = true;\n }\n else{\n juage = false;\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(s.charAt(i)!=t.charAt(i)){\n System.out.println(\"No\");\n }\n if(s.charAt(i)==t.charAt(i)){\n juage = true;\n }\n else{\n juage = false;\n break;\n }\n }",
"{\n if(s.charAt(i)!=t.charAt(i)){\n System.out.println(\"No\");\n }\n if(s.charAt(i)==t.charAt(i)){\n juage = true;\n }\n else{\n juage = false;\n break;\n }\n }",
"if(s.charAt(i)!=t.charAt(i)){\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 }",
"System.out.println(\"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"No\"",
"if(s.charAt(i)==t.charAt(i)){\n juage = true;\n }\n else{\n juage = false;\n break;\n }",
"s.charAt(i)==t.charAt(i)",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"t.charAt(i)",
"t.charAt",
"t",
"i",
"{\n juage = true;\n }",
"juage = true",
"juage",
"true",
"{\n juage = false;\n break;\n }",
"juage = false",
"juage",
"false",
"break;",
"if(juage){\n if(s.length()+1==t.length()){\n System.out.println(\"Yes\");\n \n }\n }",
"juage",
"{\n if(s.length()+1==t.length()){\n System.out.println(\"Yes\");\n \n }\n }",
"if(s.length()+1==t.length()){\n System.out.println(\"Yes\");\n \n }",
"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 \n }",
"System.out.println(\"Yes\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Yes\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n String t = sc.next();\n boolean juage = false;\n for(int i = 0;i<s.length();i++){\n if(s.charAt(i)!=t.charAt(i)){\n System.out.println(\"No\");\n }\n if(s.charAt(i)==t.charAt(i)){\n juage = true;\n }\n else{\n juage = false;\n break;\n }\n }\n if(juage){\n if(s.length()+1==t.length()){\n System.out.println(\"Yes\");\n \n }\n }\n }\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 String t = sc.next();\n boolean juage = false;\n for(int i = 0;i<s.length();i++){\n if(s.charAt(i)!=t.charAt(i)){\n System.out.println(\"No\");\n }\n if(s.charAt(i)==t.charAt(i)){\n juage = true;\n }\n else{\n juage = false;\n break;\n }\n }\n if(juage){\n if(s.length()+1==t.length()){\n System.out.println(\"Yes\");\n \n }\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();
boolean juage = false;
for(int i = 0;i<s.length();i++){
if(s.charAt(i)!=t.charAt(i)){
System.out.println("No");
}
if(s.charAt(i)==t.charAt(i)){
juage = true;
}
else{
juage = false;
break;
}
}
if(juage){
if(s.length()+1==t.length()){
System.out.println("Yes");
}
}
}
}
|
[
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,
41,
13,
4,
18,
13,
41,
13,
17,
14,
2,
13,
13,
30,
0,
13,
17,
14,
2,
2,
2,
13,
17,
13,
4,
18,
4,
18,
13,
17,
13,
4,
18,
13,
17,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
84,
11
],
[
84,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
14,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
14,
38
],
[
38,
39
],
[
38,
40
],
[
14,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
50,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
58,
62
],
[
56,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
63,
67
],
[
49,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
14,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
77,
80
],
[
12,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
] |
[
"import java.util.*;\nimport java.io.*;\nimport java.lang.*;\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(); String t = sc.next(); int lenS = s.length(); int lenT = t.length();\n\t\tboolean value = false;\n\t\tif (lenS == lenT) {\n\t\t\tvalue = false;\n\t\t} else if (lenS + 1 == lenT && s.substring(0, lenS).equals(t.substring(0, lenS))) {\n\t\t\tvalue = true;\n\t\t}\n\n\t\tSystem.out.println(value ? \"Yes\" : \"No\");\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"public class Main {\n\tpublic static void main (String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next(); String t = sc.next(); int lenS = s.length(); int lenT = t.length();\n\t\tboolean value = false;\n\t\tif (lenS == lenT) {\n\t\t\tvalue = false;\n\t\t} else if (lenS + 1 == lenT && s.substring(0, lenS).equals(t.substring(0, lenS))) {\n\t\t\tvalue = true;\n\t\t}\n\n\t\tSystem.out.println(value ? \"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(); String t = sc.next(); int lenS = s.length(); int lenT = t.length();\n\t\tboolean value = false;\n\t\tif (lenS == lenT) {\n\t\t\tvalue = false;\n\t\t} else if (lenS + 1 == lenT && s.substring(0, lenS).equals(t.substring(0, lenS))) {\n\t\t\tvalue = true;\n\t\t}\n\n\t\tSystem.out.println(value ? \"Yes\" : \"No\");\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next(); String t = sc.next(); int lenS = s.length(); int lenT = t.length();\n\t\tboolean value = false;\n\t\tif (lenS == lenT) {\n\t\t\tvalue = false;\n\t\t} else if (lenS + 1 == lenT && s.substring(0, lenS).equals(t.substring(0, lenS))) {\n\t\t\tvalue = true;\n\t\t}\n\n\t\tSystem.out.println(value ? \"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",
"int lenS = s.length();",
"lenS",
"s.length()",
"s.length",
"s",
"int lenT = t.length();",
"lenT",
"t.length()",
"t.length",
"t",
"boolean value = false;",
"value",
"false",
"if (lenS == lenT) {\n\t\t\tvalue = false;\n\t\t} else if (lenS + 1 == lenT && s.substring(0, lenS).equals(t.substring(0, lenS))) {\n\t\t\tvalue = true;\n\t\t}",
"lenS == lenT",
"lenS",
"lenT",
"{\n\t\t\tvalue = false;\n\t\t}",
"value = false",
"value",
"false",
"if (lenS + 1 == lenT && s.substring(0, lenS).equals(t.substring(0, lenS))) {\n\t\t\tvalue = true;\n\t\t}",
"lenS + 1 == lenT && s.substring(0, lenS).equals(t.substring(0, lenS))",
"lenS + 1 == lenT",
"lenS + 1",
"lenS",
"1",
"lenT",
"s.substring(0, lenS).equals(t.substring(0, lenS))",
"s.substring(0, lenS).equals",
"s.substring(0, lenS)",
"s.substring",
"s",
"0",
"lenS",
"t.substring(0, lenS)",
"t.substring",
"t",
"0",
"lenS",
"{\n\t\t\tvalue = true;\n\t\t}",
"value = true",
"value",
"true",
"System.out.println(value ? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"value ? \"Yes\" : \"No\"",
"value",
"\"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(); String t = sc.next(); int lenS = s.length(); int lenT = t.length();\n\t\tboolean value = false;\n\t\tif (lenS == lenT) {\n\t\t\tvalue = false;\n\t\t} else if (lenS + 1 == lenT && s.substring(0, lenS).equals(t.substring(0, lenS))) {\n\t\t\tvalue = true;\n\t\t}\n\n\t\tSystem.out.println(value ? \"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(); String t = sc.next(); int lenS = s.length(); int lenT = t.length();\n\t\tboolean value = false;\n\t\tif (lenS == lenT) {\n\t\t\tvalue = false;\n\t\t} else if (lenS + 1 == lenT && s.substring(0, lenS).equals(t.substring(0, lenS))) {\n\t\t\tvalue = true;\n\t\t}\n\n\t\tSystem.out.println(value ? \"Yes\" : \"No\");\n\t}\n}",
"Main"
] |
import java.util.*;
import java.io.*;
import java.lang.*;
public class Main {
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.next(); String t = sc.next(); int lenS = s.length(); int lenT = t.length();
boolean value = false;
if (lenS == lenT) {
value = false;
} else if (lenS + 1 == lenT && s.substring(0, lenS).equals(t.substring(0, lenS))) {
value = true;
}
System.out.println(value ? "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,
20,
11,
1,
41,
13,
17,
2,
13,
2,
4,
18,
13,
17,
1,
40,
13,
30,
30,
30,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
8,
4,
18,
13,
4,
18,
13,
17,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
67,
5
],
[
67,
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
],
[
34,
35
],
[
32,
36
],
[
25,
37
],
[
37,
38
],
[
38,
39
],
[
25,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
59,
60
],
[
60,
61
],
[
55,
62
],
[
55,
63
],
[
6,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
]
] |
[
"\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n\t// write your code here\n Scanner scanner = new Scanner(System.in);\n\n String s = scanner.next();\n String t = scanner.next();\n StringBuilder builder = new StringBuilder();\n for(int i = 0; i < t.length() - 1 ; i++){\n {\n builder.append(t.charAt(i));\n }\n }\n System.out.println(s.equals(builder.toString()) ? \"Yes\" : \"No\");\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n\t// write your code here\n Scanner scanner = new Scanner(System.in);\n\n String s = scanner.next();\n String t = scanner.next();\n StringBuilder builder = new StringBuilder();\n for(int i = 0; i < t.length() - 1 ; i++){\n {\n builder.append(t.charAt(i));\n }\n }\n System.out.println(s.equals(builder.toString()) ? \"Yes\" : \"No\");\n\n }\n}",
"Main",
"public static void main(String[] args) {\n\t// write your code here\n Scanner scanner = new Scanner(System.in);\n\n String s = scanner.next();\n String t = scanner.next();\n StringBuilder builder = new StringBuilder();\n for(int i = 0; i < t.length() - 1 ; i++){\n {\n builder.append(t.charAt(i));\n }\n }\n System.out.println(s.equals(builder.toString()) ? \"Yes\" : \"No\");\n\n }",
"main",
"{\n\t// write your code here\n Scanner scanner = new Scanner(System.in);\n\n String s = scanner.next();\n String t = scanner.next();\n StringBuilder builder = new StringBuilder();\n for(int i = 0; i < t.length() - 1 ; i++){\n {\n builder.append(t.charAt(i));\n }\n }\n System.out.println(s.equals(builder.toString()) ? \"Yes\" : \"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",
"StringBuilder builder = new StringBuilder();",
"builder",
"new StringBuilder()",
"for(int i = 0; i < t.length() - 1 ; i++){\n {\n builder.append(t.charAt(i));\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < t.length() - 1",
"i",
"t.length() - 1",
"t.length()",
"t.length",
"t",
"1",
"i++",
"i++",
"i",
"{\n {\n builder.append(t.charAt(i));\n }\n }",
"{\n {\n builder.append(t.charAt(i));\n }\n }",
"{\n builder.append(t.charAt(i));\n }",
"builder.append(t.charAt(i))",
"builder.append",
"builder",
"t.charAt(i)",
"t.charAt",
"t",
"i",
"System.out.println(s.equals(builder.toString()) ? \"Yes\" : \"No\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.equals(builder.toString()) ? \"Yes\" : \"No\"",
"s.equals(builder.toString())",
"s.equals",
"s",
"builder.toString()",
"builder.toString",
"builder",
"\"Yes\"",
"\"No\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n\t// write your code here\n Scanner scanner = new Scanner(System.in);\n\n String s = scanner.next();\n String t = scanner.next();\n StringBuilder builder = new StringBuilder();\n for(int i = 0; i < t.length() - 1 ; i++){\n {\n builder.append(t.charAt(i));\n }\n }\n System.out.println(s.equals(builder.toString()) ? \"Yes\" : \"No\");\n\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n\t// write your code here\n Scanner scanner = new Scanner(System.in);\n\n String s = scanner.next();\n String t = scanner.next();\n StringBuilder builder = new StringBuilder();\n for(int i = 0; i < t.length() - 1 ; i++){\n {\n builder.append(t.charAt(i));\n }\n }\n System.out.println(s.equals(builder.toString()) ? \"Yes\" : \"No\");\n\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// write your code here
Scanner scanner = new Scanner(System.in);
String s = scanner.next();
String t = scanner.next();
StringBuilder builder = new StringBuilder();
for(int i = 0; i < t.length() - 1 ; i++){
{
builder.append(t.charAt(i));
}
}
System.out.println(s.equals(builder.toString()) ? "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,
2,
4,
18,
13,
2,
4,
18,
13,
17,
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
],
[
59,
5
],
[
59,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
28,
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
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
6,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
] |
[
"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//char n=t.charAt(0);\n\t\t//t.substring(t.length() - ๅใๅบใใใๆๅญๅใฎ้ทใ);\n\t\t\t\t\n\t\tif(t.length()==s.length()+1&&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//char n=t.charAt(0);\n\t\t//t.substring(t.length() - ๅใๅบใใใๆๅญๅใฎ้ทใ);\n\t\t\t\t\n\t\tif(t.length()==s.length()+1&&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//char n=t.charAt(0);\n\t\t//t.substring(t.length() - ๅใๅบใใใๆๅญๅใฎ้ทใ);\n\t\t\t\t\n\t\tif(t.length()==s.length()+1&&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//char n=t.charAt(0);\n\t\t//t.substring(t.length() - ๅใๅบใใใๆๅญๅใฎ้ทใ);\n\t\t\t\t\n\t\tif(t.length()==s.length()+1&&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.length()==s.length()+1&&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.length()==s.length()+1&&t.indexOf(s)==0",
"t.length()==s.length()+1",
"t.length()",
"t.length",
"t",
"s.length()+1",
"s.length()",
"s.length",
"s",
"1",
"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//char n=t.charAt(0);\n\t\t//t.substring(t.length() - ๅใๅบใใใๆๅญๅใฎ้ทใ);\n\t\t\t\t\n\t\tif(t.length()==s.length()+1&&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//char n=t.charAt(0);\n\t\t//t.substring(t.length() - ๅใๅบใใใๆๅญๅใฎ้ทใ);\n\t\t\t\t\n\t\tif(t.length()==s.length()+1&&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();
//char n=t.charAt(0);
//t.substring(t.length() - ๅใๅบใใใๆๅญๅใฎ้ทใ);
if(t.length()==s.length()+1&&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,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
4,
18,
13,
17,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
2,
4,
18,
13,
2,
4,
18,
13,
17,
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
],
[
66,
5
],
[
66,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
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
],
[
24,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
23,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
44,
48
],
[
22,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
49,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
6,
63
],
[
63,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
]
] |
[
"import java.util.*;\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\n if (S.substring(0, S.length()).equals(T.substring(0, S.length()))\n && S.length() == T.length() - 1) {\n\n System.out.println(\"Yes\");\n return;\n }\n\n System.out.println(\"No\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"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\n if (S.substring(0, S.length()).equals(T.substring(0, S.length()))\n && S.length() == T.length() - 1) {\n\n System.out.println(\"Yes\");\n return;\n }\n\n System.out.println(\"No\");\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.substring(0, S.length()).equals(T.substring(0, S.length()))\n && S.length() == T.length() - 1) {\n\n System.out.println(\"Yes\");\n return;\n }\n\n System.out.println(\"No\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n String T = sc.next();\n\n if (S.substring(0, S.length()).equals(T.substring(0, S.length()))\n && S.length() == T.length() - 1) {\n\n System.out.println(\"Yes\");\n return;\n }\n\n System.out.println(\"No\");\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.substring(0, S.length()).equals(T.substring(0, S.length()))\n && S.length() == T.length() - 1) {\n\n System.out.println(\"Yes\");\n return;\n }",
"S.substring(0, S.length()).equals(T.substring(0, S.length()))\n && S.length() == T.length() - 1",
"S.substring(0, S.length()).equals(T.substring(0, S.length()))",
"S.substring(0, S.length()).equals",
"S.substring(0, S.length())",
"S.substring",
"S",
"0",
"S.length()",
"S.length",
"S",
"T.substring(0, S.length())",
"T.substring",
"T",
"0",
"S.length()",
"S.length",
"S",
"S.length() == T.length() - 1",
"S.length()",
"S.length",
"S",
"T.length() - 1",
"T.length()",
"T.length",
"T",
"1",
"{\n\n System.out.println(\"Yes\");\n return;\n }",
"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\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.substring(0, S.length()).equals(T.substring(0, S.length()))\n && S.length() == T.length() - 1) {\n\n System.out.println(\"Yes\");\n return;\n }\n\n System.out.println(\"No\");\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\n if (S.substring(0, S.length()).equals(T.substring(0, S.length()))\n && S.length() == T.length() - 1) {\n\n System.out.println(\"Yes\");\n return;\n }\n\n System.out.println(\"No\");\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();
if (S.substring(0, S.length()).equals(T.substring(0, S.length()))
&& S.length() == T.length() - 1) {
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,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
14,
40,
2,
13,
13,
30,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
0,
13,
17,
14,
2,
2,
17,
4,
18,
13,
2,
4,
18,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
13,
2,
4,
18,
13,
17,
30,
0,
13,
17,
14,
2,
2,
2,
13,
13,
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
],
[
191,
5
],
[
191,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
31
],
[
31,
32
],
[
31,
33
],
[
8,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
34,
44
],
[
44,
45
],
[
45,
46
],
[
34,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
48,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
48,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
8,
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
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
84,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
96,
97
],
[
96,
98
],
[
91,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
8,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
103,
113
],
[
113,
114
],
[
114,
115
],
[
103,
116
],
[
117,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
117,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
129,
130
],
[
129,
131
],
[
124,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
8,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
137,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
143,
147
],
[
136,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
8,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
153,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
157,
161
],
[
152,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
8,
166
],
[
166,
167
],
[
169,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
169,
173
],
[
166,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
175,
180
],
[
166,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
182,
187
],
[
6,
188
],
[
188,
189
],
[
0,
190
],
[
190,
191
],
[
190,
192
]
] |
[
"import java.util.Scanner;\n \npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner in = new Scanner(System.in);\n\t\tString S = in.next();\n\t\tString T = in.next();\n\t\tboolean onazi = true;\n\t\tboolean komozi = true;\n\t\tboolean mozisu = false;\n \tboolean tuika = false;\n \t\n \t//ๆกไปถ\n\t\tfor(int i=0; i<S.length(); i++){\n\t\t\tchar a = S.charAt(i);\n char b = T.charAt(i);\n if(!(a == b)){\n \tonazi = false;\n }\n\t\t}\n \tfor(int i=0; i<S.length(); i++){\n char x = S.charAt(i);\n \t\tif(x >= 'A' && x <= 'Z') {\n \t\t\tkomozi = false;\n \t\t}\n \t}\n \tfor(int i=0; i<T.length(); i++){\n\t\t\tchar x = T.charAt(i);\n\t\t\tif(x >= 'A' && x <= 'Z') {\n \t\t\tkomozi = false;\n \t\t}\n \t}\n if(1<=S.length() && S.length()<=10){\n mozisu = true;\n }\n if(T.length() == (S.length()+1)){\n \ttuika = true;\n }\n \n //ๅคๅฎ\n if(onazi && komozi && mozisu && tuika){\n \tSystem.out.println(\"Yes\");\n }else{\n \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 in = new Scanner(System.in);\n\t\tString S = in.next();\n\t\tString T = in.next();\n\t\tboolean onazi = true;\n\t\tboolean komozi = true;\n\t\tboolean mozisu = false;\n \tboolean tuika = false;\n \t\n \t//ๆกไปถ\n\t\tfor(int i=0; i<S.length(); i++){\n\t\t\tchar a = S.charAt(i);\n char b = T.charAt(i);\n if(!(a == b)){\n \tonazi = false;\n }\n\t\t}\n \tfor(int i=0; i<S.length(); i++){\n char x = S.charAt(i);\n \t\tif(x >= 'A' && x <= 'Z') {\n \t\t\tkomozi = false;\n \t\t}\n \t}\n \tfor(int i=0; i<T.length(); i++){\n\t\t\tchar x = T.charAt(i);\n\t\t\tif(x >= 'A' && x <= 'Z') {\n \t\t\tkomozi = false;\n \t\t}\n \t}\n if(1<=S.length() && S.length()<=10){\n mozisu = true;\n }\n if(T.length() == (S.length()+1)){\n \ttuika = true;\n }\n \n //ๅคๅฎ\n if(onazi && komozi && mozisu && tuika){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }\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\tboolean onazi = true;\n\t\tboolean komozi = true;\n\t\tboolean mozisu = false;\n \tboolean tuika = false;\n \t\n \t//ๆกไปถ\n\t\tfor(int i=0; i<S.length(); i++){\n\t\t\tchar a = S.charAt(i);\n char b = T.charAt(i);\n if(!(a == b)){\n \tonazi = false;\n }\n\t\t}\n \tfor(int i=0; i<S.length(); i++){\n char x = S.charAt(i);\n \t\tif(x >= 'A' && x <= 'Z') {\n \t\t\tkomozi = false;\n \t\t}\n \t}\n \tfor(int i=0; i<T.length(); i++){\n\t\t\tchar x = T.charAt(i);\n\t\t\tif(x >= 'A' && x <= 'Z') {\n \t\t\tkomozi = false;\n \t\t}\n \t}\n if(1<=S.length() && S.length()<=10){\n mozisu = true;\n }\n if(T.length() == (S.length()+1)){\n \ttuika = true;\n }\n \n //ๅคๅฎ\n if(onazi && komozi && mozisu && tuika){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }\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\tboolean onazi = true;\n\t\tboolean komozi = true;\n\t\tboolean mozisu = false;\n \tboolean tuika = false;\n \t\n \t//ๆกไปถ\n\t\tfor(int i=0; i<S.length(); i++){\n\t\t\tchar a = S.charAt(i);\n char b = T.charAt(i);\n if(!(a == b)){\n \tonazi = false;\n }\n\t\t}\n \tfor(int i=0; i<S.length(); i++){\n char x = S.charAt(i);\n \t\tif(x >= 'A' && x <= 'Z') {\n \t\t\tkomozi = false;\n \t\t}\n \t}\n \tfor(int i=0; i<T.length(); i++){\n\t\t\tchar x = T.charAt(i);\n\t\t\tif(x >= 'A' && x <= 'Z') {\n \t\t\tkomozi = false;\n \t\t}\n \t}\n if(1<=S.length() && S.length()<=10){\n mozisu = true;\n }\n if(T.length() == (S.length()+1)){\n \ttuika = true;\n }\n \n //ๅคๅฎ\n if(onazi && komozi && mozisu && tuika){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }\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",
"boolean onazi = true;",
"onazi",
"true",
"boolean komozi = true;",
"komozi",
"true",
"boolean mozisu = false;",
"mozisu",
"false",
"boolean tuika = false;",
"tuika",
"false",
"for(int i=0; i<S.length(); i++){\n\t\t\tchar a = S.charAt(i);\n char b = T.charAt(i);\n if(!(a == b)){\n \tonazi = false;\n }\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<S.length()",
"i",
"S.length()",
"S.length",
"S",
"i++",
"i++",
"i",
"{\n\t\t\tchar a = S.charAt(i);\n char b = T.charAt(i);\n if(!(a == b)){\n \tonazi = false;\n }\n\t\t}",
"{\n\t\t\tchar a = S.charAt(i);\n char b = T.charAt(i);\n if(!(a == b)){\n \tonazi = false;\n }\n\t\t}",
"char a = S.charAt(i);",
"a",
"S.charAt(i)",
"S.charAt",
"S",
"i",
"char b = T.charAt(i);",
"b",
"T.charAt(i)",
"T.charAt",
"T",
"i",
"if(!(a == b)){\n \tonazi = false;\n }",
"!(a == b)",
"(a == b)",
"a",
"b",
"{\n \tonazi = false;\n }",
"onazi = false",
"onazi",
"false",
"for(int i=0; i<S.length(); i++){\n char x = S.charAt(i);\n \t\tif(x >= 'A' && x <= 'Z') {\n \t\t\tkomozi = false;\n \t\t}\n \t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<S.length()",
"i",
"S.length()",
"S.length",
"S",
"i++",
"i++",
"i",
"{\n char x = S.charAt(i);\n \t\tif(x >= 'A' && x <= 'Z') {\n \t\t\tkomozi = false;\n \t\t}\n \t}",
"{\n char x = S.charAt(i);\n \t\tif(x >= 'A' && x <= 'Z') {\n \t\t\tkomozi = false;\n \t\t}\n \t}",
"char x = S.charAt(i);",
"x",
"S.charAt(i)",
"S.charAt",
"S",
"i",
"if(x >= 'A' && x <= 'Z') {\n \t\t\tkomozi = false;\n \t\t}",
"x >= 'A' && x <= 'Z'",
"x >= 'A'",
"x",
"'A'",
"x <= 'Z'",
"x",
"'Z'",
"{\n \t\t\tkomozi = false;\n \t\t}",
"komozi = false",
"komozi",
"false",
"for(int i=0; i<T.length(); i++){\n\t\t\tchar x = T.charAt(i);\n\t\t\tif(x >= 'A' && x <= 'Z') {\n \t\t\tkomozi = false;\n \t\t}\n \t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<T.length()",
"i",
"T.length()",
"T.length",
"T",
"i++",
"i++",
"i",
"{\n\t\t\tchar x = T.charAt(i);\n\t\t\tif(x >= 'A' && x <= 'Z') {\n \t\t\tkomozi = false;\n \t\t}\n \t}",
"{\n\t\t\tchar x = T.charAt(i);\n\t\t\tif(x >= 'A' && x <= 'Z') {\n \t\t\tkomozi = false;\n \t\t}\n \t}",
"char x = T.charAt(i);",
"x",
"T.charAt(i)",
"T.charAt",
"T",
"i",
"if(x >= 'A' && x <= 'Z') {\n \t\t\tkomozi = false;\n \t\t}",
"x >= 'A' && x <= 'Z'",
"x >= 'A'",
"x",
"'A'",
"x <= 'Z'",
"x",
"'Z'",
"{\n \t\t\tkomozi = false;\n \t\t}",
"komozi = false",
"komozi",
"false",
"if(1<=S.length() && S.length()<=10){\n mozisu = true;\n }",
"1<=S.length() && S.length()<=10",
"1<=S.length()",
"1",
"S.length()",
"S.length",
"S",
"S.length()<=10",
"S.length()",
"S.length",
"S",
"10",
"{\n mozisu = true;\n }",
"mozisu = true",
"mozisu",
"true",
"if(T.length() == (S.length()+1)){\n \ttuika = true;\n }",
"T.length() == (S.length()+1)",
"T.length()",
"T.length",
"T",
"(S.length()+1)",
"S.length()",
"S.length",
"S",
"1",
"{\n \ttuika = true;\n }",
"tuika = true",
"tuika",
"true",
"if(onazi && komozi && mozisu && tuika){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }",
"onazi && komozi && mozisu && tuika",
"mozisu",
"onazi && komozi && mozisu && tuika",
"onazi",
"komozi",
"mozisu",
"tuika",
"{\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",
"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\tboolean onazi = true;\n\t\tboolean komozi = true;\n\t\tboolean mozisu = false;\n \tboolean tuika = false;\n \t\n \t//ๆกไปถ\n\t\tfor(int i=0; i<S.length(); i++){\n\t\t\tchar a = S.charAt(i);\n char b = T.charAt(i);\n if(!(a == b)){\n \tonazi = false;\n }\n\t\t}\n \tfor(int i=0; i<S.length(); i++){\n char x = S.charAt(i);\n \t\tif(x >= 'A' && x <= 'Z') {\n \t\t\tkomozi = false;\n \t\t}\n \t}\n \tfor(int i=0; i<T.length(); i++){\n\t\t\tchar x = T.charAt(i);\n\t\t\tif(x >= 'A' && x <= 'Z') {\n \t\t\tkomozi = false;\n \t\t}\n \t}\n if(1<=S.length() && S.length()<=10){\n mozisu = true;\n }\n if(T.length() == (S.length()+1)){\n \ttuika = true;\n }\n \n //ๅคๅฎ\n if(onazi && komozi && mozisu && tuika){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }\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\tboolean onazi = true;\n\t\tboolean komozi = true;\n\t\tboolean mozisu = false;\n \tboolean tuika = false;\n \t\n \t//ๆกไปถ\n\t\tfor(int i=0; i<S.length(); i++){\n\t\t\tchar a = S.charAt(i);\n char b = T.charAt(i);\n if(!(a == b)){\n \tonazi = false;\n }\n\t\t}\n \tfor(int i=0; i<S.length(); i++){\n char x = S.charAt(i);\n \t\tif(x >= 'A' && x <= 'Z') {\n \t\t\tkomozi = false;\n \t\t}\n \t}\n \tfor(int i=0; i<T.length(); i++){\n\t\t\tchar x = T.charAt(i);\n\t\t\tif(x >= 'A' && x <= 'Z') {\n \t\t\tkomozi = false;\n \t\t}\n \t}\n if(1<=S.length() && S.length()<=10){\n mozisu = true;\n }\n if(T.length() == (S.length()+1)){\n \ttuika = true;\n }\n \n //ๅคๅฎ\n if(onazi && komozi && mozisu && tuika){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner in = new Scanner(System.in);
String S = in.next();
String T = in.next();
boolean onazi = true;
boolean komozi = true;
boolean mozisu = false;
boolean tuika = false;
//ๆกไปถ
for(int i=0; i<S.length(); i++){
char a = S.charAt(i);
char b = T.charAt(i);
if(!(a == b)){
onazi = false;
}
}
for(int i=0; i<S.length(); i++){
char x = S.charAt(i);
if(x >= 'A' && x <= 'Z') {
komozi = false;
}
}
for(int i=0; i<T.length(); i++){
char x = T.charAt(i);
if(x >= 'A' && x <= 'Z') {
komozi = false;
}
}
if(1<=S.length() && S.length()<=10){
mozisu = true;
}
if(T.length() == (S.length()+1)){
tuika = true;
}
//ๅคๅฎ
if(onazi && komozi && mozisu && tuika){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.