node_ids
listlengths
4
1.4k
edge_index
listlengths
1
2.22k
text
listlengths
4
1.4k
source
stringlengths
14
427k
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 55, 5 ], [ 55, 6 ], [ 6, 7 ], [ 6, 8 ], [ 55, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ], [ 14, 15 ], [ 11, 16 ], [ 16, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 25, 27 ], [ 11, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 11, 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 ], [ 9, 52 ], [ 52, 53 ], [ 0, 54 ], [ 54, 55 ], [ 54, 56 ] ]
[ "import java.util.*;\npublic class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \tString s = sc.nextLine();\n \tString s2 = s + s;\n \tString p = sc.nextLine();\n \t\n \tif(s2.contains(p)) {\n \t\tSystem.out.println(\"Yes\");\n \t}\n \telse {\n \t\tSystem.out.println(\"No\");\n \t}\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \tString s = sc.nextLine();\n \tString s2 = s + s;\n \tString p = sc.nextLine();\n \t\n \tif(s2.contains(p)) {\n \t\tSystem.out.println(\"Yes\");\n \t}\n \telse {\n \t\tSystem.out.println(\"No\");\n \t}\n }\n}", "Main", "public static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \tString s = sc.nextLine();\n \tString s2 = s + s;\n \tString p = sc.nextLine();\n \t\n \tif(s2.contains(p)) {\n \t\tSystem.out.println(\"Yes\");\n \t}\n \telse {\n \t\tSystem.out.println(\"No\");\n \t}\n }", "main", "{\n \tint i, j, k;\n \tString s = sc.nextLine();\n \tString s2 = s + s;\n \tString p = sc.nextLine();\n \t\n \tif(s2.contains(p)) {\n \t\tSystem.out.println(\"Yes\");\n \t}\n \telse {\n \t\tSystem.out.println(\"No\");\n \t}\n }", "int i", "i", "j", "j", "k;", "k", "String s = sc.nextLine();", "s", "sc.nextLine()", "sc.nextLine", "sc", "String s2 = s + s;", "s2", "s + s", "s", "s", "String p = sc.nextLine();", "p", "sc.nextLine()", "sc.nextLine", "sc", "if(s2.contains(p)) {\n \t\tSystem.out.println(\"Yes\");\n \t}\n \telse {\n \t\tSystem.out.println(\"No\");\n \t}", "s2.contains(p)", "s2.contains", "s2", "p", "{\n \t\tSystem.out.println(\"Yes\");\n \t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n \t\tSystem.out.println(\"No\");\n \t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \tString s = sc.nextLine();\n \tString s2 = s + s;\n \tString p = sc.nextLine();\n \t\n \tif(s2.contains(p)) {\n \t\tSystem.out.println(\"Yes\");\n \t}\n \telse {\n \t\tSystem.out.println(\"No\");\n \t}\n }\n}", "public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \tString s = sc.nextLine();\n \tString s2 = s + s;\n \tString p = sc.nextLine();\n \t\n \tif(s2.contains(p)) {\n \t\tSystem.out.println(\"Yes\");\n \t}\n \telse {\n \t\tSystem.out.println(\"No\");\n \t}\n }\n}", "Main" ]
import java.util.*; public class Main { public static Scanner sc = new Scanner(System.in); public static void main(String[] args) throws Exception { int i, j, k; String s = sc.nextLine(); String s2 = s + s; String p = sc.nextLine(); if(s2.contains(p)) { System.out.println("Yes"); } else { System.out.println("No"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 40, 4, 18, 18, 13, 2, 2, 13, 13, 18, 13, 13, 18, 13, 13, 30, 0, 13, 17, 3, 14, 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 ], [ 101, 5 ], [ 101, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 14, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 22, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 35, 37 ], [ 28, 38 ], [ 38, 39 ], [ 39, 40 ], [ 28, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 46, 56 ], [ 56, 57 ], [ 57, 58 ], [ 46, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 71, 73 ], [ 63, 74 ], [ 74, 75 ], [ 74, 76 ], [ 61, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 42, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 84, 91 ], [ 8, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 6, 98 ], [ 98, 99 ], [ 0, 100 ], [ 100, 101 ], [ 100, 102 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] s = sc.nextLine().split(\"\");\n\t\tString[] p = sc.nextLine().split(\"\");\n\t\t\n\t\tfor(int i=0; i<s.length; i++){\n\t\t\tboolean flag = true;\n\t\t\tfor(int j=0; j<p.length; j++){\n\t\t\t\tif(!s[(i+j)%s.length].equals(p[j])){\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(flag){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"No\");\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] s = sc.nextLine().split(\"\");\n\t\tString[] p = sc.nextLine().split(\"\");\n\t\t\n\t\tfor(int i=0; i<s.length; i++){\n\t\t\tboolean flag = true;\n\t\t\tfor(int j=0; j<p.length; j++){\n\t\t\t\tif(!s[(i+j)%s.length].equals(p[j])){\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(flag){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"No\");\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] s = sc.nextLine().split(\"\");\n\t\tString[] p = sc.nextLine().split(\"\");\n\t\t\n\t\tfor(int i=0; i<s.length; i++){\n\t\t\tboolean flag = true;\n\t\t\tfor(int j=0; j<p.length; j++){\n\t\t\t\tif(!s[(i+j)%s.length].equals(p[j])){\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(flag){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"No\");\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] s = sc.nextLine().split(\"\");\n\t\tString[] p = sc.nextLine().split(\"\");\n\t\t\n\t\tfor(int i=0; i<s.length; i++){\n\t\t\tboolean flag = true;\n\t\t\tfor(int j=0; j<p.length; j++){\n\t\t\t\tif(!s[(i+j)%s.length].equals(p[j])){\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(flag){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"No\");\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String[] s = sc.nextLine().split(\"\");", "s", "sc.nextLine().split(\"\")", "sc.nextLine().split", "sc.nextLine()", "sc.nextLine", "sc", "\"\"", "String[] p = sc.nextLine().split(\"\");", "p", "sc.nextLine().split(\"\")", "sc.nextLine().split", "sc.nextLine()", "sc.nextLine", "sc", "\"\"", "for(int i=0; i<s.length; i++){\n\t\t\tboolean flag = true;\n\t\t\tfor(int j=0; j<p.length; j++){\n\t\t\t\tif(!s[(i+j)%s.length].equals(p[j])){\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(flag){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<s.length", "i", "s.length", "s", "s.length", "i++", "i++", "i", "{\n\t\t\tboolean flag = true;\n\t\t\tfor(int j=0; j<p.length; j++){\n\t\t\t\tif(!s[(i+j)%s.length].equals(p[j])){\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(flag){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "{\n\t\t\tboolean flag = true;\n\t\t\tfor(int j=0; j<p.length; j++){\n\t\t\t\tif(!s[(i+j)%s.length].equals(p[j])){\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(flag){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "boolean flag = true;", "flag", "true", "for(int j=0; j<p.length; j++){\n\t\t\t\tif(!s[(i+j)%s.length].equals(p[j])){\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<p.length", "j", "p.length", "p", "p.length", "j++", "j++", "j", "{\n\t\t\t\tif(!s[(i+j)%s.length].equals(p[j])){\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(!s[(i+j)%s.length].equals(p[j])){\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "if(!s[(i+j)%s.length].equals(p[j])){\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "!s[(i+j)%s.length].equals(p[j])", "s[(i+j)%s.length].equals(p[j])", "s[(i+j)%s.length].equals", "s[(i+j)%s.length]", "s", "(i+j)%s.length", "(i+j)", "i", "j", "s.length", "s", "s.length", "p[j]", "p", "j", "{\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "flag = false", "flag", "false", "break;", "if(flag){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}", "flag", "{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}", "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\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] s = sc.nextLine().split(\"\");\n\t\tString[] p = sc.nextLine().split(\"\");\n\t\t\n\t\tfor(int i=0; i<s.length; i++){\n\t\t\tboolean flag = true;\n\t\t\tfor(int j=0; j<p.length; j++){\n\t\t\t\tif(!s[(i+j)%s.length].equals(p[j])){\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(flag){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"No\");\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString[] s = sc.nextLine().split(\"\");\n\t\tString[] p = sc.nextLine().split(\"\");\n\t\t\n\t\tfor(int i=0; i<s.length; i++){\n\t\t\tboolean flag = true;\n\t\t\tfor(int j=0; j<p.length; j++){\n\t\t\t\tif(!s[(i+j)%s.length].equals(p[j])){\n\t\t\t\t\tflag = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(flag){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"No\");\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String[] s = sc.nextLine().split(""); String[] p = sc.nextLine().split(""); for(int i=0; i<s.length; i++){ boolean flag = true; for(int j=0; j<p.length; j++){ if(!s[(i+j)%s.length].equals(p[j])){ flag = false; break; } } if(flag){ System.out.println("Yes"); return; } } System.out.println("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 41, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 40, 13, 30, 30, 14, 2, 13, 18, 13, 13, 30, 0, 13, 17, 14, 2, 18, 13, 13, 18, 13, 13, 30, 3, 14, 2, 13, 2, 18, 13, 13, 17, 30, 0, 13, 17, 14, 13, 30, 3, 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 ], [ 125, 8 ], [ 125, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 12, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 19, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 19, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 19, 37 ], [ 37, 38 ], [ 37, 39 ], [ 19, 40 ], [ 40, 41 ], [ 19, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 42, 52 ], [ 52, 53 ], [ 53, 54 ], [ 42, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 60, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 60, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 77, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 76, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 92, 94 ], [ 87, 95 ], [ 95, 96 ], [ 87, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 97, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 56, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 19, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 118, 119 ], [ 118, 120 ], [ 118, 121 ], [ 9, 122 ], [ 122, 123 ], [ 0, 124 ], [ 124, 125 ], [ 124, 126 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tchar[] ring = input.readLine().toCharArray();\n\t\t\tchar[] pattern = input.readLine().toCharArray();\n\t\t\tboolean flag = false;\n\n\t\t\tint tmp;\n\t\t\tfor (int i = 0; i < ring.length; i++) {\n\t\t\t\ttmp = i;\n\t\t\t\tfor (int j = 0; j < pattern.length; tmp++, j++) {\n\t\t\t\t\tif (tmp == ring.length) {\n\t\t\t\t\t\ttmp = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (ring[tmp] != pattern[j]) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == pattern.length-1) {\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (flag) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(flag ? \"Yes\" : \"No\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tchar[] ring = input.readLine().toCharArray();\n\t\t\tchar[] pattern = input.readLine().toCharArray();\n\t\t\tboolean flag = false;\n\n\t\t\tint tmp;\n\t\t\tfor (int i = 0; i < ring.length; i++) {\n\t\t\t\ttmp = i;\n\t\t\t\tfor (int j = 0; j < pattern.length; tmp++, j++) {\n\t\t\t\t\tif (tmp == ring.length) {\n\t\t\t\t\t\ttmp = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (ring[tmp] != pattern[j]) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == pattern.length-1) {\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (flag) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(flag ? \"Yes\" : \"No\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tchar[] ring = input.readLine().toCharArray();\n\t\t\tchar[] pattern = input.readLine().toCharArray();\n\t\t\tboolean flag = false;\n\n\t\t\tint tmp;\n\t\t\tfor (int i = 0; i < ring.length; i++) {\n\t\t\t\ttmp = i;\n\t\t\t\tfor (int j = 0; j < pattern.length; tmp++, j++) {\n\t\t\t\t\tif (tmp == ring.length) {\n\t\t\t\t\t\ttmp = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (ring[tmp] != pattern[j]) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == pattern.length-1) {\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (flag) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(flag ? \"Yes\" : \"No\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "main", "{\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tchar[] ring = input.readLine().toCharArray();\n\t\t\tchar[] pattern = input.readLine().toCharArray();\n\t\t\tboolean flag = false;\n\n\t\t\tint tmp;\n\t\t\tfor (int i = 0; i < ring.length; i++) {\n\t\t\t\ttmp = i;\n\t\t\t\tfor (int j = 0; j < pattern.length; tmp++, j++) {\n\t\t\t\t\tif (tmp == ring.length) {\n\t\t\t\t\t\ttmp = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (ring[tmp] != pattern[j]) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == pattern.length-1) {\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (flag) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(flag ? \"Yes\" : \"No\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "try {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tchar[] ring = input.readLine().toCharArray();\n\t\t\tchar[] pattern = input.readLine().toCharArray();\n\t\t\tboolean flag = false;\n\n\t\t\tint tmp;\n\t\t\tfor (int i = 0; i < ring.length; i++) {\n\t\t\t\ttmp = i;\n\t\t\t\tfor (int j = 0; j < pattern.length; tmp++, j++) {\n\t\t\t\t\tif (tmp == ring.length) {\n\t\t\t\t\t\ttmp = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (ring[tmp] != pattern[j]) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == pattern.length-1) {\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (flag) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(flag ? \"Yes\" : \"No\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}", "catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}", "Exception e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tchar[] ring = input.readLine().toCharArray();\n\t\t\tchar[] pattern = input.readLine().toCharArray();\n\t\t\tboolean flag = false;\n\n\t\t\tint tmp;\n\t\t\tfor (int i = 0; i < ring.length; i++) {\n\t\t\t\ttmp = i;\n\t\t\t\tfor (int j = 0; j < pattern.length; tmp++, j++) {\n\t\t\t\t\tif (tmp == ring.length) {\n\t\t\t\t\t\ttmp = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (ring[tmp] != pattern[j]) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == pattern.length-1) {\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (flag) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(flag ? \"Yes\" : \"No\");\n\t\t}", "BufferedReader input = new BufferedReader(new InputStreamReader(System.in));", "input", "new BufferedReader(new InputStreamReader(System.in))", "char[] ring = input.readLine().toCharArray();", "ring", "input.readLine().toCharArray()", "input.readLine().toCharArray", "input.readLine()", "input.readLine", "input", "char[] pattern = input.readLine().toCharArray();", "pattern", "input.readLine().toCharArray()", "input.readLine().toCharArray", "input.readLine()", "input.readLine", "input", "boolean flag = false;", "flag", "false", "int tmp;", "tmp", "for (int i = 0; i < ring.length; i++) {\n\t\t\t\ttmp = i;\n\t\t\t\tfor (int j = 0; j < pattern.length; tmp++, j++) {\n\t\t\t\t\tif (tmp == ring.length) {\n\t\t\t\t\t\ttmp = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (ring[tmp] != pattern[j]) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == pattern.length-1) {\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (flag) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < ring.length", "i", "ring.length", "ring", "ring.length", "i++", "i++", "i", "{\n\t\t\t\ttmp = i;\n\t\t\t\tfor (int j = 0; j < pattern.length; tmp++, j++) {\n\t\t\t\t\tif (tmp == ring.length) {\n\t\t\t\t\t\ttmp = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (ring[tmp] != pattern[j]) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == pattern.length-1) {\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (flag) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\ttmp = i;\n\t\t\t\tfor (int j = 0; j < pattern.length; tmp++, j++) {\n\t\t\t\t\tif (tmp == ring.length) {\n\t\t\t\t\t\ttmp = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (ring[tmp] != pattern[j]) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == pattern.length-1) {\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (flag) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "tmp = i", "tmp", "i", "for (int j = 0; j < pattern.length; tmp++, j++) {\n\t\t\t\t\tif (tmp == ring.length) {\n\t\t\t\t\t\ttmp = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (ring[tmp] != pattern[j]) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == pattern.length-1) {\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < pattern.length", "j", "pattern.length", "pattern", "pattern.length", "tmp++, j++", "tmp++", "tmp", "j++", "j", "{\n\t\t\t\t\tif (tmp == ring.length) {\n\t\t\t\t\t\ttmp = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (ring[tmp] != pattern[j]) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == pattern.length-1) {\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tif (tmp == ring.length) {\n\t\t\t\t\t\ttmp = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (ring[tmp] != pattern[j]) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == pattern.length-1) {\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}", "if (tmp == ring.length) {\n\t\t\t\t\t\ttmp = 0;\n\t\t\t\t\t}", "tmp == ring.length", "tmp", "ring.length", "ring", "ring.length", "{\n\t\t\t\t\t\ttmp = 0;\n\t\t\t\t\t}", "tmp = 0", "tmp", "0", "if (ring[tmp] != pattern[j]) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == pattern.length-1) {\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}", "ring[tmp] != pattern[j]", "ring[tmp]", "ring", "tmp", "pattern[j]", "pattern", "j", "{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "break;", "if (j == pattern.length-1) {\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}", "j == pattern.length-1", "j", "pattern.length-1", "pattern.length", "pattern", "pattern.length", "1", "{\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}", "flag = true", "flag", "true", "if (flag) {\n\t\t\t\t\tbreak;\n\t\t\t\t}", "flag", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "System.out.println(flag ? \"Yes\" : \"No\")", "System.out.println", "System.out", "System", "System.out", "flag ? \"Yes\" : \"No\"", "flag", "\"Yes\"", "\"No\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tchar[] ring = input.readLine().toCharArray();\n\t\t\tchar[] pattern = input.readLine().toCharArray();\n\t\t\tboolean flag = false;\n\n\t\t\tint tmp;\n\t\t\tfor (int i = 0; i < ring.length; i++) {\n\t\t\t\ttmp = i;\n\t\t\t\tfor (int j = 0; j < pattern.length; tmp++, j++) {\n\t\t\t\t\tif (tmp == ring.length) {\n\t\t\t\t\t\ttmp = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (ring[tmp] != pattern[j]) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == pattern.length-1) {\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (flag) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(flag ? \"Yes\" : \"No\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tchar[] ring = input.readLine().toCharArray();\n\t\t\tchar[] pattern = input.readLine().toCharArray();\n\t\t\tboolean flag = false;\n\n\t\t\tint tmp;\n\t\t\tfor (int i = 0; i < ring.length; i++) {\n\t\t\t\ttmp = i;\n\t\t\t\tfor (int j = 0; j < pattern.length; tmp++, j++) {\n\t\t\t\t\tif (tmp == ring.length) {\n\t\t\t\t\t\ttmp = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (ring[tmp] != pattern[j]) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == pattern.length-1) {\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (flag) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(flag ? \"Yes\" : \"No\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { try { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); char[] ring = input.readLine().toCharArray(); char[] pattern = input.readLine().toCharArray(); boolean flag = false; int tmp; for (int i = 0; i < ring.length; i++) { tmp = i; for (int j = 0; j < pattern.length; tmp++, j++) { if (tmp == ring.length) { tmp = 0; } if (ring[tmp] != pattern[j]) { break; } else if (j == pattern.length-1) { flag = true; } } if (flag) { break; } } System.out.println(flag ? "Yes" : "No"); } catch (Exception e) { e.printStackTrace(); } } }
[ 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, 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 ], [ 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 ], [ 22, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 27, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 27, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 8, 46 ], [ 46, 47 ], [ 47, 48 ], [ 6, 49 ], [ 49, 50 ], [ 0, 51 ], [ 51, 52 ], [ 51, 53 ] ]
[ "import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n String key = sc.nextLine();\n String test = str+str;\n\n if(test.contains(key)) {\n \tSystem.out.println(\"Yes\");\n }else {\n \tSystem.out.println(\"No\");\n }\n sc.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n String key = sc.nextLine();\n String test = str+str;\n\n if(test.contains(key)) {\n \tSystem.out.println(\"Yes\");\n }else {\n \tSystem.out.println(\"No\");\n }\n sc.close();\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n String key = sc.nextLine();\n String test = str+str;\n\n if(test.contains(key)) {\n \tSystem.out.println(\"Yes\");\n }else {\n \tSystem.out.println(\"No\");\n }\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n String key = sc.nextLine();\n String test = str+str;\n\n if(test.contains(key)) {\n \tSystem.out.println(\"Yes\");\n }else {\n \tSystem.out.println(\"No\");\n }\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String str = sc.nextLine();", "str", "sc.nextLine()", "sc.nextLine", "sc", "String key = sc.nextLine();", "key", "sc.nextLine()", "sc.nextLine", "sc", "String test = str+str;", "test", "str+str", "str", "str", "if(test.contains(key)) {\n \tSystem.out.println(\"Yes\");\n }else {\n \tSystem.out.println(\"No\");\n }", "test.contains(key)", "test.contains", "test", "key", "{\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\"", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n String key = sc.nextLine();\n String test = str+str;\n\n if(test.contains(key)) {\n \tSystem.out.println(\"Yes\");\n }else {\n \tSystem.out.println(\"No\");\n }\n sc.close();\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n String key = sc.nextLine();\n String test = str+str;\n\n if(test.contains(key)) {\n \tSystem.out.println(\"Yes\");\n }else {\n \tSystem.out.println(\"No\");\n }\n sc.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String str = sc.nextLine(); String key = sc.nextLine(); String test = str+str; if(test.contains(key)) { System.out.println("Yes"); }else { System.out.println("No"); } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 2, 4, 18, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 13, 13, 2, 4, 18, 13, 13, 13, 40, 13, 14, 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 ], [ 29, 32 ], [ 29, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 33, 37 ], [ 8, 38 ], [ 38, 39 ], [ 38, 40 ], [ 8, 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 ], [ 58, 59 ], [ 57, 60 ], [ 57, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 61, 65 ], [ 55, 66 ], [ 54, 67 ], [ 67, 68 ], [ 8, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 69, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 6, 85 ], [ 85, 86 ] ]
[ "import java.util.*;\n\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.nextLine();\n String p = sc.nextLine();\n\n int num_s = s.length();\n s += s.substring(0,s.length() - 1);\n \n int yes = 0;\n for(int i = 0;i < num_s;i++){\n if((s.substring(i,(p.length() + i))).equals(p)) yes++;\n }\n\n if(yes > 0) System.out.println(\"Yes\");\n else 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\n String s = sc.nextLine();\n String p = sc.nextLine();\n\n int num_s = s.length();\n s += s.substring(0,s.length() - 1);\n \n int yes = 0;\n for(int i = 0;i < num_s;i++){\n if((s.substring(i,(p.length() + i))).equals(p)) yes++;\n }\n\n if(yes > 0) 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\n String s = sc.nextLine();\n String p = sc.nextLine();\n\n int num_s = s.length();\n s += s.substring(0,s.length() - 1);\n \n int yes = 0;\n for(int i = 0;i < num_s;i++){\n if((s.substring(i,(p.length() + i))).equals(p)) yes++;\n }\n\n if(yes > 0) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n String s = sc.nextLine();\n String p = sc.nextLine();\n\n int num_s = s.length();\n s += s.substring(0,s.length() - 1);\n \n int yes = 0;\n for(int i = 0;i < num_s;i++){\n if((s.substring(i,(p.length() + i))).equals(p)) yes++;\n }\n\n if(yes > 0) 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 p = sc.nextLine();", "p", "sc.nextLine()", "sc.nextLine", "sc", "int num_s = s.length();", "num_s", "s.length()", "s.length", "s", "s += s.substring(0,s.length() - 1)", "s", "s.substring(0,s.length() - 1)", "s.substring", "s", "0", "s.length() - 1", "s.length()", "s.length", "s", "1", "int yes = 0;", "yes", "0", "for(int i = 0;i < num_s;i++){\n if((s.substring(i,(p.length() + i))).equals(p)) yes++;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < num_s", "i", "num_s", "i++", "i++", "i", "{\n if((s.substring(i,(p.length() + i))).equals(p)) yes++;\n }", "{\n if((s.substring(i,(p.length() + i))).equals(p)) yes++;\n }", "if((s.substring(i,(p.length() + i))).equals(p)) yes++;", "(s.substring(i,(p.length() + i))).equals(p)", "(s.substring(i,(p.length() + i))).equals", "(s.substring(i,(p.length() + i)))", "s.substring", "s", "i", "(p.length() + i)", "p.length()", "p.length", "p", "i", "p", "yes++", "yes", "if(yes > 0) System.out.println(\"Yes\");\n else System.out.println(\"No\");", "yes > 0", "yes", "0", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.nextLine(); String p = sc.nextLine(); int num_s = s.length(); s += s.substring(0,s.length() - 1); int yes = 0; for(int i = 0;i < num_s;i++){ if((s.substring(i,(p.length() + i))).equals(p)) yes++; } if(yes > 0) System.out.println("Yes"); else System.out.println("No"); } }
[ 7, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 20, 13, 0, 13, 20, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 13, 0, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 2, 2, 13, 13, 13, 18, 13, 13, 30, 40, 13, 14, 2, 13, 13, 3, 14, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 13, 23, 13, 23, 13, 12, 13, 30, 4, 18, 20, 18, 13, 13, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 189, 2 ], [ 189, 3 ], [ 3, 4 ], [ 3, 5 ], [ 5, 6 ], [ 6, 7 ], [ 6, 8 ], [ 5, 9 ], [ 9, 10 ], [ 5, 11 ], [ 11, 12 ], [ 5, 13 ], [ 13, 14 ], [ 5, 15 ], [ 15, 16 ], [ 5, 17 ], [ 17, 18 ], [ 5, 19 ], [ 19, 20 ], [ 5, 21 ], [ 21, 22 ], [ 5, 23 ], [ 23, 24 ], [ 5, 25 ], [ 25, 26 ], [ 5, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 5, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 5, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 5, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 5, 47 ], [ 47, 48 ], [ 47, 49 ], [ 5, 51 ], [ 51, 52 ], [ 51, 53 ], [ 5, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 55, 63 ], [ 63, 64 ], [ 64, 65 ], [ 55, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 5, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 81, 82 ], [ 81, 83 ], [ 76, 84 ], [ 84, 85 ], [ 85, 86 ], [ 76, 87 ], [ 88, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 5, 97 ], [ 97, 98 ], [ 97, 99 ], [ 5, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 105, 106 ], [ 105, 107 ], [ 100, 108 ], [ 108, 109 ], [ 109, 110 ], [ 100, 111 ], [ 112, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 121, 122 ], [ 121, 123 ], [ 116, 124 ], [ 124, 125 ], [ 125, 126 ], [ 116, 127 ], [ 128, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 130, 138 ], [ 138, 139 ], [ 138, 140 ], [ 129, 141 ], [ 141, 142 ], [ 142, 143 ], [ 112, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 144, 148 ], [ 5, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 154, 159 ], [ 149, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 161, 166 ], [ 5, 167 ], [ 167, 168 ], [ 168, 169 ], [ 3, 170 ], [ 170, 171 ], [ 3, 172 ], [ 172, 173 ], [ 189, 174 ], [ 174, 175 ], [ 174, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 177, 180 ], [ 180, 181 ], [ 180, 182 ], [ 177, 183 ], [ 183, 184 ], [ 183, 185 ], [ 174, 186 ], [ 186, 187 ], [ 0, 188 ], [ 188, 189 ], [ 188, 190 ] ]
[ "public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n String s, p;\n char[] sch, pch;\n int i, j, n, sm, pm;\n\n s = sc.next();\n p = sc.next();\n sm = s.length();\n pm = p.length();\n sch = new char[sm];\n pch = new char[pm];\n for(i = 0;i < sm;i++){\n sch[i] = s.charAt(i);\n }\n for(i = 0;i < pm;i++){\n pch[i] = p.charAt(i);\n }\n\n n = 0;\n for(i = 0;i < sm;i++){\n n = 0;\n for(j = 0;j < pm;j++){\n if(sch[(i + j) % sm] == pch[j]){\n n++;\n }\n }\n if(n == pm)break;\n }\n\n if(n != pm){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\n }\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}", "public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n String s, p;\n char[] sch, pch;\n int i, j, n, sm, pm;\n\n s = sc.next();\n p = sc.next();\n sm = s.length();\n pm = p.length();\n sch = new char[sm];\n pch = new char[pm];\n for(i = 0;i < sm;i++){\n sch[i] = s.charAt(i);\n }\n for(i = 0;i < pm;i++){\n pch[i] = p.charAt(i);\n }\n\n n = 0;\n for(i = 0;i < sm;i++){\n n = 0;\n for(j = 0;j < pm;j++){\n if(sch[(i + j) % sm] == pch[j]){\n n++;\n }\n }\n if(n == pm)break;\n }\n\n if(n != pm){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\n }\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}", "Main", "public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n String s, p;\n char[] sch, pch;\n int i, j, n, sm, pm;\n\n s = sc.next();\n p = sc.next();\n sm = s.length();\n pm = p.length();\n sch = new char[sm];\n pch = new char[pm];\n for(i = 0;i < sm;i++){\n sch[i] = s.charAt(i);\n }\n for(i = 0;i < pm;i++){\n pch[i] = p.charAt(i);\n }\n\n n = 0;\n for(i = 0;i < sm;i++){\n n = 0;\n for(j = 0;j < pm;j++){\n if(sch[(i + j) % sm] == pch[j]){\n n++;\n }\n }\n if(n == pm)break;\n }\n\n if(n != pm){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\n }\n\n sc.close();\n }", "run", "{\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n String s, p;\n char[] sch, pch;\n int i, j, n, sm, pm;\n\n s = sc.next();\n p = sc.next();\n sm = s.length();\n pm = p.length();\n sch = new char[sm];\n pch = new char[pm];\n for(i = 0;i < sm;i++){\n sch[i] = s.charAt(i);\n }\n for(i = 0;i < pm;i++){\n pch[i] = p.charAt(i);\n }\n\n n = 0;\n for(i = 0;i < sm;i++){\n n = 0;\n for(j = 0;j < pm;j++){\n if(sch[(i + j) % sm] == pch[j]){\n n++;\n }\n }\n if(n == pm)break;\n }\n\n if(n != pm){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\n }\n\n sc.close();\n }", "java.util.Scanner sc = new java.util.Scanner(in);", "sc", "new java.util.Scanner(in)", "String s", "s", "p;", "p", "char[] sch", "sch", "pch;", "pch", "int i", "i", "j", "j", "n", "n", "sm", "sm", "pm;", "pm", "s = sc.next()", "s", "sc.next()", "sc.next", "sc", "p = sc.next()", "p", "sc.next()", "sc.next", "sc", "sm = s.length()", "sm", "s.length()", "s.length", "s", "pm = p.length()", "pm", "p.length()", "p.length", "p", "sch = new char[sm]", "sch", "new char[sm]", "sm", "pch = new char[pm]", "pch", "new char[pm]", "pm", "for(i = 0;i < sm;i++){\n sch[i] = s.charAt(i);\n }", "i = 0;", "i = 0", "i", "0", "i < sm", "i", "sm", "i++", "i++", "i", "{\n sch[i] = s.charAt(i);\n }", "{\n sch[i] = s.charAt(i);\n }", "sch[i] = s.charAt(i)", "sch[i]", "sch", "i", "s.charAt(i)", "s.charAt", "s", "i", "for(i = 0;i < pm;i++){\n pch[i] = p.charAt(i);\n }", "i = 0;", "i = 0", "i", "0", "i < pm", "i", "pm", "i++", "i++", "i", "{\n pch[i] = p.charAt(i);\n }", "{\n pch[i] = p.charAt(i);\n }", "pch[i] = p.charAt(i)", "pch[i]", "pch", "i", "p.charAt(i)", "p.charAt", "p", "i", "n = 0", "n", "0", "for(i = 0;i < sm;i++){\n n = 0;\n for(j = 0;j < pm;j++){\n if(sch[(i + j) % sm] == pch[j]){\n n++;\n }\n }\n if(n == pm)break;\n }", "i = 0;", "i = 0", "i", "0", "i < sm", "i", "sm", "i++", "i++", "i", "{\n n = 0;\n for(j = 0;j < pm;j++){\n if(sch[(i + j) % sm] == pch[j]){\n n++;\n }\n }\n if(n == pm)break;\n }", "{\n n = 0;\n for(j = 0;j < pm;j++){\n if(sch[(i + j) % sm] == pch[j]){\n n++;\n }\n }\n if(n == pm)break;\n }", "n = 0", "n", "0", "for(j = 0;j < pm;j++){\n if(sch[(i + j) % sm] == pch[j]){\n n++;\n }\n }", "j = 0;", "j = 0", "j", "0", "j < pm", "j", "pm", "j++", "j++", "j", "{\n if(sch[(i + j) % sm] == pch[j]){\n n++;\n }\n }", "{\n if(sch[(i + j) % sm] == pch[j]){\n n++;\n }\n }", "if(sch[(i + j) % sm] == pch[j]){\n n++;\n }", "sch[(i + j) % sm] == pch[j]", "sch[(i + j) % sm]", "sch", "(i + j) % sm", "(i + j)", "i", "j", "sm", "pch[j]", "pch", "j", "{\n n++;\n }", "n++", "n", "if(n == pm)break;", "n == pm", "n", "pm", "break;", "if(n != pm){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\n }", "n != pm", "n", "pm", "{\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\"", "sc.close()", "sc.close", "sc", "java.io.InputStream in", "in", "java.io.PrintStream out", "out", "public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }", "main", "{\n (new Main()).run(System.in, System.out);\n }", "(new Main()).run(System.in, System.out)", "(new Main()).run", "(new Main())", "System.in", "System", "System.in", "System.out", "System", "System.out", "String[] args", "args", "public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n String s, p;\n char[] sch, pch;\n int i, j, n, sm, pm;\n\n s = sc.next();\n p = sc.next();\n sm = s.length();\n pm = p.length();\n sch = new char[sm];\n pch = new char[pm];\n for(i = 0;i < sm;i++){\n sch[i] = s.charAt(i);\n }\n for(i = 0;i < pm;i++){\n pch[i] = p.charAt(i);\n }\n\n n = 0;\n for(i = 0;i < sm;i++){\n n = 0;\n for(j = 0;j < pm;j++){\n if(sch[(i + j) % sm] == pch[j]){\n n++;\n }\n }\n if(n == pm)break;\n }\n\n if(n != pm){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\n }\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}", "public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n String s, p;\n char[] sch, pch;\n int i, j, n, sm, pm;\n\n s = sc.next();\n p = sc.next();\n sm = s.length();\n pm = p.length();\n sch = new char[sm];\n pch = new char[pm];\n for(i = 0;i < sm;i++){\n sch[i] = s.charAt(i);\n }\n for(i = 0;i < pm;i++){\n pch[i] = p.charAt(i);\n }\n\n n = 0;\n for(i = 0;i < sm;i++){\n n = 0;\n for(j = 0;j < pm;j++){\n if(sch[(i + j) % sm] == pch[j]){\n n++;\n }\n }\n if(n == pm)break;\n }\n\n if(n != pm){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\n }\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}", "Main" ]
public class Main{ public void run(java.io.InputStream in, java.io.PrintStream out){ java.util.Scanner sc = new java.util.Scanner(in); /*answer*/ String s, p; char[] sch, pch; int i, j, n, sm, pm; s = sc.next(); p = sc.next(); sm = s.length(); pm = p.length(); sch = new char[sm]; pch = new char[pm]; for(i = 0;i < sm;i++){ sch[i] = s.charAt(i); } for(i = 0;i < pm;i++){ pch[i] = p.charAt(i); } n = 0; for(i = 0;i < sm;i++){ n = 0; for(j = 0;j < pm;j++){ if(sch[(i + j) % sm] == pch[j]){ n++; } } if(n == pm)break; } if(n != pm){ System.out.println("No"); }else{ System.out.println("Yes"); } sc.close(); } public static void main(String[] args){ (new Main()).run(System.in, System.out); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 4, 18, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 2, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 0, 13, 17, 3, 4, 18, 18, 13, 13, 8, 13, 17, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 82, 5 ], [ 82, 6 ], [ 6, 7 ], [ 6, 8 ], [ 82, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 11, 27 ], [ 27, 28 ], [ 27, 29 ], [ 11, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 30, 44 ], [ 44, 45 ], [ 45, 46 ], [ 30, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 51, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 48, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 60, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 11, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 75, 78 ], [ 9, 79 ], [ 79, 80 ], [ 0, 81 ], [ 81, 82 ], [ 81, 83 ] ]
[ "import java.util.*;\n\npublic class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tString s = scan.next();\n\t\tString ss = s + s;\n\t\tString p = scan.next();\n\t\tboolean flag = false;\n\t\tfor(int i = 0; i < ss.length() - p.length(); i++){\n\t\t\tString div = ss.substring(i,i + p.length());\n\t\t\tif(div.equals(p)){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(flag? \"Yes\" : \"No\");\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tString s = scan.next();\n\t\tString ss = s + s;\n\t\tString p = scan.next();\n\t\tboolean flag = false;\n\t\tfor(int i = 0; i < ss.length() - p.length(); i++){\n\t\t\tString div = ss.substring(i,i + p.length());\n\t\t\tif(div.equals(p)){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(flag? \"Yes\" : \"No\");\n\t}\n}", "Main", "private static final Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "public static void main(String[] args){\n\t\tString s = scan.next();\n\t\tString ss = s + s;\n\t\tString p = scan.next();\n\t\tboolean flag = false;\n\t\tfor(int i = 0; i < ss.length() - p.length(); i++){\n\t\t\tString div = ss.substring(i,i + p.length());\n\t\t\tif(div.equals(p)){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(flag? \"Yes\" : \"No\");\n\t}", "main", "{\n\t\tString s = scan.next();\n\t\tString ss = s + s;\n\t\tString p = scan.next();\n\t\tboolean flag = false;\n\t\tfor(int i = 0; i < ss.length() - p.length(); i++){\n\t\t\tString div = ss.substring(i,i + p.length());\n\t\t\tif(div.equals(p)){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(flag? \"Yes\" : \"No\");\n\t}", "String s = scan.next();", "s", "scan.next()", "scan.next", "scan", "String ss = s + s;", "ss", "s + s", "s", "s", "String p = scan.next();", "p", "scan.next()", "scan.next", "scan", "boolean flag = false;", "flag", "false", "for(int i = 0; i < ss.length() - p.length(); i++){\n\t\t\tString div = ss.substring(i,i + p.length());\n\t\t\tif(div.equals(p)){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < ss.length() - p.length()", "i", "ss.length() - p.length()", "ss.length()", "ss.length", "ss", "p.length()", "p.length", "p", "i++", "i++", "i", "{\n\t\t\tString div = ss.substring(i,i + p.length());\n\t\t\tif(div.equals(p)){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "{\n\t\t\tString div = ss.substring(i,i + p.length());\n\t\t\tif(div.equals(p)){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "String div = ss.substring(i,i + p.length());", "div", "ss.substring(i,i + p.length())", "ss.substring", "ss", "i", "i + p.length()", "i", "p.length()", "p.length", "p", "if(div.equals(p)){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}", "div.equals(p)", "div.equals", "div", "p", "{\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}", "flag = true", "flag", "true", "break;", "System.out.println(flag? \"Yes\" : \"No\")", "System.out.println", "System.out", "System", "System.out", "flag? \"Yes\" : \"No\"", "flag", "\"Yes\"", "\"No\"", "String[] args", "args", "public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tString s = scan.next();\n\t\tString ss = s + s;\n\t\tString p = scan.next();\n\t\tboolean flag = false;\n\t\tfor(int i = 0; i < ss.length() - p.length(); i++){\n\t\t\tString div = ss.substring(i,i + p.length());\n\t\t\tif(div.equals(p)){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(flag? \"Yes\" : \"No\");\n\t}\n}", "public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tString s = scan.next();\n\t\tString ss = s + s;\n\t\tString p = scan.next();\n\t\tboolean flag = false;\n\t\tfor(int i = 0; i < ss.length() - p.length(); i++){\n\t\t\tString div = ss.substring(i,i + p.length());\n\t\t\tif(div.equals(p)){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(flag? \"Yes\" : \"No\");\n\t}\n}", "Main" ]
import java.util.*; public class Main{ private static final Scanner scan = new Scanner(System.in); public static void main(String[] args){ String s = scan.next(); String ss = s + s; String p = scan.next(); boolean flag = false; for(int i = 0; i < ss.length() - p.length(); i++){ String div = ss.substring(i,i + p.length()); if(div.equals(p)){ flag = true; break; } } System.out.println(flag? "Yes" : "No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 0, 13, 2, 13, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 13, 13, 2, 13, 13, 13, 30, 0, 13, 17, 4, 18, 18, 13, 13, 8, 13, 17, 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 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 8, 37 ], [ 37, 38 ], [ 37, 39 ], [ 8, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 40, 50 ], [ 50, 51 ], [ 51, 52 ], [ 40, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 58, 62 ], [ 62, 63 ], [ 62, 64 ], [ 56, 65 ], [ 55, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 8, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 75, 78 ], [ 6, 79 ], [ 79, 80 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n String p = sc.nextLine();\n p = p + p;\n String s = sc.nextLine();\n\n int lenp = p.length();\n int lens = s.length();\n\n boolean result = false;\n for (int i = 0; i <= lenp - lens; i++) {\n if (p.substring(i, i + lens).equals(s)) {\n result = true;\n }\n }\n System.out.println((result ? \"Yes\" : \"No\"));\n\n }\n\n\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n String p = sc.nextLine();\n p = p + p;\n String s = sc.nextLine();\n\n int lenp = p.length();\n int lens = s.length();\n\n boolean result = false;\n for (int i = 0; i <= lenp - lens; i++) {\n if (p.substring(i, i + lens).equals(s)) {\n result = true;\n }\n }\n System.out.println((result ? \"Yes\" : \"No\"));\n\n }\n\n\n\n}", "Main", "public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n String p = sc.nextLine();\n p = p + p;\n String s = sc.nextLine();\n\n int lenp = p.length();\n int lens = s.length();\n\n boolean result = false;\n for (int i = 0; i <= lenp - lens; i++) {\n if (p.substring(i, i + lens).equals(s)) {\n result = true;\n }\n }\n System.out.println((result ? \"Yes\" : \"No\"));\n\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n\n String p = sc.nextLine();\n p = p + p;\n String s = sc.nextLine();\n\n int lenp = p.length();\n int lens = s.length();\n\n boolean result = false;\n for (int i = 0; i <= lenp - lens; i++) {\n if (p.substring(i, i + lens).equals(s)) {\n result = true;\n }\n }\n System.out.println((result ? \"Yes\" : \"No\"));\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String p = sc.nextLine();", "p", "sc.nextLine()", "sc.nextLine", "sc", "p = p + p", "p", "p + p", "p", "p", "String s = sc.nextLine();", "s", "sc.nextLine()", "sc.nextLine", "sc", "int lenp = p.length();", "lenp", "p.length()", "p.length", "p", "int lens = s.length();", "lens", "s.length()", "s.length", "s", "boolean result = false;", "result", "false", "for (int i = 0; i <= lenp - lens; i++) {\n if (p.substring(i, i + lens).equals(s)) {\n result = true;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i <= lenp - lens", "i", "lenp - lens", "lenp", "lens", "i++", "i++", "i", "{\n if (p.substring(i, i + lens).equals(s)) {\n result = true;\n }\n }", "{\n if (p.substring(i, i + lens).equals(s)) {\n result = true;\n }\n }", "if (p.substring(i, i + lens).equals(s)) {\n result = true;\n }", "p.substring(i, i + lens).equals(s)", "p.substring(i, i + lens).equals", "p.substring(i, i + lens)", "p.substring", "p", "i", "i + lens", "i", "lens", "s", "{\n result = true;\n }", "result = true", "result", "true", "System.out.println((result ? \"Yes\" : \"No\"))", "System.out.println", "System.out", "System", "System.out", "(result ? \"Yes\" : \"No\")", "result", "\"Yes\"", "\"No\"", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String p = sc.nextLine(); p = p + p; String s = sc.nextLine(); int lenp = p.length(); int lens = s.length(); boolean result = false; for (int i = 0; i <= lenp - lens; i++) { if (p.substring(i, i + lens).equals(s)) { result = true; } } System.out.println((result ? "Yes" : "No")); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 28, 13, 13, 30, 30, 4, 18, 13, 20, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 2, 13, 13, 4, 18, 13, 13, 30, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 28, 13, 13, 30, 30, 4, 18, 13, 20, 3, 30, 40, 13, 14, 2, 13, 4, 18, 13, 30, 0, 13, 17, 14, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 8, 33 ], [ 33, 34 ], [ 33, 35 ], [ 8, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 36, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 49, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 8, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 58, 68 ], [ 68, 69 ], [ 69, 70 ], [ 58, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 73, 83 ], [ 83, 84 ], [ 84, 85 ], [ 73, 86 ], [ 87, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 93, 94 ], [ 93, 95 ], [ 89, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 88, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 109, 110 ], [ 109, 111 ], [ 104, 112 ], [ 112, 113 ], [ 113, 114 ], [ 104, 115 ], [ 116, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 117, 120 ], [ 121, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 100, 126 ], [ 88, 127 ], [ 127, 128 ], [ 128, 129 ], [ 72, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 130, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 8, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 143, 148 ], [ 140, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 150, 155 ], [ 6, 156 ], [ 156, 157 ] ]
[ "import java.util.*;\nclass Main {\n public static void main(String...args) {\n boolean isCollect = false;\n int count = 0;\n Scanner scan = new Scanner(System.in);\n String ring = scan.nextLine();\n String str = scan.nextLine();\n char[] chrs = ring.toCharArray();\n List<Character> ringList = new ArrayList<>();\n for(int k = 0 ; k < 2; k++) {\n for(char c :chrs) {\n ringList.add(new Character(c));\n }\n }\n for(int i = 0; i < ring.length(); i++) {\n for(int j = 0; j <str.length(); j++) {\n if(ringList.get(i + j) != str.charAt(j)) {\n count = 0;\n for(int k = 0 ; k < 2; k++) {\n for(char c :chrs) {\n ringList.add(new Character(c));\n }\n } \n break;\n }\n else {\n //Character replace = ringList.get(0);\n count++;\n //ringList.add(replace);\n }\n }\n if(count == str.length()) {\n isCollect = true;\n } \n }\n if(isCollect) {\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }\n }\n}\n\n\n", "import java.util.*;", "util.*", "java", "class Main {\n public static void main(String...args) {\n boolean isCollect = false;\n int count = 0;\n Scanner scan = new Scanner(System.in);\n String ring = scan.nextLine();\n String str = scan.nextLine();\n char[] chrs = ring.toCharArray();\n List<Character> ringList = new ArrayList<>();\n for(int k = 0 ; k < 2; k++) {\n for(char c :chrs) {\n ringList.add(new Character(c));\n }\n }\n for(int i = 0; i < ring.length(); i++) {\n for(int j = 0; j <str.length(); j++) {\n if(ringList.get(i + j) != str.charAt(j)) {\n count = 0;\n for(int k = 0 ; k < 2; k++) {\n for(char c :chrs) {\n ringList.add(new Character(c));\n }\n } \n break;\n }\n else {\n //Character replace = ringList.get(0);\n count++;\n //ringList.add(replace);\n }\n }\n if(count == str.length()) {\n isCollect = true;\n } \n }\n if(isCollect) {\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }\n }\n}", "Main", "public static void main(String...args) {\n boolean isCollect = false;\n int count = 0;\n Scanner scan = new Scanner(System.in);\n String ring = scan.nextLine();\n String str = scan.nextLine();\n char[] chrs = ring.toCharArray();\n List<Character> ringList = new ArrayList<>();\n for(int k = 0 ; k < 2; k++) {\n for(char c :chrs) {\n ringList.add(new Character(c));\n }\n }\n for(int i = 0; i < ring.length(); i++) {\n for(int j = 0; j <str.length(); j++) {\n if(ringList.get(i + j) != str.charAt(j)) {\n count = 0;\n for(int k = 0 ; k < 2; k++) {\n for(char c :chrs) {\n ringList.add(new Character(c));\n }\n } \n break;\n }\n else {\n //Character replace = ringList.get(0);\n count++;\n //ringList.add(replace);\n }\n }\n if(count == str.length()) {\n isCollect = true;\n } \n }\n if(isCollect) {\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }\n }", "main", "{\n boolean isCollect = false;\n int count = 0;\n Scanner scan = new Scanner(System.in);\n String ring = scan.nextLine();\n String str = scan.nextLine();\n char[] chrs = ring.toCharArray();\n List<Character> ringList = new ArrayList<>();\n for(int k = 0 ; k < 2; k++) {\n for(char c :chrs) {\n ringList.add(new Character(c));\n }\n }\n for(int i = 0; i < ring.length(); i++) {\n for(int j = 0; j <str.length(); j++) {\n if(ringList.get(i + j) != str.charAt(j)) {\n count = 0;\n for(int k = 0 ; k < 2; k++) {\n for(char c :chrs) {\n ringList.add(new Character(c));\n }\n } \n break;\n }\n else {\n //Character replace = ringList.get(0);\n count++;\n //ringList.add(replace);\n }\n }\n if(count == str.length()) {\n isCollect = true;\n } \n }\n if(isCollect) {\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }\n }", "boolean isCollect = false;", "isCollect", "false", "int count = 0;", "count", "0", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String ring = scan.nextLine();", "ring", "scan.nextLine()", "scan.nextLine", "scan", "String str = scan.nextLine();", "str", "scan.nextLine()", "scan.nextLine", "scan", "char[] chrs = ring.toCharArray();", "chrs", "ring.toCharArray()", "ring.toCharArray", "ring", "List<Character> ringList = new ArrayList<>();", "ringList", "new ArrayList<>()", "for(int k = 0 ; k < 2; k++) {\n for(char c :chrs) {\n ringList.add(new Character(c));\n }\n }", "int k = 0 ;", "int k = 0 ;", "k", "0", "k < 2", "k", "2", "k++", "k++", "k", "{\n for(char c :chrs) {\n ringList.add(new Character(c));\n }\n }", "{\n for(char c :chrs) {\n ringList.add(new Character(c));\n }\n }", "for(char c :chrs) {\n ringList.add(new Character(c));\n }", "char c", "chrs", "{\n ringList.add(new Character(c));\n }", "{\n ringList.add(new Character(c));\n }", "ringList.add(new Character(c))", "ringList.add", "ringList", "new Character(c)", "for(int i = 0; i < ring.length(); i++) {\n for(int j = 0; j <str.length(); j++) {\n if(ringList.get(i + j) != str.charAt(j)) {\n count = 0;\n for(int k = 0 ; k < 2; k++) {\n for(char c :chrs) {\n ringList.add(new Character(c));\n }\n } \n break;\n }\n else {\n //Character replace = ringList.get(0);\n count++;\n //ringList.add(replace);\n }\n }\n if(count == str.length()) {\n isCollect = true;\n } \n }", "int i = 0;", "int i = 0;", "i", "0", "i < ring.length()", "i", "ring.length()", "ring.length", "ring", "i++", "i++", "i", "{\n for(int j = 0; j <str.length(); j++) {\n if(ringList.get(i + j) != str.charAt(j)) {\n count = 0;\n for(int k = 0 ; k < 2; k++) {\n for(char c :chrs) {\n ringList.add(new Character(c));\n }\n } \n break;\n }\n else {\n //Character replace = ringList.get(0);\n count++;\n //ringList.add(replace);\n }\n }\n if(count == str.length()) {\n isCollect = true;\n } \n }", "{\n for(int j = 0; j <str.length(); j++) {\n if(ringList.get(i + j) != str.charAt(j)) {\n count = 0;\n for(int k = 0 ; k < 2; k++) {\n for(char c :chrs) {\n ringList.add(new Character(c));\n }\n } \n break;\n }\n else {\n //Character replace = ringList.get(0);\n count++;\n //ringList.add(replace);\n }\n }\n if(count == str.length()) {\n isCollect = true;\n } \n }", "for(int j = 0; j <str.length(); j++) {\n if(ringList.get(i + j) != str.charAt(j)) {\n count = 0;\n for(int k = 0 ; k < 2; k++) {\n for(char c :chrs) {\n ringList.add(new Character(c));\n }\n } \n break;\n }\n else {\n //Character replace = ringList.get(0);\n count++;\n //ringList.add(replace);\n }\n }", "int j = 0;", "int j = 0;", "j", "0", "j <str.length()", "j", "str.length()", "str.length", "str", "j++", "j++", "j", "{\n if(ringList.get(i + j) != str.charAt(j)) {\n count = 0;\n for(int k = 0 ; k < 2; k++) {\n for(char c :chrs) {\n ringList.add(new Character(c));\n }\n } \n break;\n }\n else {\n //Character replace = ringList.get(0);\n count++;\n //ringList.add(replace);\n }\n }", "{\n if(ringList.get(i + j) != str.charAt(j)) {\n count = 0;\n for(int k = 0 ; k < 2; k++) {\n for(char c :chrs) {\n ringList.add(new Character(c));\n }\n } \n break;\n }\n else {\n //Character replace = ringList.get(0);\n count++;\n //ringList.add(replace);\n }\n }", "if(ringList.get(i + j) != str.charAt(j)) {\n count = 0;\n for(int k = 0 ; k < 2; k++) {\n for(char c :chrs) {\n ringList.add(new Character(c));\n }\n } \n break;\n }\n else {\n //Character replace = ringList.get(0);\n count++;\n //ringList.add(replace);\n }", "ringList.get(i + j) != str.charAt(j)", "ringList.get(i + j)", "ringList.get", "ringList", "i + j", "i", "j", "str.charAt(j)", "str.charAt", "str", "j", "{\n count = 0;\n for(int k = 0 ; k < 2; k++) {\n for(char c :chrs) {\n ringList.add(new Character(c));\n }\n } \n break;\n }", "count = 0", "count", "0", "for(int k = 0 ; k < 2; k++) {\n for(char c :chrs) {\n ringList.add(new Character(c));\n }\n }", "int k = 0 ;", "int k = 0 ;", "k", "0", "k < 2", "k", "2", "k++", "k++", "k", "{\n for(char c :chrs) {\n ringList.add(new Character(c));\n }\n }", "{\n for(char c :chrs) {\n ringList.add(new Character(c));\n }\n }", "for(char c :chrs) {\n ringList.add(new Character(c));\n }", "char c", "chrs", "{\n ringList.add(new Character(c));\n }", "{\n ringList.add(new Character(c));\n }", "ringList.add(new Character(c))", "ringList.add", "ringList", "new Character(c)", "break;", "{\n //Character replace = ringList.get(0);\n count++;\n //ringList.add(replace);\n }", "count++", "count", "if(count == str.length()) {\n isCollect = true;\n }", "count == str.length()", "count", "str.length()", "str.length", "str", "{\n isCollect = true;\n }", "isCollect = true", "isCollect", "true", "if(isCollect) {\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }", "isCollect", "{\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) { boolean isCollect = false; int count = 0; Scanner scan = new Scanner(System.in); String ring = scan.nextLine(); String str = scan.nextLine(); char[] chrs = ring.toCharArray(); List<Character> ringList = new ArrayList<>(); for(int k = 0 ; k < 2; k++) { for(char c :chrs) { ringList.add(new Character(c)); } } for(int i = 0; i < ring.length(); i++) { for(int j = 0; j <str.length(); j++) { if(ringList.get(i + j) != str.charAt(j)) { count = 0; for(int k = 0 ; k < 2; k++) { for(char c :chrs) { ringList.add(new Character(c)); } } break; } else { //Character replace = ringList.get(0); count++; //ringList.add(replace); } } if(count == str.length()) { isCollect = true; } } if(isCollect) { System.out.println("Yes"); } else { System.out.println("No"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 14, 4, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 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 ], [ 25, 27 ], [ 27, 28 ], [ 27, 29 ], [ 11, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 30, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 9, 49 ], [ 49, 50 ] ]
[ "import java.io.*;\nimport java.util.*;\n \nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s1 = sc.nextLine();\n String s2 = sc.nextLine();\n String s3 = s1 + s1;\n if (s3.contains(s2)) {\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s1 = sc.nextLine();\n String s2 = sc.nextLine();\n String s3 = s1 + s1;\n if (s3.contains(s2)) {\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 s1 = sc.nextLine();\n String s2 = sc.nextLine();\n String s3 = s1 + s1;\n if (s3.contains(s2)) {\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s1 = sc.nextLine();\n String s2 = sc.nextLine();\n String s3 = s1 + s1;\n if (s3.contains(s2)) {\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 s1 = sc.nextLine();", "s1", "sc.nextLine()", "sc.nextLine", "sc", "String s2 = sc.nextLine();", "s2", "sc.nextLine()", "sc.nextLine", "sc", "String s3 = s1 + s1;", "s3", "s1 + s1", "s1", "s1", "if (s3.contains(s2)) {\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }", "s3.contains(s2)", "s3.contains", "s3", "s2", "{\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.io.*; import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s1 = sc.nextLine(); String s2 = sc.nextLine(); String s3 = s1 + s1; if (s3.contains(s2)) { 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, 20, 4, 18, 13, 13, 41, 13, 4, 18, 13, 14, 2, 4, 18, 13, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 55, 11 ], [ 55, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 31, 36 ], [ 36, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 30, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 12, 52 ], [ 52, 53 ], [ 0, 54 ], [ 54, 55 ], [ 54, 56 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tStringBuilder s = new StringBuilder(br.readLine());\n\t\ts.append(s);\n\t\t\n\t\tString p = br.readLine();\n\t\tif (s.indexOf(p) == -1) {\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}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tStringBuilder s = new StringBuilder(br.readLine());\n\t\ts.append(s);\n\t\t\n\t\tString p = br.readLine();\n\t\tif (s.indexOf(p) == -1) {\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}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tStringBuilder s = new StringBuilder(br.readLine());\n\t\ts.append(s);\n\t\t\n\t\tString p = br.readLine();\n\t\tif (s.indexOf(p) == -1) {\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\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tStringBuilder s = new StringBuilder(br.readLine());\n\t\ts.append(s);\n\t\t\n\t\tString p = br.readLine();\n\t\tif (s.indexOf(p) == -1) {\n\t\t\tSystem.out.println(\"No\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder s = new StringBuilder(br.readLine());", "s", "new StringBuilder(br.readLine())", "s.append(s)", "s.append", "s", "s", "String p = br.readLine();", "p", "br.readLine()", "br.readLine", "br", "if (s.indexOf(p) == -1) {\n\t\t\tSystem.out.println(\"No\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}", "s.indexOf(p) == -1", "s.indexOf(p)", "s.indexOf", "s", "p", "-1", "1", "{\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", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tStringBuilder s = new StringBuilder(br.readLine());\n\t\ts.append(s);\n\t\t\n\t\tString p = br.readLine();\n\t\tif (s.indexOf(p) == -1) {\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}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tStringBuilder s = new StringBuilder(br.readLine());\n\t\ts.append(s);\n\t\t\n\t\tString p = br.readLine();\n\t\tif (s.indexOf(p) == -1) {\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}", "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)); StringBuilder s = new StringBuilder(br.readLine()); s.append(s); String p = br.readLine(); if (s.indexOf(p) == -1) { System.out.println("No"); } else { System.out.println("Yes"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 2, 4, 18, 13, 2, 13, 13, 4, 18, 13, 13, 14, 2, 13, 17, 3, 14, 2, 13, 17, 3, 14, 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 ], [ 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 ], [ 27, 29 ], [ 8, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 30, 40 ], [ 40, 41 ], [ 41, 42 ], [ 30, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 45, 55 ], [ 55, 56 ], [ 56, 57 ], [ 45, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 66, 67 ], [ 66, 68 ], [ 62, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 59, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 44, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 8, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 83, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 6, 97 ], [ 97, 98 ] ]
[ "import java.util.*;\n\nclass Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n String x = s + s;\n boolean b = false;\n for(int ix = 0; ix < s.length(); ix++) {\n for(int ip =0; ip < p.length(); ip++) {\n \tb = (x.charAt(ix+ip) == p.charAt(ip));\n if(b == false)\n break;\n }\n if (b == true)\n break;\n }\n if(b)\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.nextLine();\n String p = sc.nextLine();\n String x = s + s;\n boolean b = false;\n for(int ix = 0; ix < s.length(); ix++) {\n for(int ip =0; ip < p.length(); ip++) {\n \tb = (x.charAt(ix+ip) == p.charAt(ip));\n if(b == false)\n break;\n }\n if (b == true)\n break;\n }\n if(b)\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.nextLine();\n String p = sc.nextLine();\n String x = s + s;\n boolean b = false;\n for(int ix = 0; ix < s.length(); ix++) {\n for(int ip =0; ip < p.length(); ip++) {\n \tb = (x.charAt(ix+ip) == p.charAt(ip));\n if(b == false)\n break;\n }\n if (b == true)\n break;\n }\n if(b)\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.nextLine();\n String p = sc.nextLine();\n String x = s + s;\n boolean b = false;\n for(int ix = 0; ix < s.length(); ix++) {\n for(int ip =0; ip < p.length(); ip++) {\n \tb = (x.charAt(ix+ip) == p.charAt(ip));\n if(b == false)\n break;\n }\n if (b == true)\n break;\n }\n if(b)\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.nextLine();", "s", "sc.nextLine()", "sc.nextLine", "sc", "String p = sc.nextLine();", "p", "sc.nextLine()", "sc.nextLine", "sc", "String x = s + s;", "x", "s + s", "s", "s", "boolean b = false;", "b", "false", "for(int ix = 0; ix < s.length(); ix++) {\n for(int ip =0; ip < p.length(); ip++) {\n \tb = (x.charAt(ix+ip) == p.charAt(ip));\n if(b == false)\n break;\n }\n if (b == true)\n break;\n }", "int ix = 0;", "int ix = 0;", "ix", "0", "ix < s.length()", "ix", "s.length()", "s.length", "s", "ix++", "ix++", "ix", "{\n for(int ip =0; ip < p.length(); ip++) {\n \tb = (x.charAt(ix+ip) == p.charAt(ip));\n if(b == false)\n break;\n }\n if (b == true)\n break;\n }", "{\n for(int ip =0; ip < p.length(); ip++) {\n \tb = (x.charAt(ix+ip) == p.charAt(ip));\n if(b == false)\n break;\n }\n if (b == true)\n break;\n }", "for(int ip =0; ip < p.length(); ip++) {\n \tb = (x.charAt(ix+ip) == p.charAt(ip));\n if(b == false)\n break;\n }", "int ip =0;", "int ip =0;", "ip", "0", "ip < p.length()", "ip", "p.length()", "p.length", "p", "ip++", "ip++", "ip", "{\n \tb = (x.charAt(ix+ip) == p.charAt(ip));\n if(b == false)\n break;\n }", "{\n \tb = (x.charAt(ix+ip) == p.charAt(ip));\n if(b == false)\n break;\n }", "b = (x.charAt(ix+ip) == p.charAt(ip))", "b", "(x.charAt(ix+ip) == p.charAt(ip))", "x.charAt(ix+ip)", "x.charAt", "x", "ix+ip", "ix", "ip", "p.charAt(ip)", "p.charAt", "p", "ip", "if(b == false)\n break;", "b == false", "b", "false", "break;", "if (b == true)\n break;", "b == true", "b", "true", "break;", "if(b)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");", "b", "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.nextLine(); String p = sc.nextLine(); String x = s + s; boolean b = false; for(int ix = 0; ix < s.length(); ix++) { for(int ip =0; ip < p.length(); ip++) { b = (x.charAt(ix+ip) == p.charAt(ip)); if(b == false) break; } if (b == true) break; } if(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, 0, 13, 2, 13, 13, 14, 2, 4, 18, 13, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 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 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 27, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 6, 49 ], [ 49, 50 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\t\ts = s + s;\n\n\t\tif(s.indexOf(p) != -1){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\t\ts = s + s;\n\n\t\tif(s.indexOf(p) != -1){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\t\ts = s + s;\n\n\t\tif(s.indexOf(p) != -1){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "main", "{\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\t\ts = s + s;\n\n\t\tif(s.indexOf(p) != -1){\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.nextLine();", "s", "scan.nextLine()", "scan.nextLine", "scan", "String p = scan.nextLine();", "p", "scan.nextLine()", "scan.nextLine", "scan", "s = s + s", "s", "s + s", "s", "s", "if(s.indexOf(p) != -1){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "s.indexOf(p) != -1", "s.indexOf(p)", "s.indexOf", "s", "p", "-1", "1", "{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String s = scan.nextLine(); String p = scan.nextLine(); s = s + s; if(s.indexOf(p) != -1){ 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, 38, 5, 13, 30, 30, 30, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 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 ], [ 19, 20 ], [ 19, 21 ], [ 18, 22 ], [ 18, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 31, 33 ], [ 23, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 23, 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.util.Arrays;\nimport java.util.Scanner;\nimport java.util.regex.Pattern;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n try {\n String s = scanner.next();\n String s2 = s + s;\n String p = scanner.next();\n if (s2.contains(p)){\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\n }\n /* for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i)==p.charAt(i)){\n\n }\n }*/\n\n } catch (Exception e) {\n\n } finally {\n\n }\n\n }\n\n}\n\n", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.regex.Pattern;", "Pattern", "java.util.regex", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n try {\n String s = scanner.next();\n String s2 = s + s;\n String p = scanner.next();\n if (s2.contains(p)){\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\n }\n /* for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i)==p.charAt(i)){\n\n }\n }*/\n\n } catch (Exception e) {\n\n } finally {\n\n }\n\n }\n\n}", "Main", "public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n try {\n String s = scanner.next();\n String s2 = s + s;\n String p = scanner.next();\n if (s2.contains(p)){\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\n }\n /* for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i)==p.charAt(i)){\n\n }\n }*/\n\n } catch (Exception e) {\n\n } finally {\n\n }\n\n }", "main", "{\n\n Scanner scanner = new Scanner(System.in);\n try {\n String s = scanner.next();\n String s2 = s + s;\n String p = scanner.next();\n if (s2.contains(p)){\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\n }\n /* for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i)==p.charAt(i)){\n\n }\n }*/\n\n } catch (Exception e) {\n\n } finally {\n\n }\n\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "try {\n String s = scanner.next();\n String s2 = s + s;\n String p = scanner.next();\n if (s2.contains(p)){\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\n }\n /* for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i)==p.charAt(i)){\n\n }\n }*/\n\n } catch (Exception e) {\n\n } finally {\n\n }", "catch (Exception e) {\n\n }", "Exception e", "{\n\n }", "{\n\n }", "{\n String s = scanner.next();\n String s2 = s + s;\n String p = scanner.next();\n if (s2.contains(p)){\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\n }\n /* for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i)==p.charAt(i)){\n\n }\n }*/\n\n }", "String s = scanner.next();", "s", "scanner.next()", "scanner.next", "scanner", "String s2 = s + s;", "s2", "s + s", "s", "s", "String p = scanner.next();", "p", "scanner.next()", "scanner.next", "scanner", "if (s2.contains(p)){\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\n }", "s2.contains(p)", "s2.contains", "s2", "p", "{\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 scanner = new Scanner(System.in);\n try {\n String s = scanner.next();\n String s2 = s + s;\n String p = scanner.next();\n if (s2.contains(p)){\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\n }\n /* for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i)==p.charAt(i)){\n\n }\n }*/\n\n } catch (Exception e) {\n\n } finally {\n\n }\n\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n try {\n String s = scanner.next();\n String s2 = s + s;\n String p = scanner.next();\n if (s2.contains(p)){\n System.out.println(\"Yes\");\n }else {\n System.out.println(\"No\");\n }\n /* for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i)==p.charAt(i)){\n\n }\n }*/\n\n } catch (Exception e) {\n\n } finally {\n\n }\n\n }\n\n}", "Main" ]
import java.util.Arrays; import java.util.Scanner; import java.util.regex.Pattern; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); try { String s = scanner.next(); String s2 = s + s; String p = scanner.next(); if (s2.contains(p)){ System.out.println("Yes"); }else { System.out.println("No"); } /* for (int i = 0; i < s.length(); i++) { if (s.charAt(i)==p.charAt(i)){ } }*/ } catch (Exception e) { } finally { } } }
[ 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, 13, 41, 13, 17, 14, 2, 4, 18, 13, 13, 40, 17, 30, 0, 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 ], [ 55, 5 ], [ 55, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 8, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 31, 36 ], [ 36, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 30, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 8, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 6, 52 ], [ 52, 53 ], [ 0, 54 ], [ 54, 55 ], [ 54, 56 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n \n String s = scanner.next();\n String p = scanner.next();\n \n String tmp = s + s;\n \n String result = \"No\";\n if ( tmp.indexOf(p) == -1) {\n result = \"No\";\n } else {\n result = \"Yes\";\n }\n \n System.out.println(result);\n \n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n \n String s = scanner.next();\n String p = scanner.next();\n \n String tmp = s + s;\n \n String result = \"No\";\n if ( tmp.indexOf(p) == -1) {\n result = \"No\";\n } else {\n result = \"Yes\";\n }\n \n System.out.println(result);\n \n }\n}", "Main", "public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n \n String s = scanner.next();\n String p = scanner.next();\n \n String tmp = s + s;\n \n String result = \"No\";\n if ( tmp.indexOf(p) == -1) {\n result = \"No\";\n } else {\n result = \"Yes\";\n }\n \n System.out.println(result);\n \n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n \n String s = scanner.next();\n String p = scanner.next();\n \n String tmp = s + s;\n \n String result = \"No\";\n if ( tmp.indexOf(p) == -1) {\n result = \"No\";\n } else {\n result = \"Yes\";\n }\n \n System.out.println(result);\n \n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String s = scanner.next();", "s", "scanner.next()", "scanner.next", "scanner", "String p = scanner.next();", "p", "scanner.next()", "scanner.next", "scanner", "String tmp = s + s;", "tmp", "s + s", "s", "s", "String result = \"No\";", "result", "\"No\"", "if ( tmp.indexOf(p) == -1) {\n result = \"No\";\n } else {\n result = \"Yes\";\n }", "tmp.indexOf(p) == -1", "tmp.indexOf(p)", "tmp.indexOf", "tmp", "p", "-1", "1", "{\n result = \"No\";\n }", "result = \"No\"", "result", "\"No\"", "{\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 scanner = new Scanner(System.in);\n \n String s = scanner.next();\n String p = scanner.next();\n \n String tmp = s + s;\n \n String result = \"No\";\n if ( tmp.indexOf(p) == -1) {\n result = \"No\";\n } else {\n result = \"Yes\";\n }\n \n System.out.println(result);\n \n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n \n String s = scanner.next();\n String p = scanner.next();\n \n String tmp = s + s;\n \n String result = \"No\";\n if ( tmp.indexOf(p) == -1) {\n result = \"No\";\n } else {\n result = \"Yes\";\n }\n \n System.out.println(result);\n \n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); String s = scanner.next(); String p = scanner.next(); String tmp = s + s; String result = "No"; if ( tmp.indexOf(p) == -1) { result = "No"; } else { result = "Yes"; } System.out.println(result); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 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 ], [ 63, 14 ], [ 63, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 21, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 33, 35 ], [ 25, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 25, 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 ], [ 15, 60 ], [ 60, 61 ], [ 0, 62 ], [ 62, 63 ], [ 62, 64 ] ]
[ "import java.util.ArrayDeque;\nimport java.util.HashMap;\nimport java.util.Queue;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n while (scanner.hasNext()) {\n String inp = scanner.nextLine();\n String str = inp+inp;\n String key = scanner.nextLine();\n\n if(str.contains(key)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n }\n}\n", "import java.util.ArrayDeque;", "ArrayDeque", "java.util", "import java.util.HashMap;", "HashMap", "java.util", "import java.util.Queue;", "Queue", "java.util", "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 while (scanner.hasNext()) {\n String inp = scanner.nextLine();\n String str = inp+inp;\n String key = scanner.nextLine();\n\n if(str.contains(key)) {\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 scanner = new Scanner(System.in);\n while (scanner.hasNext()) {\n String inp = scanner.nextLine();\n String str = inp+inp;\n String key = scanner.nextLine();\n\n if(str.contains(key)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n while (scanner.hasNext()) {\n String inp = scanner.nextLine();\n String str = inp+inp;\n String key = scanner.nextLine();\n\n if(str.contains(key)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "while (scanner.hasNext()) {\n String inp = scanner.nextLine();\n String str = inp+inp;\n String key = scanner.nextLine();\n\n if(str.contains(key)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }", "scanner.hasNext()", "scanner.hasNext", "scanner", "{\n String inp = scanner.nextLine();\n String str = inp+inp;\n String key = scanner.nextLine();\n\n if(str.contains(key)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }", "String inp = scanner.nextLine();", "inp", "scanner.nextLine()", "scanner.nextLine", "scanner", "String str = inp+inp;", "str", "inp+inp", "inp", "inp", "String key = scanner.nextLine();", "key", "scanner.nextLine()", "scanner.nextLine", "scanner", "if(str.contains(key)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }", "str.contains(key)", "str.contains", "str", "key", "{\n System.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n System.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n while (scanner.hasNext()) {\n String inp = scanner.nextLine();\n String str = inp+inp;\n String key = scanner.nextLine();\n\n if(str.contains(key)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n while (scanner.hasNext()) {\n String inp = scanner.nextLine();\n String str = inp+inp;\n String key = scanner.nextLine();\n\n if(str.contains(key)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n }\n}", "Main" ]
import java.util.ArrayDeque; import java.util.HashMap; import java.util.Queue; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (scanner.hasNext()) { String inp = scanner.nextLine(); String str = inp+inp; String key = scanner.nextLine(); if(str.contains(key)) { System.out.println("Yes"); } else { System.out.println("No"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 2, 18, 13, 13, 17, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 13, 17, 13, 17, 18, 13, 13, 4, 18, 13, 13, 17, 13, 18, 13, 13, 18, 13, 13, 41, 13, 2, 2, 18, 13, 13, 18, 13, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 2, 13, 13, 18, 13, 13, 30, 40, 13, 14, 2, 13, 18, 13, 13, 30, 0, 13, 17, 0, 13, 17, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 169, 11 ], [ 169, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 19, 24 ], [ 15, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 25, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 25, 39 ], [ 39, 40 ], [ 39, 41 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 25, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 25, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 25, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 57, 61 ], [ 57, 62 ], [ 57, 63 ], [ 57, 64 ], [ 64, 65 ], [ 64, 66 ], [ 25, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 67, 71 ], [ 67, 72 ], [ 67, 73 ], [ 73, 74 ], [ 73, 75 ], [ 67, 76 ], [ 76, 77 ], [ 76, 78 ], [ 25, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 81, 89 ], [ 25, 90 ], [ 90, 91 ], [ 90, 92 ], [ 25, 93 ], [ 93, 94 ], [ 93, 95 ], [ 25, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 101, 102 ], [ 101, 103 ], [ 96, 104 ], [ 104, 105 ], [ 105, 106 ], [ 96, 107 ], [ 108, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 109, 119 ], [ 119, 120 ], [ 120, 121 ], [ 109, 122 ], [ 123, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 128, 130 ], [ 125, 131 ], [ 131, 132 ], [ 131, 133 ], [ 124, 134 ], [ 134, 135 ], [ 135, 136 ], [ 134, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 140, 142 ], [ 137, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 108, 147 ], [ 147, 148 ], [ 147, 149 ], [ 25, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 153, 158 ], [ 150, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 160, 165 ], [ 12, 166 ], [ 166, 167 ], [ 0, 168 ], [ 168, 169 ], [ 168, 170 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n/**\n * Lesson8D 図のようなリング状の文字列 s の任意の位置から、 時計回りに連続した文字をいくつか選んで、 文字列 p が作れるかを判定するプログラム\n * \n * @author Internship\n * \n */\npublic class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t * \n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// 1行読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\n\t\t\tString strLine = insBR.readLine();\n\n\t\t\t// char型に分解 文字列s\n\t\t\tchar[] chaAryLineS = strLine.toCharArray();\n\n\t\t\tchar[] chaAryLineSAfter = new char[chaAryLineS.length * 2];\n\n\t\t\tstrLine = insBR.readLine();\n\n\t\t\t// char型に分解 文字列p\n\t\t\tchar[] chaAryLineP = strLine.toCharArray();\n\n\t\t\tSystem.arraycopy(chaAryLineS, 0, chaAryLineSAfter, 0,\n\t\t\t\t\tchaAryLineS.length);\n\t\t\tSystem.arraycopy(chaAryLineS, 0, chaAryLineSAfter,\n\t\t\t\t\tchaAryLineS.length, chaAryLineS.length);\n\n\t\t\t// 終了条件\n\t\t\tint intlength = chaAryLineSAfter.length - chaAryLineP.length + 1;\n\n\t\t\tint intCount = 0;\n\n\t\t\tboolean booYes = false;\n\n\t\t\tfor (int i = 0; i < intlength; i++) {\n\n\t\t\t\tfor (int j = 0; j < chaAryLineP.length; j++) {\n\t\t\t\t\tif (chaAryLineSAfter[i + j] == chaAryLineP[j]) {\n\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\tif (intCount == chaAryLineP.length) {\n\t\t\t\t\t\t\tbooYes = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tintCount = 0;\n\t\t\t}\n\n\t\t\tif (booYes) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t * \n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// 1行読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\n\t\t\tString strLine = insBR.readLine();\n\n\t\t\t// char型に分解 文字列s\n\t\t\tchar[] chaAryLineS = strLine.toCharArray();\n\n\t\t\tchar[] chaAryLineSAfter = new char[chaAryLineS.length * 2];\n\n\t\t\tstrLine = insBR.readLine();\n\n\t\t\t// char型に分解 文字列p\n\t\t\tchar[] chaAryLineP = strLine.toCharArray();\n\n\t\t\tSystem.arraycopy(chaAryLineS, 0, chaAryLineSAfter, 0,\n\t\t\t\t\tchaAryLineS.length);\n\t\t\tSystem.arraycopy(chaAryLineS, 0, chaAryLineSAfter,\n\t\t\t\t\tchaAryLineS.length, chaAryLineS.length);\n\n\t\t\t// 終了条件\n\t\t\tint intlength = chaAryLineSAfter.length - chaAryLineP.length + 1;\n\n\t\t\tint intCount = 0;\n\n\t\t\tboolean booYes = false;\n\n\t\t\tfor (int i = 0; i < intlength; i++) {\n\n\t\t\t\tfor (int j = 0; j < chaAryLineP.length; j++) {\n\t\t\t\t\tif (chaAryLineSAfter[i + j] == chaAryLineP[j]) {\n\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\tif (intCount == chaAryLineP.length) {\n\t\t\t\t\t\t\tbooYes = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tintCount = 0;\n\t\t\t}\n\n\t\t\tif (booYes) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}\n}", "Main", "/**\n\t * プログラムのエントリポイント\n\t * \n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// 1行読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\n\t\t\tString strLine = insBR.readLine();\n\n\t\t\t// char型に分解 文字列s\n\t\t\tchar[] chaAryLineS = strLine.toCharArray();\n\n\t\t\tchar[] chaAryLineSAfter = new char[chaAryLineS.length * 2];\n\n\t\t\tstrLine = insBR.readLine();\n\n\t\t\t// char型に分解 文字列p\n\t\t\tchar[] chaAryLineP = strLine.toCharArray();\n\n\t\t\tSystem.arraycopy(chaAryLineS, 0, chaAryLineSAfter, 0,\n\t\t\t\t\tchaAryLineS.length);\n\t\t\tSystem.arraycopy(chaAryLineS, 0, chaAryLineSAfter,\n\t\t\t\t\tchaAryLineS.length, chaAryLineS.length);\n\n\t\t\t// 終了条件\n\t\t\tint intlength = chaAryLineSAfter.length - chaAryLineP.length + 1;\n\n\t\t\tint intCount = 0;\n\n\t\t\tboolean booYes = false;\n\n\t\t\tfor (int i = 0; i < intlength; i++) {\n\n\t\t\t\tfor (int j = 0; j < chaAryLineP.length; j++) {\n\t\t\t\t\tif (chaAryLineSAfter[i + j] == chaAryLineP[j]) {\n\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\tif (intCount == chaAryLineP.length) {\n\t\t\t\t\t\t\tbooYes = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tintCount = 0;\n\t\t\t}\n\n\t\t\tif (booYes) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}", "main", "{\n\n\t\t// 1行読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\n\t\t\tString strLine = insBR.readLine();\n\n\t\t\t// char型に分解 文字列s\n\t\t\tchar[] chaAryLineS = strLine.toCharArray();\n\n\t\t\tchar[] chaAryLineSAfter = new char[chaAryLineS.length * 2];\n\n\t\t\tstrLine = insBR.readLine();\n\n\t\t\t// char型に分解 文字列p\n\t\t\tchar[] chaAryLineP = strLine.toCharArray();\n\n\t\t\tSystem.arraycopy(chaAryLineS, 0, chaAryLineSAfter, 0,\n\t\t\t\t\tchaAryLineS.length);\n\t\t\tSystem.arraycopy(chaAryLineS, 0, chaAryLineSAfter,\n\t\t\t\t\tchaAryLineS.length, chaAryLineS.length);\n\n\t\t\t// 終了条件\n\t\t\tint intlength = chaAryLineSAfter.length - chaAryLineP.length + 1;\n\n\t\t\tint intCount = 0;\n\n\t\t\tboolean booYes = false;\n\n\t\t\tfor (int i = 0; i < intlength; i++) {\n\n\t\t\t\tfor (int j = 0; j < chaAryLineP.length; j++) {\n\t\t\t\t\tif (chaAryLineSAfter[i + j] == chaAryLineP[j]) {\n\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\tif (intCount == chaAryLineP.length) {\n\t\t\t\t\t\t\tbooYes = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tintCount = 0;\n\t\t\t}\n\n\t\t\tif (booYes) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}", "try {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\n\t\t\tString strLine = insBR.readLine();\n\n\t\t\t// char型に分解 文字列s\n\t\t\tchar[] chaAryLineS = strLine.toCharArray();\n\n\t\t\tchar[] chaAryLineSAfter = new char[chaAryLineS.length * 2];\n\n\t\t\tstrLine = insBR.readLine();\n\n\t\t\t// char型に分解 文字列p\n\t\t\tchar[] chaAryLineP = strLine.toCharArray();\n\n\t\t\tSystem.arraycopy(chaAryLineS, 0, chaAryLineSAfter, 0,\n\t\t\t\t\tchaAryLineS.length);\n\t\t\tSystem.arraycopy(chaAryLineS, 0, chaAryLineSAfter,\n\t\t\t\t\tchaAryLineS.length, chaAryLineS.length);\n\n\t\t\t// 終了条件\n\t\t\tint intlength = chaAryLineSAfter.length - chaAryLineP.length + 1;\n\n\t\t\tint intCount = 0;\n\n\t\t\tboolean booYes = false;\n\n\t\t\tfor (int i = 0; i < intlength; i++) {\n\n\t\t\t\tfor (int j = 0; j < chaAryLineP.length; j++) {\n\t\t\t\t\tif (chaAryLineSAfter[i + j] == chaAryLineP[j]) {\n\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\tif (intCount == chaAryLineP.length) {\n\t\t\t\t\t\t\tbooYes = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tintCount = 0;\n\t\t\t}\n\n\t\t\tif (booYes) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}", "catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}", "IOException e", "{\n\t\t\tSystem.out.println(e);\n\t\t}", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "{\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\n\t\t\tString strLine = insBR.readLine();\n\n\t\t\t// char型に分解 文字列s\n\t\t\tchar[] chaAryLineS = strLine.toCharArray();\n\n\t\t\tchar[] chaAryLineSAfter = new char[chaAryLineS.length * 2];\n\n\t\t\tstrLine = insBR.readLine();\n\n\t\t\t// char型に分解 文字列p\n\t\t\tchar[] chaAryLineP = strLine.toCharArray();\n\n\t\t\tSystem.arraycopy(chaAryLineS, 0, chaAryLineSAfter, 0,\n\t\t\t\t\tchaAryLineS.length);\n\t\t\tSystem.arraycopy(chaAryLineS, 0, chaAryLineSAfter,\n\t\t\t\t\tchaAryLineS.length, chaAryLineS.length);\n\n\t\t\t// 終了条件\n\t\t\tint intlength = chaAryLineSAfter.length - chaAryLineP.length + 1;\n\n\t\t\tint intCount = 0;\n\n\t\t\tboolean booYes = false;\n\n\t\t\tfor (int i = 0; i < intlength; i++) {\n\n\t\t\t\tfor (int j = 0; j < chaAryLineP.length; j++) {\n\t\t\t\t\tif (chaAryLineSAfter[i + j] == chaAryLineP[j]) {\n\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\tif (intCount == chaAryLineP.length) {\n\t\t\t\t\t\t\tbooYes = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tintCount = 0;\n\t\t\t}\n\n\t\t\tif (booYes) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\n\t\t}", "BufferedReader insBR = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));", "insBR", "new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in))", "String strLine = insBR.readLine();", "strLine", "insBR.readLine()", "insBR.readLine", "insBR", "char[] chaAryLineS = strLine.toCharArray();", "chaAryLineS", "strLine.toCharArray()", "strLine.toCharArray", "strLine", "char[] chaAryLineSAfter = new char[chaAryLineS.length * 2];", "chaAryLineSAfter", "new char[chaAryLineS.length * 2]", "chaAryLineS.length * 2", "chaAryLineS.length", "chaAryLineS", "chaAryLineS.length", "2", "strLine = insBR.readLine()", "strLine", "insBR.readLine()", "insBR.readLine", "insBR", "char[] chaAryLineP = strLine.toCharArray();", "chaAryLineP", "strLine.toCharArray()", "strLine.toCharArray", "strLine", "System.arraycopy(chaAryLineS, 0, chaAryLineSAfter, 0,\n\t\t\t\t\tchaAryLineS.length)", "System.arraycopy", "System", "chaAryLineS", "0", "chaAryLineSAfter", "0", "chaAryLineS.length", "chaAryLineS", "chaAryLineS.length", "System.arraycopy(chaAryLineS, 0, chaAryLineSAfter,\n\t\t\t\t\tchaAryLineS.length, chaAryLineS.length)", "System.arraycopy", "System", "chaAryLineS", "0", "chaAryLineSAfter", "chaAryLineS.length", "chaAryLineS", "chaAryLineS.length", "chaAryLineS.length", "chaAryLineS", "chaAryLineS.length", "int intlength = chaAryLineSAfter.length - chaAryLineP.length + 1;", "intlength", "chaAryLineSAfter.length - chaAryLineP.length + 1", "chaAryLineSAfter.length - chaAryLineP.length", "chaAryLineSAfter.length", "chaAryLineSAfter", "chaAryLineSAfter.length", "chaAryLineP.length", "chaAryLineP", "chaAryLineP.length", "1", "int intCount = 0;", "intCount", "0", "boolean booYes = false;", "booYes", "false", "for (int i = 0; i < intlength; i++) {\n\n\t\t\t\tfor (int j = 0; j < chaAryLineP.length; j++) {\n\t\t\t\t\tif (chaAryLineSAfter[i + j] == chaAryLineP[j]) {\n\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\tif (intCount == chaAryLineP.length) {\n\t\t\t\t\t\t\tbooYes = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tintCount = 0;\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < intlength", "i", "intlength", "i++", "i++", "i", "{\n\n\t\t\t\tfor (int j = 0; j < chaAryLineP.length; j++) {\n\t\t\t\t\tif (chaAryLineSAfter[i + j] == chaAryLineP[j]) {\n\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\tif (intCount == chaAryLineP.length) {\n\t\t\t\t\t\t\tbooYes = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tintCount = 0;\n\t\t\t}", "{\n\n\t\t\t\tfor (int j = 0; j < chaAryLineP.length; j++) {\n\t\t\t\t\tif (chaAryLineSAfter[i + j] == chaAryLineP[j]) {\n\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\tif (intCount == chaAryLineP.length) {\n\t\t\t\t\t\t\tbooYes = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tintCount = 0;\n\t\t\t}", "for (int j = 0; j < chaAryLineP.length; j++) {\n\t\t\t\t\tif (chaAryLineSAfter[i + j] == chaAryLineP[j]) {\n\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\tif (intCount == chaAryLineP.length) {\n\t\t\t\t\t\t\tbooYes = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < chaAryLineP.length", "j", "chaAryLineP.length", "chaAryLineP", "chaAryLineP.length", "j++", "j++", "j", "{\n\t\t\t\t\tif (chaAryLineSAfter[i + j] == chaAryLineP[j]) {\n\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\tif (intCount == chaAryLineP.length) {\n\t\t\t\t\t\t\tbooYes = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tif (chaAryLineSAfter[i + j] == chaAryLineP[j]) {\n\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\tif (intCount == chaAryLineP.length) {\n\t\t\t\t\t\t\tbooYes = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "if (chaAryLineSAfter[i + j] == chaAryLineP[j]) {\n\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\tif (intCount == chaAryLineP.length) {\n\t\t\t\t\t\t\tbooYes = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "chaAryLineSAfter[i + j] == chaAryLineP[j]", "chaAryLineSAfter[i + j]", "chaAryLineSAfter", "i + j", "i", "j", "chaAryLineP[j]", "chaAryLineP", "j", "{\n\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\tif (intCount == chaAryLineP.length) {\n\t\t\t\t\t\t\tbooYes = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "intCount++", "intCount", "if (intCount == chaAryLineP.length) {\n\t\t\t\t\t\t\tbooYes = true;\n\t\t\t\t\t\t}", "intCount == chaAryLineP.length", "intCount", "chaAryLineP.length", "chaAryLineP", "chaAryLineP.length", "{\n\t\t\t\t\t\t\tbooYes = true;\n\t\t\t\t\t\t}", "booYes = true", "booYes", "true", "intCount = 0", "intCount", "0", "if (booYes) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}", "booYes", "{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n\t\t\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\t/**\n\t * プログラムのエントリポイント\n\t * \n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// 1行読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\n\t\t\tString strLine = insBR.readLine();\n\n\t\t\t// char型に分解 文字列s\n\t\t\tchar[] chaAryLineS = strLine.toCharArray();\n\n\t\t\tchar[] chaAryLineSAfter = new char[chaAryLineS.length * 2];\n\n\t\t\tstrLine = insBR.readLine();\n\n\t\t\t// char型に分解 文字列p\n\t\t\tchar[] chaAryLineP = strLine.toCharArray();\n\n\t\t\tSystem.arraycopy(chaAryLineS, 0, chaAryLineSAfter, 0,\n\t\t\t\t\tchaAryLineS.length);\n\t\t\tSystem.arraycopy(chaAryLineS, 0, chaAryLineSAfter,\n\t\t\t\t\tchaAryLineS.length, chaAryLineS.length);\n\n\t\t\t// 終了条件\n\t\t\tint intlength = chaAryLineSAfter.length - chaAryLineP.length + 1;\n\n\t\t\tint intCount = 0;\n\n\t\t\tboolean booYes = false;\n\n\t\t\tfor (int i = 0; i < intlength; i++) {\n\n\t\t\t\tfor (int j = 0; j < chaAryLineP.length; j++) {\n\t\t\t\t\tif (chaAryLineSAfter[i + j] == chaAryLineP[j]) {\n\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\tif (intCount == chaAryLineP.length) {\n\t\t\t\t\t\t\tbooYes = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tintCount = 0;\n\t\t\t}\n\n\t\t\tif (booYes) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}\n}", "public class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t * \n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// 1行読み込む\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\n\t\t\tString strLine = insBR.readLine();\n\n\t\t\t// char型に分解 文字列s\n\t\t\tchar[] chaAryLineS = strLine.toCharArray();\n\n\t\t\tchar[] chaAryLineSAfter = new char[chaAryLineS.length * 2];\n\n\t\t\tstrLine = insBR.readLine();\n\n\t\t\t// char型に分解 文字列p\n\t\t\tchar[] chaAryLineP = strLine.toCharArray();\n\n\t\t\tSystem.arraycopy(chaAryLineS, 0, chaAryLineSAfter, 0,\n\t\t\t\t\tchaAryLineS.length);\n\t\t\tSystem.arraycopy(chaAryLineS, 0, chaAryLineSAfter,\n\t\t\t\t\tchaAryLineS.length, chaAryLineS.length);\n\n\t\t\t// 終了条件\n\t\t\tint intlength = chaAryLineSAfter.length - chaAryLineP.length + 1;\n\n\t\t\tint intCount = 0;\n\n\t\t\tboolean booYes = false;\n\n\t\t\tfor (int i = 0; i < intlength; i++) {\n\n\t\t\t\tfor (int j = 0; j < chaAryLineP.length; j++) {\n\t\t\t\t\tif (chaAryLineSAfter[i + j] == chaAryLineP[j]) {\n\t\t\t\t\t\tintCount++;\n\n\t\t\t\t\t\tif (intCount == chaAryLineP.length) {\n\t\t\t\t\t\t\tbooYes = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tintCount = 0;\n\t\t\t}\n\n\t\t\tif (booYes) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /** * Lesson8D 図のようなリング状の文字列 s の任意の位置から、 時計回りに連続した文字をいくつか選んで、 文字列 p が作れるかを判定するプログラム * * @author Internship * */ public class Main{ /** * プログラムのエントリポイント * * @param args */ public static void main(String[] args) { // 1行読み込む try { BufferedReader insBR = new BufferedReader(new InputStreamReader( System.in)); String strLine = insBR.readLine(); // char型に分解 文字列s char[] chaAryLineS = strLine.toCharArray(); char[] chaAryLineSAfter = new char[chaAryLineS.length * 2]; strLine = insBR.readLine(); // char型に分解 文字列p char[] chaAryLineP = strLine.toCharArray(); System.arraycopy(chaAryLineS, 0, chaAryLineSAfter, 0, chaAryLineS.length); System.arraycopy(chaAryLineS, 0, chaAryLineSAfter, chaAryLineS.length, chaAryLineS.length); // 終了条件 int intlength = chaAryLineSAfter.length - chaAryLineP.length + 1; int intCount = 0; boolean booYes = false; for (int i = 0; i < intlength; i++) { for (int j = 0; j < chaAryLineP.length; j++) { if (chaAryLineSAfter[i + j] == chaAryLineP[j]) { intCount++; if (intCount == chaAryLineP.length) { booYes = true; } } } intCount = 0; } if (booYes) { System.out.println("Yes"); } else { System.out.println("No"); } } catch (IOException e) { System.out.println(e); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 41, 13, 4, 18, 13, 14, 4, 18, 13, 2, 2, 17, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 63, 14 ], [ 63, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 17, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 31, 33 ], [ 17, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 17, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 44, 44 ], [ 44, 45 ], [ 44, 46 ], [ 44, 47 ], [ 39, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 39, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 15, 60 ], [ 60, 61 ], [ 0, 62 ], [ 62, 63 ], [ 62, 64 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.*;\nimport java.util.regex.*;\npublic class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n boolean isFlag=false;\n String str = br.readLine();\n String strstr = str + str;\n String expect = br.readLine();\n if(strstr.matches(\".*\" + expect + \".*\")) \n System.out.println(\"Yes\");\n else \n System.out.println(\"No\");\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.*;", "util.*", "java", "import java.util.regex.*;", "regex.*", "java.util", "public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n boolean isFlag=false;\n String str = br.readLine();\n String strstr = str + str;\n String expect = br.readLine();\n if(strstr.matches(\".*\" + expect + \".*\")) \n System.out.println(\"Yes\");\n else \n System.out.println(\"No\");\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n boolean isFlag=false;\n String str = br.readLine();\n String strstr = str + str;\n String expect = br.readLine();\n if(strstr.matches(\".*\" + expect + \".*\")) \n System.out.println(\"Yes\");\n else \n System.out.println(\"No\");\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n boolean isFlag=false;\n String str = br.readLine();\n String strstr = str + str;\n String expect = br.readLine();\n if(strstr.matches(\".*\" + expect + \".*\")) \n System.out.println(\"Yes\");\n else \n System.out.println(\"No\");\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "boolean isFlag=false;", "isFlag", "false", "String str = br.readLine();", "str", "br.readLine()", "br.readLine", "br", "String strstr = str + str;", "strstr", "str + str", "str", "str", "String expect = br.readLine();", "expect", "br.readLine()", "br.readLine", "br", "if(strstr.matches(\".*\" + expect + \".*\")) \n System.out.println(\"Yes\");\n else \n System.out.println(\"No\");", "strstr.matches(\".*\" + expect + \".*\")", "strstr.matches", "strstr", "\".*\" + expect + \".*\"", "\".*\" + expect + \".*\"", "\".*\"", "expect", "\".*\"", "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 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n boolean isFlag=false;\n String str = br.readLine();\n String strstr = str + str;\n String expect = br.readLine();\n if(strstr.matches(\".*\" + expect + \".*\")) \n System.out.println(\"Yes\");\n else \n System.out.println(\"No\");\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n boolean isFlag=false;\n String str = br.readLine();\n String strstr = str + str;\n String expect = br.readLine();\n if(strstr.matches(\".*\" + expect + \".*\")) \n System.out.println(\"Yes\");\n else \n System.out.println(\"No\");\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; import java.util.regex.*; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); boolean isFlag=false; String str = br.readLine(); String strstr = str + str; String expect = br.readLine(); if(strstr.matches(".*" + expect + ".*")) System.out.println("Yes"); else System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 4, 18, 13, 4, 18, 13, 13, 2, 13, 4, 18, 13, 30, 0, 13, 17, 3, 40, 13, 14, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 33, 43 ], [ 43, 44 ], [ 44, 45 ], [ 33, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 52, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 48, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 47, 66 ], [ 66, 67 ], [ 8, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 68, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 6, 84 ], [ 84, 85 ] ]
[ "import java.util.*;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\t\n\t\tint top=0;\n\t\tboolean flag = false;\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s1 = sc.nextLine();\n\t\tString s = s1+s1;\n\t\tString p = sc.nextLine();\t\t\n\t\tfor(int i=0;i<s1.length();i++){\n\t\t\tif(p.equals(s.substring(top,top+p.length()))){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttop++;\n\t\t}\n\t\tif(flag){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "class Main{\n\tpublic static void main(String[] args){\n\t\t\n\t\tint top=0;\n\t\tboolean flag = false;\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s1 = sc.nextLine();\n\t\tString s = s1+s1;\n\t\tString p = sc.nextLine();\t\t\n\t\tfor(int i=0;i<s1.length();i++){\n\t\t\tif(p.equals(s.substring(top,top+p.length()))){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttop++;\n\t\t}\n\t\tif(flag){\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\n\t\tint top=0;\n\t\tboolean flag = false;\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s1 = sc.nextLine();\n\t\tString s = s1+s1;\n\t\tString p = sc.nextLine();\t\t\n\t\tfor(int i=0;i<s1.length();i++){\n\t\t\tif(p.equals(s.substring(top,top+p.length()))){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttop++;\n\t\t}\n\t\tif(flag){\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\n\t\tint top=0;\n\t\tboolean flag = false;\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s1 = sc.nextLine();\n\t\tString s = s1+s1;\n\t\tString p = sc.nextLine();\t\t\n\t\tfor(int i=0;i<s1.length();i++){\n\t\t\tif(p.equals(s.substring(top,top+p.length()))){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttop++;\n\t\t}\n\t\tif(flag){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "int top=0;", "top", "0", "boolean flag = false;", "flag", "false", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s1 = sc.nextLine();", "s1", "sc.nextLine()", "sc.nextLine", "sc", "String s = s1+s1;", "s", "s1+s1", "s1", "s1", "String p = sc.nextLine();", "p", "sc.nextLine()", "sc.nextLine", "sc", "for(int i=0;i<s1.length();i++){\n\t\t\tif(p.equals(s.substring(top,top+p.length()))){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttop++;\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(p.equals(s.substring(top,top+p.length()))){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttop++;\n\t\t}", "{\n\t\t\tif(p.equals(s.substring(top,top+p.length()))){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttop++;\n\t\t}", "if(p.equals(s.substring(top,top+p.length()))){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}", "p.equals(s.substring(top,top+p.length()))", "p.equals", "p", "s.substring(top,top+p.length())", "s.substring", "s", "top", "top+p.length()", "top", "p.length()", "p.length", "p", "{\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}", "flag = true", "flag", "true", "break;", "top++", "top", "if(flag){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "flag", "{\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" ]
import java.util.*; class Main{ public static void main(String[] args){ int top=0; boolean flag = false; Scanner sc = new Scanner(System.in); String s1 = sc.nextLine(); String s = s1+s1; String p = sc.nextLine(); for(int i=0;i<s1.length();i++){ if(p.equals(s.substring(top,top+p.length()))){ flag = true; break; } top++; } if(flag){ System.out.println("Yes"); }else{ System.out.println("No"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 2, 13, 13, 14, 2, 4, 18, 13, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 63, 5 ], [ 63, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 16, 21 ], [ 12, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 22, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 35, 37 ], [ 22, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 44, 45 ], [ 38, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 38, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 6, 60 ], [ 60, 61 ], [ 0, 62 ], [ 62, 63 ], [ 62, 64 ] ]
[ "import java.io.*;\n\npublic class Main {\n public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n String s = reader.readLine();\n String p = reader.readLine();\n s = s + s;\n if (s.indexOf(p) == -1) {\n System.out.println(\"No\");\n }\n else {\n System.out.println(\"Yes\");\n }\n }\n catch (IOException e) {\n System.out.println(e);\n }\n }\n}", "import java.io.*;", "io.*", "java", "public class Main {\n public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n String s = reader.readLine();\n String p = reader.readLine();\n s = s + s;\n if (s.indexOf(p) == -1) {\n System.out.println(\"No\");\n }\n else {\n System.out.println(\"Yes\");\n }\n }\n catch (IOException e) {\n System.out.println(e);\n }\n }\n}", "Main", "public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n String s = reader.readLine();\n String p = reader.readLine();\n s = s + s;\n if (s.indexOf(p) == -1) {\n System.out.println(\"No\");\n }\n else {\n System.out.println(\"Yes\");\n }\n }\n catch (IOException e) {\n System.out.println(e);\n }\n }", "main", "{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n String s = reader.readLine();\n String p = reader.readLine();\n s = s + s;\n if (s.indexOf(p) == -1) {\n System.out.println(\"No\");\n }\n else {\n System.out.println(\"Yes\");\n }\n }\n catch (IOException e) {\n System.out.println(e);\n }\n }", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "try {\n String s = reader.readLine();\n String p = reader.readLine();\n s = s + s;\n if (s.indexOf(p) == -1) {\n System.out.println(\"No\");\n }\n else {\n System.out.println(\"Yes\");\n }\n }\n catch (IOException e) {\n System.out.println(e);\n }", "catch (IOException e) {\n System.out.println(e);\n }", "IOException e", "{\n System.out.println(e);\n }", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "{\n String s = reader.readLine();\n String p = reader.readLine();\n s = s + s;\n if (s.indexOf(p) == -1) {\n System.out.println(\"No\");\n }\n else {\n System.out.println(\"Yes\");\n }\n }", "String s = reader.readLine();", "s", "reader.readLine()", "reader.readLine", "reader", "String p = reader.readLine();", "p", "reader.readLine()", "reader.readLine", "reader", "s = s + s", "s", "s + s", "s", "s", "if (s.indexOf(p) == -1) {\n System.out.println(\"No\");\n }\n else {\n System.out.println(\"Yes\");\n }", "s.indexOf(p) == -1", "s.indexOf(p)", "s.indexOf", "s", "p", "-1", "1", "{\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 BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n String s = reader.readLine();\n String p = reader.readLine();\n s = s + s;\n if (s.indexOf(p) == -1) {\n System.out.println(\"No\");\n }\n else {\n System.out.println(\"Yes\");\n }\n }\n catch (IOException e) {\n System.out.println(e);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n String s = reader.readLine();\n String p = reader.readLine();\n s = s + s;\n if (s.indexOf(p) == -1) {\n System.out.println(\"No\");\n }\n else {\n System.out.println(\"Yes\");\n }\n }\n catch (IOException e) {\n System.out.println(e);\n }\n }\n}", "Main" ]
import java.io.*; public class Main { public static void main(String[] args) { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); try { String s = reader.readLine(); String p = reader.readLine(); s = s + s; if (s.indexOf(p) == -1) { System.out.println("No"); } else { System.out.println("Yes"); } } catch (IOException e) { System.out.println(e); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 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, 17, 18, 13, 13, 30, 41, 13, 41, 13, 13, 41, 13, 17, 11, 1, 0, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 40, 13, 30, 30, 14, 2, 13, 18, 13, 13, 30, 0, 13, 17, 14, 4, 18, 18, 13, 13, 18, 13, 13, 30, 40, 13, 14, 2, 13, 18, 13, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 20, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 28, 33 ], [ 14, 34 ], [ 34, 35 ], [ 34, 36 ], [ 14, 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 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 52, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 64, 66 ], [ 61, 67 ], [ 67, 68 ], [ 67, 69 ], [ 61, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 70, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 83, 84 ], [ 70, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 87, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 86, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 103, 104 ], [ 103, 105 ], [ 97, 106 ], [ 106, 107 ], [ 107, 108 ], [ 61, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 112, 114 ], [ 109, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 14, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 119, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 131, 136 ], [ 12, 137 ], [ 137, 138 ] ]
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main{\n public static void main(String args[]) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String[] original = br.readLine().split(\"\");\n String[] serch = br.readLine().split(\"\");\n\n int flag = 0;\n for(int i = 0; i < original.length; i++){\n\t if(serch[0].equals(original[i])){\n\t int j ;//serch?????????????????????\n\t int k = i;//original?????????????????????\n\t int count = 0;\n\t for(j = 0;j<serch.length;j++,k++){\n\t if(k == original.length){\n\n\t \t k = 0;\n\n\t }//if\n\n\n\t \t if( serch[j].equals( original[k]) ){\n\n\t \t count++;;\n\n\t }//if\n\t }//for\n\n\t if(count == serch.length){\n\t flag = 1;\n\t }\n\t }//if\n }//for\n\n if(flag == 1){\n\n\t System.out.println(\"Yes\");\n\n }else{\n\t System.out.println(\"No\");\n }\n\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "class Main{\n public static void main(String args[]) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String[] original = br.readLine().split(\"\");\n String[] serch = br.readLine().split(\"\");\n\n int flag = 0;\n for(int i = 0; i < original.length; i++){\n\t if(serch[0].equals(original[i])){\n\t int j ;//serch?????????????????????\n\t int k = i;//original?????????????????????\n\t int count = 0;\n\t for(j = 0;j<serch.length;j++,k++){\n\t if(k == original.length){\n\n\t \t k = 0;\n\n\t }//if\n\n\n\t \t if( serch[j].equals( original[k]) ){\n\n\t \t count++;;\n\n\t }//if\n\t }//for\n\n\t if(count == serch.length){\n\t flag = 1;\n\t }\n\t }//if\n }//for\n\n if(flag == 1){\n\n\t System.out.println(\"Yes\");\n\n }else{\n\t System.out.println(\"No\");\n }\n\n }\n}", "Main", "public static void main(String args[]) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String[] original = br.readLine().split(\"\");\n String[] serch = br.readLine().split(\"\");\n\n int flag = 0;\n for(int i = 0; i < original.length; i++){\n\t if(serch[0].equals(original[i])){\n\t int j ;//serch?????????????????????\n\t int k = i;//original?????????????????????\n\t int count = 0;\n\t for(j = 0;j<serch.length;j++,k++){\n\t if(k == original.length){\n\n\t \t k = 0;\n\n\t }//if\n\n\n\t \t if( serch[j].equals( original[k]) ){\n\n\t \t count++;;\n\n\t }//if\n\t }//for\n\n\t if(count == serch.length){\n\t flag = 1;\n\t }\n\t }//if\n }//for\n\n if(flag == 1){\n\n\t System.out.println(\"Yes\");\n\n }else{\n\t System.out.println(\"No\");\n }\n\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String[] original = br.readLine().split(\"\");\n String[] serch = br.readLine().split(\"\");\n\n int flag = 0;\n for(int i = 0; i < original.length; i++){\n\t if(serch[0].equals(original[i])){\n\t int j ;//serch?????????????????????\n\t int k = i;//original?????????????????????\n\t int count = 0;\n\t for(j = 0;j<serch.length;j++,k++){\n\t if(k == original.length){\n\n\t \t k = 0;\n\n\t }//if\n\n\n\t \t if( serch[j].equals( original[k]) ){\n\n\t \t count++;;\n\n\t }//if\n\t }//for\n\n\t if(count == serch.length){\n\t flag = 1;\n\t }\n\t }//if\n }//for\n\n if(flag == 1){\n\n\t System.out.println(\"Yes\");\n\n }else{\n\t System.out.println(\"No\");\n }\n\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String[] original = br.readLine().split(\"\");", "original", "br.readLine().split(\"\")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\"\"", "String[] serch = br.readLine().split(\"\");", "serch", "br.readLine().split(\"\")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\"\"", "int flag = 0;", "flag", "0", "for(int i = 0; i < original.length; i++){\n\t if(serch[0].equals(original[i])){\n\t int j ;//serch?????????????????????\n\t int k = i;//original?????????????????????\n\t int count = 0;\n\t for(j = 0;j<serch.length;j++,k++){\n\t if(k == original.length){\n\n\t \t k = 0;\n\n\t }//if\n\n\n\t \t if( serch[j].equals( original[k]) ){\n\n\t \t count++;;\n\n\t }//if\n\t }//for\n\n\t if(count == serch.length){\n\t flag = 1;\n\t }\n\t }//if\n }//for", "int i = 0;", "int i = 0;", "i", "0", "i < original.length", "i", "original.length", "original", "original.length", "i++", "i++", "i", "{\n\t if(serch[0].equals(original[i])){\n\t int j ;//serch?????????????????????\n\t int k = i;//original?????????????????????\n\t int count = 0;\n\t for(j = 0;j<serch.length;j++,k++){\n\t if(k == original.length){\n\n\t \t k = 0;\n\n\t }//if\n\n\n\t \t if( serch[j].equals( original[k]) ){\n\n\t \t count++;;\n\n\t }//if\n\t }//for\n\n\t if(count == serch.length){\n\t flag = 1;\n\t }\n\t }//if\n }//for", "{\n\t if(serch[0].equals(original[i])){\n\t int j ;//serch?????????????????????\n\t int k = i;//original?????????????????????\n\t int count = 0;\n\t for(j = 0;j<serch.length;j++,k++){\n\t if(k == original.length){\n\n\t \t k = 0;\n\n\t }//if\n\n\n\t \t if( serch[j].equals( original[k]) ){\n\n\t \t count++;;\n\n\t }//if\n\t }//for\n\n\t if(count == serch.length){\n\t flag = 1;\n\t }\n\t }//if\n }", "if(serch[0].equals(original[i])){\n\t int j ;//serch?????????????????????\n\t int k = i;//original?????????????????????\n\t int count = 0;\n\t for(j = 0;j<serch.length;j++,k++){\n\t if(k == original.length){\n\n\t \t k = 0;\n\n\t }//if\n\n\n\t \t if( serch[j].equals( original[k]) ){\n\n\t \t count++;;\n\n\t }//if\n\t }//for\n\n\t if(count == serch.length){\n\t flag = 1;\n\t }\n\t }//if", "serch[0].equals(original[i])", "serch[0].equals", "serch[0]", "serch", "0", "original[i]", "original", "i", "{\n\t int j ;//serch?????????????????????\n\t int k = i;//original?????????????????????\n\t int count = 0;\n\t for(j = 0;j<serch.length;j++,k++){\n\t if(k == original.length){\n\n\t \t k = 0;\n\n\t }//if\n\n\n\t \t if( serch[j].equals( original[k]) ){\n\n\t \t count++;;\n\n\t }//if\n\t }//for\n\n\t if(count == serch.length){\n\t flag = 1;\n\t }\n\t }", "int j ;", "j", "int k = i;", "k", "i", "int count = 0;", "count", "0", "for(j = 0;j<serch.length;j++,k++){\n\t if(k == original.length){\n\n\t \t k = 0;\n\n\t }//if\n\n\n\t \t if( serch[j].equals( original[k]) ){\n\n\t \t count++;;\n\n\t }//if\n\t }//for", "j = 0;", "j = 0", "j", "0", "j<serch.length", "j", "serch.length", "serch", "serch.length", "j++,k++", "j++", "j", "k++", "k", "{\n\t if(k == original.length){\n\n\t \t k = 0;\n\n\t }//if\n\n\n\t \t if( serch[j].equals( original[k]) ){\n\n\t \t count++;;\n\n\t }//if\n\t }//for", "{\n\t if(k == original.length){\n\n\t \t k = 0;\n\n\t }//if\n\n\n\t \t if( serch[j].equals( original[k]) ){\n\n\t \t count++;;\n\n\t }//if\n\t }", "if(k == original.length){\n\n\t \t k = 0;\n\n\t }//if", "k == original.length", "k", "original.length", "original", "original.length", "{\n\n\t \t k = 0;\n\n\t }", "k = 0", "k", "0", "if( serch[j].equals( original[k]) ){\n\n\t \t count++;;\n\n\t }//if", "serch[j].equals( original[k])", "serch[j].equals", "serch[j]", "serch", "j", "original[k]", "original", "k", "{\n\n\t \t count++;;\n\n\t }", "count++", "count", "if(count == serch.length){\n\t flag = 1;\n\t }", "count == serch.length", "count", "serch.length", "serch", "serch.length", "{\n\t flag = 1;\n\t }", "flag = 1", "flag", "1", "if(flag == 1){\n\n\t System.out.println(\"Yes\");\n\n }else{\n\t System.out.println(\"No\");\n }", "flag == 1", "flag", "1", "{\n\n\t System.out.println(\"Yes\");\n\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n\t System.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String args[]", "args" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main{ public static void main(String args[]) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] original = br.readLine().split(""); String[] serch = br.readLine().split(""); int flag = 0; for(int i = 0; i < original.length; i++){ if(serch[0].equals(original[i])){ int j ;//serch????????????????????? int k = i;//original????????????????????? int count = 0; for(j = 0;j<serch.length;j++,k++){ if(k == original.length){ k = 0; }//if if( serch[j].equals( original[k]) ){ count++;; }//if }//for if(count == serch.length){ flag = 1; } }//if }//for if(flag == 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, 0, 13, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 2, 13, 13, 17, 30, 14, 4, 18, 4, 18, 13, 13, 2, 13, 13, 13, 30, 0, 13, 17, 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 ], [ 97, 5 ], [ 97, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 8, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 8, 35 ], [ 35, 36 ], [ 36, 37 ], [ 8, 38 ], [ 38, 39 ], [ 38, 40 ], [ 8, 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 ], [ 56, 58 ], [ 58, 59 ], [ 58, 60 ], [ 55, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 66, 70 ], [ 70, 71 ], [ 70, 72 ], [ 64, 73 ], [ 63, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 8, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 78, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 6, 94 ], [ 94, 95 ], [ 0, 96 ], [ 96, 97 ], [ 96, 98 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String sa = sc.nextLine();\n sa +=sa;\n int i = sa.length();\n String sb = sc.nextLine();\n int k = sb.length();\n sc.close();\n boolean isExist = false;\n for(int l=0; l < i;l++){\n \tif(i - (l+k) >=0) {\n \t\tif(sa.substring(l,l+k).equals(sb)){\n \t\t\tisExist = true;\n \t\t}\n \t}\n \t}\n if(isExist){\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 String sa = sc.nextLine();\n sa +=sa;\n int i = sa.length();\n String sb = sc.nextLine();\n int k = sb.length();\n sc.close();\n boolean isExist = false;\n for(int l=0; l < i;l++){\n \tif(i - (l+k) >=0) {\n \t\tif(sa.substring(l,l+k).equals(sb)){\n \t\t\tisExist = true;\n \t\t}\n \t}\n \t}\n if(isExist){\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 sa = sc.nextLine();\n sa +=sa;\n int i = sa.length();\n String sb = sc.nextLine();\n int k = sb.length();\n sc.close();\n boolean isExist = false;\n for(int l=0; l < i;l++){\n \tif(i - (l+k) >=0) {\n \t\tif(sa.substring(l,l+k).equals(sb)){\n \t\t\tisExist = true;\n \t\t}\n \t}\n \t}\n if(isExist){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String sa = sc.nextLine();\n sa +=sa;\n int i = sa.length();\n String sb = sc.nextLine();\n int k = sb.length();\n sc.close();\n boolean isExist = false;\n for(int l=0; l < i;l++){\n \tif(i - (l+k) >=0) {\n \t\tif(sa.substring(l,l+k).equals(sb)){\n \t\t\tisExist = true;\n \t\t}\n \t}\n \t}\n if(isExist){\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 sa = sc.nextLine();", "sa", "sc.nextLine()", "sc.nextLine", "sc", "sa +=sa", "sa", "sa", "int i = sa.length();", "i", "sa.length()", "sa.length", "sa", "String sb = sc.nextLine();", "sb", "sc.nextLine()", "sc.nextLine", "sc", "int k = sb.length();", "k", "sb.length()", "sb.length", "sb", "sc.close()", "sc.close", "sc", "boolean isExist = false;", "isExist", "false", "for(int l=0; l < i;l++){\n \tif(i - (l+k) >=0) {\n \t\tif(sa.substring(l,l+k).equals(sb)){\n \t\t\tisExist = true;\n \t\t}\n \t}\n \t}", "int l=0;", "int l=0;", "l", "0", "l < i", "l", "i", "l++", "l++", "l", "{\n \tif(i - (l+k) >=0) {\n \t\tif(sa.substring(l,l+k).equals(sb)){\n \t\t\tisExist = true;\n \t\t}\n \t}\n \t}", "{\n \tif(i - (l+k) >=0) {\n \t\tif(sa.substring(l,l+k).equals(sb)){\n \t\t\tisExist = true;\n \t\t}\n \t}\n \t}", "if(i - (l+k) >=0) {\n \t\tif(sa.substring(l,l+k).equals(sb)){\n \t\t\tisExist = true;\n \t\t}\n \t}", "i - (l+k) >=0", "i - (l+k)", "i", "(l+k)", "l", "k", "0", "{\n \t\tif(sa.substring(l,l+k).equals(sb)){\n \t\t\tisExist = true;\n \t\t}\n \t}", "if(sa.substring(l,l+k).equals(sb)){\n \t\t\tisExist = true;\n \t\t}", "sa.substring(l,l+k).equals(sb)", "sa.substring(l,l+k).equals", "sa.substring(l,l+k)", "sa.substring", "sa", "l", "l+k", "l", "k", "sb", "{\n \t\t\tisExist = true;\n \t\t}", "isExist = true", "isExist", "true", "if(isExist){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }", "isExist", "{\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 sa = sc.nextLine();\n sa +=sa;\n int i = sa.length();\n String sb = sc.nextLine();\n int k = sb.length();\n sc.close();\n boolean isExist = false;\n for(int l=0; l < i;l++){\n \tif(i - (l+k) >=0) {\n \t\tif(sa.substring(l,l+k).equals(sb)){\n \t\t\tisExist = true;\n \t\t}\n \t}\n \t}\n if(isExist){\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 sa = sc.nextLine();\n sa +=sa;\n int i = sa.length();\n String sb = sc.nextLine();\n int k = sb.length();\n sc.close();\n boolean isExist = false;\n for(int l=0; l < i;l++){\n \tif(i - (l+k) >=0) {\n \t\tif(sa.substring(l,l+k).equals(sb)){\n \t\t\tisExist = true;\n \t\t}\n \t}\n \t}\n if(isExist){\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 sa = sc.nextLine(); sa +=sa; int i = sa.length(); String sb = sc.nextLine(); int k = sb.length(); sc.close(); boolean isExist = false; for(int l=0; l < i;l++){ if(i - (l+k) >=0) { if(sa.substring(l,l+k).equals(sb)){ isExist = true; } } } if(isExist){ System.out.println("Yes"); } else { System.out.println("No"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 40, 17, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 14, 2, 4, 18, 13, 17, 30, 0, 13, 13, 14, 2, 4, 18, 13, 17, 30, 0, 13, 13, 3, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 2, 17, 2, 4, 18, 13, 4, 18, 13, 1, 40, 13, 30, 30, 4, 18, 13, 13, 14, 2, 4, 18, 13, 13, 40, 17, 30, 0, 13, 17, 30, 0, 13, 17, 14, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 133, 8 ], [ 133, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 16, 19 ], [ 19, 20 ], [ 12, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 25, 26 ], [ 25, 27 ], [ 21, 28 ], [ 28, 29 ], [ 28, 30 ], [ 21, 31 ], [ 31, 32 ], [ 31, 33 ], [ 21, 34 ], [ 34, 35 ], [ 34, 36 ], [ 21, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 47, 51 ], [ 46, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 45, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 57, 61 ], [ 56, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 21, 67 ], [ 67, 68 ], [ 67, 69 ], [ 21, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 79, 83 ], [ 83, 84 ], [ 84, 85 ], [ 70, 86 ], [ 86, 87 ], [ 87, 88 ], [ 70, 89 ], [ 90, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 21, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 96, 101 ], [ 101, 102 ], [ 95, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 95, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 21, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 111, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 21, 127 ], [ 127, 128 ], [ 128, 129 ], [ 9, 130 ], [ 130, 131 ], [ 0, 132 ], [ 132, 133 ], [ 132, 134 ] ]
[ "import java.io.InputStreamReader;\nimport java.io.LineNumberReader;\n\n/**\n * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_8_D\n * \n * @author eitatsuro\n * \n */\npublic class Main {\n \n public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n\n String inputStr = null;\n String s = null;\n String p = null;\n boolean answer = false;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n\n if (lineNumReader.getLineNumber() == 1) {\n s = inputStr;\n }\n \n if (lineNumReader.getLineNumber() == 2) {\n p = inputStr;\n break;\n }\n }\n\n // p???s??????????????????????????????.\n // ?????????p????????????s?????°??±???????????????????????§??????????????§???\n // ?????????p??¨s??????????????????????????????\n // ?????????????????????s??????????????????\n StringBuilder longS = new StringBuilder();\n for ( int i=0; i < 2+ p.length()/s.length(); i++){\n longS.append(s);\n }\n \n\n if (longS.indexOf(p) <= -1) {\n answer = false;\n } else {\n answer = true;\n }\n\n \n // ??¢???????????????\n if (answer) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n}", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.LineNumberReader;", "LineNumberReader", "java.io", "public class Main {\n \n public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n\n String inputStr = null;\n String s = null;\n String p = null;\n boolean answer = false;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n\n if (lineNumReader.getLineNumber() == 1) {\n s = inputStr;\n }\n \n if (lineNumReader.getLineNumber() == 2) {\n p = inputStr;\n break;\n }\n }\n\n // p???s??????????????????????????????.\n // ?????????p????????????s?????°??±???????????????????????§??????????????§???\n // ?????????p??¨s??????????????????????????????\n // ?????????????????????s??????????????????\n StringBuilder longS = new StringBuilder();\n for ( int i=0; i < 2+ p.length()/s.length(); i++){\n longS.append(s);\n }\n \n\n if (longS.indexOf(p) <= -1) {\n answer = false;\n } else {\n answer = true;\n }\n\n \n // ??¢???????????????\n if (answer) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n}", "Main", "public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n\n String inputStr = null;\n String s = null;\n String p = null;\n boolean answer = false;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n\n if (lineNumReader.getLineNumber() == 1) {\n s = inputStr;\n }\n \n if (lineNumReader.getLineNumber() == 2) {\n p = inputStr;\n break;\n }\n }\n\n // p???s??????????????????????????????.\n // ?????????p????????????s?????°??±???????????????????????§??????????????§???\n // ?????????p??¨s??????????????????????????????\n // ?????????????????????s??????????????????\n StringBuilder longS = new StringBuilder();\n for ( int i=0; i < 2+ p.length()/s.length(); i++){\n longS.append(s);\n }\n \n\n if (longS.indexOf(p) <= -1) {\n answer = false;\n } else {\n answer = true;\n }\n\n \n // ??¢???????????????\n if (answer) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }", "main", "{\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n\n String inputStr = null;\n String s = null;\n String p = null;\n boolean answer = false;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n\n if (lineNumReader.getLineNumber() == 1) {\n s = inputStr;\n }\n \n if (lineNumReader.getLineNumber() == 2) {\n p = inputStr;\n break;\n }\n }\n\n // p???s??????????????????????????????.\n // ?????????p????????????s?????°??±???????????????????????§??????????????§???\n // ?????????p??¨s??????????????????????????????\n // ?????????????????????s??????????????????\n StringBuilder longS = new StringBuilder();\n for ( int i=0; i < 2+ p.length()/s.length(); i++){\n longS.append(s);\n }\n \n\n if (longS.indexOf(p) <= -1) {\n answer = false;\n } else {\n answer = true;\n }\n\n \n // ??¢???????????????\n if (answer) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }", "try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n\n String inputStr = null;\n String s = null;\n String p = null;\n boolean answer = false;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n\n if (lineNumReader.getLineNumber() == 1) {\n s = inputStr;\n }\n \n if (lineNumReader.getLineNumber() == 2) {\n p = inputStr;\n break;\n }\n }\n\n // p???s??????????????????????????????.\n // ?????????p????????????s?????°??±???????????????????????§??????????????§???\n // ?????????p??¨s??????????????????????????????\n // ?????????????????????s??????????????????\n StringBuilder longS = new StringBuilder();\n for ( int i=0; i < 2+ p.length()/s.length(); i++){\n longS.append(s);\n }\n \n\n if (longS.indexOf(p) <= -1) {\n answer = false;\n } else {\n answer = true;\n }\n\n \n // ??¢???????????????\n if (answer) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }", "catch (Exception e) {\n System.exit(-1);\n }", "Exception e", "{\n System.exit(-1);\n }", "System.exit(-1)", "System.exit", "System", "-1", "1", "{\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n\n String inputStr = null;\n String s = null;\n String p = null;\n boolean answer = false;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n\n if (lineNumReader.getLineNumber() == 1) {\n s = inputStr;\n }\n \n if (lineNumReader.getLineNumber() == 2) {\n p = inputStr;\n break;\n }\n }\n\n // p???s??????????????????????????????.\n // ?????????p????????????s?????°??±???????????????????????§??????????????§???\n // ?????????p??¨s??????????????????????????????\n // ?????????????????????s??????????????????\n StringBuilder longS = new StringBuilder();\n for ( int i=0; i < 2+ p.length()/s.length(); i++){\n longS.append(s);\n }\n \n\n if (longS.indexOf(p) <= -1) {\n answer = false;\n } else {\n answer = true;\n }\n\n \n // ??¢???????????????\n if (answer) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n lineNumReader.close();\n }", "LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));", "lineNumReader", "new LineNumberReader(\n new InputStreamReader(System.in))", "String inputStr = null;", "inputStr", "null", "String s = null;", "s", "null", "String p = null;", "p", "null", "boolean answer = false;", "answer", "false", "while ((inputStr = lineNumReader.readLine()) != null) {\n\n if (lineNumReader.getLineNumber() == 1) {\n s = inputStr;\n }\n \n if (lineNumReader.getLineNumber() == 2) {\n p = inputStr;\n break;\n }\n }", "(inputStr = lineNumReader.readLine()) != null", "(inputStr = lineNumReader.readLine())", "inputStr", "lineNumReader.readLine()", "lineNumReader.readLine", "lineNumReader", "null", "{\n\n if (lineNumReader.getLineNumber() == 1) {\n s = inputStr;\n }\n \n if (lineNumReader.getLineNumber() == 2) {\n p = inputStr;\n break;\n }\n }", "if (lineNumReader.getLineNumber() == 1) {\n s = inputStr;\n }", "lineNumReader.getLineNumber() == 1", "lineNumReader.getLineNumber()", "lineNumReader.getLineNumber", "lineNumReader", "1", "{\n s = inputStr;\n }", "s = inputStr", "s", "inputStr", "if (lineNumReader.getLineNumber() == 2) {\n p = inputStr;\n break;\n }", "lineNumReader.getLineNumber() == 2", "lineNumReader.getLineNumber()", "lineNumReader.getLineNumber", "lineNumReader", "2", "{\n p = inputStr;\n break;\n }", "p = inputStr", "p", "inputStr", "break;", "StringBuilder longS = new StringBuilder();", "longS", "new StringBuilder()", "for ( int i=0; i < 2+ p.length()/s.length(); i++){\n longS.append(s);\n }", "int i=0;", "int i=0;", "i", "0", "i < 2+ p.length()/s.length()", "i", "2+ p.length()/s.length()", "2", "p.length()/s.length()", "p.length()", "p.length", "p", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n longS.append(s);\n }", "{\n longS.append(s);\n }", "longS.append(s)", "longS.append", "longS", "s", "if (longS.indexOf(p) <= -1) {\n answer = false;\n } else {\n answer = true;\n }", "longS.indexOf(p) <= -1", "longS.indexOf(p)", "longS.indexOf", "longS", "p", "-1", "1", "{\n answer = false;\n }", "answer = false", "answer", "false", "{\n answer = true;\n }", "answer = true", "answer", "true", "if (answer) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }", "answer", "{\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\"", "lineNumReader.close()", "lineNumReader.close", "lineNumReader", "String[] args", "args", "public class Main {\n \n public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n\n String inputStr = null;\n String s = null;\n String p = null;\n boolean answer = false;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n\n if (lineNumReader.getLineNumber() == 1) {\n s = inputStr;\n }\n \n if (lineNumReader.getLineNumber() == 2) {\n p = inputStr;\n break;\n }\n }\n\n // p???s??????????????????????????????.\n // ?????????p????????????s?????°??±???????????????????????§??????????????§???\n // ?????????p??¨s??????????????????????????????\n // ?????????????????????s??????????????????\n StringBuilder longS = new StringBuilder();\n for ( int i=0; i < 2+ p.length()/s.length(); i++){\n longS.append(s);\n }\n \n\n if (longS.indexOf(p) <= -1) {\n answer = false;\n } else {\n answer = true;\n }\n\n \n // ??¢???????????????\n if (answer) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n}", "public class Main {\n \n public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n\n String inputStr = null;\n String s = null;\n String p = null;\n boolean answer = false;\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n\n if (lineNumReader.getLineNumber() == 1) {\n s = inputStr;\n }\n \n if (lineNumReader.getLineNumber() == 2) {\n p = inputStr;\n break;\n }\n }\n\n // p???s??????????????????????????????.\n // ?????????p????????????s?????°??±???????????????????????§??????????????§???\n // ?????????p??¨s??????????????????????????????\n // ?????????????????????s??????????????????\n StringBuilder longS = new StringBuilder();\n for ( int i=0; i < 2+ p.length()/s.length(); i++){\n longS.append(s);\n }\n \n\n if (longS.indexOf(p) <= -1) {\n answer = false;\n } else {\n answer = true;\n }\n\n \n // ??¢???????????????\n if (answer) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n}", "Main" ]
import java.io.InputStreamReader; import java.io.LineNumberReader; /** * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_8_D * * @author eitatsuro * */ public class Main { public static void main(String[] args) { try { LineNumberReader lineNumReader = new LineNumberReader( new InputStreamReader(System.in)); String inputStr = null; String s = null; String p = null; boolean answer = false; while ((inputStr = lineNumReader.readLine()) != null) { if (lineNumReader.getLineNumber() == 1) { s = inputStr; } if (lineNumReader.getLineNumber() == 2) { p = inputStr; break; } } // p???s??????????????????????????????. // ?????????p????????????s?????°??±???????????????????????§??????????????§??? // ?????????p??¨s?????????????????????????????? // ?????????????????????s?????????????????? StringBuilder longS = new StringBuilder(); for ( int i=0; i < 2+ p.length()/s.length(); i++){ longS.append(s); } if (longS.indexOf(p) <= -1) { answer = false; } else { answer = true; } // ??¢??????????????? if (answer) { System.out.println("Yes"); } else { System.out.println("No"); } lineNumReader.close(); } catch (Exception e) { System.exit(-1); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 2, 13, 13, 14, 2, 13, 4, 18, 13, 0, 13, 2, 13, 4, 18, 13, 14, 2, 4, 18, 13, 13, 4, 18, 13, 13, 30, 0, 13, 17, 3, 14, 13, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 137, 11 ], [ 137, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 14, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 24, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 24, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 37, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 14, 48 ], [ 48, 49 ], [ 48, 50 ], [ 14, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 51, 61 ], [ 61, 62 ], [ 62, 63 ], [ 51, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 69, 79 ], [ 79, 80 ], [ 80, 81 ], [ 69, 82 ], [ 83, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 83, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 89, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 83, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 103, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 102, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 65, 117 ], [ 117, 118 ], [ 117, 119 ], [ 14, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 120, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 12, 134 ], [ 134, 135 ], [ 0, 136 ], [ 136, 137 ], [ 136, 138 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString s = \"\";\n\t\tString p = \"\";\n\t\ttry {\n\t\t\ts = in.readLine();\n\t\t\tp = in.readLine();\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tboolean flag = false;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tflag = true;\n\t\t\tfor (int j = 0; j < p.length(); j++) {\n\t\t\t\tint pointer = i + j;\n\t\t\t\tif (pointer >= s.length()) pointer = pointer - s.length();\n\n\t\t\t\tif (s.charAt(pointer) != p.charAt(j)) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag) break;\n\t\t}\n\t\tif (flag) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString s = \"\";\n\t\tString p = \"\";\n\t\ttry {\n\t\t\ts = in.readLine();\n\t\t\tp = in.readLine();\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tboolean flag = false;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tflag = true;\n\t\t\tfor (int j = 0; j < p.length(); j++) {\n\t\t\t\tint pointer = i + j;\n\t\t\t\tif (pointer >= s.length()) pointer = pointer - s.length();\n\n\t\t\t\tif (s.charAt(pointer) != p.charAt(j)) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag) break;\n\t\t}\n\t\tif (flag) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString s = \"\";\n\t\tString p = \"\";\n\t\ttry {\n\t\t\ts = in.readLine();\n\t\t\tp = in.readLine();\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tboolean flag = false;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tflag = true;\n\t\t\tfor (int j = 0; j < p.length(); j++) {\n\t\t\t\tint pointer = i + j;\n\t\t\t\tif (pointer >= s.length()) pointer = pointer - s.length();\n\n\t\t\t\tif (s.charAt(pointer) != p.charAt(j)) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag) break;\n\t\t}\n\t\tif (flag) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t}", "main", "{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString s = \"\";\n\t\tString p = \"\";\n\t\ttry {\n\t\t\ts = in.readLine();\n\t\t\tp = in.readLine();\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tboolean flag = false;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tflag = true;\n\t\t\tfor (int j = 0; j < p.length(); j++) {\n\t\t\t\tint pointer = i + j;\n\t\t\t\tif (pointer >= s.length()) pointer = pointer - s.length();\n\n\t\t\t\tif (s.charAt(pointer) != p.charAt(j)) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag) break;\n\t\t}\n\t\tif (flag) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t}", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "String s = \"\";", "s", "\"\"", "String p = \"\";", "p", "\"\"", "try {\n\t\t\ts = in.readLine();\n\t\t\tp = in.readLine();\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "NumberFormatException e", "{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\ts = in.readLine();\n\t\t\tp = in.readLine();\n\t\t}", "s = in.readLine()", "s", "in.readLine()", "in.readLine", "in", "p = in.readLine()", "p", "in.readLine()", "in.readLine", "in", "boolean flag = false;", "flag", "false", "for (int i = 0; i < s.length(); i++) {\n\t\t\tflag = true;\n\t\t\tfor (int j = 0; j < p.length(); j++) {\n\t\t\t\tint pointer = i + j;\n\t\t\t\tif (pointer >= s.length()) pointer = pointer - s.length();\n\n\t\t\t\tif (s.charAt(pointer) != p.charAt(j)) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag) break;\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\tflag = true;\n\t\t\tfor (int j = 0; j < p.length(); j++) {\n\t\t\t\tint pointer = i + j;\n\t\t\t\tif (pointer >= s.length()) pointer = pointer - s.length();\n\n\t\t\t\tif (s.charAt(pointer) != p.charAt(j)) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag) break;\n\t\t}", "{\n\t\t\tflag = true;\n\t\t\tfor (int j = 0; j < p.length(); j++) {\n\t\t\t\tint pointer = i + j;\n\t\t\t\tif (pointer >= s.length()) pointer = pointer - s.length();\n\n\t\t\t\tif (s.charAt(pointer) != p.charAt(j)) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag) break;\n\t\t}", "flag = true", "flag", "true", "for (int j = 0; j < p.length(); j++) {\n\t\t\t\tint pointer = i + j;\n\t\t\t\tif (pointer >= s.length()) pointer = pointer - s.length();\n\n\t\t\t\tif (s.charAt(pointer) != p.charAt(j)) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < p.length()", "j", "p.length()", "p.length", "p", "j++", "j++", "j", "{\n\t\t\t\tint pointer = i + j;\n\t\t\t\tif (pointer >= s.length()) pointer = pointer - s.length();\n\n\t\t\t\tif (s.charAt(pointer) != p.charAt(j)) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tint pointer = i + j;\n\t\t\t\tif (pointer >= s.length()) pointer = pointer - s.length();\n\n\t\t\t\tif (s.charAt(pointer) != p.charAt(j)) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "int pointer = i + j;", "pointer", "i + j", "i", "j", "if (pointer >= s.length()) pointer = pointer - s.length();", "pointer >= s.length()", "pointer", "s.length()", "s.length", "s", "pointer = pointer - s.length()", "pointer", "pointer - s.length()", "pointer", "s.length()", "s.length", "s", "if (s.charAt(pointer) != p.charAt(j)) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}", "s.charAt(pointer) != p.charAt(j)", "s.charAt(pointer)", "s.charAt", "s", "pointer", "p.charAt(j)", "p.charAt", "p", "j", "{\n\t\t\t\t\tflag = false;\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}", "flag = false", "flag", "false", "break;", "if (flag) break;", "flag", "break;", "if (flag) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");", "flag", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString s = \"\";\n\t\tString p = \"\";\n\t\ttry {\n\t\t\ts = in.readLine();\n\t\t\tp = in.readLine();\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tboolean flag = false;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tflag = true;\n\t\t\tfor (int j = 0; j < p.length(); j++) {\n\t\t\t\tint pointer = i + j;\n\t\t\t\tif (pointer >= s.length()) pointer = pointer - s.length();\n\n\t\t\t\tif (s.charAt(pointer) != p.charAt(j)) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag) break;\n\t\t}\n\t\tif (flag) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString s = \"\";\n\t\tString p = \"\";\n\t\ttry {\n\t\t\ts = in.readLine();\n\t\t\tp = in.readLine();\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tboolean flag = false;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tflag = true;\n\t\t\tfor (int j = 0; j < p.length(); j++) {\n\t\t\t\tint pointer = i + j;\n\t\t\t\tif (pointer >= s.length()) pointer = pointer - s.length();\n\n\t\t\t\tif (s.charAt(pointer) != p.charAt(j)) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag) break;\n\t\t}\n\t\tif (flag) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String s = ""; String p = ""; try { s = in.readLine(); p = in.readLine(); } catch (NumberFormatException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } boolean flag = false; for (int i = 0; i < s.length(); i++) { flag = true; for (int j = 0; j < p.length(); j++) { int pointer = i + j; if (pointer >= s.length()) pointer = pointer - s.length(); if (s.charAt(pointer) != p.charAt(j)) { flag = false; break; } } if (flag) break; } if (flag) System.out.println("Yes"); else System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 0, 13, 2, 13, 13, 41, 13, 4, 18, 13, 14, 2, 4, 18, 13, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 55, 5 ], [ 55, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 27, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 8, 49 ], [ 49, 50 ], [ 50, 51 ], [ 6, 52 ], [ 52, 53 ], [ 0, 54 ], [ 54, 55 ], [ 54, 56 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\ts = s + s;\n\t\tString p = sc.nextLine();\n\n\t\tif (s.indexOf(p) > -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\t}\n\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\ts = s + s;\n\t\tString p = sc.nextLine();\n\n\t\tif (s.indexOf(p) > -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\ts = s + s;\n\t\tString p = sc.nextLine();\n\n\t\tif (s.indexOf(p) > -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\ts = s + s;\n\t\tString p = sc.nextLine();\n\n\t\tif (s.indexOf(p) > -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.nextLine();", "s", "sc.nextLine()", "sc.nextLine", "sc", "s = s + s", "s", "s + s", "s", "s", "String p = sc.nextLine();", "p", "sc.nextLine()", "sc.nextLine", "sc", "if (s.indexOf(p) > -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "s.indexOf(p) > -1", "s.indexOf(p)", "s.indexOf", "s", "p", "-1", "1", "{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\ts = s + s;\n\t\tString p = sc.nextLine();\n\n\t\tif (s.indexOf(p) > -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\ts = s + s;\n\t\tString p = sc.nextLine();\n\n\t\tif (s.indexOf(p) > -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tsc.close();\n\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(); s = s + s; String p = sc.nextLine(); if (s.indexOf(p) > -1) { System.out.println("Yes"); } else { System.out.println("No"); } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 14, 4, 18, 4, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 50, 5 ], [ 50, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 27, 32 ], [ 26, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 26, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 6, 47 ], [ 47, 48 ], [ 0, 49 ], [ 49, 50 ], [ 49, 51 ] ]
[ "import java.util.*;\n\npublic class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder s = new StringBuilder(sc.next());\n\t\tString p = sc.next();\n\t\ts = s.append(s);\n\t\tif(s.toString().contains(p)){\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\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\tStringBuilder s = new StringBuilder(sc.next());\n\t\tString p = sc.next();\n\t\ts = s.append(s);\n\t\tif(s.toString().contains(p)){\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}", "Main", "public static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder s = new StringBuilder(sc.next());\n\t\tString p = sc.next();\n\t\ts = s.append(s);\n\t\tif(s.toString().contains(p)){\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 sc = new Scanner(System.in);\n\t\tStringBuilder s = new StringBuilder(sc.next());\n\t\tString p = sc.next();\n\t\ts = s.append(s);\n\t\tif(s.toString().contains(p)){\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)", "StringBuilder s = new StringBuilder(sc.next());", "s", "new StringBuilder(sc.next())", "String p = sc.next();", "p", "sc.next()", "sc.next", "sc", "s = s.append(s)", "s", "s.append(s)", "s.append", "s", "s", "if(s.toString().contains(p)){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "s.toString().contains(p)", "s.toString().contains", "s.toString()", "s.toString", "s", "p", "{\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\tStringBuilder s = new StringBuilder(sc.next());\n\t\tString p = sc.next();\n\t\ts = s.append(s);\n\t\tif(s.toString().contains(p)){\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}", "public class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder s = new StringBuilder(sc.next());\n\t\tString p = sc.next();\n\t\ts = s.append(s);\n\t\tif(s.toString().contains(p)){\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}", "Main" ]
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); StringBuilder s = new StringBuilder(sc.next()); String p = sc.next(); s = s.append(s); if(s.toString().contains(p)){ 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, 38, 5, 13, 30, 4, 18, 13, 30, 14, 2, 13, 17, 30, 38, 5, 13, 30, 4, 18, 13, 30, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 2, 13, 13, 13, 14, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 83, 11 ], [ 83, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 18, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 31, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 18, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 42, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 42, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 42, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 61, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 61, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 12, 80 ], [ 80, 81 ], [ 0, 82 ], [ 82, 83 ], [ 82, 84 ] ]
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\tString S = br.readLine();\n\n\t\t\tString str = br.readLine();\n\n\t\t\tint res = (S+S).indexOf(str);\n\n\t\t\tif(res == -1){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\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\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\tString S = br.readLine();\n\n\t\t\tString str = br.readLine();\n\n\t\t\tint res = (S+S).indexOf(str);\n\n\t\t\tif(res == -1){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\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\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\tString S = br.readLine();\n\n\t\t\tString str = br.readLine();\n\n\t\t\tint res = (S+S).indexOf(str);\n\n\t\t\tif(res == -1){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\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\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\tString S = br.readLine();\n\n\t\t\tString str = br.readLine();\n\n\t\t\tint res = (S+S).indexOf(str);\n\n\t\t\tif(res == -1){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\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\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "try {\n\n\t\t\tString S = br.readLine();\n\n\t\t\tString str = br.readLine();\n\n\t\t\tint res = (S+S).indexOf(str);\n\n\t\t\tif(res == -1){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\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\n\t\t}", "catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\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\n\t\t}", "if (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "br != null", "br", "null", "{\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\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\tbr.close();\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\tbr.close();\n\t\t\t\t}", "br.close()", "br.close", "br", "{\n\n\t\t\tString S = br.readLine();\n\n\t\t\tString str = br.readLine();\n\n\t\t\tint res = (S+S).indexOf(str);\n\n\t\t\tif(res == -1){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t}", "String S = br.readLine();", "S", "br.readLine()", "br.readLine", "br", "String str = br.readLine();", "str", "br.readLine()", "br.readLine", "br", "int res = (S+S).indexOf(str);", "res", "(S+S).indexOf(str)", "(S+S).indexOf", "(S+S)", "S", "S", "str", "if(res == -1){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}", "res == -1", "res", "-1", "1", "{\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\tString S = br.readLine();\n\n\t\t\tString str = br.readLine();\n\n\t\t\tint res = (S+S).indexOf(str);\n\n\t\t\tif(res == -1){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\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\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\tString S = br.readLine();\n\n\t\t\tString str = br.readLine();\n\n\t\t\tint res = (S+S).indexOf(str);\n\n\t\t\tif(res == -1){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\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\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try { String S = br.readLine(); String str = br.readLine(); int res = (S+S).indexOf(str); if(res == -1){ System.out.println("No"); }else{ System.out.println("Yes"); } } catch (IOException e) { e.printStackTrace(); } finally { if (br != null) { try { br.close(); } catch (IOException e) { e.printStackTrace(); } } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 13, 13, 13, 14, 4, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 54, 8 ], [ 54, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 28, 28 ], [ 28, 29 ], [ 28, 30 ], [ 28, 31 ], [ 11, 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 ], [ 9, 51 ], [ 51, 52 ], [ 0, 53 ], [ 53, 54 ], [ 53, 55 ] ]
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n String p = scanner.nextLine();\n String sss = s + s + s;\n if(sss.contains(p)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\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 scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n String p = scanner.nextLine();\n String sss = s + s + s;\n if(sss.contains(p)){\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 scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n String p = scanner.nextLine();\n String sss = s + s + s;\n if(sss.contains(p)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n String p = scanner.nextLine();\n String sss = s + s + s;\n if(sss.contains(p)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String s = scanner.nextLine();", "s", "scanner.nextLine()", "scanner.nextLine", "scanner", "String p = scanner.nextLine();", "p", "scanner.nextLine()", "scanner.nextLine", "scanner", "String sss = s + s + s;", "sss", "s + s + s", "s + s + s", "s", "s", "s", "if(sss.contains(p)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }", "sss.contains(p)", "sss.contains", "sss", "p", "{\n System.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n System.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n String p = scanner.nextLine();\n String sss = s + s + s;\n if(sss.contains(p)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n String p = scanner.nextLine();\n String sss = s + s + s;\n if(sss.contains(p)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n }\n}", "Main" ]
import java.util.*; import java.io.*; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); String s = scanner.nextLine(); String p = scanner.nextLine(); String sss = s + s + s; if(sss.contains(p)){ 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, 2, 13, 13, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 50, 5 ], [ 50, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 27, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 27, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 8, 44 ], [ 44, 45 ], [ 45, 46 ], [ 6, 47 ], [ 47, 48 ], [ 0, 49 ], [ 49, 50 ], [ 49, 51 ] ]
[ "import java.util.Scanner;\npublic class Main{\npublic static void main(String[] args){\n \n Scanner s=new Scanner(System.in);\n \n String a=s.nextLine();\n String b=a+a;\n String c=s.nextLine();\n if(b.contains(c))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n s.close();\n}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\npublic static void main(String[] args){\n \n Scanner s=new Scanner(System.in);\n \n String a=s.nextLine();\n String b=a+a;\n String c=s.nextLine();\n if(b.contains(c))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n s.close();\n}\n}", "Main", "public static void main(String[] args){\n \n Scanner s=new Scanner(System.in);\n \n String a=s.nextLine();\n String b=a+a;\n String c=s.nextLine();\n if(b.contains(c))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n s.close();\n}", "main", "{\n \n Scanner s=new Scanner(System.in);\n \n String a=s.nextLine();\n String b=a+a;\n String c=s.nextLine();\n if(b.contains(c))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n s.close();\n}", "Scanner s=new Scanner(System.in);", "s", "new Scanner(System.in)", "String a=s.nextLine();", "a", "s.nextLine()", "s.nextLine", "s", "String b=a+a;", "b", "a+a", "a", "a", "String c=s.nextLine();", "c", "s.nextLine()", "s.nextLine", "s", "if(b.contains(c))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");", "b.contains(c)", "b.contains", "b", "c", "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\"", "s.close()", "s.close", "s", "String[] args", "args", "public class Main{\npublic static void main(String[] args){\n \n Scanner s=new Scanner(System.in);\n \n String a=s.nextLine();\n String b=a+a;\n String c=s.nextLine();\n if(b.contains(c))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n s.close();\n}\n}", "public class Main{\npublic static void main(String[] args){\n \n Scanner s=new Scanner(System.in);\n \n String a=s.nextLine();\n String b=a+a;\n String c=s.nextLine();\n if(b.contains(c))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n s.close();\n}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner s=new Scanner(System.in); String a=s.nextLine(); String b=a+a; String c=s.nextLine(); if(b.contains(c)) System.out.println("Yes"); else System.out.println("No"); s.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 13, 4, 18, 13, 17, 2, 4, 18, 13, 17, 41, 13, 4, 18, 13, 14, 2, 4, 18, 13, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 66, 11 ], [ 66, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 27, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 31, 35 ], [ 14, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 14, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 42, 47 ], [ 47, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 41, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 12, 63 ], [ 63, 64 ], [ 0, 65 ], [ 65, 66 ], [ 65, 67 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString input = br.readLine();\n\t\tString s = input + input.substring(0, input.length()-1);\n\t\tString p = br.readLine();\n\t\tif (s.indexOf(p) > -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString input = br.readLine();\n\t\tString s = input + input.substring(0, input.length()-1);\n\t\tString p = br.readLine();\n\t\tif (s.indexOf(p) > -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString input = br.readLine();\n\t\tString s = input + input.substring(0, input.length()-1);\n\t\tString p = br.readLine();\n\t\tif (s.indexOf(p) > -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString input = br.readLine();\n\t\tString s = input + input.substring(0, input.length()-1);\n\t\tString p = br.readLine();\n\t\tif (s.indexOf(p) > -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String input = br.readLine();", "input", "br.readLine()", "br.readLine", "br", "String s = input + input.substring(0, input.length()-1);", "s", "input + input.substring(0, input.length()-1)", "input", "input.substring(0, input.length()-1)", "input.substring", "input", "0", "input.length()-1", "input.length()", "input.length", "input", "1", "String p = br.readLine();", "p", "br.readLine()", "br.readLine", "br", "if (s.indexOf(p) > -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "s.indexOf(p) > -1", "s.indexOf(p)", "s.indexOf", "s", "p", "-1", "1", "{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString input = br.readLine();\n\t\tString s = input + input.substring(0, input.length()-1);\n\t\tString p = br.readLine();\n\t\tif (s.indexOf(p) > -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString input = br.readLine();\n\t\tString s = input + input.substring(0, input.length()-1);\n\t\tString p = br.readLine();\n\t\tif (s.indexOf(p) > -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "Main" ]
import java.io.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 input = br.readLine(); String s = input + input.substring(0, input.length()-1); String p = br.readLine(); if (s.indexOf(p) > -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, 0, 13, 2, 13, 13, 14, 2, 4, 18, 13, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 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 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 27, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 6, 49 ], [ 49, 50 ] ]
[ "import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s=br.readLine();\n String p=br.readLine();\n s=s+s;\n if(s.indexOf(p)!=-1){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s=br.readLine();\n String p=br.readLine();\n s=s+s;\n if(s.indexOf(p)!=-1){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s=br.readLine();\n String p=br.readLine();\n s=s+s;\n if(s.indexOf(p)!=-1){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s=br.readLine();\n String p=br.readLine();\n s=s+s;\n if(s.indexOf(p)!=-1){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String s=br.readLine();", "s", "br.readLine()", "br.readLine", "br", "String p=br.readLine();", "p", "br.readLine()", "br.readLine", "br", "s=s+s", "s", "s+s", "s", "s", "if(s.indexOf(p)!=-1){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }", "s.indexOf(p)!=-1", "s.indexOf(p)", "s.indexOf", "s", "p", "-1", "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" ]
import java.io.*; class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String s=br.readLine(); String p=br.readLine(); s=s+s; if(s.indexOf(p)!=-1){ 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, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 30, 4, 18, 13, 18, 13, 13, 0, 13, 20, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 96, 11 ], [ 96, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 18, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 31, 33 ], [ 25, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 25, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 25, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 43, 55 ], [ 55, 56 ], [ 56, 57 ], [ 43, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 63, 65 ], [ 25, 66 ], [ 66, 67 ], [ 66, 68 ], [ 25, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 25, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 74, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 74, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 12, 93 ], [ 93, 94 ], [ 0, 95 ], [ 95, 96 ], [ 95, 97 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\npublic class Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String s = br.readLine();\n // String s = \"vanceknowledgetoad\";\n StringBuilder sb = new StringBuilder();\n char[] arr = s.toCharArray();\n \n sb.append(s);\n for(int i=0; i<arr.length-1; i++){\n sb.append(arr[i]);\n }\n \n s = new String(sb);\n \n String p = br.readLine(); \n // String p = \"advanced\";\n if(s.contains(p)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n } \n }catch(IOException e){\n e.printStackTrace();\n }\n \n \n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "public class Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String s = br.readLine();\n // String s = \"vanceknowledgetoad\";\n StringBuilder sb = new StringBuilder();\n char[] arr = s.toCharArray();\n \n sb.append(s);\n for(int i=0; i<arr.length-1; i++){\n sb.append(arr[i]);\n }\n \n s = new String(sb);\n \n String p = br.readLine(); \n // String p = \"advanced\";\n if(s.contains(p)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n } \n }catch(IOException e){\n e.printStackTrace();\n }\n \n \n }\n}", "Main", "public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String s = br.readLine();\n // String s = \"vanceknowledgetoad\";\n StringBuilder sb = new StringBuilder();\n char[] arr = s.toCharArray();\n \n sb.append(s);\n for(int i=0; i<arr.length-1; i++){\n sb.append(arr[i]);\n }\n \n s = new String(sb);\n \n String p = br.readLine(); \n // String p = \"advanced\";\n if(s.contains(p)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n } \n }catch(IOException e){\n e.printStackTrace();\n }\n \n \n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String s = br.readLine();\n // String s = \"vanceknowledgetoad\";\n StringBuilder sb = new StringBuilder();\n char[] arr = s.toCharArray();\n \n sb.append(s);\n for(int i=0; i<arr.length-1; i++){\n sb.append(arr[i]);\n }\n \n s = new String(sb);\n \n String p = br.readLine(); \n // String p = \"advanced\";\n if(s.contains(p)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n } \n }catch(IOException e){\n e.printStackTrace();\n }\n \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 s = \"vanceknowledgetoad\";\n StringBuilder sb = new StringBuilder();\n char[] arr = s.toCharArray();\n \n sb.append(s);\n for(int i=0; i<arr.length-1; i++){\n sb.append(arr[i]);\n }\n \n s = new String(sb);\n \n String p = br.readLine(); \n // String p = \"advanced\";\n if(s.contains(p)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n } \n }catch(IOException e){\n e.printStackTrace();\n }", "catch(IOException e){\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n String s = br.readLine();\n // String s = \"vanceknowledgetoad\";\n StringBuilder sb = new StringBuilder();\n char[] arr = s.toCharArray();\n \n sb.append(s);\n for(int i=0; i<arr.length-1; i++){\n sb.append(arr[i]);\n }\n \n s = new String(sb);\n \n String p = br.readLine(); \n // String p = \"advanced\";\n if(s.contains(p)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n } \n }", "String s = br.readLine();", "s", "br.readLine()", "br.readLine", "br", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "char[] arr = s.toCharArray();", "arr", "s.toCharArray()", "s.toCharArray", "s", "sb.append(s)", "sb.append", "sb", "s", "for(int i=0; i<arr.length-1; i++){\n sb.append(arr[i]);\n }", "int i=0;", "int i=0;", "i", "0", "i<arr.length-1", "i", "arr.length-1", "arr.length", "arr", "arr.length", "1", "i++", "i++", "i", "{\n sb.append(arr[i]);\n }", "{\n sb.append(arr[i]);\n }", "sb.append(arr[i])", "sb.append", "sb", "arr[i]", "arr", "i", "s = new String(sb)", "s", "new String(sb)", "String p = br.readLine();", "p", "br.readLine()", "br.readLine", "br", "if(s.contains(p)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }", "s.contains(p)", "s.contains", "s", "p", "{\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 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String s = br.readLine();\n // String s = \"vanceknowledgetoad\";\n StringBuilder sb = new StringBuilder();\n char[] arr = s.toCharArray();\n \n sb.append(s);\n for(int i=0; i<arr.length-1; i++){\n sb.append(arr[i]);\n }\n \n s = new String(sb);\n \n String p = br.readLine(); \n // String p = \"advanced\";\n if(s.contains(p)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n } \n }catch(IOException e){\n e.printStackTrace();\n }\n \n \n }\n}", "public class Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String s = br.readLine();\n // String s = \"vanceknowledgetoad\";\n StringBuilder sb = new StringBuilder();\n char[] arr = s.toCharArray();\n \n sb.append(s);\n for(int i=0; i<arr.length-1; i++){\n sb.append(arr[i]);\n }\n \n s = new String(sb);\n \n String p = br.readLine(); \n // String p = \"advanced\";\n if(s.contains(p)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n } \n }catch(IOException e){\n e.printStackTrace();\n }\n \n \n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; public class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try { String s = br.readLine(); // String s = "vanceknowledgetoad"; StringBuilder sb = new StringBuilder(); char[] arr = s.toCharArray(); sb.append(s); for(int i=0; i<arr.length-1; i++){ sb.append(arr[i]); } s = new String(sb); String p = br.readLine(); // String p = "advanced"; if(s.contains(p)){ System.out.println("Yes"); } else { System.out.println("No"); } }catch(IOException e){ e.printStackTrace(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 2, 13, 13, 14, 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 ], [ 49, 5 ], [ 49, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 27, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 27, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 6, 46 ], [ 46, 47 ], [ 0, 48 ], [ 48, 49 ], [ 48, 50 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString S = sc.nextLine();\n\t\tString P = sc.nextLine();\n\t\tS = S+S;\n\t\tif (S.contains(P)) {\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) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString S = sc.nextLine();\n\t\tString P = sc.nextLine();\n\t\tS = S+S;\n\t\tif (S.contains(P)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString S = sc.nextLine();\n\t\tString P = sc.nextLine();\n\t\tS = S+S;\n\t\tif (S.contains(P)) {\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\t\n\t\tString S = sc.nextLine();\n\t\tString P = sc.nextLine();\n\t\tS = S+S;\n\t\tif (S.contains(P)) {\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 P = sc.nextLine();", "P", "sc.nextLine()", "sc.nextLine", "sc", "S = S+S", "S", "S+S", "S", "S", "if (S.contains(P)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "S.contains(P)", "S.contains", "S", "P", "{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString S = sc.nextLine();\n\t\tString P = sc.nextLine();\n\t\tS = S+S;\n\t\tif (S.contains(P)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString S = sc.nextLine();\n\t\tString P = sc.nextLine();\n\t\tS = S+S;\n\t\tif (S.contains(P)) {\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) throws Exception { Scanner sc = new Scanner(System.in); String S = sc.nextLine(); String P = sc.nextLine(); S = S+S; if (S.contains(P)) { 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, 4, 18, 13, 41, 13, 4, 18, 4, 18, 4, 18, 13, 41, 13, 17, 41, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 17, 14, 2, 18, 13, 17, 18, 13, 13, 0, 13, 17, 11, 1, 41, 13, 13, 41, 13, 17, 2, 2, 13, 2, 13, 18, 13, 13, 2, 13, 18, 13, 13, 1, 40, 13, 40, 13, 30, 30, 14, 2, 13, 18, 13, 13, 0, 13, 17, 14, 2, 18, 13, 13, 18, 13, 13, 3, 14, 2, 13, 2, 18, 13, 13, 17, 0, 13, 17, 4, 18, 18, 13, 13, 8, 13, 17, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 133, 5 ], [ 133, 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 ], [ 18, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 8, 30 ], [ 30, 31 ], [ 30, 32 ], [ 8, 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 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 58, 60 ], [ 53, 61 ], [ 61, 62 ], [ 61, 63 ], [ 49, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 73, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 73, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 64, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 88, 89 ], [ 64, 90 ], [ 91, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 92, 98 ], [ 98, 99 ], [ 98, 100 ], [ 91, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 106, 107 ], [ 106, 108 ], [ 101, 109 ], [ 91, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 110, 118 ], [ 118, 119 ], [ 118, 120 ], [ 8, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 126, 127 ], [ 126, 128 ], [ 126, 129 ], [ 6, 130 ], [ 130, 131 ], [ 0, 132 ], [ 132, 133 ], [ 132, 134 ] ]
[ "import java.io.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tchar[] s = br.readLine().toLowerCase().toCharArray();\n\t\tchar[] p = br.readLine().toLowerCase().toCharArray();\n\t\tboolean isExist = false;\n\t\tboolean isCheck;\n\n\t\tfor (int i = 0; i < s.length; i++) {\n\t\t\tisCheck = false;\n\t\t\t\n\t\t\tif (p[0] == s[i]) isCheck = true;\n\t\t\t\n\t\t\tfor (int j = i, ip = 0; isCheck && j <= s.length && ip < p.length; j++, ip++) {\n\t\t\t\tif (j == s.length)\t\tj = 0;\n\t\t\t\tif (s[j] != p[ip])\t\tbreak;\n\t\t\t\tif (ip == p.length - 1)\tisExist = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(isExist ? \"Yes\" : \"No\"); \n\t}\n}", "import java.io.*;", "io.*", "java", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tchar[] s = br.readLine().toLowerCase().toCharArray();\n\t\tchar[] p = br.readLine().toLowerCase().toCharArray();\n\t\tboolean isExist = false;\n\t\tboolean isCheck;\n\n\t\tfor (int i = 0; i < s.length; i++) {\n\t\t\tisCheck = false;\n\t\t\t\n\t\t\tif (p[0] == s[i]) isCheck = true;\n\t\t\t\n\t\t\tfor (int j = i, ip = 0; isCheck && j <= s.length && ip < p.length; j++, ip++) {\n\t\t\t\tif (j == s.length)\t\tj = 0;\n\t\t\t\tif (s[j] != p[ip])\t\tbreak;\n\t\t\t\tif (ip == p.length - 1)\tisExist = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(isExist ? \"Yes\" : \"No\"); \n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tchar[] s = br.readLine().toLowerCase().toCharArray();\n\t\tchar[] p = br.readLine().toLowerCase().toCharArray();\n\t\tboolean isExist = false;\n\t\tboolean isCheck;\n\n\t\tfor (int i = 0; i < s.length; i++) {\n\t\t\tisCheck = false;\n\t\t\t\n\t\t\tif (p[0] == s[i]) isCheck = true;\n\t\t\t\n\t\t\tfor (int j = i, ip = 0; isCheck && j <= s.length && ip < p.length; j++, ip++) {\n\t\t\t\tif (j == s.length)\t\tj = 0;\n\t\t\t\tif (s[j] != p[ip])\t\tbreak;\n\t\t\t\tif (ip == p.length - 1)\tisExist = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(isExist ? \"Yes\" : \"No\"); \n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tchar[] s = br.readLine().toLowerCase().toCharArray();\n\t\tchar[] p = br.readLine().toLowerCase().toCharArray();\n\t\tboolean isExist = false;\n\t\tboolean isCheck;\n\n\t\tfor (int i = 0; i < s.length; i++) {\n\t\t\tisCheck = false;\n\t\t\t\n\t\t\tif (p[0] == s[i]) isCheck = true;\n\t\t\t\n\t\t\tfor (int j = i, ip = 0; isCheck && j <= s.length && ip < p.length; j++, ip++) {\n\t\t\t\tif (j == s.length)\t\tj = 0;\n\t\t\t\tif (s[j] != p[ip])\t\tbreak;\n\t\t\t\tif (ip == p.length - 1)\tisExist = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(isExist ? \"Yes\" : \"No\"); \n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "char[] s = br.readLine().toLowerCase().toCharArray();", "s", "br.readLine().toLowerCase().toCharArray()", "br.readLine().toLowerCase().toCharArray", "br.readLine().toLowerCase()", "br.readLine().toLowerCase", "br.readLine()", "br.readLine", "br", "char[] p = br.readLine().toLowerCase().toCharArray();", "p", "br.readLine().toLowerCase().toCharArray()", "br.readLine().toLowerCase().toCharArray", "br.readLine().toLowerCase()", "br.readLine().toLowerCase", "br.readLine()", "br.readLine", "br", "boolean isExist = false;", "isExist", "false", "boolean isCheck;", "isCheck", "for (int i = 0; i < s.length; i++) {\n\t\t\tisCheck = false;\n\t\t\t\n\t\t\tif (p[0] == s[i]) isCheck = true;\n\t\t\t\n\t\t\tfor (int j = i, ip = 0; isCheck && j <= s.length && ip < p.length; j++, ip++) {\n\t\t\t\tif (j == s.length)\t\tj = 0;\n\t\t\t\tif (s[j] != p[ip])\t\tbreak;\n\t\t\t\tif (ip == p.length - 1)\tisExist = true;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < s.length", "i", "s.length", "s", "s.length", "i++", "i++", "i", "{\n\t\t\tisCheck = false;\n\t\t\t\n\t\t\tif (p[0] == s[i]) isCheck = true;\n\t\t\t\n\t\t\tfor (int j = i, ip = 0; isCheck && j <= s.length && ip < p.length; j++, ip++) {\n\t\t\t\tif (j == s.length)\t\tj = 0;\n\t\t\t\tif (s[j] != p[ip])\t\tbreak;\n\t\t\t\tif (ip == p.length - 1)\tisExist = true;\n\t\t\t}\n\t\t}", "{\n\t\t\tisCheck = false;\n\t\t\t\n\t\t\tif (p[0] == s[i]) isCheck = true;\n\t\t\t\n\t\t\tfor (int j = i, ip = 0; isCheck && j <= s.length && ip < p.length; j++, ip++) {\n\t\t\t\tif (j == s.length)\t\tj = 0;\n\t\t\t\tif (s[j] != p[ip])\t\tbreak;\n\t\t\t\tif (ip == p.length - 1)\tisExist = true;\n\t\t\t}\n\t\t}", "isCheck = false", "isCheck", "false", "if (p[0] == s[i]) isCheck = true;", "p[0] == s[i]", "p[0]", "p", "0", "s[i]", "s", "i", "isCheck = true", "isCheck", "true", "for (int j = i, ip = 0; isCheck && j <= s.length && ip < p.length; j++, ip++) {\n\t\t\t\tif (j == s.length)\t\tj = 0;\n\t\t\t\tif (s[j] != p[ip])\t\tbreak;\n\t\t\t\tif (ip == p.length - 1)\tisExist = true;\n\t\t\t}", "int j = i, ip = 0;", "int j = i", "j", "i", "ip = 0;", "ip", "0", "isCheck && j <= s.length && ip < p.length", "isCheck && j <= s.length && ip < p.length", "isCheck", "j <= s.length", "j", "s.length", "s", "s.length", "ip < p.length", "ip", "p.length", "p", "p.length", "j++, ip++", "j++", "j", "ip++", "ip", "{\n\t\t\t\tif (j == s.length)\t\tj = 0;\n\t\t\t\tif (s[j] != p[ip])\t\tbreak;\n\t\t\t\tif (ip == p.length - 1)\tisExist = true;\n\t\t\t}", "{\n\t\t\t\tif (j == s.length)\t\tj = 0;\n\t\t\t\tif (s[j] != p[ip])\t\tbreak;\n\t\t\t\tif (ip == p.length - 1)\tisExist = true;\n\t\t\t}", "if (j == s.length)\t\tj = 0;", "j == s.length", "j", "s.length", "s", "s.length", "j = 0", "j", "0", "if (s[j] != p[ip])\t\tbreak;", "s[j] != p[ip]", "s[j]", "s", "j", "p[ip]", "p", "ip", "break;", "if (ip == p.length - 1)\tisExist = true;", "ip == p.length - 1", "ip", "p.length - 1", "p.length", "p", "p.length", "1", "isExist = true", "isExist", "true", "System.out.println(isExist ? \"Yes\" : \"No\")", "System.out.println", "System.out", "System", "System.out", "isExist ? \"Yes\" : \"No\"", "isExist", "\"Yes\"", "\"No\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tchar[] s = br.readLine().toLowerCase().toCharArray();\n\t\tchar[] p = br.readLine().toLowerCase().toCharArray();\n\t\tboolean isExist = false;\n\t\tboolean isCheck;\n\n\t\tfor (int i = 0; i < s.length; i++) {\n\t\t\tisCheck = false;\n\t\t\t\n\t\t\tif (p[0] == s[i]) isCheck = true;\n\t\t\t\n\t\t\tfor (int j = i, ip = 0; isCheck && j <= s.length && ip < p.length; j++, ip++) {\n\t\t\t\tif (j == s.length)\t\tj = 0;\n\t\t\t\tif (s[j] != p[ip])\t\tbreak;\n\t\t\t\tif (ip == p.length - 1)\tisExist = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(isExist ? \"Yes\" : \"No\"); \n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tchar[] s = br.readLine().toLowerCase().toCharArray();\n\t\tchar[] p = br.readLine().toLowerCase().toCharArray();\n\t\tboolean isExist = false;\n\t\tboolean isCheck;\n\n\t\tfor (int i = 0; i < s.length; i++) {\n\t\t\tisCheck = false;\n\t\t\t\n\t\t\tif (p[0] == s[i]) isCheck = true;\n\t\t\t\n\t\t\tfor (int j = i, ip = 0; isCheck && j <= s.length && ip < p.length; j++, ip++) {\n\t\t\t\tif (j == s.length)\t\tj = 0;\n\t\t\t\tif (s[j] != p[ip])\t\tbreak;\n\t\t\t\tif (ip == p.length - 1)\tisExist = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(isExist ? \"Yes\" : \"No\"); \n\t}\n}", "Main" ]
import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); char[] s = br.readLine().toLowerCase().toCharArray(); char[] p = br.readLine().toLowerCase().toCharArray(); boolean isExist = false; boolean isCheck; for (int i = 0; i < s.length; i++) { isCheck = false; if (p[0] == s[i]) isCheck = true; for (int j = i, ip = 0; isCheck && j <= s.length && ip < p.length; j++, ip++) { if (j == s.length) j = 0; if (s[j] != p[ip]) break; if (ip == p.length - 1) isExist = true; } } System.out.println(isExist ? "Yes" : "No"); } }
[ 7, 15, 13, 17, 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, 17, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 52, 11 ], [ 52, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 14, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 12, 49 ], [ 49, 50 ], [ 0, 51 ], [ 51, 52 ], [ 51, 53 ] ]
[ "import java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n char[] s = br.readLine().toCharArray();\n char[] p = br.readLine().toCharArray();\n boolean result = false;\n \n main:\n for(int i = 0; i < s.length; i++){\n for(int j = 0; j < p.length; j++){\n int index = i+j;\n if(index >= s.length) index -= s.length;\n if(!(s[index] == p[j])) continue main;\n }\n result = true;\n }\n\n if(result) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n\n }\n}", "import java.io.IOException;", "IOException", "java.io", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n char[] s = br.readLine().toCharArray();\n char[] p = br.readLine().toCharArray();\n boolean result = false;\n \n main:\n for(int i = 0; i < s.length; i++){\n for(int j = 0; j < p.length; j++){\n int index = i+j;\n if(index >= s.length) index -= s.length;\n if(!(s[index] == p[j])) continue main;\n }\n result = true;\n }\n\n if(result) System.out.println(\"Yes\");\n else 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\n char[] s = br.readLine().toCharArray();\n char[] p = br.readLine().toCharArray();\n boolean result = false;\n \n main:\n for(int i = 0; i < s.length; i++){\n for(int j = 0; j < p.length; j++){\n int index = i+j;\n if(index >= s.length) index -= s.length;\n if(!(s[index] == p[j])) continue main;\n }\n result = true;\n }\n\n if(result) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n char[] s = br.readLine().toCharArray();\n char[] p = br.readLine().toCharArray();\n boolean result = false;\n \n main:\n for(int i = 0; i < s.length; i++){\n for(int j = 0; j < p.length; j++){\n int index = i+j;\n if(index >= s.length) index -= s.length;\n if(!(s[index] == p[j])) continue main;\n }\n result = true;\n }\n\n if(result) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "char[] s = br.readLine().toCharArray();", "s", "br.readLine().toCharArray()", "br.readLine().toCharArray", "br.readLine()", "br.readLine", "br", "char[] p = br.readLine().toCharArray();", "p", "br.readLine().toCharArray()", "br.readLine().toCharArray", "br.readLine()", "br.readLine", "br", "boolean result = false;", "result", "false", "if(result) System.out.println(\"Yes\");\n else System.out.println(\"No\");", "result", "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 IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n char[] s = br.readLine().toCharArray();\n char[] p = br.readLine().toCharArray();\n boolean result = false;\n \n main:\n for(int i = 0; i < s.length; i++){\n for(int j = 0; j < p.length; j++){\n int index = i+j;\n if(index >= s.length) index -= s.length;\n if(!(s[index] == p[j])) continue main;\n }\n result = true;\n }\n\n if(result) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n\n }\n}", "public class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n char[] s = br.readLine().toCharArray();\n char[] p = br.readLine().toCharArray();\n boolean result = false;\n \n main:\n for(int i = 0; i < s.length; i++){\n for(int j = 0; j < p.length; j++){\n int index = i+j;\n if(index >= s.length) index -= s.length;\n if(!(s[index] == p[j])) continue main;\n }\n result = true;\n }\n\n if(result) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n\n }\n}", "Main" ]
import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; public class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); char[] s = br.readLine().toCharArray(); char[] p = br.readLine().toCharArray(); boolean result = false; main: for(int i = 0; i < s.length; i++){ for(int j = 0; j < p.length; j++){ int index = i+j; if(index >= s.length) index -= s.length; if(!(s[index] == p[j])) continue main; } result = true; } if(result) System.out.println("Yes"); else System.out.println("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 68, 11 ], [ 68, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 15, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 22, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 22, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 22, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 22, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 46, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 46, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 12, 65 ], [ 65, 66 ], [ 0, 67 ], [ 67, 68 ], [ 67, 69 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString s, p;\n\t\t\ts = reader.readLine();\n\t\t\tp = reader.readLine();\n\t\t\t\n\t\t\ts = s.concat(s);\n\t\t\t\n\t\t\tif (s.contains(p)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString s, p;\n\t\t\ts = reader.readLine();\n\t\t\tp = reader.readLine();\n\t\t\t\n\t\t\ts = s.concat(s);\n\t\t\t\n\t\t\tif (s.contains(p)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\ttry {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString s, p;\n\t\t\ts = reader.readLine();\n\t\t\tp = reader.readLine();\n\t\t\t\n\t\t\ts = s.concat(s);\n\t\t\t\n\t\t\tif (s.contains(p)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\ttry {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString s, p;\n\t\t\ts = reader.readLine();\n\t\t\tp = reader.readLine();\n\t\t\t\n\t\t\ts = s.concat(s);\n\t\t\t\n\t\t\tif (s.contains(p)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "try {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString s, p;\n\t\t\ts = reader.readLine();\n\t\t\tp = reader.readLine();\n\t\t\t\n\t\t\ts = s.concat(s);\n\t\t\t\n\t\t\tif (s.contains(p)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString s, p;\n\t\t\ts = reader.readLine();\n\t\t\tp = reader.readLine();\n\t\t\t\n\t\t\ts = s.concat(s);\n\t\t\t\n\t\t\tif (s.contains(p)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t\t\n\t\t}", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "String s", "s", "p;", "p", "s = reader.readLine()", "s", "reader.readLine()", "reader.readLine", "reader", "p = reader.readLine()", "p", "reader.readLine()", "reader.readLine", "reader", "s = s.concat(s)", "s", "s.concat(s)", "s.concat", "s", "s", "if (s.contains(p)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}", "s.contains(p)", "s.contains", "s", "p", "{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n\t\t\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\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString s, p;\n\t\t\ts = reader.readLine();\n\t\t\tp = reader.readLine();\n\t\t\t\n\t\t\ts = s.concat(s);\n\t\t\t\n\t\t\tif (s.contains(p)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString s, p;\n\t\t\ts = reader.readLine();\n\t\t\tp = reader.readLine();\n\t\t\t\n\t\t\ts = s.concat(s);\n\t\t\t\n\t\t\tif (s.contains(p)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { try { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String s, p; s = reader.readLine(); p = reader.readLine(); s = s.concat(s); if (s.contains(p)) { System.out.println("Yes"); } else { System.out.println("No"); } } catch (IOException e) { e.printStackTrace(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 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 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 8, 37 ], [ 37, 38 ], [ 37, 39 ], [ 8, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 40, 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.*;\n\npublic class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n String line = sc.nextLine();\n String S = line + line;\n char[] s = S.toCharArray();\n\n line = sc.nextLine();\n char[] p = line.toCharArray();\n\n int check = 0;\n\n point:\n for(int i = 0; i < s.length; i++) {\n if(s[i] == p[0]) {\n for(int j = 0; j < p.length; j++) {\n if(i + j == s.length) {\n break point;\n } else if(s[i + j] != p[j]) {\n break;\n } else if(j == p.length - 1) {\n check = 1;\n break point;\n }\n }\n }\n }\n\n if(check == 1) {\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\n Scanner sc = new Scanner(System.in);\n\n String line = sc.nextLine();\n String S = line + line;\n char[] s = S.toCharArray();\n\n line = sc.nextLine();\n char[] p = line.toCharArray();\n\n int check = 0;\n\n point:\n for(int i = 0; i < s.length; i++) {\n if(s[i] == p[0]) {\n for(int j = 0; j < p.length; j++) {\n if(i + j == s.length) {\n break point;\n } else if(s[i + j] != p[j]) {\n break;\n } else if(j == p.length - 1) {\n check = 1;\n break point;\n }\n }\n }\n }\n\n if(check == 1) {\n System.out.println(\"Yes\");\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 line = sc.nextLine();\n String S = line + line;\n char[] s = S.toCharArray();\n\n line = sc.nextLine();\n char[] p = line.toCharArray();\n\n int check = 0;\n\n point:\n for(int i = 0; i < s.length; i++) {\n if(s[i] == p[0]) {\n for(int j = 0; j < p.length; j++) {\n if(i + j == s.length) {\n break point;\n } else if(s[i + j] != p[j]) {\n break;\n } else if(j == p.length - 1) {\n check = 1;\n break point;\n }\n }\n }\n }\n\n if(check == 1) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n\n String line = sc.nextLine();\n String S = line + line;\n char[] s = S.toCharArray();\n\n line = sc.nextLine();\n char[] p = line.toCharArray();\n\n int check = 0;\n\n point:\n for(int i = 0; i < s.length; i++) {\n if(s[i] == p[0]) {\n for(int j = 0; j < p.length; j++) {\n if(i + j == s.length) {\n break point;\n } else if(s[i + j] != p[j]) {\n break;\n } else if(j == p.length - 1) {\n check = 1;\n break point;\n }\n }\n }\n }\n\n if(check == 1) {\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 line = sc.nextLine();", "line", "sc.nextLine()", "sc.nextLine", "sc", "String S = line + line;", "S", "line + line", "line", "line", "char[] s = S.toCharArray();", "s", "S.toCharArray()", "S.toCharArray", "S", "line = sc.nextLine()", "line", "sc.nextLine()", "sc.nextLine", "sc", "char[] p = line.toCharArray();", "p", "line.toCharArray()", "line.toCharArray", "line", "int check = 0;", "check", "0", "if(check == 1) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }", "check == 1", "check", "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\n Scanner sc = new Scanner(System.in);\n\n String line = sc.nextLine();\n String S = line + line;\n char[] s = S.toCharArray();\n\n line = sc.nextLine();\n char[] p = line.toCharArray();\n\n int check = 0;\n\n point:\n for(int i = 0; i < s.length; i++) {\n if(s[i] == p[0]) {\n for(int j = 0; j < p.length; j++) {\n if(i + j == s.length) {\n break point;\n } else if(s[i + j] != p[j]) {\n break;\n } else if(j == p.length - 1) {\n check = 1;\n break point;\n }\n }\n }\n }\n\n if(check == 1) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n String line = sc.nextLine();\n String S = line + line;\n char[] s = S.toCharArray();\n\n line = sc.nextLine();\n char[] p = line.toCharArray();\n\n int check = 0;\n\n point:\n for(int i = 0; i < s.length; i++) {\n if(s[i] == p[0]) {\n for(int j = 0; j < p.length; j++) {\n if(i + j == s.length) {\n break point;\n } else if(s[i + j] != p[j]) {\n break;\n } else if(j == p.length - 1) {\n check = 1;\n break point;\n }\n }\n }\n }\n\n if(check == 1) {\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 line = sc.nextLine(); String S = line + line; char[] s = S.toCharArray(); line = sc.nextLine(); char[] p = line.toCharArray(); int check = 0; point: for(int i = 0; i < s.length; i++) { if(s[i] == p[0]) { for(int j = 0; j < p.length; j++) { if(i + j == s.length) { break point; } else if(s[i + j] != p[j]) { break; } else if(j == p.length - 1) { check = 1; break point; } } } } if(check == 1) { System.out.println("Yes"); } else { System.out.println("No"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 2, 13, 13, 14, 2, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 14, 2, 4, 18, 13, 13, 40, 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 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 16, 21 ], [ 12, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 22, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 35, 37 ], [ 22, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 38, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 22, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 53, 58 ], [ 58, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 52, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 6, 72 ], [ 72, 73 ] ]
[ "// ITP1_8_D Ring\nimport java.io.*;\n\nclass Main {\n\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n String s = br.readLine();\n String p = br.readLine();\n s = s + s;\n if (s.equals(\"\") || p.equals(\"\"))\n System.exit(0);\n if (s.indexOf(p) != -1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n\n catch (Exception e) {\n System.err.println(e);\n }\n }\n}", "import java.io.*;", "io.*", "java", "class Main {\n\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n String s = br.readLine();\n String p = br.readLine();\n s = s + s;\n if (s.equals(\"\") || p.equals(\"\"))\n System.exit(0);\n if (s.indexOf(p) != -1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n\n catch (Exception e) {\n System.err.println(e);\n }\n }\n}", "Main", "public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n String s = br.readLine();\n String p = br.readLine();\n s = s + s;\n if (s.equals(\"\") || p.equals(\"\"))\n System.exit(0);\n if (s.indexOf(p) != -1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n\n catch (Exception e) {\n System.err.println(e);\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n String s = br.readLine();\n String p = br.readLine();\n s = s + s;\n if (s.equals(\"\") || p.equals(\"\"))\n System.exit(0);\n if (s.indexOf(p) != -1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n\n catch (Exception e) {\n System.err.println(e);\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "try {\n String s = br.readLine();\n String p = br.readLine();\n s = s + s;\n if (s.equals(\"\") || p.equals(\"\"))\n System.exit(0);\n if (s.indexOf(p) != -1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n\n catch (Exception e) {\n System.err.println(e);\n }", "catch (Exception e) {\n System.err.println(e);\n }", "Exception e", "{\n System.err.println(e);\n }", "System.err.println(e)", "System.err.println", "System.err", "System", "System.err", "e", "{\n String s = br.readLine();\n String p = br.readLine();\n s = s + s;\n if (s.equals(\"\") || p.equals(\"\"))\n System.exit(0);\n if (s.indexOf(p) != -1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }", "String s = br.readLine();", "s", "br.readLine()", "br.readLine", "br", "String p = br.readLine();", "p", "br.readLine()", "br.readLine", "br", "s = s + s", "s", "s + s", "s", "s", "if (s.equals(\"\") || p.equals(\"\"))\n System.exit(0);", "s.equals(\"\") || p.equals(\"\")", "s.equals(\"\")", "s.equals", "s", "\"\"", "p.equals(\"\")", "p.equals", "p", "\"\"", "System.exit(0)", "System.exit", "System", "0", "if (s.indexOf(p) != -1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");", "s.indexOf(p) != -1", "s.indexOf(p)", "s.indexOf", "s", "p", "-1", "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" ]
// ITP1_8_D Ring import java.io.*; class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try { String s = br.readLine(); String p = br.readLine(); s = s + s; if (s.equals("") || p.equals("")) System.exit(0); if (s.indexOf(p) != -1) System.out.println("Yes"); else System.out.println("No"); } catch (Exception e) { System.err.println(e); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 20, 41, 13, 20, 0, 13, 4, 18, 13, 0, 13, 2, 13, 13, 0, 13, 4, 18, 13, 14, 2, 4, 18, 13, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 59, 5 ], [ 59, 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 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 8, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 35, 40 ], [ 40, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 34, 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.io.*;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tString inputString, phrase;\n\t\tInputStreamReader reader = new InputStreamReader(System.in);\n\t\tBufferedReader bufferdReader = new BufferedReader(reader);\n\t\t\n\t\tinputString = bufferdReader.readLine();\n\t\tinputString = inputString + inputString;\n\t\tphrase = bufferdReader.readLine();\n\t\tif (inputString.indexOf(phrase) != -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n\n}", "import java.io.*;", "io.*", "java", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tString inputString, phrase;\n\t\tInputStreamReader reader = new InputStreamReader(System.in);\n\t\tBufferedReader bufferdReader = new BufferedReader(reader);\n\t\t\n\t\tinputString = bufferdReader.readLine();\n\t\tinputString = inputString + inputString;\n\t\tphrase = bufferdReader.readLine();\n\t\tif (inputString.indexOf(phrase) != -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tString inputString, phrase;\n\t\tInputStreamReader reader = new InputStreamReader(System.in);\n\t\tBufferedReader bufferdReader = new BufferedReader(reader);\n\t\t\n\t\tinputString = bufferdReader.readLine();\n\t\tinputString = inputString + inputString;\n\t\tphrase = bufferdReader.readLine();\n\t\tif (inputString.indexOf(phrase) != -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "main", "{\n\t\tString inputString, phrase;\n\t\tInputStreamReader reader = new InputStreamReader(System.in);\n\t\tBufferedReader bufferdReader = new BufferedReader(reader);\n\t\t\n\t\tinputString = bufferdReader.readLine();\n\t\tinputString = inputString + inputString;\n\t\tphrase = bufferdReader.readLine();\n\t\tif (inputString.indexOf(phrase) != -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "String inputString", "inputString", "phrase;", "phrase", "InputStreamReader reader = new InputStreamReader(System.in);", "reader", "new InputStreamReader(System.in)", "BufferedReader bufferdReader = new BufferedReader(reader);", "bufferdReader", "new BufferedReader(reader)", "inputString = bufferdReader.readLine()", "inputString", "bufferdReader.readLine()", "bufferdReader.readLine", "bufferdReader", "inputString = inputString + inputString", "inputString", "inputString + inputString", "inputString", "inputString", "phrase = bufferdReader.readLine()", "phrase", "bufferdReader.readLine()", "bufferdReader.readLine", "bufferdReader", "if (inputString.indexOf(phrase) != -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "inputString.indexOf(phrase) != -1", "inputString.indexOf(phrase)", "inputString.indexOf", "inputString", "phrase", "-1", "1", "{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tString inputString, phrase;\n\t\tInputStreamReader reader = new InputStreamReader(System.in);\n\t\tBufferedReader bufferdReader = new BufferedReader(reader);\n\t\t\n\t\tinputString = bufferdReader.readLine();\n\t\tinputString = inputString + inputString;\n\t\tphrase = bufferdReader.readLine();\n\t\tif (inputString.indexOf(phrase) != -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tString inputString, phrase;\n\t\tInputStreamReader reader = new InputStreamReader(System.in);\n\t\tBufferedReader bufferdReader = new BufferedReader(reader);\n\t\t\n\t\tinputString = bufferdReader.readLine();\n\t\tinputString = inputString + inputString;\n\t\tphrase = bufferdReader.readLine();\n\t\tif (inputString.indexOf(phrase) != -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n\n}", "Main" ]
import java.io.*; public class Main { public static void main(String[] args) throws IOException { String inputString, phrase; InputStreamReader reader = new InputStreamReader(System.in); BufferedReader bufferdReader = new BufferedReader(reader); inputString = bufferdReader.readLine(); inputString = inputString + inputString; phrase = bufferdReader.readLine(); if (inputString.indexOf(phrase) != -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, 0, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 13, 14, 2, 13, 40, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 57, 5 ], [ 57, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 8, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 34, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 34, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 8, 51 ], [ 51, 52 ], [ 52, 53 ], [ 6, 54 ], [ 54, 55 ], [ 0, 56 ], [ 56, 57 ], [ 56, 58 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString s = scan.next();\n\t\tString p = scan.next();\n\t\t\n\t\ts = s.concat(s);\n\t\tint num = s.indexOf(p);\n\t\t\n\t\tif(num != -1) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t\t\n\t\tscan.close();\n\t\n\t\t\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString s = scan.next();\n\t\tString p = scan.next();\n\t\t\n\t\ts = s.concat(s);\n\t\tint num = s.indexOf(p);\n\t\t\n\t\tif(num != -1) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t\t\n\t\tscan.close();\n\t\n\t\t\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 p = scan.next();\n\t\t\n\t\ts = s.concat(s);\n\t\tint num = s.indexOf(p);\n\t\t\n\t\tif(num != -1) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t\t\n\t\tscan.close();\n\t\n\t\t\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString s = scan.next();\n\t\tString p = scan.next();\n\t\t\n\t\ts = s.concat(s);\n\t\tint num = s.indexOf(p);\n\t\t\n\t\tif(num != -1) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t\t\n\t\tscan.close();\n\t\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 p = scan.next();", "p", "scan.next()", "scan.next", "scan", "s = s.concat(s)", "s", "s.concat(s)", "s.concat", "s", "s", "int num = s.indexOf(p);", "num", "s.indexOf(p)", "s.indexOf", "s", "p", "if(num != -1) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");", "num != -1", "num", "-1", "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\"", "scan.close()", "scan.close", "scan", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString s = scan.next();\n\t\tString p = scan.next();\n\t\t\n\t\ts = s.concat(s);\n\t\tint num = s.indexOf(p);\n\t\t\n\t\tif(num != -1) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t\t\n\t\tscan.close();\n\t\n\t\t\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString s = scan.next();\n\t\tString p = scan.next();\n\t\t\n\t\ts = s.concat(s);\n\t\tint num = s.indexOf(p);\n\t\t\n\t\tif(num != -1) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t\t\n\t\tscan.close();\n\t\n\t\t\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 p = scan.next(); s = s.concat(s); int num = s.indexOf(p); if(num != -1) 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, 0, 13, 13, 41, 13, 4, 18, 13, 14, 2, 4, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 49, 5 ], [ 49, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 26, 31 ], [ 25, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 25, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 6, 46 ], [ 46, 47 ], [ 0, 48 ], [ 48, 49 ], [ 48, 50 ] ]
[ "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 line1 = sc.nextLine();\n\t\tline1 += line1;\n\t\tString line2 = sc.nextLine();\n\n\t\tif(line1.indexOf(line2) >= 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}\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 line1 = sc.nextLine();\n\t\tline1 += line1;\n\t\tString line2 = sc.nextLine();\n\n\t\tif(line1.indexOf(line2) >= 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tline1 += line1;\n\t\tString line2 = sc.nextLine();\n\n\t\tif(line1.indexOf(line2) >= 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tline1 += line1;\n\t\tString line2 = sc.nextLine();\n\n\t\tif(line1.indexOf(line2) >= 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String line1 = sc.nextLine();", "line1", "sc.nextLine()", "sc.nextLine", "sc", "line1 += line1", "line1", "line1", "String line2 = sc.nextLine();", "line2", "sc.nextLine()", "sc.nextLine", "sc", "if(line1.indexOf(line2) >= 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "line1.indexOf(line2) >= 0", "line1.indexOf(line2)", "line1.indexOf", "line1", "line2", "0", "{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tline1 += line1;\n\t\tString line2 = sc.nextLine();\n\n\t\tif(line1.indexOf(line2) >= 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tline1 += line1;\n\t\tString line2 = sc.nextLine();\n\n\t\tif(line1.indexOf(line2) >= 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String line1 = sc.nextLine(); line1 += line1; String line2 = sc.nextLine(); if(line1.indexOf(line2) >= 0) { System.out.println("Yes"); } else { System.out.println("No"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 2, 13, 13, 14, 2, 4, 18, 13, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 58, 5 ], [ 58, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 30, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 39, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 33, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 6, 55 ], [ 55, 56 ], [ 0, 57 ], [ 57, 58 ], [ 57, 59 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str=new String();\n\t\tString p = new String();\n\n\t\t str = scan.nextLine();\n\t\t p = scan.nextLine();\n\t\t str = str+str;\n\t\t\t\t\n\t\t\t\tif(str.lastIndexOf(p)==-1){\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str=new String();\n\t\tString p = new String();\n\n\t\t str = scan.nextLine();\n\t\t p = scan.nextLine();\n\t\t str = str+str;\n\t\t\t\t\n\t\t\t\tif(str.lastIndexOf(p)==-1){\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str=new String();\n\t\tString p = new String();\n\n\t\t str = scan.nextLine();\n\t\t p = scan.nextLine();\n\t\t str = str+str;\n\t\t\t\t\n\t\t\t\tif(str.lastIndexOf(p)==-1){\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str=new String();\n\t\tString p = new String();\n\n\t\t str = scan.nextLine();\n\t\t p = scan.nextLine();\n\t\t str = str+str;\n\t\t\t\t\n\t\t\t\tif(str.lastIndexOf(p)==-1){\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String str=new String();", "str", "new String()", "String p = new String();", "p", "new String()", "str = scan.nextLine()", "str", "scan.nextLine()", "scan.nextLine", "scan", "p = scan.nextLine()", "p", "scan.nextLine()", "scan.nextLine", "scan", "str = str+str", "str", "str+str", "str", "str", "if(str.lastIndexOf(p)==-1){\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}", "str.lastIndexOf(p)==-1", "str.lastIndexOf(p)", "str.lastIndexOf", "str", "p", "-1", "1", "{\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str=new String();\n\t\tString p = new String();\n\n\t\t str = scan.nextLine();\n\t\t p = scan.nextLine();\n\t\t str = str+str;\n\t\t\t\t\n\t\t\t\tif(str.lastIndexOf(p)==-1){\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str=new String();\n\t\tString p = new String();\n\n\t\t str = scan.nextLine();\n\t\t p = scan.nextLine();\n\t\t str = str+str;\n\t\t\t\t\n\t\t\t\tif(str.lastIndexOf(p)==-1){\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String str=new String(); String p = new String(); str = scan.nextLine(); p = scan.nextLine(); str = str+str; if(str.lastIndexOf(p)==-1){ System.out.println("No"); }else{ System.out.println("Yes"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 18, 13, 2, 2, 13, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 4, 18, 13, 17, 4, 13, 17, 4, 18, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 103, 17 ], [ 103, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 20, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 20, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 20, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 39, 49 ], [ 49, 50 ], [ 50, 51 ], [ 39, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 57, 67 ], [ 67, 68 ], [ 68, 69 ], [ 57, 70 ], [ 71, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 81, 82 ], [ 53, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 83, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 88, 93 ], [ 93, 94 ], [ 93, 95 ], [ 20, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 18, 100 ], [ 100, 101 ], [ 0, 102 ], [ 102, 103 ], [ 102, 104 ] ]
[ "/*\nString[]の初期化、整数の型がlongになっているか\n関数(splitとかcontainsとか)内では\"+\"とかは正規表現となされるので\"\\\\+\"とする\n配列のコピーはarr1=arr.clone()\nHashSet<>[]はおのおの初期化した?????\n負の数の割り算は絶対値が小さいほうに切り捨てられるex.-1/2=0ので、ある値>kみたいな式だとバグらせやすいので注意\nある値>=kとして、切り上げた値をとるべき\n */\n//入力終了→Ctrl+D\nimport java.util.*;\nimport java.awt.*;\nimport java.awt.Graphics.*;\nimport static java.lang.System.*;\nimport static java.lang.Math.*;\npublic class Main {\n public static void main(String[] $) {\n Scanner sc = new Scanner(in);\n String s=sc.next();\n char[] e=s.toCharArray();\n String p=sc.next();\n for (int i = 0; i < s.length(); i++) {\n String check=\"\";\n for (int j = 0; j < s.length(); j++) {\n check+=e[(i+j)%s.length()];\n }\n if(check.contains(p)){\n out.println(\"Yes\");\n exit(0);\n }\n }\n out.println(\"No\");\n }\n}", "import java.util.*;", "util.*", "java", "import java.awt.*;", "awt.*", "java", "import java.awt.Graphics.*;", "Graphics.*", "java.awt", "import static java.lang.System.*;", "import static java.lang.System.*;", "import static java.lang.System.*;", "import static java.lang.Math.*;", "import static java.lang.Math.*;", "import static java.lang.Math.*;", "public class Main {\n public static void main(String[] $) {\n Scanner sc = new Scanner(in);\n String s=sc.next();\n char[] e=s.toCharArray();\n String p=sc.next();\n for (int i = 0; i < s.length(); i++) {\n String check=\"\";\n for (int j = 0; j < s.length(); j++) {\n check+=e[(i+j)%s.length()];\n }\n if(check.contains(p)){\n out.println(\"Yes\");\n exit(0);\n }\n }\n out.println(\"No\");\n }\n}", "Main", "public static void main(String[] $) {\n Scanner sc = new Scanner(in);\n String s=sc.next();\n char[] e=s.toCharArray();\n String p=sc.next();\n for (int i = 0; i < s.length(); i++) {\n String check=\"\";\n for (int j = 0; j < s.length(); j++) {\n check+=e[(i+j)%s.length()];\n }\n if(check.contains(p)){\n out.println(\"Yes\");\n exit(0);\n }\n }\n out.println(\"No\");\n }", "main", "{\n Scanner sc = new Scanner(in);\n String s=sc.next();\n char[] e=s.toCharArray();\n String p=sc.next();\n for (int i = 0; i < s.length(); i++) {\n String check=\"\";\n for (int j = 0; j < s.length(); j++) {\n check+=e[(i+j)%s.length()];\n }\n if(check.contains(p)){\n out.println(\"Yes\");\n exit(0);\n }\n }\n out.println(\"No\");\n }", "Scanner sc = new Scanner(in);", "sc", "new Scanner(in)", "String s=sc.next();", "s", "sc.next()", "sc.next", "sc", "char[] e=s.toCharArray();", "e", "s.toCharArray()", "s.toCharArray", "s", "String p=sc.next();", "p", "sc.next()", "sc.next", "sc", "for (int i = 0; i < s.length(); i++) {\n String check=\"\";\n for (int j = 0; j < s.length(); j++) {\n check+=e[(i+j)%s.length()];\n }\n if(check.contains(p)){\n out.println(\"Yes\");\n exit(0);\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n String check=\"\";\n for (int j = 0; j < s.length(); j++) {\n check+=e[(i+j)%s.length()];\n }\n if(check.contains(p)){\n out.println(\"Yes\");\n exit(0);\n }\n }", "{\n String check=\"\";\n for (int j = 0; j < s.length(); j++) {\n check+=e[(i+j)%s.length()];\n }\n if(check.contains(p)){\n out.println(\"Yes\");\n exit(0);\n }\n }", "String check=\"\";", "check", "\"\"", "for (int j = 0; j < s.length(); j++) {\n check+=e[(i+j)%s.length()];\n }", "int j = 0;", "int j = 0;", "j", "0", "j < s.length()", "j", "s.length()", "s.length", "s", "j++", "j++", "j", "{\n check+=e[(i+j)%s.length()];\n }", "{\n check+=e[(i+j)%s.length()];\n }", "check+=e[(i+j)%s.length()]", "check", "e[(i+j)%s.length()]", "e", "(i+j)%s.length()", "(i+j)", "i", "j", "s.length()", "s.length", "s", "if(check.contains(p)){\n out.println(\"Yes\");\n exit(0);\n }", "check.contains(p)", "check.contains", "check", "p", "{\n out.println(\"Yes\");\n exit(0);\n }", "out.println(\"Yes\")", "out.println", "out", "\"Yes\"", "exit(0)", "exit", "0", "out.println(\"No\")", "out.println", "out", "\"No\"", "String[] $", "$", "public class Main {\n public static void main(String[] $) {\n Scanner sc = new Scanner(in);\n String s=sc.next();\n char[] e=s.toCharArray();\n String p=sc.next();\n for (int i = 0; i < s.length(); i++) {\n String check=\"\";\n for (int j = 0; j < s.length(); j++) {\n check+=e[(i+j)%s.length()];\n }\n if(check.contains(p)){\n out.println(\"Yes\");\n exit(0);\n }\n }\n out.println(\"No\");\n }\n}", "public class Main {\n public static void main(String[] $) {\n Scanner sc = new Scanner(in);\n String s=sc.next();\n char[] e=s.toCharArray();\n String p=sc.next();\n for (int i = 0; i < s.length(); i++) {\n String check=\"\";\n for (int j = 0; j < s.length(); j++) {\n check+=e[(i+j)%s.length()];\n }\n if(check.contains(p)){\n out.println(\"Yes\");\n exit(0);\n }\n }\n out.println(\"No\");\n }\n}", "Main" ]
/* String[]の初期化、整数の型がlongになっているか 関数(splitとかcontainsとか)内では"+"とかは正規表現となされるので"\\+"とする 配列のコピーはarr1=arr.clone() HashSet<>[]はおのおの初期化した????? 負の数の割り算は絶対値が小さいほうに切り捨てられるex.-1/2=0ので、ある値>kみたいな式だとバグらせやすいので注意 ある値>=kとして、切り上げた値をとるべき */ //入力終了→Ctrl+D import java.util.*; import java.awt.*; import java.awt.Graphics.*; import static java.lang.System.*; import static java.lang.Math.*; public class Main { public static void main(String[] $) { Scanner sc = new Scanner(in); String s=sc.next(); char[] e=s.toCharArray(); String p=sc.next(); for (int i = 0; i < s.length(); i++) { String check=""; for (int j = 0; j < s.length(); j++) { check+=e[(i+j)%s.length()]; } if(check.contains(p)){ out.println("Yes"); exit(0); } } 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, 13, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 41, 13, 17, 42, 17, 30, 14, 2, 4, 18, 13, 4, 18, 13, 0, 13, 13, 3, 0, 13, 13, 14, 40, 2, 4, 18, 13, 13, 17, 30, 0, 13, 17, 29, 13, 23, 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 ], [ 23, 24 ], [ 23, 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 ], [ 86, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 53, 57 ], [ 57, 58 ], [ 58, 59 ], [ 52, 60 ], [ 60, 61 ], [ 60, 62 ], [ 51, 63 ], [ 45, 64 ], [ 64, 65 ], [ 64, 66 ], [ 45, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 69, 74 ], [ 67, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 45, 79 ], [ 79, 80 ], [ 43, 81 ], [ 81, 82 ], [ 43, 83 ], [ 83, 84 ], [ 0, 85 ], [ 85, 86 ], [ 85, 87 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\t\tif(ringJad(s, p)){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n\n\t/**\n\t * ringJad\n\t * ?????????s???????????????p???????????????????????????\n\t * @param s\n\t * @param p\n\t * @return \n\t */\n\tstatic boolean ringJad(String s, String p){\n\t\tBoolean jad = true;\n\t\twhile(true){\n\t\t\tif(s.length() <= p.length()) s += s; break;\n\t\t}\n\t\ts += s;\n\t\tif(!(s.indexOf(p) >= 0)){\n\t\t\tjad = false;\n\t\t}\n\t\treturn jad;\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\t\tif(ringJad(s, p)){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n\n\t/**\n\t * ringJad\n\t * ?????????s???????????????p???????????????????????????\n\t * @param s\n\t * @param p\n\t * @return \n\t */\n\tstatic boolean ringJad(String s, String p){\n\t\tBoolean jad = true;\n\t\twhile(true){\n\t\t\tif(s.length() <= p.length()) s += s; break;\n\t\t}\n\t\ts += s;\n\t\tif(!(s.indexOf(p) >= 0)){\n\t\t\tjad = false;\n\t\t}\n\t\treturn jad;\n\t}\n\n}", "Main", "public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\t\tif(ringJad(s, p)){\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 scan = new Scanner(System.in);\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\t\tif(ringJad(s, p)){\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.nextLine();", "s", "scan.nextLine()", "scan.nextLine", "scan", "String p = scan.nextLine();", "p", "scan.nextLine()", "scan.nextLine", "scan", "if(ringJad(s, p)){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "ringJad(s, p)", "ringJad", "s", "p", "{\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", "/**\n\t * ringJad\n\t * ?????????s???????????????p???????????????????????????\n\t * @param s\n\t * @param p\n\t * @return \n\t */\n\tstatic boolean ringJad(String s, String p){\n\t\tBoolean jad = true;\n\t\twhile(true){\n\t\t\tif(s.length() <= p.length()) s += s; break;\n\t\t}\n\t\ts += s;\n\t\tif(!(s.indexOf(p) >= 0)){\n\t\t\tjad = false;\n\t\t}\n\t\treturn jad;\n\t}", "ringJad", "{\n\t\tBoolean jad = true;\n\t\twhile(true){\n\t\t\tif(s.length() <= p.length()) s += s; break;\n\t\t}\n\t\ts += s;\n\t\tif(!(s.indexOf(p) >= 0)){\n\t\t\tjad = false;\n\t\t}\n\t\treturn jad;\n\t}", "Boolean jad = true;", "jad", "true", "while(true){\n\t\t\tif(s.length() <= p.length()) s += s; break;\n\t\t}", "true", "{\n\t\t\tif(s.length() <= p.length()) s += s; break;\n\t\t}", "if(s.length() <= p.length()) s += s;", "s.length() <= p.length()", "s.length()", "s.length", "s", "p.length()", "p.length", "p", "s += s", "s", "s", "break;", "s += s", "s", "s", "if(!(s.indexOf(p) >= 0)){\n\t\t\tjad = false;\n\t\t}", "!(s.indexOf(p) >= 0)", "(s.indexOf(p) >= 0)", "s.indexOf(p)", "s.indexOf", "s", "p", "0", "{\n\t\t\tjad = false;\n\t\t}", "jad = false", "jad", "false", "return jad;", "jad", "String s", "s", "String p", "p", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\t\tif(ringJad(s, p)){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n\n\t/**\n\t * ringJad\n\t * ?????????s???????????????p???????????????????????????\n\t * @param s\n\t * @param p\n\t * @return \n\t */\n\tstatic boolean ringJad(String s, String p){\n\t\tBoolean jad = true;\n\t\twhile(true){\n\t\t\tif(s.length() <= p.length()) s += s; break;\n\t\t}\n\t\ts += s;\n\t\tif(!(s.indexOf(p) >= 0)){\n\t\t\tjad = false;\n\t\t}\n\t\treturn jad;\n\t}\n\n}", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\t\tif(ringJad(s, p)){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n\n\t/**\n\t * ringJad\n\t * ?????????s???????????????p???????????????????????????\n\t * @param s\n\t * @param p\n\t * @return \n\t */\n\tstatic boolean ringJad(String s, String p){\n\t\tBoolean jad = true;\n\t\twhile(true){\n\t\t\tif(s.length() <= p.length()) s += s; break;\n\t\t}\n\t\ts += s;\n\t\tif(!(s.indexOf(p) >= 0)){\n\t\t\tjad = false;\n\t\t}\n\t\treturn jad;\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.nextLine(); String p = scan.nextLine(); if(ringJad(s, p)){ System.out.println("Yes"); }else{ System.out.println("No"); } } /** * ringJad * ?????????s???????????????p??????????????????????????? * @param s * @param p * @return */ static boolean ringJad(String s, String p){ Boolean jad = true; while(true){ if(s.length() <= p.length()) s += s; break; } s += s; if(!(s.indexOf(p) >= 0)){ jad = false; } return jad; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 2, 4, 18, 13, 17, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 4, 18, 13, 17, 30, 0, 13, 17, 11, 1, 41, 13, 2, 13, 17, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 4, 18, 13, 13, 0, 13, 17, 14, 13, 30, 4, 18, 18, 13, 13, 17, 29, 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 ], [ 8, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 34, 38 ], [ 27, 39 ], [ 39, 40 ], [ 40, 41 ], [ 27, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 45, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 44, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 59, 65 ], [ 65, 66 ], [ 65, 67 ], [ 58, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 58, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 76, 77 ], [ 58, 78 ], [ 79, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 81, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 80, 90 ], [ 90, 91 ], [ 90, 92 ], [ 54, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 95, 102 ], [ 8, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 6, 109 ], [ 109, 110 ] ]
[ "import java.util.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString s = stdIn.next();\n\t\tString p = stdIn.next();\n\t\ts += s;\n\t\tboolean flag;\n\n\t\tfor (int i=0; i<s.length()/2; i++) {\n\t\t\tif(s.charAt(i) == p.charAt(0)){\n\t\t\t\tflag = true;\n\t\t\t\tfor (int j=i+1,k=1; k<p.length(); j++,k++) {\n\t\t\t\t\tif(s.charAt(j) != p.charAt(k))\n\t\t\t\t\t\tflag = false;\n\t\t\t\t}\n\t\t\t\tif(flag){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}\n}", "import java.util.*;", "util.*", "java", "class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString s = stdIn.next();\n\t\tString p = stdIn.next();\n\t\ts += s;\n\t\tboolean flag;\n\n\t\tfor (int i=0; i<s.length()/2; i++) {\n\t\t\tif(s.charAt(i) == p.charAt(0)){\n\t\t\t\tflag = true;\n\t\t\t\tfor (int j=i+1,k=1; k<p.length(); j++,k++) {\n\t\t\t\t\tif(s.charAt(j) != p.charAt(k))\n\t\t\t\t\t\tflag = false;\n\t\t\t\t}\n\t\t\t\tif(flag){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString s = stdIn.next();\n\t\tString p = stdIn.next();\n\t\ts += s;\n\t\tboolean flag;\n\n\t\tfor (int i=0; i<s.length()/2; i++) {\n\t\t\tif(s.charAt(i) == p.charAt(0)){\n\t\t\t\tflag = true;\n\t\t\t\tfor (int j=i+1,k=1; k<p.length(); j++,k++) {\n\t\t\t\t\tif(s.charAt(j) != p.charAt(k))\n\t\t\t\t\t\tflag = false;\n\t\t\t\t}\n\t\t\t\tif(flag){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}", "main", "{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString s = stdIn.next();\n\t\tString p = stdIn.next();\n\t\ts += s;\n\t\tboolean flag;\n\n\t\tfor (int i=0; i<s.length()/2; i++) {\n\t\t\tif(s.charAt(i) == p.charAt(0)){\n\t\t\t\tflag = true;\n\t\t\t\tfor (int j=i+1,k=1; k<p.length(); j++,k++) {\n\t\t\t\t\tif(s.charAt(j) != p.charAt(k))\n\t\t\t\t\t\tflag = false;\n\t\t\t\t}\n\t\t\t\tif(flag){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "String s = stdIn.next();", "s", "stdIn.next()", "stdIn.next", "stdIn", "String p = stdIn.next();", "p", "stdIn.next()", "stdIn.next", "stdIn", "s += s", "s", "s", "boolean flag;", "flag", "for (int i=0; i<s.length()/2; i++) {\n\t\t\tif(s.charAt(i) == p.charAt(0)){\n\t\t\t\tflag = true;\n\t\t\t\tfor (int j=i+1,k=1; k<p.length(); j++,k++) {\n\t\t\t\t\tif(s.charAt(j) != p.charAt(k))\n\t\t\t\t\t\tflag = false;\n\t\t\t\t}\n\t\t\t\tif(flag){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<s.length()/2", "i", "s.length()/2", "s.length()", "s.length", "s", "2", "i++", "i++", "i", "{\n\t\t\tif(s.charAt(i) == p.charAt(0)){\n\t\t\t\tflag = true;\n\t\t\t\tfor (int j=i+1,k=1; k<p.length(); j++,k++) {\n\t\t\t\t\tif(s.charAt(j) != p.charAt(k))\n\t\t\t\t\t\tflag = false;\n\t\t\t\t}\n\t\t\t\tif(flag){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tif(s.charAt(i) == p.charAt(0)){\n\t\t\t\tflag = true;\n\t\t\t\tfor (int j=i+1,k=1; k<p.length(); j++,k++) {\n\t\t\t\t\tif(s.charAt(j) != p.charAt(k))\n\t\t\t\t\t\tflag = false;\n\t\t\t\t}\n\t\t\t\tif(flag){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "if(s.charAt(i) == p.charAt(0)){\n\t\t\t\tflag = true;\n\t\t\t\tfor (int j=i+1,k=1; k<p.length(); j++,k++) {\n\t\t\t\t\tif(s.charAt(j) != p.charAt(k))\n\t\t\t\t\t\tflag = false;\n\t\t\t\t}\n\t\t\t\tif(flag){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}", "s.charAt(i) == p.charAt(0)", "s.charAt(i)", "s.charAt", "s", "i", "p.charAt(0)", "p.charAt", "p", "0", "{\n\t\t\t\tflag = true;\n\t\t\t\tfor (int j=i+1,k=1; k<p.length(); j++,k++) {\n\t\t\t\t\tif(s.charAt(j) != p.charAt(k))\n\t\t\t\t\t\tflag = false;\n\t\t\t\t}\n\t\t\t\tif(flag){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}", "flag = true", "flag", "true", "for (int j=i+1,k=1; k<p.length(); j++,k++) {\n\t\t\t\t\tif(s.charAt(j) != p.charAt(k))\n\t\t\t\t\t\tflag = false;\n\t\t\t\t}", "int j=i+1,k=1;", "int j=i+1", "j", "i+1", "i", "1", "k=1;", "k", "1", "k<p.length()", "k", "p.length()", "p.length", "p", "j++,k++", "j++", "j", "k++", "k", "{\n\t\t\t\t\tif(s.charAt(j) != p.charAt(k))\n\t\t\t\t\t\tflag = false;\n\t\t\t\t}", "{\n\t\t\t\t\tif(s.charAt(j) != p.charAt(k))\n\t\t\t\t\t\tflag = false;\n\t\t\t\t}", "if(s.charAt(j) != p.charAt(k))\n\t\t\t\t\t\tflag = false;", "s.charAt(j) != p.charAt(k)", "s.charAt(j)", "s.charAt", "s", "j", "p.charAt(k)", "p.charAt", "p", "k", "flag = false", "flag", "false", "if(flag){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}", "flag", "{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\treturn;\n\t\t\t\t}", "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" ]
import java.util.*; class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); String s = stdIn.next(); String p = stdIn.next(); s += s; boolean flag; for (int i=0; i<s.length()/2; i++) { if(s.charAt(i) == p.charAt(0)){ flag = true; for (int j=i+1,k=1; k<p.length(); j++,k++) { if(s.charAt(j) != p.charAt(k)) flag = false; } if(flag){ System.out.println("Yes"); return; } } } System.out.println("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 0, 13, 2, 13, 13, 14, 2, 4, 18, 13, 13, 17, 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 ], [ 56, 8 ], [ 56, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 11, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 30, 32 ], [ 11, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 33, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 11, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 49, 52 ], [ 9, 53 ], [ 53, 54 ], [ 0, 55 ], [ 55, 56 ], [ 55, 57 ] ]
[ "import java.util.*;\nimport java.lang.*;\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 p = sc.next();\n boolean ans = false;\n \n s = s + s;\n \n if (s.indexOf(p) >= 0) {\n ans = true;\n }\n \n System.out.println(ans?\"Yes\":\"No\");\n }\n}", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "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 p = sc.next();\n boolean ans = false;\n \n s = s + s;\n \n if (s.indexOf(p) >= 0) {\n ans = true;\n }\n \n System.out.println(ans?\"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 p = sc.next();\n boolean ans = false;\n \n s = s + s;\n \n if (s.indexOf(p) >= 0) {\n ans = true;\n }\n \n System.out.println(ans?\"Yes\":\"No\");\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String p = sc.next();\n boolean ans = false;\n \n s = s + s;\n \n if (s.indexOf(p) >= 0) {\n ans = true;\n }\n \n System.out.println(ans?\"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 p = sc.next();", "p", "sc.next()", "sc.next", "sc", "boolean ans = false;", "ans", "false", "s = s + s", "s", "s + s", "s", "s", "if (s.indexOf(p) >= 0) {\n ans = true;\n }", "s.indexOf(p) >= 0", "s.indexOf(p)", "s.indexOf", "s", "p", "0", "{\n ans = true;\n }", "ans = true", "ans", "true", "System.out.println(ans?\"Yes\":\"No\")", "System.out.println", "System.out", "System", "System.out", "ans?\"Yes\":\"No\"", "ans", "\"Yes\"", "\"No\"", "String args[]", "args", "public class Main{\n \n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String p = sc.next();\n boolean ans = false;\n \n s = s + s;\n \n if (s.indexOf(p) >= 0) {\n ans = true;\n }\n \n System.out.println(ans?\"Yes\":\"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 p = sc.next();\n boolean ans = false;\n \n s = s + s;\n \n if (s.indexOf(p) >= 0) {\n ans = true;\n }\n \n System.out.println(ans?\"Yes\":\"No\");\n }\n}", "Main" ]
import java.util.*; import java.lang.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); String s = sc.next(); String p = sc.next(); boolean ans = false; s = s + s; if (s.indexOf(p) >= 0) { ans = true; } System.out.println(ans?"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, 41, 13, 40, 17, 11, 1, 0, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 40, 17, 30, 0, 13, 2, 4, 18, 13, 17, 4, 18, 13, 4, 18, 13, 17, 17, 30, 0, 13, 4, 18, 13, 13, 3, 14, 2, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 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 ], [ 43, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 55, 59 ], [ 59, 60 ], [ 60, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 62, 66 ], [ 43, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 67, 74 ], [ 8, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 75, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 75, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 6, 94 ], [ 94, 95 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString s = in.next();\n\t\tString q = in.next();\n\n\t\tint i;\n\t\tint ret = -1;\n\t\tfor (i = 0; i < s.length(); i++) {\n\t\t\tif (s.indexOf(q) == -1) {\n\t\t\t\ts = s.substring(1, s.length()) + s.substring(0, 1);\n\t\t\t} else {\n\t\t\t\tret = s.indexOf(q);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (ret == -1) {\n\t\t\tSystem.out.println(\"No\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString s = in.next();\n\t\tString q = in.next();\n\n\t\tint i;\n\t\tint ret = -1;\n\t\tfor (i = 0; i < s.length(); i++) {\n\t\t\tif (s.indexOf(q) == -1) {\n\t\t\t\ts = s.substring(1, s.length()) + s.substring(0, 1);\n\t\t\t} else {\n\t\t\t\tret = s.indexOf(q);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (ret == -1) {\n\t\t\tSystem.out.println(\"No\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString s = in.next();\n\t\tString q = in.next();\n\n\t\tint i;\n\t\tint ret = -1;\n\t\tfor (i = 0; i < s.length(); i++) {\n\t\t\tif (s.indexOf(q) == -1) {\n\t\t\t\ts = s.substring(1, s.length()) + s.substring(0, 1);\n\t\t\t} else {\n\t\t\t\tret = s.indexOf(q);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (ret == -1) {\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\tScanner in = new Scanner(System.in);\n\t\tString s = in.next();\n\t\tString q = in.next();\n\n\t\tint i;\n\t\tint ret = -1;\n\t\tfor (i = 0; i < s.length(); i++) {\n\t\t\tif (s.indexOf(q) == -1) {\n\t\t\t\ts = s.substring(1, s.length()) + s.substring(0, 1);\n\t\t\t} else {\n\t\t\t\tret = s.indexOf(q);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (ret == -1) {\n\t\t\tSystem.out.println(\"No\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "String s = in.next();", "s", "in.next()", "in.next", "in", "String q = in.next();", "q", "in.next()", "in.next", "in", "int i;", "i", "int ret = -1;", "ret", "-1", "1", "for (i = 0; i < s.length(); i++) {\n\t\t\tif (s.indexOf(q) == -1) {\n\t\t\t\ts = s.substring(1, s.length()) + s.substring(0, 1);\n\t\t\t} else {\n\t\t\t\tret = s.indexOf(q);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "i = 0;", "i = 0", "i", "0", "i < s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n\t\t\tif (s.indexOf(q) == -1) {\n\t\t\t\ts = s.substring(1, s.length()) + s.substring(0, 1);\n\t\t\t} else {\n\t\t\t\tret = s.indexOf(q);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "{\n\t\t\tif (s.indexOf(q) == -1) {\n\t\t\t\ts = s.substring(1, s.length()) + s.substring(0, 1);\n\t\t\t} else {\n\t\t\t\tret = s.indexOf(q);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "if (s.indexOf(q) == -1) {\n\t\t\t\ts = s.substring(1, s.length()) + s.substring(0, 1);\n\t\t\t} else {\n\t\t\t\tret = s.indexOf(q);\n\t\t\t\tbreak;\n\t\t\t}", "s.indexOf(q) == -1", "s.indexOf(q)", "s.indexOf", "s", "q", "-1", "1", "{\n\t\t\t\ts = s.substring(1, s.length()) + s.substring(0, 1);\n\t\t\t}", "s = s.substring(1, s.length()) + s.substring(0, 1)", "s", "s.substring(1, s.length()) + s.substring(0, 1)", "s.substring(1, s.length())", "s.substring", "s", "1", "s.length()", "s.length", "s", "s.substring(0, 1)", "s.substring", "s", "0", "1", "{\n\t\t\t\tret = s.indexOf(q);\n\t\t\t\tbreak;\n\t\t\t}", "ret = s.indexOf(q)", "ret", "s.indexOf(q)", "s.indexOf", "s", "q", "break;", "if (ret == -1) {\n\t\t\tSystem.out.println(\"No\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}", "ret == -1", "ret", "-1", "1", "{\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" ]
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String s = in.next(); String q = in.next(); int i; int ret = -1; for (i = 0; i < s.length(); i++) { if (s.indexOf(q) == -1) { s = s.substring(1, s.length()) + s.substring(0, 1); } else { ret = s.indexOf(q); break; } } if (ret == -1) { System.out.println("No"); } else { System.out.println("Yes"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 17, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 4, 18, 13, 17, 30, 14, 2, 2, 2, 13, 17, 13, 13, 30, 0, 13, 2, 4, 18, 13, 13, 13, 4, 18, 13, 17, 2, 13, 2, 13, 13, 30, 0, 13, 4, 18, 13, 13, 2, 13, 13, 14, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 139, 11 ], [ 139, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 14, 22 ], [ 22, 23 ], [ 14, 24 ], [ 24, 25 ], [ 24, 26 ], [ 14, 27 ], [ 27, 28 ], [ 14, 29 ], [ 29, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 14, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 14, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 14, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 14, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 51, 59 ], [ 59, 60 ], [ 60, 61 ], [ 51, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 65, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 64, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 76, 82 ], [ 75, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 87, 91 ], [ 86, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 92, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 98, 100 ], [ 75, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 104, 108 ], [ 108, 109 ], [ 108, 110 ], [ 74, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 115 ], [ 111, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 14, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 120, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 12, 136 ], [ 136, 137 ], [ 0, 138 ], [ 138, 139 ], [ 138, 140 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s1, s2, checkStr;\n\t\tboolean ans = false;\n\t\tint s1Length, s2Length;\n\t\ts1 = in.readLine();\n\t\ts2 = in.readLine();\n\t\ts1Length = s1.length();\n\t\ts2Length = s2.length();\n\t\t/*\n\t\t * System.out .println(\"s1Length:\" + s1Length +\n\t\t * System.getProperty(\"line.separator\") + \"s2Length:\" + s2Length);\n\t\t */\n\t\tfor (int i = 0; i < s1Length; i++) {\n\t\t\tif (s1.charAt(i) == s2.charAt(0)) {\n\t\t\t\tif ((i + 1) + s2Length > s1Length) {\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1));\n\t\t\t\t\t * System.out.println(\"範囲外文字列\" + (s1.substring(i, s1Length)\n\t\t\t\t\t * + s1.substring(0, s2Length - (s1Length - i))));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, s1Length)\n\t\t\t\t\t\t\t+ s1.substring(0, s2Length - (s1Length - i));\n\t\t\t\t} else {\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1)); System.out\n\t\t\t\t\t * .println(\"範囲内文字列\" + s1.substring(i, i + s2Length));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, i + s2Length);\n\t\t\t\t}\n\t\t\t\tif (checkStr.matches(s2)) {\n\t\t\t\t\tans = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (ans) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s1, s2, checkStr;\n\t\tboolean ans = false;\n\t\tint s1Length, s2Length;\n\t\ts1 = in.readLine();\n\t\ts2 = in.readLine();\n\t\ts1Length = s1.length();\n\t\ts2Length = s2.length();\n\t\t/*\n\t\t * System.out .println(\"s1Length:\" + s1Length +\n\t\t * System.getProperty(\"line.separator\") + \"s2Length:\" + s2Length);\n\t\t */\n\t\tfor (int i = 0; i < s1Length; i++) {\n\t\t\tif (s1.charAt(i) == s2.charAt(0)) {\n\t\t\t\tif ((i + 1) + s2Length > s1Length) {\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1));\n\t\t\t\t\t * System.out.println(\"範囲外文字列\" + (s1.substring(i, s1Length)\n\t\t\t\t\t * + s1.substring(0, s2Length - (s1Length - i))));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, s1Length)\n\t\t\t\t\t\t\t+ s1.substring(0, s2Length - (s1Length - i));\n\t\t\t\t} else {\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1)); System.out\n\t\t\t\t\t * .println(\"範囲内文字列\" + s1.substring(i, i + s2Length));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, i + s2Length);\n\t\t\t\t}\n\t\t\t\tif (checkStr.matches(s2)) {\n\t\t\t\t\tans = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (ans) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s1, s2, checkStr;\n\t\tboolean ans = false;\n\t\tint s1Length, s2Length;\n\t\ts1 = in.readLine();\n\t\ts2 = in.readLine();\n\t\ts1Length = s1.length();\n\t\ts2Length = s2.length();\n\t\t/*\n\t\t * System.out .println(\"s1Length:\" + s1Length +\n\t\t * System.getProperty(\"line.separator\") + \"s2Length:\" + s2Length);\n\t\t */\n\t\tfor (int i = 0; i < s1Length; i++) {\n\t\t\tif (s1.charAt(i) == s2.charAt(0)) {\n\t\t\t\tif ((i + 1) + s2Length > s1Length) {\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1));\n\t\t\t\t\t * System.out.println(\"範囲外文字列\" + (s1.substring(i, s1Length)\n\t\t\t\t\t * + s1.substring(0, s2Length - (s1Length - i))));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, s1Length)\n\t\t\t\t\t\t\t+ s1.substring(0, s2Length - (s1Length - i));\n\t\t\t\t} else {\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1)); System.out\n\t\t\t\t\t * .println(\"範囲内文字列\" + s1.substring(i, i + s2Length));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, i + s2Length);\n\t\t\t\t}\n\t\t\t\tif (checkStr.matches(s2)) {\n\t\t\t\t\tans = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (ans) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s1, s2, checkStr;\n\t\tboolean ans = false;\n\t\tint s1Length, s2Length;\n\t\ts1 = in.readLine();\n\t\ts2 = in.readLine();\n\t\ts1Length = s1.length();\n\t\ts2Length = s2.length();\n\t\t/*\n\t\t * System.out .println(\"s1Length:\" + s1Length +\n\t\t * System.getProperty(\"line.separator\") + \"s2Length:\" + s2Length);\n\t\t */\n\t\tfor (int i = 0; i < s1Length; i++) {\n\t\t\tif (s1.charAt(i) == s2.charAt(0)) {\n\t\t\t\tif ((i + 1) + s2Length > s1Length) {\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1));\n\t\t\t\t\t * System.out.println(\"範囲外文字列\" + (s1.substring(i, s1Length)\n\t\t\t\t\t * + s1.substring(0, s2Length - (s1Length - i))));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, s1Length)\n\t\t\t\t\t\t\t+ s1.substring(0, s2Length - (s1Length - i));\n\t\t\t\t} else {\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1)); System.out\n\t\t\t\t\t * .println(\"範囲内文字列\" + s1.substring(i, i + s2Length));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, i + s2Length);\n\t\t\t\t}\n\t\t\t\tif (checkStr.matches(s2)) {\n\t\t\t\t\tans = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (ans) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "String s1", "s1", "s2", "s2", "checkStr;", "checkStr", "boolean ans = false;", "ans", "false", "int s1Length", "s1Length", "s2Length;", "s2Length", "s1 = in.readLine()", "s1", "in.readLine()", "in.readLine", "in", "s2 = in.readLine()", "s2", "in.readLine()", "in.readLine", "in", "s1Length = s1.length()", "s1Length", "s1.length()", "s1.length", "s1", "s2Length = s2.length()", "s2Length", "s2.length()", "s2.length", "s2", "for (int i = 0; i < s1Length; i++) {\n\t\t\tif (s1.charAt(i) == s2.charAt(0)) {\n\t\t\t\tif ((i + 1) + s2Length > s1Length) {\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1));\n\t\t\t\t\t * System.out.println(\"範囲外文字列\" + (s1.substring(i, s1Length)\n\t\t\t\t\t * + s1.substring(0, s2Length - (s1Length - i))));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, s1Length)\n\t\t\t\t\t\t\t+ s1.substring(0, s2Length - (s1Length - i));\n\t\t\t\t} else {\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1)); System.out\n\t\t\t\t\t * .println(\"範囲内文字列\" + s1.substring(i, i + s2Length));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, i + s2Length);\n\t\t\t\t}\n\t\t\t\tif (checkStr.matches(s2)) {\n\t\t\t\t\tans = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < s1Length", "i", "s1Length", "i++", "i++", "i", "{\n\t\t\tif (s1.charAt(i) == s2.charAt(0)) {\n\t\t\t\tif ((i + 1) + s2Length > s1Length) {\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1));\n\t\t\t\t\t * System.out.println(\"範囲外文字列\" + (s1.substring(i, s1Length)\n\t\t\t\t\t * + s1.substring(0, s2Length - (s1Length - i))));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, s1Length)\n\t\t\t\t\t\t\t+ s1.substring(0, s2Length - (s1Length - i));\n\t\t\t\t} else {\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1)); System.out\n\t\t\t\t\t * .println(\"範囲内文字列\" + s1.substring(i, i + s2Length));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, i + s2Length);\n\t\t\t\t}\n\t\t\t\tif (checkStr.matches(s2)) {\n\t\t\t\t\tans = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tif (s1.charAt(i) == s2.charAt(0)) {\n\t\t\t\tif ((i + 1) + s2Length > s1Length) {\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1));\n\t\t\t\t\t * System.out.println(\"範囲外文字列\" + (s1.substring(i, s1Length)\n\t\t\t\t\t * + s1.substring(0, s2Length - (s1Length - i))));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, s1Length)\n\t\t\t\t\t\t\t+ s1.substring(0, s2Length - (s1Length - i));\n\t\t\t\t} else {\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1)); System.out\n\t\t\t\t\t * .println(\"範囲内文字列\" + s1.substring(i, i + s2Length));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, i + s2Length);\n\t\t\t\t}\n\t\t\t\tif (checkStr.matches(s2)) {\n\t\t\t\t\tans = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "if (s1.charAt(i) == s2.charAt(0)) {\n\t\t\t\tif ((i + 1) + s2Length > s1Length) {\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1));\n\t\t\t\t\t * System.out.println(\"範囲外文字列\" + (s1.substring(i, s1Length)\n\t\t\t\t\t * + s1.substring(0, s2Length - (s1Length - i))));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, s1Length)\n\t\t\t\t\t\t\t+ s1.substring(0, s2Length - (s1Length - i));\n\t\t\t\t} else {\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1)); System.out\n\t\t\t\t\t * .println(\"範囲内文字列\" + s1.substring(i, i + s2Length));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, i + s2Length);\n\t\t\t\t}\n\t\t\t\tif (checkStr.matches(s2)) {\n\t\t\t\t\tans = true;\n\t\t\t\t}\n\t\t\t}", "s1.charAt(i) == s2.charAt(0)", "s1.charAt(i)", "s1.charAt", "s1", "i", "s2.charAt(0)", "s2.charAt", "s2", "0", "{\n\t\t\t\tif ((i + 1) + s2Length > s1Length) {\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1));\n\t\t\t\t\t * System.out.println(\"範囲外文字列\" + (s1.substring(i, s1Length)\n\t\t\t\t\t * + s1.substring(0, s2Length - (s1Length - i))));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, s1Length)\n\t\t\t\t\t\t\t+ s1.substring(0, s2Length - (s1Length - i));\n\t\t\t\t} else {\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1)); System.out\n\t\t\t\t\t * .println(\"範囲内文字列\" + s1.substring(i, i + s2Length));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, i + s2Length);\n\t\t\t\t}\n\t\t\t\tif (checkStr.matches(s2)) {\n\t\t\t\t\tans = true;\n\t\t\t\t}\n\t\t\t}", "if ((i + 1) + s2Length > s1Length) {\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1));\n\t\t\t\t\t * System.out.println(\"範囲外文字列\" + (s1.substring(i, s1Length)\n\t\t\t\t\t * + s1.substring(0, s2Length - (s1Length - i))));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, s1Length)\n\t\t\t\t\t\t\t+ s1.substring(0, s2Length - (s1Length - i));\n\t\t\t\t} else {\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1)); System.out\n\t\t\t\t\t * .println(\"範囲内文字列\" + s1.substring(i, i + s2Length));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, i + s2Length);\n\t\t\t\t}", "(i + 1) + s2Length > s1Length", "(i + 1) + s2Length", "(i + 1)", "i", "1", "s2Length", "s1Length", "{\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1));\n\t\t\t\t\t * System.out.println(\"範囲外文字列\" + (s1.substring(i, s1Length)\n\t\t\t\t\t * + s1.substring(0, s2Length - (s1Length - i))));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, s1Length)\n\t\t\t\t\t\t\t+ s1.substring(0, s2Length - (s1Length - i));\n\t\t\t\t}", "checkStr = s1.substring(i, s1Length)\n\t\t\t\t\t\t\t+ s1.substring(0, s2Length - (s1Length - i))", "checkStr", "s1.substring(i, s1Length)\n\t\t\t\t\t\t\t+ s1.substring(0, s2Length - (s1Length - i))", "s1.substring(i, s1Length)", "s1.substring", "s1", "i", "s1Length", "s1.substring(0, s2Length - (s1Length - i))", "s1.substring", "s1", "0", "s2Length - (s1Length - i)", "s2Length", "(s1Length - i)", "s1Length", "i", "{\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1)); System.out\n\t\t\t\t\t * .println(\"範囲内文字列\" + s1.substring(i, i + s2Length));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, i + s2Length);\n\t\t\t\t}", "checkStr = s1.substring(i, i + s2Length)", "checkStr", "s1.substring(i, i + s2Length)", "s1.substring", "s1", "i", "i + s2Length", "i", "s2Length", "if (checkStr.matches(s2)) {\n\t\t\t\t\tans = true;\n\t\t\t\t}", "checkStr.matches(s2)", "checkStr.matches", "checkStr", "s2", "{\n\t\t\t\t\tans = true;\n\t\t\t\t}", "ans = true", "ans", "true", "if (ans) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "ans", "{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s1, s2, checkStr;\n\t\tboolean ans = false;\n\t\tint s1Length, s2Length;\n\t\ts1 = in.readLine();\n\t\ts2 = in.readLine();\n\t\ts1Length = s1.length();\n\t\ts2Length = s2.length();\n\t\t/*\n\t\t * System.out .println(\"s1Length:\" + s1Length +\n\t\t * System.getProperty(\"line.separator\") + \"s2Length:\" + s2Length);\n\t\t */\n\t\tfor (int i = 0; i < s1Length; i++) {\n\t\t\tif (s1.charAt(i) == s2.charAt(0)) {\n\t\t\t\tif ((i + 1) + s2Length > s1Length) {\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1));\n\t\t\t\t\t * System.out.println(\"範囲外文字列\" + (s1.substring(i, s1Length)\n\t\t\t\t\t * + s1.substring(0, s2Length - (s1Length - i))));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, s1Length)\n\t\t\t\t\t\t\t+ s1.substring(0, s2Length - (s1Length - i));\n\t\t\t\t} else {\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1)); System.out\n\t\t\t\t\t * .println(\"範囲内文字列\" + s1.substring(i, i + s2Length));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, i + s2Length);\n\t\t\t\t}\n\t\t\t\tif (checkStr.matches(s2)) {\n\t\t\t\t\tans = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (ans) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s1, s2, checkStr;\n\t\tboolean ans = false;\n\t\tint s1Length, s2Length;\n\t\ts1 = in.readLine();\n\t\ts2 = in.readLine();\n\t\ts1Length = s1.length();\n\t\ts2Length = s2.length();\n\t\t/*\n\t\t * System.out .println(\"s1Length:\" + s1Length +\n\t\t * System.getProperty(\"line.separator\") + \"s2Length:\" + s2Length);\n\t\t */\n\t\tfor (int i = 0; i < s1Length; i++) {\n\t\t\tif (s1.charAt(i) == s2.charAt(0)) {\n\t\t\t\tif ((i + 1) + s2Length > s1Length) {\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1));\n\t\t\t\t\t * System.out.println(\"範囲外文字列\" + (s1.substring(i, s1Length)\n\t\t\t\t\t * + s1.substring(0, s2Length - (s1Length - i))));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, s1Length)\n\t\t\t\t\t\t\t+ s1.substring(0, s2Length - (s1Length - i));\n\t\t\t\t} else {\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"文字番\" + (i + 1)); System.out\n\t\t\t\t\t * .println(\"範囲内文字列\" + s1.substring(i, i + s2Length));\n\t\t\t\t\t */\n\t\t\t\t\tcheckStr = s1.substring(i, i + s2Length);\n\t\t\t\t}\n\t\t\t\tif (checkStr.matches(s2)) {\n\t\t\t\t\tans = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (ans) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String s1, s2, checkStr; boolean ans = false; int s1Length, s2Length; s1 = in.readLine(); s2 = in.readLine(); s1Length = s1.length(); s2Length = s2.length(); /* * System.out .println("s1Length:" + s1Length + * System.getProperty("line.separator") + "s2Length:" + s2Length); */ for (int i = 0; i < s1Length; i++) { if (s1.charAt(i) == s2.charAt(0)) { if ((i + 1) + s2Length > s1Length) { /* * System.out.println("文字番" + (i + 1)); * System.out.println("範囲外文字列" + (s1.substring(i, s1Length) * + s1.substring(0, s2Length - (s1Length - i)))); */ checkStr = s1.substring(i, s1Length) + s1.substring(0, s2Length - (s1Length - i)); } else { /* * System.out.println("文字番" + (i + 1)); System.out * .println("範囲内文字列" + s1.substring(i, i + s2Length)); */ checkStr = s1.substring(i, i + s2Length); } if (checkStr.matches(s2)) { ans = true; } } } if (ans) { 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, 14, 4, 18, 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, 17, 13, 41, 13, 4, 18, 13, 13, 14, 4, 18, 13, 13, 30, 14, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 96, 5 ], [ 96, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 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 ], [ 26, 29 ], [ 25, 30 ], [ 30, 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 ], [ 51, 55 ], [ 48, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 48, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 62, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 68, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 8, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 77, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 6, 93 ], [ 93, 94 ], [ 0, 95 ], [ 95, 96 ], [ 95, 97 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString s = sc.nextLine();\n\t\tString p = sc.nextLine();\n\n\t\tboolean contain = false;\n\n\t\tif(s.contains(p)) {\n\t\t\tcontain = true;\n\t\t}\n\n\t\tfor(int i = 1;i<p.length();i++) {\n\t\t\tString end = p.substring(0,i);\n\t\t\tString start = p.substring(i);\n\t\t\tif(s.endsWith(end)){\n\t\t\t\tif(s.startsWith(start)) {\n\t\t\t\t\tcontain = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(contain) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\n\n\n\n\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString s = sc.nextLine();\n\t\tString p = sc.nextLine();\n\n\t\tboolean contain = false;\n\n\t\tif(s.contains(p)) {\n\t\t\tcontain = true;\n\t\t}\n\n\t\tfor(int i = 1;i<p.length();i++) {\n\t\t\tString end = p.substring(0,i);\n\t\t\tString start = p.substring(i);\n\t\t\tif(s.endsWith(end)){\n\t\t\t\tif(s.startsWith(start)) {\n\t\t\t\t\tcontain = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(contain) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\n\n\n\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString s = sc.nextLine();\n\t\tString p = sc.nextLine();\n\n\t\tboolean contain = false;\n\n\t\tif(s.contains(p)) {\n\t\t\tcontain = true;\n\t\t}\n\n\t\tfor(int i = 1;i<p.length();i++) {\n\t\t\tString end = p.substring(0,i);\n\t\t\tString start = p.substring(i);\n\t\t\tif(s.endsWith(end)){\n\t\t\t\tif(s.startsWith(start)) {\n\t\t\t\t\tcontain = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(contain) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\n\n\n\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString s = sc.nextLine();\n\t\tString p = sc.nextLine();\n\n\t\tboolean contain = false;\n\n\t\tif(s.contains(p)) {\n\t\t\tcontain = true;\n\t\t}\n\n\t\tfor(int i = 1;i<p.length();i++) {\n\t\t\tString end = p.substring(0,i);\n\t\t\tString start = p.substring(i);\n\t\t\tif(s.endsWith(end)){\n\t\t\t\tif(s.startsWith(start)) {\n\t\t\t\t\tcontain = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(contain) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\n\n\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 p = sc.nextLine();", "p", "sc.nextLine()", "sc.nextLine", "sc", "boolean contain = false;", "contain", "false", "if(s.contains(p)) {\n\t\t\tcontain = true;\n\t\t}", "s.contains(p)", "s.contains", "s", "p", "{\n\t\t\tcontain = true;\n\t\t}", "contain = true", "contain", "true", "for(int i = 1;i<p.length();i++) {\n\t\t\tString end = p.substring(0,i);\n\t\t\tString start = p.substring(i);\n\t\t\tif(s.endsWith(end)){\n\t\t\t\tif(s.startsWith(start)) {\n\t\t\t\t\tcontain = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i<p.length()", "i", "p.length()", "p.length", "p", "i++", "i++", "i", "{\n\t\t\tString end = p.substring(0,i);\n\t\t\tString start = p.substring(i);\n\t\t\tif(s.endsWith(end)){\n\t\t\t\tif(s.startsWith(start)) {\n\t\t\t\t\tcontain = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tString end = p.substring(0,i);\n\t\t\tString start = p.substring(i);\n\t\t\tif(s.endsWith(end)){\n\t\t\t\tif(s.startsWith(start)) {\n\t\t\t\t\tcontain = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "String end = p.substring(0,i);", "end", "p.substring(0,i)", "p.substring", "p", "0", "i", "String start = p.substring(i);", "start", "p.substring(i)", "p.substring", "p", "i", "if(s.endsWith(end)){\n\t\t\t\tif(s.startsWith(start)) {\n\t\t\t\t\tcontain = true;\n\t\t\t\t}\n\t\t\t}", "s.endsWith(end)", "s.endsWith", "s", "end", "{\n\t\t\t\tif(s.startsWith(start)) {\n\t\t\t\t\tcontain = true;\n\t\t\t\t}\n\t\t\t}", "if(s.startsWith(start)) {\n\t\t\t\t\tcontain = true;\n\t\t\t\t}", "s.startsWith(start)", "s.startsWith", "s", "start", "{\n\t\t\t\t\tcontain = true;\n\t\t\t\t}", "contain = true", "contain", "true", "if(contain) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "contain", "{\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\n\t\tString s = sc.nextLine();\n\t\tString p = sc.nextLine();\n\n\t\tboolean contain = false;\n\n\t\tif(s.contains(p)) {\n\t\t\tcontain = true;\n\t\t}\n\n\t\tfor(int i = 1;i<p.length();i++) {\n\t\t\tString end = p.substring(0,i);\n\t\t\tString start = p.substring(i);\n\t\t\tif(s.endsWith(end)){\n\t\t\t\tif(s.startsWith(start)) {\n\t\t\t\t\tcontain = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(contain) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\n\n\n\n\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString s = sc.nextLine();\n\t\tString p = sc.nextLine();\n\n\t\tboolean contain = false;\n\n\t\tif(s.contains(p)) {\n\t\t\tcontain = true;\n\t\t}\n\n\t\tfor(int i = 1;i<p.length();i++) {\n\t\t\tString end = p.substring(0,i);\n\t\t\tString start = p.substring(i);\n\t\t\tif(s.endsWith(end)){\n\t\t\t\tif(s.startsWith(start)) {\n\t\t\t\t\tcontain = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(contain) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\n\n\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 p = sc.nextLine(); boolean contain = false; if(s.contains(p)) { contain = true; } for(int i = 1;i<p.length();i++) { String end = p.substring(0,i); String start = p.substring(i); if(s.endsWith(end)){ if(s.startsWith(start)) { contain = true; } } } if(contain) { System.out.println("Yes"); } else { System.out.println("No"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 0, 13, 2, 2, 13, 17, 4, 18, 13, 42, 2, 13, 4, 18, 13, 30, 14, 2, 4, 18, 13, 13, 4, 18, 13, 13, 29, 17, 0, 13, 2, 2, 13, 17, 4, 18, 13, 40, 13, 29, 17, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 42, 2, 13, 4, 18, 13, 30, 14, 2, 4, 18, 13, 13, 4, 18, 13, 17, 30, 14, 4, 13, 13, 13, 13, 29, 17, 40, 13, 29, 17, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 4, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 133, 5 ], [ 133, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 21, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 28, 38 ], [ 38, 39 ], [ 27, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 47, 48 ], [ 27, 49 ], [ 49, 50 ], [ 8, 51 ], [ 51, 52 ], [ 6, 53 ], [ 53, 54 ], [ 6, 55 ], [ 55, 56 ], [ 6, 57 ], [ 57, 58 ], [ 133, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 65, 66 ], [ 65, 67 ], [ 61, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 68, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 76, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 75, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 87, 90 ], [ 87, 91 ], [ 86, 92 ], [ 92, 93 ], [ 74, 94 ], [ 94, 95 ], [ 61, 96 ], [ 96, 97 ], [ 59, 98 ], [ 98, 99 ], [ 59, 100 ], [ 100, 101 ], [ 133, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 104, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 116, 117 ], [ 104, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 123, 124 ], [ 123, 125 ], [ 123, 126 ], [ 104, 127 ], [ 127, 128 ], [ 128, 129 ], [ 102, 130 ], [ 130, 131 ], [ 0, 132 ], [ 132, 133 ], [ 132, 134 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\n public static boolean search(String ring, String pattern, int i) {\n int j = 1;\n i = (i + 1) % ring.length();\n while (j < pattern.length()) {\n if (ring.charAt(i) != pattern.charAt(j))\n return false;\n i = (i + 1) % ring.length();\n j++;\n }\n return true;\n }\n\n public static String patternInRing(String ring, String pattern) {\n int i = 0;\n boolean found = false;\n while (i < ring.length()) {\n if (ring.charAt(i) == pattern.charAt(0)) {\n if(search(ring, pattern, i))\n return \"Yes\";\n }\n i++;\n }\n return \"No\";\n }\n\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String ring = s.next();\n String pattern = s.next();\n System.out.println(patternInRing(ring, pattern));\n s.close();\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static boolean search(String ring, String pattern, int i) {\n int j = 1;\n i = (i + 1) % ring.length();\n while (j < pattern.length()) {\n if (ring.charAt(i) != pattern.charAt(j))\n return false;\n i = (i + 1) % ring.length();\n j++;\n }\n return true;\n }\n\n public static String patternInRing(String ring, String pattern) {\n int i = 0;\n boolean found = false;\n while (i < ring.length()) {\n if (ring.charAt(i) == pattern.charAt(0)) {\n if(search(ring, pattern, i))\n return \"Yes\";\n }\n i++;\n }\n return \"No\";\n }\n\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String ring = s.next();\n String pattern = s.next();\n System.out.println(patternInRing(ring, pattern));\n s.close();\n }\n}", "Main", "public static boolean search(String ring, String pattern, int i) {\n int j = 1;\n i = (i + 1) % ring.length();\n while (j < pattern.length()) {\n if (ring.charAt(i) != pattern.charAt(j))\n return false;\n i = (i + 1) % ring.length();\n j++;\n }\n return true;\n }", "search", "{\n int j = 1;\n i = (i + 1) % ring.length();\n while (j < pattern.length()) {\n if (ring.charAt(i) != pattern.charAt(j))\n return false;\n i = (i + 1) % ring.length();\n j++;\n }\n return true;\n }", "int j = 1;", "j", "1", "i = (i + 1) % ring.length()", "i", "(i + 1) % ring.length()", "(i + 1)", "i", "1", "ring.length()", "ring.length", "ring", "while (j < pattern.length()) {\n if (ring.charAt(i) != pattern.charAt(j))\n return false;\n i = (i + 1) % ring.length();\n j++;\n }", "j < pattern.length()", "j", "pattern.length()", "pattern.length", "pattern", "{\n if (ring.charAt(i) != pattern.charAt(j))\n return false;\n i = (i + 1) % ring.length();\n j++;\n }", "if (ring.charAt(i) != pattern.charAt(j))\n return false;", "ring.charAt(i) != pattern.charAt(j)", "ring.charAt(i)", "ring.charAt", "ring", "i", "pattern.charAt(j)", "pattern.charAt", "pattern", "j", "return false;", "false", "i = (i + 1) % ring.length()", "i", "(i + 1) % ring.length()", "(i + 1)", "i", "1", "ring.length()", "ring.length", "ring", "j++", "j", "return true;", "true", "String ring", "ring", "String pattern", "pattern", "int i", "i", "public static String patternInRing(String ring, String pattern) {\n int i = 0;\n boolean found = false;\n while (i < ring.length()) {\n if (ring.charAt(i) == pattern.charAt(0)) {\n if(search(ring, pattern, i))\n return \"Yes\";\n }\n i++;\n }\n return \"No\";\n }", "patternInRing", "{\n int i = 0;\n boolean found = false;\n while (i < ring.length()) {\n if (ring.charAt(i) == pattern.charAt(0)) {\n if(search(ring, pattern, i))\n return \"Yes\";\n }\n i++;\n }\n return \"No\";\n }", "int i = 0;", "i", "0", "boolean found = false;", "found", "false", "while (i < ring.length()) {\n if (ring.charAt(i) == pattern.charAt(0)) {\n if(search(ring, pattern, i))\n return \"Yes\";\n }\n i++;\n }", "i < ring.length()", "i", "ring.length()", "ring.length", "ring", "{\n if (ring.charAt(i) == pattern.charAt(0)) {\n if(search(ring, pattern, i))\n return \"Yes\";\n }\n i++;\n }", "if (ring.charAt(i) == pattern.charAt(0)) {\n if(search(ring, pattern, i))\n return \"Yes\";\n }", "ring.charAt(i) == pattern.charAt(0)", "ring.charAt(i)", "ring.charAt", "ring", "i", "pattern.charAt(0)", "pattern.charAt", "pattern", "0", "{\n if(search(ring, pattern, i))\n return \"Yes\";\n }", "if(search(ring, pattern, i))\n return \"Yes\";", "search(ring, pattern, i)", "search", "ring", "pattern", "i", "return \"Yes\";", "\"Yes\"", "i++", "i", "return \"No\";", "\"No\"", "String ring", "ring", "String pattern", "pattern", "public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String ring = s.next();\n String pattern = s.next();\n System.out.println(patternInRing(ring, pattern));\n s.close();\n }", "main", "{\n Scanner s = new Scanner(System.in);\n String ring = s.next();\n String pattern = s.next();\n System.out.println(patternInRing(ring, pattern));\n s.close();\n }", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "String ring = s.next();", "ring", "s.next()", "s.next", "s", "String pattern = s.next();", "pattern", "s.next()", "s.next", "s", "System.out.println(patternInRing(ring, pattern))", "System.out.println", "System.out", "System", "System.out", "patternInRing(ring, pattern)", "patternInRing", "ring", "pattern", "s.close()", "s.close", "s", "String[] args", "args", "public class Main {\n\n public static boolean search(String ring, String pattern, int i) {\n int j = 1;\n i = (i + 1) % ring.length();\n while (j < pattern.length()) {\n if (ring.charAt(i) != pattern.charAt(j))\n return false;\n i = (i + 1) % ring.length();\n j++;\n }\n return true;\n }\n\n public static String patternInRing(String ring, String pattern) {\n int i = 0;\n boolean found = false;\n while (i < ring.length()) {\n if (ring.charAt(i) == pattern.charAt(0)) {\n if(search(ring, pattern, i))\n return \"Yes\";\n }\n i++;\n }\n return \"No\";\n }\n\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String ring = s.next();\n String pattern = s.next();\n System.out.println(patternInRing(ring, pattern));\n s.close();\n }\n}", "public class Main {\n\n public static boolean search(String ring, String pattern, int i) {\n int j = 1;\n i = (i + 1) % ring.length();\n while (j < pattern.length()) {\n if (ring.charAt(i) != pattern.charAt(j))\n return false;\n i = (i + 1) % ring.length();\n j++;\n }\n return true;\n }\n\n public static String patternInRing(String ring, String pattern) {\n int i = 0;\n boolean found = false;\n while (i < ring.length()) {\n if (ring.charAt(i) == pattern.charAt(0)) {\n if(search(ring, pattern, i))\n return \"Yes\";\n }\n i++;\n }\n return \"No\";\n }\n\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String ring = s.next();\n String pattern = s.next();\n System.out.println(patternInRing(ring, pattern));\n s.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static boolean search(String ring, String pattern, int i) { int j = 1; i = (i + 1) % ring.length(); while (j < pattern.length()) { if (ring.charAt(i) != pattern.charAt(j)) return false; i = (i + 1) % ring.length(); j++; } return true; } public static String patternInRing(String ring, String pattern) { int i = 0; boolean found = false; while (i < ring.length()) { if (ring.charAt(i) == pattern.charAt(0)) { if(search(ring, pattern, i)) return "Yes"; } i++; } return "No"; } public static void main(String[] args) { Scanner s = new Scanner(System.in); String ring = s.next(); String pattern = s.next(); System.out.println(patternInRing(ring, pattern)); s.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 11, 1, 0, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 2, 2, 13, 13, 4, 18, 13, 14, 2, 4, 18, 13, 13, 4, 18, 13, 13, 3, 14, 2, 13, 4, 18, 13, 30, 4, 18, 18, 13, 13, 17, 4, 18, 13, 17, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 4, 18, 13, 17, 4, 13, 13, 13, 13, 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 ], [ 8, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 11, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 11, 21 ], [ 21, 22 ], [ 22, 23 ], [ 11, 24 ], [ 25, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 33, 34 ], [ 25, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 36, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 35, 45 ], [ 8, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 46, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 52, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 6, 63 ], [ 63, 64 ], [ 6, 65 ], [ 65, 66 ], [ 6, 67 ], [ 67, 68 ], [ 4, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 71, 77 ], [ 77, 78 ], [ 71, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 71, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 71, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 89, 99 ], [ 99, 100 ], [ 100, 101 ], [ 89, 102 ], [ 103, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 105, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 104, 114 ], [ 114, 115 ], [ 114, 116 ], [ 114, 117 ], [ 114, 118 ], [ 71, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 69, 125 ], [ 125, 126 ] ]
[ "import java.util.Scanner;\nclass Main{\n public static void next(String s, int index, String p){\n int i;\n for(i = 1; i < p.length(); i++){\n int sub2 = (index+i)%s.length();\n if(s.charAt(sub2) != p.charAt(i))break;\n }\n if(i == p.length()){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n String s, pattern;\n s = scanner.nextLine();\n pattern = scanner.nextLine();\n\n for(int i = 0; i < s.length(); i++){\n if(s.charAt(i) == pattern.charAt(0))next(s, i, pattern);\n }\n System.out.println(\"No\");\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void next(String s, int index, String p){\n int i;\n for(i = 1; i < p.length(); i++){\n int sub2 = (index+i)%s.length();\n if(s.charAt(sub2) != p.charAt(i))break;\n }\n if(i == p.length()){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n String s, pattern;\n s = scanner.nextLine();\n pattern = scanner.nextLine();\n\n for(int i = 0; i < s.length(); i++){\n if(s.charAt(i) == pattern.charAt(0))next(s, i, pattern);\n }\n System.out.println(\"No\");\n }\n}", "Main", "public static void next(String s, int index, String p){\n int i;\n for(i = 1; i < p.length(); i++){\n int sub2 = (index+i)%s.length();\n if(s.charAt(sub2) != p.charAt(i))break;\n }\n if(i == p.length()){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }", "next", "{\n int i;\n for(i = 1; i < p.length(); i++){\n int sub2 = (index+i)%s.length();\n if(s.charAt(sub2) != p.charAt(i))break;\n }\n if(i == p.length()){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }", "int i;", "i", "for(i = 1; i < p.length(); i++){\n int sub2 = (index+i)%s.length();\n if(s.charAt(sub2) != p.charAt(i))break;\n }", "i = 1;", "i = 1", "i", "1", "i < p.length()", "i", "p.length()", "p.length", "p", "i++", "i++", "i", "{\n int sub2 = (index+i)%s.length();\n if(s.charAt(sub2) != p.charAt(i))break;\n }", "{\n int sub2 = (index+i)%s.length();\n if(s.charAt(sub2) != p.charAt(i))break;\n }", "int sub2 = (index+i)%s.length();", "sub2", "(index+i)%s.length()", "(index+i)", "index", "i", "s.length()", "s.length", "s", "if(s.charAt(sub2) != p.charAt(i))break;", "s.charAt(sub2) != p.charAt(i)", "s.charAt(sub2)", "s.charAt", "s", "sub2", "p.charAt(i)", "p.charAt", "p", "i", "break;", "if(i == p.length()){\n System.out.println(\"Yes\");\n System.exit(0);\n }", "i == p.length()", "i", "p.length()", "p.length", "p", "{\n System.out.println(\"Yes\");\n System.exit(0);\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.exit(0)", "System.exit", "System", "0", "String s", "s", "int index", "index", "String p", "p", "public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n\n String s, pattern;\n s = scanner.nextLine();\n pattern = scanner.nextLine();\n\n for(int i = 0; i < s.length(); i++){\n if(s.charAt(i) == pattern.charAt(0))next(s, i, pattern);\n }\n System.out.println(\"No\");\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n\n String s, pattern;\n s = scanner.nextLine();\n pattern = scanner.nextLine();\n\n for(int i = 0; i < s.length(); i++){\n if(s.charAt(i) == pattern.charAt(0))next(s, i, pattern);\n }\n System.out.println(\"No\");\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String s", "s", "pattern;", "pattern", "s = scanner.nextLine()", "s", "scanner.nextLine()", "scanner.nextLine", "scanner", "pattern = scanner.nextLine()", "pattern", "scanner.nextLine()", "scanner.nextLine", "scanner", "for(int i = 0; i < s.length(); i++){\n if(s.charAt(i) == pattern.charAt(0))next(s, i, pattern);\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) == pattern.charAt(0))next(s, i, pattern);\n }", "{\n if(s.charAt(i) == pattern.charAt(0))next(s, i, pattern);\n }", "if(s.charAt(i) == pattern.charAt(0))next(s, i, pattern);", "s.charAt(i) == pattern.charAt(0)", "s.charAt(i)", "s.charAt", "s", "i", "pattern.charAt(0)", "pattern.charAt", "pattern", "0", "next(s, i, pattern)", "next", "s", "i", "pattern", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void next(String s, int index, String p){ int i; for(i = 1; i < p.length(); i++){ int sub2 = (index+i)%s.length(); if(s.charAt(sub2) != p.charAt(i))break; } if(i == p.length()){ System.out.println("Yes"); System.exit(0); } } public static void main(String[] args){ Scanner scanner = new Scanner(System.in); String s, pattern; s = scanner.nextLine(); pattern = scanner.nextLine(); for(int i = 0; i < s.length(); i++){ if(s.charAt(i) == pattern.charAt(0))next(s, i, pattern); } System.out.println("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 8, 13, 17, 17, 23, 13, 6, 13, 12, 13, 30, 4, 13, 17, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 69, 8 ], [ 69, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 19, 24 ], [ 15, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 25, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 25, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 53, 56 ], [ 9, 57 ], [ 57, 58 ], [ 69, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 59, 67 ], [ 0, 68 ], [ 68, 69 ], [ 68, 70 ] ]
[ "import java.util.NoSuchElementException;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n try {\n String s = sc.nextLine();\n String p = sc.nextLine();\n String ss = s.concat(s);\n boolean hasAString = ss.contains(p);\n System.out.println(hasAString ? \"Yes\" : \"No\");\n } catch (IllegalTestCaseException\n | NoSuchElementException\n | NumberFormatException e) {\n System.out.println(e);\n }\n }\n\n private static class IllegalTestCaseException extends RuntimeException {\n IllegalTestCaseException() {\n super(\"Illegal condition.\");\n }\n }\n}\n", "import java.util.NoSuchElementException;", "NoSuchElementException", "java.util", "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 try {\n String s = sc.nextLine();\n String p = sc.nextLine();\n String ss = s.concat(s);\n boolean hasAString = ss.contains(p);\n System.out.println(hasAString ? \"Yes\" : \"No\");\n } catch (IllegalTestCaseException\n | NoSuchElementException\n | NumberFormatException e) {\n System.out.println(e);\n }\n }\n\n private static class IllegalTestCaseException extends RuntimeException {\n IllegalTestCaseException() {\n super(\"Illegal condition.\");\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n try {\n String s = sc.nextLine();\n String p = sc.nextLine();\n String ss = s.concat(s);\n boolean hasAString = ss.contains(p);\n System.out.println(hasAString ? \"Yes\" : \"No\");\n } catch (IllegalTestCaseException\n | NoSuchElementException\n | NumberFormatException e) {\n System.out.println(e);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n try {\n String s = sc.nextLine();\n String p = sc.nextLine();\n String ss = s.concat(s);\n boolean hasAString = ss.contains(p);\n System.out.println(hasAString ? \"Yes\" : \"No\");\n } catch (IllegalTestCaseException\n | NoSuchElementException\n | NumberFormatException e) {\n System.out.println(e);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "try {\n String s = sc.nextLine();\n String p = sc.nextLine();\n String ss = s.concat(s);\n boolean hasAString = ss.contains(p);\n System.out.println(hasAString ? \"Yes\" : \"No\");\n } catch (IllegalTestCaseException\n | NoSuchElementException\n | NumberFormatException e) {\n System.out.println(e);\n }", "catch (IllegalTestCaseException\n | NoSuchElementException\n | NumberFormatException e) {\n System.out.println(e);\n }", "IllegalTestCaseException\n | NoSuchElementException\n | NumberFormatException e", "{\n System.out.println(e);\n }", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "{\n String s = sc.nextLine();\n String p = sc.nextLine();\n String ss = s.concat(s);\n boolean hasAString = ss.contains(p);\n System.out.println(hasAString ? \"Yes\" : \"No\");\n }", "String s = sc.nextLine();", "s", "sc.nextLine()", "sc.nextLine", "sc", "String p = sc.nextLine();", "p", "sc.nextLine()", "sc.nextLine", "sc", "String ss = s.concat(s);", "ss", "s.concat(s)", "s.concat", "s", "s", "boolean hasAString = ss.contains(p);", "hasAString", "ss.contains(p)", "ss.contains", "ss", "p", "System.out.println(hasAString ? \"Yes\" : \"No\")", "System.out.println", "System.out", "System", "System.out", "hasAString ? \"Yes\" : \"No\"", "hasAString", "\"Yes\"", "\"No\"", "String[] args", "args", "private static class IllegalTestCaseException extends RuntimeException {\n IllegalTestCaseException() {\n super(\"Illegal condition.\");\n }\n }", "IllegalTestCaseException", "IllegalTestCaseException() {\n super(\"Illegal condition.\");\n }", "IllegalTestCaseException", "{\n super(\"Illegal condition.\");\n }", "super(\"Illegal condition.\")", "super", "\"Illegal condition.\"", "RuntimeException", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n try {\n String s = sc.nextLine();\n String p = sc.nextLine();\n String ss = s.concat(s);\n boolean hasAString = ss.contains(p);\n System.out.println(hasAString ? \"Yes\" : \"No\");\n } catch (IllegalTestCaseException\n | NoSuchElementException\n | NumberFormatException e) {\n System.out.println(e);\n }\n }\n\n private static class IllegalTestCaseException extends RuntimeException {\n IllegalTestCaseException() {\n super(\"Illegal condition.\");\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n try {\n String s = sc.nextLine();\n String p = sc.nextLine();\n String ss = s.concat(s);\n boolean hasAString = ss.contains(p);\n System.out.println(hasAString ? \"Yes\" : \"No\");\n } catch (IllegalTestCaseException\n | NoSuchElementException\n | NumberFormatException e) {\n System.out.println(e);\n }\n }\n\n private static class IllegalTestCaseException extends RuntimeException {\n IllegalTestCaseException() {\n super(\"Illegal condition.\");\n }\n }\n}", "Main" ]
import java.util.NoSuchElementException; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); try { String s = sc.nextLine(); String p = sc.nextLine(); String ss = s.concat(s); boolean hasAString = ss.contains(p); System.out.println(hasAString ? "Yes" : "No"); } catch (IllegalTestCaseException | NoSuchElementException | NumberFormatException e) { System.out.println(e); } } private static class IllegalTestCaseException extends RuntimeException { IllegalTestCaseException() { super("Illegal condition."); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 0, 13, 2, 13, 13, 14, 2, 4, 18, 13, 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 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 29, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 29, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 6, 48 ], [ 48, 49 ] ]
[ "import java.io.*;\n\nclass Main{\n\tpublic static void main(String args[]) throws IOException{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = buf.readLine();\n\t\tString p = buf.readLine();\n\t\tString str1;\n\n\t\tstr1 = s+s;\n\n\t\tif(str1.contains(p) == true)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\t\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main{\n\tpublic static void main(String args[]) throws IOException{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = buf.readLine();\n\t\tString p = buf.readLine();\n\t\tString str1;\n\n\t\tstr1 = s+s;\n\n\t\tif(str1.contains(p) == true)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\t\n\t}\n}", "Main", "public static void main(String args[]) throws IOException{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = buf.readLine();\n\t\tString p = buf.readLine();\n\t\tString str1;\n\n\t\tstr1 = s+s;\n\n\t\tif(str1.contains(p) == true)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\t\n\t}", "main", "{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = buf.readLine();\n\t\tString p = buf.readLine();\n\t\tString str1;\n\n\t\tstr1 = s+s;\n\n\t\tif(str1.contains(p) == true)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\t\n\t}", "BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));", "buf", "new BufferedReader(new InputStreamReader(System.in))", "String s = buf.readLine();", "s", "buf.readLine()", "buf.readLine", "buf", "String p = buf.readLine();", "p", "buf.readLine()", "buf.readLine", "buf", "String str1;", "str1", "str1 = s+s", "str1", "s+s", "s", "s", "if(str1.contains(p) == true)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");", "str1.contains(p) == true", "str1.contains(p)", "str1.contains", "str1", "p", "true", "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.io.*; class Main{ public static void main(String args[]) throws IOException{ BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); String s = buf.readLine(); String p = buf.readLine(); String str1; str1 = s+s; if(str1.contains(p) == true) System.out.println("Yes"); else System.out.println("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 18, 13, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 0, 13, 13, 14, 2, 4, 18, 13, 13, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 11, 13 ], [ 7, 14 ], [ 14, 15 ], [ 14, 16 ], [ 7, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 19, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 19, 34 ], [ 34, 35 ], [ 34, 36 ], [ 19, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 38, 43 ], [ 37, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 37, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 17, 54 ], [ 54, 55 ] ]
[ "import java.util.*;\nimport java.io.*;\n\nclass Main {\n\tstatic PrintStream out = System.out;\n\tstatic Scanner in = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\tString s = in.nextLine().trim();\n\t\tString p = in.nextLine().trim();\n\t\ts += s;\n\t\tif (s.indexOf(p) < 0) {\n\t\t\tout.println(\"No\");\n\t\t} else {\n\t\t\tout.println(\"Yes\");\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "class Main {\n\tstatic PrintStream out = System.out;\n\tstatic Scanner in = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\tString s = in.nextLine().trim();\n\t\tString p = in.nextLine().trim();\n\t\ts += s;\n\t\tif (s.indexOf(p) < 0) {\n\t\t\tout.println(\"No\");\n\t\t} else {\n\t\t\tout.println(\"Yes\");\n\t\t}\n\t}\n}", "Main", "static PrintStream out = System.out;", "out", "System.out", "System", "System.out", "static Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "public static void main(String[] args) {\n\t\tString s = in.nextLine().trim();\n\t\tString p = in.nextLine().trim();\n\t\ts += s;\n\t\tif (s.indexOf(p) < 0) {\n\t\t\tout.println(\"No\");\n\t\t} else {\n\t\t\tout.println(\"Yes\");\n\t\t}\n\t}", "main", "{\n\t\tString s = in.nextLine().trim();\n\t\tString p = in.nextLine().trim();\n\t\ts += s;\n\t\tif (s.indexOf(p) < 0) {\n\t\t\tout.println(\"No\");\n\t\t} else {\n\t\t\tout.println(\"Yes\");\n\t\t}\n\t}", "String s = in.nextLine().trim();", "s", "in.nextLine().trim()", "in.nextLine().trim", "in.nextLine()", "in.nextLine", "in", "String p = in.nextLine().trim();", "p", "in.nextLine().trim()", "in.nextLine().trim", "in.nextLine()", "in.nextLine", "in", "s += s", "s", "s", "if (s.indexOf(p) < 0) {\n\t\t\tout.println(\"No\");\n\t\t} else {\n\t\t\tout.println(\"Yes\");\n\t\t}", "s.indexOf(p) < 0", "s.indexOf(p)", "s.indexOf", "s", "p", "0", "{\n\t\t\tout.println(\"No\");\n\t\t}", "out.println(\"No\")", "out.println", "out", "\"No\"", "{\n\t\t\tout.println(\"Yes\");\n\t\t}", "out.println(\"Yes\")", "out.println", "out", "\"Yes\"", "String[] args", "args" ]
import java.util.*; import java.io.*; class Main { static PrintStream out = System.out; static Scanner in = new Scanner(System.in); public static void main(String[] args) { String s = in.nextLine().trim(); String p = in.nextLine().trim(); s += s; if (s.indexOf(p) < 0) { out.println("No"); } else { out.println("Yes"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 4, 18, 18, 13, 13, 8, 4, 18, 2, 18, 13, 17, 18, 13, 17, 18, 13, 17, 17, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 38, 5 ], [ 38, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 15, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 27, 29 ], [ 21, 30 ], [ 30, 31 ], [ 30, 32 ], [ 20, 33 ], [ 20, 34 ], [ 6, 35 ], [ 35, 36 ], [ 0, 37 ], [ 37, 38 ], [ 37, 39 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] s = new String[]{sc.next(), sc.next()};\n System.out.println((s[0] + s[0]).contains(s[1]) ? \"Yes\" : \"No\");\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] s = new String[]{sc.next(), sc.next()};\n System.out.println((s[0] + s[0]).contains(s[1]) ? \"Yes\" : \"No\");\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] s = new String[]{sc.next(), sc.next()};\n System.out.println((s[0] + s[0]).contains(s[1]) ? \"Yes\" : \"No\");\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String[] s = new String[]{sc.next(), sc.next()};\n System.out.println((s[0] + s[0]).contains(s[1]) ? \"Yes\" : \"No\");\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String[] s = new String[]{sc.next(), sc.next()};", "s", "new String[]{sc.next(), sc.next()}", "System.out.println((s[0] + s[0]).contains(s[1]) ? \"Yes\" : \"No\")", "System.out.println", "System.out", "System", "System.out", "(s[0] + s[0]).contains(s[1]) ? \"Yes\" : \"No\"", "(s[0] + s[0]).contains(s[1])", "(s[0] + s[0]).contains", "(s[0] + s[0])", "s[0]", "s", "0", "s[0]", "s", "0", "s[1]", "s", "1", "\"Yes\"", "\"No\"", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] s = new String[]{sc.next(), sc.next()};\n System.out.println((s[0] + s[0]).contains(s[1]) ? \"Yes\" : \"No\");\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String[] s = new String[]{sc.next(), sc.next()};\n System.out.println((s[0] + s[0]).contains(s[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 = new String[]{sc.next(), sc.next()}; System.out.println((s[0] + s[0]).contains(s[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, 4, 18, 13, 0, 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 ], [ 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 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 28, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 6, 47 ], [ 47, 48 ], [ 0, 49 ], [ 49, 50 ], [ 49, 51 ] ]
[ "import java.util.Scanner;\n\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString circle = sc.next();\n\t\tString str = sc.next();\n\t\tsc.close();\n\t\tcircle+=circle;\n\t\tif(circle.contains(str)) {\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 circle = sc.next();\n\t\tString str = sc.next();\n\t\tsc.close();\n\t\tcircle+=circle;\n\t\tif(circle.contains(str)) {\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 circle = sc.next();\n\t\tString str = sc.next();\n\t\tsc.close();\n\t\tcircle+=circle;\n\t\tif(circle.contains(str)) {\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 circle = sc.next();\n\t\tString str = sc.next();\n\t\tsc.close();\n\t\tcircle+=circle;\n\t\tif(circle.contains(str)) {\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 circle = sc.next();", "circle", "sc.next()", "sc.next", "sc", "String str = sc.next();", "str", "sc.next()", "sc.next", "sc", "sc.close()", "sc.close", "sc", "circle+=circle", "circle", "circle", "if(circle.contains(str)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "circle.contains(str)", "circle.contains", "circle", "str", "{\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 circle = sc.next();\n\t\tString str = sc.next();\n\t\tsc.close();\n\t\tcircle+=circle;\n\t\tif(circle.contains(str)) {\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 circle = sc.next();\n\t\tString str = sc.next();\n\t\tsc.close();\n\t\tcircle+=circle;\n\t\tif(circle.contains(str)) {\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 circle = sc.next(); String str = sc.next(); sc.close(); circle+=circle; if(circle.contains(str)) { System.out.println("Yes"); }else { System.out.println("No"); } } }
[ 7, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 4, 18, 2, 13, 13, 13, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 23, 13, 23, 13, 12, 13, 30, 4, 18, 20, 18, 13, 13, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 59, 2 ], [ 59, 3 ], [ 3, 4 ], [ 3, 5 ], [ 5, 6 ], [ 6, 7 ], [ 6, 8 ], [ 5, 9 ], [ 9, 10 ], [ 5, 11 ], [ 11, 12 ], [ 5, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 5, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 5, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 23, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 23, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 3, 40 ], [ 40, 41 ], [ 3, 42 ], [ 42, 43 ], [ 59, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 50, 52 ], [ 47, 53 ], [ 53, 54 ], [ 53, 55 ], [ 44, 56 ], [ 56, 57 ], [ 0, 58 ], [ 58, 59 ], [ 58, 60 ] ]
[ "public class Main {\n\t\n\tpublic void run(java.io.InputStream in, java.io.PrintStream out) {\n\t\tfinal java.util.Scanner sc = new java.util.Scanner(in);\n\t\tString s, p;\n\t\t\n\t\ts = sc.next();\n\t\tp = sc.next();\n\t\t\n\t\tif ((s + s).contains(p)) {\n\t\t\tout.println(\"Yes\");\n\t\t} else {\n\t\t\tout.println(\"No\");\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t(new Main()).run(System.in, System.out);\n\t}\n\n}", "public class Main {\n\t\n\tpublic void run(java.io.InputStream in, java.io.PrintStream out) {\n\t\tfinal java.util.Scanner sc = new java.util.Scanner(in);\n\t\tString s, p;\n\t\t\n\t\ts = sc.next();\n\t\tp = sc.next();\n\t\t\n\t\tif ((s + s).contains(p)) {\n\t\t\tout.println(\"Yes\");\n\t\t} else {\n\t\t\tout.println(\"No\");\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t(new Main()).run(System.in, System.out);\n\t}\n\n}", "Main", "public void run(java.io.InputStream in, java.io.PrintStream out) {\n\t\tfinal java.util.Scanner sc = new java.util.Scanner(in);\n\t\tString s, p;\n\t\t\n\t\ts = sc.next();\n\t\tp = sc.next();\n\t\t\n\t\tif ((s + s).contains(p)) {\n\t\t\tout.println(\"Yes\");\n\t\t} else {\n\t\t\tout.println(\"No\");\n\t\t}\n\t}", "run", "{\n\t\tfinal java.util.Scanner sc = new java.util.Scanner(in);\n\t\tString s, p;\n\t\t\n\t\ts = sc.next();\n\t\tp = sc.next();\n\t\t\n\t\tif ((s + s).contains(p)) {\n\t\t\tout.println(\"Yes\");\n\t\t} else {\n\t\t\tout.println(\"No\");\n\t\t}\n\t}", "final java.util.Scanner sc = new java.util.Scanner(in);", "sc", "new java.util.Scanner(in)", "String s", "s", "p;", "p", "s = sc.next()", "s", "sc.next()", "sc.next", "sc", "p = sc.next()", "p", "sc.next()", "sc.next", "sc", "if ((s + s).contains(p)) {\n\t\t\tout.println(\"Yes\");\n\t\t} else {\n\t\t\tout.println(\"No\");\n\t\t}", "(s + s).contains(p)", "(s + s).contains", "(s + s)", "s", "s", "p", "{\n\t\t\tout.println(\"Yes\");\n\t\t}", "out.println(\"Yes\")", "out.println", "out", "\"Yes\"", "{\n\t\t\tout.println(\"No\");\n\t\t}", "out.println(\"No\")", "out.println", "out", "\"No\"", "java.io.InputStream in", "in", "java.io.PrintStream out", "out", "public static void main(String[] args) {\n\t\t(new Main()).run(System.in, System.out);\n\t}", "main", "{\n\t\t(new Main()).run(System.in, System.out);\n\t}", "(new Main()).run(System.in, System.out)", "(new Main()).run", "(new Main())", "System.in", "System", "System.in", "System.out", "System", "System.out", "String[] args", "args", "public class Main {\n\t\n\tpublic void run(java.io.InputStream in, java.io.PrintStream out) {\n\t\tfinal java.util.Scanner sc = new java.util.Scanner(in);\n\t\tString s, p;\n\t\t\n\t\ts = sc.next();\n\t\tp = sc.next();\n\t\t\n\t\tif ((s + s).contains(p)) {\n\t\t\tout.println(\"Yes\");\n\t\t} else {\n\t\t\tout.println(\"No\");\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t(new Main()).run(System.in, System.out);\n\t}\n\n}", "public class Main {\n\t\n\tpublic void run(java.io.InputStream in, java.io.PrintStream out) {\n\t\tfinal java.util.Scanner sc = new java.util.Scanner(in);\n\t\tString s, p;\n\t\t\n\t\ts = sc.next();\n\t\tp = sc.next();\n\t\t\n\t\tif ((s + s).contains(p)) {\n\t\t\tout.println(\"Yes\");\n\t\t} else {\n\t\t\tout.println(\"No\");\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t(new Main()).run(System.in, System.out);\n\t}\n\n}", "Main" ]
public class Main { public void run(java.io.InputStream in, java.io.PrintStream out) { final java.util.Scanner sc = new java.util.Scanner(in); String s, p; s = sc.next(); p = sc.next(); if ((s + s).contains(p)) { out.println("Yes"); } else { out.println("No"); } } public static void main(String[] args) { (new Main()).run(System.in, System.out); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 14, 4, 18, 13, 2, 2, 17, 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 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 27, 29 ], [ 8, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 35, 35 ], [ 35, 36 ], [ 35, 37 ], [ 35, 38 ], [ 30, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 30, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 6, 53 ], [ 53, 54 ], [ 0, 55 ], [ 55, 56 ], [ 55, 57 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\n\t\tString ss = s + s;\n\t\tif (ss.matches(\".*\" + p + \".*\")) {\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 scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\n\t\tString ss = s + s;\n\t\tif (ss.matches(\".*\" + p + \".*\")) {\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 scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\n\t\tString ss = s + s;\n\t\tif (ss.matches(\".*\" + p + \".*\")) {\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\tStringBuilder sb = new StringBuilder();\n\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\n\t\tString ss = s + s;\n\t\tif (ss.matches(\".*\" + p + \".*\")) {\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)", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "String s = scan.nextLine();", "s", "scan.nextLine()", "scan.nextLine", "scan", "String p = scan.nextLine();", "p", "scan.nextLine()", "scan.nextLine", "scan", "String ss = s + s;", "ss", "s + s", "s", "s", "if (ss.matches(\".*\" + p + \".*\")) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "ss.matches(\".*\" + p + \".*\")", "ss.matches", "ss", "\".*\" + p + \".*\"", "\".*\" + p + \".*\"", "\".*\"", "p", "\".*\"", "{\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\tStringBuilder sb = new StringBuilder();\n\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\n\t\tString ss = s + s;\n\t\tif (ss.matches(\".*\" + p + \".*\")) {\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 scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\n\t\tString ss = s + s;\n\t\tif (ss.matches(\".*\" + p + \".*\")) {\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 scan = new Scanner(System.in); StringBuilder sb = new StringBuilder(); String s = scan.nextLine(); String p = scan.nextLine(); String ss = s + s; if (ss.matches(".*" + p + ".*")) { 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, 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 ], [ 49, 5 ], [ 49, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 27, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 27, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 6, 46 ], [ 46, 47 ], [ 0, 48 ], [ 48, 49 ], [ 48, 50 ] ]
[ "import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n String xa = s + s;\n if(xa.contains(p)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n String xa = s + s;\n if(xa.contains(p)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n String xa = s + s;\n if(xa.contains(p)){\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 p = sc.nextLine();\n String xa = s + s;\n if(xa.contains(p)){\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 p = sc.nextLine();", "p", "sc.nextLine()", "sc.nextLine", "sc", "String xa = s + s;", "xa", "s + s", "s", "s", "if(xa.contains(p)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }", "xa.contains(p)", "xa.contains", "xa", "p", "{\n System.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n System.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n String xa = s + s;\n if(xa.contains(p)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n String xa = s + s;\n if(xa.contains(p)){\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.nextLine(); String p = sc.nextLine(); String xa = s + s; if(xa.contains(p)){ 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, 17, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 8, 2, 4, 18, 13, 13, 40, 17, 17, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 11, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 21, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 11, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 41, 43 ], [ 11, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 50, 55 ], [ 55, 56 ], [ 49, 57 ], [ 49, 58 ], [ 9, 59 ], [ 59, 60 ] ]
[ "import java.util.*;\nimport java.io.*;\n\nclass Main {\n public static void main(String args[]) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s = \"\";\n String p = \"\";\n try {\n s = br.readLine();\n p = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n s = s + s;\n System.out.println(s.indexOf(p) != -1? \"Yes\" : \"No\");\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "class Main {\n public static void main(String args[]) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s = \"\";\n String p = \"\";\n try {\n s = br.readLine();\n p = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n s = s + s;\n System.out.println(s.indexOf(p) != -1? \"Yes\" : \"No\");\n }\n}", "Main", "public static void main(String args[]) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s = \"\";\n String p = \"\";\n try {\n s = br.readLine();\n p = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n s = s + s;\n System.out.println(s.indexOf(p) != -1? \"Yes\" : \"No\");\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s = \"\";\n String p = \"\";\n try {\n s = br.readLine();\n p = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n s = s + s;\n System.out.println(s.indexOf(p) != -1? \"Yes\" : \"No\");\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String s = \"\";", "s", "\"\"", "String p = \"\";", "p", "\"\"", "try {\n s = br.readLine();\n p = 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 s = br.readLine();\n p = br.readLine();\n }", "s = br.readLine()", "s", "br.readLine()", "br.readLine", "br", "p = br.readLine()", "p", "br.readLine()", "br.readLine", "br", "s = s + s", "s", "s + s", "s", "s", "System.out.println(s.indexOf(p) != -1? \"Yes\" : \"No\")", "System.out.println", "System.out", "System", "System.out", "s.indexOf(p) != -1? \"Yes\" : \"No\"", "s.indexOf(p) != -1", "s.indexOf(p)", "s.indexOf", "s", "p", "-1", "1", "\"Yes\"", "\"No\"", "String args[]", "args" ]
import java.util.*; import java.io.*; class Main { public static void main(String args[]) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String s = ""; String p = ""; try { s = br.readLine(); p = br.readLine(); } catch (IOException e) { e.printStackTrace(); } s = s + s; System.out.println(s.indexOf(p) != -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, 41, 13, 2, 13, 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 ], [ 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 ], [ 22, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 27, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 27, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 8, 46 ], [ 46, 47 ], [ 47, 48 ], [ 6, 49 ], [ 49, 50 ], [ 0, 51 ], [ 51, 52 ], [ 51, 53 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n String s1 = scn.nextLine();\n String s2 = scn.nextLine();\n\n String ring = s1 +s1;\n\n if(ring.contains(s2)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n\n scn.close();\n\n\n }\n\n\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n String s1 = scn.nextLine();\n String s2 = scn.nextLine();\n\n String ring = s1 +s1;\n\n if(ring.contains(s2)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n\n scn.close();\n\n\n }\n\n\n\n}", "Main", "public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n String s1 = scn.nextLine();\n String s2 = scn.nextLine();\n\n String ring = s1 +s1;\n\n if(ring.contains(s2)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n\n scn.close();\n\n\n }", "main", "{\n Scanner scn = new Scanner(System.in);\n String s1 = scn.nextLine();\n String s2 = scn.nextLine();\n\n String ring = s1 +s1;\n\n if(ring.contains(s2)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n\n scn.close();\n\n\n }", "Scanner scn = new Scanner(System.in);", "scn", "new Scanner(System.in)", "String s1 = scn.nextLine();", "s1", "scn.nextLine()", "scn.nextLine", "scn", "String s2 = scn.nextLine();", "s2", "scn.nextLine()", "scn.nextLine", "scn", "String ring = s1 +s1;", "ring", "s1 +s1", "s1", "s1", "if(ring.contains(s2)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }", "ring.contains(s2)", "ring.contains", "ring", "s2", "{\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\"", "scn.close()", "scn.close", "scn", "String args[]", "args", "public class Main {\n public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n String s1 = scn.nextLine();\n String s2 = scn.nextLine();\n\n String ring = s1 +s1;\n\n if(ring.contains(s2)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n\n scn.close();\n\n\n }\n\n\n\n}", "public class Main {\n public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n String s1 = scn.nextLine();\n String s2 = scn.nextLine();\n\n String ring = s1 +s1;\n\n if(ring.contains(s2)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n\n\n scn.close();\n\n\n }\n\n\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner scn = new Scanner(System.in); String s1 = scn.nextLine(); String s2 = scn.nextLine(); String ring = s1 +s1; if(ring.contains(s2)){ System.out.println("Yes"); }else{ System.out.println("No"); } scn.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 8, 4, 18, 13, 13, 17, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 51, 14 ], [ 51, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 17, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 33, 35 ], [ 17, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 41, 46 ], [ 41, 47 ], [ 15, 48 ], [ 48, 49 ], [ 0, 50 ], [ 50, 51 ], [ 50, 52 ] ]
[ "import java.util.Arrays;\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString input = sc.next();\n\t\tString txt = sc.next();\n\t\t\n\t\tinput = input + input;\n\t\t\n\t\tSystem.out.println(input.contains(txt) ? \"Yes\" : \"No\");\n\t}\n\n}", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.HashMap;", "HashMap", "java.util", "import java.util.Map;", "Map", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString input = sc.next();\n\t\tString txt = sc.next();\n\t\t\n\t\tinput = input + input;\n\t\t\n\t\tSystem.out.println(input.contains(txt) ? \"Yes\" : \"No\");\n\t}\n\n}", "Main", "public static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString input = sc.next();\n\t\tString txt = sc.next();\n\t\t\n\t\tinput = input + input;\n\t\t\n\t\tSystem.out.println(input.contains(txt) ? \"Yes\" : \"No\");\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString input = sc.next();\n\t\tString txt = sc.next();\n\t\t\n\t\tinput = input + input;\n\t\t\n\t\tSystem.out.println(input.contains(txt) ? \"Yes\" : \"No\");\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String input = sc.next();", "input", "sc.next()", "sc.next", "sc", "String txt = sc.next();", "txt", "sc.next()", "sc.next", "sc", "input = input + input", "input", "input + input", "input", "input", "System.out.println(input.contains(txt) ? \"Yes\" : \"No\")", "System.out.println", "System.out", "System", "System.out", "input.contains(txt) ? \"Yes\" : \"No\"", "input.contains(txt)", "input.contains", "input", "txt", "\"Yes\"", "\"No\"", "String args[]", "args", "public class Main {\n\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString input = sc.next();\n\t\tString txt = sc.next();\n\t\t\n\t\tinput = input + input;\n\t\t\n\t\tSystem.out.println(input.contains(txt) ? \"Yes\" : \"No\");\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString input = sc.next();\n\t\tString txt = sc.next();\n\t\t\n\t\tinput = input + input;\n\t\t\n\t\tSystem.out.println(input.contains(txt) ? \"Yes\" : \"No\");\n\t}\n\n}", "Main" ]
import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String input = sc.next(); String txt = sc.next(); input = input + input; System.out.println(input.contains(txt) ? "Yes" : "No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 17, 41, 13, 17, 41, 13, 13, 42, 2, 2, 13, 13, 2, 13, 13, 30, 14, 2, 18, 13, 13, 18, 13, 13, 30, 0, 13, 17, 3, 14, 2, 40, 13, 13, 0, 13, 13, 40, 13, 14, 13, 30, 0, 13, 17, 3, 4, 18, 13, 8, 13, 17, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 128, 17 ], [ 128, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 20, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 20, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 20, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 20, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 20, 51 ], [ 51, 52 ], [ 51, 53 ], [ 20, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 54, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 70, 72 ], [ 66, 73 ], [ 73, 74 ], [ 73, 75 ], [ 66, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 76, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 90, 92 ], [ 85, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 84, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 98, 103 ], [ 103, 104 ], [ 103, 105 ], [ 84, 106 ], [ 106, 107 ], [ 66, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 20, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 118, 119 ], [ 118, 120 ], [ 118, 121 ], [ 20, 122 ], [ 122, 123 ], [ 123, 124 ], [ 18, 125 ], [ 125, 126 ], [ 0, 127 ], [ 127, 128 ], [ 127, 129 ] ]
[ "import java.io.BufferedReader;\nimport java.io.BufferedWriter;\nimport java.io.InputStreamReader;\nimport java.io.OutputStreamWriter;\nimport java.io.IOException;\n\npublic class Main {\n\n public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n char[] input = br.readLine().toCharArray();\n char[] st = br.readLine().toCharArray();\n int size = input.length;\n int size2 = st.length;\n boolean answer = false;\n for (int i = 0; i < size; i++) {\n boolean chk = true;\n int j = 0;\n int k = i;\n while (j < size2 && k < size) {\n if (st[j] != input[k]) {\n chk = false;\n break;\n }\n if (++k == size) k %= size;\n j++;\n }\n if (chk) {\n answer = true;\n break;\n }\n }\n\n bw.append(answer ? \"Yes\\n\" : \"No\\n\");\n bw.flush();\n }\n\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.BufferedWriter;", "BufferedWriter", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.OutputStreamWriter;", "OutputStreamWriter", "java.io", "import java.io.IOException;", "IOException", "java.io", "public class Main {\n\n public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n char[] input = br.readLine().toCharArray();\n char[] st = br.readLine().toCharArray();\n int size = input.length;\n int size2 = st.length;\n boolean answer = false;\n for (int i = 0; i < size; i++) {\n boolean chk = true;\n int j = 0;\n int k = i;\n while (j < size2 && k < size) {\n if (st[j] != input[k]) {\n chk = false;\n break;\n }\n if (++k == size) k %= size;\n j++;\n }\n if (chk) {\n answer = true;\n break;\n }\n }\n\n bw.append(answer ? \"Yes\\n\" : \"No\\n\");\n bw.flush();\n }\n\n\n}", "Main", "public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n char[] input = br.readLine().toCharArray();\n char[] st = br.readLine().toCharArray();\n int size = input.length;\n int size2 = st.length;\n boolean answer = false;\n for (int i = 0; i < size; i++) {\n boolean chk = true;\n int j = 0;\n int k = i;\n while (j < size2 && k < size) {\n if (st[j] != input[k]) {\n chk = false;\n break;\n }\n if (++k == size) k %= size;\n j++;\n }\n if (chk) {\n answer = true;\n break;\n }\n }\n\n bw.append(answer ? \"Yes\\n\" : \"No\\n\");\n bw.flush();\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n char[] input = br.readLine().toCharArray();\n char[] st = br.readLine().toCharArray();\n int size = input.length;\n int size2 = st.length;\n boolean answer = false;\n for (int i = 0; i < size; i++) {\n boolean chk = true;\n int j = 0;\n int k = i;\n while (j < size2 && k < size) {\n if (st[j] != input[k]) {\n chk = false;\n break;\n }\n if (++k == size) k %= size;\n j++;\n }\n if (chk) {\n answer = true;\n break;\n }\n }\n\n bw.append(answer ? \"Yes\\n\" : \"No\\n\");\n bw.flush();\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));", "bw", "new BufferedWriter(new OutputStreamWriter(System.out))", "char[] input = br.readLine().toCharArray();", "input", "br.readLine().toCharArray()", "br.readLine().toCharArray", "br.readLine()", "br.readLine", "br", "char[] st = br.readLine().toCharArray();", "st", "br.readLine().toCharArray()", "br.readLine().toCharArray", "br.readLine()", "br.readLine", "br", "int size = input.length;", "size", "input.length", "input", "input.length", "int size2 = st.length;", "size2", "st.length", "st", "st.length", "boolean answer = false;", "answer", "false", "for (int i = 0; i < size; i++) {\n boolean chk = true;\n int j = 0;\n int k = i;\n while (j < size2 && k < size) {\n if (st[j] != input[k]) {\n chk = false;\n break;\n }\n if (++k == size) k %= size;\n j++;\n }\n if (chk) {\n answer = true;\n break;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < size", "i", "size", "i++", "i++", "i", "{\n boolean chk = true;\n int j = 0;\n int k = i;\n while (j < size2 && k < size) {\n if (st[j] != input[k]) {\n chk = false;\n break;\n }\n if (++k == size) k %= size;\n j++;\n }\n if (chk) {\n answer = true;\n break;\n }\n }", "{\n boolean chk = true;\n int j = 0;\n int k = i;\n while (j < size2 && k < size) {\n if (st[j] != input[k]) {\n chk = false;\n break;\n }\n if (++k == size) k %= size;\n j++;\n }\n if (chk) {\n answer = true;\n break;\n }\n }", "boolean chk = true;", "chk", "true", "int j = 0;", "j", "0", "int k = i;", "k", "i", "while (j < size2 && k < size) {\n if (st[j] != input[k]) {\n chk = false;\n break;\n }\n if (++k == size) k %= size;\n j++;\n }", "j < size2 && k < size", "j < size2", "j", "size2", "k < size", "k", "size", "{\n if (st[j] != input[k]) {\n chk = false;\n break;\n }\n if (++k == size) k %= size;\n j++;\n }", "if (st[j] != input[k]) {\n chk = false;\n break;\n }", "st[j] != input[k]", "st[j]", "st", "j", "input[k]", "input", "k", "{\n chk = false;\n break;\n }", "chk = false", "chk", "false", "break;", "if (++k == size) k %= size;", "++k == size", "++k", "k", "size", "k %= size", "k", "size", "j++", "j", "if (chk) {\n answer = true;\n break;\n }", "chk", "{\n answer = true;\n break;\n }", "answer = true", "answer", "true", "break;", "bw.append(answer ? \"Yes\\n\" : \"No\\n\")", "bw.append", "bw", "answer ? \"Yes\\n\" : \"No\\n\"", "answer", "\"Yes\\n\"", "\"No\\n\"", "bw.flush()", "bw.flush", "bw", "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 BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n char[] input = br.readLine().toCharArray();\n char[] st = br.readLine().toCharArray();\n int size = input.length;\n int size2 = st.length;\n boolean answer = false;\n for (int i = 0; i < size; i++) {\n boolean chk = true;\n int j = 0;\n int k = i;\n while (j < size2 && k < size) {\n if (st[j] != input[k]) {\n chk = false;\n break;\n }\n if (++k == size) k %= size;\n j++;\n }\n if (chk) {\n answer = true;\n break;\n }\n }\n\n bw.append(answer ? \"Yes\\n\" : \"No\\n\");\n bw.flush();\n }\n\n\n}", "public class Main {\n\n public static void main(String args[]) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n char[] input = br.readLine().toCharArray();\n char[] st = br.readLine().toCharArray();\n int size = input.length;\n int size2 = st.length;\n boolean answer = false;\n for (int i = 0; i < size; i++) {\n boolean chk = true;\n int j = 0;\n int k = i;\n while (j < size2 && k < size) {\n if (st[j] != input[k]) {\n chk = false;\n break;\n }\n if (++k == size) k %= size;\n j++;\n }\n if (chk) {\n answer = true;\n break;\n }\n }\n\n bw.append(answer ? \"Yes\\n\" : \"No\\n\");\n bw.flush();\n }\n\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.IOException; public class Main { public static void main(String args[]) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); char[] input = br.readLine().toCharArray(); char[] st = br.readLine().toCharArray(); int size = input.length; int size2 = st.length; boolean answer = false; for (int i = 0; i < size; i++) { boolean chk = true; int j = 0; int k = i; while (j < size2 && k < size) { if (st[j] != input[k]) { chk = false; break; } if (++k == size) k %= size; j++; } if (chk) { answer = true; break; } } bw.append(answer ? "Yes\n" : "No\n"); bw.flush(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 41, 13, 4, 18, 13, 14, 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 ], [ 49, 5 ], [ 49, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 27, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 27, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 6, 46 ], [ 46, 47 ], [ 0, 48 ], [ 48, 49 ], [ 48, 50 ] ]
[ "import java.util.Scanner;\npublic class Main{\n public static void main(String[] args) {\n Scanner in=new Scanner(System.in);\n String s=in.nextLine();\n String s1=s+s;\n String check=in.nextLine();\n if(s1.contains(check)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args) {\n Scanner in=new Scanner(System.in);\n String s=in.nextLine();\n String s1=s+s;\n String check=in.nextLine();\n if(s1.contains(check)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner in=new Scanner(System.in);\n String s=in.nextLine();\n String s1=s+s;\n String check=in.nextLine();\n if(s1.contains(check)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }", "main", "{\n Scanner in=new Scanner(System.in);\n String s=in.nextLine();\n String s1=s+s;\n String check=in.nextLine();\n if(s1.contains(check)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }", "Scanner in=new Scanner(System.in);", "in", "new Scanner(System.in)", "String s=in.nextLine();", "s", "in.nextLine()", "in.nextLine", "in", "String s1=s+s;", "s1", "s+s", "s", "s", "String check=in.nextLine();", "check", "in.nextLine()", "in.nextLine", "in", "if(s1.contains(check)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }", "s1.contains(check)", "s1.contains", "s1", "check", "{\n System.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n System.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main{\n public static void main(String[] args) {\n Scanner in=new Scanner(System.in);\n String s=in.nextLine();\n String s1=s+s;\n String check=in.nextLine();\n if(s1.contains(check)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}", "public class Main{\n public static void main(String[] args) {\n Scanner in=new Scanner(System.in);\n String s=in.nextLine();\n String s1=s+s;\n String check=in.nextLine();\n if(s1.contains(check)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner in=new Scanner(System.in); String s=in.nextLine(); String s1=s+s; String check=in.nextLine(); if(s1.contains(check)){ System.out.println("Yes"); }else{ System.out.println("No"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 4, 18, 13, 4, 18, 13, 29, 41, 13, 17, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 4, 18, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 4, 18, 13, 18, 13, 2, 2, 13, 13, 4, 18, 13, 14, 4, 18, 13, 4, 18, 13, 0, 13, 17, 4, 18, 13, 17, 4, 18, 13, 14, 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 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 13, 18 ], [ 9, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 19, 23 ], [ 23, 24 ], [ 23, 25 ], [ 19, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 19, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 19, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 36, 44 ], [ 19, 45 ], [ 45, 46 ], [ 45, 47 ], [ 19, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 19, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 53, 63 ], [ 63, 64 ], [ 64, 65 ], [ 53, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 68, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 78, 88 ], [ 88, 89 ], [ 89, 90 ], [ 78, 91 ], [ 92, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 103, 104 ], [ 77, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 109, 110 ], [ 110, 111 ], [ 105, 112 ], [ 112, 113 ], [ 112, 114 ], [ 77, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 115, 119 ], [ 119, 120 ], [ 120, 121 ], [ 19, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 122, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 6, 136 ], [ 136, 137 ] ]
[ "/* ITP1_8_D */\nimport java.io.*;\n\nclass Main\n{\n public static void main(String[] args)\n {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n String s = br.readLine();\n String p = br.readLine();\n if(s.length() < p.length()) return;\n\n boolean judge = false;\n\n char[] s_char = s.toCharArray();\n\n for(int i = 0; i < s.length(); i++){\n if(s_char[i] == p.charAt(0)){\n\n for(int j = 0; j < p.length(); j++){\n sb.append( s_char[(i+j) % s.length()] );\n }\n if(p.equals(sb.toString())) judge = true;\n //System.out.println(\"i:\" + i + \" p:\" + p + \" sb:\" + sb + \" judge:\" + judge);\n sb.delete(0, sb.length());\n }\n }\n\n if(judge)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n\n }catch(Exception e){\n System.out.println(e);\n }\n }\n}", "import java.io.*;", "io.*", "java", "class Main\n{\n public static void main(String[] args)\n {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n String s = br.readLine();\n String p = br.readLine();\n if(s.length() < p.length()) return;\n\n boolean judge = false;\n\n char[] s_char = s.toCharArray();\n\n for(int i = 0; i < s.length(); i++){\n if(s_char[i] == p.charAt(0)){\n\n for(int j = 0; j < p.length(); j++){\n sb.append( s_char[(i+j) % s.length()] );\n }\n if(p.equals(sb.toString())) judge = true;\n //System.out.println(\"i:\" + i + \" p:\" + p + \" sb:\" + sb + \" judge:\" + judge);\n sb.delete(0, sb.length());\n }\n }\n\n if(judge)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n\n }catch(Exception e){\n System.out.println(e);\n }\n }\n}", "Main", "public static void main(String[] args)\n {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n String s = br.readLine();\n String p = br.readLine();\n if(s.length() < p.length()) return;\n\n boolean judge = false;\n\n char[] s_char = s.toCharArray();\n\n for(int i = 0; i < s.length(); i++){\n if(s_char[i] == p.charAt(0)){\n\n for(int j = 0; j < p.length(); j++){\n sb.append( s_char[(i+j) % s.length()] );\n }\n if(p.equals(sb.toString())) judge = true;\n //System.out.println(\"i:\" + i + \" p:\" + p + \" sb:\" + sb + \" judge:\" + judge);\n sb.delete(0, sb.length());\n }\n }\n\n if(judge)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n\n }catch(Exception e){\n System.out.println(e);\n }\n }", "main", "{\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n String s = br.readLine();\n String p = br.readLine();\n if(s.length() < p.length()) return;\n\n boolean judge = false;\n\n char[] s_char = s.toCharArray();\n\n for(int i = 0; i < s.length(); i++){\n if(s_char[i] == p.charAt(0)){\n\n for(int j = 0; j < p.length(); j++){\n sb.append( s_char[(i+j) % s.length()] );\n }\n if(p.equals(sb.toString())) judge = true;\n //System.out.println(\"i:\" + i + \" p:\" + p + \" sb:\" + sb + \" judge:\" + judge);\n sb.delete(0, sb.length());\n }\n }\n\n if(judge)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n\n }catch(Exception e){\n System.out.println(e);\n }\n }", "try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n String s = br.readLine();\n String p = br.readLine();\n if(s.length() < p.length()) return;\n\n boolean judge = false;\n\n char[] s_char = s.toCharArray();\n\n for(int i = 0; i < s.length(); i++){\n if(s_char[i] == p.charAt(0)){\n\n for(int j = 0; j < p.length(); j++){\n sb.append( s_char[(i+j) % s.length()] );\n }\n if(p.equals(sb.toString())) judge = true;\n //System.out.println(\"i:\" + i + \" p:\" + p + \" sb:\" + sb + \" judge:\" + judge);\n sb.delete(0, sb.length());\n }\n }\n\n if(judge)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n\n }catch(Exception e){\n System.out.println(e);\n }", "catch(Exception e){\n System.out.println(e);\n }", "Exception e", "{\n System.out.println(e);\n }", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n String s = br.readLine();\n String p = br.readLine();\n if(s.length() < p.length()) return;\n\n boolean judge = false;\n\n char[] s_char = s.toCharArray();\n\n for(int i = 0; i < s.length(); i++){\n if(s_char[i] == p.charAt(0)){\n\n for(int j = 0; j < p.length(); j++){\n sb.append( s_char[(i+j) % s.length()] );\n }\n if(p.equals(sb.toString())) judge = true;\n //System.out.println(\"i:\" + i + \" p:\" + p + \" sb:\" + sb + \" judge:\" + judge);\n sb.delete(0, sb.length());\n }\n }\n\n if(judge)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "String s = br.readLine();", "s", "br.readLine()", "br.readLine", "br", "String p = br.readLine();", "p", "br.readLine()", "br.readLine", "br", "if(s.length() < p.length()) return;", "s.length() < p.length()", "s.length()", "s.length", "s", "p.length()", "p.length", "p", "return;", "boolean judge = false;", "judge", "false", "char[] s_char = s.toCharArray();", "s_char", "s.toCharArray()", "s.toCharArray", "s", "for(int i = 0; i < s.length(); i++){\n if(s_char[i] == p.charAt(0)){\n\n for(int j = 0; j < p.length(); j++){\n sb.append( s_char[(i+j) % s.length()] );\n }\n if(p.equals(sb.toString())) judge = true;\n //System.out.println(\"i:\" + i + \" p:\" + p + \" sb:\" + sb + \" judge:\" + judge);\n sb.delete(0, sb.length());\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_char[i] == p.charAt(0)){\n\n for(int j = 0; j < p.length(); j++){\n sb.append( s_char[(i+j) % s.length()] );\n }\n if(p.equals(sb.toString())) judge = true;\n //System.out.println(\"i:\" + i + \" p:\" + p + \" sb:\" + sb + \" judge:\" + judge);\n sb.delete(0, sb.length());\n }\n }", "{\n if(s_char[i] == p.charAt(0)){\n\n for(int j = 0; j < p.length(); j++){\n sb.append( s_char[(i+j) % s.length()] );\n }\n if(p.equals(sb.toString())) judge = true;\n //System.out.println(\"i:\" + i + \" p:\" + p + \" sb:\" + sb + \" judge:\" + judge);\n sb.delete(0, sb.length());\n }\n }", "if(s_char[i] == p.charAt(0)){\n\n for(int j = 0; j < p.length(); j++){\n sb.append( s_char[(i+j) % s.length()] );\n }\n if(p.equals(sb.toString())) judge = true;\n //System.out.println(\"i:\" + i + \" p:\" + p + \" sb:\" + sb + \" judge:\" + judge);\n sb.delete(0, sb.length());\n }", "s_char[i] == p.charAt(0)", "s_char[i]", "s_char", "i", "p.charAt(0)", "p.charAt", "p", "0", "{\n\n for(int j = 0; j < p.length(); j++){\n sb.append( s_char[(i+j) % s.length()] );\n }\n if(p.equals(sb.toString())) judge = true;\n //System.out.println(\"i:\" + i + \" p:\" + p + \" sb:\" + sb + \" judge:\" + judge);\n sb.delete(0, sb.length());\n }", "for(int j = 0; j < p.length(); j++){\n sb.append( s_char[(i+j) % s.length()] );\n }", "int j = 0;", "int j = 0;", "j", "0", "j < p.length()", "j", "p.length()", "p.length", "p", "j++", "j++", "j", "{\n sb.append( s_char[(i+j) % s.length()] );\n }", "{\n sb.append( s_char[(i+j) % s.length()] );\n }", "sb.append( s_char[(i+j) % s.length()] )", "sb.append", "sb", "s_char[(i+j) % s.length()]", "s_char", "(i+j) % s.length()", "(i+j)", "i", "j", "s.length()", "s.length", "s", "if(p.equals(sb.toString())) judge = true;", "p.equals(sb.toString())", "p.equals", "p", "sb.toString()", "sb.toString", "sb", "judge = true", "judge", "true", "sb.delete(0, sb.length())", "sb.delete", "sb", "0", "sb.length()", "sb.length", "sb", "if(judge)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");", "judge", "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" ]
/* ITP1_8_D */ import java.io.*; class Main { public static void main(String[] args) { try{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); String s = br.readLine(); String p = br.readLine(); if(s.length() < p.length()) return; boolean judge = false; char[] s_char = s.toCharArray(); for(int i = 0; i < s.length(); i++){ if(s_char[i] == p.charAt(0)){ for(int j = 0; j < p.length(); j++){ sb.append( s_char[(i+j) % s.length()] ); } if(p.equals(sb.toString())) judge = true; //System.out.println("i:" + i + " p:" + p + " sb:" + sb + " judge:" + judge); sb.delete(0, sb.length()); } } if(judge) System.out.println("Yes"); else System.out.println("No"); }catch(Exception e){ System.out.println(e); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 17, 18, 13, 13, 30, 0, 13, 17, 0, 13, 2, 13, 17, 14, 2, 13, 18, 13, 13, 30, 0, 13, 17, 42, 2, 2, 13, 18, 13, 13, 2, 18, 13, 13, 18, 13, 13, 30, 40, 13, 40, 13, 14, 2, 13, 18, 13, 13, 30, 0, 13, 17, 14, 2, 13, 18, 13, 13, 30, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 141, 5 ], [ 141, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 8, 34 ], [ 34, 35 ], [ 8, 36 ], [ 36, 37 ], [ 36, 38 ], [ 8, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 39, 49 ], [ 49, 50 ], [ 50, 51 ], [ 39, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 62, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 71, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 62, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 82, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 92, 94 ], [ 81, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 98, 99 ], [ 95, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 100, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 62, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 113, 115 ], [ 110, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 8, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 125, 130 ], [ 120, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 6, 138 ], [ 138, 139 ], [ 0, 140 ], [ 140, 141 ], [ 140, 142 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str1 = scan.next();\n\t\tchar[] box = str1.toCharArray();\n\t\tString str2 = scan.next();\n\t\tchar[] question = str2.toCharArray();\n\t\tint j;\n\t\tint k;\n\t\tboolean flg = false;\n\t\t\n\t\tfor(int i = 0;i < box.length;i++)\n\t\t{\n\t\t\tif(question[0] == box[i])\n\t\t\t{\n\t\t\t\tj = 1;\n\t\t\t\tk = i + 1;\n\t\t\t\tif(k >= box.length){k = 0;}\n\t\t\t\twhile(j < question.length && question[j] == box[k])\n\t\t\t\t{\t\n\t\t\t\t\tj++;\n\t\t\t\t\tk++;\n\t\t\t\t\t\n\t\t\t\t\tif(k >= box.length){k = 0;}\n\t\t\t\t}\n\t\t\t\tif(j == question.length)\n\t\t\t\t{\n\t\t\t\t\tflg = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(flg == true)\n\t\t{\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{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str1 = scan.next();\n\t\tchar[] box = str1.toCharArray();\n\t\tString str2 = scan.next();\n\t\tchar[] question = str2.toCharArray();\n\t\tint j;\n\t\tint k;\n\t\tboolean flg = false;\n\t\t\n\t\tfor(int i = 0;i < box.length;i++)\n\t\t{\n\t\t\tif(question[0] == box[i])\n\t\t\t{\n\t\t\t\tj = 1;\n\t\t\t\tk = i + 1;\n\t\t\t\tif(k >= box.length){k = 0;}\n\t\t\t\twhile(j < question.length && question[j] == box[k])\n\t\t\t\t{\t\n\t\t\t\t\tj++;\n\t\t\t\t\tk++;\n\t\t\t\t\t\n\t\t\t\t\tif(k >= box.length){k = 0;}\n\t\t\t\t}\n\t\t\t\tif(j == question.length)\n\t\t\t\t{\n\t\t\t\t\tflg = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(flg == true)\n\t\t{\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{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str1 = scan.next();\n\t\tchar[] box = str1.toCharArray();\n\t\tString str2 = scan.next();\n\t\tchar[] question = str2.toCharArray();\n\t\tint j;\n\t\tint k;\n\t\tboolean flg = false;\n\t\t\n\t\tfor(int i = 0;i < box.length;i++)\n\t\t{\n\t\t\tif(question[0] == box[i])\n\t\t\t{\n\t\t\t\tj = 1;\n\t\t\t\tk = i + 1;\n\t\t\t\tif(k >= box.length){k = 0;}\n\t\t\t\twhile(j < question.length && question[j] == box[k])\n\t\t\t\t{\t\n\t\t\t\t\tj++;\n\t\t\t\t\tk++;\n\t\t\t\t\t\n\t\t\t\t\tif(k >= box.length){k = 0;}\n\t\t\t\t}\n\t\t\t\tif(j == question.length)\n\t\t\t\t{\n\t\t\t\t\tflg = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(flg == true)\n\t\t{\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 scan = new Scanner(System.in);\n\t\tString str1 = scan.next();\n\t\tchar[] box = str1.toCharArray();\n\t\tString str2 = scan.next();\n\t\tchar[] question = str2.toCharArray();\n\t\tint j;\n\t\tint k;\n\t\tboolean flg = false;\n\t\t\n\t\tfor(int i = 0;i < box.length;i++)\n\t\t{\n\t\t\tif(question[0] == box[i])\n\t\t\t{\n\t\t\t\tj = 1;\n\t\t\t\tk = i + 1;\n\t\t\t\tif(k >= box.length){k = 0;}\n\t\t\t\twhile(j < question.length && question[j] == box[k])\n\t\t\t\t{\t\n\t\t\t\t\tj++;\n\t\t\t\t\tk++;\n\t\t\t\t\t\n\t\t\t\t\tif(k >= box.length){k = 0;}\n\t\t\t\t}\n\t\t\t\tif(j == question.length)\n\t\t\t\t{\n\t\t\t\t\tflg = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(flg == true)\n\t\t{\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 str1 = scan.next();", "str1", "scan.next()", "scan.next", "scan", "char[] box = str1.toCharArray();", "box", "str1.toCharArray()", "str1.toCharArray", "str1", "String str2 = scan.next();", "str2", "scan.next()", "scan.next", "scan", "char[] question = str2.toCharArray();", "question", "str2.toCharArray()", "str2.toCharArray", "str2", "int j;", "j", "int k;", "k", "boolean flg = false;", "flg", "false", "for(int i = 0;i < box.length;i++)\n\t\t{\n\t\t\tif(question[0] == box[i])\n\t\t\t{\n\t\t\t\tj = 1;\n\t\t\t\tk = i + 1;\n\t\t\t\tif(k >= box.length){k = 0;}\n\t\t\t\twhile(j < question.length && question[j] == box[k])\n\t\t\t\t{\t\n\t\t\t\t\tj++;\n\t\t\t\t\tk++;\n\t\t\t\t\t\n\t\t\t\t\tif(k >= box.length){k = 0;}\n\t\t\t\t}\n\t\t\t\tif(j == question.length)\n\t\t\t\t{\n\t\t\t\t\tflg = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < box.length", "i", "box.length", "box", "box.length", "i++", "i++", "i", "{\n\t\t\tif(question[0] == box[i])\n\t\t\t{\n\t\t\t\tj = 1;\n\t\t\t\tk = i + 1;\n\t\t\t\tif(k >= box.length){k = 0;}\n\t\t\t\twhile(j < question.length && question[j] == box[k])\n\t\t\t\t{\t\n\t\t\t\t\tj++;\n\t\t\t\t\tk++;\n\t\t\t\t\t\n\t\t\t\t\tif(k >= box.length){k = 0;}\n\t\t\t\t}\n\t\t\t\tif(j == question.length)\n\t\t\t\t{\n\t\t\t\t\tflg = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tif(question[0] == box[i])\n\t\t\t{\n\t\t\t\tj = 1;\n\t\t\t\tk = i + 1;\n\t\t\t\tif(k >= box.length){k = 0;}\n\t\t\t\twhile(j < question.length && question[j] == box[k])\n\t\t\t\t{\t\n\t\t\t\t\tj++;\n\t\t\t\t\tk++;\n\t\t\t\t\t\n\t\t\t\t\tif(k >= box.length){k = 0;}\n\t\t\t\t}\n\t\t\t\tif(j == question.length)\n\t\t\t\t{\n\t\t\t\t\tflg = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "if(question[0] == box[i])\n\t\t\t{\n\t\t\t\tj = 1;\n\t\t\t\tk = i + 1;\n\t\t\t\tif(k >= box.length){k = 0;}\n\t\t\t\twhile(j < question.length && question[j] == box[k])\n\t\t\t\t{\t\n\t\t\t\t\tj++;\n\t\t\t\t\tk++;\n\t\t\t\t\t\n\t\t\t\t\tif(k >= box.length){k = 0;}\n\t\t\t\t}\n\t\t\t\tif(j == question.length)\n\t\t\t\t{\n\t\t\t\t\tflg = true;\n\t\t\t\t}\n\t\t\t}", "question[0] == box[i]", "question[0]", "question", "0", "box[i]", "box", "i", "{\n\t\t\t\tj = 1;\n\t\t\t\tk = i + 1;\n\t\t\t\tif(k >= box.length){k = 0;}\n\t\t\t\twhile(j < question.length && question[j] == box[k])\n\t\t\t\t{\t\n\t\t\t\t\tj++;\n\t\t\t\t\tk++;\n\t\t\t\t\t\n\t\t\t\t\tif(k >= box.length){k = 0;}\n\t\t\t\t}\n\t\t\t\tif(j == question.length)\n\t\t\t\t{\n\t\t\t\t\tflg = true;\n\t\t\t\t}\n\t\t\t}", "j = 1", "j", "1", "k = i + 1", "k", "i + 1", "i", "1", "if(k >= box.length){k = 0;}", "k >= box.length", "k", "box.length", "box", "box.length", "{k = 0;}", "k = 0", "k", "0", "while(j < question.length && question[j] == box[k])\n\t\t\t\t{\t\n\t\t\t\t\tj++;\n\t\t\t\t\tk++;\n\t\t\t\t\t\n\t\t\t\t\tif(k >= box.length){k = 0;}\n\t\t\t\t}", "j < question.length && question[j] == box[k]", "j < question.length", "j", "question.length", "question", "question.length", "question[j] == box[k]", "question[j]", "question", "j", "box[k]", "box", "k", "{\t\n\t\t\t\t\tj++;\n\t\t\t\t\tk++;\n\t\t\t\t\t\n\t\t\t\t\tif(k >= box.length){k = 0;}\n\t\t\t\t}", "j++", "j", "k++", "k", "if(k >= box.length){k = 0;}", "k >= box.length", "k", "box.length", "box", "box.length", "{k = 0;}", "k = 0", "k", "0", "if(j == question.length)\n\t\t\t\t{\n\t\t\t\t\tflg = true;\n\t\t\t\t}", "j == question.length", "j", "question.length", "question", "question.length", "{\n\t\t\t\t\tflg = true;\n\t\t\t\t}", "flg = true", "flg", "true", "if(flg == true)\n\t\t{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "flg == true", "flg", "true", "{\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{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str1 = scan.next();\n\t\tchar[] box = str1.toCharArray();\n\t\tString str2 = scan.next();\n\t\tchar[] question = str2.toCharArray();\n\t\tint j;\n\t\tint k;\n\t\tboolean flg = false;\n\t\t\n\t\tfor(int i = 0;i < box.length;i++)\n\t\t{\n\t\t\tif(question[0] == box[i])\n\t\t\t{\n\t\t\t\tj = 1;\n\t\t\t\tk = i + 1;\n\t\t\t\tif(k >= box.length){k = 0;}\n\t\t\t\twhile(j < question.length && question[j] == box[k])\n\t\t\t\t{\t\n\t\t\t\t\tj++;\n\t\t\t\t\tk++;\n\t\t\t\t\t\n\t\t\t\t\tif(k >= box.length){k = 0;}\n\t\t\t\t}\n\t\t\t\tif(j == question.length)\n\t\t\t\t{\n\t\t\t\t\tflg = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(flg == true)\n\t\t{\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{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str1 = scan.next();\n\t\tchar[] box = str1.toCharArray();\n\t\tString str2 = scan.next();\n\t\tchar[] question = str2.toCharArray();\n\t\tint j;\n\t\tint k;\n\t\tboolean flg = false;\n\t\t\n\t\tfor(int i = 0;i < box.length;i++)\n\t\t{\n\t\t\tif(question[0] == box[i])\n\t\t\t{\n\t\t\t\tj = 1;\n\t\t\t\tk = i + 1;\n\t\t\t\tif(k >= box.length){k = 0;}\n\t\t\t\twhile(j < question.length && question[j] == box[k])\n\t\t\t\t{\t\n\t\t\t\t\tj++;\n\t\t\t\t\tk++;\n\t\t\t\t\t\n\t\t\t\t\tif(k >= box.length){k = 0;}\n\t\t\t\t}\n\t\t\t\tif(j == question.length)\n\t\t\t\t{\n\t\t\t\t\tflg = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(flg == true)\n\t\t{\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 scan = new Scanner(System.in); String str1 = scan.next(); char[] box = str1.toCharArray(); String str2 = scan.next(); char[] question = str2.toCharArray(); int j; int k; boolean flg = false; for(int i = 0;i < box.length;i++) { if(question[0] == box[i]) { j = 1; k = i + 1; if(k >= box.length){k = 0;} while(j < question.length && question[j] == box[k]) { j++; k++; if(k >= box.length){k = 0;} } if(j == question.length) { flg = true; } } } if(flg == true) { 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, 0, 13, 2, 13, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 42, 2, 13, 2, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 4, 18, 13, 17, 13, 14, 2, 2, 2, 13, 4, 18, 13, 4, 18, 13, 2, 13, 40, 17, 3, 41, 13, 4, 18, 13, 13, 2, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 0, 13, 17, 3, 30, 0, 13, 2, 13, 17, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 120, 11 ], [ 120, 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 ], [ 25, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 14, 33 ], [ 33, 34 ], [ 33, 35 ], [ 14, 36 ], [ 36, 37 ], [ 36, 38 ], [ 14, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 42, 46 ], [ 39, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 50, 57 ], [ 47, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 60, 66 ], [ 66, 67 ], [ 67, 68 ], [ 59, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 58, 73 ], [ 47, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 76, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 47, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 85, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 85, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 98, 100 ], [ 14, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 101, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 12, 117 ], [ 117, 118 ], [ 0, 119 ], [ 119, 120 ], [ 119, 121 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\npublic class Main {\n public static void main(String[] args) throws IOException{\n\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String word = br.readLine();\n word = word + word;\n String key = br.readLine();\n boolean result = false;\n\n int i=0;\n while(i < word.length()/2){\n \tint index = word.indexOf(key.charAt(0), i);\n\n \tif(index + key.length() > word.length() || index == -1)break;\n\n \tString tmp = word.substring(index, index + key.length());\n \tif(key.equals(tmp)){\n \t\tresult = true;\n \t\tbreak;\n \t}else{\n \t\ti = index + 1;\n \t}\n }\n\n if(result){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.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 public static void main(String[] args) throws IOException{\n\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String word = br.readLine();\n word = word + word;\n String key = br.readLine();\n boolean result = false;\n\n int i=0;\n while(i < word.length()/2){\n \tint index = word.indexOf(key.charAt(0), i);\n\n \tif(index + key.length() > word.length() || index == -1)break;\n\n \tString tmp = word.substring(index, index + key.length());\n \tif(key.equals(tmp)){\n \t\tresult = true;\n \t\tbreak;\n \t}else{\n \t\ti = index + 1;\n \t}\n }\n\n if(result){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String word = br.readLine();\n word = word + word;\n String key = br.readLine();\n boolean result = false;\n\n int i=0;\n while(i < word.length()/2){\n \tint index = word.indexOf(key.charAt(0), i);\n\n \tif(index + key.length() > word.length() || index == -1)break;\n\n \tString tmp = word.substring(index, index + key.length());\n \tif(key.equals(tmp)){\n \t\tresult = true;\n \t\tbreak;\n \t}else{\n \t\ti = index + 1;\n \t}\n }\n\n if(result){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }\n }", "main", "{\n\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String word = br.readLine();\n word = word + word;\n String key = br.readLine();\n boolean result = false;\n\n int i=0;\n while(i < word.length()/2){\n \tint index = word.indexOf(key.charAt(0), i);\n\n \tif(index + key.length() > word.length() || index == -1)break;\n\n \tString tmp = word.substring(index, index + key.length());\n \tif(key.equals(tmp)){\n \t\tresult = true;\n \t\tbreak;\n \t}else{\n \t\ti = index + 1;\n \t}\n }\n\n if(result){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String word = br.readLine();", "word", "br.readLine()", "br.readLine", "br", "word = word + word", "word", "word + word", "word", "word", "String key = br.readLine();", "key", "br.readLine()", "br.readLine", "br", "boolean result = false;", "result", "false", "int i=0;", "i", "0", "while(i < word.length()/2){\n \tint index = word.indexOf(key.charAt(0), i);\n\n \tif(index + key.length() > word.length() || index == -1)break;\n\n \tString tmp = word.substring(index, index + key.length());\n \tif(key.equals(tmp)){\n \t\tresult = true;\n \t\tbreak;\n \t}else{\n \t\ti = index + 1;\n \t}\n }", "i < word.length()/2", "i", "word.length()/2", "word.length()", "word.length", "word", "2", "{\n \tint index = word.indexOf(key.charAt(0), i);\n\n \tif(index + key.length() > word.length() || index == -1)break;\n\n \tString tmp = word.substring(index, index + key.length());\n \tif(key.equals(tmp)){\n \t\tresult = true;\n \t\tbreak;\n \t}else{\n \t\ti = index + 1;\n \t}\n }", "int index = word.indexOf(key.charAt(0), i);", "index", "word.indexOf(key.charAt(0), i)", "word.indexOf", "word", "key.charAt(0)", "key.charAt", "key", "0", "i", "if(index + key.length() > word.length() || index == -1)break;", "index + key.length() > word.length() || index == -1", "index + key.length() > word.length()", "index + key.length()", "index", "key.length()", "key.length", "key", "word.length()", "word.length", "word", "index == -1", "index", "-1", "1", "break;", "String tmp = word.substring(index, index + key.length());", "tmp", "word.substring(index, index + key.length())", "word.substring", "word", "index", "index + key.length()", "index", "key.length()", "key.length", "key", "if(key.equals(tmp)){\n \t\tresult = true;\n \t\tbreak;\n \t}else{\n \t\ti = index + 1;\n \t}", "key.equals(tmp)", "key.equals", "key", "tmp", "{\n \t\tresult = true;\n \t\tbreak;\n \t}", "result = true", "result", "true", "break;", "{\n \t\ti = index + 1;\n \t}", "i = index + 1", "i", "index + 1", "index", "1", "if(result){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }", "result", "{\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 public static void main(String[] args) throws IOException{\n\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String word = br.readLine();\n word = word + word;\n String key = br.readLine();\n boolean result = false;\n\n int i=0;\n while(i < word.length()/2){\n \tint index = word.indexOf(key.charAt(0), i);\n\n \tif(index + key.length() > word.length() || index == -1)break;\n\n \tString tmp = word.substring(index, index + key.length());\n \tif(key.equals(tmp)){\n \t\tresult = true;\n \t\tbreak;\n \t}else{\n \t\ti = index + 1;\n \t}\n }\n\n if(result){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.out.println(\"No\");\n }\n }\n}", "public class Main {\n public static void main(String[] args) throws IOException{\n\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String word = br.readLine();\n word = word + word;\n String key = br.readLine();\n boolean result = false;\n\n int i=0;\n while(i < word.length()/2){\n \tint index = word.indexOf(key.charAt(0), i);\n\n \tif(index + key.length() > word.length() || index == -1)break;\n\n \tString tmp = word.substring(index, index + key.length());\n \tif(key.equals(tmp)){\n \t\tresult = true;\n \t\tbreak;\n \t}else{\n \t\ti = index + 1;\n \t}\n }\n\n if(result){\n \tSystem.out.println(\"Yes\");\n }else{\n \tSystem.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 word = br.readLine(); word = word + word; String key = br.readLine(); boolean result = false; int i=0; while(i < word.length()/2){ int index = word.indexOf(key.charAt(0), i); if(index + key.length() > word.length() || index == -1)break; String tmp = word.substring(index, index + key.length()); if(key.equals(tmp)){ result = true; break; }else{ i = index + 1; } } if(result){ 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, 2, 13, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 2, 13, 13, 18, 13, 13, 30, 0, 13, 17, 3, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 3, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 109, 5 ], [ 109, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 8, 37 ], [ 37, 38 ], [ 37, 39 ], [ 8, 40 ], [ 40, 41 ], [ 40, 42 ], [ 8, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 43, 53 ], [ 53, 54 ], [ 54, 55 ], [ 43, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 58, 68 ], [ 68, 69 ], [ 69, 70 ], [ 58, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 74, 80 ], [ 80, 81 ], [ 80, 82 ], [ 73, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 72, 88 ], [ 88, 89 ], [ 88, 90 ], [ 57, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 8, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 6, 106 ], [ 106, 107 ], [ 0, 108 ], [ 108, 109 ], [ 108, 110 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString s1 = s+s;\n\t\tchar []s1str = s1.toCharArray();\n\t\t\n\t\tString p = sc.nextLine();\n\t\tchar []pstr = p.toCharArray();\n\t\tboolean flag = false;\n\t\t\n\t\tString msg = \"No\";\n\t\t\n\t\tfor (int i = 0; i < s.length(); i++){\n\t\t for(int l = 0; l < p.length(); l++){\n\t\t if (s1str[i+l] != pstr[l]){\n\t\t flag = false;\n\t\t break;\n\t\t }\n\t\t flag = true;\n\t\t }\n\t\t \n\t\t if (flag == true){\n\t\t msg = \"Yes\";\n\t\t break;\n\t\t } \n\t\t} \n\t\t\n\t\tSystem.out.println(msg);\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 s = sc.nextLine();\n\t\tString s1 = s+s;\n\t\tchar []s1str = s1.toCharArray();\n\t\t\n\t\tString p = sc.nextLine();\n\t\tchar []pstr = p.toCharArray();\n\t\tboolean flag = false;\n\t\t\n\t\tString msg = \"No\";\n\t\t\n\t\tfor (int i = 0; i < s.length(); i++){\n\t\t for(int l = 0; l < p.length(); l++){\n\t\t if (s1str[i+l] != pstr[l]){\n\t\t flag = false;\n\t\t break;\n\t\t }\n\t\t flag = true;\n\t\t }\n\t\t \n\t\t if (flag == true){\n\t\t msg = \"Yes\";\n\t\t break;\n\t\t } \n\t\t} \n\t\t\n\t\tSystem.out.println(msg);\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 s = sc.nextLine();\n\t\tString s1 = s+s;\n\t\tchar []s1str = s1.toCharArray();\n\t\t\n\t\tString p = sc.nextLine();\n\t\tchar []pstr = p.toCharArray();\n\t\tboolean flag = false;\n\t\t\n\t\tString msg = \"No\";\n\t\t\n\t\tfor (int i = 0; i < s.length(); i++){\n\t\t for(int l = 0; l < p.length(); l++){\n\t\t if (s1str[i+l] != pstr[l]){\n\t\t flag = false;\n\t\t break;\n\t\t }\n\t\t flag = true;\n\t\t }\n\t\t \n\t\t if (flag == true){\n\t\t msg = \"Yes\";\n\t\t break;\n\t\t } \n\t\t} \n\t\t\n\t\tSystem.out.println(msg);\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString s1 = s+s;\n\t\tchar []s1str = s1.toCharArray();\n\t\t\n\t\tString p = sc.nextLine();\n\t\tchar []pstr = p.toCharArray();\n\t\tboolean flag = false;\n\t\t\n\t\tString msg = \"No\";\n\t\t\n\t\tfor (int i = 0; i < s.length(); i++){\n\t\t for(int l = 0; l < p.length(); l++){\n\t\t if (s1str[i+l] != pstr[l]){\n\t\t flag = false;\n\t\t break;\n\t\t }\n\t\t flag = true;\n\t\t }\n\t\t \n\t\t if (flag == true){\n\t\t msg = \"Yes\";\n\t\t break;\n\t\t } \n\t\t} \n\t\t\n\t\tSystem.out.println(msg);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.nextLine();", "s", "sc.nextLine()", "sc.nextLine", "sc", "String s1 = s+s;", "s1", "s+s", "s", "s", "char []s1str = s1.toCharArray();", "s1str", "s1.toCharArray()", "s1.toCharArray", "s1", "String p = sc.nextLine();", "p", "sc.nextLine()", "sc.nextLine", "sc", "char []pstr = p.toCharArray();", "pstr", "p.toCharArray()", "p.toCharArray", "p", "boolean flag = false;", "flag", "false", "String msg = \"No\";", "msg", "\"No\"", "for (int i = 0; i < s.length(); i++){\n\t\t for(int l = 0; l < p.length(); l++){\n\t\t if (s1str[i+l] != pstr[l]){\n\t\t flag = false;\n\t\t break;\n\t\t }\n\t\t flag = true;\n\t\t }\n\t\t \n\t\t if (flag == true){\n\t\t msg = \"Yes\";\n\t\t break;\n\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 for(int l = 0; l < p.length(); l++){\n\t\t if (s1str[i+l] != pstr[l]){\n\t\t flag = false;\n\t\t break;\n\t\t }\n\t\t flag = true;\n\t\t }\n\t\t \n\t\t if (flag == true){\n\t\t msg = \"Yes\";\n\t\t break;\n\t\t } \n\t\t}", "{\n\t\t for(int l = 0; l < p.length(); l++){\n\t\t if (s1str[i+l] != pstr[l]){\n\t\t flag = false;\n\t\t break;\n\t\t }\n\t\t flag = true;\n\t\t }\n\t\t \n\t\t if (flag == true){\n\t\t msg = \"Yes\";\n\t\t break;\n\t\t } \n\t\t}", "for(int l = 0; l < p.length(); l++){\n\t\t if (s1str[i+l] != pstr[l]){\n\t\t flag = false;\n\t\t break;\n\t\t }\n\t\t flag = true;\n\t\t }", "int l = 0;", "int l = 0;", "l", "0", "l < p.length()", "l", "p.length()", "p.length", "p", "l++", "l++", "l", "{\n\t\t if (s1str[i+l] != pstr[l]){\n\t\t flag = false;\n\t\t break;\n\t\t }\n\t\t flag = true;\n\t\t }", "{\n\t\t if (s1str[i+l] != pstr[l]){\n\t\t flag = false;\n\t\t break;\n\t\t }\n\t\t flag = true;\n\t\t }", "if (s1str[i+l] != pstr[l]){\n\t\t flag = false;\n\t\t break;\n\t\t }", "s1str[i+l] != pstr[l]", "s1str[i+l]", "s1str", "i+l", "i", "l", "pstr[l]", "pstr", "l", "{\n\t\t flag = false;\n\t\t break;\n\t\t }", "flag = false", "flag", "false", "break;", "flag = true", "flag", "true", "if (flag == true){\n\t\t msg = \"Yes\";\n\t\t break;\n\t\t }", "flag == true", "flag", "true", "{\n\t\t msg = \"Yes\";\n\t\t break;\n\t\t }", "msg = \"Yes\"", "msg", "\"Yes\"", "break;", "System.out.println(msg)", "System.out.println", "System.out", "System", "System.out", "msg", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString s1 = s+s;\n\t\tchar []s1str = s1.toCharArray();\n\t\t\n\t\tString p = sc.nextLine();\n\t\tchar []pstr = p.toCharArray();\n\t\tboolean flag = false;\n\t\t\n\t\tString msg = \"No\";\n\t\t\n\t\tfor (int i = 0; i < s.length(); i++){\n\t\t for(int l = 0; l < p.length(); l++){\n\t\t if (s1str[i+l] != pstr[l]){\n\t\t flag = false;\n\t\t break;\n\t\t }\n\t\t flag = true;\n\t\t }\n\t\t \n\t\t if (flag == true){\n\t\t msg = \"Yes\";\n\t\t break;\n\t\t } \n\t\t} \n\t\t\n\t\tSystem.out.println(msg);\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 s = sc.nextLine();\n\t\tString s1 = s+s;\n\t\tchar []s1str = s1.toCharArray();\n\t\t\n\t\tString p = sc.nextLine();\n\t\tchar []pstr = p.toCharArray();\n\t\tboolean flag = false;\n\t\t\n\t\tString msg = \"No\";\n\t\t\n\t\tfor (int i = 0; i < s.length(); i++){\n\t\t for(int l = 0; l < p.length(); l++){\n\t\t if (s1str[i+l] != pstr[l]){\n\t\t flag = false;\n\t\t break;\n\t\t }\n\t\t flag = true;\n\t\t }\n\t\t \n\t\t if (flag == true){\n\t\t msg = \"Yes\";\n\t\t break;\n\t\t } \n\t\t} \n\t\t\n\t\tSystem.out.println(msg);\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 s = sc.nextLine(); String s1 = s+s; char []s1str = s1.toCharArray(); String p = sc.nextLine(); char []pstr = p.toCharArray(); boolean flag = false; String msg = "No"; for (int i = 0; i < s.length(); i++){ for(int l = 0; l < p.length(); l++){ if (s1str[i+l] != pstr[l]){ flag = false; break; } flag = true; } if (flag == true){ msg = "Yes"; break; } } System.out.println(msg); } }
[ 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, 17, 2, 4, 18, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 4, 18, 13, 4, 18, 13, 13, 2, 13, 4, 18, 13, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 95, 5 ], [ 95, 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 ], [ 31, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 35, 39 ], [ 8, 40 ], [ 40, 41 ], [ 40, 42 ], [ 8, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 43, 53 ], [ 53, 54 ], [ 54, 55 ], [ 43, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 62, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 58, 71 ], [ 71, 72 ], [ 71, 73 ], [ 8, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 74, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 6, 92 ], [ 92, 93 ], [ 0, 94 ], [ 94, 95 ], [ 94, 96 ] ]
[ "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 int sBeforeLength = s.length();\n String p = sc.next();\n s = s + s.substring(0, p.length()-1);\n int flag = 1;\n for(int i=0; i<=sBeforeLength-1; i++){\n if( p.equals( s.substring( i, i+p.length() ) ) ) flag=0;\n }\n if(flag==0) {System.out.println(\"Yes\");}\n else{System.out.println(\"No\");}\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n int sBeforeLength = s.length();\n String p = sc.next();\n s = s + s.substring(0, p.length()-1);\n int flag = 1;\n for(int i=0; i<=sBeforeLength-1; i++){\n if( p.equals( s.substring( i, i+p.length() ) ) ) flag=0;\n }\n if(flag==0) {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();\n int sBeforeLength = s.length();\n String p = sc.next();\n s = s + s.substring(0, p.length()-1);\n int flag = 1;\n for(int i=0; i<=sBeforeLength-1; i++){\n if( p.equals( s.substring( i, i+p.length() ) ) ) flag=0;\n }\n if(flag==0) {System.out.println(\"Yes\");}\n else{System.out.println(\"No\");}\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n int sBeforeLength = s.length();\n String p = sc.next();\n s = s + s.substring(0, p.length()-1);\n int flag = 1;\n for(int i=0; i<=sBeforeLength-1; i++){\n if( p.equals( s.substring( i, i+p.length() ) ) ) flag=0;\n }\n if(flag==0) {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();", "s", "sc.next()", "sc.next", "sc", "int sBeforeLength = s.length();", "sBeforeLength", "s.length()", "s.length", "s", "String p = sc.next();", "p", "sc.next()", "sc.next", "sc", "s = s + s.substring(0, p.length()-1)", "s", "s + s.substring(0, p.length()-1)", "s", "s.substring(0, p.length()-1)", "s.substring", "s", "0", "p.length()-1", "p.length()", "p.length", "p", "1", "int flag = 1;", "flag", "1", "for(int i=0; i<=sBeforeLength-1; i++){\n if( p.equals( s.substring( i, i+p.length() ) ) ) flag=0;\n }", "int i=0;", "int i=0;", "i", "0", "i<=sBeforeLength-1", "i", "sBeforeLength-1", "sBeforeLength", "1", "i++", "i++", "i", "{\n if( p.equals( s.substring( i, i+p.length() ) ) ) flag=0;\n }", "{\n if( p.equals( s.substring( i, i+p.length() ) ) ) flag=0;\n }", "if( p.equals( s.substring( i, i+p.length() ) ) ) flag=0;", "p.equals( s.substring( i, i+p.length() ) )", "p.equals", "p", "s.substring( i, i+p.length() )", "s.substring", "s", "i", "i+p.length()", "i", "p.length()", "p.length", "p", "flag=0", "flag", "0", "if(flag==0) {System.out.println(\"Yes\");}\n else{System.out.println(\"No\");}", "flag==0", "flag", "0", "{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\"", "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 int sBeforeLength = s.length();\n String p = sc.next();\n s = s + s.substring(0, p.length()-1);\n int flag = 1;\n for(int i=0; i<=sBeforeLength-1; i++){\n if( p.equals( s.substring( i, i+p.length() ) ) ) flag=0;\n }\n if(flag==0) {System.out.println(\"Yes\");}\n else{System.out.println(\"No\");}\n }\n}", "public class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n int sBeforeLength = s.length();\n String p = sc.next();\n s = s + s.substring(0, p.length()-1);\n int flag = 1;\n for(int i=0; i<=sBeforeLength-1; i++){\n if( p.equals( s.substring( i, i+p.length() ) ) ) flag=0;\n }\n if(flag==0) {System.out.println(\"Yes\");}\n else{System.out.println(\"No\");}\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); int sBeforeLength = s.length(); String p = sc.next(); s = s + s.substring(0, p.length()-1); int flag = 1; for(int i=0; i<=sBeforeLength-1; i++){ if( p.equals( s.substring( i, i+p.length() ) ) ) flag=0; } if(flag==0) {System.out.println("Yes");} else{System.out.println("No");} } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 17, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 13, 14, 2, 2, 13, 13, 13, 30, 0, 13, 13, 0, 13, 2, 13, 18, 13, 2, 13, 13, 14, 4, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 0, 13, 17, 3, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 11, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 11, 35 ], [ 35, 36 ], [ 35, 37 ], [ 11, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 11, 43 ], [ 43, 44 ], [ 43, 45 ], [ 11, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 51, 52 ], [ 51, 53 ], [ 46, 54 ], [ 54, 55 ], [ 55, 56 ], [ 46, 57 ], [ 58, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 62, 64 ], [ 58, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 70, 71 ], [ 70, 72 ], [ 65, 73 ], [ 73, 74 ], [ 74, 75 ], [ 65, 76 ], [ 77, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 81, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 77, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 58, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 100, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 105, 112 ], [ 112, 113 ], [ 112, 114 ], [ 105, 115 ], [ 11, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 9, 127 ], [ 127, 128 ] ]
[ "import java.io.IOException;\nimport java.util.Scanner;\nclass Main{\n\tpublic static void main(String[] args)throws NumberFormatException, IOException{\n\t\t//System.out.print(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tString ring =scan.nextLine();\n\t\tString kadai =scan.nextLine();\n\t\tchar[] moji = ring.toCharArray();\n\t\tint kadainagasa = kadai.length();\n\t\tString hikaku = \"\";\n\t\tint hikakunagasa = ring.length();\n\t\tint kai = 0;\n\t\tfor(int i=0; i<hikakunagasa; i++){\n\t\t\t\thikaku = \"\";\n\t\t\t\tkai = 0;\n\t\t\t\tfor(int ii=0; ii<kadainagasa; ii++){\n\t\t\t\t\tint i2 = ii;\n\t\t\t\t\tif(i + i2 >= hikakunagasa){\n\t\t\t\t\t\ti2 -= hikakunagasa;\n\t\t\t\t\t}\n\t\t\t\t\thikaku = hikaku + moji[i+i2];\n\t\t\t\t}\n//\t\t\t\tSystem.out.println(hikaku);\n\t\t\t\tif(kadai.equals(hikaku)){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tkai = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t\tif(kai == 0){\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "import java.io.IOException;", "IOException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n\tpublic static void main(String[] args)throws NumberFormatException, IOException{\n\t\t//System.out.print(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tString ring =scan.nextLine();\n\t\tString kadai =scan.nextLine();\n\t\tchar[] moji = ring.toCharArray();\n\t\tint kadainagasa = kadai.length();\n\t\tString hikaku = \"\";\n\t\tint hikakunagasa = ring.length();\n\t\tint kai = 0;\n\t\tfor(int i=0; i<hikakunagasa; i++){\n\t\t\t\thikaku = \"\";\n\t\t\t\tkai = 0;\n\t\t\t\tfor(int ii=0; ii<kadainagasa; ii++){\n\t\t\t\t\tint i2 = ii;\n\t\t\t\t\tif(i + i2 >= hikakunagasa){\n\t\t\t\t\t\ti2 -= hikakunagasa;\n\t\t\t\t\t}\n\t\t\t\t\thikaku = hikaku + moji[i+i2];\n\t\t\t\t}\n//\t\t\t\tSystem.out.println(hikaku);\n\t\t\t\tif(kadai.equals(hikaku)){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tkai = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t\tif(kai == 0){\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args)throws NumberFormatException, IOException{\n\t\t//System.out.print(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tString ring =scan.nextLine();\n\t\tString kadai =scan.nextLine();\n\t\tchar[] moji = ring.toCharArray();\n\t\tint kadainagasa = kadai.length();\n\t\tString hikaku = \"\";\n\t\tint hikakunagasa = ring.length();\n\t\tint kai = 0;\n\t\tfor(int i=0; i<hikakunagasa; i++){\n\t\t\t\thikaku = \"\";\n\t\t\t\tkai = 0;\n\t\t\t\tfor(int ii=0; ii<kadainagasa; ii++){\n\t\t\t\t\tint i2 = ii;\n\t\t\t\t\tif(i + i2 >= hikakunagasa){\n\t\t\t\t\t\ti2 -= hikakunagasa;\n\t\t\t\t\t}\n\t\t\t\t\thikaku = hikaku + moji[i+i2];\n\t\t\t\t}\n//\t\t\t\tSystem.out.println(hikaku);\n\t\t\t\tif(kadai.equals(hikaku)){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tkai = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t\tif(kai == 0){\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "main", "{\n\t\t//System.out.print(\" \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tString ring =scan.nextLine();\n\t\tString kadai =scan.nextLine();\n\t\tchar[] moji = ring.toCharArray();\n\t\tint kadainagasa = kadai.length();\n\t\tString hikaku = \"\";\n\t\tint hikakunagasa = ring.length();\n\t\tint kai = 0;\n\t\tfor(int i=0; i<hikakunagasa; i++){\n\t\t\t\thikaku = \"\";\n\t\t\t\tkai = 0;\n\t\t\t\tfor(int ii=0; ii<kadainagasa; ii++){\n\t\t\t\t\tint i2 = ii;\n\t\t\t\t\tif(i + i2 >= hikakunagasa){\n\t\t\t\t\t\ti2 -= hikakunagasa;\n\t\t\t\t\t}\n\t\t\t\t\thikaku = hikaku + moji[i+i2];\n\t\t\t\t}\n//\t\t\t\tSystem.out.println(hikaku);\n\t\t\t\tif(kadai.equals(hikaku)){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tkai = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t\tif(kai == 0){\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String ring =scan.nextLine();", "ring", "scan.nextLine()", "scan.nextLine", "scan", "String kadai =scan.nextLine();", "kadai", "scan.nextLine()", "scan.nextLine", "scan", "char[] moji = ring.toCharArray();", "moji", "ring.toCharArray()", "ring.toCharArray", "ring", "int kadainagasa = kadai.length();", "kadainagasa", "kadai.length()", "kadai.length", "kadai", "String hikaku = \"\";", "hikaku", "\"\"", "int hikakunagasa = ring.length();", "hikakunagasa", "ring.length()", "ring.length", "ring", "int kai = 0;", "kai", "0", "for(int i=0; i<hikakunagasa; i++){\n\t\t\t\thikaku = \"\";\n\t\t\t\tkai = 0;\n\t\t\t\tfor(int ii=0; ii<kadainagasa; ii++){\n\t\t\t\t\tint i2 = ii;\n\t\t\t\t\tif(i + i2 >= hikakunagasa){\n\t\t\t\t\t\ti2 -= hikakunagasa;\n\t\t\t\t\t}\n\t\t\t\t\thikaku = hikaku + moji[i+i2];\n\t\t\t\t}\n//\t\t\t\tSystem.out.println(hikaku);\n\t\t\t\tif(kadai.equals(hikaku)){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tkai = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<hikakunagasa", "i", "hikakunagasa", "i++", "i++", "i", "{\n\t\t\t\thikaku = \"\";\n\t\t\t\tkai = 0;\n\t\t\t\tfor(int ii=0; ii<kadainagasa; ii++){\n\t\t\t\t\tint i2 = ii;\n\t\t\t\t\tif(i + i2 >= hikakunagasa){\n\t\t\t\t\t\ti2 -= hikakunagasa;\n\t\t\t\t\t}\n\t\t\t\t\thikaku = hikaku + moji[i+i2];\n\t\t\t\t}\n//\t\t\t\tSystem.out.println(hikaku);\n\t\t\t\tif(kadai.equals(hikaku)){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tkai = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}", "{\n\t\t\t\thikaku = \"\";\n\t\t\t\tkai = 0;\n\t\t\t\tfor(int ii=0; ii<kadainagasa; ii++){\n\t\t\t\t\tint i2 = ii;\n\t\t\t\t\tif(i + i2 >= hikakunagasa){\n\t\t\t\t\t\ti2 -= hikakunagasa;\n\t\t\t\t\t}\n\t\t\t\t\thikaku = hikaku + moji[i+i2];\n\t\t\t\t}\n//\t\t\t\tSystem.out.println(hikaku);\n\t\t\t\tif(kadai.equals(hikaku)){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tkai = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}", "hikaku = \"\"", "hikaku", "\"\"", "kai = 0", "kai", "0", "for(int ii=0; ii<kadainagasa; ii++){\n\t\t\t\t\tint i2 = ii;\n\t\t\t\t\tif(i + i2 >= hikakunagasa){\n\t\t\t\t\t\ti2 -= hikakunagasa;\n\t\t\t\t\t}\n\t\t\t\t\thikaku = hikaku + moji[i+i2];\n\t\t\t\t}", "int ii=0;", "int ii=0;", "ii", "0", "ii<kadainagasa", "ii", "kadainagasa", "ii++", "ii++", "ii", "{\n\t\t\t\t\tint i2 = ii;\n\t\t\t\t\tif(i + i2 >= hikakunagasa){\n\t\t\t\t\t\ti2 -= hikakunagasa;\n\t\t\t\t\t}\n\t\t\t\t\thikaku = hikaku + moji[i+i2];\n\t\t\t\t}", "{\n\t\t\t\t\tint i2 = ii;\n\t\t\t\t\tif(i + i2 >= hikakunagasa){\n\t\t\t\t\t\ti2 -= hikakunagasa;\n\t\t\t\t\t}\n\t\t\t\t\thikaku = hikaku + moji[i+i2];\n\t\t\t\t}", "int i2 = ii;", "i2", "ii", "if(i + i2 >= hikakunagasa){\n\t\t\t\t\t\ti2 -= hikakunagasa;\n\t\t\t\t\t}", "i + i2 >= hikakunagasa", "i + i2", "i", "i2", "hikakunagasa", "{\n\t\t\t\t\t\ti2 -= hikakunagasa;\n\t\t\t\t\t}", "i2 -= hikakunagasa", "i2", "hikakunagasa", "hikaku = hikaku + moji[i+i2]", "hikaku", "hikaku + moji[i+i2]", "hikaku", "moji[i+i2]", "moji", "i+i2", "i", "i2", "if(kadai.equals(hikaku)){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tkai = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "kadai.equals(hikaku)", "kadai.equals", "kadai", "hikaku", "{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tkai = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "kai = 1", "kai", "1", "break;", "if(kai == 0){\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "kai == 0", "kai", "0", "{\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" ]
import java.io.IOException; import java.util.Scanner; class Main{ public static void main(String[] args)throws NumberFormatException, IOException{ //System.out.print(" "); Scanner scan = new Scanner(System.in); String ring =scan.nextLine(); String kadai =scan.nextLine(); char[] moji = ring.toCharArray(); int kadainagasa = kadai.length(); String hikaku = ""; int hikakunagasa = ring.length(); int kai = 0; for(int i=0; i<hikakunagasa; i++){ hikaku = ""; kai = 0; for(int ii=0; ii<kadainagasa; ii++){ int i2 = ii; if(i + i2 >= hikakunagasa){ i2 -= hikakunagasa; } hikaku = hikaku + moji[i+i2]; } // System.out.println(hikaku); if(kadai.equals(hikaku)){ System.out.println("Yes"); kai = 1; break; } } if(kai == 0){ 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, 2, 13, 13, 14, 4, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 30, 32 ], [ 14, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 33, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 12, 51 ], [ 51, 52 ] ]
[ "//????????????????????????????????????????????????????????????\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString inputStr = br.readLine();\t\t\t//??\\??????????????????inputStr\n\t\tString searchStr = br.readLine();\t\t\t//????´¢??????\n\t\t\n\t\tString ringInputStr = inputStr + inputStr;\n\t\t\n\t\tif(ringInputStr.contains(searchStr)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\t\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString inputStr = br.readLine();\t\t\t//??\\??????????????????inputStr\n\t\tString searchStr = br.readLine();\t\t\t//????´¢??????\n\t\t\n\t\tString ringInputStr = inputStr + inputStr;\n\t\t\n\t\tif(ringInputStr.contains(searchStr)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\t\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException{\n\t\tBufferedReader br =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString inputStr = br.readLine();\t\t\t//??\\??????????????????inputStr\n\t\tString searchStr = br.readLine();\t\t\t//????´¢??????\n\t\t\n\t\tString ringInputStr = inputStr + inputStr;\n\t\t\n\t\tif(ringInputStr.contains(searchStr)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\t\n\t}", "main", "{\n\t\tBufferedReader br =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString inputStr = br.readLine();\t\t\t//??\\??????????????????inputStr\n\t\tString searchStr = br.readLine();\t\t\t//????´¢??????\n\t\t\n\t\tString ringInputStr = inputStr + inputStr;\n\t\t\n\t\tif(ringInputStr.contains(searchStr)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\t\n\t}", "BufferedReader br =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String inputStr = br.readLine();", "inputStr", "br.readLine()", "br.readLine", "br", "String searchStr = br.readLine();", "searchStr", "br.readLine()", "br.readLine", "br", "String ringInputStr = inputStr + inputStr;", "ringInputStr", "inputStr + inputStr", "inputStr", "inputStr", "if(ringInputStr.contains(searchStr)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"No\");", "ringInputStr.contains(searchStr)", "ringInputStr.contains", "ringInputStr", "searchStr", "{\n\t\t\tSystem.out.println(\"Yes\");\n\t\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" ]
//???????????????????????????????????????????????????????????? import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String inputStr = br.readLine(); //??\??????????????????inputStr String searchStr = br.readLine(); //????´¢?????? String ringInputStr = inputStr + inputStr; if(ringInputStr.contains(searchStr)) { 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, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 13, 14, 4, 18, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 55, 11 ], [ 55, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 14, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 14, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 35, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 35, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 12, 52 ], [ 52, 53 ], [ 0, 54 ], [ 54, 55 ], [ 54, 56 ] ]
[ "\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t/*\n\t\t * Ring StrS = random point;\n\t\t *\n\t\t * ????¨????????????? StrP\n\t\t *\n\t\t * 1???????????????????????°\n\t\t *\n\t\t * 1 <= P.length <= S.length <= 100\n\t\t *\n\t\t *\t>> YES or NO ?\n\t\t */\n\n\t\t// input info\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// variable declear\n\t\tString strS,strP ;\n\n\t\t// break condition\n\t\t//while((strS=br.readLine())!=null || (strP=br.readLine())!=null ){\n\t\tstrS = br.readLine();\n\t\tstrP = br.readLine();\n\n\t\t// Check Works\n\t\tstrS += strS;\n\n\t\t//output info\n\t\tif(strS.contains(strP))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main{\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t/*\n\t\t * Ring StrS = random point;\n\t\t *\n\t\t * ????¨????????????? StrP\n\t\t *\n\t\t * 1???????????????????????°\n\t\t *\n\t\t * 1 <= P.length <= S.length <= 100\n\t\t *\n\t\t *\t>> YES or NO ?\n\t\t */\n\n\t\t// input info\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// variable declear\n\t\tString strS,strP ;\n\n\t\t// break condition\n\t\t//while((strS=br.readLine())!=null || (strP=br.readLine())!=null ){\n\t\tstrS = br.readLine();\n\t\tstrP = br.readLine();\n\n\t\t// Check Works\n\t\tstrS += strS;\n\n\t\t//output info\n\t\tif(strS.contains(strP))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "Main", "public static void main(String[] args) throws IOException {\n\t\t/*\n\t\t * Ring StrS = random point;\n\t\t *\n\t\t * ????¨????????????? StrP\n\t\t *\n\t\t * 1???????????????????????°\n\t\t *\n\t\t * 1 <= P.length <= S.length <= 100\n\t\t *\n\t\t *\t>> YES or NO ?\n\t\t */\n\n\t\t// input info\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// variable declear\n\t\tString strS,strP ;\n\n\t\t// break condition\n\t\t//while((strS=br.readLine())!=null || (strP=br.readLine())!=null ){\n\t\tstrS = br.readLine();\n\t\tstrP = br.readLine();\n\n\t\t// Check Works\n\t\tstrS += strS;\n\n\t\t//output info\n\t\tif(strS.contains(strP))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\tSystem.out.println(\"No\");\n\t\t}", "main", "{\n\t\t/*\n\t\t * Ring StrS = random point;\n\t\t *\n\t\t * ????¨????????????? StrP\n\t\t *\n\t\t * 1???????????????????????°\n\t\t *\n\t\t * 1 <= P.length <= S.length <= 100\n\t\t *\n\t\t *\t>> YES or NO ?\n\t\t */\n\n\t\t// input info\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// variable declear\n\t\tString strS,strP ;\n\n\t\t// break condition\n\t\t//while((strS=br.readLine())!=null || (strP=br.readLine())!=null ){\n\t\tstrS = br.readLine();\n\t\tstrP = br.readLine();\n\n\t\t// Check Works\n\t\tstrS += strS;\n\n\t\t//output info\n\t\tif(strS.contains(strP))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\tSystem.out.println(\"No\");\n\t\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String strS", "strS", "strP ;", "strP", "strS = br.readLine()", "strS", "br.readLine()", "br.readLine", "br", "strP = br.readLine()", "strP", "br.readLine()", "br.readLine", "br", "strS += strS", "strS", "strS", "if(strS.contains(strP))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\tSystem.out.println(\"No\");", "strS.contains(strP)", "strS.contains", "strS", "strP", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main{\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t/*\n\t\t * Ring StrS = random point;\n\t\t *\n\t\t * ????¨????????????? StrP\n\t\t *\n\t\t * 1???????????????????????°\n\t\t *\n\t\t * 1 <= P.length <= S.length <= 100\n\t\t *\n\t\t *\t>> YES or NO ?\n\t\t */\n\n\t\t// input info\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// variable declear\n\t\tString strS,strP ;\n\n\t\t// break condition\n\t\t//while((strS=br.readLine())!=null || (strP=br.readLine())!=null ){\n\t\tstrS = br.readLine();\n\t\tstrP = br.readLine();\n\n\t\t// Check Works\n\t\tstrS += strS;\n\n\t\t//output info\n\t\tif(strS.contains(strP))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "public class Main{\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t/*\n\t\t * Ring StrS = random point;\n\t\t *\n\t\t * ????¨????????????? StrP\n\t\t *\n\t\t * 1???????????????????????°\n\t\t *\n\t\t * 1 <= P.length <= S.length <= 100\n\t\t *\n\t\t *\t>> YES or NO ?\n\t\t */\n\n\t\t// input info\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// variable declear\n\t\tString strS,strP ;\n\n\t\t// break condition\n\t\t//while((strS=br.readLine())!=null || (strP=br.readLine())!=null ){\n\t\tstrS = br.readLine();\n\t\tstrP = br.readLine();\n\n\t\t// Check Works\n\t\tstrS += strS;\n\n\t\t//output info\n\t\tif(strS.contains(strP))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main{ public static void main(String[] args) throws IOException { /* * Ring StrS = random point; * * ????¨????????????? StrP * * 1???????????????????????° * * 1 <= P.length <= S.length <= 100 * * >> YES or NO ? */ // input info BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); // variable declear String strS,strP ; // break condition //while((strS=br.readLine())!=null || (strP=br.readLine())!=null ){ strS = br.readLine(); strP = br.readLine(); // Check Works strS += strS; //output info if(strS.contains(strP)) System.out.println("Yes"); else System.out.println("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 4, 18, 13, 17, 30, 41, 13, 13, 41, 13, 17, 42, 2, 2, 13, 4, 18, 13, 2, 4, 18, 13, 2, 13, 4, 18, 13, 4, 18, 13, 13, 30, 40, 13, 40, 13, 14, 2, 13, 4, 18, 13, 30, 4, 18, 18, 13, 13, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 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 ], [ 54, 55 ], [ 54, 56 ], [ 50, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 58, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 64, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 57, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 50, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 82, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 88, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 11, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 9, 105 ], [ 105, 106 ] ]
[ "import java.io.*;\nimport java.util.*;\n\nclass Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String ring=br.readLine();\n String key=br.readLine();\n for(int i=0;i<ring.length();i++){\n if(ring.charAt(i)==key.charAt(0)){\n int root=i;\n int j=0;\n while(j<key.length()&&ring.charAt(root%ring.length())==key.charAt(j)){\n j++;\n root++;\n }if(j==key.length()){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n }System.out.println(\"No\");\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String ring=br.readLine();\n String key=br.readLine();\n for(int i=0;i<ring.length();i++){\n if(ring.charAt(i)==key.charAt(0)){\n int root=i;\n int j=0;\n while(j<key.length()&&ring.charAt(root%ring.length())==key.charAt(j)){\n j++;\n root++;\n }if(j==key.length()){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n }System.out.println(\"No\");\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String ring=br.readLine();\n String key=br.readLine();\n for(int i=0;i<ring.length();i++){\n if(ring.charAt(i)==key.charAt(0)){\n int root=i;\n int j=0;\n while(j<key.length()&&ring.charAt(root%ring.length())==key.charAt(j)){\n j++;\n root++;\n }if(j==key.length()){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n }System.out.println(\"No\");\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String ring=br.readLine();\n String key=br.readLine();\n for(int i=0;i<ring.length();i++){\n if(ring.charAt(i)==key.charAt(0)){\n int root=i;\n int j=0;\n while(j<key.length()&&ring.charAt(root%ring.length())==key.charAt(j)){\n j++;\n root++;\n }if(j==key.length()){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n }System.out.println(\"No\");\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String ring=br.readLine();", "ring", "br.readLine()", "br.readLine", "br", "String key=br.readLine();", "key", "br.readLine()", "br.readLine", "br", "for(int i=0;i<ring.length();i++){\n if(ring.charAt(i)==key.charAt(0)){\n int root=i;\n int j=0;\n while(j<key.length()&&ring.charAt(root%ring.length())==key.charAt(j)){\n j++;\n root++;\n }if(j==key.length()){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<ring.length()", "i", "ring.length()", "ring.length", "ring", "i++", "i++", "i", "{\n if(ring.charAt(i)==key.charAt(0)){\n int root=i;\n int j=0;\n while(j<key.length()&&ring.charAt(root%ring.length())==key.charAt(j)){\n j++;\n root++;\n }if(j==key.length()){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n }", "{\n if(ring.charAt(i)==key.charAt(0)){\n int root=i;\n int j=0;\n while(j<key.length()&&ring.charAt(root%ring.length())==key.charAt(j)){\n j++;\n root++;\n }if(j==key.length()){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n }", "if(ring.charAt(i)==key.charAt(0)){\n int root=i;\n int j=0;\n while(j<key.length()&&ring.charAt(root%ring.length())==key.charAt(j)){\n j++;\n root++;\n }if(j==key.length()){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }", "ring.charAt(i)==key.charAt(0)", "ring.charAt(i)", "ring.charAt", "ring", "i", "key.charAt(0)", "key.charAt", "key", "0", "{\n int root=i;\n int j=0;\n while(j<key.length()&&ring.charAt(root%ring.length())==key.charAt(j)){\n j++;\n root++;\n }if(j==key.length()){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }", "int root=i;", "root", "i", "int j=0;", "j", "0", "while(j<key.length()&&ring.charAt(root%ring.length())==key.charAt(j)){\n j++;\n root++;\n }", "j<key.length()&&ring.charAt(root%ring.length())==key.charAt(j)", "j<key.length()", "j", "key.length()", "key.length", "key", "ring.charAt(root%ring.length())==key.charAt(j)", "ring.charAt(root%ring.length())", "ring.charAt", "ring", "root%ring.length()", "root", "ring.length()", "ring.length", "ring", "key.charAt(j)", "key.charAt", "key", "j", "{\n j++;\n root++;\n }", "j++", "j", "root++", "root", "if(j==key.length()){\n System.out.println(\"Yes\");\n System.exit(0);\n }", "j==key.length()", "j", "key.length()", "key.length", "key", "{\n System.out.println(\"Yes\");\n System.exit(0);\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.exit(0)", "System.exit", "System", "0", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args" ]
import java.io.*; import java.util.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String ring=br.readLine(); String key=br.readLine(); for(int i=0;i<ring.length();i++){ if(ring.charAt(i)==key.charAt(0)){ int root=i; int j=0; while(j<key.length()&&ring.charAt(root%ring.length())==key.charAt(j)){ j++; root++; }if(j==key.length()){ System.out.println("Yes"); System.exit(0); } } }System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 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 ], [ 45, 5 ], [ 45, 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 ], [ 26, 29 ], [ 25, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 25, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 6, 42 ], [ 42, 43 ], [ 0, 44 ], [ 44, 45 ], [ 44, 46 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String s = scan.nextLine();\n String p = scan.nextLine();\n\n s += s;\n\n if (s.contains(p)) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String s = scan.nextLine();\n String p = scan.nextLine();\n\n s += s;\n\n if (s.contains(p)) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String s = scan.nextLine();\n String p = scan.nextLine();\n\n s += s;\n\n if (s.contains(p)) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n String s = scan.nextLine();\n String p = scan.nextLine();\n\n s += s;\n\n if (s.contains(p)) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String s = scan.nextLine();", "s", "scan.nextLine()", "scan.nextLine", "scan", "String p = scan.nextLine();", "p", "scan.nextLine()", "scan.nextLine", "scan", "s += s", "s", "s", "if (s.contains(p)) System.out.println(\"Yes\");\n else System.out.println(\"No\");", "s.contains(p)", "s.contains", "s", "p", "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 scan = new Scanner(System.in);\n String s = scan.nextLine();\n String p = scan.nextLine();\n\n s += s;\n\n if (s.contains(p)) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String s = scan.nextLine();\n String p = scan.nextLine();\n\n s += s;\n\n if (s.contains(p)) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String s = scan.nextLine(); String p = scan.nextLine(); s += s; if (s.contains(p)) 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, 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 ], [ 31, 11 ], [ 31, 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 ], [ 12, 28 ], [ 28, 29 ], [ 0, 30 ], [ 30, 31 ], [ 30, 32 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str1 = br.readLine();\n\t\tString str2 = br.readLine();\n\n\t\tLoop:{\n\t\t\tfor (int i = 0; i < str1.length(); i++) {\n\t\t\t\tStringBuilder sb = new StringBuilder(str2.length());\n\t\t\t\tfor (int j = 0; j < str2.length(); j++) {\n\t\t\t\t\tsb.append(str1.charAt((i + j) % str1.length()));\n\t\t\t\t}\n\t\t\t\tif (sb.toString().equals(str2)) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tbreak Loop;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str1 = br.readLine();\n\t\tString str2 = br.readLine();\n\n\t\tLoop:{\n\t\t\tfor (int i = 0; i < str1.length(); i++) {\n\t\t\t\tStringBuilder sb = new StringBuilder(str2.length());\n\t\t\t\tfor (int j = 0; j < str2.length(); j++) {\n\t\t\t\t\tsb.append(str1.charAt((i + j) % str1.length()));\n\t\t\t\t}\n\t\t\t\tif (sb.toString().equals(str2)) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tbreak Loop;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str1 = br.readLine();\n\t\tString str2 = br.readLine();\n\n\t\tLoop:{\n\t\t\tfor (int i = 0; i < str1.length(); i++) {\n\t\t\t\tStringBuilder sb = new StringBuilder(str2.length());\n\t\t\t\tfor (int j = 0; j < str2.length(); j++) {\n\t\t\t\t\tsb.append(str1.charAt((i + j) % str1.length()));\n\t\t\t\t}\n\t\t\t\tif (sb.toString().equals(str2)) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tbreak Loop;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str1 = br.readLine();\n\t\tString str2 = br.readLine();\n\n\t\tLoop:{\n\t\t\tfor (int i = 0; i < str1.length(); i++) {\n\t\t\t\tStringBuilder sb = new StringBuilder(str2.length());\n\t\t\t\tfor (int j = 0; j < str2.length(); j++) {\n\t\t\t\t\tsb.append(str1.charAt((i + j) % str1.length()));\n\t\t\t\t}\n\t\t\t\tif (sb.toString().equals(str2)) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tbreak Loop;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String str1 = br.readLine();", "str1", "br.readLine()", "br.readLine", "br", "String str2 = br.readLine();", "str2", "br.readLine()", "br.readLine", "br", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str1 = br.readLine();\n\t\tString str2 = br.readLine();\n\n\t\tLoop:{\n\t\t\tfor (int i = 0; i < str1.length(); i++) {\n\t\t\t\tStringBuilder sb = new StringBuilder(str2.length());\n\t\t\t\tfor (int j = 0; j < str2.length(); j++) {\n\t\t\t\t\tsb.append(str1.charAt((i + j) % str1.length()));\n\t\t\t\t}\n\t\t\t\tif (sb.toString().equals(str2)) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tbreak Loop;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str1 = br.readLine();\n\t\tString str2 = br.readLine();\n\n\t\tLoop:{\n\t\t\tfor (int i = 0; i < str1.length(); i++) {\n\t\t\t\tStringBuilder sb = new StringBuilder(str2.length());\n\t\t\t\tfor (int j = 0; j < str2.length(); j++) {\n\t\t\t\t\tsb.append(str1.charAt((i + j) % str1.length()));\n\t\t\t\t}\n\t\t\t\tif (sb.toString().equals(str2)) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tbreak Loop;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str1 = br.readLine(); String str2 = br.readLine(); Loop:{ for (int i = 0; i < str1.length(); i++) { StringBuilder sb = new StringBuilder(str2.length()); for (int j = 0; j < str2.length(); j++) { sb.append(str1.charAt((i + j) % str1.length())); } if (sb.toString().equals(str2)) { System.out.println("Yes"); break Loop; } } 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, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 2, 13, 13, 14, 2, 13, 4, 18, 13, 0, 13, 2, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 14, 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 ], [ 104, 5 ], [ 104, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 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 ], [ 39, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 43, 53 ], [ 53, 54 ], [ 54, 55 ], [ 43, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 57, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 63, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 57, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 39, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 82, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 87, 94 ], [ 8, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 6, 101 ], [ 101, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "\nimport 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 s = sc.nextLine();\n\t\tString p = sc.nextLine();\n\n\t\tsc.close();\n\n//\t\tString s = \"abcdefg\";\n//\t\tString p = \"gab\";\n\n\t\t// 指定文字数だけ繰り返し表示する\n\t\tfor(int offset=0; offset<s.length(); offset++) {\n\t\t\tString cmpStr = \"\";\n\t\t\tfor(int i=0; i<p.length(); i++) {\n\t\t\t\tint count = i + offset;\n\t\t\t\tif(count >= s.length()) count = count - s.length();\n//\t\t\t\tSystem.out.println(count);\n\t\t\t\tcmpStr += s.charAt(count);\n//\t\t\t\tSystem.out.print(s.charAt(count));\n\t\t\t}\n\t\t\tif(cmpStr.equals(p)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n//\t\t\tSystem.out.println(\"\");\n\t\t}\n\n\t\tSystem.out.println(\"No\");\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 s = sc.nextLine();\n\t\tString p = sc.nextLine();\n\n\t\tsc.close();\n\n//\t\tString s = \"abcdefg\";\n//\t\tString p = \"gab\";\n\n\t\t// 指定文字数だけ繰り返し表示する\n\t\tfor(int offset=0; offset<s.length(); offset++) {\n\t\t\tString cmpStr = \"\";\n\t\t\tfor(int i=0; i<p.length(); i++) {\n\t\t\t\tint count = i + offset;\n\t\t\t\tif(count >= s.length()) count = count - s.length();\n//\t\t\t\tSystem.out.println(count);\n\t\t\t\tcmpStr += s.charAt(count);\n//\t\t\t\tSystem.out.print(s.charAt(count));\n\t\t\t}\n\t\t\tif(cmpStr.equals(p)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n//\t\t\tSystem.out.println(\"\");\n\t\t}\n\n\t\tSystem.out.println(\"No\");\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 s = sc.nextLine();\n\t\tString p = sc.nextLine();\n\n\t\tsc.close();\n\n//\t\tString s = \"abcdefg\";\n//\t\tString p = \"gab\";\n\n\t\t// 指定文字数だけ繰り返し表示する\n\t\tfor(int offset=0; offset<s.length(); offset++) {\n\t\t\tString cmpStr = \"\";\n\t\t\tfor(int i=0; i<p.length(); i++) {\n\t\t\t\tint count = i + offset;\n\t\t\t\tif(count >= s.length()) count = count - s.length();\n//\t\t\t\tSystem.out.println(count);\n\t\t\t\tcmpStr += s.charAt(count);\n//\t\t\t\tSystem.out.print(s.charAt(count));\n\t\t\t}\n\t\t\tif(cmpStr.equals(p)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n//\t\t\tSystem.out.println(\"\");\n\t\t}\n\n\t\tSystem.out.println(\"No\");\n\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString s = sc.nextLine();\n\t\tString p = sc.nextLine();\n\n\t\tsc.close();\n\n//\t\tString s = \"abcdefg\";\n//\t\tString p = \"gab\";\n\n\t\t// 指定文字数だけ繰り返し表示する\n\t\tfor(int offset=0; offset<s.length(); offset++) {\n\t\t\tString cmpStr = \"\";\n\t\t\tfor(int i=0; i<p.length(); i++) {\n\t\t\t\tint count = i + offset;\n\t\t\t\tif(count >= s.length()) count = count - s.length();\n//\t\t\t\tSystem.out.println(count);\n\t\t\t\tcmpStr += s.charAt(count);\n//\t\t\t\tSystem.out.print(s.charAt(count));\n\t\t\t}\n\t\t\tif(cmpStr.equals(p)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n//\t\t\tSystem.out.println(\"\");\n\t\t}\n\n\t\tSystem.out.println(\"No\");\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 p = sc.nextLine();", "p", "sc.nextLine()", "sc.nextLine", "sc", "sc.close()", "sc.close", "sc", "for(int offset=0; offset<s.length(); offset++) {\n\t\t\tString cmpStr = \"\";\n\t\t\tfor(int i=0; i<p.length(); i++) {\n\t\t\t\tint count = i + offset;\n\t\t\t\tif(count >= s.length()) count = count - s.length();\n//\t\t\t\tSystem.out.println(count);\n\t\t\t\tcmpStr += s.charAt(count);\n//\t\t\t\tSystem.out.print(s.charAt(count));\n\t\t\t}\n\t\t\tif(cmpStr.equals(p)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n//\t\t\tSystem.out.println(\"\");\n\t\t}", "int offset=0;", "int offset=0;", "offset", "0", "offset<s.length()", "offset", "s.length()", "s.length", "s", "offset++", "offset++", "offset", "{\n\t\t\tString cmpStr = \"\";\n\t\t\tfor(int i=0; i<p.length(); i++) {\n\t\t\t\tint count = i + offset;\n\t\t\t\tif(count >= s.length()) count = count - s.length();\n//\t\t\t\tSystem.out.println(count);\n\t\t\t\tcmpStr += s.charAt(count);\n//\t\t\t\tSystem.out.print(s.charAt(count));\n\t\t\t}\n\t\t\tif(cmpStr.equals(p)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n//\t\t\tSystem.out.println(\"\");\n\t\t}", "{\n\t\t\tString cmpStr = \"\";\n\t\t\tfor(int i=0; i<p.length(); i++) {\n\t\t\t\tint count = i + offset;\n\t\t\t\tif(count >= s.length()) count = count - s.length();\n//\t\t\t\tSystem.out.println(count);\n\t\t\t\tcmpStr += s.charAt(count);\n//\t\t\t\tSystem.out.print(s.charAt(count));\n\t\t\t}\n\t\t\tif(cmpStr.equals(p)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n//\t\t\tSystem.out.println(\"\");\n\t\t}", "String cmpStr = \"\";", "cmpStr", "\"\"", "for(int i=0; i<p.length(); i++) {\n\t\t\t\tint count = i + offset;\n\t\t\t\tif(count >= s.length()) count = count - s.length();\n//\t\t\t\tSystem.out.println(count);\n\t\t\t\tcmpStr += s.charAt(count);\n//\t\t\t\tSystem.out.print(s.charAt(count));\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<p.length()", "i", "p.length()", "p.length", "p", "i++", "i++", "i", "{\n\t\t\t\tint count = i + offset;\n\t\t\t\tif(count >= s.length()) count = count - s.length();\n//\t\t\t\tSystem.out.println(count);\n\t\t\t\tcmpStr += s.charAt(count);\n//\t\t\t\tSystem.out.print(s.charAt(count));\n\t\t\t}", "{\n\t\t\t\tint count = i + offset;\n\t\t\t\tif(count >= s.length()) count = count - s.length();\n//\t\t\t\tSystem.out.println(count);\n\t\t\t\tcmpStr += s.charAt(count);\n//\t\t\t\tSystem.out.print(s.charAt(count));\n\t\t\t}", "int count = i + offset;", "count", "i + offset", "i", "offset", "if(count >= s.length()) count = count - s.length();", "count >= s.length()", "count", "s.length()", "s.length", "s", "count = count - s.length()", "count", "count - s.length()", "count", "s.length()", "s.length", "s", "cmpStr += s.charAt(count)", "cmpStr", "s.charAt(count)", "s.charAt", "s", "count", "if(cmpStr.equals(p)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}", "cmpStr.equals(p)", "cmpStr.equals", "cmpStr", "p", "{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}", "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\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString s = sc.nextLine();\n\t\tString p = sc.nextLine();\n\n\t\tsc.close();\n\n//\t\tString s = \"abcdefg\";\n//\t\tString p = \"gab\";\n\n\t\t// 指定文字数だけ繰り返し表示する\n\t\tfor(int offset=0; offset<s.length(); offset++) {\n\t\t\tString cmpStr = \"\";\n\t\t\tfor(int i=0; i<p.length(); i++) {\n\t\t\t\tint count = i + offset;\n\t\t\t\tif(count >= s.length()) count = count - s.length();\n//\t\t\t\tSystem.out.println(count);\n\t\t\t\tcmpStr += s.charAt(count);\n//\t\t\t\tSystem.out.print(s.charAt(count));\n\t\t\t}\n\t\t\tif(cmpStr.equals(p)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n//\t\t\tSystem.out.println(\"\");\n\t\t}\n\n\t\tSystem.out.println(\"No\");\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 s = sc.nextLine();\n\t\tString p = sc.nextLine();\n\n\t\tsc.close();\n\n//\t\tString s = \"abcdefg\";\n//\t\tString p = \"gab\";\n\n\t\t// 指定文字数だけ繰り返し表示する\n\t\tfor(int offset=0; offset<s.length(); offset++) {\n\t\t\tString cmpStr = \"\";\n\t\t\tfor(int i=0; i<p.length(); i++) {\n\t\t\t\tint count = i + offset;\n\t\t\t\tif(count >= s.length()) count = count - s.length();\n//\t\t\t\tSystem.out.println(count);\n\t\t\t\tcmpStr += s.charAt(count);\n//\t\t\t\tSystem.out.print(s.charAt(count));\n\t\t\t}\n\t\t\tif(cmpStr.equals(p)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n//\t\t\tSystem.out.println(\"\");\n\t\t}\n\n\t\tSystem.out.println(\"No\");\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); String p = sc.nextLine(); sc.close(); // String s = "abcdefg"; // String p = "gab"; // 指定文字数だけ繰り返し表示する for(int offset=0; offset<s.length(); offset++) { String cmpStr = ""; for(int i=0; i<p.length(); i++) { int count = i + offset; if(count >= s.length()) count = count - s.length(); // System.out.println(count); cmpStr += s.charAt(count); // System.out.print(s.charAt(count)); } if(cmpStr.equals(p)) { System.out.println("Yes"); return; } // System.out.println(""); } System.out.println("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 17, 0, 13, 17, 0, 13, 17, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 17, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 2, 13, 13, 30, 14, 2, 18, 13, 13, 18, 13, 2, 13, 13, 30, 3, 30, 14, 2, 18, 13, 13, 18, 13, 2, 2, 13, 13, 18, 13, 13, 3, 14, 2, 13, 2, 18, 13, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 14, 27 ], [ 27, 28 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 14, 33 ], [ 33, 34 ], [ 33, 35 ], [ 14, 36 ], [ 36, 37 ], [ 36, 38 ], [ 14, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 14, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 14, 49 ], [ 49, 50 ], [ 49, 51 ], [ 14, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 14, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 14, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 62, 72 ], [ 72, 73 ], [ 73, 74 ], [ 62, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 76, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 82, 92 ], [ 92, 93 ], [ 93, 94 ], [ 82, 95 ], [ 96, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 102, 104 ], [ 97, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 113, 115 ], [ 106, 116 ], [ 116, 117 ], [ 97, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 130, 131 ], [ 130, 132 ], [ 119, 133 ], [ 96, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 134, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 14, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 146, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 151, 156 ], [ 146, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 158, 163 ], [ 12, 164 ], [ 164, 165 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main {\n\n\tpublic static void main(String args[]) throws IOException {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\t\t\t\t\n\t\tString str, str2;\n\t\t\n\t\tchar l;\n\t\tchar s;\n\t\t\n\t\tint sum[] = new int[26];\n\t\t\n\t\tl = 'A';\n\t\ts = 'a';\n\t\t\t\n\t\tstr = br.readLine();\n\t\tstr2 = br.readLine();\n\t\t\n\t\tboolean flag = false;\n\t\t\n\t\tchar ch[] = str.toCharArray();\n\t\tchar ch2[] = str2.toCharArray();\n\t\tfor(int i = 0; i < ch.length; i++){\n\t\t\tif(flag == true)break;\n\t\t\tfor(int j = 0; j < ch2.length; j++){\n\t\t\t\tif(ch.length > i + j){\n\t\t\t\t\tif(ch2[j] != ch[i + j]){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(ch2[j] != ch[i + j - ch.length])break;\n\t\t\t\t}\n\t\t\t\tif(j == ch2.length - 1){\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(flag == true){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "class Main {\n\n\tpublic static void main(String args[]) throws IOException {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\t\t\t\t\n\t\tString str, str2;\n\t\t\n\t\tchar l;\n\t\tchar s;\n\t\t\n\t\tint sum[] = new int[26];\n\t\t\n\t\tl = 'A';\n\t\ts = 'a';\n\t\t\t\n\t\tstr = br.readLine();\n\t\tstr2 = br.readLine();\n\t\t\n\t\tboolean flag = false;\n\t\t\n\t\tchar ch[] = str.toCharArray();\n\t\tchar ch2[] = str2.toCharArray();\n\t\tfor(int i = 0; i < ch.length; i++){\n\t\t\tif(flag == true)break;\n\t\t\tfor(int j = 0; j < ch2.length; j++){\n\t\t\t\tif(ch.length > i + j){\n\t\t\t\t\tif(ch2[j] != ch[i + j]){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(ch2[j] != ch[i + j - ch.length])break;\n\t\t\t\t}\n\t\t\t\tif(j == ch2.length - 1){\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(flag == true){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "Main", "public static void main(String args[]) throws IOException {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\t\t\t\t\n\t\tString str, str2;\n\t\t\n\t\tchar l;\n\t\tchar s;\n\t\t\n\t\tint sum[] = new int[26];\n\t\t\n\t\tl = 'A';\n\t\ts = 'a';\n\t\t\t\n\t\tstr = br.readLine();\n\t\tstr2 = br.readLine();\n\t\t\n\t\tboolean flag = false;\n\t\t\n\t\tchar ch[] = str.toCharArray();\n\t\tchar ch2[] = str2.toCharArray();\n\t\tfor(int i = 0; i < ch.length; i++){\n\t\t\tif(flag == true)break;\n\t\t\tfor(int j = 0; j < ch2.length; j++){\n\t\t\t\tif(ch.length > i + j){\n\t\t\t\t\tif(ch2[j] != ch[i + j]){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(ch2[j] != ch[i + j - ch.length])break;\n\t\t\t\t}\n\t\t\t\tif(j == ch2.length - 1){\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(flag == true){\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\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\t\t\t\t\n\t\tString str, str2;\n\t\t\n\t\tchar l;\n\t\tchar s;\n\t\t\n\t\tint sum[] = new int[26];\n\t\t\n\t\tl = 'A';\n\t\ts = 'a';\n\t\t\t\n\t\tstr = br.readLine();\n\t\tstr2 = br.readLine();\n\t\t\n\t\tboolean flag = false;\n\t\t\n\t\tchar ch[] = str.toCharArray();\n\t\tchar ch2[] = str2.toCharArray();\n\t\tfor(int i = 0; i < ch.length; i++){\n\t\t\tif(flag == true)break;\n\t\t\tfor(int j = 0; j < ch2.length; j++){\n\t\t\t\tif(ch.length > i + j){\n\t\t\t\t\tif(ch2[j] != ch[i + j]){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(ch2[j] != ch[i + j - ch.length])break;\n\t\t\t\t}\n\t\t\t\tif(j == ch2.length - 1){\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(flag == true){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "InputStreamReader isr = new InputStreamReader(System.in);", "isr", "new InputStreamReader(System.in)", "BufferedReader br = new BufferedReader(isr);", "br", "new BufferedReader(isr)", "String str", "str", "str2;", "str2", "char l;", "l", "char s;", "s", "int sum[] = new int[26];", "sum", "new int[26]", "26", "l = 'A'", "l", "'A'", "s = 'a'", "s", "'a'", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "str2 = br.readLine()", "str2", "br.readLine()", "br.readLine", "br", "boolean flag = false;", "flag", "false", "char ch[] = str.toCharArray();", "ch", "str.toCharArray()", "str.toCharArray", "str", "char ch2[] = str2.toCharArray();", "ch2", "str2.toCharArray()", "str2.toCharArray", "str2", "for(int i = 0; i < ch.length; i++){\n\t\t\tif(flag == true)break;\n\t\t\tfor(int j = 0; j < ch2.length; j++){\n\t\t\t\tif(ch.length > i + j){\n\t\t\t\t\tif(ch2[j] != ch[i + j]){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(ch2[j] != ch[i + j - ch.length])break;\n\t\t\t\t}\n\t\t\t\tif(j == ch2.length - 1){\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < ch.length", "i", "ch.length", "ch", "ch.length", "i++", "i++", "i", "{\n\t\t\tif(flag == true)break;\n\t\t\tfor(int j = 0; j < ch2.length; j++){\n\t\t\t\tif(ch.length > i + j){\n\t\t\t\t\tif(ch2[j] != ch[i + j]){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(ch2[j] != ch[i + j - ch.length])break;\n\t\t\t\t}\n\t\t\t\tif(j == ch2.length - 1){\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tif(flag == true)break;\n\t\t\tfor(int j = 0; j < ch2.length; j++){\n\t\t\t\tif(ch.length > i + j){\n\t\t\t\t\tif(ch2[j] != ch[i + j]){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(ch2[j] != ch[i + j - ch.length])break;\n\t\t\t\t}\n\t\t\t\tif(j == ch2.length - 1){\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "if(flag == true)break;", "flag == true", "flag", "true", "break;", "for(int j = 0; j < ch2.length; j++){\n\t\t\t\tif(ch.length > i + j){\n\t\t\t\t\tif(ch2[j] != ch[i + j]){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(ch2[j] != ch[i + j - ch.length])break;\n\t\t\t\t}\n\t\t\t\tif(j == ch2.length - 1){\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < ch2.length", "j", "ch2.length", "ch2", "ch2.length", "j++", "j++", "j", "{\n\t\t\t\tif(ch.length > i + j){\n\t\t\t\t\tif(ch2[j] != ch[i + j]){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(ch2[j] != ch[i + j - ch.length])break;\n\t\t\t\t}\n\t\t\t\tif(j == ch2.length - 1){\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(ch.length > i + j){\n\t\t\t\t\tif(ch2[j] != ch[i + j]){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(ch2[j] != ch[i + j - ch.length])break;\n\t\t\t\t}\n\t\t\t\tif(j == ch2.length - 1){\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t}", "if(ch.length > i + j){\n\t\t\t\t\tif(ch2[j] != ch[i + j]){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(ch2[j] != ch[i + j - ch.length])break;\n\t\t\t\t}", "ch.length > i + j", "ch.length", "ch", "ch.length", "i + j", "i", "j", "{\n\t\t\t\t\tif(ch2[j] != ch[i + j]){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "if(ch2[j] != ch[i + j]){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "ch2[j] != ch[i + j]", "ch2[j]", "ch2", "j", "ch[i + j]", "ch", "i + j", "i", "j", "{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "break;", "{\n\t\t\t\t\tif(ch2[j] != ch[i + j - ch.length])break;\n\t\t\t\t}", "if(ch2[j] != ch[i + j - ch.length])break;", "ch2[j] != ch[i + j - ch.length]", "ch2[j]", "ch2", "j", "ch[i + j - ch.length]", "ch", "i + j - ch.length", "i + j", "i", "j", "ch.length", "ch", "ch.length", "break;", "if(j == ch2.length - 1){\n\t\t\t\t\tflag = true;\n\t\t\t\t}", "j == ch2.length - 1", "j", "ch2.length - 1", "ch2.length", "ch2", "ch2.length", "1", "{\n\t\t\t\t\tflag = true;\n\t\t\t\t}", "flag = true", "flag", "true", "if(flag == true){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "flag == true", "flag", "true", "{\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" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main { public static void main(String args[]) throws IOException { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); String str, str2; char l; char s; int sum[] = new int[26]; l = 'A'; s = 'a'; str = br.readLine(); str2 = br.readLine(); boolean flag = false; char ch[] = str.toCharArray(); char ch2[] = str2.toCharArray(); for(int i = 0; i < ch.length; i++){ if(flag == true)break; for(int j = 0; j < ch2.length; j++){ if(ch.length > i + j){ if(ch2[j] != ch[i + j]){ break; } }else{ if(ch2[j] != ch[i + j - ch.length])break; } if(j == ch2.length - 1){ flag = true; } } } if(flag == true){ System.out.println("Yes"); }else{ System.out.println("No"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 4, 18, 13, 17, 30, 41, 13, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 13, 13, 13, 14, 2, 4, 18, 13, 13, 4, 18, 13, 13, 30, 3, 14, 2, 13, 13, 30, 3, 14, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 138, 11 ], [ 138, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 19, 24 ], [ 15, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 25, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 25, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 25, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 25, 49 ], [ 49, 50 ], [ 49, 51 ], [ 25, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 66, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 65, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 84, 85 ], [ 84, 86 ], [ 79, 87 ], [ 87, 88 ], [ 88, 89 ], [ 79, 90 ], [ 91, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 91, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 100, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 99, 109 ], [ 109, 110 ], [ 64, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 25, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 117, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 12, 135 ], [ 135, 136 ], [ 0, 137 ], [ 137, 138 ], [ 137, 139 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args)throws IOException{\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str = br.readLine();\n\t\t\tString result = br.readLine();\n\n\t\t\tint slen = str.length();\n\t\t\tint rlen = result.length();\n\t\t\tint j = 0;\n\t\t\tfor(int i = 0; i < slen; i++){\n\t\t\t\tif(str.charAt(i) == result.charAt(0)){\n\t\t\t\t\tint count = i;\n\t\t\t\t\tfor(j = 0; j < rlen; j++){\n\t\t\t\t\t\tcount = (i + j) % slen;\n\t\t\t\t\t\tif(str.charAt(count) != result.charAt(j)){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(rlen == j){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(rlen == j){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\n\t\t}catch(IOException e){\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args)throws IOException{\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str = br.readLine();\n\t\t\tString result = br.readLine();\n\n\t\t\tint slen = str.length();\n\t\t\tint rlen = result.length();\n\t\t\tint j = 0;\n\t\t\tfor(int i = 0; i < slen; i++){\n\t\t\t\tif(str.charAt(i) == result.charAt(0)){\n\t\t\t\t\tint count = i;\n\t\t\t\t\tfor(j = 0; j < rlen; j++){\n\t\t\t\t\t\tcount = (i + j) % slen;\n\t\t\t\t\t\tif(str.charAt(count) != result.charAt(j)){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(rlen == j){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(rlen == j){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\n\t\t}catch(IOException e){\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args)throws IOException{\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str = br.readLine();\n\t\t\tString result = br.readLine();\n\n\t\t\tint slen = str.length();\n\t\t\tint rlen = result.length();\n\t\t\tint j = 0;\n\t\t\tfor(int i = 0; i < slen; i++){\n\t\t\t\tif(str.charAt(i) == result.charAt(0)){\n\t\t\t\t\tint count = i;\n\t\t\t\t\tfor(j = 0; j < rlen; j++){\n\t\t\t\t\t\tcount = (i + j) % slen;\n\t\t\t\t\t\tif(str.charAt(count) != result.charAt(j)){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(rlen == j){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(rlen == j){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\n\t\t}catch(IOException e){\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}", "main", "{\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str = br.readLine();\n\t\t\tString result = br.readLine();\n\n\t\t\tint slen = str.length();\n\t\t\tint rlen = result.length();\n\t\t\tint j = 0;\n\t\t\tfor(int i = 0; i < slen; i++){\n\t\t\t\tif(str.charAt(i) == result.charAt(0)){\n\t\t\t\t\tint count = i;\n\t\t\t\t\tfor(j = 0; j < rlen; j++){\n\t\t\t\t\t\tcount = (i + j) % slen;\n\t\t\t\t\t\tif(str.charAt(count) != result.charAt(j)){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(rlen == j){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(rlen == j){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\n\t\t}catch(IOException e){\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}", "try{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str = br.readLine();\n\t\t\tString result = br.readLine();\n\n\t\t\tint slen = str.length();\n\t\t\tint rlen = result.length();\n\t\t\tint j = 0;\n\t\t\tfor(int i = 0; i < slen; i++){\n\t\t\t\tif(str.charAt(i) == result.charAt(0)){\n\t\t\t\t\tint count = i;\n\t\t\t\t\tfor(j = 0; j < rlen; j++){\n\t\t\t\t\t\tcount = (i + j) % slen;\n\t\t\t\t\t\tif(str.charAt(count) != result.charAt(j)){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(rlen == j){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(rlen == j){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\n\t\t}catch(IOException e){\n\t\t\tSystem.err.println(e);\n\t\t}", "catch(IOException e){\n\t\t\tSystem.err.println(e);\n\t\t}", "IOException e", "{\n\t\t\tSystem.err.println(e);\n\t\t}", "System.err.println(e)", "System.err.println", "System.err", "System", "System.err", "e", "{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str = br.readLine();\n\t\t\tString result = br.readLine();\n\n\t\t\tint slen = str.length();\n\t\t\tint rlen = result.length();\n\t\t\tint j = 0;\n\t\t\tfor(int i = 0; i < slen; i++){\n\t\t\t\tif(str.charAt(i) == result.charAt(0)){\n\t\t\t\t\tint count = i;\n\t\t\t\t\tfor(j = 0; j < rlen; j++){\n\t\t\t\t\t\tcount = (i + j) % slen;\n\t\t\t\t\t\tif(str.charAt(count) != result.charAt(j)){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(rlen == j){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(rlen == j){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\n\t\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String str = br.readLine();", "str", "br.readLine()", "br.readLine", "br", "String result = br.readLine();", "result", "br.readLine()", "br.readLine", "br", "int slen = str.length();", "slen", "str.length()", "str.length", "str", "int rlen = result.length();", "rlen", "result.length()", "result.length", "result", "int j = 0;", "j", "0", "for(int i = 0; i < slen; i++){\n\t\t\t\tif(str.charAt(i) == result.charAt(0)){\n\t\t\t\t\tint count = i;\n\t\t\t\t\tfor(j = 0; j < rlen; j++){\n\t\t\t\t\t\tcount = (i + j) % slen;\n\t\t\t\t\t\tif(str.charAt(count) != result.charAt(j)){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(rlen == j){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < slen", "i", "slen", "i++", "i++", "i", "{\n\t\t\t\tif(str.charAt(i) == result.charAt(0)){\n\t\t\t\t\tint count = i;\n\t\t\t\t\tfor(j = 0; j < rlen; j++){\n\t\t\t\t\t\tcount = (i + j) % slen;\n\t\t\t\t\t\tif(str.charAt(count) != result.charAt(j)){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(rlen == j){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(str.charAt(i) == result.charAt(0)){\n\t\t\t\t\tint count = i;\n\t\t\t\t\tfor(j = 0; j < rlen; j++){\n\t\t\t\t\t\tcount = (i + j) % slen;\n\t\t\t\t\t\tif(str.charAt(count) != result.charAt(j)){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(rlen == j){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "if(str.charAt(i) == result.charAt(0)){\n\t\t\t\t\tint count = i;\n\t\t\t\t\tfor(j = 0; j < rlen; j++){\n\t\t\t\t\t\tcount = (i + j) % slen;\n\t\t\t\t\t\tif(str.charAt(count) != result.charAt(j)){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "str.charAt(i) == result.charAt(0)", "str.charAt(i)", "str.charAt", "str", "i", "result.charAt(0)", "result.charAt", "result", "0", "{\n\t\t\t\t\tint count = i;\n\t\t\t\t\tfor(j = 0; j < rlen; j++){\n\t\t\t\t\t\tcount = (i + j) % slen;\n\t\t\t\t\t\tif(str.charAt(count) != result.charAt(j)){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "int count = i;", "count", "i", "for(j = 0; j < rlen; j++){\n\t\t\t\t\t\tcount = (i + j) % slen;\n\t\t\t\t\t\tif(str.charAt(count) != result.charAt(j)){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "j = 0;", "j = 0", "j", "0", "j < rlen", "j", "rlen", "j++", "j++", "j", "{\n\t\t\t\t\t\tcount = (i + j) % slen;\n\t\t\t\t\t\tif(str.charAt(count) != result.charAt(j)){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tcount = (i + j) % slen;\n\t\t\t\t\t\tif(str.charAt(count) != result.charAt(j)){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "count = (i + j) % slen", "count", "(i + j) % slen", "(i + j)", "i", "j", "slen", "if(str.charAt(count) != result.charAt(j)){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "str.charAt(count) != result.charAt(j)", "str.charAt(count)", "str.charAt", "str", "count", "result.charAt(j)", "result.charAt", "result", "j", "{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "break;", "if(rlen == j){\n\t\t\t\t\tbreak;\n\t\t\t\t}", "rlen == j", "rlen", "j", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "if(rlen == j){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}", "rlen == j", "rlen", "j", "{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n\t\t\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\tpublic static void main(String[] args)throws IOException{\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str = br.readLine();\n\t\t\tString result = br.readLine();\n\n\t\t\tint slen = str.length();\n\t\t\tint rlen = result.length();\n\t\t\tint j = 0;\n\t\t\tfor(int i = 0; i < slen; i++){\n\t\t\t\tif(str.charAt(i) == result.charAt(0)){\n\t\t\t\t\tint count = i;\n\t\t\t\t\tfor(j = 0; j < rlen; j++){\n\t\t\t\t\t\tcount = (i + j) % slen;\n\t\t\t\t\t\tif(str.charAt(count) != result.charAt(j)){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(rlen == j){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(rlen == j){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\n\t\t}catch(IOException e){\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args)throws IOException{\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str = br.readLine();\n\t\t\tString result = br.readLine();\n\n\t\t\tint slen = str.length();\n\t\t\tint rlen = result.length();\n\t\t\tint j = 0;\n\t\t\tfor(int i = 0; i < slen; i++){\n\t\t\t\tif(str.charAt(i) == result.charAt(0)){\n\t\t\t\t\tint count = i;\n\t\t\t\t\tfor(j = 0; j < rlen; j++){\n\t\t\t\t\t\tcount = (i + j) % slen;\n\t\t\t\t\t\tif(str.charAt(count) != result.charAt(j)){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(rlen == j){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(rlen == j){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\n\t\t}catch(IOException e){\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args)throws IOException{ try{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); String result = br.readLine(); int slen = str.length(); int rlen = result.length(); int j = 0; for(int i = 0; i < slen; i++){ if(str.charAt(i) == result.charAt(0)){ int count = i; for(j = 0; j < rlen; j++){ count = (i + j) % slen; if(str.charAt(count) != result.charAt(j)){ break; } } } if(rlen == j){ break; } } if(rlen == j){ System.out.println("Yes"); }else{ System.out.println("No"); } }catch(IOException e){ System.err.println(e); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 2, 13, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 42, 2, 2, 13, 13, 2, 13, 13, 30, 14, 2, 4, 18, 13, 13, 4, 18, 13, 13, 30, 40, 13, 40, 13, 30, 0, 13, 2, 2, 13, 13, 17, 0, 13, 17, 14, 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 ], [ 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 ], [ 24, 25 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 8, 37 ], [ 37, 38 ], [ 37, 39 ], [ 8, 40 ], [ 40, 41 ], [ 40, 42 ], [ 8, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 48, 50 ], [ 43, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 53, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 52, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 65, 66 ], [ 52, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 67, 75 ], [ 75, 76 ], [ 75, 77 ], [ 8, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 78, 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.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.nextLine();\n\t\tString p = sc.nextLine();\n\t\ts = s + s;\n\t\tint pLen = p.length();\n\t\tint sLen = s.length();\n\t\tint pPoint = 0;\n\t\tint sPoint = 0;\n\t\twhile (sPoint < sLen && pPoint < pLen) {\n\t\t\tif (s.charAt(sPoint) == p.charAt(pPoint)) {\n\t\t\t\tsPoint++;\n\t\t\t\tpPoint++;\n\t\t\t} else {\n\t\t\t\tsPoint = sPoint - pPoint + 1;\n\t\t\t\tpPoint = 0;\n\t\t\t}\n\t\t}\n\t\tif (pPoint == pLen) {\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.nextLine();\n\t\tString p = sc.nextLine();\n\t\ts = s + s;\n\t\tint pLen = p.length();\n\t\tint sLen = s.length();\n\t\tint pPoint = 0;\n\t\tint sPoint = 0;\n\t\twhile (sPoint < sLen && pPoint < pLen) {\n\t\t\tif (s.charAt(sPoint) == p.charAt(pPoint)) {\n\t\t\t\tsPoint++;\n\t\t\t\tpPoint++;\n\t\t\t} else {\n\t\t\t\tsPoint = sPoint - pPoint + 1;\n\t\t\t\tpPoint = 0;\n\t\t\t}\n\t\t}\n\t\tif (pPoint == pLen) {\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.nextLine();\n\t\tString p = sc.nextLine();\n\t\ts = s + s;\n\t\tint pLen = p.length();\n\t\tint sLen = s.length();\n\t\tint pPoint = 0;\n\t\tint sPoint = 0;\n\t\twhile (sPoint < sLen && pPoint < pLen) {\n\t\t\tif (s.charAt(sPoint) == p.charAt(pPoint)) {\n\t\t\t\tsPoint++;\n\t\t\t\tpPoint++;\n\t\t\t} else {\n\t\t\t\tsPoint = sPoint - pPoint + 1;\n\t\t\t\tpPoint = 0;\n\t\t\t}\n\t\t}\n\t\tif (pPoint == pLen) {\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.nextLine();\n\t\tString p = sc.nextLine();\n\t\ts = s + s;\n\t\tint pLen = p.length();\n\t\tint sLen = s.length();\n\t\tint pPoint = 0;\n\t\tint sPoint = 0;\n\t\twhile (sPoint < sLen && pPoint < pLen) {\n\t\t\tif (s.charAt(sPoint) == p.charAt(pPoint)) {\n\t\t\t\tsPoint++;\n\t\t\t\tpPoint++;\n\t\t\t} else {\n\t\t\t\tsPoint = sPoint - pPoint + 1;\n\t\t\t\tpPoint = 0;\n\t\t\t}\n\t\t}\n\t\tif (pPoint == pLen) {\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 p = sc.nextLine();", "p", "sc.nextLine()", "sc.nextLine", "sc", "s = s + s", "s", "s + s", "s", "s", "int pLen = p.length();", "pLen", "p.length()", "p.length", "p", "int sLen = s.length();", "sLen", "s.length()", "s.length", "s", "int pPoint = 0;", "pPoint", "0", "int sPoint = 0;", "sPoint", "0", "while (sPoint < sLen && pPoint < pLen) {\n\t\t\tif (s.charAt(sPoint) == p.charAt(pPoint)) {\n\t\t\t\tsPoint++;\n\t\t\t\tpPoint++;\n\t\t\t} else {\n\t\t\t\tsPoint = sPoint - pPoint + 1;\n\t\t\t\tpPoint = 0;\n\t\t\t}\n\t\t}", "sPoint < sLen && pPoint < pLen", "sPoint < sLen", "sPoint", "sLen", "pPoint < pLen", "pPoint", "pLen", "{\n\t\t\tif (s.charAt(sPoint) == p.charAt(pPoint)) {\n\t\t\t\tsPoint++;\n\t\t\t\tpPoint++;\n\t\t\t} else {\n\t\t\t\tsPoint = sPoint - pPoint + 1;\n\t\t\t\tpPoint = 0;\n\t\t\t}\n\t\t}", "if (s.charAt(sPoint) == p.charAt(pPoint)) {\n\t\t\t\tsPoint++;\n\t\t\t\tpPoint++;\n\t\t\t} else {\n\t\t\t\tsPoint = sPoint - pPoint + 1;\n\t\t\t\tpPoint = 0;\n\t\t\t}", "s.charAt(sPoint) == p.charAt(pPoint)", "s.charAt(sPoint)", "s.charAt", "s", "sPoint", "p.charAt(pPoint)", "p.charAt", "p", "pPoint", "{\n\t\t\t\tsPoint++;\n\t\t\t\tpPoint++;\n\t\t\t}", "sPoint++", "sPoint", "pPoint++", "pPoint", "{\n\t\t\t\tsPoint = sPoint - pPoint + 1;\n\t\t\t\tpPoint = 0;\n\t\t\t}", "sPoint = sPoint - pPoint + 1", "sPoint", "sPoint - pPoint + 1", "sPoint - pPoint", "sPoint", "pPoint", "1", "pPoint = 0", "pPoint", "0", "if (pPoint == pLen) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "pPoint == pLen", "pPoint", "pLen", "{\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.nextLine();\n\t\tString p = sc.nextLine();\n\t\ts = s + s;\n\t\tint pLen = p.length();\n\t\tint sLen = s.length();\n\t\tint pPoint = 0;\n\t\tint sPoint = 0;\n\t\twhile (sPoint < sLen && pPoint < pLen) {\n\t\t\tif (s.charAt(sPoint) == p.charAt(pPoint)) {\n\t\t\t\tsPoint++;\n\t\t\t\tpPoint++;\n\t\t\t} else {\n\t\t\t\tsPoint = sPoint - pPoint + 1;\n\t\t\t\tpPoint = 0;\n\t\t\t}\n\t\t}\n\t\tif (pPoint == pLen) {\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.nextLine();\n\t\tString p = sc.nextLine();\n\t\ts = s + s;\n\t\tint pLen = p.length();\n\t\tint sLen = s.length();\n\t\tint pPoint = 0;\n\t\tint sPoint = 0;\n\t\twhile (sPoint < sLen && pPoint < pLen) {\n\t\t\tif (s.charAt(sPoint) == p.charAt(pPoint)) {\n\t\t\t\tsPoint++;\n\t\t\t\tpPoint++;\n\t\t\t} else {\n\t\t\t\tsPoint = sPoint - pPoint + 1;\n\t\t\t\tpPoint = 0;\n\t\t\t}\n\t\t}\n\t\tif (pPoint == pLen) {\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.nextLine(); String p = sc.nextLine(); s = s + s; int pLen = p.length(); int sLen = s.length(); int pPoint = 0; int sPoint = 0; while (sPoint < sLen && pPoint < pLen) { if (s.charAt(sPoint) == p.charAt(pPoint)) { sPoint++; pPoint++; } else { sPoint = sPoint - pPoint + 1; pPoint = 0; } } if (pPoint == pLen) { System.out.println("Yes"); } else { System.out.println("No"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 13, 14, 2, 13, 40, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 60, 11 ], [ 60, 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 ], [ 14, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 14, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 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 ], [ 12, 57 ], [ 57, 58 ], [ 0, 59 ], [ 59, 60 ], [ 59, 61 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString s = input.readLine();\n\t\tString p = input.readLine();\n\t\t\n\t\ts = s.concat(s);\n\t\tint num = s.indexOf(p);\n\t\t\n\t\tif(num != -1) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t\n\t\t\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString s = input.readLine();\n\t\tString p = input.readLine();\n\t\t\n\t\ts = s.concat(s);\n\t\tint num = s.indexOf(p);\n\t\t\n\t\tif(num != -1) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t\n\t\t\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString s = input.readLine();\n\t\tString p = input.readLine();\n\t\t\n\t\ts = s.concat(s);\n\t\tint num = s.indexOf(p);\n\t\t\n\t\tif(num != -1) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t\n\t\t\n\t}", "main", "{\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString s = input.readLine();\n\t\tString p = input.readLine();\n\t\t\n\t\ts = s.concat(s);\n\t\tint num = s.indexOf(p);\n\t\t\n\t\tif(num != -1) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t\n\t\t\n\t}", "BufferedReader input = new BufferedReader(new InputStreamReader(System.in));", "input", "new BufferedReader(new InputStreamReader(System.in))", "String s = input.readLine();", "s", "input.readLine()", "input.readLine", "input", "String p = input.readLine();", "p", "input.readLine()", "input.readLine", "input", "s = s.concat(s)", "s", "s.concat(s)", "s.concat", "s", "s", "int num = s.indexOf(p);", "num", "s.indexOf(p)", "s.indexOf", "s", "p", "if(num != -1) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");", "num != -1", "num", "-1", "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", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString s = input.readLine();\n\t\tString p = input.readLine();\n\t\t\n\t\ts = s.concat(s);\n\t\tint num = s.indexOf(p);\n\t\t\n\t\tif(num != -1) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t\n\t\t\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString s = input.readLine();\n\t\tString p = input.readLine();\n\t\t\n\t\ts = s.concat(s);\n\t\tint num = s.indexOf(p);\n\t\t\n\t\tif(num != -1) System.out.println(\"Yes\");\n\t\telse System.out.println(\"No\");\n\t\n\t\t\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); String s = input.readLine(); String p = input.readLine(); s = s.concat(s); int num = s.indexOf(p); if(num != -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, 14, 4, 13, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 2, 13, 13, 14, 4, 18, 13, 13, 30, 29, 17, 29, 17, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 95, 5 ], [ 95, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 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 ], [ 95, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 45, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 45, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 56, 66 ], [ 66, 67 ], [ 67, 68 ], [ 56, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 73, 77 ], [ 77, 78 ], [ 77, 79 ], [ 70, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 80, 85 ], [ 85, 86 ], [ 86, 87 ], [ 45, 88 ], [ 88, 89 ], [ 43, 90 ], [ 90, 91 ], [ 43, 92 ], [ 92, 93 ], [ 0, 94 ], [ 94, 95 ], [ 94, 96 ] ]
[ "import java.util.Scanner;\npublic class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tString s = scan.nextLine();\n\tString p = scan.nextLine();\n\tif (match(s, p)) {\n\t System.out.println(\"Yes\");\n\t} else {\n\t System.out.println(\"No\");\n\t}\n }\n public static boolean match (String s, String p) {\n\tint pLength = p.length();\n\tString doubleS = s + s;\n\tfor (int i = 0; i < s.length(); i++) {\n\t String word = doubleS.substring(i, i+pLength);\n\t if (word.equals(p)) {\n\t\treturn true;\n\t }\n\t}\n\treturn false;\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tString s = scan.nextLine();\n\tString p = scan.nextLine();\n\tif (match(s, p)) {\n\t System.out.println(\"Yes\");\n\t} else {\n\t System.out.println(\"No\");\n\t}\n }\n public static boolean match (String s, String p) {\n\tint pLength = p.length();\n\tString doubleS = s + s;\n\tfor (int i = 0; i < s.length(); i++) {\n\t String word = doubleS.substring(i, i+pLength);\n\t if (word.equals(p)) {\n\t\treturn true;\n\t }\n\t}\n\treturn false;\n }\n}", "Main", "public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tString s = scan.nextLine();\n\tString p = scan.nextLine();\n\tif (match(s, p)) {\n\t System.out.println(\"Yes\");\n\t} else {\n\t System.out.println(\"No\");\n\t}\n }", "main", "{\n\tScanner scan = new Scanner(System.in);\n\tString s = scan.nextLine();\n\tString p = scan.nextLine();\n\tif (match(s, p)) {\n\t System.out.println(\"Yes\");\n\t} else {\n\t System.out.println(\"No\");\n\t}\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String s = scan.nextLine();", "s", "scan.nextLine()", "scan.nextLine", "scan", "String p = scan.nextLine();", "p", "scan.nextLine()", "scan.nextLine", "scan", "if (match(s, p)) {\n\t System.out.println(\"Yes\");\n\t} else {\n\t System.out.println(\"No\");\n\t}", "match(s, p)", "match", "s", "p", "{\n\t System.out.println(\"Yes\");\n\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n\t System.out.println(\"No\");\n\t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public static boolean match (String s, String p) {\n\tint pLength = p.length();\n\tString doubleS = s + s;\n\tfor (int i = 0; i < s.length(); i++) {\n\t String word = doubleS.substring(i, i+pLength);\n\t if (word.equals(p)) {\n\t\treturn true;\n\t }\n\t}\n\treturn false;\n }", "match", "{\n\tint pLength = p.length();\n\tString doubleS = s + s;\n\tfor (int i = 0; i < s.length(); i++) {\n\t String word = doubleS.substring(i, i+pLength);\n\t if (word.equals(p)) {\n\t\treturn true;\n\t }\n\t}\n\treturn false;\n }", "int pLength = p.length();", "pLength", "p.length()", "p.length", "p", "String doubleS = s + s;", "doubleS", "s + s", "s", "s", "for (int i = 0; i < s.length(); i++) {\n\t String word = doubleS.substring(i, i+pLength);\n\t if (word.equals(p)) {\n\t\treturn true;\n\t }\n\t}", "int i = 0;", "int i = 0;", "i", "0", "i < s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n\t String word = doubleS.substring(i, i+pLength);\n\t if (word.equals(p)) {\n\t\treturn true;\n\t }\n\t}", "{\n\t String word = doubleS.substring(i, i+pLength);\n\t if (word.equals(p)) {\n\t\treturn true;\n\t }\n\t}", "String word = doubleS.substring(i, i+pLength);", "word", "doubleS.substring(i, i+pLength)", "doubleS.substring", "doubleS", "i", "i+pLength", "i", "pLength", "if (word.equals(p)) {\n\t\treturn true;\n\t }", "word.equals(p)", "word.equals", "word", "p", "{\n\t\treturn true;\n\t }", "return true;", "true", "return false;", "false", "String s", "s", "String p", "p", "public class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tString s = scan.nextLine();\n\tString p = scan.nextLine();\n\tif (match(s, p)) {\n\t System.out.println(\"Yes\");\n\t} else {\n\t System.out.println(\"No\");\n\t}\n }\n public static boolean match (String s, String p) {\n\tint pLength = p.length();\n\tString doubleS = s + s;\n\tfor (int i = 0; i < s.length(); i++) {\n\t String word = doubleS.substring(i, i+pLength);\n\t if (word.equals(p)) {\n\t\treturn true;\n\t }\n\t}\n\treturn false;\n }\n}", "public class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tString s = scan.nextLine();\n\tString p = scan.nextLine();\n\tif (match(s, p)) {\n\t System.out.println(\"Yes\");\n\t} else {\n\t System.out.println(\"No\");\n\t}\n }\n public static boolean match (String s, String p) {\n\tint pLength = p.length();\n\tString doubleS = s + s;\n\tfor (int i = 0; i < s.length(); i++) {\n\t String word = doubleS.substring(i, i+pLength);\n\t if (word.equals(p)) {\n\t\treturn true;\n\t }\n\t}\n\treturn false;\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 p = scan.nextLine(); if (match(s, p)) { System.out.println("Yes"); } else { System.out.println("No"); } } public static boolean match (String s, String p) { int pLength = p.length(); String doubleS = s + s; for (int i = 0; i < s.length(); i++) { String word = doubleS.substring(i, i+pLength); if (word.equals(p)) { return true; } } return false; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 13, 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 ], [ 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 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 25, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 25, 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){\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n String pattern = sc.next();\n \n str += str;\n if(str.contains(pattern)){\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 String str = sc.next();\n String pattern = sc.next();\n \n str += str;\n if(str.contains(pattern)){\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 str = sc.next();\n String pattern = sc.next();\n \n str += str;\n if(str.contains(pattern)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n String pattern = sc.next();\n \n str += str;\n if(str.contains(pattern)){\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 str = sc.next();", "str", "sc.next()", "sc.next", "sc", "String pattern = sc.next();", "pattern", "sc.next()", "sc.next", "sc", "str += str", "str", "str", "if(str.contains(pattern)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }", "str.contains(pattern)", "str.contains", "str", "pattern", "{\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 str = sc.next();\n String pattern = sc.next();\n \n str += str;\n if(str.contains(pattern)){\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 str = sc.next();\n String pattern = sc.next();\n \n str += str;\n if(str.contains(pattern)){\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 str = sc.next(); String pattern = sc.next(); str += str; if(str.contains(pattern)){ 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, 2, 13, 13, 41, 13, 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 ], [ 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 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 27, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 27, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 6, 44 ], [ 44, 45 ], [ 0, 46 ], [ 46, 47 ], [ 46, 48 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString a =scanner.nextLine();\n\t\tString b = a+a;\n\t\tString c = scanner.nextLine();\n\t\tif(b.contains(c))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\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 scanner = new Scanner(System.in);\n\t\tString a =scanner.nextLine();\n\t\tString b = a+a;\n\t\tString c = scanner.nextLine();\n\t\tif(b.contains(c))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\t\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString a =scanner.nextLine();\n\t\tString b = a+a;\n\t\tString c = scanner.nextLine();\n\t\tif(b.contains(c))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\t\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString a =scanner.nextLine();\n\t\tString b = a+a;\n\t\tString c = scanner.nextLine();\n\t\tif(b.contains(c))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\t\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String a =scanner.nextLine();", "a", "scanner.nextLine()", "scanner.nextLine", "scanner", "String b = a+a;", "b", "a+a", "a", "a", "String c = scanner.nextLine();", "c", "scanner.nextLine()", "scanner.nextLine", "scanner", "if(b.contains(c))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");", "b.contains(c)", "b.contains", "b", "c", "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 scanner = new Scanner(System.in);\n\t\tString a =scanner.nextLine();\n\t\tString b = a+a;\n\t\tString c = scanner.nextLine();\n\t\tif(b.contains(c))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\t\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString a =scanner.nextLine();\n\t\tString b = a+a;\n\t\tString c = scanner.nextLine();\n\t\tif(b.contains(c))\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\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 scanner = new Scanner(System.in); String a =scanner.nextLine(); String b = a+a; String c = scanner.nextLine(); if(b.contains(c)) System.out.println("Yes"); else System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 4, 18, 13, 2, 13, 13, 30, 40, 13, 14, 2, 13, 13, 30, 0, 13, 17, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 116, 5 ], [ 116, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 27, 29 ], [ 8, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 8, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 40, 50 ], [ 50, 51 ], [ 51, 52 ], [ 40, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 58, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 72, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 80, 82 ], [ 71, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 8, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 94, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 8, 110 ], [ 110, 111 ], [ 111, 112 ], [ 6, 113 ], [ 113, 114 ], [ 0, 115 ], [ 115, 116 ], [ 115, 117 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\n\t\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint flg = 0;\n\t\t\n\t\tString s = scan.nextLine();//??????????????????\n\t\tString p = scan.nextLine();//??????????????????\n\t\t\n\t\tString s2 = s + s;//s???2?????£????????????\n\t\t\n\t\tint s2_len = s2.length();\n\t\tint p_len = p.length();\n\t\t\n\t\tfor(int s2_cnt = 0; s2_cnt < s2_len - p_len; s2_cnt++){\n\t\t\t\n\t\t\tint ans_cnt = 0;\n\t\t\t\t\n\t\t\tfor(int p_cnt = 0; p_cnt < p_len; p_cnt++){\n\t\t\t\tif(p.charAt(p_cnt) == s2.charAt(s2_cnt + p_cnt)){\n\t\t\t\t\tans_cnt++;\n\t\t\t\t\tif(ans_cnt == p_len){\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(flg == 1)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\t//????§????\n\t\tscan.close();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\n\t\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint flg = 0;\n\t\t\n\t\tString s = scan.nextLine();//??????????????????\n\t\tString p = scan.nextLine();//??????????????????\n\t\t\n\t\tString s2 = s + s;//s???2?????£????????????\n\t\t\n\t\tint s2_len = s2.length();\n\t\tint p_len = p.length();\n\t\t\n\t\tfor(int s2_cnt = 0; s2_cnt < s2_len - p_len; s2_cnt++){\n\t\t\t\n\t\t\tint ans_cnt = 0;\n\t\t\t\t\n\t\t\tfor(int p_cnt = 0; p_cnt < p_len; p_cnt++){\n\t\t\t\tif(p.charAt(p_cnt) == s2.charAt(s2_cnt + p_cnt)){\n\t\t\t\t\tans_cnt++;\n\t\t\t\t\tif(ans_cnt == p_len){\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(flg == 1)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\t//????§????\n\t\tscan.close();\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint flg = 0;\n\t\t\n\t\tString s = scan.nextLine();//??????????????????\n\t\tString p = scan.nextLine();//??????????????????\n\t\t\n\t\tString s2 = s + s;//s???2?????£????????????\n\t\t\n\t\tint s2_len = s2.length();\n\t\tint p_len = p.length();\n\t\t\n\t\tfor(int s2_cnt = 0; s2_cnt < s2_len - p_len; s2_cnt++){\n\t\t\t\n\t\t\tint ans_cnt = 0;\n\t\t\t\t\n\t\t\tfor(int p_cnt = 0; p_cnt < p_len; p_cnt++){\n\t\t\t\tif(p.charAt(p_cnt) == s2.charAt(s2_cnt + p_cnt)){\n\t\t\t\t\tans_cnt++;\n\t\t\t\t\tif(ans_cnt == p_len){\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(flg == 1)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\t//????§????\n\t\tscan.close();\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint flg = 0;\n\t\t\n\t\tString s = scan.nextLine();//??????????????????\n\t\tString p = scan.nextLine();//??????????????????\n\t\t\n\t\tString s2 = s + s;//s???2?????£????????????\n\t\t\n\t\tint s2_len = s2.length();\n\t\tint p_len = p.length();\n\t\t\n\t\tfor(int s2_cnt = 0; s2_cnt < s2_len - p_len; s2_cnt++){\n\t\t\t\n\t\t\tint ans_cnt = 0;\n\t\t\t\t\n\t\t\tfor(int p_cnt = 0; p_cnt < p_len; p_cnt++){\n\t\t\t\tif(p.charAt(p_cnt) == s2.charAt(s2_cnt + p_cnt)){\n\t\t\t\t\tans_cnt++;\n\t\t\t\t\tif(ans_cnt == p_len){\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(flg == 1)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\t//????§????\n\t\tscan.close();\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int flg = 0;", "flg", "0", "String s = scan.nextLine();", "s", "scan.nextLine()", "scan.nextLine", "scan", "String p = scan.nextLine();", "p", "scan.nextLine()", "scan.nextLine", "scan", "String s2 = s + s;", "s2", "s + s", "s", "s", "int s2_len = s2.length();", "s2_len", "s2.length()", "s2.length", "s2", "int p_len = p.length();", "p_len", "p.length()", "p.length", "p", "for(int s2_cnt = 0; s2_cnt < s2_len - p_len; s2_cnt++){\n\t\t\t\n\t\t\tint ans_cnt = 0;\n\t\t\t\t\n\t\t\tfor(int p_cnt = 0; p_cnt < p_len; p_cnt++){\n\t\t\t\tif(p.charAt(p_cnt) == s2.charAt(s2_cnt + p_cnt)){\n\t\t\t\t\tans_cnt++;\n\t\t\t\t\tif(ans_cnt == p_len){\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int s2_cnt = 0;", "int s2_cnt = 0;", "s2_cnt", "0", "s2_cnt < s2_len - p_len", "s2_cnt", "s2_len - p_len", "s2_len", "p_len", "s2_cnt++", "s2_cnt++", "s2_cnt", "{\n\t\t\t\n\t\t\tint ans_cnt = 0;\n\t\t\t\t\n\t\t\tfor(int p_cnt = 0; p_cnt < p_len; p_cnt++){\n\t\t\t\tif(p.charAt(p_cnt) == s2.charAt(s2_cnt + p_cnt)){\n\t\t\t\t\tans_cnt++;\n\t\t\t\t\tif(ans_cnt == p_len){\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\t\n\t\t\tint ans_cnt = 0;\n\t\t\t\t\n\t\t\tfor(int p_cnt = 0; p_cnt < p_len; p_cnt++){\n\t\t\t\tif(p.charAt(p_cnt) == s2.charAt(s2_cnt + p_cnt)){\n\t\t\t\t\tans_cnt++;\n\t\t\t\t\tif(ans_cnt == p_len){\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int ans_cnt = 0;", "ans_cnt", "0", "for(int p_cnt = 0; p_cnt < p_len; p_cnt++){\n\t\t\t\tif(p.charAt(p_cnt) == s2.charAt(s2_cnt + p_cnt)){\n\t\t\t\t\tans_cnt++;\n\t\t\t\t\tif(ans_cnt == p_len){\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "int p_cnt = 0;", "int p_cnt = 0;", "p_cnt", "0", "p_cnt < p_len", "p_cnt", "p_len", "p_cnt++", "p_cnt++", "p_cnt", "{\n\t\t\t\tif(p.charAt(p_cnt) == s2.charAt(s2_cnt + p_cnt)){\n\t\t\t\t\tans_cnt++;\n\t\t\t\t\tif(ans_cnt == p_len){\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(p.charAt(p_cnt) == s2.charAt(s2_cnt + p_cnt)){\n\t\t\t\t\tans_cnt++;\n\t\t\t\t\tif(ans_cnt == p_len){\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "if(p.charAt(p_cnt) == s2.charAt(s2_cnt + p_cnt)){\n\t\t\t\t\tans_cnt++;\n\t\t\t\t\tif(ans_cnt == p_len){\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t}", "p.charAt(p_cnt) == s2.charAt(s2_cnt + p_cnt)", "p.charAt(p_cnt)", "p.charAt", "p", "p_cnt", "s2.charAt(s2_cnt + p_cnt)", "s2.charAt", "s2", "s2_cnt + p_cnt", "s2_cnt", "p_cnt", "{\n\t\t\t\t\tans_cnt++;\n\t\t\t\t\tif(ans_cnt == p_len){\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t}", "ans_cnt++", "ans_cnt", "if(ans_cnt == p_len){\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}", "ans_cnt == p_len", "ans_cnt", "p_len", "{\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}", "flg = 1", "flg", "1", "if(flg == 1)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");", "flg == 1", "flg", "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\"", "scan.close()", "scan.close", "scan", "String[] args", "args", "public class Main {\n\n\n\t\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint flg = 0;\n\t\t\n\t\tString s = scan.nextLine();//??????????????????\n\t\tString p = scan.nextLine();//??????????????????\n\t\t\n\t\tString s2 = s + s;//s???2?????£????????????\n\t\t\n\t\tint s2_len = s2.length();\n\t\tint p_len = p.length();\n\t\t\n\t\tfor(int s2_cnt = 0; s2_cnt < s2_len - p_len; s2_cnt++){\n\t\t\t\n\t\t\tint ans_cnt = 0;\n\t\t\t\t\n\t\t\tfor(int p_cnt = 0; p_cnt < p_len; p_cnt++){\n\t\t\t\tif(p.charAt(p_cnt) == s2.charAt(s2_cnt + p_cnt)){\n\t\t\t\t\tans_cnt++;\n\t\t\t\t\tif(ans_cnt == p_len){\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(flg == 1)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\t//????§????\n\t\tscan.close();\n\t}\n}", "public class Main {\n\n\n\t\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint flg = 0;\n\t\t\n\t\tString s = scan.nextLine();//??????????????????\n\t\tString p = scan.nextLine();//??????????????????\n\t\t\n\t\tString s2 = s + s;//s???2?????£????????????\n\t\t\n\t\tint s2_len = s2.length();\n\t\tint p_len = p.length();\n\t\t\n\t\tfor(int s2_cnt = 0; s2_cnt < s2_len - p_len; s2_cnt++){\n\t\t\t\n\t\t\tint ans_cnt = 0;\n\t\t\t\t\n\t\t\tfor(int p_cnt = 0; p_cnt < p_len; p_cnt++){\n\t\t\t\tif(p.charAt(p_cnt) == s2.charAt(s2_cnt + p_cnt)){\n\t\t\t\t\tans_cnt++;\n\t\t\t\t\tif(ans_cnt == p_len){\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(flg == 1)\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t\t//????§????\n\t\tscan.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); int flg = 0; String s = scan.nextLine();//?????????????????? String p = scan.nextLine();//?????????????????? String s2 = s + s;//s???2?????£???????????? int s2_len = s2.length(); int p_len = p.length(); for(int s2_cnt = 0; s2_cnt < s2_len - p_len; s2_cnt++){ int ans_cnt = 0; for(int p_cnt = 0; p_cnt < p_len; p_cnt++){ if(p.charAt(p_cnt) == s2.charAt(s2_cnt + p_cnt)){ ans_cnt++; if(ans_cnt == p_len){ flg = 1; } } } } if(flg == 1) 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, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 4, 18, 13, 4, 18, 13, 30, 0, 13, 4, 18, 13, 13, 2, 13, 4, 18, 13, 30, 0, 13, 2, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 17, 2, 4, 18, 13, 2, 4, 18, 13, 13, 14, 4, 18, 13, 13, 30, 0, 13, 17, 3, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 13, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 120, 5 ], [ 120, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 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 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 28, 38 ], [ 38, 39 ], [ 39, 40 ], [ 28, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 44, 50 ], [ 50, 51 ], [ 51, 52 ], [ 43, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 43, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 68, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 76, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 80, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 84, 88 ], [ 42, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 89, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 8, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 99, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 6, 117 ], [ 117, 118 ], [ 0, 119 ], [ 119, 120 ], [ 119, 121 ] ]
[ "import java.io.*;\n\npublic class Main{\n public static void main(String[]args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s = br.readLine();\n String p = br.readLine();\n String ans=null;\n String res=null;\n for(int i=0;i<s.length();i++){\n if(i+p.length() <=s.length()){\n ans=s.substring(i, i+p.length());\n }else{\n ans=s.substring(i , s.length())+s.substring(0 , p.length()-(s.length()-i));\n }\n if(p.equals(ans)){\n res=\"Yes\";\n break;\n }\n \n }\n if(res==\"Yes\"){\n System.out.println(res);\n }else{\n System.out.println(\"No\");\n }\n \n \n }\n\n \n}", "import java.io.*;", "io.*", "java", "public class Main{\n public static void main(String[]args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s = br.readLine();\n String p = br.readLine();\n String ans=null;\n String res=null;\n for(int i=0;i<s.length();i++){\n if(i+p.length() <=s.length()){\n ans=s.substring(i, i+p.length());\n }else{\n ans=s.substring(i , s.length())+s.substring(0 , p.length()-(s.length()-i));\n }\n if(p.equals(ans)){\n res=\"Yes\";\n break;\n }\n \n }\n if(res==\"Yes\"){\n System.out.println(res);\n }else{\n System.out.println(\"No\");\n }\n \n \n }\n\n \n}", "Main", "public static void main(String[]args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s = br.readLine();\n String p = br.readLine();\n String ans=null;\n String res=null;\n for(int i=0;i<s.length();i++){\n if(i+p.length() <=s.length()){\n ans=s.substring(i, i+p.length());\n }else{\n ans=s.substring(i , s.length())+s.substring(0 , p.length()-(s.length()-i));\n }\n if(p.equals(ans)){\n res=\"Yes\";\n break;\n }\n \n }\n if(res==\"Yes\"){\n System.out.println(res);\n }else{\n System.out.println(\"No\");\n }\n \n \n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s = br.readLine();\n String p = br.readLine();\n String ans=null;\n String res=null;\n for(int i=0;i<s.length();i++){\n if(i+p.length() <=s.length()){\n ans=s.substring(i, i+p.length());\n }else{\n ans=s.substring(i , s.length())+s.substring(0 , p.length()-(s.length()-i));\n }\n if(p.equals(ans)){\n res=\"Yes\";\n break;\n }\n \n }\n if(res==\"Yes\"){\n System.out.println(res);\n }else{\n System.out.println(\"No\");\n }\n \n \n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String s = br.readLine();", "s", "br.readLine()", "br.readLine", "br", "String p = br.readLine();", "p", "br.readLine()", "br.readLine", "br", "String ans=null;", "ans", "null", "String res=null;", "res", "null", "for(int i=0;i<s.length();i++){\n if(i+p.length() <=s.length()){\n ans=s.substring(i, i+p.length());\n }else{\n ans=s.substring(i , s.length())+s.substring(0 , p.length()-(s.length()-i));\n }\n if(p.equals(ans)){\n res=\"Yes\";\n break;\n }\n \n }", "int i=0;", "int i=0;", "i", "0", "i<s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n if(i+p.length() <=s.length()){\n ans=s.substring(i, i+p.length());\n }else{\n ans=s.substring(i , s.length())+s.substring(0 , p.length()-(s.length()-i));\n }\n if(p.equals(ans)){\n res=\"Yes\";\n break;\n }\n \n }", "{\n if(i+p.length() <=s.length()){\n ans=s.substring(i, i+p.length());\n }else{\n ans=s.substring(i , s.length())+s.substring(0 , p.length()-(s.length()-i));\n }\n if(p.equals(ans)){\n res=\"Yes\";\n break;\n }\n \n }", "if(i+p.length() <=s.length()){\n ans=s.substring(i, i+p.length());\n }else{\n ans=s.substring(i , s.length())+s.substring(0 , p.length()-(s.length()-i));\n }", "i+p.length() <=s.length()", "i+p.length()", "i", "p.length()", "p.length", "p", "s.length()", "s.length", "s", "{\n ans=s.substring(i, i+p.length());\n }", "ans=s.substring(i, i+p.length())", "ans", "s.substring(i, i+p.length())", "s.substring", "s", "i", "i+p.length()", "i", "p.length()", "p.length", "p", "{\n ans=s.substring(i , s.length())+s.substring(0 , p.length()-(s.length()-i));\n }", "ans=s.substring(i , s.length())+s.substring(0 , p.length()-(s.length()-i))", "ans", "s.substring(i , s.length())+s.substring(0 , p.length()-(s.length()-i))", "s.substring(i , s.length())", "s.substring", "s", "i", "s.length()", "s.length", "s", "s.substring(0 , p.length()-(s.length()-i))", "s.substring", "s", "0", "p.length()-(s.length()-i)", "p.length()", "p.length", "p", "(s.length()-i)", "s.length()", "s.length", "s", "i", "if(p.equals(ans)){\n res=\"Yes\";\n break;\n }", "p.equals(ans)", "p.equals", "p", "ans", "{\n res=\"Yes\";\n break;\n }", "res=\"Yes\"", "res", "\"Yes\"", "break;", "if(res==\"Yes\"){\n System.out.println(res);\n }else{\n System.out.println(\"No\");\n }", "res==\"Yes\"", "res", "\"Yes\"", "{\n System.out.println(res);\n }", "System.out.println(res)", "System.out.println", "System.out", "System", "System.out", "res", "{\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 IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s = br.readLine();\n String p = br.readLine();\n String ans=null;\n String res=null;\n for(int i=0;i<s.length();i++){\n if(i+p.length() <=s.length()){\n ans=s.substring(i, i+p.length());\n }else{\n ans=s.substring(i , s.length())+s.substring(0 , p.length()-(s.length()-i));\n }\n if(p.equals(ans)){\n res=\"Yes\";\n break;\n }\n \n }\n if(res==\"Yes\"){\n System.out.println(res);\n }else{\n System.out.println(\"No\");\n }\n \n \n }\n\n \n}", "public class Main{\n public static void main(String[]args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s = br.readLine();\n String p = br.readLine();\n String ans=null;\n String res=null;\n for(int i=0;i<s.length();i++){\n if(i+p.length() <=s.length()){\n ans=s.substring(i, i+p.length());\n }else{\n ans=s.substring(i , s.length())+s.substring(0 , p.length()-(s.length()-i));\n }\n if(p.equals(ans)){\n res=\"Yes\";\n break;\n }\n \n }\n if(res==\"Yes\"){\n System.out.println(res);\n }else{\n System.out.println(\"No\");\n }\n \n \n }\n\n \n}", "Main" ]
import java.io.*; public class Main{ public static void main(String[]args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String s = br.readLine(); String p = br.readLine(); String ans=null; String res=null; for(int i=0;i<s.length();i++){ if(i+p.length() <=s.length()){ ans=s.substring(i, i+p.length()); }else{ ans=s.substring(i , s.length())+s.substring(0 , p.length()-(s.length()-i)); } if(p.equals(ans)){ res="Yes"; break; } } if(res=="Yes"){ System.out.println(res); }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, 4, 18, 13, 17, 2, 4, 18, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 62, 5 ], [ 62, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 26, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 30, 34 ], [ 8, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 36, 41 ], [ 35, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 35, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 8, 56 ], [ 56, 57 ], [ 57, 58 ], [ 6, 59 ], [ 59, 60 ], [ 0, 61 ], [ 61, 62 ], [ 61, 63 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\t\t\n\t\tString newStr = s + s.substring(0,p.length()-1);\n\n if(newStr.indexOf(p) >= 0) {\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\tscan.close();\n\t}\n}\n\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\t\t\n\t\tString newStr = s + s.substring(0,p.length()-1);\n\n if(newStr.indexOf(p) >= 0) {\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\tscan.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\t\t\n\t\tString newStr = s + s.substring(0,p.length()-1);\n\n if(newStr.indexOf(p) >= 0) {\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\tscan.close();\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\t\t\n\t\tString newStr = s + s.substring(0,p.length()-1);\n\n if(newStr.indexOf(p) >= 0) {\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\tscan.close();\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String s = scan.nextLine();", "s", "scan.nextLine()", "scan.nextLine", "scan", "String p = scan.nextLine();", "p", "scan.nextLine()", "scan.nextLine", "scan", "String newStr = s + s.substring(0,p.length()-1);", "newStr", "s + s.substring(0,p.length()-1)", "s", "s.substring(0,p.length()-1)", "s.substring", "s", "0", "p.length()-1", "p.length()", "p.length", "p", "1", "if(newStr.indexOf(p) >= 0) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "newStr.indexOf(p) >= 0", "newStr.indexOf(p)", "newStr.indexOf", "newStr", "p", "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\"", "scan.close()", "scan.close", "scan", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\t\t\n\t\tString newStr = s + s.substring(0,p.length()-1);\n\n if(newStr.indexOf(p) >= 0) {\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\tscan.close();\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\t\t\n\t\tString newStr = s + s.substring(0,p.length()-1);\n\n if(newStr.indexOf(p) >= 0) {\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\tscan.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String s = scan.nextLine(); String p = scan.nextLine(); String newStr = s + s.substring(0,p.length()-1); if(newStr.indexOf(p) >= 0) { System.out.println("Yes"); } else { System.out.println("No"); } scan.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 38, 30, 14, 2, 13, 17, 4, 18, 13, 30, 0, 13, 20, 41, 13, 41, 13, 4, 18, 13, 41, 13, 17, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 14, 4, 18, 13, 4, 18, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 64, 5 ], [ 64, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 19, 20 ], [ 12, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 25, 26 ], [ 21, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 32, 33 ], [ 32, 34 ], [ 21, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 37, 44 ], [ 35, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 51, 52 ], [ 46, 53 ], [ 53, 54 ], [ 21, 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;\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = null;\n\t\ttry{\n\t\t\tscan = new Scanner(System.in);\n\t\t\tString str;\n\t\t\tString text = scan.next();\n\t\t\tint counter = 0;\n\t\t\twhile(!(str = scan.next()).equals(\"END_OF_TEXT\")){\n\t\t\t\tif(text.equals(str.toLowerCase()))counter++;\n\t\t\t}\n\t\t\tSystem.out.println(counter);\n\t\t}finally{\n\t\t\tif(scan!=null)scan.close();\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = null;\n\t\ttry{\n\t\t\tscan = new Scanner(System.in);\n\t\t\tString str;\n\t\t\tString text = scan.next();\n\t\t\tint counter = 0;\n\t\t\twhile(!(str = scan.next()).equals(\"END_OF_TEXT\")){\n\t\t\t\tif(text.equals(str.toLowerCase()))counter++;\n\t\t\t}\n\t\t\tSystem.out.println(counter);\n\t\t}finally{\n\t\t\tif(scan!=null)scan.close();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner scan = null;\n\t\ttry{\n\t\t\tscan = new Scanner(System.in);\n\t\t\tString str;\n\t\t\tString text = scan.next();\n\t\t\tint counter = 0;\n\t\t\twhile(!(str = scan.next()).equals(\"END_OF_TEXT\")){\n\t\t\t\tif(text.equals(str.toLowerCase()))counter++;\n\t\t\t}\n\t\t\tSystem.out.println(counter);\n\t\t}finally{\n\t\t\tif(scan!=null)scan.close();\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = null;\n\t\ttry{\n\t\t\tscan = new Scanner(System.in);\n\t\t\tString str;\n\t\t\tString text = scan.next();\n\t\t\tint counter = 0;\n\t\t\twhile(!(str = scan.next()).equals(\"END_OF_TEXT\")){\n\t\t\t\tif(text.equals(str.toLowerCase()))counter++;\n\t\t\t}\n\t\t\tSystem.out.println(counter);\n\t\t}finally{\n\t\t\tif(scan!=null)scan.close();\n\t\t}\n\t}", "Scanner scan = null;", "scan", "null", "try{\n\t\t\tscan = new Scanner(System.in);\n\t\t\tString str;\n\t\t\tString text = scan.next();\n\t\t\tint counter = 0;\n\t\t\twhile(!(str = scan.next()).equals(\"END_OF_TEXT\")){\n\t\t\t\tif(text.equals(str.toLowerCase()))counter++;\n\t\t\t}\n\t\t\tSystem.out.println(counter);\n\t\t}finally{\n\t\t\tif(scan!=null)scan.close();\n\t\t}", "{\n\t\t\tif(scan!=null)scan.close();\n\t\t}", "if(scan!=null)scan.close();", "scan!=null", "scan", "null", "scan.close()", "scan.close", "scan", "{\n\t\t\tscan = new Scanner(System.in);\n\t\t\tString str;\n\t\t\tString text = scan.next();\n\t\t\tint counter = 0;\n\t\t\twhile(!(str = scan.next()).equals(\"END_OF_TEXT\")){\n\t\t\t\tif(text.equals(str.toLowerCase()))counter++;\n\t\t\t}\n\t\t\tSystem.out.println(counter);\n\t\t}", "scan = new Scanner(System.in)", "scan", "new Scanner(System.in)", "String str;", "str", "String text = scan.next();", "text", "scan.next()", "scan.next", "scan", "int counter = 0;", "counter", "0", "while(!(str = scan.next()).equals(\"END_OF_TEXT\")){\n\t\t\t\tif(text.equals(str.toLowerCase()))counter++;\n\t\t\t}", "!(str = scan.next()).equals(\"END_OF_TEXT\")", "(str = scan.next()).equals(\"END_OF_TEXT\")", "(str = scan.next()).equals", "(str = scan.next())", "str", "scan.next()", "scan.next", "scan", "\"END_OF_TEXT\"", "{\n\t\t\t\tif(text.equals(str.toLowerCase()))counter++;\n\t\t\t}", "if(text.equals(str.toLowerCase()))counter++;", "text.equals(str.toLowerCase())", "text.equals", "text", "str.toLowerCase()", "str.toLowerCase", "str", "counter++", "counter", "System.out.println(counter)", "System.out.println", "System.out", "System", "System.out", "counter", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = null;\n\t\ttry{\n\t\t\tscan = new Scanner(System.in);\n\t\t\tString str;\n\t\t\tString text = scan.next();\n\t\t\tint counter = 0;\n\t\t\twhile(!(str = scan.next()).equals(\"END_OF_TEXT\")){\n\t\t\t\tif(text.equals(str.toLowerCase()))counter++;\n\t\t\t}\n\t\t\tSystem.out.println(counter);\n\t\t}finally{\n\t\t\tif(scan!=null)scan.close();\n\t\t}\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = null;\n\t\ttry{\n\t\t\tscan = new Scanner(System.in);\n\t\t\tString str;\n\t\t\tString text = scan.next();\n\t\t\tint counter = 0;\n\t\t\twhile(!(str = scan.next()).equals(\"END_OF_TEXT\")){\n\t\t\t\tif(text.equals(str.toLowerCase()))counter++;\n\t\t\t}\n\t\t\tSystem.out.println(counter);\n\t\t}finally{\n\t\t\tif(scan!=null)scan.close();\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = null; try{ scan = new Scanner(System.in); String str; String text = scan.next(); int counter = 0; while(!(str = scan.next()).equals("END_OF_TEXT")){ if(text.equals(str.toLowerCase()))counter++; } System.out.println(counter); }finally{ if(scan!=null)scan.close(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 17, 28, 13, 13, 30, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 68, 5 ], [ 68, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 22, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 22, 41 ], [ 41, 42 ], [ 41, 43 ], [ 41, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 45, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 51, 56 ], [ 56, 57 ], [ 57, 58 ], [ 8, 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 public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s1 = sc.nextLine();\n\n int count = 0;\n while(true) {\n String s2 = sc.nextLine();\n if(s2.equals(\"END_OF_TEXT\")) {\n break;\n }\n String[] ss = s2.split(\" \");\n for(String s : ss) {\n String s3 = s.toLowerCase();\n if(s3.equals(s1)) {\n count++;\n }\n }\n }\n System.out.println(count);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s1 = sc.nextLine();\n\n int count = 0;\n while(true) {\n String s2 = sc.nextLine();\n if(s2.equals(\"END_OF_TEXT\")) {\n break;\n }\n String[] ss = s2.split(\" \");\n for(String s : ss) {\n String s3 = s.toLowerCase();\n if(s3.equals(s1)) {\n count++;\n }\n }\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s1 = sc.nextLine();\n\n int count = 0;\n while(true) {\n String s2 = sc.nextLine();\n if(s2.equals(\"END_OF_TEXT\")) {\n break;\n }\n String[] ss = s2.split(\" \");\n for(String s : ss) {\n String s3 = s.toLowerCase();\n if(s3.equals(s1)) {\n count++;\n }\n }\n }\n System.out.println(count);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s1 = sc.nextLine();\n\n int count = 0;\n while(true) {\n String s2 = sc.nextLine();\n if(s2.equals(\"END_OF_TEXT\")) {\n break;\n }\n String[] ss = s2.split(\" \");\n for(String s : ss) {\n String s3 = s.toLowerCase();\n if(s3.equals(s1)) {\n count++;\n }\n }\n }\n System.out.println(count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s1 = sc.nextLine();", "s1", "sc.nextLine()", "sc.nextLine", "sc", "int count = 0;", "count", "0", "while(true) {\n String s2 = sc.nextLine();\n if(s2.equals(\"END_OF_TEXT\")) {\n break;\n }\n String[] ss = s2.split(\" \");\n for(String s : ss) {\n String s3 = s.toLowerCase();\n if(s3.equals(s1)) {\n count++;\n }\n }\n }", "true", "{\n String s2 = sc.nextLine();\n if(s2.equals(\"END_OF_TEXT\")) {\n break;\n }\n String[] ss = s2.split(\" \");\n for(String s : ss) {\n String s3 = s.toLowerCase();\n if(s3.equals(s1)) {\n count++;\n }\n }\n }", "String s2 = sc.nextLine();", "s2", "sc.nextLine()", "sc.nextLine", "sc", "if(s2.equals(\"END_OF_TEXT\")) {\n break;\n }", "s2.equals(\"END_OF_TEXT\")", "s2.equals", "s2", "\"END_OF_TEXT\"", "{\n break;\n }", "break;", "String[] ss = s2.split(\" \");", "ss", "s2.split(\" \")", "s2.split", "s2", "\" \"", "for(String s : ss) {\n String s3 = s.toLowerCase();\n if(s3.equals(s1)) {\n count++;\n }\n }", "String s", "ss", "{\n String s3 = s.toLowerCase();\n if(s3.equals(s1)) {\n count++;\n }\n }", "{\n String s3 = s.toLowerCase();\n if(s3.equals(s1)) {\n count++;\n }\n }", "String s3 = s.toLowerCase();", "s3", "s.toLowerCase()", "s.toLowerCase", "s", "if(s3.equals(s1)) {\n count++;\n }", "s3.equals(s1)", "s3.equals", "s3", "s1", "{\n count++;\n }", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s1 = sc.nextLine();\n\n int count = 0;\n while(true) {\n String s2 = sc.nextLine();\n if(s2.equals(\"END_OF_TEXT\")) {\n break;\n }\n String[] ss = s2.split(\" \");\n for(String s : ss) {\n String s3 = s.toLowerCase();\n if(s3.equals(s1)) {\n count++;\n }\n }\n }\n System.out.println(count);\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s1 = sc.nextLine();\n\n int count = 0;\n while(true) {\n String s2 = sc.nextLine();\n if(s2.equals(\"END_OF_TEXT\")) {\n break;\n }\n String[] ss = s2.split(\" \");\n for(String s : ss) {\n String s3 = s.toLowerCase();\n if(s3.equals(s1)) {\n count++;\n }\n }\n }\n System.out.println(count);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s1 = sc.nextLine(); int count = 0; while(true) { String s2 = sc.nextLine(); if(s2.equals("END_OF_TEXT")) { break; } String[] ss = s2.split(" "); for(String s : ss) { String s3 = s.toLowerCase(); if(s3.equals(s1)) { count++; } } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 41, 13, 17, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 3, 14, 4, 18, 13, 13, 40, 13, 4, 18, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 58, 5 ], [ 58, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 23, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 27, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 44, 45 ], [ 8, 46 ], [ 46, 47 ], [ 47, 48 ], [ 8, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 6, 55 ], [ 55, 56 ], [ 0, 57 ], [ 57, 58 ], [ 57, 59 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal String END_OF_TEXT = \"END_OF_TEXT\", WORD = sc.nextLine();\n\t\tint count = 0;\n\t\twhile (sc.hasNext()) {\n\t\t\tString text = sc.next();\n\t\t\tif (text.equals(END_OF_TEXT)) break;\n\t\t\tif (text.equalsIgnoreCase(WORD)) count++;\n\t\t}\n\t\tsc.close();\n\t\tSystem.out.println(count);\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\tfinal String END_OF_TEXT = \"END_OF_TEXT\", WORD = sc.nextLine();\n\t\tint count = 0;\n\t\twhile (sc.hasNext()) {\n\t\t\tString text = sc.next();\n\t\t\tif (text.equals(END_OF_TEXT)) break;\n\t\t\tif (text.equalsIgnoreCase(WORD)) count++;\n\t\t}\n\t\tsc.close();\n\t\tSystem.out.println(count);\t\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal String END_OF_TEXT = \"END_OF_TEXT\", WORD = sc.nextLine();\n\t\tint count = 0;\n\t\twhile (sc.hasNext()) {\n\t\t\tString text = sc.next();\n\t\t\tif (text.equals(END_OF_TEXT)) break;\n\t\t\tif (text.equalsIgnoreCase(WORD)) count++;\n\t\t}\n\t\tsc.close();\n\t\tSystem.out.println(count);\t\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal String END_OF_TEXT = \"END_OF_TEXT\", WORD = sc.nextLine();\n\t\tint count = 0;\n\t\twhile (sc.hasNext()) {\n\t\t\tString text = sc.next();\n\t\t\tif (text.equals(END_OF_TEXT)) break;\n\t\t\tif (text.equalsIgnoreCase(WORD)) count++;\n\t\t}\n\t\tsc.close();\n\t\tSystem.out.println(count);\t\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "final String END_OF_TEXT = \"END_OF_TEXT\"", "END_OF_TEXT", "\"END_OF_TEXT\"", "WORD = sc.nextLine();", "WORD", "sc.nextLine()", "sc.nextLine", "sc", "int count = 0;", "count", "0", "while (sc.hasNext()) {\n\t\t\tString text = sc.next();\n\t\t\tif (text.equals(END_OF_TEXT)) break;\n\t\t\tif (text.equalsIgnoreCase(WORD)) count++;\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\tString text = sc.next();\n\t\t\tif (text.equals(END_OF_TEXT)) break;\n\t\t\tif (text.equalsIgnoreCase(WORD)) count++;\n\t\t}", "String text = sc.next();", "text", "sc.next()", "sc.next", "sc", "if (text.equals(END_OF_TEXT)) break;", "text.equals(END_OF_TEXT)", "text.equals", "text", "END_OF_TEXT", "break;", "if (text.equalsIgnoreCase(WORD)) count++;", "text.equalsIgnoreCase(WORD)", "text.equalsIgnoreCase", "text", "WORD", "count++", "count", "sc.close()", "sc.close", "sc", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal String END_OF_TEXT = \"END_OF_TEXT\", WORD = sc.nextLine();\n\t\tint count = 0;\n\t\twhile (sc.hasNext()) {\n\t\t\tString text = sc.next();\n\t\t\tif (text.equals(END_OF_TEXT)) break;\n\t\t\tif (text.equalsIgnoreCase(WORD)) count++;\n\t\t}\n\t\tsc.close();\n\t\tSystem.out.println(count);\t\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal String END_OF_TEXT = \"END_OF_TEXT\", WORD = sc.nextLine();\n\t\tint count = 0;\n\t\twhile (sc.hasNext()) {\n\t\t\tString text = sc.next();\n\t\t\tif (text.equals(END_OF_TEXT)) break;\n\t\t\tif (text.equalsIgnoreCase(WORD)) count++;\n\t\t}\n\t\tsc.close();\n\t\tSystem.out.println(count);\t\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); final String END_OF_TEXT = "END_OF_TEXT", WORD = sc.nextLine(); int count = 0; while (sc.hasNext()) { String text = sc.next(); if (text.equals(END_OF_TEXT)) break; if (text.equalsIgnoreCase(WORD)) count++; } sc.close(); System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 2, 2, 17, 4, 18, 4, 18, 13, 17, 41, 13, 17, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 0, 13, 2, 13, 17, 0, 13, 4, 18, 13, 4, 18, 18, 13, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 13, 13, 14, 2, 13, 40, 17, 3, 40, 13, 40, 13, 29, 13, 23, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 15, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 15, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 30, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 36, 41 ], [ 30, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 8, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 8, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 57, 60 ], [ 6, 61 ], [ 61, 62 ], [ 4, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 65, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 77, 81 ], [ 74, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 82, 87 ], [ 74, 88 ], [ 88, 89 ], [ 74, 90 ], [ 90, 91 ], [ 65, 92 ], [ 92, 93 ], [ 63, 94 ], [ 94, 95 ], [ 63, 96 ], [ 96, 97 ] ]
[ "import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString W=\" \"+br.readLine().toLowerCase()+\" \";\n String T=\" \",n;\n while(true){\n \tn=br.readLine();\n \tif(n.equals(\"END_OF_TEXT\")) break;\n \tT+=n+\" \";\n }\n \tT=T.toLowerCase();\n System.out.println(count(T,W));\n\t}\n\t\n\tprivate static int count(String str, String reg){\n\t\tint c=0,r=0;\n\t\twhile(true){\n\t\t c=str.indexOf(reg,c);\n\t\t if(c==-1) break;\n\t\t r++;\n\t\t c++;\n\t\t}\n\t\treturn r;\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString W=\" \"+br.readLine().toLowerCase()+\" \";\n String T=\" \",n;\n while(true){\n \tn=br.readLine();\n \tif(n.equals(\"END_OF_TEXT\")) break;\n \tT+=n+\" \";\n }\n \tT=T.toLowerCase();\n System.out.println(count(T,W));\n\t}\n\t\n\tprivate static int count(String str, String reg){\n\t\tint c=0,r=0;\n\t\twhile(true){\n\t\t c=str.indexOf(reg,c);\n\t\t if(c==-1) break;\n\t\t r++;\n\t\t c++;\n\t\t}\n\t\treturn r;\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 W=\" \"+br.readLine().toLowerCase()+\" \";\n String T=\" \",n;\n while(true){\n \tn=br.readLine();\n \tif(n.equals(\"END_OF_TEXT\")) break;\n \tT+=n+\" \";\n }\n \tT=T.toLowerCase();\n System.out.println(count(T,W));\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString W=\" \"+br.readLine().toLowerCase()+\" \";\n String T=\" \",n;\n while(true){\n \tn=br.readLine();\n \tif(n.equals(\"END_OF_TEXT\")) break;\n \tT+=n+\" \";\n }\n \tT=T.toLowerCase();\n System.out.println(count(T,W));\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String W=\" \"+br.readLine().toLowerCase()+\" \";", "W", "\" \"+br.readLine().toLowerCase()+\" \"", "\" \"+br.readLine().toLowerCase()+\" \"", "\" \"", "br.readLine().toLowerCase()", "br.readLine().toLowerCase", "br.readLine()", "br.readLine", "br", "\" \"", "String T=\" \"", "T", "\" \"", "n;", "n", "while(true){\n \tn=br.readLine();\n \tif(n.equals(\"END_OF_TEXT\")) break;\n \tT+=n+\" \";\n }", "true", "{\n \tn=br.readLine();\n \tif(n.equals(\"END_OF_TEXT\")) break;\n \tT+=n+\" \";\n }", "n=br.readLine()", "n", "br.readLine()", "br.readLine", "br", "if(n.equals(\"END_OF_TEXT\")) break;", "n.equals(\"END_OF_TEXT\")", "n.equals", "n", "\"END_OF_TEXT\"", "break;", "T+=n+\" \"", "T", "n+\" \"", "n", "\" \"", "T=T.toLowerCase()", "T", "T.toLowerCase()", "T.toLowerCase", "T", "System.out.println(count(T,W))", "System.out.println", "System.out", "System", "System.out", "count(T,W)", "count", "T", "W", "String[] args", "args", "private static int count(String str, String reg){\n\t\tint c=0,r=0;\n\t\twhile(true){\n\t\t c=str.indexOf(reg,c);\n\t\t if(c==-1) break;\n\t\t r++;\n\t\t c++;\n\t\t}\n\t\treturn r;\n\t}", "count", "{\n\t\tint c=0,r=0;\n\t\twhile(true){\n\t\t c=str.indexOf(reg,c);\n\t\t if(c==-1) break;\n\t\t r++;\n\t\t c++;\n\t\t}\n\t\treturn r;\n\t}", "int c=0", "c", "0", "r=0;", "r", "0", "while(true){\n\t\t c=str.indexOf(reg,c);\n\t\t if(c==-1) break;\n\t\t r++;\n\t\t c++;\n\t\t}", "true", "{\n\t\t c=str.indexOf(reg,c);\n\t\t if(c==-1) break;\n\t\t r++;\n\t\t c++;\n\t\t}", "c=str.indexOf(reg,c)", "c", "str.indexOf(reg,c)", "str.indexOf", "str", "reg", "c", "if(c==-1) break;", "c==-1", "c", "-1", "1", "break;", "r++", "r", "c++", "c", "return r;", "r", "String str", "str", "String reg", "reg" ]
import java.io.*; class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String W=" "+br.readLine().toLowerCase()+" "; String T=" ",n; while(true){ n=br.readLine(); if(n.equals("END_OF_TEXT")) break; T+=n+" "; } T=T.toLowerCase(); System.out.println(count(T,W)); } private static int count(String str, String reg){ int c=0,r=0; while(true){ c=str.indexOf(reg,c); if(c==-1) break; r++; c++; } return r; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 13, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 24, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 35, 36 ], [ 24, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 24, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 24, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 48, 58 ], [ 58, 59 ], [ 59, 60 ], [ 48, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 67, 69 ], [ 63, 70 ], [ 70, 71 ], [ 71, 72 ], [ 8, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 6, 79 ], [ 79, 80 ] ]
[ "import java.io.*;\n\nclass Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String W = br.readLine().toLowerCase();\n int count = 0;\n\n while (true){\n String line = br.readLine();\n if (line.equals(\"END_OF_TEXT\")) {break;}\n line = line.toLowerCase();\n String[] words = line.split(\" \");\n for (int i = 0; i < words.length; i++){\n if (W.equals(words[i])) {count++;}\n }\n }\n System.out.println(count);\n }\n}", "import java.io.*;", "io.*", "java", "class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String W = br.readLine().toLowerCase();\n int count = 0;\n\n while (true){\n String line = br.readLine();\n if (line.equals(\"END_OF_TEXT\")) {break;}\n line = line.toLowerCase();\n String[] words = line.split(\" \");\n for (int i = 0; i < words.length; i++){\n if (W.equals(words[i])) {count++;}\n }\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String W = br.readLine().toLowerCase();\n int count = 0;\n\n while (true){\n String line = br.readLine();\n if (line.equals(\"END_OF_TEXT\")) {break;}\n line = line.toLowerCase();\n String[] words = line.split(\" \");\n for (int i = 0; i < words.length; i++){\n if (W.equals(words[i])) {count++;}\n }\n }\n System.out.println(count);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String W = br.readLine().toLowerCase();\n int count = 0;\n\n while (true){\n String line = br.readLine();\n if (line.equals(\"END_OF_TEXT\")) {break;}\n line = line.toLowerCase();\n String[] words = line.split(\" \");\n for (int i = 0; i < words.length; i++){\n if (W.equals(words[i])) {count++;}\n }\n }\n System.out.println(count);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String W = br.readLine().toLowerCase();", "W", "br.readLine().toLowerCase()", "br.readLine().toLowerCase", "br.readLine()", "br.readLine", "br", "int count = 0;", "count", "0", "while (true){\n String line = br.readLine();\n if (line.equals(\"END_OF_TEXT\")) {break;}\n line = line.toLowerCase();\n String[] words = line.split(\" \");\n for (int i = 0; i < words.length; i++){\n if (W.equals(words[i])) {count++;}\n }\n }", "true", "{\n String line = br.readLine();\n if (line.equals(\"END_OF_TEXT\")) {break;}\n line = line.toLowerCase();\n String[] words = line.split(\" \");\n for (int i = 0; i < words.length; i++){\n if (W.equals(words[i])) {count++;}\n }\n }", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "if (line.equals(\"END_OF_TEXT\")) {break;}", "line.equals(\"END_OF_TEXT\")", "line.equals", "line", "\"END_OF_TEXT\"", "{break;}", "break;", "line = line.toLowerCase()", "line", "line.toLowerCase()", "line.toLowerCase", "line", "String[] words = line.split(\" \");", "words", "line.split(\" \")", "line.split", "line", "\" \"", "for (int i = 0; i < words.length; i++){\n if (W.equals(words[i])) {count++;}\n }", "int i = 0;", "int i = 0;", "i", "0", "i < words.length", "i", "words.length", "words", "words.length", "i++", "i++", "i", "{\n if (W.equals(words[i])) {count++;}\n }", "{\n if (W.equals(words[i])) {count++;}\n }", "if (W.equals(words[i])) {count++;}", "W.equals(words[i])", "W.equals", "W", "words[i]", "words", "i", "{count++;}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args" ]
import java.io.*; class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String W = br.readLine().toLowerCase(); int count = 0; while (true){ String line = br.readLine(); if (line.equals("END_OF_TEXT")) {break;} line = line.toLowerCase(); String[] words = line.split(" "); for (int i = 0; i < words.length; i++){ if (W.equals(words[i])) {count++;} } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 4, 18, 13, 42, 4, 18, 13, 30, 41, 13, 4, 18, 4, 18, 13, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 51, 5 ], [ 51, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 22, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 39, 40 ], [ 40, 41 ], [ 8, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 6, 48 ], [ 48, 49 ], [ 0, 50 ], [ 50, 51 ], [ 50, 52 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = 0;\n\t\tString line1 = sc.next().toUpperCase();\n\t\twhile (sc.hasNext()) {\n\t\t\tString line2 = sc.next().toUpperCase();\n\n\t\t\tif(line2.equals(line1)) {\n\t\t\t\tcount++;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = 0;\n\t\tString line1 = sc.next().toUpperCase();\n\t\twhile (sc.hasNext()) {\n\t\t\tString line2 = sc.next().toUpperCase();\n\n\t\t\tif(line2.equals(line1)) {\n\t\t\t\tcount++;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = 0;\n\t\tString line1 = sc.next().toUpperCase();\n\t\twhile (sc.hasNext()) {\n\t\t\tString line2 = sc.next().toUpperCase();\n\n\t\t\tif(line2.equals(line1)) {\n\t\t\t\tcount++;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = 0;\n\t\tString line1 = sc.next().toUpperCase();\n\t\twhile (sc.hasNext()) {\n\t\t\tString line2 = sc.next().toUpperCase();\n\n\t\t\tif(line2.equals(line1)) {\n\t\t\t\tcount++;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int count = 0;", "count", "0", "String line1 = sc.next().toUpperCase();", "line1", "sc.next().toUpperCase()", "sc.next().toUpperCase", "sc.next()", "sc.next", "sc", "while (sc.hasNext()) {\n\t\t\tString line2 = sc.next().toUpperCase();\n\n\t\t\tif(line2.equals(line1)) {\n\t\t\t\tcount++;\n\t\t\t}\n\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\tString line2 = sc.next().toUpperCase();\n\n\t\t\tif(line2.equals(line1)) {\n\t\t\t\tcount++;\n\t\t\t}\n\n\t\t}", "String line2 = sc.next().toUpperCase();", "line2", "sc.next().toUpperCase()", "sc.next().toUpperCase", "sc.next()", "sc.next", "sc", "if(line2.equals(line1)) {\n\t\t\t\tcount++;\n\t\t\t}", "line2.equals(line1)", "line2.equals", "line2", "line1", "{\n\t\t\t\tcount++;\n\t\t\t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = 0;\n\t\tString line1 = sc.next().toUpperCase();\n\t\twhile (sc.hasNext()) {\n\t\t\tString line2 = sc.next().toUpperCase();\n\n\t\t\tif(line2.equals(line1)) {\n\t\t\t\tcount++;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = 0;\n\t\tString line1 = sc.next().toUpperCase();\n\t\twhile (sc.hasNext()) {\n\t\t\tString line2 = sc.next().toUpperCase();\n\n\t\t\tif(line2.equals(line1)) {\n\t\t\t\tcount++;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(count);\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); int count = 0; String line1 = sc.next().toUpperCase(); while (sc.hasNext()) { String line2 = sc.next().toUpperCase(); if(line2.equals(line1)) { count++; } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 51, 5 ], [ 51, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 22, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 39, 40 ], [ 8, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 41, 47 ], [ 6, 48 ], [ 48, 49 ], [ 0, 50 ], [ 50, 51 ], [ 50, 52 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String x = sc.next();\n int count = 0;\n while(true){\n String a = sc.next();\n if(a.equals(\"END_OF_TEXT\")) break;\n if(a.equalsIgnoreCase(x)) count++;\n }\n System.out.printf(\"%d\\n\",count);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String x = sc.next();\n int count = 0;\n while(true){\n String a = sc.next();\n if(a.equals(\"END_OF_TEXT\")) break;\n if(a.equalsIgnoreCase(x)) count++;\n }\n System.out.printf(\"%d\\n\",count);\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String x = sc.next();\n int count = 0;\n while(true){\n String a = sc.next();\n if(a.equals(\"END_OF_TEXT\")) break;\n if(a.equalsIgnoreCase(x)) count++;\n }\n System.out.printf(\"%d\\n\",count);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String x = sc.next();\n int count = 0;\n while(true){\n String a = sc.next();\n if(a.equals(\"END_OF_TEXT\")) break;\n if(a.equalsIgnoreCase(x)) count++;\n }\n System.out.printf(\"%d\\n\",count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String x = sc.next();", "x", "sc.next()", "sc.next", "sc", "int count = 0;", "count", "0", "while(true){\n String a = sc.next();\n if(a.equals(\"END_OF_TEXT\")) break;\n if(a.equalsIgnoreCase(x)) count++;\n }", "true", "{\n String a = sc.next();\n if(a.equals(\"END_OF_TEXT\")) break;\n if(a.equalsIgnoreCase(x)) count++;\n }", "String a = sc.next();", "a", "sc.next()", "sc.next", "sc", "if(a.equals(\"END_OF_TEXT\")) break;", "a.equals(\"END_OF_TEXT\")", "a.equals", "a", "\"END_OF_TEXT\"", "break;", "if(a.equalsIgnoreCase(x)) count++;", "a.equalsIgnoreCase(x)", "a.equalsIgnoreCase", "a", "x", "count++", "count", "System.out.printf(\"%d\\n\",count)", "System.out.printf", "System.out", "System", "System.out", "\"%d\\n\"", "count", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String x = sc.next();\n int count = 0;\n while(true){\n String a = sc.next();\n if(a.equals(\"END_OF_TEXT\")) break;\n if(a.equalsIgnoreCase(x)) count++;\n }\n System.out.printf(\"%d\\n\",count);\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String x = sc.next();\n int count = 0;\n while(true){\n String a = sc.next();\n if(a.equals(\"END_OF_TEXT\")) break;\n if(a.equalsIgnoreCase(x)) count++;\n }\n System.out.printf(\"%d\\n\",count);\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String x = sc.next(); int count = 0; while(true){ String a = sc.next(); if(a.equals("END_OF_TEXT")) break; if(a.equalsIgnoreCase(x)) count++; } System.out.printf("%d\n",count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 4, 18, 13, 41, 13, 41, 13, 4, 18, 13, 42, 40, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 40, 13, 0, 13, 4, 18, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 62, 5 ], [ 62, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 29, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 35, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 41, 46 ], [ 46, 47 ], [ 35, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 8, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 6, 59 ], [ 59, 60 ], [ 0, 61 ], [ 61, 62 ], [ 61, 63 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int count = 0;\n String key = sc.next().toString();\n String cmp;\n\n String input = sc.next();\n while(! input.equals(\"END_OF_TEXT\")) {\n cmp = input.toLowerCase();\n if(cmp.equals(key))\n count++;\n input = sc.next();\n }\n System.out.println(count);\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int count = 0;\n String key = sc.next().toString();\n String cmp;\n\n String input = sc.next();\n while(! input.equals(\"END_OF_TEXT\")) {\n cmp = input.toLowerCase();\n if(cmp.equals(key))\n count++;\n input = sc.next();\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int count = 0;\n String key = sc.next().toString();\n String cmp;\n\n String input = sc.next();\n while(! input.equals(\"END_OF_TEXT\")) {\n cmp = input.toLowerCase();\n if(cmp.equals(key))\n count++;\n input = sc.next();\n }\n System.out.println(count);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n int count = 0;\n String key = sc.next().toString();\n String cmp;\n\n String input = sc.next();\n while(! input.equals(\"END_OF_TEXT\")) {\n cmp = input.toLowerCase();\n if(cmp.equals(key))\n count++;\n input = sc.next();\n }\n System.out.println(count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int count = 0;", "count", "0", "String key = sc.next().toString();", "key", "sc.next().toString()", "sc.next().toString", "sc.next()", "sc.next", "sc", "String cmp;", "cmp", "String input = sc.next();", "input", "sc.next()", "sc.next", "sc", "while(! input.equals(\"END_OF_TEXT\")) {\n cmp = input.toLowerCase();\n if(cmp.equals(key))\n count++;\n input = sc.next();\n }", "! input.equals(\"END_OF_TEXT\")", "input.equals(\"END_OF_TEXT\")", "input.equals", "input", "\"END_OF_TEXT\"", "{\n cmp = input.toLowerCase();\n if(cmp.equals(key))\n count++;\n input = sc.next();\n }", "cmp = input.toLowerCase()", "cmp", "input.toLowerCase()", "input.toLowerCase", "input", "if(cmp.equals(key))\n count++;", "cmp.equals(key)", "cmp.equals", "cmp", "key", "count++", "count", "input = sc.next()", "input", "sc.next()", "sc.next", "sc", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int count = 0;\n String key = sc.next().toString();\n String cmp;\n\n String input = sc.next();\n while(! input.equals(\"END_OF_TEXT\")) {\n cmp = input.toLowerCase();\n if(cmp.equals(key))\n count++;\n input = sc.next();\n }\n System.out.println(count);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int count = 0;\n String key = sc.next().toString();\n String cmp;\n\n String input = sc.next();\n while(! input.equals(\"END_OF_TEXT\")) {\n cmp = input.toLowerCase();\n if(cmp.equals(key))\n count++;\n input = sc.next();\n }\n System.out.println(count);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int count = 0; String key = sc.next().toString(); String cmp; String input = sc.next(); while(! input.equals("END_OF_TEXT")) { cmp = input.toLowerCase(); if(cmp.equals(key)) count++; input = sc.next(); } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 30, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 13, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 84, 11 ], [ 84, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 31, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 37, 42 ], [ 42, 43 ], [ 37, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 14, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 49, 59 ], [ 59, 60 ], [ 60, 61 ], [ 49, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 65, 71 ], [ 64, 72 ], [ 72, 73 ], [ 73, 74 ], [ 14, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 12, 81 ], [ 81, 82 ], [ 0, 83 ], [ 83, 84 ], [ 83, 85 ] ]
[ "import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner stdin = new Scanner(System.in);\n\n\t\tint number = 0;\n\n\t\tString Word = stdin.nextLine();\n\n\t\tList<String> result = new ArrayList<>();\n\n\t\twhile (true) {\n\t\t\tString word = stdin.next();\n\t\t\tif (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tresult.add(word);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i< result.size();i++) {\n if(result.get(i).equalsIgnoreCase(Word)) {\n \tnumber++;\n } \n\n }\n System.out.println(number);\n\n}\n\n\t}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner stdin = new Scanner(System.in);\n\n\t\tint number = 0;\n\n\t\tString Word = stdin.nextLine();\n\n\t\tList<String> result = new ArrayList<>();\n\n\t\twhile (true) {\n\t\t\tString word = stdin.next();\n\t\t\tif (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tresult.add(word);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i< result.size();i++) {\n if(result.get(i).equalsIgnoreCase(Word)) {\n \tnumber++;\n } \n\n }\n System.out.println(number);\n\n}\n\n\t}", "Main", "public static void main(String[] args) {\n\t\tScanner stdin = new Scanner(System.in);\n\n\t\tint number = 0;\n\n\t\tString Word = stdin.nextLine();\n\n\t\tList<String> result = new ArrayList<>();\n\n\t\twhile (true) {\n\t\t\tString word = stdin.next();\n\t\t\tif (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tresult.add(word);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i< result.size();i++) {\n if(result.get(i).equalsIgnoreCase(Word)) {\n \tnumber++;\n } \n\n }\n System.out.println(number);\n\n}", "main", "{\n\t\tScanner stdin = new Scanner(System.in);\n\n\t\tint number = 0;\n\n\t\tString Word = stdin.nextLine();\n\n\t\tList<String> result = new ArrayList<>();\n\n\t\twhile (true) {\n\t\t\tString word = stdin.next();\n\t\t\tif (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tresult.add(word);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i< result.size();i++) {\n if(result.get(i).equalsIgnoreCase(Word)) {\n \tnumber++;\n } \n\n }\n System.out.println(number);\n\n}", "Scanner stdin = new Scanner(System.in);", "stdin", "new Scanner(System.in)", "int number = 0;", "number", "0", "String Word = stdin.nextLine();", "Word", "stdin.nextLine()", "stdin.nextLine", "stdin", "List<String> result = new ArrayList<>();", "result", "new ArrayList<>()", "while (true) {\n\t\t\tString word = stdin.next();\n\t\t\tif (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tresult.add(word);\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString word = stdin.next();\n\t\t\tif (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tresult.add(word);\n\t\t\t}\n\t\t}", "String word = stdin.next();", "word", "stdin.next()", "stdin.next", "stdin", "if (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tresult.add(word);\n\t\t\t}", "word.equals(\"END_OF_TEXT\")", "word.equals", "word", "\"END_OF_TEXT\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "{\n\t\t\t\tresult.add(word);\n\t\t\t}", "result.add(word)", "result.add", "result", "word", "for(int i = 0; i< result.size();i++) {\n if(result.get(i).equalsIgnoreCase(Word)) {\n \tnumber++;\n } \n\n }", "int i = 0;", "int i = 0;", "i", "0", "i< result.size()", "i", "result.size()", "result.size", "result", "i++", "i++", "i", "{\n if(result.get(i).equalsIgnoreCase(Word)) {\n \tnumber++;\n } \n\n }", "{\n if(result.get(i).equalsIgnoreCase(Word)) {\n \tnumber++;\n } \n\n }", "if(result.get(i).equalsIgnoreCase(Word)) {\n \tnumber++;\n }", "result.get(i).equalsIgnoreCase(Word)", "result.get(i).equalsIgnoreCase", "result.get(i)", "result.get", "result", "i", "Word", "{\n \tnumber++;\n }", "number++", "number", "System.out.println(number)", "System.out.println", "System.out", "System", "System.out", "number", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner stdin = new Scanner(System.in);\n\n\t\tint number = 0;\n\n\t\tString Word = stdin.nextLine();\n\n\t\tList<String> result = new ArrayList<>();\n\n\t\twhile (true) {\n\t\t\tString word = stdin.next();\n\t\t\tif (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tresult.add(word);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i< result.size();i++) {\n if(result.get(i).equalsIgnoreCase(Word)) {\n \tnumber++;\n } \n\n }\n System.out.println(number);\n\n}\n\n\t}", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner stdin = new Scanner(System.in);\n\n\t\tint number = 0;\n\n\t\tString Word = stdin.nextLine();\n\n\t\tList<String> result = new ArrayList<>();\n\n\t\twhile (true) {\n\t\t\tString word = stdin.next();\n\t\t\tif (word.equals(\"END_OF_TEXT\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tresult.add(word);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i< result.size();i++) {\n if(result.get(i).equalsIgnoreCase(Word)) {\n \tnumber++;\n } \n\n }\n System.out.println(number);\n\n}\n\n\t}", "Main" ]
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner stdin = new Scanner(System.in); int number = 0; String Word = stdin.nextLine(); List<String> result = new ArrayList<>(); while (true) { String word = stdin.next(); if (word.equals("END_OF_TEXT")) { break; } else { result.add(word); } } for(int i = 0; i< result.size();i++) { if(result.get(i).equalsIgnoreCase(Word)) { number++; } } System.out.println(number); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 14, 4, 18, 13, 4, 18, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 27, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 43, 44 ], [ 44, 45 ], [ 39, 46 ], [ 46, 47 ], [ 11, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 9, 54 ], [ 54, 55 ] ]
[ "import java.util.*;\nimport java.lang.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString word = sc.next().toLowerCase();\n\t\tint c = 0;\n\t\t\n\t\twhile (true) {\n\t\t\tString key = sc.next();\n\t\t\tif(key.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(word.equals(key.toLowerCase())) c++;\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(c);\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString word = sc.next().toLowerCase();\n\t\tint c = 0;\n\t\t\n\t\twhile (true) {\n\t\t\tString key = sc.next();\n\t\t\tif(key.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(word.equals(key.toLowerCase())) c++;\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(c);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString word = sc.next().toLowerCase();\n\t\tint c = 0;\n\t\t\n\t\twhile (true) {\n\t\t\tString key = sc.next();\n\t\t\tif(key.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(word.equals(key.toLowerCase())) c++;\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(c);\n\t}", "main", "{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString word = sc.next().toLowerCase();\n\t\tint c = 0;\n\t\t\n\t\twhile (true) {\n\t\t\tString key = sc.next();\n\t\t\tif(key.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(word.equals(key.toLowerCase())) c++;\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(c);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String word = sc.next().toLowerCase();", "word", "sc.next().toLowerCase()", "sc.next().toLowerCase", "sc.next()", "sc.next", "sc", "int c = 0;", "c", "0", "while (true) {\n\t\t\tString key = sc.next();\n\t\t\tif(key.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(word.equals(key.toLowerCase())) c++;\n\t\t\t\n\t\t}", "true", "{\n\t\t\tString key = sc.next();\n\t\t\tif(key.equals(\"END_OF_TEXT\")) break;\n\t\t\tif(word.equals(key.toLowerCase())) c++;\n\t\t\t\n\t\t}", "String key = sc.next();", "key", "sc.next()", "sc.next", "sc", "if(key.equals(\"END_OF_TEXT\")) break;", "key.equals(\"END_OF_TEXT\")", "key.equals", "key", "\"END_OF_TEXT\"", "break;", "if(word.equals(key.toLowerCase())) c++;", "word.equals(key.toLowerCase())", "word.equals", "word", "key.toLowerCase()", "key.toLowerCase", "key", "c++", "c", "System.out.println(c)", "System.out.println", "System.out", "System", "System.out", "c", "String[] args", "args" ]
import java.util.*; import java.lang.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String word = sc.next().toLowerCase(); int c = 0; while (true) { String key = sc.next(); if(key.equals("END_OF_TEXT")) break; if(word.equals(key.toLowerCase())) c++; } System.out.println(c); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 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 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 31, 36 ], [ 25, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 25, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 42, 47 ], [ 47, 48 ], [ 11, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 9, 55 ], [ 55, 56 ] ]
[ "import java.util.*;\nimport java.util.Scanner;\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString W = scanner.next();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString T = scanner.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tT = T.toLowerCase();\n\t\t\tif(W.equals(T))\n\t\t\t\tcount ++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}\n", "import java.util.*;", "util.*", "java", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString W = scanner.next();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString T = scanner.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tT = T.toLowerCase();\n\t\t\tif(W.equals(T))\n\t\t\t\tcount ++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString W = scanner.next();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString T = scanner.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tT = T.toLowerCase();\n\t\t\tif(W.equals(T))\n\t\t\t\tcount ++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString W = scanner.next();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString T = scanner.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tT = T.toLowerCase();\n\t\t\tif(W.equals(T))\n\t\t\t\tcount ++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String W = scanner.next();", "W", "scanner.next()", "scanner.next", "scanner", "int count = 0;", "count", "0", "while(true){\n\t\t\tString T = scanner.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tT = T.toLowerCase();\n\t\t\tif(W.equals(T))\n\t\t\t\tcount ++;\n\t\t}", "true", "{\n\t\t\tString T = scanner.next();\n\t\t\tif(T.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\t\t\tT = T.toLowerCase();\n\t\t\tif(W.equals(T))\n\t\t\t\tcount ++;\n\t\t}", "String T = scanner.next();", "T", "scanner.next()", "scanner.next", "scanner", "if(T.equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;", "T.equals(\"END_OF_TEXT\")", "T.equals", "T", "\"END_OF_TEXT\"", "break;", "T = T.toLowerCase()", "T", "T.toLowerCase()", "T.toLowerCase", "T", "if(W.equals(T))\n\t\t\t\tcount ++;", "W.equals(T)", "W.equals", "W", "T", "count ++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args" ]
import java.util.*; import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String W = scanner.next(); int count = 0; while(true){ String T = scanner.next(); if(T.equals("END_OF_TEXT")) break; T = T.toLowerCase(); if(W.equals(T)) count ++; } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 4, 18, 13, 17, 14, 4, 18, 18, 13, 17, 17, 3, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 13, 4, 18, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 29, 34 ], [ 26, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 35, 42 ], [ 26, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 43, 53 ], [ 53, 54 ], [ 54, 55 ], [ 43, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 58, 67 ], [ 67, 68 ], [ 8, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 6, 75 ], [ 75, 76 ] ]
[ "import java.io.*;\n\nclass Main{\n\tpublic static void main(String args[]) throws IOException{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = buf.readLine().toLowerCase();\n\t\tString[] str;\n\t\tint count=0;\n\n\t\twhile(true){\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tif(str[0].equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\n\t\t\tfor(int i=0; i<str.length; i++){\n\t\t\t\t\n\t\t\t\tif(s.equals(str[i].toLowerCase()))\n\t\t\t\t\tcount++;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main{\n\tpublic static void main(String args[]) throws IOException{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = buf.readLine().toLowerCase();\n\t\tString[] str;\n\t\tint count=0;\n\n\t\twhile(true){\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tif(str[0].equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\n\t\t\tfor(int i=0; i<str.length; i++){\n\t\t\t\t\n\t\t\t\tif(s.equals(str[i].toLowerCase()))\n\t\t\t\t\tcount++;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main", "public static void main(String args[]) throws IOException{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = buf.readLine().toLowerCase();\n\t\tString[] str;\n\t\tint count=0;\n\n\t\twhile(true){\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tif(str[0].equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\n\t\t\tfor(int i=0; i<str.length; i++){\n\t\t\t\t\n\t\t\t\tif(s.equals(str[i].toLowerCase()))\n\t\t\t\t\tcount++;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = buf.readLine().toLowerCase();\n\t\tString[] str;\n\t\tint count=0;\n\n\t\twhile(true){\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tif(str[0].equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\n\t\t\tfor(int i=0; i<str.length; i++){\n\t\t\t\t\n\t\t\t\tif(s.equals(str[i].toLowerCase()))\n\t\t\t\t\tcount++;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));", "buf", "new BufferedReader(new InputStreamReader(System.in))", "String s = buf.readLine().toLowerCase();", "s", "buf.readLine().toLowerCase()", "buf.readLine().toLowerCase", "buf.readLine()", "buf.readLine", "buf", "String[] str;", "str", "int count=0;", "count", "0", "while(true){\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tif(str[0].equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\n\t\t\tfor(int i=0; i<str.length; i++){\n\t\t\t\t\n\t\t\t\tif(s.equals(str[i].toLowerCase()))\n\t\t\t\t\tcount++;\n\t\t\t}\n\n\t\t}", "true", "{\n\t\t\tstr = buf.readLine().split(\" \");\n\t\t\tif(str[0].equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;\n\n\t\t\tfor(int i=0; i<str.length; i++){\n\t\t\t\t\n\t\t\t\tif(s.equals(str[i].toLowerCase()))\n\t\t\t\t\tcount++;\n\t\t\t}\n\n\t\t}", "str = buf.readLine().split(\" \")", "str", "buf.readLine().split(\" \")", "buf.readLine().split", "buf.readLine()", "buf.readLine", "buf", "\" \"", "if(str[0].equals(\"END_OF_TEXT\"))\n\t\t\t\tbreak;", "str[0].equals(\"END_OF_TEXT\")", "str[0].equals", "str[0]", "str", "0", "\"END_OF_TEXT\"", "break;", "for(int i=0; i<str.length; i++){\n\t\t\t\t\n\t\t\t\tif(s.equals(str[i].toLowerCase()))\n\t\t\t\t\tcount++;\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<str.length", "i", "str.length", "str", "str.length", "i++", "i++", "i", "{\n\t\t\t\t\n\t\t\t\tif(s.equals(str[i].toLowerCase()))\n\t\t\t\t\tcount++;\n\t\t\t}", "{\n\t\t\t\t\n\t\t\t\tif(s.equals(str[i].toLowerCase()))\n\t\t\t\t\tcount++;\n\t\t\t}", "if(s.equals(str[i].toLowerCase()))\n\t\t\t\t\tcount++;", "s.equals(str[i].toLowerCase())", "s.equals", "s", "str[i].toLowerCase()", "str[i].toLowerCase", "str[i]", "str", "i", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String args[]", "args" ]
import java.io.*; class Main{ public static void main(String args[]) throws IOException{ BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); String s = buf.readLine().toLowerCase(); String[] str; int count=0; while(true){ str = buf.readLine().split(" "); if(str[0].equals("END_OF_TEXT")) break; for(int i=0; i<str.length; i++){ if(s.equals(str[i].toLowerCase())) count++; } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 41, 13, 41, 13, 41, 13, 20, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 42, 40, 4, 18, 13, 17, 30, 14, 4, 18, 13, 13, 40, 13, 0, 13, 4, 18, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 8, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 31, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 38, 43 ], [ 43, 44 ], [ 37, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 8, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 6, 56 ], [ 56, 57 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n int count = 0;\n char c;\n String word, temp;\n Scanner sc = new Scanner(System.in);\n word = sc.next();\n temp = sc.next();\n \n while (!temp.equals(\"END_OF_TEXT\")) {\n if (temp.equalsIgnoreCase(word)) \n count++;\n temp = sc.next();\n }\n System.out.println(count);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String[] args) {\n int count = 0;\n char c;\n String word, temp;\n Scanner sc = new Scanner(System.in);\n word = sc.next();\n temp = sc.next();\n \n while (!temp.equals(\"END_OF_TEXT\")) {\n if (temp.equalsIgnoreCase(word)) \n count++;\n temp = sc.next();\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args) {\n int count = 0;\n char c;\n String word, temp;\n Scanner sc = new Scanner(System.in);\n word = sc.next();\n temp = sc.next();\n \n while (!temp.equals(\"END_OF_TEXT\")) {\n if (temp.equalsIgnoreCase(word)) \n count++;\n temp = sc.next();\n }\n System.out.println(count);\n }", "main", "{\n int count = 0;\n char c;\n String word, temp;\n Scanner sc = new Scanner(System.in);\n word = sc.next();\n temp = sc.next();\n \n while (!temp.equals(\"END_OF_TEXT\")) {\n if (temp.equalsIgnoreCase(word)) \n count++;\n temp = sc.next();\n }\n System.out.println(count);\n }", "int count = 0;", "count", "0", "char c;", "c", "String word", "word", "temp;", "temp", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "word = sc.next()", "word", "sc.next()", "sc.next", "sc", "temp = sc.next()", "temp", "sc.next()", "sc.next", "sc", "while (!temp.equals(\"END_OF_TEXT\")) {\n if (temp.equalsIgnoreCase(word)) \n count++;\n temp = sc.next();\n }", "!temp.equals(\"END_OF_TEXT\")", "temp.equals(\"END_OF_TEXT\")", "temp.equals", "temp", "\"END_OF_TEXT\"", "{\n if (temp.equalsIgnoreCase(word)) \n count++;\n temp = sc.next();\n }", "if (temp.equalsIgnoreCase(word)) \n count++;", "temp.equalsIgnoreCase(word)", "temp.equalsIgnoreCase", "temp", "word", "count++", "count", "temp = sc.next()", "temp", "sc.next()", "sc.next", "sc", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { int count = 0; char c; String word, temp; Scanner sc = new Scanner(System.in); word = sc.next(); temp = sc.next(); while (!temp.equals("END_OF_TEXT")) { if (temp.equalsIgnoreCase(word)) count++; temp = sc.next(); } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 14, 4, 18, 18, 13, 17, 17, 3, 28, 13, 13, 30, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 68, 5 ], [ 68, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 27, 32 ], [ 24, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 33, 40 ], [ 24, 41 ], [ 41, 42 ], [ 41, 43 ], [ 41, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 45, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 51, 56 ], [ 56, 57 ], [ 57, 58 ], [ 8, 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\tpublic static void main(String[] args){\n\t\tfinal Scanner sc = new Scanner(System.in);\n\t\tString key=sc.nextLine().toLowerCase();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString[] str=sc.nextLine().split(\" \");\n\t\t\tif(str[0].equals(\"END_OF_TEXT\")) break;\n\t\t\tfor(String s:str){\n\t\t\t\ts=s.toLowerCase();\n\t\t\t\tif(s.equals(key)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\tfinal Scanner sc = new Scanner(System.in);\n\t\tString key=sc.nextLine().toLowerCase();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString[] str=sc.nextLine().split(\" \");\n\t\t\tif(str[0].equals(\"END_OF_TEXT\")) break;\n\t\t\tfor(String s:str){\n\t\t\t\ts=s.toLowerCase();\n\t\t\t\tif(s.equals(key)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tfinal Scanner sc = new Scanner(System.in);\n\t\tString key=sc.nextLine().toLowerCase();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString[] str=sc.nextLine().split(\" \");\n\t\t\tif(str[0].equals(\"END_OF_TEXT\")) break;\n\t\t\tfor(String s:str){\n\t\t\t\ts=s.toLowerCase();\n\t\t\t\tif(s.equals(key)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\tfinal Scanner sc = new Scanner(System.in);\n\t\tString key=sc.nextLine().toLowerCase();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString[] str=sc.nextLine().split(\" \");\n\t\t\tif(str[0].equals(\"END_OF_TEXT\")) break;\n\t\t\tfor(String s:str){\n\t\t\t\ts=s.toLowerCase();\n\t\t\t\tif(s.equals(key)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "final Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String key=sc.nextLine().toLowerCase();", "key", "sc.nextLine().toLowerCase()", "sc.nextLine().toLowerCase", "sc.nextLine()", "sc.nextLine", "sc", "int count = 0;", "count", "0", "while(true){\n\t\t\tString[] str=sc.nextLine().split(\" \");\n\t\t\tif(str[0].equals(\"END_OF_TEXT\")) break;\n\t\t\tfor(String s:str){\n\t\t\t\ts=s.toLowerCase();\n\t\t\t\tif(s.equals(key)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tString[] str=sc.nextLine().split(\" \");\n\t\t\tif(str[0].equals(\"END_OF_TEXT\")) break;\n\t\t\tfor(String s:str){\n\t\t\t\ts=s.toLowerCase();\n\t\t\t\tif(s.equals(key)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "String[] str=sc.nextLine().split(\" \");", "str", "sc.nextLine().split(\" \")", "sc.nextLine().split", "sc.nextLine()", "sc.nextLine", "sc", "\" \"", "if(str[0].equals(\"END_OF_TEXT\")) break;", "str[0].equals(\"END_OF_TEXT\")", "str[0].equals", "str[0]", "str", "0", "\"END_OF_TEXT\"", "break;", "for(String s:str){\n\t\t\t\ts=s.toLowerCase();\n\t\t\t\tif(s.equals(key)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "String s", "str", "{\n\t\t\t\ts=s.toLowerCase();\n\t\t\t\tif(s.equals(key)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\ts=s.toLowerCase();\n\t\t\t\tif(s.equals(key)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "s=s.toLowerCase()", "s", "s.toLowerCase()", "s.toLowerCase", "s", "if(s.equals(key)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}", "s.equals(key)", "s.equals", "s", "key", "{\n\t\t\t\t\tcount++;\n\t\t\t\t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tfinal Scanner sc = new Scanner(System.in);\n\t\tString key=sc.nextLine().toLowerCase();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString[] str=sc.nextLine().split(\" \");\n\t\t\tif(str[0].equals(\"END_OF_TEXT\")) break;\n\t\t\tfor(String s:str){\n\t\t\t\ts=s.toLowerCase();\n\t\t\t\tif(s.equals(key)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tfinal Scanner sc = new Scanner(System.in);\n\t\tString key=sc.nextLine().toLowerCase();\n\t\tint count = 0;\n\t\twhile(true){\n\t\t\tString[] str=sc.nextLine().split(\" \");\n\t\t\tif(str[0].equals(\"END_OF_TEXT\")) break;\n\t\t\tfor(String s:str){\n\t\t\t\ts=s.toLowerCase();\n\t\t\t\tif(s.equals(key)) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ final Scanner sc = new Scanner(System.in); String key=sc.nextLine().toLowerCase(); int count = 0; while(true){ String[] str=sc.nextLine().split(" "); if(str[0].equals("END_OF_TEXT")) break; for(String s:str){ s=s.toLowerCase(); if(s.equals(key)) { count++; } } } System.out.println(count); } }