node_ids
listlengths
4
1.4k
edge_index
listlengths
1
2.22k
text
listlengths
4
1.4k
source
stringlengths
14
427k
[ 7, 15, 13, 17, 15, 13, 17, 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, 2, 4, 18, 13, 13, 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 ], [ 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 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 36, 41 ], [ 35, 42 ], [ 35, 43 ], [ 9, 44 ], [ 44, 45 ] ]
[ "import java.util.*;\nimport java.text.*;\n\nclass Main {\n public static void main(String[]args)throws Exception {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String p = sc.next();\n s = s + s;\n System.out.println(s.indexOf(p) >=0 ? \"Yes\" : \"No\");\n }\n}", "import java.util.*;", "util.*", "java", "import java.text.*;", "text.*", "java", "class Main {\n public static void main(String[]args)throws Exception {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String p = sc.next();\n s = s + s;\n System.out.println(s.indexOf(p) >=0 ? \"Yes\" : \"No\");\n }\n}", "Main", "public static void main(String[]args)throws Exception {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String p = sc.next();\n s = s + s;\n System.out.println(s.indexOf(p) >=0 ? \"Yes\" : \"No\");\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String p = sc.next();\n s = s + s;\n System.out.println(s.indexOf(p) >=0 ? \"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", "s = s + s", "s", "s + s", "s", "s", "System.out.println(s.indexOf(p) >=0 ? \"Yes\" : \"No\")", "System.out.println", "System.out", "System", "System.out", "s.indexOf(p) >=0 ? \"Yes\" : \"No\"", "s.indexOf(p) >=0", "s.indexOf(p)", "s.indexOf", "s", "p", "0", "\"Yes\"", "\"No\"", "String[]args", "args" ]
import java.util.*; import java.text.*; class Main { public static void main(String[]args)throws Exception { Scanner sc = new Scanner(System.in); String s = sc.next(); String p = sc.next(); s = s + s; System.out.println(s.indexOf(p) >=0 ? "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, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 20, 4, 18, 13, 4, 18, 13, 2, 4, 18, 13, 17, 4, 18, 13, 4, 18, 13, 4, 18, 13, 17, 2, 4, 18, 13, 17, 0, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 40, 13, 3, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 103, 5 ], [ 103, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 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 ], [ 43, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 49, 53 ], [ 46, 54 ], [ 54, 55 ], [ 55, 56 ], [ 39, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 64, 68 ], [ 39, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 39, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 74, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 79, 86 ], [ 86, 87 ], [ 79, 88 ], [ 8, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 6, 100 ], [ 100, 101 ], [ 0, 102 ], [ 102, 103 ], [ 102, 104 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tString line2 = sc.nextLine();\n\n\t\tint count = 0;\n\n\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\tStringBuilder r = new StringBuilder();\n\t\t\tr.append(line.substring(line.length() - 1, line.length()));\n\t\t\tr.append(line.substring(0, line.length() - 1));\n\t\t\tline = r.toString();\n\t\t\tif (line.contains(line2)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tcount++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tString line2 = sc.nextLine();\n\n\t\tint count = 0;\n\n\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\tStringBuilder r = new StringBuilder();\n\t\t\tr.append(line.substring(line.length() - 1, line.length()));\n\t\t\tr.append(line.substring(0, line.length() - 1));\n\t\t\tline = r.toString();\n\t\t\tif (line.contains(line2)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tcount++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}\n}", "Main", "public static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tString line2 = sc.nextLine();\n\n\t\tint count = 0;\n\n\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\tStringBuilder r = new StringBuilder();\n\t\t\tr.append(line.substring(line.length() - 1, line.length()));\n\t\t\tr.append(line.substring(0, line.length() - 1));\n\t\t\tline = r.toString();\n\t\t\tif (line.contains(line2)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tcount++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tString line2 = sc.nextLine();\n\n\t\tint count = 0;\n\n\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\tStringBuilder r = new StringBuilder();\n\t\t\tr.append(line.substring(line.length() - 1, line.length()));\n\t\t\tr.append(line.substring(0, line.length() - 1));\n\t\t\tline = r.toString();\n\t\t\tif (line.contains(line2)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tcount++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (count == 0) {\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 line = sc.nextLine();", "line", "sc.nextLine()", "sc.nextLine", "sc", "String line2 = sc.nextLine();", "line2", "sc.nextLine()", "sc.nextLine", "sc", "int count = 0;", "count", "0", "for (int i = 0; i < line.length(); i++) {\n\t\t\tStringBuilder r = new StringBuilder();\n\t\t\tr.append(line.substring(line.length() - 1, line.length()));\n\t\t\tr.append(line.substring(0, line.length() - 1));\n\t\t\tline = r.toString();\n\t\t\tif (line.contains(line2)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tcount++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < line.length()", "i", "line.length()", "line.length", "line", "i++", "i++", "i", "{\n\t\t\tStringBuilder r = new StringBuilder();\n\t\t\tr.append(line.substring(line.length() - 1, line.length()));\n\t\t\tr.append(line.substring(0, line.length() - 1));\n\t\t\tline = r.toString();\n\t\t\tif (line.contains(line2)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tcount++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "{\n\t\t\tStringBuilder r = new StringBuilder();\n\t\t\tr.append(line.substring(line.length() - 1, line.length()));\n\t\t\tr.append(line.substring(0, line.length() - 1));\n\t\t\tline = r.toString();\n\t\t\tif (line.contains(line2)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tcount++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "StringBuilder r = new StringBuilder();", "r", "new StringBuilder()", "r.append(line.substring(line.length() - 1, line.length()))", "r.append", "r", "line.substring(line.length() - 1, line.length())", "line.substring", "line", "line.length() - 1", "line.length()", "line.length", "line", "1", "line.length()", "line.length", "line", "r.append(line.substring(0, line.length() - 1))", "r.append", "r", "line.substring(0, line.length() - 1)", "line.substring", "line", "0", "line.length() - 1", "line.length()", "line.length", "line", "1", "line = r.toString()", "line", "r.toString()", "r.toString", "r", "if (line.contains(line2)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tcount++;\n\t\t\t\tbreak;\n\t\t\t}", "line.contains(line2)", "line.contains", "line", "line2", "{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tcount++;\n\t\t\t\tbreak;\n\t\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "count++", "count", "break;", "if (count == 0) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "count == 0", "count", "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[] arges", "arges", "public class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tString line2 = sc.nextLine();\n\n\t\tint count = 0;\n\n\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\tStringBuilder r = new StringBuilder();\n\t\t\tr.append(line.substring(line.length() - 1, line.length()));\n\t\t\tr.append(line.substring(0, line.length() - 1));\n\t\t\tline = r.toString();\n\t\t\tif (line.contains(line2)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tcount++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}\n}", "public class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tString line2 = sc.nextLine();\n\n\t\tint count = 0;\n\n\t\tfor (int i = 0; i < line.length(); i++) {\n\t\t\tStringBuilder r = new StringBuilder();\n\t\t\tr.append(line.substring(line.length() - 1, line.length()));\n\t\t\tr.append(line.substring(0, line.length() - 1));\n\t\t\tline = r.toString();\n\t\t\tif (line.contains(line2)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tcount++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] arges) { Scanner sc = new Scanner(System.in); String line = sc.nextLine(); String line2 = sc.nextLine(); int count = 0; for (int i = 0; i < line.length(); i++) { StringBuilder r = new StringBuilder(); r.append(line.substring(line.length() - 1, line.length())); r.append(line.substring(0, line.length() - 1)); line = r.toString(); if (line.contains(line2)) { System.out.println("Yes"); count++; break; } } if (count == 0) { System.out.println("No"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 13, 13, 2, 13, 4, 18, 13, 13, 0, 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 ], [ 82, 8 ], [ 82, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 11, 28 ], [ 28, 29 ], [ 28, 30 ], [ 11, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 11, 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 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 52, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 50, 61 ], [ 49, 62 ], [ 62, 63 ], [ 62, 64 ], [ 11, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 65, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 9, 79 ], [ 79, 80 ], [ 0, 81 ], [ 81, 82 ], [ 81, 83 ] ]
[ "import java.sql.SQLOutput;\nimport java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n boolean judge = false;\n String s = scan.nextLine();\n int len = s.length();\n s += s;\n String p = scan.nextLine();\n for (int i = 0; i < len; i++) {\n if (s.substring(i, i + p.length()).equals(p)) judge = true;\n }\n if (judge) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}\n", "import java.sql.SQLOutput;", "SQLOutput", "java.sql", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n boolean judge = false;\n String s = scan.nextLine();\n int len = s.length();\n s += s;\n String p = scan.nextLine();\n for (int i = 0; i < len; i++) {\n if (s.substring(i, i + p.length()).equals(p)) judge = true;\n }\n if (judge) 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 boolean judge = false;\n String s = scan.nextLine();\n int len = s.length();\n s += s;\n String p = scan.nextLine();\n for (int i = 0; i < len; i++) {\n if (s.substring(i, i + p.length()).equals(p)) judge = true;\n }\n if (judge) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n boolean judge = false;\n String s = scan.nextLine();\n int len = s.length();\n s += s;\n String p = scan.nextLine();\n for (int i = 0; i < len; i++) {\n if (s.substring(i, i + p.length()).equals(p)) judge = true;\n }\n if (judge) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "boolean judge = false;", "judge", "false", "String s = scan.nextLine();", "s", "scan.nextLine()", "scan.nextLine", "scan", "int len = s.length();", "len", "s.length()", "s.length", "s", "s += s", "s", "s", "String p = scan.nextLine();", "p", "scan.nextLine()", "scan.nextLine", "scan", "for (int i = 0; i < len; i++) {\n if (s.substring(i, i + p.length()).equals(p)) judge = true;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < len", "i", "len", "i++", "i++", "i", "{\n if (s.substring(i, i + p.length()).equals(p)) judge = true;\n }", "{\n if (s.substring(i, i + p.length()).equals(p)) judge = true;\n }", "if (s.substring(i, i + p.length()).equals(p)) judge = true;", "s.substring(i, i + p.length()).equals(p)", "s.substring(i, i + p.length()).equals", "s.substring(i, i + p.length())", "s.substring", "s", "i", "i + p.length()", "i", "p.length()", "p.length", "p", "p", "judge = true", "judge", "true", "if (judge) System.out.println(\"Yes\");\n else 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", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n boolean judge = false;\n String s = scan.nextLine();\n int len = s.length();\n s += s;\n String p = scan.nextLine();\n for (int i = 0; i < len; i++) {\n if (s.substring(i, i + p.length()).equals(p)) judge = true;\n }\n if (judge) 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 boolean judge = false;\n String s = scan.nextLine();\n int len = s.length();\n s += s;\n String p = scan.nextLine();\n for (int i = 0; i < len; i++) {\n if (s.substring(i, i + p.length()).equals(p)) judge = true;\n }\n if (judge) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}", "Main" ]
import java.sql.SQLOutput; import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); boolean judge = false; String s = scan.nextLine(); int len = s.length(); s += s; String p = scan.nextLine(); for (int i = 0; i < len; i++) { if (s.substring(i, i + p.length()).equals(p)) judge = true; } if (judge) System.out.println("Yes"); else System.out.println("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 2, 2, 13, 13, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 13, 14, 2, 13, 13, 30, 3, 14, 2, 13, 2, 13, 17, 30, 0, 13, 17, 3, 14, 13, 30, 3, 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 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 129, 11 ], [ 129, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 14, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 14, 38 ], [ 38, 39 ], [ 38, 40 ], [ 14, 41 ], [ 41, 42 ], [ 42, 43 ], [ 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 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 54, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 66, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 66, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 66, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 66, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 92, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 53, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 14, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 107, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 14, 123 ], [ 123, 124 ], [ 124, 125 ], [ 12, 126 ], [ 126, 127 ], [ 0, 128 ], [ 128, 129 ], [ 128, 130 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n// (1) ?????????s???????????????\n// (2) ?????????p???????????????\n// (3) ?????????s?????????????????????sMatrix?????¨?????????\n// (4) ?????????p?????????????????????pMatrix?????¨?????????\n// (5) ?????????s???????????°?????????1??????????????\\?????????????????????\n\t// (5.1) ????±???¨??????1?????????Char??????????????????\n\t// (5.2) ????????????????????§????????????????¢????????????´????????\\?????????????????????\n\t\t// (5.2.1) ?????????????????????\n\t// (5.3) ?????????p???????????°?????????1??????????????\\?????????????????????\n\t\t// (5.3.1) ????±???¨??????1?????????Char??????????????????\n\t\t// (5.3.2)\n\n// ????????°????????£??????????????´???\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = br.readLine();\n\t\tString p = br.readLine();\n\t\tint sLen = s.length();\n\t\tint pLen = p.length();\n\n\t\tboolean foundP = false;\n\n\t\tfor(int i = 0; i < sLen; i++) {\n\n\t\t\tfor(int j = 0; j < pLen; j++) {\n\t\t\t\tint k = (i + j) % sLen;\n\t\t\t\tchar sc = s.charAt(k);\n\t\t\t\tchar pc = p.charAt(j);\n\n\t\t\t\tif(sc != pc) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif(j == pLen-1) {\n\t\t\t\t\tfoundP = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(foundP) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(foundP) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tbr.close();\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = br.readLine();\n\t\tString p = br.readLine();\n\t\tint sLen = s.length();\n\t\tint pLen = p.length();\n\n\t\tboolean foundP = false;\n\n\t\tfor(int i = 0; i < sLen; i++) {\n\n\t\t\tfor(int j = 0; j < pLen; j++) {\n\t\t\t\tint k = (i + j) % sLen;\n\t\t\t\tchar sc = s.charAt(k);\n\t\t\t\tchar pc = p.charAt(j);\n\n\t\t\t\tif(sc != pc) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif(j == pLen-1) {\n\t\t\t\t\tfoundP = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(foundP) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(foundP) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tbr.close();\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 s = br.readLine();\n\t\tString p = br.readLine();\n\t\tint sLen = s.length();\n\t\tint pLen = p.length();\n\n\t\tboolean foundP = false;\n\n\t\tfor(int i = 0; i < sLen; i++) {\n\n\t\t\tfor(int j = 0; j < pLen; j++) {\n\t\t\t\tint k = (i + j) % sLen;\n\t\t\t\tchar sc = s.charAt(k);\n\t\t\t\tchar pc = p.charAt(j);\n\n\t\t\t\tif(sc != pc) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif(j == pLen-1) {\n\t\t\t\t\tfoundP = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(foundP) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(foundP) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tbr.close();\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = br.readLine();\n\t\tString p = br.readLine();\n\t\tint sLen = s.length();\n\t\tint pLen = p.length();\n\n\t\tboolean foundP = false;\n\n\t\tfor(int i = 0; i < sLen; i++) {\n\n\t\t\tfor(int j = 0; j < pLen; j++) {\n\t\t\t\tint k = (i + j) % sLen;\n\t\t\t\tchar sc = s.charAt(k);\n\t\t\t\tchar pc = p.charAt(j);\n\n\t\t\t\tif(sc != pc) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif(j == pLen-1) {\n\t\t\t\t\tfoundP = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(foundP) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(foundP) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tbr.close();\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", "int sLen = s.length();", "sLen", "s.length()", "s.length", "s", "int pLen = p.length();", "pLen", "p.length()", "p.length", "p", "boolean foundP = false;", "foundP", "false", "for(int i = 0; i < sLen; i++) {\n\n\t\t\tfor(int j = 0; j < pLen; j++) {\n\t\t\t\tint k = (i + j) % sLen;\n\t\t\t\tchar sc = s.charAt(k);\n\t\t\t\tchar pc = p.charAt(j);\n\n\t\t\t\tif(sc != pc) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif(j == pLen-1) {\n\t\t\t\t\tfoundP = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(foundP) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < sLen", "i", "sLen", "i++", "i++", "i", "{\n\n\t\t\tfor(int j = 0; j < pLen; j++) {\n\t\t\t\tint k = (i + j) % sLen;\n\t\t\t\tchar sc = s.charAt(k);\n\t\t\t\tchar pc = p.charAt(j);\n\n\t\t\t\tif(sc != pc) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif(j == pLen-1) {\n\t\t\t\t\tfoundP = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(foundP) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "{\n\n\t\t\tfor(int j = 0; j < pLen; j++) {\n\t\t\t\tint k = (i + j) % sLen;\n\t\t\t\tchar sc = s.charAt(k);\n\t\t\t\tchar pc = p.charAt(j);\n\n\t\t\t\tif(sc != pc) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif(j == pLen-1) {\n\t\t\t\t\tfoundP = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(foundP) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "for(int j = 0; j < pLen; j++) {\n\t\t\t\tint k = (i + j) % sLen;\n\t\t\t\tchar sc = s.charAt(k);\n\t\t\t\tchar pc = p.charAt(j);\n\n\t\t\t\tif(sc != pc) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif(j == pLen-1) {\n\t\t\t\t\tfoundP = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < pLen", "j", "pLen", "j++", "j++", "j", "{\n\t\t\t\tint k = (i + j) % sLen;\n\t\t\t\tchar sc = s.charAt(k);\n\t\t\t\tchar pc = p.charAt(j);\n\n\t\t\t\tif(sc != pc) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif(j == pLen-1) {\n\t\t\t\t\tfoundP = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tint k = (i + j) % sLen;\n\t\t\t\tchar sc = s.charAt(k);\n\t\t\t\tchar pc = p.charAt(j);\n\n\t\t\t\tif(sc != pc) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif(j == pLen-1) {\n\t\t\t\t\tfoundP = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "int k = (i + j) % sLen;", "k", "(i + j) % sLen", "(i + j)", "i", "j", "sLen", "char sc = s.charAt(k);", "sc", "s.charAt(k)", "s.charAt", "s", "k", "char pc = p.charAt(j);", "pc", "p.charAt(j)", "p.charAt", "p", "j", "if(sc != pc) {\n\t\t\t\t\tbreak;\n\t\t\t\t}", "sc != pc", "sc", "pc", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "if(j == pLen-1) {\n\t\t\t\t\tfoundP = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "j == pLen-1", "j", "pLen-1", "pLen", "1", "{\n\t\t\t\t\tfoundP = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "foundP = true", "foundP", "true", "break;", "if(foundP) {\n\t\t\t\tbreak;\n\t\t\t}", "foundP", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "if(foundP) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "foundP", "{\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\"", "br.close()", "br.close", "br", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = br.readLine();\n\t\tString p = br.readLine();\n\t\tint sLen = s.length();\n\t\tint pLen = p.length();\n\n\t\tboolean foundP = false;\n\n\t\tfor(int i = 0; i < sLen; i++) {\n\n\t\t\tfor(int j = 0; j < pLen; j++) {\n\t\t\t\tint k = (i + j) % sLen;\n\t\t\t\tchar sc = s.charAt(k);\n\t\t\t\tchar pc = p.charAt(j);\n\n\t\t\t\tif(sc != pc) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif(j == pLen-1) {\n\t\t\t\t\tfoundP = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(foundP) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(foundP) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tbr.close();\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = br.readLine();\n\t\tString p = br.readLine();\n\t\tint sLen = s.length();\n\t\tint pLen = p.length();\n\n\t\tboolean foundP = false;\n\n\t\tfor(int i = 0; i < sLen; i++) {\n\n\t\t\tfor(int j = 0; j < pLen; j++) {\n\t\t\t\tint k = (i + j) % sLen;\n\t\t\t\tchar sc = s.charAt(k);\n\t\t\t\tchar pc = p.charAt(j);\n\n\t\t\t\tif(sc != pc) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif(j == pLen-1) {\n\t\t\t\t\tfoundP = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(foundP) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(foundP) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t\tbr.close();\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; // (1) ?????????s??????????????? // (2) ?????????p??????????????? // (3) ?????????s?????????????????????sMatrix?????¨????????? // (4) ?????????p?????????????????????pMatrix?????¨????????? // (5) ?????????s???????????°?????????1??????????????\????????????????????? // (5.1) ????±???¨??????1?????????Char?????????????????? // (5.2) ????????????????????§????????????????¢????????????´????????\????????????????????? // (5.2.1) ????????????????????? // (5.3) ?????????p???????????°?????????1??????????????\????????????????????? // (5.3.1) ????±???¨??????1?????????Char?????????????????? // (5.3.2) // ????????°????????£??????????????´??? 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(); int sLen = s.length(); int pLen = p.length(); boolean foundP = false; for(int i = 0; i < sLen; i++) { for(int j = 0; j < pLen; j++) { int k = (i + j) % sLen; char sc = s.charAt(k); char pc = p.charAt(j); if(sc != pc) { break; } if(j == pLen-1) { foundP = true; break; } } if(foundP) { break; } } if(foundP) { System.out.println("Yes"); } else { System.out.println("No"); } br.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 4, 18, 13, 41, 13, 4, 18, 13, 13, 14, 4, 18, 13, 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 ], [ 25, 26 ], [ 24, 27 ], [ 24, 28 ], [ 28, 29 ], [ 29, 30 ], [ 8, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 8, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 37, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 37, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 6, 54 ], [ 54, 55 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String target = sc.nextLine();\n String queryIn = sc.nextLine();\n CharSequence query = queryIn.subSequence(0, queryIn.length());\n String ring = target.concat(target);\n if (ring.contains(query)) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String target = sc.nextLine();\n String queryIn = sc.nextLine();\n CharSequence query = queryIn.subSequence(0, queryIn.length());\n String ring = target.concat(target);\n if (ring.contains(query)) 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 target = sc.nextLine();\n String queryIn = sc.nextLine();\n CharSequence query = queryIn.subSequence(0, queryIn.length());\n String ring = target.concat(target);\n if (ring.contains(query)) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String target = sc.nextLine();\n String queryIn = sc.nextLine();\n CharSequence query = queryIn.subSequence(0, queryIn.length());\n String ring = target.concat(target);\n if (ring.contains(query)) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String target = sc.nextLine();", "target", "sc.nextLine()", "sc.nextLine", "sc", "String queryIn = sc.nextLine();", "queryIn", "sc.nextLine()", "sc.nextLine", "sc", "CharSequence query = queryIn.subSequence(0, queryIn.length());", "query", "queryIn.subSequence(0, queryIn.length())", "queryIn.subSequence", "queryIn", "0", "queryIn.length()", "queryIn.length", "queryIn", "String ring = target.concat(target);", "ring", "target.concat(target)", "target.concat", "target", "target", "if (ring.contains(query)) System.out.println(\"Yes\");\n else System.out.println(\"No\");", "ring.contains(query)", "ring.contains", "ring", "query", "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.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String target = sc.nextLine(); String queryIn = sc.nextLine(); CharSequence query = queryIn.subSequence(0, queryIn.length()); String ring = target.concat(target); if (ring.contains(query)) System.out.println("Yes"); else System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 17, 11, 1, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 2, 13, 13, 14, 2, 13, 4, 18, 13, 30, 0, 13, 4, 18, 13, 14, 2, 4, 18, 13, 13, 4, 18, 13, 13, 30, 3, 14, 2, 13, 4, 18, 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 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 22, 32 ], [ 32, 33 ], [ 33, 34 ], [ 22, 35 ], [ 36, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 40, 47 ], [ 47, 48 ], [ 48, 49 ], [ 40, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 51, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 57, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 51, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 70, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 69, 79 ], [ 79, 80 ], [ 36, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 81, 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 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n for (int i = 0; i < s.length(); i++) {\n int j = 0;\n for (; j < p.length(); j++) {\n int ptr = i + j;\n if (ptr >= s.length()) {\n ptr -= s.length();\n }\n if (s.charAt(ptr) != p.charAt(j)) {\n break;\n }\n }\n if (j >= p.length()) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n for (int i = 0; i < s.length(); i++) {\n int j = 0;\n for (; j < p.length(); j++) {\n int ptr = i + j;\n if (ptr >= s.length()) {\n ptr -= s.length();\n }\n if (s.charAt(ptr) != p.charAt(j)) {\n break;\n }\n }\n if (j >= p.length()) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n for (int i = 0; i < s.length(); i++) {\n int j = 0;\n for (; j < p.length(); j++) {\n int ptr = i + j;\n if (ptr >= s.length()) {\n ptr -= s.length();\n }\n if (s.charAt(ptr) != p.charAt(j)) {\n break;\n }\n }\n if (j >= p.length()) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n for (int i = 0; i < s.length(); i++) {\n int j = 0;\n for (; j < p.length(); j++) {\n int ptr = i + j;\n if (ptr >= s.length()) {\n ptr -= s.length();\n }\n if (s.charAt(ptr) != p.charAt(j)) {\n break;\n }\n }\n if (j >= p.length()) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.nextLine();", "s", "sc.nextLine()", "sc.nextLine", "sc", "String p = sc.nextLine();", "p", "sc.nextLine()", "sc.nextLine", "sc", "for (int i = 0; i < s.length(); i++) {\n int j = 0;\n for (; j < p.length(); j++) {\n int ptr = i + j;\n if (ptr >= s.length()) {\n ptr -= s.length();\n }\n if (s.charAt(ptr) != p.charAt(j)) {\n break;\n }\n }\n if (j >= p.length()) {\n System.out.println(\"Yes\");\n return;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n int j = 0;\n for (; j < p.length(); j++) {\n int ptr = i + j;\n if (ptr >= s.length()) {\n ptr -= s.length();\n }\n if (s.charAt(ptr) != p.charAt(j)) {\n break;\n }\n }\n if (j >= p.length()) {\n System.out.println(\"Yes\");\n return;\n }\n }", "{\n int j = 0;\n for (; j < p.length(); j++) {\n int ptr = i + j;\n if (ptr >= s.length()) {\n ptr -= s.length();\n }\n if (s.charAt(ptr) != p.charAt(j)) {\n break;\n }\n }\n if (j >= p.length()) {\n System.out.println(\"Yes\");\n return;\n }\n }", "int j = 0;", "j", "0", "for (; j < p.length(); j++) {\n int ptr = i + j;\n if (ptr >= s.length()) {\n ptr -= s.length();\n }\n if (s.charAt(ptr) != p.charAt(j)) {\n break;\n }\n }", ";", "j < p.length()", "j", "p.length()", "p.length", "p", "j++", "j++", "j", "{\n int ptr = i + j;\n if (ptr >= s.length()) {\n ptr -= s.length();\n }\n if (s.charAt(ptr) != p.charAt(j)) {\n break;\n }\n }", "{\n int ptr = i + j;\n if (ptr >= s.length()) {\n ptr -= s.length();\n }\n if (s.charAt(ptr) != p.charAt(j)) {\n break;\n }\n }", "int ptr = i + j;", "ptr", "i + j", "i", "j", "if (ptr >= s.length()) {\n ptr -= s.length();\n }", "ptr >= s.length()", "ptr", "s.length()", "s.length", "s", "{\n ptr -= s.length();\n }", "ptr -= s.length()", "ptr", "s.length()", "s.length", "s", "if (s.charAt(ptr) != p.charAt(j)) {\n break;\n }", "s.charAt(ptr) != p.charAt(j)", "s.charAt(ptr)", "s.charAt", "s", "ptr", "p.charAt(j)", "p.charAt", "p", "j", "{\n break;\n }", "break;", "if (j >= p.length()) {\n System.out.println(\"Yes\");\n return;\n }", "j >= p.length()", "j", "p.length()", "p.length", "p", "{\n System.out.println(\"Yes\");\n return;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "return;", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); String p = sc.nextLine(); for (int i = 0; i < s.length(); i++) { int j = 0; for (; j < p.length(); j++) { int ptr = i + j; if (ptr >= s.length()) { ptr -= s.length(); } if (s.charAt(ptr) != p.charAt(j)) { break; } } if (j >= p.length()) { System.out.println("Yes"); return; } } System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 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 ], [ 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 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 26, 31 ], [ 31, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 25, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 6, 47 ], [ 47, 48 ], [ 0, 49 ], [ 49, 50 ], [ 49, 51 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\tString inbase = std.nextLine();\n\t\tString inmatch = std.nextLine();\n\n\t\tinbase += inbase;\n\t\tif(inbase.indexOf(inmatch) == -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", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\tString inbase = std.nextLine();\n\t\tString inmatch = std.nextLine();\n\n\t\tinbase += inbase;\n\t\tif(inbase.indexOf(inmatch) == -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 std = new Scanner(System.in);\n\t\tString inbase = std.nextLine();\n\t\tString inmatch = std.nextLine();\n\n\t\tinbase += inbase;\n\t\tif(inbase.indexOf(inmatch) == -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 std = new Scanner(System.in);\n\t\tString inbase = std.nextLine();\n\t\tString inmatch = std.nextLine();\n\n\t\tinbase += inbase;\n\t\tif(inbase.indexOf(inmatch) == -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 std = new Scanner(System.in);", "std", "new Scanner(System.in)", "String inbase = std.nextLine();", "inbase", "std.nextLine()", "std.nextLine", "std", "String inmatch = std.nextLine();", "inmatch", "std.nextLine()", "std.nextLine", "std", "inbase += inbase", "inbase", "inbase", "if(inbase.indexOf(inmatch) == -1){\n\t\t\tSystem.out.println(\"No\");\n\t\t}else{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}", "inbase.indexOf(inmatch) == -1", "inbase.indexOf(inmatch)", "inbase.indexOf", "inbase", "inmatch", "-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\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\tString inbase = std.nextLine();\n\t\tString inmatch = std.nextLine();\n\n\t\tinbase += inbase;\n\t\tif(inbase.indexOf(inmatch) == -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}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\tString inbase = std.nextLine();\n\t\tString inmatch = std.nextLine();\n\n\t\tinbase += inbase;\n\t\tif(inbase.indexOf(inmatch) == -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" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner std = new Scanner(System.in); String inbase = std.nextLine(); String inmatch = std.nextLine(); inbase += inbase; if(inbase.indexOf(inmatch) == -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, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 14, 2, 4, 18, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 4, 18, 13, 17, 30, 0, 13, 17, 3, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 4, 18, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 13, 4, 18, 13, 30, 14, 2, 4, 18, 13, 2, 13, 13, 4, 18, 13, 13, 3, 14, 2, 2, 13, 13, 4, 18, 13, 30, 14, 2, 4, 18, 13, 2, 2, 13, 13, 4, 18, 13, 4, 18, 13, 13, 3, 14, 2, 2, 13, 17, 4, 18, 13, 0, 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 ], [ 186, 11 ], [ 186, 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 ], [ 14, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 32, 36 ], [ 31, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 38, 48 ], [ 48, 49 ], [ 49, 50 ], [ 38, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 54, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 53, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 31, 68 ], [ 68, 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 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 85, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 84, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 95, 105 ], [ 105, 106 ], [ 106, 107 ], [ 95, 108 ], [ 109, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 116, 117 ], [ 110, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 121, 124 ], [ 124, 125 ], [ 124, 126 ], [ 120, 127 ], [ 127, 128 ], [ 128, 129 ], [ 127, 130 ], [ 119, 131 ], [ 110, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 137, 138 ], [ 138, 139 ], [ 132, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 143, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 146, 150 ], [ 150, 151 ], [ 151, 152 ], [ 142, 153 ], [ 153, 154 ], [ 154, 155 ], [ 153, 156 ], [ 141, 157 ], [ 109, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 159, 163 ], [ 163, 164 ], [ 164, 165 ], [ 158, 166 ], [ 166, 167 ], [ 166, 168 ], [ 14, 169 ], [ 169, 170 ], [ 169, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 171, 176 ], [ 169, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 177, 182 ], [ 12, 183 ], [ 183, 184 ], [ 0, 185 ], [ 185, 186 ], [ 185, 187 ] ]
[ "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{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\n\t\tString str = input.readLine();\n\n\t\tString want = input.readLine();\n\n\t\tboolean judge = false;\n\n\t\tif(want.length() == 1)\n\t\t{\n\t\t\t//入力した文字があるか判定\n\t\t\tfor(int num = 0; num < str.length(); num++)\n\t\t\t{\n\t\t\t\tif(str.charAt(num) == want.charAt(0))\n\t\t\t\t{\n\t\t\t\t\tjudge = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\t//入力した文字列が作れるか判定\n\t\t\tfor(int start = 0; start < str.length(); start++)\n\t\t\t{\n\t\t\t\tif(str.charAt(start) == want.charAt(0))\n\t\t\t\t{\n\t\t\t\t\t//2文字以降の判定\n\t\t\t\t\tfor(int next = 1; next < want.length(); next++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//繋ぎ目を越える前\n\t\t\t\t\t\tif(next + start < str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//繋ぎ目を超えた後\n\t\t\t\t\t\telse if(next + start >= str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start - str.length()) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//入力した文字列が作れた場合\n\t\t\t\t\t\tif(next + 1 == want.length())\n\t\t\t\t\t\t\tjudge = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(judge)\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n}\n", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main (String[] args) throws IOException\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\n\t\tString str = input.readLine();\n\n\t\tString want = input.readLine();\n\n\t\tboolean judge = false;\n\n\t\tif(want.length() == 1)\n\t\t{\n\t\t\t//入力した文字があるか判定\n\t\t\tfor(int num = 0; num < str.length(); num++)\n\t\t\t{\n\t\t\t\tif(str.charAt(num) == want.charAt(0))\n\t\t\t\t{\n\t\t\t\t\tjudge = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\t//入力した文字列が作れるか判定\n\t\t\tfor(int start = 0; start < str.length(); start++)\n\t\t\t{\n\t\t\t\tif(str.charAt(start) == want.charAt(0))\n\t\t\t\t{\n\t\t\t\t\t//2文字以降の判定\n\t\t\t\t\tfor(int next = 1; next < want.length(); next++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//繋ぎ目を越える前\n\t\t\t\t\t\tif(next + start < str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//繋ぎ目を超えた後\n\t\t\t\t\t\telse if(next + start >= str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start - str.length()) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//入力した文字列が作れた場合\n\t\t\t\t\t\tif(next + 1 == want.length())\n\t\t\t\t\t\t\tjudge = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(judge)\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n}", "Main", "public static void main (String[] args) throws IOException\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\n\t\tString str = input.readLine();\n\n\t\tString want = input.readLine();\n\n\t\tboolean judge = false;\n\n\t\tif(want.length() == 1)\n\t\t{\n\t\t\t//入力した文字があるか判定\n\t\t\tfor(int num = 0; num < str.length(); num++)\n\t\t\t{\n\t\t\t\tif(str.charAt(num) == want.charAt(0))\n\t\t\t\t{\n\t\t\t\t\tjudge = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\t//入力した文字列が作れるか判定\n\t\t\tfor(int start = 0; start < str.length(); start++)\n\t\t\t{\n\t\t\t\tif(str.charAt(start) == want.charAt(0))\n\t\t\t\t{\n\t\t\t\t\t//2文字以降の判定\n\t\t\t\t\tfor(int next = 1; next < want.length(); next++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//繋ぎ目を越える前\n\t\t\t\t\t\tif(next + start < str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//繋ぎ目を超えた後\n\t\t\t\t\t\telse if(next + start >= str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start - str.length()) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//入力した文字列が作れた場合\n\t\t\t\t\t\tif(next + 1 == want.length())\n\t\t\t\t\t\t\tjudge = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(judge)\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}", "main", "{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\n\t\tString str = input.readLine();\n\n\t\tString want = input.readLine();\n\n\t\tboolean judge = false;\n\n\t\tif(want.length() == 1)\n\t\t{\n\t\t\t//入力した文字があるか判定\n\t\t\tfor(int num = 0; num < str.length(); num++)\n\t\t\t{\n\t\t\t\tif(str.charAt(num) == want.charAt(0))\n\t\t\t\t{\n\t\t\t\t\tjudge = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\t//入力した文字列が作れるか判定\n\t\t\tfor(int start = 0; start < str.length(); start++)\n\t\t\t{\n\t\t\t\tif(str.charAt(start) == want.charAt(0))\n\t\t\t\t{\n\t\t\t\t\t//2文字以降の判定\n\t\t\t\t\tfor(int next = 1; next < want.length(); next++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//繋ぎ目を越える前\n\t\t\t\t\t\tif(next + start < str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//繋ぎ目を超えた後\n\t\t\t\t\t\telse if(next + start >= str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start - str.length()) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//入力した文字列が作れた場合\n\t\t\t\t\t\tif(next + 1 == want.length())\n\t\t\t\t\t\t\tjudge = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(judge)\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}", "BufferedReader input = new BufferedReader (new InputStreamReader (System.in));", "input", "new BufferedReader (new InputStreamReader (System.in))", "String str = input.readLine();", "str", "input.readLine()", "input.readLine", "input", "String want = input.readLine();", "want", "input.readLine()", "input.readLine", "input", "boolean judge = false;", "judge", "false", "if(want.length() == 1)\n\t\t{\n\t\t\t//入力した文字があるか判定\n\t\t\tfor(int num = 0; num < str.length(); num++)\n\t\t\t{\n\t\t\t\tif(str.charAt(num) == want.charAt(0))\n\t\t\t\t{\n\t\t\t\t\tjudge = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\t//入力した文字列が作れるか判定\n\t\t\tfor(int start = 0; start < str.length(); start++)\n\t\t\t{\n\t\t\t\tif(str.charAt(start) == want.charAt(0))\n\t\t\t\t{\n\t\t\t\t\t//2文字以降の判定\n\t\t\t\t\tfor(int next = 1; next < want.length(); next++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//繋ぎ目を越える前\n\t\t\t\t\t\tif(next + start < str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//繋ぎ目を超えた後\n\t\t\t\t\t\telse if(next + start >= str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start - str.length()) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//入力した文字列が作れた場合\n\t\t\t\t\t\tif(next + 1 == want.length())\n\t\t\t\t\t\t\tjudge = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "want.length() == 1", "want.length()", "want.length", "want", "1", "{\n\t\t\t//入力した文字があるか判定\n\t\t\tfor(int num = 0; num < str.length(); num++)\n\t\t\t{\n\t\t\t\tif(str.charAt(num) == want.charAt(0))\n\t\t\t\t{\n\t\t\t\t\tjudge = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "for(int num = 0; num < str.length(); num++)\n\t\t\t{\n\t\t\t\tif(str.charAt(num) == want.charAt(0))\n\t\t\t\t{\n\t\t\t\t\tjudge = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "int num = 0;", "int num = 0;", "num", "0", "num < str.length()", "num", "str.length()", "str.length", "str", "num++", "num++", "num", "{\n\t\t\t\tif(str.charAt(num) == want.charAt(0))\n\t\t\t\t{\n\t\t\t\t\tjudge = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(str.charAt(num) == want.charAt(0))\n\t\t\t\t{\n\t\t\t\t\tjudge = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "if(str.charAt(num) == want.charAt(0))\n\t\t\t\t{\n\t\t\t\t\tjudge = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "str.charAt(num) == want.charAt(0)", "str.charAt(num)", "str.charAt", "str", "num", "want.charAt(0)", "want.charAt", "want", "0", "{\n\t\t\t\t\tjudge = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "judge = true", "judge", "true", "break;", "{\n\t\t\t//入力した文字列が作れるか判定\n\t\t\tfor(int start = 0; start < str.length(); start++)\n\t\t\t{\n\t\t\t\tif(str.charAt(start) == want.charAt(0))\n\t\t\t\t{\n\t\t\t\t\t//2文字以降の判定\n\t\t\t\t\tfor(int next = 1; next < want.length(); next++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//繋ぎ目を越える前\n\t\t\t\t\t\tif(next + start < str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//繋ぎ目を超えた後\n\t\t\t\t\t\telse if(next + start >= str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start - str.length()) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//入力した文字列が作れた場合\n\t\t\t\t\t\tif(next + 1 == want.length())\n\t\t\t\t\t\t\tjudge = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "for(int start = 0; start < str.length(); start++)\n\t\t\t{\n\t\t\t\tif(str.charAt(start) == want.charAt(0))\n\t\t\t\t{\n\t\t\t\t\t//2文字以降の判定\n\t\t\t\t\tfor(int next = 1; next < want.length(); next++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//繋ぎ目を越える前\n\t\t\t\t\t\tif(next + start < str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//繋ぎ目を超えた後\n\t\t\t\t\t\telse if(next + start >= str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start - str.length()) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//入力した文字列が作れた場合\n\t\t\t\t\t\tif(next + 1 == want.length())\n\t\t\t\t\t\t\tjudge = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "int start = 0;", "int start = 0;", "start", "0", "start < str.length()", "start", "str.length()", "str.length", "str", "start++", "start++", "start", "{\n\t\t\t\tif(str.charAt(start) == want.charAt(0))\n\t\t\t\t{\n\t\t\t\t\t//2文字以降の判定\n\t\t\t\t\tfor(int next = 1; next < want.length(); next++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//繋ぎ目を越える前\n\t\t\t\t\t\tif(next + start < str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//繋ぎ目を超えた後\n\t\t\t\t\t\telse if(next + start >= str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start - str.length()) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//入力した文字列が作れた場合\n\t\t\t\t\t\tif(next + 1 == want.length())\n\t\t\t\t\t\t\tjudge = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(str.charAt(start) == want.charAt(0))\n\t\t\t\t{\n\t\t\t\t\t//2文字以降の判定\n\t\t\t\t\tfor(int next = 1; next < want.length(); next++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//繋ぎ目を越える前\n\t\t\t\t\t\tif(next + start < str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//繋ぎ目を超えた後\n\t\t\t\t\t\telse if(next + start >= str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start - str.length()) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//入力した文字列が作れた場合\n\t\t\t\t\t\tif(next + 1 == want.length())\n\t\t\t\t\t\t\tjudge = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "if(str.charAt(start) == want.charAt(0))\n\t\t\t\t{\n\t\t\t\t\t//2文字以降の判定\n\t\t\t\t\tfor(int next = 1; next < want.length(); next++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//繋ぎ目を越える前\n\t\t\t\t\t\tif(next + start < str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//繋ぎ目を超えた後\n\t\t\t\t\t\telse if(next + start >= str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start - str.length()) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//入力した文字列が作れた場合\n\t\t\t\t\t\tif(next + 1 == want.length())\n\t\t\t\t\t\t\tjudge = true;\n\t\t\t\t\t}\n\t\t\t\t}", "str.charAt(start) == want.charAt(0)", "str.charAt(start)", "str.charAt", "str", "start", "want.charAt(0)", "want.charAt", "want", "0", "{\n\t\t\t\t\t//2文字以降の判定\n\t\t\t\t\tfor(int next = 1; next < want.length(); next++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//繋ぎ目を越える前\n\t\t\t\t\t\tif(next + start < str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//繋ぎ目を超えた後\n\t\t\t\t\t\telse if(next + start >= str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start - str.length()) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//入力した文字列が作れた場合\n\t\t\t\t\t\tif(next + 1 == want.length())\n\t\t\t\t\t\t\tjudge = true;\n\t\t\t\t\t}\n\t\t\t\t}", "for(int next = 1; next < want.length(); next++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//繋ぎ目を越える前\n\t\t\t\t\t\tif(next + start < str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//繋ぎ目を超えた後\n\t\t\t\t\t\telse if(next + start >= str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start - str.length()) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//入力した文字列が作れた場合\n\t\t\t\t\t\tif(next + 1 == want.length())\n\t\t\t\t\t\t\tjudge = true;\n\t\t\t\t\t}", "int next = 1;", "int next = 1;", "next", "1", "next < want.length()", "next", "want.length()", "want.length", "want", "next++", "next++", "next", "{\n\t\t\t\t\t\t//繋ぎ目を越える前\n\t\t\t\t\t\tif(next + start < str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//繋ぎ目を超えた後\n\t\t\t\t\t\telse if(next + start >= str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start - str.length()) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//入力した文字列が作れた場合\n\t\t\t\t\t\tif(next + 1 == want.length())\n\t\t\t\t\t\t\tjudge = true;\n\t\t\t\t\t}", "{\n\t\t\t\t\t\t//繋ぎ目を越える前\n\t\t\t\t\t\tif(next + start < str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//繋ぎ目を超えた後\n\t\t\t\t\t\telse if(next + start >= str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start - str.length()) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//入力した文字列が作れた場合\n\t\t\t\t\t\tif(next + 1 == want.length())\n\t\t\t\t\t\t\tjudge = true;\n\t\t\t\t\t}", "if(next + start < str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//繋ぎ目を超えた後\n\t\t\t\t\t\telse if(next + start >= str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start - str.length()) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "next + start < str.length()", "next + start", "next", "start", "str.length()", "str.length", "str", "{\n\t\t\t\t\t\t\tif(str.charAt(next + start) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "if(str.charAt(next + start) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;", "str.charAt(next + start) != want.charAt(next)", "str.charAt(next + start)", "str.charAt", "str", "next + start", "next", "start", "want.charAt(next)", "want.charAt", "want", "next", "break;", "if(next + start >= str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start - str.length()) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "next + start >= str.length()", "next + start", "next", "start", "str.length()", "str.length", "str", "{\n\t\t\t\t\t\t\tif(str.charAt(next + start - str.length()) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "if(str.charAt(next + start - str.length()) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;", "str.charAt(next + start - str.length()) != want.charAt(next)", "str.charAt(next + start - str.length())", "str.charAt", "str", "next + start - str.length()", "next + start", "next", "start", "str.length()", "str.length", "str", "want.charAt(next)", "want.charAt", "want", "next", "break;", "if(next + 1 == want.length())\n\t\t\t\t\t\t\tjudge = true;", "next + 1 == want.length()", "next + 1", "next", "1", "want.length()", "want.length", "want", "judge = true", "judge", "true", "if(judge)\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\telse\n\t\t\tSystem.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", "public class Main {\n\tpublic static void main (String[] args) throws IOException\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\n\t\tString str = input.readLine();\n\n\t\tString want = input.readLine();\n\n\t\tboolean judge = false;\n\n\t\tif(want.length() == 1)\n\t\t{\n\t\t\t//入力した文字があるか判定\n\t\t\tfor(int num = 0; num < str.length(); num++)\n\t\t\t{\n\t\t\t\tif(str.charAt(num) == want.charAt(0))\n\t\t\t\t{\n\t\t\t\t\tjudge = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\t//入力した文字列が作れるか判定\n\t\t\tfor(int start = 0; start < str.length(); start++)\n\t\t\t{\n\t\t\t\tif(str.charAt(start) == want.charAt(0))\n\t\t\t\t{\n\t\t\t\t\t//2文字以降の判定\n\t\t\t\t\tfor(int next = 1; next < want.length(); next++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//繋ぎ目を越える前\n\t\t\t\t\t\tif(next + start < str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//繋ぎ目を超えた後\n\t\t\t\t\t\telse if(next + start >= str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start - str.length()) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//入力した文字列が作れた場合\n\t\t\t\t\t\tif(next + 1 == want.length())\n\t\t\t\t\t\t\tjudge = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(judge)\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n}", "public class Main {\n\tpublic static void main (String[] args) throws IOException\n\t{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\n\t\tString str = input.readLine();\n\n\t\tString want = input.readLine();\n\n\t\tboolean judge = false;\n\n\t\tif(want.length() == 1)\n\t\t{\n\t\t\t//入力した文字があるか判定\n\t\t\tfor(int num = 0; num < str.length(); num++)\n\t\t\t{\n\t\t\t\tif(str.charAt(num) == want.charAt(0))\n\t\t\t\t{\n\t\t\t\t\tjudge = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\t//入力した文字列が作れるか判定\n\t\t\tfor(int start = 0; start < str.length(); start++)\n\t\t\t{\n\t\t\t\tif(str.charAt(start) == want.charAt(0))\n\t\t\t\t{\n\t\t\t\t\t//2文字以降の判定\n\t\t\t\t\tfor(int next = 1; next < want.length(); next++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//繋ぎ目を越える前\n\t\t\t\t\t\tif(next + start < str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//繋ぎ目を超えた後\n\t\t\t\t\t\telse if(next + start >= str.length())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(str.charAt(next + start - str.length()) != want.charAt(next))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//入力した文字列が作れた場合\n\t\t\t\t\t\tif(next + 1 == want.length())\n\t\t\t\t\t\t\tjudge = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(judge)\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\telse\n\t\t\tSystem.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) throws IOException { BufferedReader input = new BufferedReader (new InputStreamReader (System.in)); String str = input.readLine(); String want = input.readLine(); boolean judge = false; if(want.length() == 1) { //入力した文字があるか判定 for(int num = 0; num < str.length(); num++) { if(str.charAt(num) == want.charAt(0)) { judge = true; break; } } } else { //入力した文字列が作れるか判定 for(int start = 0; start < str.length(); start++) { if(str.charAt(start) == want.charAt(0)) { //2文字以降の判定 for(int next = 1; next < want.length(); next++) { //繋ぎ目を越える前 if(next + start < str.length()) { if(str.charAt(next + start) != want.charAt(next)) break; } //繋ぎ目を超えた後 else if(next + start >= str.length()) { if(str.charAt(next + start - str.length()) != want.charAt(next)) break; } //入力した文字列が作れた場合 if(next + 1 == want.length()) judge = true; } } } } if(judge) 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, 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 input = new Scanner(System.in);\n String word = input.nextLine();\n String pattern = input.nextLine();\n word += word;\n if(word.contains(pattern))\n System.out.println(\"Yes\");\n else\n 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 input = new Scanner(System.in);\n String word = input.nextLine();\n String pattern = input.nextLine();\n word += word;\n if(word.contains(pattern))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}", "Main", "public static void main(String args[]){\n Scanner input = new Scanner(System.in);\n String word = input.nextLine();\n String pattern = input.nextLine();\n word += word;\n if(word.contains(pattern))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }", "main", "{\n Scanner input = new Scanner(System.in);\n String word = input.nextLine();\n String pattern = input.nextLine();\n word += word;\n if(word.contains(pattern))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }", "Scanner input = new Scanner(System.in);", "input", "new Scanner(System.in)", "String word = input.nextLine();", "word", "input.nextLine()", "input.nextLine", "input", "String pattern = input.nextLine();", "pattern", "input.nextLine()", "input.nextLine", "input", "word += word", "word", "word", "if(word.contains(pattern))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");", "word.contains(pattern)", "word.contains", "word", "pattern", "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 input = new Scanner(System.in);\n String word = input.nextLine();\n String pattern = input.nextLine();\n word += word;\n if(word.contains(pattern))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}", "public class Main{\n public static void main(String args[]){\n Scanner input = new Scanner(System.in);\n String word = input.nextLine();\n String pattern = input.nextLine();\n word += word;\n if(word.contains(pattern))\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner input = new Scanner(System.in); String word = input.nextLine(); String pattern = input.nextLine(); word += word; if(word.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, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 13, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 0, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 0, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 2, 13, 13, 13, 0, 13, 13, 14, 4, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 3, 14, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 48, 50 ], [ 44, 51 ], [ 51, 52 ], [ 51, 53 ], [ 44, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 54, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 66, 73 ], [ 73, 74 ], [ 73, 75 ], [ 44, 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 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 88, 95 ], [ 95, 96 ], [ 95, 97 ], [ 44, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 103, 104 ], [ 103, 105 ], [ 98, 106 ], [ 106, 107 ], [ 107, 108 ], [ 98, 109 ], [ 110, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 110, 119 ], [ 119, 120 ], [ 119, 121 ], [ 44, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 122, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 127, 134 ], [ 122, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 138, 140 ], [ 135, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 142, 147 ], [ 6, 148 ], [ 148, 149 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String strs = sc.next();\n String strp = sc.next();\n int snum = strs.length();\n int psum = strp.length();\n \n for(int p = 0; p < snum; p++){\n String str1 = \"\";\n String str2 = \"\";\n String str3 = \"\";\n for(int q = p; q < snum; q++){\n char c1 = strs.charAt(q);\n str1 += c1;\n }\n for(int r = 0; r < p; r++){\n char c2 = strs.charAt(r);\n str2 += c2;\n }\n for(int s = 0; s < psum; s++){\n char c3 = (str1+str2).charAt(s);\n str3 += c3;\n }\n \n if(str3.equals(strp)){\n System.out.println(\"Yes\");\n break;\n }else if(p == snum-1){\n System.out.println(\"No\");\n }\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String strs = sc.next();\n String strp = sc.next();\n int snum = strs.length();\n int psum = strp.length();\n \n for(int p = 0; p < snum; p++){\n String str1 = \"\";\n String str2 = \"\";\n String str3 = \"\";\n for(int q = p; q < snum; q++){\n char c1 = strs.charAt(q);\n str1 += c1;\n }\n for(int r = 0; r < p; r++){\n char c2 = strs.charAt(r);\n str2 += c2;\n }\n for(int s = 0; s < psum; s++){\n char c3 = (str1+str2).charAt(s);\n str3 += c3;\n }\n \n if(str3.equals(strp)){\n System.out.println(\"Yes\");\n break;\n }else if(p == snum-1){\n System.out.println(\"No\");\n }\n }\n }\n}", "Main", "public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n String strs = sc.next();\n String strp = sc.next();\n int snum = strs.length();\n int psum = strp.length();\n \n for(int p = 0; p < snum; p++){\n String str1 = \"\";\n String str2 = \"\";\n String str3 = \"\";\n for(int q = p; q < snum; q++){\n char c1 = strs.charAt(q);\n str1 += c1;\n }\n for(int r = 0; r < p; r++){\n char c2 = strs.charAt(r);\n str2 += c2;\n }\n for(int s = 0; s < psum; s++){\n char c3 = (str1+str2).charAt(s);\n str3 += c3;\n }\n \n if(str3.equals(strp)){\n System.out.println(\"Yes\");\n break;\n }else if(p == snum-1){\n System.out.println(\"No\");\n }\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String strs = sc.next();\n String strp = sc.next();\n int snum = strs.length();\n int psum = strp.length();\n \n for(int p = 0; p < snum; p++){\n String str1 = \"\";\n String str2 = \"\";\n String str3 = \"\";\n for(int q = p; q < snum; q++){\n char c1 = strs.charAt(q);\n str1 += c1;\n }\n for(int r = 0; r < p; r++){\n char c2 = strs.charAt(r);\n str2 += c2;\n }\n for(int s = 0; s < psum; s++){\n char c3 = (str1+str2).charAt(s);\n str3 += c3;\n }\n \n if(str3.equals(strp)){\n System.out.println(\"Yes\");\n break;\n }else if(p == snum-1){\n System.out.println(\"No\");\n }\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String strs = sc.next();", "strs", "sc.next()", "sc.next", "sc", "String strp = sc.next();", "strp", "sc.next()", "sc.next", "sc", "int snum = strs.length();", "snum", "strs.length()", "strs.length", "strs", "int psum = strp.length();", "psum", "strp.length()", "strp.length", "strp", "for(int p = 0; p < snum; p++){\n String str1 = \"\";\n String str2 = \"\";\n String str3 = \"\";\n for(int q = p; q < snum; q++){\n char c1 = strs.charAt(q);\n str1 += c1;\n }\n for(int r = 0; r < p; r++){\n char c2 = strs.charAt(r);\n str2 += c2;\n }\n for(int s = 0; s < psum; s++){\n char c3 = (str1+str2).charAt(s);\n str3 += c3;\n }\n \n if(str3.equals(strp)){\n System.out.println(\"Yes\");\n break;\n }else if(p == snum-1){\n System.out.println(\"No\");\n }\n }", "int p = 0;", "int p = 0;", "p", "0", "p < snum", "p", "snum", "p++", "p++", "p", "{\n String str1 = \"\";\n String str2 = \"\";\n String str3 = \"\";\n for(int q = p; q < snum; q++){\n char c1 = strs.charAt(q);\n str1 += c1;\n }\n for(int r = 0; r < p; r++){\n char c2 = strs.charAt(r);\n str2 += c2;\n }\n for(int s = 0; s < psum; s++){\n char c3 = (str1+str2).charAt(s);\n str3 += c3;\n }\n \n if(str3.equals(strp)){\n System.out.println(\"Yes\");\n break;\n }else if(p == snum-1){\n System.out.println(\"No\");\n }\n }", "{\n String str1 = \"\";\n String str2 = \"\";\n String str3 = \"\";\n for(int q = p; q < snum; q++){\n char c1 = strs.charAt(q);\n str1 += c1;\n }\n for(int r = 0; r < p; r++){\n char c2 = strs.charAt(r);\n str2 += c2;\n }\n for(int s = 0; s < psum; s++){\n char c3 = (str1+str2).charAt(s);\n str3 += c3;\n }\n \n if(str3.equals(strp)){\n System.out.println(\"Yes\");\n break;\n }else if(p == snum-1){\n System.out.println(\"No\");\n }\n }", "String str1 = \"\";", "str1", "\"\"", "String str2 = \"\";", "str2", "\"\"", "String str3 = \"\";", "str3", "\"\"", "for(int q = p; q < snum; q++){\n char c1 = strs.charAt(q);\n str1 += c1;\n }", "int q = p;", "int q = p;", "q", "p", "q < snum", "q", "snum", "q++", "q++", "q", "{\n char c1 = strs.charAt(q);\n str1 += c1;\n }", "{\n char c1 = strs.charAt(q);\n str1 += c1;\n }", "char c1 = strs.charAt(q);", "c1", "strs.charAt(q)", "strs.charAt", "strs", "q", "str1 += c1", "str1", "c1", "for(int r = 0; r < p; r++){\n char c2 = strs.charAt(r);\n str2 += c2;\n }", "int r = 0;", "int r = 0;", "r", "0", "r < p", "r", "p", "r++", "r++", "r", "{\n char c2 = strs.charAt(r);\n str2 += c2;\n }", "{\n char c2 = strs.charAt(r);\n str2 += c2;\n }", "char c2 = strs.charAt(r);", "c2", "strs.charAt(r)", "strs.charAt", "strs", "r", "str2 += c2", "str2", "c2", "for(int s = 0; s < psum; s++){\n char c3 = (str1+str2).charAt(s);\n str3 += c3;\n }", "int s = 0;", "int s = 0;", "s", "0", "s < psum", "s", "psum", "s++", "s++", "s", "{\n char c3 = (str1+str2).charAt(s);\n str3 += c3;\n }", "{\n char c3 = (str1+str2).charAt(s);\n str3 += c3;\n }", "char c3 = (str1+str2).charAt(s);", "c3", "(str1+str2).charAt(s)", "(str1+str2).charAt", "(str1+str2)", "str1", "str2", "s", "str3 += c3", "str3", "c3", "if(str3.equals(strp)){\n System.out.println(\"Yes\");\n break;\n }else if(p == snum-1){\n System.out.println(\"No\");\n }", "str3.equals(strp)", "str3.equals", "str3", "strp", "{\n System.out.println(\"Yes\");\n break;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "break;", "if(p == snum-1){\n System.out.println(\"No\");\n }", "p == snum-1", "p", "snum-1", "snum", "1", "{\n System.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String args[]", "args" ]
import java.util.Scanner; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); String strs = sc.next(); String strp = sc.next(); int snum = strs.length(); int psum = strp.length(); for(int p = 0; p < snum; p++){ String str1 = ""; String str2 = ""; String str3 = ""; for(int q = p; q < snum; q++){ char c1 = strs.charAt(q); str1 += c1; } for(int r = 0; r < p; r++){ char c2 = strs.charAt(r); str2 += c2; } for(int s = 0; s < psum; s++){ char c3 = (str1+str2).charAt(s); str3 += c3; } if(str3.equals(strp)){ System.out.println("Yes"); break; }else if(p == snum-1){ System.out.println("No"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 4, 18, 13, 4, 18, 13, 30, 14, 4, 18, 4, 18, 13, 13, 2, 13, 4, 18, 13, 13, 30, 0, 13, 17, 3, 30, 41, 13, 2, 4, 18, 13, 13, 41, 13, 2, 4, 18, 13, 13, 41, 13, 2, 4, 18, 13, 13, 4, 18, 13, 17, 13, 14, 4, 18, 13, 13, 30, 0, 13, 17, 3, 14, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 125, 5 ], [ 125, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 25, 35 ], [ 35, 36 ], [ 36, 37 ], [ 25, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 40, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 54, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 51, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 40, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 72, 76 ], [ 69, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 79, 83 ], [ 69, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 86, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 91, 95 ], [ 69, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 96, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 8, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 106, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 6, 122 ], [ 122, 123 ], [ 0, 124 ], [ 124, 125 ], [ 124, 126 ] ]
[ "import java.util.Scanner;\n\npublic class Main \n{\n\tpublic static void main(String[] args) \n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString f = sc.nextLine();\n\t\tboolean ans = false;\n\n\t\tfor(int i = 0; i < s.length(); i++)\n\t\t{\n\t\t\tif(i <= s.length() - f.length())\n\t\t\t{\n\t\t\t\tif(s.substring(i, i+f.length()).equals(f))\n\t\t\t\t{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint l1 = s.length() - i;\n\t\t\t\tint l = f.length() - l1;\n\t\t\t\tString comp = s.substring(i) + s.substring(0, l);\n\t\t\t\t\n\t\t\t\tif(comp.equals(f))\n\t\t\t\t{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(ans)\n\t\t{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\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{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString f = sc.nextLine();\n\t\tboolean ans = false;\n\n\t\tfor(int i = 0; i < s.length(); i++)\n\t\t{\n\t\t\tif(i <= s.length() - f.length())\n\t\t\t{\n\t\t\t\tif(s.substring(i, i+f.length()).equals(f))\n\t\t\t\t{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint l1 = s.length() - i;\n\t\t\t\tint l = f.length() - l1;\n\t\t\t\tString comp = s.substring(i) + s.substring(0, l);\n\t\t\t\t\n\t\t\t\tif(comp.equals(f))\n\t\t\t\t{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(ans)\n\t\t{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) \n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString f = sc.nextLine();\n\t\tboolean ans = false;\n\n\t\tfor(int i = 0; i < s.length(); i++)\n\t\t{\n\t\t\tif(i <= s.length() - f.length())\n\t\t\t{\n\t\t\t\tif(s.substring(i, i+f.length()).equals(f))\n\t\t\t\t{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint l1 = s.length() - i;\n\t\t\t\tint l = f.length() - l1;\n\t\t\t\tString comp = s.substring(i) + s.substring(0, l);\n\t\t\t\t\n\t\t\t\tif(comp.equals(f))\n\t\t\t\t{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(ans)\n\t\t{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse\n\t\t{\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 f = sc.nextLine();\n\t\tboolean ans = false;\n\n\t\tfor(int i = 0; i < s.length(); i++)\n\t\t{\n\t\t\tif(i <= s.length() - f.length())\n\t\t\t{\n\t\t\t\tif(s.substring(i, i+f.length()).equals(f))\n\t\t\t\t{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint l1 = s.length() - i;\n\t\t\t\tint l = f.length() - l1;\n\t\t\t\tString comp = s.substring(i) + s.substring(0, l);\n\t\t\t\t\n\t\t\t\tif(comp.equals(f))\n\t\t\t\t{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(ans)\n\t\t{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse\n\t\t{\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 f = sc.nextLine();", "f", "sc.nextLine()", "sc.nextLine", "sc", "boolean ans = false;", "ans", "false", "for(int i = 0; i < s.length(); i++)\n\t\t{\n\t\t\tif(i <= s.length() - f.length())\n\t\t\t{\n\t\t\t\tif(s.substring(i, i+f.length()).equals(f))\n\t\t\t\t{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint l1 = s.length() - i;\n\t\t\t\tint l = f.length() - l1;\n\t\t\t\tString comp = s.substring(i) + s.substring(0, l);\n\t\t\t\t\n\t\t\t\tif(comp.equals(f))\n\t\t\t\t{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n\t\t\tif(i <= s.length() - f.length())\n\t\t\t{\n\t\t\t\tif(s.substring(i, i+f.length()).equals(f))\n\t\t\t\t{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint l1 = s.length() - i;\n\t\t\t\tint l = f.length() - l1;\n\t\t\t\tString comp = s.substring(i) + s.substring(0, l);\n\t\t\t\t\n\t\t\t\tif(comp.equals(f))\n\t\t\t\t{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tif(i <= s.length() - f.length())\n\t\t\t{\n\t\t\t\tif(s.substring(i, i+f.length()).equals(f))\n\t\t\t\t{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint l1 = s.length() - i;\n\t\t\t\tint l = f.length() - l1;\n\t\t\t\tString comp = s.substring(i) + s.substring(0, l);\n\t\t\t\t\n\t\t\t\tif(comp.equals(f))\n\t\t\t\t{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "if(i <= s.length() - f.length())\n\t\t\t{\n\t\t\t\tif(s.substring(i, i+f.length()).equals(f))\n\t\t\t\t{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint l1 = s.length() - i;\n\t\t\t\tint l = f.length() - l1;\n\t\t\t\tString comp = s.substring(i) + s.substring(0, l);\n\t\t\t\t\n\t\t\t\tif(comp.equals(f))\n\t\t\t\t{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "i <= s.length() - f.length()", "i", "s.length() - f.length()", "s.length()", "s.length", "s", "f.length()", "f.length", "f", "{\n\t\t\t\tif(s.substring(i, i+f.length()).equals(f))\n\t\t\t\t{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "if(s.substring(i, i+f.length()).equals(f))\n\t\t\t\t{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "s.substring(i, i+f.length()).equals(f)", "s.substring(i, i+f.length()).equals", "s.substring(i, i+f.length())", "s.substring", "s", "i", "i+f.length()", "i", "f.length()", "f.length", "f", "f", "{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "ans = true", "ans", "true", "break;", "{\n\t\t\t\tint l1 = s.length() - i;\n\t\t\t\tint l = f.length() - l1;\n\t\t\t\tString comp = s.substring(i) + s.substring(0, l);\n\t\t\t\t\n\t\t\t\tif(comp.equals(f))\n\t\t\t\t{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "int l1 = s.length() - i;", "l1", "s.length() - i", "s.length()", "s.length", "s", "i", "int l = f.length() - l1;", "l", "f.length() - l1", "f.length()", "f.length", "f", "l1", "String comp = s.substring(i) + s.substring(0, l);", "comp", "s.substring(i) + s.substring(0, l)", "s.substring(i)", "s.substring", "s", "i", "s.substring(0, l)", "s.substring", "s", "0", "l", "if(comp.equals(f))\n\t\t\t\t{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "comp.equals(f)", "comp.equals", "comp", "f", "{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "ans = true", "ans", "true", "break;", "if(ans)\n\t\t{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse\n\t\t{\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{\n\tpublic static void main(String[] args) \n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString f = sc.nextLine();\n\t\tboolean ans = false;\n\n\t\tfor(int i = 0; i < s.length(); i++)\n\t\t{\n\t\t\tif(i <= s.length() - f.length())\n\t\t\t{\n\t\t\t\tif(s.substring(i, i+f.length()).equals(f))\n\t\t\t\t{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint l1 = s.length() - i;\n\t\t\t\tint l = f.length() - l1;\n\t\t\t\tString comp = s.substring(i) + s.substring(0, l);\n\t\t\t\t\n\t\t\t\tif(comp.equals(f))\n\t\t\t\t{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(ans)\n\t\t{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n\n}", "public class Main \n{\n\tpublic static void main(String[] args) \n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString f = sc.nextLine();\n\t\tboolean ans = false;\n\n\t\tfor(int i = 0; i < s.length(); i++)\n\t\t{\n\t\t\tif(i <= s.length() - f.length())\n\t\t\t{\n\t\t\t\tif(s.substring(i, i+f.length()).equals(f))\n\t\t\t\t{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint l1 = s.length() - i;\n\t\t\t\tint l = f.length() - l1;\n\t\t\t\tString comp = s.substring(i) + s.substring(0, l);\n\t\t\t\t\n\t\t\t\tif(comp.equals(f))\n\t\t\t\t{\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(ans)\n\t\t{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); String f = sc.nextLine(); boolean ans = false; for(int i = 0; i < s.length(); i++) { if(i <= s.length() - f.length()) { if(s.substring(i, i+f.length()).equals(f)) { ans = true; break; } } else { int l1 = s.length() - i; int l = f.length() - l1; String comp = s.substring(i) + s.substring(0, l); if(comp.equals(f)) { ans = true; break; } } } 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, 20, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 17, 11, 1, 41, 13, 13, 2, 13, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 13, 14, 2, 13, 18, 13, 13, 30, 0, 13, 18, 13, 13, 4, 18, 13, 18, 13, 13, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 3, 14, 2, 13, 2, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 121, 5 ], [ 121, 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 ], [ 17, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 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 ], [ 44, 45 ], [ 43, 46 ], [ 42, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 47, 59 ], [ 59, 60 ], [ 60, 61 ], [ 47, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 67, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 63, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 82, 84 ], [ 42, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 42, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 90, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 95, 102 ], [ 90, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 103, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 6, 118 ], [ 118, 119 ], [ 0, 120 ], [ 120, 121 ], [ 120, 122 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n String[] str = sc.nextLine().split(\"\");\n String p = sc.nextLine();\n for(int i = 0; i < str.length; i++) {\n sb.setLength(0);\n for(int j = i; j < i + str.length; j++) {\n int a = j;\n if(a >= str.length) {\n a -= str.length;\n }\n sb.append(str[a]);\n }\n String s = sb.toString();\n if(s.contains(p)) {\n System.out.println(\"Yes\");\n break;\n } else if(i == str.length - 1) {\n System.out.println(\"No\");\n }\n }\n }\n}\n", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n String[] str = sc.nextLine().split(\"\");\n String p = sc.nextLine();\n for(int i = 0; i < str.length; i++) {\n sb.setLength(0);\n for(int j = i; j < i + str.length; j++) {\n int a = j;\n if(a >= str.length) {\n a -= str.length;\n }\n sb.append(str[a]);\n }\n String s = sb.toString();\n if(s.contains(p)) {\n System.out.println(\"Yes\");\n break;\n } else if(i == str.length - 1) {\n System.out.println(\"No\");\n }\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n String[] str = sc.nextLine().split(\"\");\n String p = sc.nextLine();\n for(int i = 0; i < str.length; i++) {\n sb.setLength(0);\n for(int j = i; j < i + str.length; j++) {\n int a = j;\n if(a >= str.length) {\n a -= str.length;\n }\n sb.append(str[a]);\n }\n String s = sb.toString();\n if(s.contains(p)) {\n System.out.println(\"Yes\");\n break;\n } else if(i == str.length - 1) {\n System.out.println(\"No\");\n }\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n String[] str = sc.nextLine().split(\"\");\n String p = sc.nextLine();\n for(int i = 0; i < str.length; i++) {\n sb.setLength(0);\n for(int j = i; j < i + str.length; j++) {\n int a = j;\n if(a >= str.length) {\n a -= str.length;\n }\n sb.append(str[a]);\n }\n String s = sb.toString();\n if(s.contains(p)) {\n System.out.println(\"Yes\");\n break;\n } else if(i == str.length - 1) {\n System.out.println(\"No\");\n }\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "String[] str = sc.nextLine().split(\"\");", "str", "sc.nextLine().split(\"\")", "sc.nextLine().split", "sc.nextLine()", "sc.nextLine", "sc", "\"\"", "String p = sc.nextLine();", "p", "sc.nextLine()", "sc.nextLine", "sc", "for(int i = 0; i < str.length; i++) {\n sb.setLength(0);\n for(int j = i; j < i + str.length; j++) {\n int a = j;\n if(a >= str.length) {\n a -= str.length;\n }\n sb.append(str[a]);\n }\n String s = sb.toString();\n if(s.contains(p)) {\n System.out.println(\"Yes\");\n break;\n } else if(i == str.length - 1) {\n System.out.println(\"No\");\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < str.length", "i", "str.length", "str", "str.length", "i++", "i++", "i", "{\n sb.setLength(0);\n for(int j = i; j < i + str.length; j++) {\n int a = j;\n if(a >= str.length) {\n a -= str.length;\n }\n sb.append(str[a]);\n }\n String s = sb.toString();\n if(s.contains(p)) {\n System.out.println(\"Yes\");\n break;\n } else if(i == str.length - 1) {\n System.out.println(\"No\");\n }\n }", "{\n sb.setLength(0);\n for(int j = i; j < i + str.length; j++) {\n int a = j;\n if(a >= str.length) {\n a -= str.length;\n }\n sb.append(str[a]);\n }\n String s = sb.toString();\n if(s.contains(p)) {\n System.out.println(\"Yes\");\n break;\n } else if(i == str.length - 1) {\n System.out.println(\"No\");\n }\n }", "sb.setLength(0)", "sb.setLength", "sb", "0", "for(int j = i; j < i + str.length; j++) {\n int a = j;\n if(a >= str.length) {\n a -= str.length;\n }\n sb.append(str[a]);\n }", "int j = i;", "int j = i;", "j", "i", "j < i + str.length", "j", "i + str.length", "i", "str.length", "str", "str.length", "j++", "j++", "j", "{\n int a = j;\n if(a >= str.length) {\n a -= str.length;\n }\n sb.append(str[a]);\n }", "{\n int a = j;\n if(a >= str.length) {\n a -= str.length;\n }\n sb.append(str[a]);\n }", "int a = j;", "a", "j", "if(a >= str.length) {\n a -= str.length;\n }", "a >= str.length", "a", "str.length", "str", "str.length", "{\n a -= str.length;\n }", "a -= str.length", "a", "str.length", "str", "str.length", "sb.append(str[a])", "sb.append", "sb", "str[a]", "str", "a", "String s = sb.toString();", "s", "sb.toString()", "sb.toString", "sb", "if(s.contains(p)) {\n System.out.println(\"Yes\");\n break;\n } else if(i == str.length - 1) {\n System.out.println(\"No\");\n }", "s.contains(p)", "s.contains", "s", "p", "{\n System.out.println(\"Yes\");\n break;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "break;", "if(i == str.length - 1) {\n System.out.println(\"No\");\n }", "i == str.length - 1", "i", "str.length - 1", "str.length", "str", "str.length", "1", "{\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 StringBuilder sb = new StringBuilder();\n String[] str = sc.nextLine().split(\"\");\n String p = sc.nextLine();\n for(int i = 0; i < str.length; i++) {\n sb.setLength(0);\n for(int j = i; j < i + str.length; j++) {\n int a = j;\n if(a >= str.length) {\n a -= str.length;\n }\n sb.append(str[a]);\n }\n String s = sb.toString();\n if(s.contains(p)) {\n System.out.println(\"Yes\");\n break;\n } else if(i == str.length - 1) {\n System.out.println(\"No\");\n }\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n String[] str = sc.nextLine().split(\"\");\n String p = sc.nextLine();\n for(int i = 0; i < str.length; i++) {\n sb.setLength(0);\n for(int j = i; j < i + str.length; j++) {\n int a = j;\n if(a >= str.length) {\n a -= str.length;\n }\n sb.append(str[a]);\n }\n String s = sb.toString();\n if(s.contains(p)) {\n System.out.println(\"Yes\");\n break;\n } else if(i == str.length - 1) {\n System.out.println(\"No\");\n }\n }\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); StringBuilder sb = new StringBuilder(); String[] str = sc.nextLine().split(""); String p = sc.nextLine(); for(int i = 0; i < str.length; i++) { sb.setLength(0); for(int j = i; j < i + str.length; j++) { int a = j; if(a >= str.length) { a -= str.length; } sb.append(str[a]); } String s = sb.toString(); if(s.contains(p)) { System.out.println("Yes"); break; } else if(i == str.length - 1) { 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, 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) throws Exception {\n Scanner sc = new Scanner(System.in);\n String ring = sc.nextLine();\n String p = sc.nextLine();\n ring += ring;\n if(ring.contains(p)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String ring = sc.nextLine();\n String p = sc.nextLine();\n ring += ring;\n if(ring.contains(p)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String ring = sc.nextLine();\n String p = sc.nextLine();\n ring += ring;\n if(ring.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 ring = sc.nextLine();\n String p = sc.nextLine();\n ring += ring;\n if(ring.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 ring = sc.nextLine();", "ring", "sc.nextLine()", "sc.nextLine", "sc", "String p = sc.nextLine();", "p", "sc.nextLine()", "sc.nextLine", "sc", "ring += ring", "ring", "ring", "if(ring.contains(p)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }", "ring.contains(p)", "ring.contains", "ring", "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) throws Exception {\n Scanner sc = new Scanner(System.in);\n String ring = sc.nextLine();\n String p = sc.nextLine();\n ring += ring;\n if(ring.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) throws Exception {\n Scanner sc = new Scanner(System.in);\n String ring = sc.nextLine();\n String p = sc.nextLine();\n ring += ring;\n if(ring.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) throws Exception { Scanner sc = new Scanner(System.in); String ring = sc.nextLine(); String p = sc.nextLine(); ring += ring; if(ring.contains(p)){ System.out.println("Yes"); }else{ System.out.println("No"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 4, 18, 13, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 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, 14, 2, 18, 13, 13, 18, 13, 2, 2, 13, 13, 4, 18, 13, 30, 0, 13, 17, 3, 14, 13, 30, 0, 13, 17, 3, 14, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 151, 11 ], [ 151, 12 ], [ 12, 13 ], [ 12, 14 ], [ 151, 15 ], [ 15, 16 ], [ 15, 17 ], [ 151, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 24, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 31, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 31, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 42, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 50, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 50, 61 ], [ 61, 62 ], [ 61, 63 ], [ 50, 64 ], [ 64, 65 ], [ 50, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 66, 76 ], [ 76, 77 ], [ 77, 78 ], [ 66, 79 ], [ 80, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 84, 94 ], [ 94, 95 ], [ 95, 96 ], [ 84, 97 ], [ 98, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 111, 112 ], [ 99, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 80, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 50, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 125, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 42, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 142, 147 ], [ 18, 148 ], [ 148, 149 ], [ 0, 150 ], [ 150, 151 ], [ 150, 152 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\tString T = br.readLine();\n\t\t\tString P = br.readLine();\n\n\t\t\tif(P.length() <= T.length()){\n\n\t\t\t\tchar T_array[] = T.toCharArray();\n\t\t\t\tchar P_array[] = P.toCharArray();\n\n\t\t\t\tboolean Found = false,FLG;\n\n\t\t\t\tfor(int start = 0; start < T.length(); start++){\n\t\t\t\t\tFLG = true;\n\t\t\t\t\tfor(int i = 0; i < P.length(); i++){\n\t\t\t\t\t\tif(P_array[i] != T_array[(start+i)%T.length()]){\n\t\t\t\t\t\t\tFLG = false;\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\tif(FLG){\n\t\t\t\t\t\tFound = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(Found){\n\t\t\t\t\tSystem.out.printf(\"Yes\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.printf(\"No\\n\");\n\t\t\t\t}\n\n\t\t\t}else{\n\n\t\t\t\tSystem.out.printf(\"No\\n\");\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\tString T = br.readLine();\n\t\t\tString P = br.readLine();\n\n\t\t\tif(P.length() <= T.length()){\n\n\t\t\t\tchar T_array[] = T.toCharArray();\n\t\t\t\tchar P_array[] = P.toCharArray();\n\n\t\t\t\tboolean Found = false,FLG;\n\n\t\t\t\tfor(int start = 0; start < T.length(); start++){\n\t\t\t\t\tFLG = true;\n\t\t\t\t\tfor(int i = 0; i < P.length(); i++){\n\t\t\t\t\t\tif(P_array[i] != T_array[(start+i)%T.length()]){\n\t\t\t\t\t\t\tFLG = false;\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\tif(FLG){\n\t\t\t\t\t\tFound = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(Found){\n\t\t\t\t\tSystem.out.printf(\"Yes\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.printf(\"No\\n\");\n\t\t\t\t}\n\n\t\t\t}else{\n\n\t\t\t\tSystem.out.printf(\"No\\n\");\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\t}\n}", "Main", "public static final int BIG_NUM = 2000000000;", "BIG_NUM", "2000000000", "public static final int MOD = 1000000007;", "MOD", "1000000007", "public static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\tString T = br.readLine();\n\t\t\tString P = br.readLine();\n\n\t\t\tif(P.length() <= T.length()){\n\n\t\t\t\tchar T_array[] = T.toCharArray();\n\t\t\t\tchar P_array[] = P.toCharArray();\n\n\t\t\t\tboolean Found = false,FLG;\n\n\t\t\t\tfor(int start = 0; start < T.length(); start++){\n\t\t\t\t\tFLG = true;\n\t\t\t\t\tfor(int i = 0; i < P.length(); i++){\n\t\t\t\t\t\tif(P_array[i] != T_array[(start+i)%T.length()]){\n\t\t\t\t\t\t\tFLG = false;\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\tif(FLG){\n\t\t\t\t\t\tFound = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(Found){\n\t\t\t\t\tSystem.out.printf(\"Yes\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.printf(\"No\\n\");\n\t\t\t\t}\n\n\t\t\t}else{\n\n\t\t\t\tSystem.out.printf(\"No\\n\");\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\tString T = br.readLine();\n\t\t\tString P = br.readLine();\n\n\t\t\tif(P.length() <= T.length()){\n\n\t\t\t\tchar T_array[] = T.toCharArray();\n\t\t\t\tchar P_array[] = P.toCharArray();\n\n\t\t\t\tboolean Found = false,FLG;\n\n\t\t\t\tfor(int start = 0; start < T.length(); start++){\n\t\t\t\t\tFLG = true;\n\t\t\t\t\tfor(int i = 0; i < P.length(); i++){\n\t\t\t\t\t\tif(P_array[i] != T_array[(start+i)%T.length()]){\n\t\t\t\t\t\t\tFLG = false;\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\tif(FLG){\n\t\t\t\t\t\tFound = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(Found){\n\t\t\t\t\tSystem.out.printf(\"Yes\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.printf(\"No\\n\");\n\t\t\t\t}\n\n\t\t\t}else{\n\n\t\t\t\tSystem.out.printf(\"No\\n\");\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "try {\n\t\t\tString T = br.readLine();\n\t\t\tString P = br.readLine();\n\n\t\t\tif(P.length() <= T.length()){\n\n\t\t\t\tchar T_array[] = T.toCharArray();\n\t\t\t\tchar P_array[] = P.toCharArray();\n\n\t\t\t\tboolean Found = false,FLG;\n\n\t\t\t\tfor(int start = 0; start < T.length(); start++){\n\t\t\t\t\tFLG = true;\n\t\t\t\t\tfor(int i = 0; i < P.length(); i++){\n\t\t\t\t\t\tif(P_array[i] != T_array[(start+i)%T.length()]){\n\t\t\t\t\t\t\tFLG = false;\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\tif(FLG){\n\t\t\t\t\t\tFound = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(Found){\n\t\t\t\t\tSystem.out.printf(\"Yes\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.printf(\"No\\n\");\n\t\t\t\t}\n\n\t\t\t}else{\n\n\t\t\t\tSystem.out.printf(\"No\\n\");\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\tString T = br.readLine();\n\t\t\tString P = br.readLine();\n\n\t\t\tif(P.length() <= T.length()){\n\n\t\t\t\tchar T_array[] = T.toCharArray();\n\t\t\t\tchar P_array[] = P.toCharArray();\n\n\t\t\t\tboolean Found = false,FLG;\n\n\t\t\t\tfor(int start = 0; start < T.length(); start++){\n\t\t\t\t\tFLG = true;\n\t\t\t\t\tfor(int i = 0; i < P.length(); i++){\n\t\t\t\t\t\tif(P_array[i] != T_array[(start+i)%T.length()]){\n\t\t\t\t\t\t\tFLG = false;\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\tif(FLG){\n\t\t\t\t\t\tFound = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(Found){\n\t\t\t\t\tSystem.out.printf(\"Yes\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.printf(\"No\\n\");\n\t\t\t\t}\n\n\t\t\t}else{\n\n\t\t\t\tSystem.out.printf(\"No\\n\");\n\t\t\t}\n\n\t\t}", "String T = br.readLine();", "T", "br.readLine()", "br.readLine", "br", "String P = br.readLine();", "P", "br.readLine()", "br.readLine", "br", "if(P.length() <= T.length()){\n\n\t\t\t\tchar T_array[] = T.toCharArray();\n\t\t\t\tchar P_array[] = P.toCharArray();\n\n\t\t\t\tboolean Found = false,FLG;\n\n\t\t\t\tfor(int start = 0; start < T.length(); start++){\n\t\t\t\t\tFLG = true;\n\t\t\t\t\tfor(int i = 0; i < P.length(); i++){\n\t\t\t\t\t\tif(P_array[i] != T_array[(start+i)%T.length()]){\n\t\t\t\t\t\t\tFLG = false;\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\tif(FLG){\n\t\t\t\t\t\tFound = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(Found){\n\t\t\t\t\tSystem.out.printf(\"Yes\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.printf(\"No\\n\");\n\t\t\t\t}\n\n\t\t\t}else{\n\n\t\t\t\tSystem.out.printf(\"No\\n\");\n\t\t\t}", "P.length() <= T.length()", "P.length()", "P.length", "P", "T.length()", "T.length", "T", "{\n\n\t\t\t\tchar T_array[] = T.toCharArray();\n\t\t\t\tchar P_array[] = P.toCharArray();\n\n\t\t\t\tboolean Found = false,FLG;\n\n\t\t\t\tfor(int start = 0; start < T.length(); start++){\n\t\t\t\t\tFLG = true;\n\t\t\t\t\tfor(int i = 0; i < P.length(); i++){\n\t\t\t\t\t\tif(P_array[i] != T_array[(start+i)%T.length()]){\n\t\t\t\t\t\t\tFLG = false;\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\tif(FLG){\n\t\t\t\t\t\tFound = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(Found){\n\t\t\t\t\tSystem.out.printf(\"Yes\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.printf(\"No\\n\");\n\t\t\t\t}\n\n\t\t\t}", "char T_array[] = T.toCharArray();", "T_array", "T.toCharArray()", "T.toCharArray", "T", "char P_array[] = P.toCharArray();", "P_array", "P.toCharArray()", "P.toCharArray", "P", "boolean Found = false", "Found", "false", "FLG;", "FLG", "for(int start = 0; start < T.length(); start++){\n\t\t\t\t\tFLG = true;\n\t\t\t\t\tfor(int i = 0; i < P.length(); i++){\n\t\t\t\t\t\tif(P_array[i] != T_array[(start+i)%T.length()]){\n\t\t\t\t\t\t\tFLG = false;\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\tif(FLG){\n\t\t\t\t\t\tFound = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "int start = 0;", "int start = 0;", "start", "0", "start < T.length()", "start", "T.length()", "T.length", "T", "start++", "start++", "start", "{\n\t\t\t\t\tFLG = true;\n\t\t\t\t\tfor(int i = 0; i < P.length(); i++){\n\t\t\t\t\t\tif(P_array[i] != T_array[(start+i)%T.length()]){\n\t\t\t\t\t\t\tFLG = false;\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\tif(FLG){\n\t\t\t\t\t\tFound = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tFLG = true;\n\t\t\t\t\tfor(int i = 0; i < P.length(); i++){\n\t\t\t\t\t\tif(P_array[i] != T_array[(start+i)%T.length()]){\n\t\t\t\t\t\t\tFLG = false;\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\tif(FLG){\n\t\t\t\t\t\tFound = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "FLG = true", "FLG", "true", "for(int i = 0; i < P.length(); i++){\n\t\t\t\t\t\tif(P_array[i] != T_array[(start+i)%T.length()]){\n\t\t\t\t\t\t\tFLG = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\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\t\t\tif(P_array[i] != T_array[(start+i)%T.length()]){\n\t\t\t\t\t\t\tFLG = false;\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\tif(P_array[i] != T_array[(start+i)%T.length()]){\n\t\t\t\t\t\t\tFLG = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "if(P_array[i] != T_array[(start+i)%T.length()]){\n\t\t\t\t\t\t\tFLG = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "P_array[i] != T_array[(start+i)%T.length()]", "P_array[i]", "P_array", "i", "T_array[(start+i)%T.length()]", "T_array", "(start+i)%T.length()", "(start+i)", "start", "i", "T.length()", "T.length", "T", "{\n\t\t\t\t\t\t\tFLG = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "FLG = false", "FLG", "false", "break;", "if(FLG){\n\t\t\t\t\t\tFound = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "FLG", "{\n\t\t\t\t\t\tFound = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "Found = true", "Found", "true", "break;", "if(Found){\n\t\t\t\t\tSystem.out.printf(\"Yes\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.printf(\"No\\n\");\n\t\t\t\t}", "Found", "{\n\t\t\t\t\tSystem.out.printf(\"Yes\\n\");\n\t\t\t\t}", "System.out.printf(\"Yes\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"Yes\\n\"", "{\n\t\t\t\t\tSystem.out.printf(\"No\\n\");\n\t\t\t\t}", "System.out.printf(\"No\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"No\\n\"", "{\n\n\t\t\t\tSystem.out.printf(\"No\\n\");\n\t\t\t}", "System.out.printf(\"No\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"No\\n\"", "String[] args", "args", "public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\tString T = br.readLine();\n\t\t\tString P = br.readLine();\n\n\t\t\tif(P.length() <= T.length()){\n\n\t\t\t\tchar T_array[] = T.toCharArray();\n\t\t\t\tchar P_array[] = P.toCharArray();\n\n\t\t\t\tboolean Found = false,FLG;\n\n\t\t\t\tfor(int start = 0; start < T.length(); start++){\n\t\t\t\t\tFLG = true;\n\t\t\t\t\tfor(int i = 0; i < P.length(); i++){\n\t\t\t\t\t\tif(P_array[i] != T_array[(start+i)%T.length()]){\n\t\t\t\t\t\t\tFLG = false;\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\tif(FLG){\n\t\t\t\t\t\tFound = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(Found){\n\t\t\t\t\tSystem.out.printf(\"Yes\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.printf(\"No\\n\");\n\t\t\t\t}\n\n\t\t\t}else{\n\n\t\t\t\tSystem.out.printf(\"No\\n\");\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\t}\n}", "public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\tString T = br.readLine();\n\t\t\tString P = br.readLine();\n\n\t\t\tif(P.length() <= T.length()){\n\n\t\t\t\tchar T_array[] = T.toCharArray();\n\t\t\t\tchar P_array[] = P.toCharArray();\n\n\t\t\t\tboolean Found = false,FLG;\n\n\t\t\t\tfor(int start = 0; start < T.length(); start++){\n\t\t\t\t\tFLG = true;\n\t\t\t\t\tfor(int i = 0; i < P.length(); i++){\n\t\t\t\t\t\tif(P_array[i] != T_array[(start+i)%T.length()]){\n\t\t\t\t\t\t\tFLG = false;\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\tif(FLG){\n\t\t\t\t\t\tFound = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(Found){\n\t\t\t\t\tSystem.out.printf(\"Yes\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.printf(\"No\\n\");\n\t\t\t\t}\n\n\t\t\t}else{\n\n\t\t\t\tSystem.out.printf(\"No\\n\");\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static final int BIG_NUM = 2000000000; public static final int MOD = 1000000007; public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try { String T = br.readLine(); String P = br.readLine(); if(P.length() <= T.length()){ char T_array[] = T.toCharArray(); char P_array[] = P.toCharArray(); boolean Found = false,FLG; for(int start = 0; start < T.length(); start++){ FLG = true; for(int i = 0; i < P.length(); i++){ if(P_array[i] != T_array[(start+i)%T.length()]){ FLG = false; break; } } if(FLG){ Found = true; break; } } if(Found){ System.out.printf("Yes\n"); }else{ System.out.printf("No\n"); } }else{ System.out.printf("No\n"); } } 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, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 4, 18, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 13, 13, 2, 13, 4, 18, 13, 13, 30, 0, 13, 17, 3, 14, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 89, 5 ], [ 89, 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 ], [ 8, 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 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 52, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 50, 61 ], [ 49, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 8, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 67, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 8, 83 ], [ 83, 84 ], [ 84, 85 ], [ 6, 86 ], [ 86, 87 ], [ 0, 88 ], [ 88, 89 ], [ 88, 90 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString S = s + s;\n\t\tString P = sc.next();\n\n\t\tboolean flag = false;\n\t\tfor(int i = 0; i <= S.length() - P.length(); i++) {\n\t\t\tif(S.substring(i, i + P.length()).equals(P)){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\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\n\t\tsc.close();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString S = s + s;\n\t\tString P = sc.next();\n\n\t\tboolean flag = false;\n\t\tfor(int i = 0; i <= S.length() - P.length(); i++) {\n\t\t\tif(S.substring(i, i + P.length()).equals(P)){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\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\n\t\tsc.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString S = s + s;\n\t\tString P = sc.next();\n\n\t\tboolean flag = false;\n\t\tfor(int i = 0; i <= S.length() - P.length(); i++) {\n\t\t\tif(S.substring(i, i + P.length()).equals(P)){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\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\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString S = s + s;\n\t\tString P = sc.next();\n\n\t\tboolean flag = false;\n\t\tfor(int i = 0; i <= S.length() - P.length(); i++) {\n\t\t\tif(S.substring(i, i + P.length()).equals(P)){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\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\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "String S = s + s;", "S", "s + s", "s", "s", "String P = sc.next();", "P", "sc.next()", "sc.next", "sc", "boolean flag = false;", "flag", "false", "for(int i = 0; i <= S.length() - P.length(); i++) {\n\t\t\tif(S.substring(i, i + P.length()).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 <= S.length() - P.length()", "i", "S.length() - P.length()", "S.length()", "S.length", "S", "P.length()", "P.length", "P", "i++", "i++", "i", "{\n\t\t\tif(S.substring(i, i + P.length()).equals(P)){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(S.substring(i, i + P.length()).equals(P)){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "if(S.substring(i, i + P.length()).equals(P)){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}", "S.substring(i, i + P.length()).equals(P)", "S.substring(i, i + P.length()).equals", "S.substring(i, i + P.length())", "S.substring", "S", "i", "i + P.length()", "i", "P.length()", "P.length", "P", "P", "{\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}", "flag = true", "flag", "true", "break;", "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\"", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString S = s + s;\n\t\tString P = sc.next();\n\n\t\tboolean flag = false;\n\t\tfor(int i = 0; i <= S.length() - P.length(); i++) {\n\t\t\tif(S.substring(i, i + P.length()).equals(P)){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\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\n\t\tsc.close();\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString S = s + s;\n\t\tString P = sc.next();\n\n\t\tboolean flag = false;\n\t\tfor(int i = 0; i <= S.length() - P.length(); i++) {\n\t\t\tif(S.substring(i, i + P.length()).equals(P)){\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\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\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); String S = s + s; String P = sc.next(); boolean flag = false; for(int i = 0; i <= S.length() - P.length(); i++) { if(S.substring(i, i + P.length()).equals(P)){ flag = true; break; } } if(flag) { System.out.println("Yes"); }else { System.out.println("No"); } sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 14, 2, 4, 18, 13, 13, 40, 17, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 56, 8 ], [ 56, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 11, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 11, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 35, 40 ], [ 40, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 34, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 11, 50 ], [ 50, 51 ], [ 51, 52 ], [ 9, 53 ], [ 53, 54 ], [ 0, 55 ], [ 55, 56 ], [ 55, 57 ] ]
[ "import java.io.*;\nimport java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n// sc.useDelimiter(\"\\n\");\n\n String s = sc.next();\n String p = sc.next();\n String ss = s.concat(s);\n if (ss.indexOf(p) != -1)\n pw.println(\"Yes\");\n else\n pw.println(\"No\");\n \n pw.flush();\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n// sc.useDelimiter(\"\\n\");\n\n String s = sc.next();\n String p = sc.next();\n String ss = s.concat(s);\n if (ss.indexOf(p) != -1)\n pw.println(\"Yes\");\n else\n pw.println(\"No\");\n \n pw.flush();\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n// sc.useDelimiter(\"\\n\");\n\n String s = sc.next();\n String p = sc.next();\n String ss = s.concat(s);\n if (ss.indexOf(p) != -1)\n pw.println(\"Yes\");\n else\n pw.println(\"No\");\n \n pw.flush();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n// sc.useDelimiter(\"\\n\");\n\n String s = sc.next();\n String p = sc.next();\n String ss = s.concat(s);\n if (ss.indexOf(p) != -1)\n pw.println(\"Yes\");\n else\n pw.println(\"No\");\n \n pw.flush();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "PrintWriter pw = new PrintWriter(System.out);", "pw", "new PrintWriter(System.out)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "String p = sc.next();", "p", "sc.next()", "sc.next", "sc", "String ss = s.concat(s);", "ss", "s.concat(s)", "s.concat", "s", "s", "if (ss.indexOf(p) != -1)\n pw.println(\"Yes\");\n else\n pw.println(\"No\");", "ss.indexOf(p) != -1", "ss.indexOf(p)", "ss.indexOf", "ss", "p", "-1", "1", "pw.println(\"Yes\")", "pw.println", "pw", "\"Yes\"", "pw.println(\"No\")", "pw.println", "pw", "\"No\"", "pw.flush()", "pw.flush", "pw", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n// sc.useDelimiter(\"\\n\");\n\n String s = sc.next();\n String p = sc.next();\n String ss = s.concat(s);\n if (ss.indexOf(p) != -1)\n pw.println(\"Yes\");\n else\n pw.println(\"No\");\n \n pw.flush();\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n PrintWriter pw = new PrintWriter(System.out);\n// sc.useDelimiter(\"\\n\");\n\n String s = sc.next();\n String p = sc.next();\n String ss = s.concat(s);\n if (ss.indexOf(p) != -1)\n pw.println(\"Yes\");\n else\n pw.println(\"No\");\n \n pw.flush();\n }\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); PrintWriter pw = new PrintWriter(System.out); // sc.useDelimiter("\n"); String s = sc.next(); String p = sc.next(); String ss = s.concat(s); if (ss.indexOf(p) != -1) pw.println("Yes"); else pw.println("No"); pw.flush(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 2, 13, 4, 18, 13, 17, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 13, 13, 2, 13, 13, 13, 30, 4, 18, 18, 13, 13, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 100, 5 ], [ 100, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 36, 40 ], [ 40, 41 ], [ 40, 42 ], [ 8, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 43, 51 ], [ 51, 52 ], [ 52, 53 ], [ 43, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 56, 64 ], [ 64, 65 ], [ 65, 66 ], [ 56, 67 ], [ 68, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 72, 76 ], [ 76, 77 ], [ 76, 78 ], [ 70, 79 ], [ 69, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 80, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 8, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 6, 97 ], [ 97, 98 ], [ 0, 99 ], [ 99, 100 ], [ 99, 101 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n String s=sc.next();\n String p=sc.next();\n int sl=s.length();\n int pl=p.length();\n s=s+s.substring(0,pl-1);\n for(int i=0;i<sl;i++){\n for(int j=0;j<pl;j++){\n if(s.substring(i,i+pl).equals(p)){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n }\n System.out.println(\"No\");\n }\n}\n", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n String s=sc.next();\n String p=sc.next();\n int sl=s.length();\n int pl=p.length();\n s=s+s.substring(0,pl-1);\n for(int i=0;i<sl;i++){\n for(int j=0;j<pl;j++){\n if(s.substring(i,i+pl).equals(p)){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n }\n System.out.println(\"No\");\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n String s=sc.next();\n String p=sc.next();\n int sl=s.length();\n int pl=p.length();\n s=s+s.substring(0,pl-1);\n for(int i=0;i<sl;i++){\n for(int j=0;j<pl;j++){\n if(s.substring(i,i+pl).equals(p)){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n }\n System.out.println(\"No\");\n }", "main", "{\n Scanner sc=new Scanner(System.in);\n String s=sc.next();\n String p=sc.next();\n int sl=s.length();\n int pl=p.length();\n s=s+s.substring(0,pl-1);\n for(int i=0;i<sl;i++){\n for(int j=0;j<pl;j++){\n if(s.substring(i,i+pl).equals(p)){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n }\n System.out.println(\"No\");\n }", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s=sc.next();", "s", "sc.next()", "sc.next", "sc", "String p=sc.next();", "p", "sc.next()", "sc.next", "sc", "int sl=s.length();", "sl", "s.length()", "s.length", "s", "int pl=p.length();", "pl", "p.length()", "p.length", "p", "s=s+s.substring(0,pl-1)", "s", "s+s.substring(0,pl-1)", "s", "s.substring(0,pl-1)", "s.substring", "s", "0", "pl-1", "pl", "1", "for(int i=0;i<sl;i++){\n for(int j=0;j<pl;j++){\n if(s.substring(i,i+pl).equals(p)){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<sl", "i", "sl", "i++", "i++", "i", "{\n for(int j=0;j<pl;j++){\n if(s.substring(i,i+pl).equals(p)){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n }", "{\n for(int j=0;j<pl;j++){\n if(s.substring(i,i+pl).equals(p)){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n }", "for(int j=0;j<pl;j++){\n if(s.substring(i,i+pl).equals(p)){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }", "int j=0;", "int j=0;", "j", "0", "j<pl", "j", "pl", "j++", "j++", "j", "{\n if(s.substring(i,i+pl).equals(p)){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }", "{\n if(s.substring(i,i+pl).equals(p)){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }", "if(s.substring(i,i+pl).equals(p)){\n System.out.println(\"Yes\");\n System.exit(0);\n }", "s.substring(i,i+pl).equals(p)", "s.substring(i,i+pl).equals", "s.substring(i,i+pl)", "s.substring", "s", "i", "i+pl", "i", "pl", "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", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n String s=sc.next();\n String p=sc.next();\n int sl=s.length();\n int pl=p.length();\n s=s+s.substring(0,pl-1);\n for(int i=0;i<sl;i++){\n for(int j=0;j<pl;j++){\n if(s.substring(i,i+pl).equals(p)){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n }\n System.out.println(\"No\");\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n String s=sc.next();\n String p=sc.next();\n int sl=s.length();\n int pl=p.length();\n s=s+s.substring(0,pl-1);\n for(int i=0;i<sl;i++){\n for(int j=0;j<pl;j++){\n if(s.substring(i,i+pl).equals(p)){\n System.out.println(\"Yes\");\n System.exit(0);\n }\n }\n }\n System.out.println(\"No\");\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc=new Scanner(System.in); String s=sc.next(); String p=sc.next(); int sl=s.length(); int pl=p.length(); s=s+s.substring(0,pl-1); for(int i=0;i<sl;i++){ for(int j=0;j<pl;j++){ if(s.substring(i,i+pl).equals(p)){ System.out.println("Yes"); System.exit(0); } } } 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, 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 ], [ 38, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 38, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 6, 58 ], [ 58, 59 ] ]
[ "// 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.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, 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, 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, 17, 4, 18, 13, 13, 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 ]
[ [ 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 ], [ 36, 37 ], [ 22, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 22, 43 ], [ 43, 44 ], [ 43, 45 ], [ 22, 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 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 60, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 59, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 78, 79 ], [ 78, 80 ], [ 73, 81 ], [ 81, 82 ], [ 82, 83 ], [ 73, 84 ], [ 85, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 85, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 94, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 93, 103 ], [ 103, 104 ], [ 58, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 109, 110 ], [ 22, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 111, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 6, 129 ], [ 129, 130 ] ]
[ "import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t String s = kb.readLine();\n\t String p = kb.readLine();\n\t \n\t int slen = s.length();\n\t int plen = p.length();\n\t int j = 0;\n\t\t\tfor( int i = 0; i<slen; i++ ) {\n\t\t\t\tif( p.charAt( 0 ) == s.charAt( i ) ) {\n\t\t\t\t\tint ij = i;\n\t\t\t\t\tfor( j = 0; j<plen; j++ ) {\n\t\t\t\t\t\tij = ( i+j ) % slen;\n\t\t\t\t\t\tif( p.charAt( j ) != s.charAt( ij ) ) {\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( plen == j ) { break; }\n\t\t\t}\n\t\t\t\n\t\t\tif( plen == j ) {\n\t\t\t\tSystem.out.println( \"Yes\" );\t\t\t\n\t\t\t} else {\n\t\t\t\tSystem.out.println( \"No\" );\n\t\t\t}\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t String s = kb.readLine();\n\t String p = kb.readLine();\n\t \n\t int slen = s.length();\n\t int plen = p.length();\n\t int j = 0;\n\t\t\tfor( int i = 0; i<slen; i++ ) {\n\t\t\t\tif( p.charAt( 0 ) == s.charAt( i ) ) {\n\t\t\t\t\tint ij = i;\n\t\t\t\t\tfor( j = 0; j<plen; j++ ) {\n\t\t\t\t\t\tij = ( i+j ) % slen;\n\t\t\t\t\t\tif( p.charAt( j ) != s.charAt( ij ) ) {\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( plen == j ) { break; }\n\t\t\t}\n\t\t\t\n\t\t\tif( plen == j ) {\n\t\t\t\tSystem.out.println( \"Yes\" );\t\t\t\n\t\t\t} else {\n\t\t\t\tSystem.out.println( \"No\" );\n\t\t\t}\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) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t String s = kb.readLine();\n\t String p = kb.readLine();\n\t \n\t int slen = s.length();\n\t int plen = p.length();\n\t int j = 0;\n\t\t\tfor( int i = 0; i<slen; i++ ) {\n\t\t\t\tif( p.charAt( 0 ) == s.charAt( i ) ) {\n\t\t\t\t\tint ij = i;\n\t\t\t\t\tfor( j = 0; j<plen; j++ ) {\n\t\t\t\t\t\tij = ( i+j ) % slen;\n\t\t\t\t\t\tif( p.charAt( j ) != s.charAt( ij ) ) {\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( plen == j ) { break; }\n\t\t\t}\n\t\t\t\n\t\t\tif( plen == j ) {\n\t\t\t\tSystem.out.println( \"Yes\" );\t\t\t\n\t\t\t} else {\n\t\t\t\tSystem.out.println( \"No\" );\n\t\t\t}\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t String s = kb.readLine();\n\t String p = kb.readLine();\n\t \n\t int slen = s.length();\n\t int plen = p.length();\n\t int j = 0;\n\t\t\tfor( int i = 0; i<slen; i++ ) {\n\t\t\t\tif( p.charAt( 0 ) == s.charAt( i ) ) {\n\t\t\t\t\tint ij = i;\n\t\t\t\t\tfor( j = 0; j<plen; j++ ) {\n\t\t\t\t\t\tij = ( i+j ) % slen;\n\t\t\t\t\t\tif( p.charAt( j ) != s.charAt( ij ) ) {\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( plen == j ) { break; }\n\t\t\t}\n\t\t\t\n\t\t\tif( plen == j ) {\n\t\t\t\tSystem.out.println( \"Yes\" );\t\t\t\n\t\t\t} else {\n\t\t\t\tSystem.out.println( \"No\" );\n\t\t\t}\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}", "BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );", "kb", "new BufferedReader( new InputStreamReader( System.in ) )", "try {\n\t String s = kb.readLine();\n\t String p = kb.readLine();\n\t \n\t int slen = s.length();\n\t int plen = p.length();\n\t int j = 0;\n\t\t\tfor( int i = 0; i<slen; i++ ) {\n\t\t\t\tif( p.charAt( 0 ) == s.charAt( i ) ) {\n\t\t\t\t\tint ij = i;\n\t\t\t\t\tfor( j = 0; j<plen; j++ ) {\n\t\t\t\t\t\tij = ( i+j ) % slen;\n\t\t\t\t\t\tif( p.charAt( j ) != s.charAt( ij ) ) {\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( plen == j ) { break; }\n\t\t\t}\n\t\t\t\n\t\t\tif( plen == j ) {\n\t\t\t\tSystem.out.println( \"Yes\" );\t\t\t\n\t\t\t} else {\n\t\t\t\tSystem.out.println( \"No\" );\n\t\t\t}\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 String s = kb.readLine();\n\t String p = kb.readLine();\n\t \n\t int slen = s.length();\n\t int plen = p.length();\n\t int j = 0;\n\t\t\tfor( int i = 0; i<slen; i++ ) {\n\t\t\t\tif( p.charAt( 0 ) == s.charAt( i ) ) {\n\t\t\t\t\tint ij = i;\n\t\t\t\t\tfor( j = 0; j<plen; j++ ) {\n\t\t\t\t\t\tij = ( i+j ) % slen;\n\t\t\t\t\t\tif( p.charAt( j ) != s.charAt( ij ) ) {\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( plen == j ) { break; }\n\t\t\t}\n\t\t\t\n\t\t\tif( plen == j ) {\n\t\t\t\tSystem.out.println( \"Yes\" );\t\t\t\n\t\t\t} else {\n\t\t\t\tSystem.out.println( \"No\" );\n\t\t\t}\n\t\t}", "String s = kb.readLine();", "s", "kb.readLine()", "kb.readLine", "kb", "String p = kb.readLine();", "p", "kb.readLine()", "kb.readLine", "kb", "int slen = s.length();", "slen", "s.length()", "s.length", "s", "int plen = p.length();", "plen", "p.length()", "p.length", "p", "int j = 0;", "j", "0", "for( int i = 0; i<slen; i++ ) {\n\t\t\t\tif( p.charAt( 0 ) == s.charAt( i ) ) {\n\t\t\t\t\tint ij = i;\n\t\t\t\t\tfor( j = 0; j<plen; j++ ) {\n\t\t\t\t\t\tij = ( i+j ) % slen;\n\t\t\t\t\t\tif( p.charAt( j ) != s.charAt( ij ) ) {\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( plen == j ) { break; }\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i<slen", "i", "slen", "i++", "i++", "i", "{\n\t\t\t\tif( p.charAt( 0 ) == s.charAt( i ) ) {\n\t\t\t\t\tint ij = i;\n\t\t\t\t\tfor( j = 0; j<plen; j++ ) {\n\t\t\t\t\t\tij = ( i+j ) % slen;\n\t\t\t\t\t\tif( p.charAt( j ) != s.charAt( ij ) ) {\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( plen == j ) { break; }\n\t\t\t}", "{\n\t\t\t\tif( p.charAt( 0 ) == s.charAt( i ) ) {\n\t\t\t\t\tint ij = i;\n\t\t\t\t\tfor( j = 0; j<plen; j++ ) {\n\t\t\t\t\t\tij = ( i+j ) % slen;\n\t\t\t\t\t\tif( p.charAt( j ) != s.charAt( ij ) ) {\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( plen == j ) { break; }\n\t\t\t}", "if( p.charAt( 0 ) == s.charAt( i ) ) {\n\t\t\t\t\tint ij = i;\n\t\t\t\t\tfor( j = 0; j<plen; j++ ) {\n\t\t\t\t\t\tij = ( i+j ) % slen;\n\t\t\t\t\t\tif( p.charAt( j ) != s.charAt( ij ) ) {\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}", "p.charAt( 0 ) == s.charAt( i )", "p.charAt( 0 )", "p.charAt", "p", "0", "s.charAt( i )", "s.charAt", "s", "i", "{\n\t\t\t\t\tint ij = i;\n\t\t\t\t\tfor( j = 0; j<plen; j++ ) {\n\t\t\t\t\t\tij = ( i+j ) % slen;\n\t\t\t\t\t\tif( p.charAt( j ) != s.charAt( ij ) ) {\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 ij = i;", "ij", "i", "for( j = 0; j<plen; j++ ) {\n\t\t\t\t\t\tij = ( i+j ) % slen;\n\t\t\t\t\t\tif( p.charAt( j ) != s.charAt( ij ) ) {\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<plen", "j", "plen", "j++", "j++", "j", "{\n\t\t\t\t\t\tij = ( i+j ) % slen;\n\t\t\t\t\t\tif( p.charAt( j ) != s.charAt( ij ) ) {\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\tij = ( i+j ) % slen;\n\t\t\t\t\t\tif( p.charAt( j ) != s.charAt( ij ) ) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "ij = ( i+j ) % slen", "ij", "( i+j ) % slen", "( i+j )", "i", "j", "slen", "if( p.charAt( j ) != s.charAt( ij ) ) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "p.charAt( j ) != s.charAt( ij )", "p.charAt( j )", "p.charAt", "p", "j", "s.charAt( ij )", "s.charAt", "s", "ij", "{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}", "break;", "if( plen == j ) { break; }", "plen == j", "plen", "j", "{ break; }", "break;", "if( plen == j ) {\n\t\t\t\tSystem.out.println( \"Yes\" );\t\t\t\n\t\t\t} else {\n\t\t\t\tSystem.out.println( \"No\" );\n\t\t\t}", "plen == j", "plen", "j", "{\n\t\t\t\tSystem.out.println( \"Yes\" );\t\t\t\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" ]
import java.io.*; class Main { public static void main(String[] args) { BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) ); try { String s = kb.readLine(); String p = kb.readLine(); int slen = s.length(); int plen = p.length(); int j = 0; for( int i = 0; i<slen; i++ ) { if( p.charAt( 0 ) == s.charAt( i ) ) { int ij = i; for( j = 0; j<plen; j++ ) { ij = ( i+j ) % slen; if( p.charAt( j ) != s.charAt( ij ) ) { break; } } } if( plen == j ) { break; } } if( plen == j ) { System.out.println( "Yes" ); } else { System.out.println( "No" ); } } catch( IOException e ) { System.err.println( e ); } } }
[ 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, 13, 41, 13, 20, 4, 18, 13, 13, 4, 18, 13, 13, 41, 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 ], [ 67, 11 ], [ 67, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 14, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 14, 37 ], [ 37, 38 ], [ 37, 39 ], [ 14, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 14, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 45, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 45, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 12, 64 ], [ 64, 65 ], [ 0, 66 ], [ 66, 67 ], [ 66, 68 ] ]
[ "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\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString input_line = input.readLine();\n\n\t\t//?????????????????°\n\t\tString half_Ring=input_line;\n\n\t\t//??????????????????????????????????????¨????????????\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\t//?????????????????????????????????\n\t\tsb.append(half_Ring);\n\n\t\t//??????\n\t\tsb.append(half_Ring);\n\n\t\t//?????????????????¨???????????????????????????????????????????????????\n\t\tString str = new String(sb);\n\n\t\t//????????????????????????????´¢???????????????\n\t\tString Word=input.readLine();\n\n\t\t//????´¢???????????????????????°Yes??????\n\t\tif(str.contains(Word)){\n\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}else{\n\n\t\t\tSystem.out.println(\"No\");\n\t\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\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString input_line = input.readLine();\n\n\t\t//?????????????????°\n\t\tString half_Ring=input_line;\n\n\t\t//??????????????????????????????????????¨????????????\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\t//?????????????????????????????????\n\t\tsb.append(half_Ring);\n\n\t\t//??????\n\t\tsb.append(half_Ring);\n\n\t\t//?????????????????¨???????????????????????????????????????????????????\n\t\tString str = new String(sb);\n\n\t\t//????????????????????????????´¢???????????????\n\t\tString Word=input.readLine();\n\n\t\t//????´¢???????????????????????°Yes??????\n\t\tif(str.contains(Word)){\n\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}else{\n\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString input_line = input.readLine();\n\n\t\t//?????????????????°\n\t\tString half_Ring=input_line;\n\n\t\t//??????????????????????????????????????¨????????????\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\t//?????????????????????????????????\n\t\tsb.append(half_Ring);\n\n\t\t//??????\n\t\tsb.append(half_Ring);\n\n\t\t//?????????????????¨???????????????????????????????????????????????????\n\t\tString str = new String(sb);\n\n\t\t//????????????????????????????´¢???????????????\n\t\tString Word=input.readLine();\n\n\t\t//????´¢???????????????????????°Yes??????\n\t\tif(str.contains(Word)){\n\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}else{\n\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t}", "main", "{\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString input_line = input.readLine();\n\n\t\t//?????????????????°\n\t\tString half_Ring=input_line;\n\n\t\t//??????????????????????????????????????¨????????????\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\t//?????????????????????????????????\n\t\tsb.append(half_Ring);\n\n\t\t//??????\n\t\tsb.append(half_Ring);\n\n\t\t//?????????????????¨???????????????????????????????????????????????????\n\t\tString str = new String(sb);\n\n\t\t//????????????????????????????´¢???????????????\n\t\tString Word=input.readLine();\n\n\t\t//????´¢???????????????????????°Yes??????\n\t\tif(str.contains(Word)){\n\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}else{\n\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t}", "BufferedReader input = new BufferedReader(new InputStreamReader(System.in));", "input", "new BufferedReader(new InputStreamReader(System.in))", "String input_line = input.readLine();", "input_line", "input.readLine()", "input.readLine", "input", "String half_Ring=input_line;", "half_Ring", "input_line", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "sb.append(half_Ring)", "sb.append", "sb", "half_Ring", "sb.append(half_Ring)", "sb.append", "sb", "half_Ring", "String str = new String(sb);", "str", "new String(sb)", "String Word=input.readLine();", "Word", "input.readLine()", "input.readLine", "input", "if(str.contains(Word)){\n\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}else{\n\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "str.contains(Word)", "str.contains", "str", "Word", "{\n\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n\n\t\t\tSystem.out.println(\"No\");\n\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\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString input_line = input.readLine();\n\n\t\t//?????????????????°\n\t\tString half_Ring=input_line;\n\n\t\t//??????????????????????????????????????¨????????????\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\t//?????????????????????????????????\n\t\tsb.append(half_Ring);\n\n\t\t//??????\n\t\tsb.append(half_Ring);\n\n\t\t//?????????????????¨???????????????????????????????????????????????????\n\t\tString str = new String(sb);\n\n\t\t//????????????????????????????´¢???????????????\n\t\tString Word=input.readLine();\n\n\t\t//????´¢???????????????????????°Yes??????\n\t\tif(str.contains(Word)){\n\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}else{\n\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString input_line = input.readLine();\n\n\t\t//?????????????????°\n\t\tString half_Ring=input_line;\n\n\t\t//??????????????????????????????????????¨????????????\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\t//?????????????????????????????????\n\t\tsb.append(half_Ring);\n\n\t\t//??????\n\t\tsb.append(half_Ring);\n\n\t\t//?????????????????¨???????????????????????????????????????????????????\n\t\tString str = new String(sb);\n\n\t\t//????????????????????????????´¢???????????????\n\t\tString Word=input.readLine();\n\n\t\t//????´¢???????????????????????°Yes??????\n\t\tif(str.contains(Word)){\n\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}else{\n\n\t\t\tSystem.out.println(\"No\");\n\t\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 input_line = input.readLine(); //?????????????????° String half_Ring=input_line; //??????????????????????????????????????¨???????????? StringBuilder sb = new StringBuilder(); //????????????????????????????????? sb.append(half_Ring); //?????? sb.append(half_Ring); //?????????????????¨??????????????????????????????????????????????????? String str = new String(sb); //????????????????????????????´¢??????????????? String Word=input.readLine(); //????´¢???????????????????????°Yes?????? if(str.contains(Word)){ System.out.println("Yes"); }else{ System.out.println("No"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 41, 13, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 4, 18, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 13, 13, 2, 13, 4, 18, 13, 13, 30, 0, 13, 17, 3, 4, 18, 18, 13, 13, 8, 13, 17, 17, 3, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 91, 8 ], [ 91, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 13, 17 ], [ 17, 18 ], [ 13, 19 ], [ 19, 20 ], [ 19, 21 ], [ 13, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 22, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 30, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 30, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 48, 52 ], [ 52, 53 ], [ 53, 54 ], [ 41, 55 ], [ 55, 56 ], [ 56, 57 ], [ 41, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 63, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 61, 72 ], [ 60, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 30, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 83, 84 ], [ 83, 85 ], [ 83, 86 ], [ 30, 87 ], [ 9, 88 ], [ 88, 89 ], [ 0, 90 ], [ 90, 91 ], [ 90, 92 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n boolean t=false;\n while ((line = br.readLine()) != null) {\n \tString line2=br.readLine();\n \tline=line+line;\n \tfor(int i=0;i<line.length()-line2.length();i++){\n \t\tif(line.substring(i, i+line2.length()).equals(line2)){\n \t\t\tt=true;\n \t\t\tbreak;\n \t\t}\n \t}\n \t\n \tSystem.out.println(t?\"Yes\":\"No\");\n \tbreak;\n }\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n boolean t=false;\n while ((line = br.readLine()) != null) {\n \tString line2=br.readLine();\n \tline=line+line;\n \tfor(int i=0;i<line.length()-line2.length();i++){\n \t\tif(line.substring(i, i+line2.length()).equals(line2)){\n \t\t\tt=true;\n \t\t\tbreak;\n \t\t}\n \t}\n \t\n \tSystem.out.println(t?\"Yes\":\"No\");\n \tbreak;\n }\n }\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n boolean t=false;\n while ((line = br.readLine()) != null) {\n \tString line2=br.readLine();\n \tline=line+line;\n \tfor(int i=0;i<line.length()-line2.length();i++){\n \t\tif(line.substring(i, i+line2.length()).equals(line2)){\n \t\t\tt=true;\n \t\t\tbreak;\n \t\t}\n \t}\n \t\n \tSystem.out.println(t?\"Yes\":\"No\");\n \tbreak;\n }\n }\n }", "main", "{\n // TODO ?????????????????????????????????????????????\n \n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n boolean t=false;\n while ((line = br.readLine()) != null) {\n \tString line2=br.readLine();\n \tline=line+line;\n \tfor(int i=0;i<line.length()-line2.length();i++){\n \t\tif(line.substring(i, i+line2.length()).equals(line2)){\n \t\t\tt=true;\n \t\t\tbreak;\n \t\t}\n \t}\n \t\n \tSystem.out.println(t?\"Yes\":\"No\");\n \tbreak;\n }\n }\n }", "try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n boolean t=false;\n while ((line = br.readLine()) != null) {\n \tString line2=br.readLine();\n \tline=line+line;\n \tfor(int i=0;i<line.length()-line2.length();i++){\n \t\tif(line.substring(i, i+line2.length()).equals(line2)){\n \t\t\tt=true;\n \t\t\tbreak;\n \t\t}\n \t}\n \t\n \tSystem.out.println(t?\"Yes\":\"No\");\n \tbreak;\n }\n }", "{\n String line;\n boolean t=false;\n while ((line = br.readLine()) != null) {\n \tString line2=br.readLine();\n \tline=line+line;\n \tfor(int i=0;i<line.length()-line2.length();i++){\n \t\tif(line.substring(i, i+line2.length()).equals(line2)){\n \t\t\tt=true;\n \t\t\tbreak;\n \t\t}\n \t}\n \t\n \tSystem.out.println(t?\"Yes\":\"No\");\n \tbreak;\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in))", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in))", "new BufferedReader(new InputStreamReader(System.in))", "String line;", "line", "boolean t=false;", "t", "false", "while ((line = br.readLine()) != null) {\n \tString line2=br.readLine();\n \tline=line+line;\n \tfor(int i=0;i<line.length()-line2.length();i++){\n \t\tif(line.substring(i, i+line2.length()).equals(line2)){\n \t\t\tt=true;\n \t\t\tbreak;\n \t\t}\n \t}\n \t\n \tSystem.out.println(t?\"Yes\":\"No\");\n \tbreak;\n }", "(line = br.readLine()) != null", "(line = br.readLine())", "line", "br.readLine()", "br.readLine", "br", "null", "{\n \tString line2=br.readLine();\n \tline=line+line;\n \tfor(int i=0;i<line.length()-line2.length();i++){\n \t\tif(line.substring(i, i+line2.length()).equals(line2)){\n \t\t\tt=true;\n \t\t\tbreak;\n \t\t}\n \t}\n \t\n \tSystem.out.println(t?\"Yes\":\"No\");\n \tbreak;\n }", "String line2=br.readLine();", "line2", "br.readLine()", "br.readLine", "br", "line=line+line", "line", "line+line", "line", "line", "for(int i=0;i<line.length()-line2.length();i++){\n \t\tif(line.substring(i, i+line2.length()).equals(line2)){\n \t\t\tt=true;\n \t\t\tbreak;\n \t\t}\n \t}", "int i=0;", "int i=0;", "i", "0", "i<line.length()-line2.length()", "i", "line.length()-line2.length()", "line.length()", "line.length", "line", "line2.length()", "line2.length", "line2", "i++", "i++", "i", "{\n \t\tif(line.substring(i, i+line2.length()).equals(line2)){\n \t\t\tt=true;\n \t\t\tbreak;\n \t\t}\n \t}", "{\n \t\tif(line.substring(i, i+line2.length()).equals(line2)){\n \t\t\tt=true;\n \t\t\tbreak;\n \t\t}\n \t}", "if(line.substring(i, i+line2.length()).equals(line2)){\n \t\t\tt=true;\n \t\t\tbreak;\n \t\t}", "line.substring(i, i+line2.length()).equals(line2)", "line.substring(i, i+line2.length()).equals", "line.substring(i, i+line2.length())", "line.substring", "line", "i", "i+line2.length()", "i", "line2.length()", "line2.length", "line2", "line2", "{\n \t\t\tt=true;\n \t\t\tbreak;\n \t\t}", "t=true", "t", "true", "break;", "System.out.println(t?\"Yes\":\"No\")", "System.out.println", "System.out", "System", "System.out", "t?\"Yes\":\"No\"", "t", "\"Yes\"", "\"No\"", "break;", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n boolean t=false;\n while ((line = br.readLine()) != null) {\n \tString line2=br.readLine();\n \tline=line+line;\n \tfor(int i=0;i<line.length()-line2.length();i++){\n \t\tif(line.substring(i, i+line2.length()).equals(line2)){\n \t\t\tt=true;\n \t\t\tbreak;\n \t\t}\n \t}\n \t\n \tSystem.out.println(t?\"Yes\":\"No\");\n \tbreak;\n }\n }\n }\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n boolean t=false;\n while ((line = br.readLine()) != null) {\n \tString line2=br.readLine();\n \tline=line+line;\n \tfor(int i=0;i<line.length()-line2.length();i++){\n \t\tif(line.substring(i, i+line2.length()).equals(line2)){\n \t\t\tt=true;\n \t\t\tbreak;\n \t\t}\n \t}\n \t\n \tSystem.out.println(t?\"Yes\":\"No\");\n \tbreak;\n }\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { // TODO ????????????????????????????????????????????? try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) { String line; boolean t=false; while ((line = br.readLine()) != null) { String line2=br.readLine(); line=line+line; for(int i=0;i<line.length()-line2.length();i++){ if(line.substring(i, i+line2.length()).equals(line2)){ t=true; break; } } System.out.println(t?"Yes":"No"); break; } } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 0, 13, 13, 4, 18, 18, 13, 13, 8, 2, 4, 18, 13, 4, 18, 13, 17, 17, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 39, 5 ], [ 39, 6 ], [ 6, 7 ], [ 6, 8 ], [ 39, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 17, 19 ], [ 11, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 30, 31 ], [ 31, 32 ], [ 26, 33 ], [ 25, 34 ], [ 25, 35 ], [ 9, 36 ], [ 36, 37 ], [ 0, 38 ], [ 38, 39 ], [ 38, 40 ] ]
[ "import java.util.*;\n\npublic class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n String str = scn.next();\n str += str;\n System.out.println(str.indexOf(scn.next()) < 0 ? \"No\" : \"Yes\");\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n String str = scn.next();\n str += str;\n System.out.println(str.indexOf(scn.next()) < 0 ? \"No\" : \"Yes\");\n }\n}", "Main", "private static final Scanner scn = new Scanner(System.in);", "scn", "new Scanner(System.in)", "public static void main(String[] args) {\n String str = scn.next();\n str += str;\n System.out.println(str.indexOf(scn.next()) < 0 ? \"No\" : \"Yes\");\n }", "main", "{\n String str = scn.next();\n str += str;\n System.out.println(str.indexOf(scn.next()) < 0 ? \"No\" : \"Yes\");\n }", "String str = scn.next();", "str", "scn.next()", "scn.next", "scn", "str += str", "str", "str", "System.out.println(str.indexOf(scn.next()) < 0 ? \"No\" : \"Yes\")", "System.out.println", "System.out", "System", "System.out", "str.indexOf(scn.next()) < 0 ? \"No\" : \"Yes\"", "str.indexOf(scn.next()) < 0", "str.indexOf(scn.next())", "str.indexOf", "str", "scn.next()", "scn.next", "scn", "0", "\"No\"", "\"Yes\"", "String[] args", "args", "public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n String str = scn.next();\n str += str;\n System.out.println(str.indexOf(scn.next()) < 0 ? \"No\" : \"Yes\");\n }\n}", "public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n String str = scn.next();\n str += str;\n System.out.println(str.indexOf(scn.next()) < 0 ? \"No\" : \"Yes\");\n }\n}", "Main" ]
import java.util.*; public class Main { private static final Scanner scn = new Scanner(System.in); public static void main(String[] args) { String str = scn.next(); str += str; System.out.println(str.indexOf(scn.next()) < 0 ? "No" : "Yes"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 4, 18, 13, 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 ], [ 55, 5 ], [ 55, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 16, 17 ], [ 15, 18 ], [ 18, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 38, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 32, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 6, 52 ], [ 52, 53 ], [ 0, 54 ], [ 54, 55 ], [ 54, 56 ] ]
[ "import java.io.*;\n\npublic class Main\n{\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(br.readLine());\n\t\tsb.append(sb.toString());\n\t\tString p = br.readLine();\n\t\tif(sb.indexOf(p)==-1)\tSystem.out.println(\"No\");\n\t\telse\t\tSystem.out.println(\"Yes\");\n\t}\n}", "import java.io.*;", "io.*", "java", "public class Main\n{\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(br.readLine());\n\t\tsb.append(sb.toString());\n\t\tString p = br.readLine();\n\t\tif(sb.indexOf(p)==-1)\tSystem.out.println(\"No\");\n\t\telse\t\tSystem.out.println(\"Yes\");\n\t}\n}", "Main", "public static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(br.readLine());\n\t\tsb.append(sb.toString());\n\t\tString p = br.readLine();\n\t\tif(sb.indexOf(p)==-1)\tSystem.out.println(\"No\");\n\t\telse\t\tSystem.out.println(\"Yes\");\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(br.readLine());\n\t\tsb.append(sb.toString());\n\t\tString p = br.readLine();\n\t\tif(sb.indexOf(p)==-1)\tSystem.out.println(\"No\");\n\t\telse\t\tSystem.out.println(\"Yes\");\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "sb.append(br.readLine())", "sb.append", "sb", "br.readLine()", "br.readLine", "br", "sb.append(sb.toString())", "sb.append", "sb", "sb.toString()", "sb.toString", "sb", "String p = br.readLine();", "p", "br.readLine()", "br.readLine", "br", "if(sb.indexOf(p)==-1)\tSystem.out.println(\"No\");\n\t\telse\t\tSystem.out.println(\"Yes\");", "sb.indexOf(p)==-1", "sb.indexOf(p)", "sb.indexOf", "sb", "p", "-1", "1", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "String[] args", "args", "public class Main\n{\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(br.readLine());\n\t\tsb.append(sb.toString());\n\t\tString p = br.readLine();\n\t\tif(sb.indexOf(p)==-1)\tSystem.out.println(\"No\");\n\t\telse\t\tSystem.out.println(\"Yes\");\n\t}\n}", "public class Main\n{\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(br.readLine());\n\t\tsb.append(sb.toString());\n\t\tString p = br.readLine();\n\t\tif(sb.indexOf(p)==-1)\tSystem.out.println(\"No\");\n\t\telse\t\tSystem.out.println(\"Yes\");\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)); StringBuilder sb = new StringBuilder(); sb.append(br.readLine()); sb.append(sb.toString()); String p = br.readLine(); if(sb.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, 4, 18, 13, 41, 13, 2, 13, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 2, 4, 18, 13, 13, 30, 0, 13, 4, 18, 13, 13, 2, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 0, 13, 17, 3, 14, 40, 13, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 102, 5 ], [ 102, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 27, 29 ], [ 8, 30 ], [ 30, 31 ], [ 30, 32 ], [ 8, 33 ], [ 33, 34 ], [ 33, 35 ], [ 8, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 36, 46 ], [ 46, 47 ], [ 47, 48 ], [ 36, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 56, 60 ], [ 51, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 64, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 50, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 73, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 78, 85 ], [ 85, 86 ], [ 85, 87 ], [ 78, 88 ], [ 8, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 6, 99 ], [ 99, 100 ], [ 0, 101 ], [ 101, 102 ], [ 101, 103 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args){\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\t\tscan.close();\n\t\t\n\t\tString ss = s + s;\n\t\t\n\t\tString strJudge = null;\n\t\tboolean isYes = false;\n\t\tfor(int i = 0; i < ss.length(); i++){\n\t\t\t\n\t\t\tif(p.length() < ss.length() - i){\n\t\t\t\tstrJudge = ss.substring(i, i + p.length());\n\t\t\t\t//System.out.println(i + \":strJudge:\" + strJudge);\n\t\t\t}\n\t\t\t\n\t\t\tif(p.equals(strJudge)){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tisYes = true;\n\t\t\t\tbreak;\n\t\t\t}\t\t\t\n\t\t}\n\t\tif(!isYes){\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\t\n\tpublic static void main(String[] args){\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\t\tscan.close();\n\t\t\n\t\tString ss = s + s;\n\t\t\n\t\tString strJudge = null;\n\t\tboolean isYes = false;\n\t\tfor(int i = 0; i < ss.length(); i++){\n\t\t\t\n\t\t\tif(p.length() < ss.length() - i){\n\t\t\t\tstrJudge = ss.substring(i, i + p.length());\n\t\t\t\t//System.out.println(i + \":strJudge:\" + strJudge);\n\t\t\t}\n\t\t\t\n\t\t\tif(p.equals(strJudge)){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tisYes = true;\n\t\t\t\tbreak;\n\t\t\t}\t\t\t\n\t\t}\n\t\tif(!isYes){\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args){\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\t\tscan.close();\n\t\t\n\t\tString ss = s + s;\n\t\t\n\t\tString strJudge = null;\n\t\tboolean isYes = false;\n\t\tfor(int i = 0; i < ss.length(); i++){\n\t\t\t\n\t\t\tif(p.length() < ss.length() - i){\n\t\t\t\tstrJudge = ss.substring(i, i + p.length());\n\t\t\t\t//System.out.println(i + \":strJudge:\" + strJudge);\n\t\t\t}\n\t\t\t\n\t\t\tif(p.equals(strJudge)){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tisYes = true;\n\t\t\t\tbreak;\n\t\t\t}\t\t\t\n\t\t}\n\t\tif(!isYes){\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "main", "{\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\t\tscan.close();\n\t\t\n\t\tString ss = s + s;\n\t\t\n\t\tString strJudge = null;\n\t\tboolean isYes = false;\n\t\tfor(int i = 0; i < ss.length(); i++){\n\t\t\t\n\t\t\tif(p.length() < ss.length() - i){\n\t\t\t\tstrJudge = ss.substring(i, i + p.length());\n\t\t\t\t//System.out.println(i + \":strJudge:\" + strJudge);\n\t\t\t}\n\t\t\t\n\t\t\tif(p.equals(strJudge)){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tisYes = true;\n\t\t\t\tbreak;\n\t\t\t}\t\t\t\n\t\t}\n\t\tif(!isYes){\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", "scan.close()", "scan.close", "scan", "String ss = s + s;", "ss", "s + s", "s", "s", "String strJudge = null;", "strJudge", "null", "boolean isYes = false;", "isYes", "false", "for(int i = 0; i < ss.length(); i++){\n\t\t\t\n\t\t\tif(p.length() < ss.length() - i){\n\t\t\t\tstrJudge = ss.substring(i, i + p.length());\n\t\t\t\t//System.out.println(i + \":strJudge:\" + strJudge);\n\t\t\t}\n\t\t\t\n\t\t\tif(p.equals(strJudge)){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tisYes = true;\n\t\t\t\tbreak;\n\t\t\t}\t\t\t\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < ss.length()", "i", "ss.length()", "ss.length", "ss", "i++", "i++", "i", "{\n\t\t\t\n\t\t\tif(p.length() < ss.length() - i){\n\t\t\t\tstrJudge = ss.substring(i, i + p.length());\n\t\t\t\t//System.out.println(i + \":strJudge:\" + strJudge);\n\t\t\t}\n\t\t\t\n\t\t\tif(p.equals(strJudge)){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tisYes = true;\n\t\t\t\tbreak;\n\t\t\t}\t\t\t\n\t\t}", "{\n\t\t\t\n\t\t\tif(p.length() < ss.length() - i){\n\t\t\t\tstrJudge = ss.substring(i, i + p.length());\n\t\t\t\t//System.out.println(i + \":strJudge:\" + strJudge);\n\t\t\t}\n\t\t\t\n\t\t\tif(p.equals(strJudge)){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tisYes = true;\n\t\t\t\tbreak;\n\t\t\t}\t\t\t\n\t\t}", "if(p.length() < ss.length() - i){\n\t\t\t\tstrJudge = ss.substring(i, i + p.length());\n\t\t\t\t//System.out.println(i + \":strJudge:\" + strJudge);\n\t\t\t}", "p.length() < ss.length() - i", "p.length()", "p.length", "p", "ss.length() - i", "ss.length()", "ss.length", "ss", "i", "{\n\t\t\t\tstrJudge = ss.substring(i, i + p.length());\n\t\t\t\t//System.out.println(i + \":strJudge:\" + strJudge);\n\t\t\t}", "strJudge = ss.substring(i, i + p.length())", "strJudge", "ss.substring(i, i + p.length())", "ss.substring", "ss", "i", "i + p.length()", "i", "p.length()", "p.length", "p", "if(p.equals(strJudge)){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tisYes = true;\n\t\t\t\tbreak;\n\t\t\t}", "p.equals(strJudge)", "p.equals", "p", "strJudge", "{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tisYes = true;\n\t\t\t\tbreak;\n\t\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "isYes = true", "isYes", "true", "break;", "if(!isYes){\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "!isYes", "isYes", "{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n\t\n\tpublic static void main(String[] args){\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\t\tscan.close();\n\t\t\n\t\tString ss = s + s;\n\t\t\n\t\tString strJudge = null;\n\t\tboolean isYes = false;\n\t\tfor(int i = 0; i < ss.length(); i++){\n\t\t\t\n\t\t\tif(p.length() < ss.length() - i){\n\t\t\t\tstrJudge = ss.substring(i, i + p.length());\n\t\t\t\t//System.out.println(i + \":strJudge:\" + strJudge);\n\t\t\t}\n\t\t\t\n\t\t\tif(p.equals(strJudge)){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tisYes = true;\n\t\t\t\tbreak;\n\t\t\t}\t\t\t\n\t\t}\n\t\tif(!isYes){\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n\n}", "public class Main {\n\t\n\tpublic static void main(String[] args){\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\t\tscan.close();\n\t\t\n\t\tString ss = s + s;\n\t\t\n\t\tString strJudge = null;\n\t\tboolean isYes = false;\n\t\tfor(int i = 0; i < ss.length(); i++){\n\t\t\t\n\t\t\tif(p.length() < ss.length() - i){\n\t\t\t\tstrJudge = ss.substring(i, i + p.length());\n\t\t\t\t//System.out.println(i + \":strJudge:\" + strJudge);\n\t\t\t}\n\t\t\t\n\t\t\tif(p.equals(strJudge)){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tisYes = true;\n\t\t\t\tbreak;\n\t\t\t}\t\t\t\n\t\t}\n\t\tif(!isYes){\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); String s = scan.nextLine(); String p = scan.nextLine(); scan.close(); String ss = s + s; String strJudge = null; boolean isYes = false; for(int i = 0; i < ss.length(); i++){ if(p.length() < ss.length() - i){ strJudge = ss.substring(i, i + p.length()); //System.out.println(i + ":strJudge:" + strJudge); } if(p.equals(strJudge)){ System.out.println("Yes"); isYes = true; break; } } if(!isYes){ System.out.println("No"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 4, 18, 13, 17, 30, 14, 2, 4, 18, 13, 17, 30, 41, 13, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 13, 4, 18, 13, 0, 13, 17, 14, 2, 4, 18, 13, 13, 4, 18, 13, 13, 30, 0, 13, 17, 40, 13, 30, 0, 13, 17, 3, 30, 0, 13, 17, 14, 13, 3, 14, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 25, 35 ], [ 35, 36 ], [ 36, 37 ], [ 25, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 41, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 40, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 52, 56 ], [ 51, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 57, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 63, 73 ], [ 73, 74 ], [ 74, 75 ], [ 63, 76 ], [ 77, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 78, 84 ], [ 84, 85 ], [ 84, 86 ], [ 77, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 88, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 87, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 101, 102 ], [ 87, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 51, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 50, 112 ], [ 112, 113 ], [ 112, 114 ], [ 8, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 115, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 125, 130 ], [ 6, 131 ], [ 131, 132 ] ]
[ "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 \tboolean m=false;\n \tfor(int i=0;i<s.length();i++){\n \tif(s.charAt(i)==p.charAt(0)){\n \t\tif(p.length()>1){\n \t\tint k=i+1;\n \t\tfor(int j=1;j<p.length();j++){\n \t\t\t\tif(k>=s.length()) k=0;\n \t\t\tif(s.charAt(k)==p.charAt(j)){\n \t\t\t\tm=true;\n \t\t\t\tk++;\n \t\t\t}else{\n \t\t\t\tm=false;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t\t}else{\n \t\t\tm=true;\n \t\t}\n \t\tif(m) break;\n \t}\n \t}\n \tif(m){\n \t\tSystem.out.println(\"Yes\");\n \t}else{\n \tSystem.out.println(\"No\");\n \t} \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 \tboolean m=false;\n \tfor(int i=0;i<s.length();i++){\n \tif(s.charAt(i)==p.charAt(0)){\n \t\tif(p.length()>1){\n \t\tint k=i+1;\n \t\tfor(int j=1;j<p.length();j++){\n \t\t\t\tif(k>=s.length()) k=0;\n \t\t\tif(s.charAt(k)==p.charAt(j)){\n \t\t\t\tm=true;\n \t\t\t\tk++;\n \t\t\t}else{\n \t\t\t\tm=false;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t\t}else{\n \t\t\tm=true;\n \t\t}\n \t\tif(m) break;\n \t}\n \t}\n \tif(m){\n \t\tSystem.out.println(\"Yes\");\n \t}else{\n \tSystem.out.println(\"No\");\n \t} \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 \tboolean m=false;\n \tfor(int i=0;i<s.length();i++){\n \tif(s.charAt(i)==p.charAt(0)){\n \t\tif(p.length()>1){\n \t\tint k=i+1;\n \t\tfor(int j=1;j<p.length();j++){\n \t\t\t\tif(k>=s.length()) k=0;\n \t\t\tif(s.charAt(k)==p.charAt(j)){\n \t\t\t\tm=true;\n \t\t\t\tk++;\n \t\t\t}else{\n \t\t\t\tm=false;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t\t}else{\n \t\t\tm=true;\n \t\t}\n \t\tif(m) break;\n \t}\n \t}\n \tif(m){\n \t\tSystem.out.println(\"Yes\");\n \t}else{\n \tSystem.out.println(\"No\");\n \t} \n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s=br.readLine();\n String p=br.readLine();\n \tboolean m=false;\n \tfor(int i=0;i<s.length();i++){\n \tif(s.charAt(i)==p.charAt(0)){\n \t\tif(p.length()>1){\n \t\tint k=i+1;\n \t\tfor(int j=1;j<p.length();j++){\n \t\t\t\tif(k>=s.length()) k=0;\n \t\t\tif(s.charAt(k)==p.charAt(j)){\n \t\t\t\tm=true;\n \t\t\t\tk++;\n \t\t\t}else{\n \t\t\t\tm=false;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t\t}else{\n \t\t\tm=true;\n \t\t}\n \t\tif(m) break;\n \t}\n \t}\n \tif(m){\n \t\tSystem.out.println(\"Yes\");\n \t}else{\n \tSystem.out.println(\"No\");\n \t} \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", "boolean m=false;", "m", "false", "for(int i=0;i<s.length();i++){\n \tif(s.charAt(i)==p.charAt(0)){\n \t\tif(p.length()>1){\n \t\tint k=i+1;\n \t\tfor(int j=1;j<p.length();j++){\n \t\t\t\tif(k>=s.length()) k=0;\n \t\t\tif(s.charAt(k)==p.charAt(j)){\n \t\t\t\tm=true;\n \t\t\t\tk++;\n \t\t\t}else{\n \t\t\t\tm=false;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t\t}else{\n \t\t\tm=true;\n \t\t}\n \t\tif(m) break;\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 \tif(s.charAt(i)==p.charAt(0)){\n \t\tif(p.length()>1){\n \t\tint k=i+1;\n \t\tfor(int j=1;j<p.length();j++){\n \t\t\t\tif(k>=s.length()) k=0;\n \t\t\tif(s.charAt(k)==p.charAt(j)){\n \t\t\t\tm=true;\n \t\t\t\tk++;\n \t\t\t}else{\n \t\t\t\tm=false;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t\t}else{\n \t\t\tm=true;\n \t\t}\n \t\tif(m) break;\n \t}\n \t}", "{\n \tif(s.charAt(i)==p.charAt(0)){\n \t\tif(p.length()>1){\n \t\tint k=i+1;\n \t\tfor(int j=1;j<p.length();j++){\n \t\t\t\tif(k>=s.length()) k=0;\n \t\t\tif(s.charAt(k)==p.charAt(j)){\n \t\t\t\tm=true;\n \t\t\t\tk++;\n \t\t\t}else{\n \t\t\t\tm=false;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t\t}else{\n \t\t\tm=true;\n \t\t}\n \t\tif(m) break;\n \t}\n \t}", "if(s.charAt(i)==p.charAt(0)){\n \t\tif(p.length()>1){\n \t\tint k=i+1;\n \t\tfor(int j=1;j<p.length();j++){\n \t\t\t\tif(k>=s.length()) k=0;\n \t\t\tif(s.charAt(k)==p.charAt(j)){\n \t\t\t\tm=true;\n \t\t\t\tk++;\n \t\t\t}else{\n \t\t\t\tm=false;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t\t}else{\n \t\t\tm=true;\n \t\t}\n \t\tif(m) break;\n \t}", "s.charAt(i)==p.charAt(0)", "s.charAt(i)", "s.charAt", "s", "i", "p.charAt(0)", "p.charAt", "p", "0", "{\n \t\tif(p.length()>1){\n \t\tint k=i+1;\n \t\tfor(int j=1;j<p.length();j++){\n \t\t\t\tif(k>=s.length()) k=0;\n \t\t\tif(s.charAt(k)==p.charAt(j)){\n \t\t\t\tm=true;\n \t\t\t\tk++;\n \t\t\t}else{\n \t\t\t\tm=false;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t\t}else{\n \t\t\tm=true;\n \t\t}\n \t\tif(m) break;\n \t}", "if(p.length()>1){\n \t\tint k=i+1;\n \t\tfor(int j=1;j<p.length();j++){\n \t\t\t\tif(k>=s.length()) k=0;\n \t\t\tif(s.charAt(k)==p.charAt(j)){\n \t\t\t\tm=true;\n \t\t\t\tk++;\n \t\t\t}else{\n \t\t\t\tm=false;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t\t}else{\n \t\t\tm=true;\n \t\t}", "p.length()>1", "p.length()", "p.length", "p", "1", "{\n \t\tint k=i+1;\n \t\tfor(int j=1;j<p.length();j++){\n \t\t\t\tif(k>=s.length()) k=0;\n \t\t\tif(s.charAt(k)==p.charAt(j)){\n \t\t\t\tm=true;\n \t\t\t\tk++;\n \t\t\t}else{\n \t\t\t\tm=false;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t\t}", "int k=i+1;", "k", "i+1", "i", "1", "for(int j=1;j<p.length();j++){\n \t\t\t\tif(k>=s.length()) k=0;\n \t\t\tif(s.charAt(k)==p.charAt(j)){\n \t\t\t\tm=true;\n \t\t\t\tk++;\n \t\t\t}else{\n \t\t\t\tm=false;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}", "int j=1;", "int j=1;", "j", "1", "j<p.length()", "j", "p.length()", "p.length", "p", "j++", "j++", "j", "{\n \t\t\t\tif(k>=s.length()) k=0;\n \t\t\tif(s.charAt(k)==p.charAt(j)){\n \t\t\t\tm=true;\n \t\t\t\tk++;\n \t\t\t}else{\n \t\t\t\tm=false;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}", "{\n \t\t\t\tif(k>=s.length()) k=0;\n \t\t\tif(s.charAt(k)==p.charAt(j)){\n \t\t\t\tm=true;\n \t\t\t\tk++;\n \t\t\t}else{\n \t\t\t\tm=false;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}", "if(k>=s.length()) k=0;", "k>=s.length()", "k", "s.length()", "s.length", "s", "k=0", "k", "0", "if(s.charAt(k)==p.charAt(j)){\n \t\t\t\tm=true;\n \t\t\t\tk++;\n \t\t\t}else{\n \t\t\t\tm=false;\n \t\t\t\tbreak;\n \t\t\t}", "s.charAt(k)==p.charAt(j)", "s.charAt(k)", "s.charAt", "s", "k", "p.charAt(j)", "p.charAt", "p", "j", "{\n \t\t\t\tm=true;\n \t\t\t\tk++;\n \t\t\t}", "m=true", "m", "true", "k++", "k", "{\n \t\t\t\tm=false;\n \t\t\t\tbreak;\n \t\t\t}", "m=false", "m", "false", "break;", "{\n \t\t\tm=true;\n \t\t}", "m=true", "m", "true", "if(m) break;", "m", "break;", "if(m){\n \t\tSystem.out.println(\"Yes\");\n \t}else{\n \tSystem.out.println(\"No\");\n \t}", "m", "{\n \t\tSystem.out.println(\"Yes\");\n \t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n \tSystem.out.println(\"No\");\n \t}", "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(); boolean m=false; for(int i=0;i<s.length();i++){ if(s.charAt(i)==p.charAt(0)){ if(p.length()>1){ int k=i+1; for(int j=1;j<p.length();j++){ if(k>=s.length()) k=0; if(s.charAt(k)==p.charAt(j)){ m=true; k++; }else{ m=false; break; } } }else{ m=true; } if(m) break; } } if(m){ System.out.println("Yes"); }else{ System.out.println("No"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 14, 2, 13, 2, 13, 13, 30, 0, 13, 2, 2, 13, 2, 13, 13, 40, 17, 30, 0, 13, 2, 13, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 13, 14, 2, 13, 13, 30, 0, 13, 17, 3, 14, 13, 30, 4, 18, 18, 13, 13, 17, 3, 14, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 3, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 140, 5 ], [ 140, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 48, 56 ], [ 56, 57 ], [ 57, 58 ], [ 48, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 63, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 72, 78 ], [ 78, 79 ], [ 63, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 60, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 60, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 60, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 44, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 109, 116 ], [ 107, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 120, 122 ], [ 117, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 123, 130 ], [ 140, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 131, 137 ], [ 137, 138 ], [ 0, 139 ], [ 139, 140 ], [ 139, 141 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\tvoid run(){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.next();\n\t\tString p = scan.next();\n\t\tint sLen = s.length();\n\t\tint pLen = p.length();\n\t\tfor(int i = 0;i < sLen;i++){\n\t\t\tboolean check = true;\n\t\t\tfor(int j = 0;j < pLen;j++){\n\t\t\t\tint index;\n\t\t\t\tif(sLen <= i + j){\n\t\t\t\t\tindex = (sLen - (i + j)) * -1; \n\t\t\t\t}else{\n\t\t\t\t\tindex = i + j;\n\t\t\t\t}\n\t\t\t\tchar sC = s.charAt(index);\n\t\t\t\tchar pC = p.charAt(j);\n\t\t\t\tif(sC != pC){\n\t\t\t\t\tcheck = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(check){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}else if(i == sLen - 1){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tpublic static void main(String args[]){\n\t\tnew Main().run();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tvoid run(){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.next();\n\t\tString p = scan.next();\n\t\tint sLen = s.length();\n\t\tint pLen = p.length();\n\t\tfor(int i = 0;i < sLen;i++){\n\t\t\tboolean check = true;\n\t\t\tfor(int j = 0;j < pLen;j++){\n\t\t\t\tint index;\n\t\t\t\tif(sLen <= i + j){\n\t\t\t\t\tindex = (sLen - (i + j)) * -1; \n\t\t\t\t}else{\n\t\t\t\t\tindex = i + j;\n\t\t\t\t}\n\t\t\t\tchar sC = s.charAt(index);\n\t\t\t\tchar pC = p.charAt(j);\n\t\t\t\tif(sC != pC){\n\t\t\t\t\tcheck = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(check){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}else if(i == sLen - 1){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tpublic static void main(String args[]){\n\t\tnew Main().run();\n\t}\n}", "Main", "void run(){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.next();\n\t\tString p = scan.next();\n\t\tint sLen = s.length();\n\t\tint pLen = p.length();\n\t\tfor(int i = 0;i < sLen;i++){\n\t\t\tboolean check = true;\n\t\t\tfor(int j = 0;j < pLen;j++){\n\t\t\t\tint index;\n\t\t\t\tif(sLen <= i + j){\n\t\t\t\t\tindex = (sLen - (i + j)) * -1; \n\t\t\t\t}else{\n\t\t\t\t\tindex = i + j;\n\t\t\t\t}\n\t\t\t\tchar sC = s.charAt(index);\n\t\t\t\tchar pC = p.charAt(j);\n\t\t\t\tif(sC != pC){\n\t\t\t\t\tcheck = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(check){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}else if(i == sLen - 1){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "run", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.next();\n\t\tString p = scan.next();\n\t\tint sLen = s.length();\n\t\tint pLen = p.length();\n\t\tfor(int i = 0;i < sLen;i++){\n\t\t\tboolean check = true;\n\t\t\tfor(int j = 0;j < pLen;j++){\n\t\t\t\tint index;\n\t\t\t\tif(sLen <= i + j){\n\t\t\t\t\tindex = (sLen - (i + j)) * -1; \n\t\t\t\t}else{\n\t\t\t\t\tindex = i + j;\n\t\t\t\t}\n\t\t\t\tchar sC = s.charAt(index);\n\t\t\t\tchar pC = p.charAt(j);\n\t\t\t\tif(sC != pC){\n\t\t\t\t\tcheck = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(check){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}else if(i == sLen - 1){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\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", "int sLen = s.length();", "sLen", "s.length()", "s.length", "s", "int pLen = p.length();", "pLen", "p.length()", "p.length", "p", "for(int i = 0;i < sLen;i++){\n\t\t\tboolean check = true;\n\t\t\tfor(int j = 0;j < pLen;j++){\n\t\t\t\tint index;\n\t\t\t\tif(sLen <= i + j){\n\t\t\t\t\tindex = (sLen - (i + j)) * -1; \n\t\t\t\t}else{\n\t\t\t\t\tindex = i + j;\n\t\t\t\t}\n\t\t\t\tchar sC = s.charAt(index);\n\t\t\t\tchar pC = p.charAt(j);\n\t\t\t\tif(sC != pC){\n\t\t\t\t\tcheck = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(check){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}else if(i == sLen - 1){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < sLen", "i", "sLen", "i++", "i++", "i", "{\n\t\t\tboolean check = true;\n\t\t\tfor(int j = 0;j < pLen;j++){\n\t\t\t\tint index;\n\t\t\t\tif(sLen <= i + j){\n\t\t\t\t\tindex = (sLen - (i + j)) * -1; \n\t\t\t\t}else{\n\t\t\t\t\tindex = i + j;\n\t\t\t\t}\n\t\t\t\tchar sC = s.charAt(index);\n\t\t\t\tchar pC = p.charAt(j);\n\t\t\t\tif(sC != pC){\n\t\t\t\t\tcheck = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(check){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}else if(i == sLen - 1){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "{\n\t\t\tboolean check = true;\n\t\t\tfor(int j = 0;j < pLen;j++){\n\t\t\t\tint index;\n\t\t\t\tif(sLen <= i + j){\n\t\t\t\t\tindex = (sLen - (i + j)) * -1; \n\t\t\t\t}else{\n\t\t\t\t\tindex = i + j;\n\t\t\t\t}\n\t\t\t\tchar sC = s.charAt(index);\n\t\t\t\tchar pC = p.charAt(j);\n\t\t\t\tif(sC != pC){\n\t\t\t\t\tcheck = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(check){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}else if(i == sLen - 1){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "boolean check = true;", "check", "true", "for(int j = 0;j < pLen;j++){\n\t\t\t\tint index;\n\t\t\t\tif(sLen <= i + j){\n\t\t\t\t\tindex = (sLen - (i + j)) * -1; \n\t\t\t\t}else{\n\t\t\t\t\tindex = i + j;\n\t\t\t\t}\n\t\t\t\tchar sC = s.charAt(index);\n\t\t\t\tchar pC = p.charAt(j);\n\t\t\t\tif(sC != pC){\n\t\t\t\t\tcheck = 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 < pLen", "j", "pLen", "j++", "j++", "j", "{\n\t\t\t\tint index;\n\t\t\t\tif(sLen <= i + j){\n\t\t\t\t\tindex = (sLen - (i + j)) * -1; \n\t\t\t\t}else{\n\t\t\t\t\tindex = i + j;\n\t\t\t\t}\n\t\t\t\tchar sC = s.charAt(index);\n\t\t\t\tchar pC = p.charAt(j);\n\t\t\t\tif(sC != pC){\n\t\t\t\t\tcheck = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tint index;\n\t\t\t\tif(sLen <= i + j){\n\t\t\t\t\tindex = (sLen - (i + j)) * -1; \n\t\t\t\t}else{\n\t\t\t\t\tindex = i + j;\n\t\t\t\t}\n\t\t\t\tchar sC = s.charAt(index);\n\t\t\t\tchar pC = p.charAt(j);\n\t\t\t\tif(sC != pC){\n\t\t\t\t\tcheck = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "int index;", "index", "if(sLen <= i + j){\n\t\t\t\t\tindex = (sLen - (i + j)) * -1; \n\t\t\t\t}else{\n\t\t\t\t\tindex = i + j;\n\t\t\t\t}", "sLen <= i + j", "sLen", "i + j", "i", "j", "{\n\t\t\t\t\tindex = (sLen - (i + j)) * -1; \n\t\t\t\t}", "index = (sLen - (i + j)) * -1", "index", "(sLen - (i + j)) * -1", "(sLen - (i + j))", "sLen", "(i + j)", "i", "j", "-1", "1", "{\n\t\t\t\t\tindex = i + j;\n\t\t\t\t}", "index = i + j", "index", "i + j", "i", "j", "char sC = s.charAt(index);", "sC", "s.charAt(index)", "s.charAt", "s", "index", "char pC = p.charAt(j);", "pC", "p.charAt(j)", "p.charAt", "p", "j", "if(sC != pC){\n\t\t\t\t\tcheck = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "sC != pC", "sC", "pC", "{\n\t\t\t\t\tcheck = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "check = false", "check", "false", "break;", "if(check){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}else if(i == sLen - 1){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t}", "check", "{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "break;", "if(i == sLen - 1){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t}", "i == sLen - 1", "i", "sLen - 1", "sLen", "1", "{\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "break;", "public static void main(String args[]){\n\t\tnew Main().run();\n\t}", "main", "{\n\t\tnew Main().run();\n\t}", "new Main().run()", "new Main().run", "new Main()", "String args[]", "args", "public class Main {\n\tvoid run(){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.next();\n\t\tString p = scan.next();\n\t\tint sLen = s.length();\n\t\tint pLen = p.length();\n\t\tfor(int i = 0;i < sLen;i++){\n\t\t\tboolean check = true;\n\t\t\tfor(int j = 0;j < pLen;j++){\n\t\t\t\tint index;\n\t\t\t\tif(sLen <= i + j){\n\t\t\t\t\tindex = (sLen - (i + j)) * -1; \n\t\t\t\t}else{\n\t\t\t\t\tindex = i + j;\n\t\t\t\t}\n\t\t\t\tchar sC = s.charAt(index);\n\t\t\t\tchar pC = p.charAt(j);\n\t\t\t\tif(sC != pC){\n\t\t\t\t\tcheck = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(check){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}else if(i == sLen - 1){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tpublic static void main(String args[]){\n\t\tnew Main().run();\n\t}\n}", "public class Main {\n\tvoid run(){\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.next();\n\t\tString p = scan.next();\n\t\tint sLen = s.length();\n\t\tint pLen = p.length();\n\t\tfor(int i = 0;i < sLen;i++){\n\t\t\tboolean check = true;\n\t\t\tfor(int j = 0;j < pLen;j++){\n\t\t\t\tint index;\n\t\t\t\tif(sLen <= i + j){\n\t\t\t\t\tindex = (sLen - (i + j)) * -1; \n\t\t\t\t}else{\n\t\t\t\t\tindex = i + j;\n\t\t\t\t}\n\t\t\t\tchar sC = s.charAt(index);\n\t\t\t\tchar pC = p.charAt(j);\n\t\t\t\tif(sC != pC){\n\t\t\t\t\tcheck = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(check){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}else if(i == sLen - 1){\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tpublic static void main(String args[]){\n\t\tnew Main().run();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { void run(){ Scanner scan = new Scanner(System.in); String s = scan.next(); String p = scan.next(); int sLen = s.length(); int pLen = p.length(); for(int i = 0;i < sLen;i++){ boolean check = true; for(int j = 0;j < pLen;j++){ int index; if(sLen <= i + j){ index = (sLen - (i + j)) * -1; }else{ index = i + j; } char sC = s.charAt(index); char pC = p.charAt(j); if(sC != pC){ check = false; break; } } if(check){ System.out.println("Yes"); break; }else if(i == sLen - 1){ System.out.println("No"); break; } } } public static void main(String args[]){ new Main().run(); } }
[ 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, 4, 18, 13, 17, 41, 13, 4, 18, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 18, 13, 17, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 13, 18, 13, 13, 30, 0, 13, 18, 13, 2, 13, 13, 30, 0, 13, 18, 13, 2, 2, 13, 13, 18, 13, 13, 14, 4, 18, 13, 13, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 129, 5 ], [ 129, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 8, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 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 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 55, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 68, 78 ], [ 78, 79 ], [ 79, 80 ], [ 68, 81 ], [ 82, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 88, 89 ], [ 88, 90 ], [ 83, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 83, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 108, 109 ], [ 108, 110 ], [ 64, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 115 ], [ 111, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 8, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 6, 126 ], [ 126, 127 ], [ 0, 128 ], [ 128, 129 ], [ 128, 130 ] ]
[ "import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n HashMap<String, Integer> hash = new HashMap<String, Integer>();\n String line = sc.nextLine();\n String line1 = sc.nextLine();\n String[] s = line.split(\"\");\n String[] p = line1.split(\"\");\n String answer = \"No\";\n for(int i = 0; i < s.length; i++) {\n if(s[i].equals(p[0])) {\n String ans = \"\";\n for(int j = 0; j < p.length; j++) {\n if(i + j < s.length) {\n ans += s[i + j];\n }else {\n ans += s[i + j - s.length];\n }\n }\n if(ans.equals(line1)) {\n answer = \"Yes\";\n }\n }\n }\n System.out.println(answer);\n\n }\n }", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n HashMap<String, Integer> hash = new HashMap<String, Integer>();\n String line = sc.nextLine();\n String line1 = sc.nextLine();\n String[] s = line.split(\"\");\n String[] p = line1.split(\"\");\n String answer = \"No\";\n for(int i = 0; i < s.length; i++) {\n if(s[i].equals(p[0])) {\n String ans = \"\";\n for(int j = 0; j < p.length; j++) {\n if(i + j < s.length) {\n ans += s[i + j];\n }else {\n ans += s[i + j - s.length];\n }\n }\n if(ans.equals(line1)) {\n answer = \"Yes\";\n }\n }\n }\n System.out.println(answer);\n\n }\n }", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n HashMap<String, Integer> hash = new HashMap<String, Integer>();\n String line = sc.nextLine();\n String line1 = sc.nextLine();\n String[] s = line.split(\"\");\n String[] p = line1.split(\"\");\n String answer = \"No\";\n for(int i = 0; i < s.length; i++) {\n if(s[i].equals(p[0])) {\n String ans = \"\";\n for(int j = 0; j < p.length; j++) {\n if(i + j < s.length) {\n ans += s[i + j];\n }else {\n ans += s[i + j - s.length];\n }\n }\n if(ans.equals(line1)) {\n answer = \"Yes\";\n }\n }\n }\n System.out.println(answer);\n\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n HashMap<String, Integer> hash = new HashMap<String, Integer>();\n String line = sc.nextLine();\n String line1 = sc.nextLine();\n String[] s = line.split(\"\");\n String[] p = line1.split(\"\");\n String answer = \"No\";\n for(int i = 0; i < s.length; i++) {\n if(s[i].equals(p[0])) {\n String ans = \"\";\n for(int j = 0; j < p.length; j++) {\n if(i + j < s.length) {\n ans += s[i + j];\n }else {\n ans += s[i + j - s.length];\n }\n }\n if(ans.equals(line1)) {\n answer = \"Yes\";\n }\n }\n }\n System.out.println(answer);\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "HashMap<String, Integer> hash = new HashMap<String, Integer>();", "hash", "new HashMap<String, Integer>()", "String line = sc.nextLine();", "line", "sc.nextLine()", "sc.nextLine", "sc", "String line1 = sc.nextLine();", "line1", "sc.nextLine()", "sc.nextLine", "sc", "String[] s = line.split(\"\");", "s", "line.split(\"\")", "line.split", "line", "\"\"", "String[] p = line1.split(\"\");", "p", "line1.split(\"\")", "line1.split", "line1", "\"\"", "String answer = \"No\";", "answer", "\"No\"", "for(int i = 0; i < s.length; i++) {\n if(s[i].equals(p[0])) {\n String ans = \"\";\n for(int j = 0; j < p.length; j++) {\n if(i + j < s.length) {\n ans += s[i + j];\n }else {\n ans += s[i + j - s.length];\n }\n }\n if(ans.equals(line1)) {\n answer = \"Yes\";\n }\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < s.length", "i", "s.length", "s", "s.length", "i++", "i++", "i", "{\n if(s[i].equals(p[0])) {\n String ans = \"\";\n for(int j = 0; j < p.length; j++) {\n if(i + j < s.length) {\n ans += s[i + j];\n }else {\n ans += s[i + j - s.length];\n }\n }\n if(ans.equals(line1)) {\n answer = \"Yes\";\n }\n }\n }", "{\n if(s[i].equals(p[0])) {\n String ans = \"\";\n for(int j = 0; j < p.length; j++) {\n if(i + j < s.length) {\n ans += s[i + j];\n }else {\n ans += s[i + j - s.length];\n }\n }\n if(ans.equals(line1)) {\n answer = \"Yes\";\n }\n }\n }", "if(s[i].equals(p[0])) {\n String ans = \"\";\n for(int j = 0; j < p.length; j++) {\n if(i + j < s.length) {\n ans += s[i + j];\n }else {\n ans += s[i + j - s.length];\n }\n }\n if(ans.equals(line1)) {\n answer = \"Yes\";\n }\n }", "s[i].equals(p[0])", "s[i].equals", "s[i]", "s", "i", "p[0]", "p", "0", "{\n String ans = \"\";\n for(int j = 0; j < p.length; j++) {\n if(i + j < s.length) {\n ans += s[i + j];\n }else {\n ans += s[i + j - s.length];\n }\n }\n if(ans.equals(line1)) {\n answer = \"Yes\";\n }\n }", "String ans = \"\";", "ans", "\"\"", "for(int j = 0; j < p.length; j++) {\n if(i + j < s.length) {\n ans += s[i + j];\n }else {\n ans += s[i + j - s.length];\n }\n }", "int j = 0;", "int j = 0;", "j", "0", "j < p.length", "j", "p.length", "p", "p.length", "j++", "j++", "j", "{\n if(i + j < s.length) {\n ans += s[i + j];\n }else {\n ans += s[i + j - s.length];\n }\n }", "{\n if(i + j < s.length) {\n ans += s[i + j];\n }else {\n ans += s[i + j - s.length];\n }\n }", "if(i + j < s.length) {\n ans += s[i + j];\n }else {\n ans += s[i + j - s.length];\n }", "i + j < s.length", "i + j", "i", "j", "s.length", "s", "s.length", "{\n ans += s[i + j];\n }", "ans += s[i + j]", "ans", "s[i + j]", "s", "i + j", "i", "j", "{\n ans += s[i + j - s.length];\n }", "ans += s[i + j - s.length]", "ans", "s[i + j - s.length]", "s", "i + j - s.length", "i + j", "i", "j", "s.length", "s", "s.length", "if(ans.equals(line1)) {\n answer = \"Yes\";\n }", "ans.equals(line1)", "ans.equals", "ans", "line1", "{\n answer = \"Yes\";\n }", "answer = \"Yes\"", "answer", "\"Yes\"", "System.out.println(answer)", "System.out.println", "System.out", "System", "System.out", "answer", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n HashMap<String, Integer> hash = new HashMap<String, Integer>();\n String line = sc.nextLine();\n String line1 = sc.nextLine();\n String[] s = line.split(\"\");\n String[] p = line1.split(\"\");\n String answer = \"No\";\n for(int i = 0; i < s.length; i++) {\n if(s[i].equals(p[0])) {\n String ans = \"\";\n for(int j = 0; j < p.length; j++) {\n if(i + j < s.length) {\n ans += s[i + j];\n }else {\n ans += s[i + j - s.length];\n }\n }\n if(ans.equals(line1)) {\n answer = \"Yes\";\n }\n }\n }\n System.out.println(answer);\n\n }\n }", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n HashMap<String, Integer> hash = new HashMap<String, Integer>();\n String line = sc.nextLine();\n String line1 = sc.nextLine();\n String[] s = line.split(\"\");\n String[] p = line1.split(\"\");\n String answer = \"No\";\n for(int i = 0; i < s.length; i++) {\n if(s[i].equals(p[0])) {\n String ans = \"\";\n for(int j = 0; j < p.length; j++) {\n if(i + j < s.length) {\n ans += s[i + j];\n }else {\n ans += s[i + j - s.length];\n }\n }\n if(ans.equals(line1)) {\n answer = \"Yes\";\n }\n }\n }\n System.out.println(answer);\n\n }\n }", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); HashMap<String, Integer> hash = new HashMap<String, Integer>(); String line = sc.nextLine(); String line1 = sc.nextLine(); String[] s = line.split(""); String[] p = line1.split(""); String answer = "No"; for(int i = 0; i < s.length; i++) { if(s[i].equals(p[0])) { String ans = ""; for(int j = 0; j < p.length; j++) { if(i + j < s.length) { ans += s[i + j]; }else { ans += s[i + j - s.length]; } } if(ans.equals(line1)) { answer = "Yes"; } } } System.out.println(answer); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 11, 1, 0, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 2, 2, 13, 13, 4, 18, 13, 4, 18, 13, 13, 3, 14, 2, 13, 4, 18, 13, 30, 0, 13, 17, 3, 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 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 10, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 10, 24 ], [ 24, 25 ], [ 24, 26 ], [ 10, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 27, 37 ], [ 37, 38 ], [ 38, 39 ], [ 27, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 44, 54 ], [ 54, 55 ], [ 55, 56 ], [ 44, 57 ], [ 58, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 69, 70 ], [ 60, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 59, 75 ], [ 41, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 76, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 10, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 92, 93 ], [ 92, 94 ], [ 92, 95 ], [ 6, 96 ], [ 96, 97 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tString s = sc.nextLine();\n\t\t\tString p = sc.nextLine();\n\t\t\tboolean yes = false;\n\t\t\tfor(int i = 0;i<s.length();i++) {\n\t\t\t\tint j;\n\t\t\t\tfor(j=0;j<p.length();j++) {\n\t\t\t\t\tif(s.charAt((i+j)%s.length())!=p.charAt(j)) break;\n\t\t\t\t}\n\t\t\t\tif(j==p.length()) {\n\t\t\t\t\tyes = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(yes?\"Yes\":\"No\");\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tString s = sc.nextLine();\n\t\t\tString p = sc.nextLine();\n\t\t\tboolean yes = false;\n\t\t\tfor(int i = 0;i<s.length();i++) {\n\t\t\t\tint j;\n\t\t\t\tfor(j=0;j<p.length();j++) {\n\t\t\t\t\tif(s.charAt((i+j)%s.length())!=p.charAt(j)) break;\n\t\t\t\t}\n\t\t\t\tif(j==p.length()) {\n\t\t\t\t\tyes = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(yes?\"Yes\":\"No\");\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tString s = sc.nextLine();\n\t\t\tString p = sc.nextLine();\n\t\t\tboolean yes = false;\n\t\t\tfor(int i = 0;i<s.length();i++) {\n\t\t\t\tint j;\n\t\t\t\tfor(j=0;j<p.length();j++) {\n\t\t\t\t\tif(s.charAt((i+j)%s.length())!=p.charAt(j)) break;\n\t\t\t\t}\n\t\t\t\tif(j==p.length()) {\n\t\t\t\t\tyes = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(yes?\"Yes\":\"No\");\n\t\t}\n\t}", "main", "{\n\t\ttry(Scanner sc = new Scanner(System.in)){\n\t\t\tString s = sc.nextLine();\n\t\t\tString p = sc.nextLine();\n\t\t\tboolean yes = false;\n\t\t\tfor(int i = 0;i<s.length();i++) {\n\t\t\t\tint j;\n\t\t\t\tfor(j=0;j<p.length();j++) {\n\t\t\t\t\tif(s.charAt((i+j)%s.length())!=p.charAt(j)) break;\n\t\t\t\t}\n\t\t\t\tif(j==p.length()) {\n\t\t\t\t\tyes = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(yes?\"Yes\":\"No\");\n\t\t}\n\t}", "try(Scanner sc = new Scanner(System.in)){\n\t\t\tString s = sc.nextLine();\n\t\t\tString p = sc.nextLine();\n\t\t\tboolean yes = false;\n\t\t\tfor(int i = 0;i<s.length();i++) {\n\t\t\t\tint j;\n\t\t\t\tfor(j=0;j<p.length();j++) {\n\t\t\t\t\tif(s.charAt((i+j)%s.length())!=p.charAt(j)) break;\n\t\t\t\t}\n\t\t\t\tif(j==p.length()) {\n\t\t\t\t\tyes = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(yes?\"Yes\":\"No\");\n\t\t}", "{\n\t\t\tString s = sc.nextLine();\n\t\t\tString p = sc.nextLine();\n\t\t\tboolean yes = false;\n\t\t\tfor(int i = 0;i<s.length();i++) {\n\t\t\t\tint j;\n\t\t\t\tfor(j=0;j<p.length();j++) {\n\t\t\t\t\tif(s.charAt((i+j)%s.length())!=p.charAt(j)) break;\n\t\t\t\t}\n\t\t\t\tif(j==p.length()) {\n\t\t\t\t\tyes = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(yes?\"Yes\":\"No\");\n\t\t}", "Scanner sc = new Scanner(System.in)", "Scanner sc = new Scanner(System.in)", "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 yes = false;", "yes", "false", "for(int i = 0;i<s.length();i++) {\n\t\t\t\tint j;\n\t\t\t\tfor(j=0;j<p.length();j++) {\n\t\t\t\t\tif(s.charAt((i+j)%s.length())!=p.charAt(j)) break;\n\t\t\t\t}\n\t\t\t\tif(j==p.length()) {\n\t\t\t\t\tyes = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i<s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n\t\t\t\tint j;\n\t\t\t\tfor(j=0;j<p.length();j++) {\n\t\t\t\t\tif(s.charAt((i+j)%s.length())!=p.charAt(j)) break;\n\t\t\t\t}\n\t\t\t\tif(j==p.length()) {\n\t\t\t\t\tyes = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tint j;\n\t\t\t\tfor(j=0;j<p.length();j++) {\n\t\t\t\t\tif(s.charAt((i+j)%s.length())!=p.charAt(j)) break;\n\t\t\t\t}\n\t\t\t\tif(j==p.length()) {\n\t\t\t\t\tyes = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "int j;", "j", "for(j=0;j<p.length();j++) {\n\t\t\t\t\tif(s.charAt((i+j)%s.length())!=p.charAt(j)) break;\n\t\t\t\t}", "j=0;", "j=0", "j", "0", "j<p.length()", "j", "p.length()", "p.length", "p", "j++", "j++", "j", "{\n\t\t\t\t\tif(s.charAt((i+j)%s.length())!=p.charAt(j)) break;\n\t\t\t\t}", "{\n\t\t\t\t\tif(s.charAt((i+j)%s.length())!=p.charAt(j)) break;\n\t\t\t\t}", "if(s.charAt((i+j)%s.length())!=p.charAt(j)) break;", "s.charAt((i+j)%s.length())!=p.charAt(j)", "s.charAt((i+j)%s.length())", "s.charAt", "s", "(i+j)%s.length()", "(i+j)", "i", "j", "s.length()", "s.length", "s", "p.charAt(j)", "p.charAt", "p", "j", "break;", "if(j==p.length()) {\n\t\t\t\t\tyes = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "j==p.length()", "j", "p.length()", "p.length", "p", "{\n\t\t\t\t\tyes = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "yes = true", "yes", "true", "break;", "System.out.println(yes?\"Yes\":\"No\")", "System.out.println", "System.out", "System", "System.out", "yes?\"Yes\":\"No\"", "yes", "\"Yes\"", "\"No\"", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args) { try(Scanner sc = new Scanner(System.in)){ String s = sc.nextLine(); String p = sc.nextLine(); boolean yes = false; for(int i = 0;i<s.length();i++) { int j; for(j=0;j<p.length();j++) { if(s.charAt((i+j)%s.length())!=p.charAt(j)) break; } if(j==p.length()) { yes = true; break; } } System.out.println(yes?"Yes":"No"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 14, 4, 13, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 4, 18, 13, 4, 18, 13, 17, 13, 30, 14, 4, 18, 13, 4, 18, 13, 13, 4, 18, 13, 30, 29, 17, 29, 17, 23, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 28, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 41, 44 ], [ 40, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 40, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 12, 59 ], [ 59, 60 ], [ 10, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 64, 74 ], [ 74, 75 ], [ 75, 76 ], [ 64, 77 ], [ 78, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 83, 87 ], [ 79, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 93, 97 ], [ 97, 98 ], [ 98, 99 ], [ 89, 100 ], [ 100, 101 ], [ 101, 102 ], [ 63, 103 ], [ 103, 104 ], [ 61, 105 ], [ 105, 106 ], [ 61, 107 ], [ 107, 108 ] ]
[ "import java.io.*;\nimport java.util.*;\nimport java.lang.*;\n\nclass Main{\n public static void main(String[] args) throws IOException{\n Scanner scan=new Scanner(System.in);\n String s=scan.next();\n String p=scan.next();\n\n if(s.contains(p)){\n System.out.println(\"Yes\");\n }else if(isSubString(s,p)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n static boolean isSubString(String str1,String str2){\n\n for(int i=1;i<str2.length();i++){\n if(str1.endsWith(str2.substring(0,i))){\n if(str1.startsWith(str2.substring(i,str2.length()))){\n return true;\n }\n }\n }\n\n return false;\n }\n}\n", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "class Main{\n public static void main(String[] args) throws IOException{\n Scanner scan=new Scanner(System.in);\n String s=scan.next();\n String p=scan.next();\n\n if(s.contains(p)){\n System.out.println(\"Yes\");\n }else if(isSubString(s,p)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n static boolean isSubString(String str1,String str2){\n\n for(int i=1;i<str2.length();i++){\n if(str1.endsWith(str2.substring(0,i))){\n if(str1.startsWith(str2.substring(i,str2.length()))){\n return true;\n }\n }\n }\n\n return false;\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n Scanner scan=new Scanner(System.in);\n String s=scan.next();\n String p=scan.next();\n\n if(s.contains(p)){\n System.out.println(\"Yes\");\n }else if(isSubString(s,p)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }", "main", "{\n Scanner scan=new Scanner(System.in);\n String s=scan.next();\n String p=scan.next();\n\n if(s.contains(p)){\n System.out.println(\"Yes\");\n }else if(isSubString(s,p)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "String s=scan.next();", "s", "scan.next()", "scan.next", "scan", "String p=scan.next();", "p", "scan.next()", "scan.next", "scan", "if(s.contains(p)){\n System.out.println(\"Yes\");\n }else if(isSubString(s,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\"", "if(isSubString(s,p)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }", "isSubString(s,p)", "isSubString", "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", "static boolean isSubString(String str1,String str2){\n\n for(int i=1;i<str2.length();i++){\n if(str1.endsWith(str2.substring(0,i))){\n if(str1.startsWith(str2.substring(i,str2.length()))){\n return true;\n }\n }\n }\n\n return false;\n }", "isSubString", "{\n\n for(int i=1;i<str2.length();i++){\n if(str1.endsWith(str2.substring(0,i))){\n if(str1.startsWith(str2.substring(i,str2.length()))){\n return true;\n }\n }\n }\n\n return false;\n }", "for(int i=1;i<str2.length();i++){\n if(str1.endsWith(str2.substring(0,i))){\n if(str1.startsWith(str2.substring(i,str2.length()))){\n return true;\n }\n }\n }", "int i=1;", "int i=1;", "i", "1", "i<str2.length()", "i", "str2.length()", "str2.length", "str2", "i++", "i++", "i", "{\n if(str1.endsWith(str2.substring(0,i))){\n if(str1.startsWith(str2.substring(i,str2.length()))){\n return true;\n }\n }\n }", "{\n if(str1.endsWith(str2.substring(0,i))){\n if(str1.startsWith(str2.substring(i,str2.length()))){\n return true;\n }\n }\n }", "if(str1.endsWith(str2.substring(0,i))){\n if(str1.startsWith(str2.substring(i,str2.length()))){\n return true;\n }\n }", "str1.endsWith(str2.substring(0,i))", "str1.endsWith", "str1", "str2.substring(0,i)", "str2.substring", "str2", "0", "i", "{\n if(str1.startsWith(str2.substring(i,str2.length()))){\n return true;\n }\n }", "if(str1.startsWith(str2.substring(i,str2.length()))){\n return true;\n }", "str1.startsWith(str2.substring(i,str2.length()))", "str1.startsWith", "str1", "str2.substring(i,str2.length())", "str2.substring", "str2", "i", "str2.length()", "str2.length", "str2", "{\n return true;\n }", "return true;", "true", "return false;", "false", "String str1", "str1", "String str2", "str2" ]
import java.io.*; import java.util.*; import java.lang.*; class Main{ public static void main(String[] args) throws IOException{ Scanner scan=new Scanner(System.in); String s=scan.next(); String p=scan.next(); if(s.contains(p)){ System.out.println("Yes"); }else if(isSubString(s,p)){ System.out.println("Yes"); }else{ System.out.println("No"); } } static boolean isSubString(String str1,String str2){ for(int i=1;i<str2.length();i++){ if(str1.endsWith(str2.substring(0,i))){ if(str1.startsWith(str2.substring(i,str2.length()))){ return true; } } } return false; } }
[ 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 ]
[ [ 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 ], [ 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 ] ]
[ "import java.util.Scanner;\n\n\tclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n String s = sc.next();\n String SS = s+s;\n String str = sc.next();\n \tif(SS.contains(str)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n }", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n String s = sc.next();\n String SS = s+s;\n String str = sc.next();\n \tif(SS.contains(str)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n }", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n String s = sc.next();\n String SS = s+s;\n String str = sc.next();\n \tif(SS.contains(str)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \n String s = sc.next();\n String SS = s+s;\n String str = sc.next();\n \tif(SS.contains(str)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "String SS = s+s;", "SS", "s+s", "s", "s", "String str = sc.next();", "str", "sc.next()", "sc.next", "sc", "if(SS.contains(str)){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }", "SS.contains(str)", "SS.contains", "SS", "str", "{\n System.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n System.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); String SS = s+s; String str = sc.next(); if(SS.contains(str)){ 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, 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 ]
[ [ 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 ], [ 22, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 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.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 s = sc.next();\n\t\tString s2 = s+s;\n\t\tString p = sc.next();\n\t\t\n\t\tif (s2.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\t\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 s = sc.next();\n\t\tString s2 = s+s;\n\t\tString p = sc.next();\n\t\t\n\t\tif (s2.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\t\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString s = sc.next();\n\t\tString s2 = s+s;\n\t\tString p = sc.next();\n\t\t\n\t\tif (s2.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\t\n\t}", "main", "{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString s = sc.next();\n\t\tString s2 = s+s;\n\t\tString p = sc.next();\n\t\t\n\t\tif (s2.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\t\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "String s2 = s+s;", "s2", "s+s", "s", "s", "String p = sc.next();", "p", "sc.next()", "sc.next", "sc", "if (s2.contains(p)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "s2.contains(p)", "s2.contains", "s2", "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" ]
import java.util.*; import java.lang.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); String s2 = s+s; String p = sc.next(); if (s2.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, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 4, 18, 2, 13, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 60, 11 ], [ 60, 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 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 22, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 22, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 36, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 36, 50 ], [ 50, 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 public static void main(String[] args) {\n try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))){\n String s = in.readLine();\n String p = in.readLine();\n\n if ((s + 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", "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) {\n try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))){\n String s = in.readLine();\n String p = in.readLine();\n\n if ((s + 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}", "Main", "public static void main(String[] args) {\n try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))){\n String s = in.readLine();\n String p = in.readLine();\n\n if ((s + 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 }", "main", "{\n try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))){\n String s = in.readLine();\n String p = in.readLine();\n\n if ((s + 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 }", "try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))){\n String s = in.readLine();\n String p = in.readLine();\n\n if ((s + 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 = in.readLine();\n String p = in.readLine();\n\n if ((s + s).contains(p)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in))", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in))", "new BufferedReader(new InputStreamReader(System.in))", "String s = in.readLine();", "s", "in.readLine()", "in.readLine", "in", "String p = in.readLine();", "p", "in.readLine()", "in.readLine", "in", "if ((s + s).contains(p)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }", "(s + s).contains(p)", "(s + s).contains", "(s + s)", "s", "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 try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))){\n String s = in.readLine();\n String p = in.readLine();\n\n if ((s + 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}", "public class Main {\n public static void main(String[] args) {\n try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))){\n String s = in.readLine();\n String p = in.readLine();\n\n if ((s + 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}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in))){ String s = in.readLine(); String p = in.readLine(); if ((s + 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, 41, 13, 2, 13, 4, 18, 13, 17, 4, 18, 13, 14, 4, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 54, 5 ], [ 54, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 26, 30 ], [ 30, 31 ], [ 31, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 33, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 6, 51 ], [ 51, 52 ], [ 0, 53 ], [ 53, 54 ], [ 53, 55 ] ]
[ "import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str1 = sc.nextLine();\n String str2 = sc.nextLine();\n String ring = str1 + str1.substring(0, str1.length());\n if(ring.contains(str2)){\n System.out.println(\"Yes\");\n }\n else System.out.println(\"No\");\n\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str1 = sc.nextLine();\n String str2 = sc.nextLine();\n String ring = str1 + str1.substring(0, str1.length());\n if(ring.contains(str2)){\n System.out.println(\"Yes\");\n }\n else System.out.println(\"No\");\n\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str1 = sc.nextLine();\n String str2 = sc.nextLine();\n String ring = str1 + str1.substring(0, str1.length());\n if(ring.contains(str2)){\n System.out.println(\"Yes\");\n }\n else System.out.println(\"No\");\n\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String str1 = sc.nextLine();\n String str2 = sc.nextLine();\n String ring = str1 + str1.substring(0, str1.length());\n if(ring.contains(str2)){\n System.out.println(\"Yes\");\n }\n else System.out.println(\"No\");\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String str1 = sc.nextLine();", "str1", "sc.nextLine()", "sc.nextLine", "sc", "String str2 = sc.nextLine();", "str2", "sc.nextLine()", "sc.nextLine", "sc", "String ring = str1 + str1.substring(0, str1.length());", "ring", "str1 + str1.substring(0, str1.length())", "str1", "str1.substring(0, str1.length())", "str1.substring", "str1", "0", "str1.length()", "str1.length", "str1", "if(ring.contains(str2)){\n System.out.println(\"Yes\");\n }\n else System.out.println(\"No\");", "ring.contains(str2)", "ring.contains", "ring", "str2", "{\n System.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str1 = sc.nextLine();\n String str2 = sc.nextLine();\n String ring = str1 + str1.substring(0, str1.length());\n if(ring.contains(str2)){\n System.out.println(\"Yes\");\n }\n else 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 str1 = sc.nextLine();\n String str2 = sc.nextLine();\n String ring = str1 + str1.substring(0, str1.length());\n if(ring.contains(str2)){\n System.out.println(\"Yes\");\n }\n else 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 str1 = sc.nextLine(); String str2 = sc.nextLine(); String ring = str1 + str1.substring(0, str1.length()); if(ring.contains(str2)){ 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, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 13, 17, 3, 14, 2, 18, 13, 13, 18, 13, 17, 30, 0, 13, 17, 0, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 40, 13, 14, 2, 13, 18, 13, 13, 0, 13, 17, 14, 2, 18, 13, 13, 18, 13, 13, 30, 0, 13, 17, 3, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 8, 35 ], [ 35, 36 ], [ 8, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 37, 47 ], [ 47, 48 ], [ 48, 49 ], [ 37, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 52, 57 ], [ 51, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 70, 72 ], [ 66, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 73, 83 ], [ 83, 84 ], [ 84, 85 ], [ 73, 86 ], [ 87, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 90, 96 ], [ 96, 97 ], [ 96, 98 ], [ 87, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 104, 106 ], [ 99, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 8, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 6, 118 ], [ 118, 119 ] ]
[ "import java.io.*;\n\nclass Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tchar[] cr1 = str.toCharArray();\n\t\tstr = br.readLine();\n\t\tchar[] cr2 = str.toCharArray();\n\t\tString dis = \"No\";\n\t\tint x;\n\t\tfor(int i=0; i<cr1.length; i++){\n\t\t\tif(dis.equals(\"Yes\")) break;\n\t\t\tif(cr1[i]==cr2[0]){\n\t\t\t\tdis = \"Yes\";\n\t\t\t\tx = i;\n\t\t\t\tfor(int j=1; j<cr2.length; j++){\n\t\t\t\t\tx++;\n\t\t\t\t\tif(x == cr1.length) x=0;\n\t\t\t\t\tif(cr1[x]!=cr2[j]){\n\t\t\t\t\t\tdis = \"No\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(dis);\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tchar[] cr1 = str.toCharArray();\n\t\tstr = br.readLine();\n\t\tchar[] cr2 = str.toCharArray();\n\t\tString dis = \"No\";\n\t\tint x;\n\t\tfor(int i=0; i<cr1.length; i++){\n\t\t\tif(dis.equals(\"Yes\")) break;\n\t\t\tif(cr1[i]==cr2[0]){\n\t\t\t\tdis = \"Yes\";\n\t\t\t\tx = i;\n\t\t\t\tfor(int j=1; j<cr2.length; j++){\n\t\t\t\t\tx++;\n\t\t\t\t\tif(x == cr1.length) x=0;\n\t\t\t\t\tif(cr1[x]!=cr2[j]){\n\t\t\t\t\t\tdis = \"No\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(dis);\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 str = br.readLine();\n\t\tchar[] cr1 = str.toCharArray();\n\t\tstr = br.readLine();\n\t\tchar[] cr2 = str.toCharArray();\n\t\tString dis = \"No\";\n\t\tint x;\n\t\tfor(int i=0; i<cr1.length; i++){\n\t\t\tif(dis.equals(\"Yes\")) break;\n\t\t\tif(cr1[i]==cr2[0]){\n\t\t\t\tdis = \"Yes\";\n\t\t\t\tx = i;\n\t\t\t\tfor(int j=1; j<cr2.length; j++){\n\t\t\t\t\tx++;\n\t\t\t\t\tif(x == cr1.length) x=0;\n\t\t\t\t\tif(cr1[x]!=cr2[j]){\n\t\t\t\t\t\tdis = \"No\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(dis);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tchar[] cr1 = str.toCharArray();\n\t\tstr = br.readLine();\n\t\tchar[] cr2 = str.toCharArray();\n\t\tString dis = \"No\";\n\t\tint x;\n\t\tfor(int i=0; i<cr1.length; i++){\n\t\t\tif(dis.equals(\"Yes\")) break;\n\t\t\tif(cr1[i]==cr2[0]){\n\t\t\t\tdis = \"Yes\";\n\t\t\t\tx = i;\n\t\t\t\tfor(int j=1; j<cr2.length; j++){\n\t\t\t\t\tx++;\n\t\t\t\t\tif(x == cr1.length) x=0;\n\t\t\t\t\tif(cr1[x]!=cr2[j]){\n\t\t\t\t\t\tdis = \"No\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(dis);\n\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", "char[] cr1 = str.toCharArray();", "cr1", "str.toCharArray()", "str.toCharArray", "str", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "char[] cr2 = str.toCharArray();", "cr2", "str.toCharArray()", "str.toCharArray", "str", "String dis = \"No\";", "dis", "\"No\"", "int x;", "x", "for(int i=0; i<cr1.length; i++){\n\t\t\tif(dis.equals(\"Yes\")) break;\n\t\t\tif(cr1[i]==cr2[0]){\n\t\t\t\tdis = \"Yes\";\n\t\t\t\tx = i;\n\t\t\t\tfor(int j=1; j<cr2.length; j++){\n\t\t\t\t\tx++;\n\t\t\t\t\tif(x == cr1.length) x=0;\n\t\t\t\t\tif(cr1[x]!=cr2[j]){\n\t\t\t\t\t\tdis = \"No\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<cr1.length", "i", "cr1.length", "cr1", "cr1.length", "i++", "i++", "i", "{\n\t\t\tif(dis.equals(\"Yes\")) break;\n\t\t\tif(cr1[i]==cr2[0]){\n\t\t\t\tdis = \"Yes\";\n\t\t\t\tx = i;\n\t\t\t\tfor(int j=1; j<cr2.length; j++){\n\t\t\t\t\tx++;\n\t\t\t\t\tif(x == cr1.length) x=0;\n\t\t\t\t\tif(cr1[x]!=cr2[j]){\n\t\t\t\t\t\tdis = \"No\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tif(dis.equals(\"Yes\")) break;\n\t\t\tif(cr1[i]==cr2[0]){\n\t\t\t\tdis = \"Yes\";\n\t\t\t\tx = i;\n\t\t\t\tfor(int j=1; j<cr2.length; j++){\n\t\t\t\t\tx++;\n\t\t\t\t\tif(x == cr1.length) x=0;\n\t\t\t\t\tif(cr1[x]!=cr2[j]){\n\t\t\t\t\t\tdis = \"No\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "if(dis.equals(\"Yes\")) break;", "dis.equals(\"Yes\")", "dis.equals", "dis", "\"Yes\"", "break;", "if(cr1[i]==cr2[0]){\n\t\t\t\tdis = \"Yes\";\n\t\t\t\tx = i;\n\t\t\t\tfor(int j=1; j<cr2.length; j++){\n\t\t\t\t\tx++;\n\t\t\t\t\tif(x == cr1.length) x=0;\n\t\t\t\t\tif(cr1[x]!=cr2[j]){\n\t\t\t\t\t\tdis = \"No\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "cr1[i]==cr2[0]", "cr1[i]", "cr1", "i", "cr2[0]", "cr2", "0", "{\n\t\t\t\tdis = \"Yes\";\n\t\t\t\tx = i;\n\t\t\t\tfor(int j=1; j<cr2.length; j++){\n\t\t\t\t\tx++;\n\t\t\t\t\tif(x == cr1.length) x=0;\n\t\t\t\t\tif(cr1[x]!=cr2[j]){\n\t\t\t\t\t\tdis = \"No\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "dis = \"Yes\"", "dis", "\"Yes\"", "x = i", "x", "i", "for(int j=1; j<cr2.length; j++){\n\t\t\t\t\tx++;\n\t\t\t\t\tif(x == cr1.length) x=0;\n\t\t\t\t\tif(cr1[x]!=cr2[j]){\n\t\t\t\t\t\tdis = \"No\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "int j=1;", "int j=1;", "j", "1", "j<cr2.length", "j", "cr2.length", "cr2", "cr2.length", "j++", "j++", "j", "{\n\t\t\t\t\tx++;\n\t\t\t\t\tif(x == cr1.length) x=0;\n\t\t\t\t\tif(cr1[x]!=cr2[j]){\n\t\t\t\t\t\tdis = \"No\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tx++;\n\t\t\t\t\tif(x == cr1.length) x=0;\n\t\t\t\t\tif(cr1[x]!=cr2[j]){\n\t\t\t\t\t\tdis = \"No\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "x++", "x", "if(x == cr1.length) x=0;", "x == cr1.length", "x", "cr1.length", "cr1", "cr1.length", "x=0", "x", "0", "if(cr1[x]!=cr2[j]){\n\t\t\t\t\t\tdis = \"No\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "cr1[x]!=cr2[j]", "cr1[x]", "cr1", "x", "cr2[j]", "cr2", "j", "{\n\t\t\t\t\t\tdis = \"No\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "dis = \"No\"", "dis", "\"No\"", "break;", "System.out.println(dis)", "System.out.println", "System.out", "System", "System.out", "dis", "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 str = br.readLine(); char[] cr1 = str.toCharArray(); str = br.readLine(); char[] cr2 = str.toCharArray(); String dis = "No"; int x; for(int i=0; i<cr1.length; i++){ if(dis.equals("Yes")) break; if(cr1[i]==cr2[0]){ dis = "Yes"; x = i; for(int j=1; j<cr2.length; j++){ x++; if(x == cr1.length) x=0; if(cr1[x]!=cr2[j]){ dis = "No"; break; } } } } System.out.println(dis); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 40, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 4, 18, 13, 17, 30, 41, 13, 17, 41, 13, 17, 0, 13, 4, 13, 13, 13, 13, 13, 13, 14, 2, 13, 17, 30, 3, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 41, 13, 2, 2, 13, 17, 4, 18, 13, 41, 13, 2, 2, 13, 17, 4, 18, 13, 41, 13, 17, 14, 2, 13, 4, 18, 13, 30, 0, 13, 17, 14, 2, 4, 18, 13, 13, 4, 18, 13, 13, 30, 40, 13, 0, 13, 4, 13, 13, 13, 13, 13, 13, 30, 0, 13, 40, 17, 29, 13, 23, 13, 23, 13, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 167, 5 ], [ 167, 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 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 26, 36 ], [ 36, 37 ], [ 37, 38 ], [ 26, 39 ], [ 40, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 42, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 41, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 55, 57 ], [ 51, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 60, 63 ], [ 60, 64 ], [ 60, 65 ], [ 60, 66 ], [ 40, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 8, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 73, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 6, 91 ], [ 91, 92 ], [ 167, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 103, 104 ], [ 95, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 112, 113 ], [ 95, 114 ], [ 114, 115 ], [ 114, 116 ], [ 95, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 117, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 117, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 129, 132 ], [ 128, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 127, 137 ], [ 137, 138 ], [ 138, 139 ], [ 137, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 142, 144 ], [ 142, 145 ], [ 142, 146 ], [ 142, 147 ], [ 142, 148 ], [ 127, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 95, 154 ], [ 154, 155 ], [ 93, 156 ], [ 156, 157 ], [ 93, 158 ], [ 158, 159 ], [ 93, 160 ], [ 160, 161 ], [ 93, 162 ], [ 162, 163 ], [ 93, 164 ], [ 164, 165 ], [ 0, 166 ], [ 166, 167 ], [ 166, 168 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString s = stdIn.nextLine();\n\t\tString p = stdIn.nextLine();\n\t\tint y = -1;\n\t\t\n\t\t\n\t\tfor(int j=0;j<s.length();j++){\n\t\t\tif(s.charAt(j) == p.charAt(0)){\n\t\t\t\tint count = 1;\n\t\t\t\tint i = 0;\n\t\t\t\ty = func(s,p,i,j,count);\n\t\t\t}\n\t\t\tif(y==1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(y==1){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t}\n\t static int func(String s ,String p ,int i ,int j ,int count){\n\t\tint p_count = (i+1)%p.length();\n\t\tint s_count = (j+1)%s.length();\n\t\tint ans = 0;\n\t\t\n\t\tif(count == p.length()){\n\t\t\tans = 1;\n\t\t}\n\t\telse if(s.charAt(s_count) == p.charAt(p_count)){\n\t\t\t\tcount++;\n\t\t\t\tans = func(s,p,p_count,s_count,count);\n\t\t\t}\n\t\telse{\n\t\t\tans = -1;\n\t\t}\n\t\t \n\t\t return ans;\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString s = stdIn.nextLine();\n\t\tString p = stdIn.nextLine();\n\t\tint y = -1;\n\t\t\n\t\t\n\t\tfor(int j=0;j<s.length();j++){\n\t\t\tif(s.charAt(j) == p.charAt(0)){\n\t\t\t\tint count = 1;\n\t\t\t\tint i = 0;\n\t\t\t\ty = func(s,p,i,j,count);\n\t\t\t}\n\t\t\tif(y==1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(y==1){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t}\n\t static int func(String s ,String p ,int i ,int j ,int count){\n\t\tint p_count = (i+1)%p.length();\n\t\tint s_count = (j+1)%s.length();\n\t\tint ans = 0;\n\t\t\n\t\tif(count == p.length()){\n\t\t\tans = 1;\n\t\t}\n\t\telse if(s.charAt(s_count) == p.charAt(p_count)){\n\t\t\t\tcount++;\n\t\t\t\tans = func(s,p,p_count,s_count,count);\n\t\t\t}\n\t\telse{\n\t\t\tans = -1;\n\t\t}\n\t\t \n\t\t return ans;\n\t}\n\n}", "Main", "public static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString s = stdIn.nextLine();\n\t\tString p = stdIn.nextLine();\n\t\tint y = -1;\n\t\t\n\t\t\n\t\tfor(int j=0;j<s.length();j++){\n\t\t\tif(s.charAt(j) == p.charAt(0)){\n\t\t\t\tint count = 1;\n\t\t\t\tint i = 0;\n\t\t\t\ty = func(s,p,i,j,count);\n\t\t\t}\n\t\t\tif(y==1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(y==1){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t}", "main", "{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString s = stdIn.nextLine();\n\t\tString p = stdIn.nextLine();\n\t\tint y = -1;\n\t\t\n\t\t\n\t\tfor(int j=0;j<s.length();j++){\n\t\t\tif(s.charAt(j) == p.charAt(0)){\n\t\t\t\tint count = 1;\n\t\t\t\tint i = 0;\n\t\t\t\ty = func(s,p,i,j,count);\n\t\t\t}\n\t\t\tif(y==1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(y==1){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t}", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "String s = stdIn.nextLine();", "s", "stdIn.nextLine()", "stdIn.nextLine", "stdIn", "String p = stdIn.nextLine();", "p", "stdIn.nextLine()", "stdIn.nextLine", "stdIn", "int y = -1;", "y", "-1", "1", "for(int j=0;j<s.length();j++){\n\t\t\tif(s.charAt(j) == p.charAt(0)){\n\t\t\t\tint count = 1;\n\t\t\t\tint i = 0;\n\t\t\t\ty = func(s,p,i,j,count);\n\t\t\t}\n\t\t\tif(y==1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "int j=0;", "int j=0;", "j", "0", "j<s.length()", "j", "s.length()", "s.length", "s", "j++", "j++", "j", "{\n\t\t\tif(s.charAt(j) == p.charAt(0)){\n\t\t\t\tint count = 1;\n\t\t\t\tint i = 0;\n\t\t\t\ty = func(s,p,i,j,count);\n\t\t\t}\n\t\t\tif(y==1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(s.charAt(j) == p.charAt(0)){\n\t\t\t\tint count = 1;\n\t\t\t\tint i = 0;\n\t\t\t\ty = func(s,p,i,j,count);\n\t\t\t}\n\t\t\tif(y==1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "if(s.charAt(j) == p.charAt(0)){\n\t\t\t\tint count = 1;\n\t\t\t\tint i = 0;\n\t\t\t\ty = func(s,p,i,j,count);\n\t\t\t}", "s.charAt(j) == p.charAt(0)", "s.charAt(j)", "s.charAt", "s", "j", "p.charAt(0)", "p.charAt", "p", "0", "{\n\t\t\t\tint count = 1;\n\t\t\t\tint i = 0;\n\t\t\t\ty = func(s,p,i,j,count);\n\t\t\t}", "int count = 1;", "count", "1", "int i = 0;", "i", "0", "y = func(s,p,i,j,count)", "y", "func(s,p,i,j,count)", "func", "s", "p", "i", "j", "count", "if(y==1){\n\t\t\t\tbreak;\n\t\t\t}", "y==1", "y", "1", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "if(y==1){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "y==1", "y", "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", "static int func(String s ,String p ,int i ,int j ,int count){\n\t\tint p_count = (i+1)%p.length();\n\t\tint s_count = (j+1)%s.length();\n\t\tint ans = 0;\n\t\t\n\t\tif(count == p.length()){\n\t\t\tans = 1;\n\t\t}\n\t\telse if(s.charAt(s_count) == p.charAt(p_count)){\n\t\t\t\tcount++;\n\t\t\t\tans = func(s,p,p_count,s_count,count);\n\t\t\t}\n\t\telse{\n\t\t\tans = -1;\n\t\t}\n\t\t \n\t\t return ans;\n\t}", "func", "{\n\t\tint p_count = (i+1)%p.length();\n\t\tint s_count = (j+1)%s.length();\n\t\tint ans = 0;\n\t\t\n\t\tif(count == p.length()){\n\t\t\tans = 1;\n\t\t}\n\t\telse if(s.charAt(s_count) == p.charAt(p_count)){\n\t\t\t\tcount++;\n\t\t\t\tans = func(s,p,p_count,s_count,count);\n\t\t\t}\n\t\telse{\n\t\t\tans = -1;\n\t\t}\n\t\t \n\t\t return ans;\n\t}", "int p_count = (i+1)%p.length();", "p_count", "(i+1)%p.length()", "(i+1)", "i", "1", "p.length()", "p.length", "p", "int s_count = (j+1)%s.length();", "s_count", "(j+1)%s.length()", "(j+1)", "j", "1", "s.length()", "s.length", "s", "int ans = 0;", "ans", "0", "if(count == p.length()){\n\t\t\tans = 1;\n\t\t}\n\t\telse if(s.charAt(s_count) == p.charAt(p_count)){\n\t\t\t\tcount++;\n\t\t\t\tans = func(s,p,p_count,s_count,count);\n\t\t\t}\n\t\telse{\n\t\t\tans = -1;\n\t\t}", "count == p.length()", "count", "p.length()", "p.length", "p", "{\n\t\t\tans = 1;\n\t\t}", "ans = 1", "ans", "1", "if(s.charAt(s_count) == p.charAt(p_count)){\n\t\t\t\tcount++;\n\t\t\t\tans = func(s,p,p_count,s_count,count);\n\t\t\t}\n\t\telse{\n\t\t\tans = -1;\n\t\t}", "s.charAt(s_count) == p.charAt(p_count)", "s.charAt(s_count)", "s.charAt", "s", "s_count", "p.charAt(p_count)", "p.charAt", "p", "p_count", "{\n\t\t\t\tcount++;\n\t\t\t\tans = func(s,p,p_count,s_count,count);\n\t\t\t}", "count++", "count", "ans = func(s,p,p_count,s_count,count)", "ans", "func(s,p,p_count,s_count,count)", "func", "s", "p", "p_count", "s_count", "count", "{\n\t\t\tans = -1;\n\t\t}", "ans = -1", "ans", "-1", "1", "return ans;", "ans", "String s", "s", "String p", "p", "int i", "i", "int j", "j", "int count", "count", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString s = stdIn.nextLine();\n\t\tString p = stdIn.nextLine();\n\t\tint y = -1;\n\t\t\n\t\t\n\t\tfor(int j=0;j<s.length();j++){\n\t\t\tif(s.charAt(j) == p.charAt(0)){\n\t\t\t\tint count = 1;\n\t\t\t\tint i = 0;\n\t\t\t\ty = func(s,p,i,j,count);\n\t\t\t}\n\t\t\tif(y==1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(y==1){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t}\n\t static int func(String s ,String p ,int i ,int j ,int count){\n\t\tint p_count = (i+1)%p.length();\n\t\tint s_count = (j+1)%s.length();\n\t\tint ans = 0;\n\t\t\n\t\tif(count == p.length()){\n\t\t\tans = 1;\n\t\t}\n\t\telse if(s.charAt(s_count) == p.charAt(p_count)){\n\t\t\t\tcount++;\n\t\t\t\tans = func(s,p,p_count,s_count,count);\n\t\t\t}\n\t\telse{\n\t\t\tans = -1;\n\t\t}\n\t\t \n\t\t return ans;\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tString s = stdIn.nextLine();\n\t\tString p = stdIn.nextLine();\n\t\tint y = -1;\n\t\t\n\t\t\n\t\tfor(int j=0;j<s.length();j++){\n\t\t\tif(s.charAt(j) == p.charAt(0)){\n\t\t\t\tint count = 1;\n\t\t\t\tint i = 0;\n\t\t\t\ty = func(s,p,i,j,count);\n\t\t\t}\n\t\t\tif(y==1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(y==1){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\t\n\t}\n\t static int func(String s ,String p ,int i ,int j ,int count){\n\t\tint p_count = (i+1)%p.length();\n\t\tint s_count = (j+1)%s.length();\n\t\tint ans = 0;\n\t\t\n\t\tif(count == p.length()){\n\t\t\tans = 1;\n\t\t}\n\t\telse if(s.charAt(s_count) == p.charAt(p_count)){\n\t\t\t\tcount++;\n\t\t\t\tans = func(s,p,p_count,s_count,count);\n\t\t\t}\n\t\telse{\n\t\t\tans = -1;\n\t\t}\n\t\t \n\t\t return ans;\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); String s = stdIn.nextLine(); String p = stdIn.nextLine(); int y = -1; for(int j=0;j<s.length();j++){ if(s.charAt(j) == p.charAt(0)){ int count = 1; int i = 0; y = func(s,p,i,j,count); } if(y==1){ break; } } if(y==1){ System.out.println("Yes"); } else{ System.out.println("No"); } } static int func(String s ,String p ,int i ,int j ,int count){ int p_count = (i+1)%p.length(); int s_count = (j+1)%s.length(); int ans = 0; if(count == p.length()){ ans = 1; } else if(s.charAt(s_count) == p.charAt(p_count)){ count++; ans = func(s,p,p_count,s_count,count); } else{ ans = -1; } return ans; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 3, 41, 13, 20, 41, 13, 17, 41, 13, 13, 42, 17, 30, 4, 18, 13, 18, 13, 13, 40, 13, 40, 13, 14, 2, 13, 13, 30, 0, 13, 17, 14, 2, 13, 13, 30, 14, 4, 18, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 127, 5 ], [ 127, 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 ], [ 8, 33 ], [ 33, 34 ], [ 33, 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 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 53, 60 ], [ 60, 61 ], [ 60, 62 ], [ 53, 63 ], [ 63, 64 ], [ 63, 65 ], [ 53, 66 ], [ 66, 67 ], [ 66, 68 ], [ 53, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 75, 76 ], [ 75, 77 ], [ 71, 78 ], [ 78, 79 ], [ 71, 80 ], [ 80, 81 ], [ 71, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 71, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 96, 101 ], [ 95, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 102, 109 ], [ 109, 110 ], [ 109, 111 ], [ 94, 112 ], [ 8, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 6, 124 ], [ 124, 125 ], [ 0, 126 ], [ 126, 127 ], [ 126, 128 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString p = sc.nextLine();\n\t\tString[] S = s.split(\"\");\n\t\tint slength = s.length();\n\t\tint plength = p.length();\n\t\tint same =0;\n\t\tfor (int i = 0; i < slength; i++) {\n\t\t\tif (same == 1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tStringBuilder smalls =new StringBuilder();\n\t\t\tint k = 0;\n\t\t\tint j = i;\n\t\t\twhile (true) {\n\t\t\t\tsmalls.append(S[j]);\n\t\t\t\tj++;\n\t\t\t\tk++;\n\t\t\t\tif (j >= slength) {\n\t\t\t\t\tj = 0;\n\t\t\t\t}\n\t\t\t\tif (k == plength) {\n\t\t\t\t\tif (smalls.toString().equals(p)) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tsame = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (same == 0) {\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\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString p = sc.nextLine();\n\t\tString[] S = s.split(\"\");\n\t\tint slength = s.length();\n\t\tint plength = p.length();\n\t\tint same =0;\n\t\tfor (int i = 0; i < slength; i++) {\n\t\t\tif (same == 1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tStringBuilder smalls =new StringBuilder();\n\t\t\tint k = 0;\n\t\t\tint j = i;\n\t\t\twhile (true) {\n\t\t\t\tsmalls.append(S[j]);\n\t\t\t\tj++;\n\t\t\t\tk++;\n\t\t\t\tif (j >= slength) {\n\t\t\t\t\tj = 0;\n\t\t\t\t}\n\t\t\t\tif (k == plength) {\n\t\t\t\t\tif (smalls.toString().equals(p)) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tsame = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (same == 0) {\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\tString[] S = s.split(\"\");\n\t\tint slength = s.length();\n\t\tint plength = p.length();\n\t\tint same =0;\n\t\tfor (int i = 0; i < slength; i++) {\n\t\t\tif (same == 1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tStringBuilder smalls =new StringBuilder();\n\t\t\tint k = 0;\n\t\t\tint j = i;\n\t\t\twhile (true) {\n\t\t\t\tsmalls.append(S[j]);\n\t\t\t\tj++;\n\t\t\t\tk++;\n\t\t\t\tif (j >= slength) {\n\t\t\t\t\tj = 0;\n\t\t\t\t}\n\t\t\t\tif (k == plength) {\n\t\t\t\t\tif (smalls.toString().equals(p)) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tsame = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (same == 0) {\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\tString[] S = s.split(\"\");\n\t\tint slength = s.length();\n\t\tint plength = p.length();\n\t\tint same =0;\n\t\tfor (int i = 0; i < slength; i++) {\n\t\t\tif (same == 1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tStringBuilder smalls =new StringBuilder();\n\t\t\tint k = 0;\n\t\t\tint j = i;\n\t\t\twhile (true) {\n\t\t\t\tsmalls.append(S[j]);\n\t\t\t\tj++;\n\t\t\t\tk++;\n\t\t\t\tif (j >= slength) {\n\t\t\t\t\tj = 0;\n\t\t\t\t}\n\t\t\t\tif (k == plength) {\n\t\t\t\t\tif (smalls.toString().equals(p)) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tsame = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (same == 0) {\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", "String[] S = s.split(\"\");", "S", "s.split(\"\")", "s.split", "s", "\"\"", "int slength = s.length();", "slength", "s.length()", "s.length", "s", "int plength = p.length();", "plength", "p.length()", "p.length", "p", "int same =0;", "same", "0", "for (int i = 0; i < slength; i++) {\n\t\t\tif (same == 1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tStringBuilder smalls =new StringBuilder();\n\t\t\tint k = 0;\n\t\t\tint j = i;\n\t\t\twhile (true) {\n\t\t\t\tsmalls.append(S[j]);\n\t\t\t\tj++;\n\t\t\t\tk++;\n\t\t\t\tif (j >= slength) {\n\t\t\t\t\tj = 0;\n\t\t\t\t}\n\t\t\t\tif (k == plength) {\n\t\t\t\t\tif (smalls.toString().equals(p)) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tsame = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < slength", "i", "slength", "i++", "i++", "i", "{\n\t\t\tif (same == 1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tStringBuilder smalls =new StringBuilder();\n\t\t\tint k = 0;\n\t\t\tint j = i;\n\t\t\twhile (true) {\n\t\t\t\tsmalls.append(S[j]);\n\t\t\t\tj++;\n\t\t\t\tk++;\n\t\t\t\tif (j >= slength) {\n\t\t\t\t\tj = 0;\n\t\t\t\t}\n\t\t\t\tif (k == plength) {\n\t\t\t\t\tif (smalls.toString().equals(p)) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tsame = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tif (same == 1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tStringBuilder smalls =new StringBuilder();\n\t\t\tint k = 0;\n\t\t\tint j = i;\n\t\t\twhile (true) {\n\t\t\t\tsmalls.append(S[j]);\n\t\t\t\tj++;\n\t\t\t\tk++;\n\t\t\t\tif (j >= slength) {\n\t\t\t\t\tj = 0;\n\t\t\t\t}\n\t\t\t\tif (k == plength) {\n\t\t\t\t\tif (smalls.toString().equals(p)) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tsame = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "if (same == 1) {\n\t\t\t\tbreak;\n\t\t\t}", "same == 1", "same", "1", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "StringBuilder smalls =new StringBuilder();", "smalls", "new StringBuilder()", "int k = 0;", "k", "0", "int j = i;", "j", "i", "while (true) {\n\t\t\t\tsmalls.append(S[j]);\n\t\t\t\tj++;\n\t\t\t\tk++;\n\t\t\t\tif (j >= slength) {\n\t\t\t\t\tj = 0;\n\t\t\t\t}\n\t\t\t\tif (k == plength) {\n\t\t\t\t\tif (smalls.toString().equals(p)) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tsame = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "true", "{\n\t\t\t\tsmalls.append(S[j]);\n\t\t\t\tj++;\n\t\t\t\tk++;\n\t\t\t\tif (j >= slength) {\n\t\t\t\t\tj = 0;\n\t\t\t\t}\n\t\t\t\tif (k == plength) {\n\t\t\t\t\tif (smalls.toString().equals(p)) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tsame = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "smalls.append(S[j])", "smalls.append", "smalls", "S[j]", "S", "j", "j++", "j", "k++", "k", "if (j >= slength) {\n\t\t\t\t\tj = 0;\n\t\t\t\t}", "j >= slength", "j", "slength", "{\n\t\t\t\t\tj = 0;\n\t\t\t\t}", "j = 0", "j", "0", "if (k == plength) {\n\t\t\t\t\tif (smalls.toString().equals(p)) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tsame = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}", "k == plength", "k", "plength", "{\n\t\t\t\t\tif (smalls.toString().equals(p)) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tsame = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}", "if (smalls.toString().equals(p)) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tsame = 1;\n\t\t\t\t\t}", "smalls.toString().equals(p)", "smalls.toString().equals", "smalls.toString()", "smalls.toString", "smalls", "p", "{\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tsame = 1;\n\t\t\t\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "same = 1", "same", "1", "break;", "if (same == 0) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "same == 0", "same", "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", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString p = sc.nextLine();\n\t\tString[] S = s.split(\"\");\n\t\tint slength = s.length();\n\t\tint plength = p.length();\n\t\tint same =0;\n\t\tfor (int i = 0; i < slength; i++) {\n\t\t\tif (same == 1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tStringBuilder smalls =new StringBuilder();\n\t\t\tint k = 0;\n\t\t\tint j = i;\n\t\t\twhile (true) {\n\t\t\t\tsmalls.append(S[j]);\n\t\t\t\tj++;\n\t\t\t\tk++;\n\t\t\t\tif (j >= slength) {\n\t\t\t\t\tj = 0;\n\t\t\t\t}\n\t\t\t\tif (k == plength) {\n\t\t\t\t\tif (smalls.toString().equals(p)) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tsame = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (same == 0) {\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\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tString p = sc.nextLine();\n\t\tString[] S = s.split(\"\");\n\t\tint slength = s.length();\n\t\tint plength = p.length();\n\t\tint same =0;\n\t\tfor (int i = 0; i < slength; i++) {\n\t\t\tif (same == 1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tStringBuilder smalls =new StringBuilder();\n\t\t\tint k = 0;\n\t\t\tint j = i;\n\t\t\twhile (true) {\n\t\t\t\tsmalls.append(S[j]);\n\t\t\t\tj++;\n\t\t\t\tk++;\n\t\t\t\tif (j >= slength) {\n\t\t\t\t\tj = 0;\n\t\t\t\t}\n\t\t\t\tif (k == plength) {\n\t\t\t\t\tif (smalls.toString().equals(p)) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tsame = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (same == 0) {\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(); String[] S = s.split(""); int slength = s.length(); int plength = p.length(); int same =0; for (int i = 0; i < slength; i++) { if (same == 1) { break; } StringBuilder smalls =new StringBuilder(); int k = 0; int j = i; while (true) { smalls.append(S[j]); j++; k++; if (j >= slength) { j = 0; } if (k == plength) { if (smalls.toString().equals(p)) { System.out.println("Yes"); same = 1; } break; } } } if (same == 0) { System.out.println("No"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 8, 4, 18, 2, 13, 13, 13, 17, 17, 4, 18, 13, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 58, 14 ], [ 58, 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 ], [ 32, 33 ], [ 17, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 37, 44 ], [ 37, 45 ], [ 17, 46 ], [ 46, 47 ], [ 47, 48 ], [ 58, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 49, 55 ], [ 55, 56 ], [ 0, 57 ], [ 57, 58 ], [ 57, 59 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\n\npublic class Main {\n public void exec() throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);\n \tString s = br.readLine();\n \tString p = br.readLine();\n \tout.println((s+s).contains(p)?\"Yes\":\"No\");\n out.flush();\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "public class Main {\n public void exec() throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);\n \tString s = br.readLine();\n \tString p = br.readLine();\n \tout.println((s+s).contains(p)?\"Yes\":\"No\");\n out.flush();\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n}", "Main", "public void exec() throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);\n \tString s = br.readLine();\n \tString p = br.readLine();\n \tout.println((s+s).contains(p)?\"Yes\":\"No\");\n out.flush();\n }", "exec", "{\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);\n \tString s = br.readLine();\n \tString p = br.readLine();\n \tout.println((s+s).contains(p)?\"Yes\":\"No\");\n out.flush();\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "PrintWriter out = new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "String s = br.readLine();", "s", "br.readLine()", "br.readLine", "br", "String p = br.readLine();", "p", "br.readLine()", "br.readLine", "br", "out.println((s+s).contains(p)?\"Yes\":\"No\")", "out.println", "out", "(s+s).contains(p)?\"Yes\":\"No\"", "(s+s).contains(p)", "(s+s).contains", "(s+s)", "s", "s", "p", "\"Yes\"", "\"No\"", "out.flush()", "out.flush", "out", "public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }", "main", "{\n \tnew Main().exec();\n }", "new Main().exec()", "new Main().exec", "new Main()", "String[] args", "args", "public class Main {\n public void exec() throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);\n \tString s = br.readLine();\n \tString p = br.readLine();\n \tout.println((s+s).contains(p)?\"Yes\":\"No\");\n out.flush();\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n}", "public class Main {\n public void exec() throws IOException {\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tPrintWriter out = new PrintWriter(System.out);\n \tString s = br.readLine();\n \tString p = br.readLine();\n \tout.println((s+s).contains(p)?\"Yes\":\"No\");\n out.flush();\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; public class Main { public void exec() throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); PrintWriter out = new PrintWriter(System.out); String s = br.readLine(); String p = br.readLine(); out.println((s+s).contains(p)?"Yes":"No"); out.flush(); } public static void main(String[] args) throws IOException { new Main().exec(); } }
[ 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, 4, 18, 18, 13, 13, 8, 4, 18, 13, 2, 2, 17, 13, 17, 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 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 35, 35 ], [ 35, 36 ], [ 35, 37 ], [ 35, 38 ], [ 30, 39 ], [ 30, 40 ], [ 6, 41 ], [ 41, 42 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n\n String s = input.nextLine();\n String p = input.nextLine();\n s += s;\n\n System.out.println(s.matches(\".*\" + p + \".*\") ? \"Yes\" : \"No\");\n\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n\n String s = input.nextLine();\n String p = input.nextLine();\n s += s;\n\n System.out.println(s.matches(\".*\" + p + \".*\") ? \"Yes\" : \"No\");\n\n }\n}", "Main", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n\n String s = input.nextLine();\n String p = input.nextLine();\n s += s;\n\n System.out.println(s.matches(\".*\" + p + \".*\") ? \"Yes\" : \"No\");\n\n }", "main", "{\n Scanner input = new Scanner(System.in);\n\n String s = input.nextLine();\n String p = input.nextLine();\n s += s;\n\n System.out.println(s.matches(\".*\" + p + \".*\") ? \"Yes\" : \"No\");\n\n }", "Scanner input = new Scanner(System.in);", "input", "new Scanner(System.in)", "String s = input.nextLine();", "s", "input.nextLine()", "input.nextLine", "input", "String p = input.nextLine();", "p", "input.nextLine()", "input.nextLine", "input", "s += s", "s", "s", "System.out.println(s.matches(\".*\" + p + \".*\") ? \"Yes\" : \"No\")", "System.out.println", "System.out", "System", "System.out", "s.matches(\".*\" + p + \".*\") ? \"Yes\" : \"No\"", "s.matches(\".*\" + p + \".*\")", "s.matches", "s", "\".*\" + p + \".*\"", "\".*\" + p + \".*\"", "\".*\"", "p", "\".*\"", "\"Yes\"", "\"No\"", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); String s = input.nextLine(); String p = input.nextLine(); s += s; System.out.println(s.matches(".*" + p + ".*") ? "Yes" : "No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 41, 13, 41, 13, 41, 13, 17, 41, 13, 17, 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, 11, 1, 0, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 11, 1, 0, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 2, 13, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 13, 30, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 2, 13, 13, 18, 13, 13, 30, 0, 13, 17, 0, 13, 17, 3, 40, 13, 14, 2, 13, 13, 30, 0, 13, 17, 0, 13, 17, 3, 14, 2, 13, 17, 30, 3, 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 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 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 ], [ 40, 42 ], [ 42, 43 ], [ 42, 44 ], [ 8, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 8, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 55, 65 ], [ 65, 66 ], [ 66, 67 ], [ 55, 68 ], [ 69, 69 ], [ 8, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 70, 80 ], [ 80, 81 ], [ 81, 82 ], [ 70, 83 ], [ 84, 84 ], [ 8, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 8, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 95, 96 ], [ 95, 97 ], [ 90, 98 ], [ 98, 99 ], [ 99, 100 ], [ 90, 101 ], [ 102, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 108, 109 ], [ 108, 110 ], [ 103, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 117, 118 ], [ 117, 119 ], [ 112, 120 ], [ 120, 121 ], [ 121, 122 ], [ 112, 123 ], [ 124, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 129, 131 ], [ 126, 132 ], [ 132, 133 ], [ 132, 134 ], [ 125, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 135, 139 ], [ 139, 140 ], [ 139, 141 ], [ 135, 142 ], [ 124, 143 ], [ 143, 144 ], [ 124, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 153, 154 ], [ 153, 155 ], [ 149, 156 ], [ 102, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 157, 161 ], [ 161, 162 ], [ 8, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 163, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 168, 173 ], [ 163, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 175, 180 ], [ 6, 181 ], [ 181, 182 ] ]
[ "import java.util.Scanner;\n\nclass Main\n{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\n\tint a = 0;\n\tint tas = 0;;\n\tint q;\n\tint i;\n\tint z;\n\tint j = 0;\n\tint b = 0;\n\t\n\tString Bun = scan.nextLine();\n\tString Miz = scan.nextLine();\n\t\n\tBun = Bun + Bun;\n\t\n\tchar[] bun = Bun.toCharArray();\n\tchar[] miz = Miz.toCharArray();\n\t\t\n\tfor(q=0; q<miz.length; q++){\n\t}\n\t\t\n\tfor(z=0; z<bun.length; z++){\n\t}\n\t\t\n\tint x = z - q;\n\t\n\tfor(i=0; i<x; i++){\n\t\tif(bun[i]==miz[j]){\n\t\t\tfor(j=0; j<=q; j++){\n\t\t\t\tif(bun[i+j]!=miz[j])\t{\n\t\t\t\t\ttas = 0;\n\t\t\t\t\tj = 0;\n\t\t\t\t\tbreak;\t\t\t\t}\n\t\t\t\ttas++;\t\n\t\t\t\tif(tas==q){\n\t\t\t\ta = 1;\n\t\t\t\tb = 1;\n\t\t\t\tbreak; }}\n\t\t}\n\t\tif(b==1){\n\t\t\tbreak;}\n\t}\n\t\tif(a==1){\t\n\t\t\tSystem.out.println(\"Yes\");}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main\n{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\n\tint a = 0;\n\tint tas = 0;;\n\tint q;\n\tint i;\n\tint z;\n\tint j = 0;\n\tint b = 0;\n\t\n\tString Bun = scan.nextLine();\n\tString Miz = scan.nextLine();\n\t\n\tBun = Bun + Bun;\n\t\n\tchar[] bun = Bun.toCharArray();\n\tchar[] miz = Miz.toCharArray();\n\t\t\n\tfor(q=0; q<miz.length; q++){\n\t}\n\t\t\n\tfor(z=0; z<bun.length; z++){\n\t}\n\t\t\n\tint x = z - q;\n\t\n\tfor(i=0; i<x; i++){\n\t\tif(bun[i]==miz[j]){\n\t\t\tfor(j=0; j<=q; j++){\n\t\t\t\tif(bun[i+j]!=miz[j])\t{\n\t\t\t\t\ttas = 0;\n\t\t\t\t\tj = 0;\n\t\t\t\t\tbreak;\t\t\t\t}\n\t\t\t\ttas++;\t\n\t\t\t\tif(tas==q){\n\t\t\t\ta = 1;\n\t\t\t\tb = 1;\n\t\t\t\tbreak; }}\n\t\t}\n\t\tif(b==1){\n\t\t\tbreak;}\n\t}\n\t\tif(a==1){\t\n\t\t\tSystem.out.println(\"Yes\");}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\n\tint a = 0;\n\tint tas = 0;;\n\tint q;\n\tint i;\n\tint z;\n\tint j = 0;\n\tint b = 0;\n\t\n\tString Bun = scan.nextLine();\n\tString Miz = scan.nextLine();\n\t\n\tBun = Bun + Bun;\n\t\n\tchar[] bun = Bun.toCharArray();\n\tchar[] miz = Miz.toCharArray();\n\t\t\n\tfor(q=0; q<miz.length; q++){\n\t}\n\t\t\n\tfor(z=0; z<bun.length; z++){\n\t}\n\t\t\n\tint x = z - q;\n\t\n\tfor(i=0; i<x; i++){\n\t\tif(bun[i]==miz[j]){\n\t\t\tfor(j=0; j<=q; j++){\n\t\t\t\tif(bun[i+j]!=miz[j])\t{\n\t\t\t\t\ttas = 0;\n\t\t\t\t\tj = 0;\n\t\t\t\t\tbreak;\t\t\t\t}\n\t\t\t\ttas++;\t\n\t\t\t\tif(tas==q){\n\t\t\t\ta = 1;\n\t\t\t\tb = 1;\n\t\t\t\tbreak; }}\n\t\t}\n\t\tif(b==1){\n\t\t\tbreak;}\n\t}\n\t\tif(a==1){\t\n\t\t\tSystem.out.println(\"Yes\");}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\n\tint a = 0;\n\tint tas = 0;;\n\tint q;\n\tint i;\n\tint z;\n\tint j = 0;\n\tint b = 0;\n\t\n\tString Bun = scan.nextLine();\n\tString Miz = scan.nextLine();\n\t\n\tBun = Bun + Bun;\n\t\n\tchar[] bun = Bun.toCharArray();\n\tchar[] miz = Miz.toCharArray();\n\t\t\n\tfor(q=0; q<miz.length; q++){\n\t}\n\t\t\n\tfor(z=0; z<bun.length; z++){\n\t}\n\t\t\n\tint x = z - q;\n\t\n\tfor(i=0; i<x; i++){\n\t\tif(bun[i]==miz[j]){\n\t\t\tfor(j=0; j<=q; j++){\n\t\t\t\tif(bun[i+j]!=miz[j])\t{\n\t\t\t\t\ttas = 0;\n\t\t\t\t\tj = 0;\n\t\t\t\t\tbreak;\t\t\t\t}\n\t\t\t\ttas++;\t\n\t\t\t\tif(tas==q){\n\t\t\t\ta = 1;\n\t\t\t\tb = 1;\n\t\t\t\tbreak; }}\n\t\t}\n\t\tif(b==1){\n\t\t\tbreak;}\n\t}\n\t\tif(a==1){\t\n\t\t\tSystem.out.println(\"Yes\");}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int a = 0;", "a", "0", "int tas = 0;", "tas", "0", "int q;", "q", "int i;", "i", "int z;", "z", "int j = 0;", "j", "0", "int b = 0;", "b", "0", "String Bun = scan.nextLine();", "Bun", "scan.nextLine()", "scan.nextLine", "scan", "String Miz = scan.nextLine();", "Miz", "scan.nextLine()", "scan.nextLine", "scan", "Bun = Bun + Bun", "Bun", "Bun + Bun", "Bun", "Bun", "char[] bun = Bun.toCharArray();", "bun", "Bun.toCharArray()", "Bun.toCharArray", "Bun", "char[] miz = Miz.toCharArray();", "miz", "Miz.toCharArray()", "Miz.toCharArray", "Miz", "for(q=0; q<miz.length; q++){\n\t}", "q=0;", "q=0", "q", "0", "q<miz.length", "q", "miz.length", "miz", "miz.length", "q++", "q++", "q", "{\n\t}", "{\n\t}", "for(z=0; z<bun.length; z++){\n\t}", "z=0;", "z=0", "z", "0", "z<bun.length", "z", "bun.length", "bun", "bun.length", "z++", "z++", "z", "{\n\t}", "{\n\t}", "int x = z - q;", "x", "z - q", "z", "q", "for(i=0; i<x; i++){\n\t\tif(bun[i]==miz[j]){\n\t\t\tfor(j=0; j<=q; j++){\n\t\t\t\tif(bun[i+j]!=miz[j])\t{\n\t\t\t\t\ttas = 0;\n\t\t\t\t\tj = 0;\n\t\t\t\t\tbreak;\t\t\t\t}\n\t\t\t\ttas++;\t\n\t\t\t\tif(tas==q){\n\t\t\t\ta = 1;\n\t\t\t\tb = 1;\n\t\t\t\tbreak; }}\n\t\t}\n\t\tif(b==1){\n\t\t\tbreak;}\n\t}", "i=0;", "i=0", "i", "0", "i<x", "i", "x", "i++", "i++", "i", "{\n\t\tif(bun[i]==miz[j]){\n\t\t\tfor(j=0; j<=q; j++){\n\t\t\t\tif(bun[i+j]!=miz[j])\t{\n\t\t\t\t\ttas = 0;\n\t\t\t\t\tj = 0;\n\t\t\t\t\tbreak;\t\t\t\t}\n\t\t\t\ttas++;\t\n\t\t\t\tif(tas==q){\n\t\t\t\ta = 1;\n\t\t\t\tb = 1;\n\t\t\t\tbreak; }}\n\t\t}\n\t\tif(b==1){\n\t\t\tbreak;}\n\t}", "{\n\t\tif(bun[i]==miz[j]){\n\t\t\tfor(j=0; j<=q; j++){\n\t\t\t\tif(bun[i+j]!=miz[j])\t{\n\t\t\t\t\ttas = 0;\n\t\t\t\t\tj = 0;\n\t\t\t\t\tbreak;\t\t\t\t}\n\t\t\t\ttas++;\t\n\t\t\t\tif(tas==q){\n\t\t\t\ta = 1;\n\t\t\t\tb = 1;\n\t\t\t\tbreak; }}\n\t\t}\n\t\tif(b==1){\n\t\t\tbreak;}\n\t}", "if(bun[i]==miz[j]){\n\t\t\tfor(j=0; j<=q; j++){\n\t\t\t\tif(bun[i+j]!=miz[j])\t{\n\t\t\t\t\ttas = 0;\n\t\t\t\t\tj = 0;\n\t\t\t\t\tbreak;\t\t\t\t}\n\t\t\t\ttas++;\t\n\t\t\t\tif(tas==q){\n\t\t\t\ta = 1;\n\t\t\t\tb = 1;\n\t\t\t\tbreak; }}\n\t\t}", "bun[i]==miz[j]", "bun[i]", "bun", "i", "miz[j]", "miz", "j", "{\n\t\t\tfor(j=0; j<=q; j++){\n\t\t\t\tif(bun[i+j]!=miz[j])\t{\n\t\t\t\t\ttas = 0;\n\t\t\t\t\tj = 0;\n\t\t\t\t\tbreak;\t\t\t\t}\n\t\t\t\ttas++;\t\n\t\t\t\tif(tas==q){\n\t\t\t\ta = 1;\n\t\t\t\tb = 1;\n\t\t\t\tbreak; }}\n\t\t}", "for(j=0; j<=q; j++){\n\t\t\t\tif(bun[i+j]!=miz[j])\t{\n\t\t\t\t\ttas = 0;\n\t\t\t\t\tj = 0;\n\t\t\t\t\tbreak;\t\t\t\t}\n\t\t\t\ttas++;\t\n\t\t\t\tif(tas==q){\n\t\t\t\ta = 1;\n\t\t\t\tb = 1;\n\t\t\t\tbreak; }}", "j=0;", "j=0", "j", "0", "j<=q", "j", "q", "j++", "j++", "j", "{\n\t\t\t\tif(bun[i+j]!=miz[j])\t{\n\t\t\t\t\ttas = 0;\n\t\t\t\t\tj = 0;\n\t\t\t\t\tbreak;\t\t\t\t}\n\t\t\t\ttas++;\t\n\t\t\t\tif(tas==q){\n\t\t\t\ta = 1;\n\t\t\t\tb = 1;\n\t\t\t\tbreak; }}", "{\n\t\t\t\tif(bun[i+j]!=miz[j])\t{\n\t\t\t\t\ttas = 0;\n\t\t\t\t\tj = 0;\n\t\t\t\t\tbreak;\t\t\t\t}\n\t\t\t\ttas++;\t\n\t\t\t\tif(tas==q){\n\t\t\t\ta = 1;\n\t\t\t\tb = 1;\n\t\t\t\tbreak; }}", "if(bun[i+j]!=miz[j])\t{\n\t\t\t\t\ttas = 0;\n\t\t\t\t\tj = 0;\n\t\t\t\t\tbreak;\t\t\t\t}", "bun[i+j]!=miz[j]", "bun[i+j]", "bun", "i+j", "i", "j", "miz[j]", "miz", "j", "{\n\t\t\t\t\ttas = 0;\n\t\t\t\t\tj = 0;\n\t\t\t\t\tbreak;\t\t\t\t}", "tas = 0", "tas", "0", "j = 0", "j", "0", "break;", "tas++", "tas", "if(tas==q){\n\t\t\t\ta = 1;\n\t\t\t\tb = 1;\n\t\t\t\tbreak; }", "tas==q", "tas", "q", "{\n\t\t\t\ta = 1;\n\t\t\t\tb = 1;\n\t\t\t\tbreak; }", "a = 1", "a", "1", "b = 1", "b", "1", "break;", "if(b==1){\n\t\t\tbreak;}", "b==1", "b", "1", "{\n\t\t\tbreak;}", "break;", "if(a==1){\t\n\t\t\tSystem.out.println(\"Yes\");}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");}", "a==1", "a", "1", "{\t\n\t\t\tSystem.out.println(\"Yes\");}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n\t\t\tSystem.out.println(\"No\");}", "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); int a = 0; int tas = 0;; int q; int i; int z; int j = 0; int b = 0; String Bun = scan.nextLine(); String Miz = scan.nextLine(); Bun = Bun + Bun; char[] bun = Bun.toCharArray(); char[] miz = Miz.toCharArray(); for(q=0; q<miz.length; q++){ } for(z=0; z<bun.length; z++){ } int x = z - q; for(i=0; i<x; i++){ if(bun[i]==miz[j]){ for(j=0; j<=q; j++){ if(bun[i+j]!=miz[j]) { tas = 0; j = 0; break; } tas++; if(tas==q){ a = 1; b = 1; break; }} } if(b==1){ break;} } if(a==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, 2, 13, 13, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 8, 4, 18, 13, 2, 2, 17, 13, 17, 17, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 46, 5 ], [ 46, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 37, 37 ], [ 37, 38 ], [ 37, 39 ], [ 37, 40 ], [ 32, 41 ], [ 32, 42 ], [ 6, 43 ], [ 43, 44 ], [ 0, 45 ], [ 45, 46 ], [ 45, 47 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String string = scan.nextLine();\n String strings = string + string;\n String keywords = scan.nextLine();\n\n System.out.println(strings.matches(\".*\" + keywords + \".*\")? \"Yes\" : \"No\");\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String string = scan.nextLine();\n String strings = string + string;\n String keywords = scan.nextLine();\n\n System.out.println(strings.matches(\".*\" + keywords + \".*\")? \"Yes\" : \"No\");\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String string = scan.nextLine();\n String strings = string + string;\n String keywords = scan.nextLine();\n\n System.out.println(strings.matches(\".*\" + keywords + \".*\")? \"Yes\" : \"No\");\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n String string = scan.nextLine();\n String strings = string + string;\n String keywords = scan.nextLine();\n\n System.out.println(strings.matches(\".*\" + keywords + \".*\")? \"Yes\" : \"No\");\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String string = scan.nextLine();", "string", "scan.nextLine()", "scan.nextLine", "scan", "String strings = string + string;", "strings", "string + string", "string", "string", "String keywords = scan.nextLine();", "keywords", "scan.nextLine()", "scan.nextLine", "scan", "System.out.println(strings.matches(\".*\" + keywords + \".*\")? \"Yes\" : \"No\")", "System.out.println", "System.out", "System", "System.out", "strings.matches(\".*\" + keywords + \".*\")? \"Yes\" : \"No\"", "strings.matches(\".*\" + keywords + \".*\")", "strings.matches", "strings", "\".*\" + keywords + \".*\"", "\".*\" + keywords + \".*\"", "\".*\"", "keywords", "\".*\"", "\"Yes\"", "\"No\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String string = scan.nextLine();\n String strings = string + string;\n String keywords = scan.nextLine();\n\n System.out.println(strings.matches(\".*\" + keywords + \".*\")? \"Yes\" : \"No\");\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String string = scan.nextLine();\n String strings = string + string;\n String keywords = scan.nextLine();\n\n System.out.println(strings.matches(\".*\" + keywords + \".*\")? \"Yes\" : \"No\");\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String string = scan.nextLine(); String strings = string + string; String keywords = scan.nextLine(); System.out.println(strings.matches(".*" + keywords + ".*")? "Yes" : "No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 41, 13, 17, 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, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 13, 18, 13, 13, 30, 0, 13, 17, 4, 18, 13, 18, 13, 13, 40, 13, 14, 4, 18, 4, 18, 13, 13, 30, 0, 13, 17, 3, 4, 18, 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 ], [ 124, 11 ], [ 124, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 14, 33 ], [ 33, 34 ], [ 14, 35 ], [ 35, 36 ], [ 35, 37 ], [ 14, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 45, 47 ], [ 38, 48 ], [ 48, 49 ], [ 49, 50 ], [ 38, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 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 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 71, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 70, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 84, 85 ], [ 84, 86 ], [ 70, 87 ], [ 87, 88 ], [ 52, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 90, 95 ], [ 89, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 52, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 14, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 105, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 12, 121 ], [ 121, 122 ], [ 0, 123 ], [ 123, 124 ], [ 123, 125 ] ]
[ "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\tStringBuilder sb = new StringBuilder();\n\n\t\tchar[] s = br.readLine().toCharArray();\n\t\tString p = br.readLine();\n\t\tint point;\n\t\tBoolean flag = false;\n\n\t\tfor(int i = 0; i < s.length; i++) {\n\t\t\tpoint = i;\n\t\t\tfor(int j = 0; j < p.length(); j++) {\n\t\t\t\tif(point == s.length) {\n\t\t\t\t\tpoint = 0;\n\t\t\t\t}\n\t\t\t\tsb.append(s[point]);\n\t\t\t\tpoint++;\n\t\t\t}\n\n\t\t\tif(sb.toString().equals(p)) {\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsb.setLength(0);\n\t\t}\n\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.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\tStringBuilder sb = new StringBuilder();\n\n\t\tchar[] s = br.readLine().toCharArray();\n\t\tString p = br.readLine();\n\t\tint point;\n\t\tBoolean flag = false;\n\n\t\tfor(int i = 0; i < s.length; i++) {\n\t\t\tpoint = i;\n\t\t\tfor(int j = 0; j < p.length(); j++) {\n\t\t\t\tif(point == s.length) {\n\t\t\t\t\tpoint = 0;\n\t\t\t\t}\n\t\t\t\tsb.append(s[point]);\n\t\t\t\tpoint++;\n\t\t\t}\n\n\t\t\tif(sb.toString().equals(p)) {\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsb.setLength(0);\n\t\t}\n\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) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tchar[] s = br.readLine().toCharArray();\n\t\tString p = br.readLine();\n\t\tint point;\n\t\tBoolean flag = false;\n\n\t\tfor(int i = 0; i < s.length; i++) {\n\t\t\tpoint = i;\n\t\t\tfor(int j = 0; j < p.length(); j++) {\n\t\t\t\tif(point == s.length) {\n\t\t\t\t\tpoint = 0;\n\t\t\t\t}\n\t\t\t\tsb.append(s[point]);\n\t\t\t\tpoint++;\n\t\t\t}\n\n\t\t\tif(sb.toString().equals(p)) {\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsb.setLength(0);\n\t\t}\n\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\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tchar[] s = br.readLine().toCharArray();\n\t\tString p = br.readLine();\n\t\tint point;\n\t\tBoolean flag = false;\n\n\t\tfor(int i = 0; i < s.length; i++) {\n\t\t\tpoint = i;\n\t\t\tfor(int j = 0; j < p.length(); j++) {\n\t\t\t\tif(point == s.length) {\n\t\t\t\t\tpoint = 0;\n\t\t\t\t}\n\t\t\t\tsb.append(s[point]);\n\t\t\t\tpoint++;\n\t\t\t}\n\n\t\t\tif(sb.toString().equals(p)) {\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsb.setLength(0);\n\t\t}\n\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}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "char[] s = br.readLine().toCharArray();", "s", "br.readLine().toCharArray()", "br.readLine().toCharArray", "br.readLine()", "br.readLine", "br", "String p = br.readLine();", "p", "br.readLine()", "br.readLine", "br", "int point;", "point", "Boolean flag = false;", "flag", "false", "for(int i = 0; i < s.length; i++) {\n\t\t\tpoint = i;\n\t\t\tfor(int j = 0; j < p.length(); j++) {\n\t\t\t\tif(point == s.length) {\n\t\t\t\t\tpoint = 0;\n\t\t\t\t}\n\t\t\t\tsb.append(s[point]);\n\t\t\t\tpoint++;\n\t\t\t}\n\n\t\t\tif(sb.toString().equals(p)) {\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsb.setLength(0);\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\tpoint = i;\n\t\t\tfor(int j = 0; j < p.length(); j++) {\n\t\t\t\tif(point == s.length) {\n\t\t\t\t\tpoint = 0;\n\t\t\t\t}\n\t\t\t\tsb.append(s[point]);\n\t\t\t\tpoint++;\n\t\t\t}\n\n\t\t\tif(sb.toString().equals(p)) {\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsb.setLength(0);\n\t\t}", "{\n\t\t\tpoint = i;\n\t\t\tfor(int j = 0; j < p.length(); j++) {\n\t\t\t\tif(point == s.length) {\n\t\t\t\t\tpoint = 0;\n\t\t\t\t}\n\t\t\t\tsb.append(s[point]);\n\t\t\t\tpoint++;\n\t\t\t}\n\n\t\t\tif(sb.toString().equals(p)) {\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsb.setLength(0);\n\t\t}", "point = i", "point", "i", "for(int j = 0; j < p.length(); j++) {\n\t\t\t\tif(point == s.length) {\n\t\t\t\t\tpoint = 0;\n\t\t\t\t}\n\t\t\t\tsb.append(s[point]);\n\t\t\t\tpoint++;\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\tif(point == s.length) {\n\t\t\t\t\tpoint = 0;\n\t\t\t\t}\n\t\t\t\tsb.append(s[point]);\n\t\t\t\tpoint++;\n\t\t\t}", "{\n\t\t\t\tif(point == s.length) {\n\t\t\t\t\tpoint = 0;\n\t\t\t\t}\n\t\t\t\tsb.append(s[point]);\n\t\t\t\tpoint++;\n\t\t\t}", "if(point == s.length) {\n\t\t\t\t\tpoint = 0;\n\t\t\t\t}", "point == s.length", "point", "s.length", "s", "s.length", "{\n\t\t\t\t\tpoint = 0;\n\t\t\t\t}", "point = 0", "point", "0", "sb.append(s[point])", "sb.append", "sb", "s[point]", "s", "point", "point++", "point", "if(sb.toString().equals(p)) {\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}", "sb.toString().equals(p)", "sb.toString().equals", "sb.toString()", "sb.toString", "sb", "p", "{\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}", "flag = true", "flag", "true", "break;", "sb.setLength(0)", "sb.setLength", "sb", "0", "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", "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\tStringBuilder sb = new StringBuilder();\n\n\t\tchar[] s = br.readLine().toCharArray();\n\t\tString p = br.readLine();\n\t\tint point;\n\t\tBoolean flag = false;\n\n\t\tfor(int i = 0; i < s.length; i++) {\n\t\t\tpoint = i;\n\t\t\tfor(int j = 0; j < p.length(); j++) {\n\t\t\t\tif(point == s.length) {\n\t\t\t\t\tpoint = 0;\n\t\t\t\t}\n\t\t\t\tsb.append(s[point]);\n\t\t\t\tpoint++;\n\t\t\t}\n\n\t\t\tif(sb.toString().equals(p)) {\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsb.setLength(0);\n\t\t}\n\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}", "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\tStringBuilder sb = new StringBuilder();\n\n\t\tchar[] s = br.readLine().toCharArray();\n\t\tString p = br.readLine();\n\t\tint point;\n\t\tBoolean flag = false;\n\n\t\tfor(int i = 0; i < s.length; i++) {\n\t\t\tpoint = i;\n\t\t\tfor(int j = 0; j < p.length(); j++) {\n\t\t\t\tif(point == s.length) {\n\t\t\t\t\tpoint = 0;\n\t\t\t\t}\n\t\t\t\tsb.append(s[point]);\n\t\t\t\tpoint++;\n\t\t\t}\n\n\t\t\tif(sb.toString().equals(p)) {\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsb.setLength(0);\n\t\t}\n\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" ]
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 sb = new StringBuilder(); char[] s = br.readLine().toCharArray(); String p = br.readLine(); int point; Boolean flag = false; for(int i = 0; i < s.length; i++) { point = i; for(int j = 0; j < p.length(); j++) { if(point == s.length) { point = 0; } sb.append(s[point]); point++; } if(sb.toString().equals(p)) { flag = true; break; } sb.setLength(0); } if(flag) { 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, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 17, 13, 14, 2, 2, 2, 13, 40, 17, 13, 2, 2, 13, 4, 18, 13, 4, 18, 13, 3, 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, 2, 13, 17, 3, 14, 2, 13, 2, 4, 18, 13, 17, 30, 0, 13, 17, 3, 14, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 142, 11 ], [ 142, 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 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 36, 46 ], [ 47, 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 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 60, 65 ], [ 60, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 66, 72 ], [ 72, 73 ], [ 73, 74 ], [ 58, 75 ], [ 47, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 76, 86 ], [ 86, 87 ], [ 87, 88 ], [ 76, 89 ], [ 90, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 96, 97 ], [ 96, 98 ], [ 92, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 91, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 103, 109 ], [ 90, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 113, 117 ], [ 110, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 14, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 123, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 12, 139 ], [ 139, 140 ], [ 0, 141 ], [ 141, 142 ], [ 141, 143 ] ]
[ "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 for(int i = 0; i< word.length();){\n \tint index = word.indexOf(key.charAt(0), i);\n \tif(index == -1 || result || index + key.length() > word.length()) break;\n\n \tfor(int j = 0; j < key.length();j++){\n \t\tif(word.charAt(j + index)!=key.charAt(j)){\n \t\t\ti = index + 1;\n \t\t\tbreak;\n \t\t}\n \t\tif(j == key.length() -1){\n \t\t\tresult = true;\n \t\t\tbreak;\n \t\t}\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 for(int i = 0; i< word.length();){\n \tint index = word.indexOf(key.charAt(0), i);\n \tif(index == -1 || result || index + key.length() > word.length()) break;\n\n \tfor(int j = 0; j < key.length();j++){\n \t\tif(word.charAt(j + index)!=key.charAt(j)){\n \t\t\ti = index + 1;\n \t\t\tbreak;\n \t\t}\n \t\tif(j == key.length() -1){\n \t\t\tresult = true;\n \t\t\tbreak;\n \t\t}\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 for(int i = 0; i< word.length();){\n \tint index = word.indexOf(key.charAt(0), i);\n \tif(index == -1 || result || index + key.length() > word.length()) break;\n\n \tfor(int j = 0; j < key.length();j++){\n \t\tif(word.charAt(j + index)!=key.charAt(j)){\n \t\t\ti = index + 1;\n \t\t\tbreak;\n \t\t}\n \t\tif(j == key.length() -1){\n \t\t\tresult = true;\n \t\t\tbreak;\n \t\t}\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 for(int i = 0; i< word.length();){\n \tint index = word.indexOf(key.charAt(0), i);\n \tif(index == -1 || result || index + key.length() > word.length()) break;\n\n \tfor(int j = 0; j < key.length();j++){\n \t\tif(word.charAt(j + index)!=key.charAt(j)){\n \t\t\ti = index + 1;\n \t\t\tbreak;\n \t\t}\n \t\tif(j == key.length() -1){\n \t\t\tresult = true;\n \t\t\tbreak;\n \t\t}\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", "for(int i = 0; i< word.length();){\n \tint index = word.indexOf(key.charAt(0), i);\n \tif(index == -1 || result || index + key.length() > word.length()) break;\n\n \tfor(int j = 0; j < key.length();j++){\n \t\tif(word.charAt(j + index)!=key.charAt(j)){\n \t\t\ti = index + 1;\n \t\t\tbreak;\n \t\t}\n \t\tif(j == key.length() -1){\n \t\t\tresult = true;\n \t\t\tbreak;\n \t\t}\n \t}\n }", "int i = 0;", "int i = 0;", "i", "0", "i< word.length()", "i", "word.length()", "word.length", "word", "{\n \tint index = word.indexOf(key.charAt(0), i);\n \tif(index == -1 || result || index + key.length() > word.length()) break;\n\n \tfor(int j = 0; j < key.length();j++){\n \t\tif(word.charAt(j + index)!=key.charAt(j)){\n \t\t\ti = index + 1;\n \t\t\tbreak;\n \t\t}\n \t\tif(j == key.length() -1){\n \t\t\tresult = true;\n \t\t\tbreak;\n \t\t}\n \t}\n }", "{\n \tint index = word.indexOf(key.charAt(0), i);\n \tif(index == -1 || result || index + key.length() > word.length()) break;\n\n \tfor(int j = 0; j < key.length();j++){\n \t\tif(word.charAt(j + index)!=key.charAt(j)){\n \t\t\ti = index + 1;\n \t\t\tbreak;\n \t\t}\n \t\tif(j == key.length() -1){\n \t\t\tresult = true;\n \t\t\tbreak;\n \t\t}\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 == -1 || result || index + key.length() > word.length()) break;", "index == -1 || result || index + key.length() > word.length()", "index == -1 || result || index + key.length() > word.length()", "index == -1", "index", "-1", "1", "result", "index + key.length() > word.length()", "index + key.length()", "index", "key.length()", "key.length", "key", "word.length()", "word.length", "word", "break;", "for(int j = 0; j < key.length();j++){\n \t\tif(word.charAt(j + index)!=key.charAt(j)){\n \t\t\ti = index + 1;\n \t\t\tbreak;\n \t\t}\n \t\tif(j == key.length() -1){\n \t\t\tresult = true;\n \t\t\tbreak;\n \t\t}\n \t}", "int j = 0;", "int j = 0;", "j", "0", "j < key.length()", "j", "key.length()", "key.length", "key", "j++", "j++", "j", "{\n \t\tif(word.charAt(j + index)!=key.charAt(j)){\n \t\t\ti = index + 1;\n \t\t\tbreak;\n \t\t}\n \t\tif(j == key.length() -1){\n \t\t\tresult = true;\n \t\t\tbreak;\n \t\t}\n \t}", "{\n \t\tif(word.charAt(j + index)!=key.charAt(j)){\n \t\t\ti = index + 1;\n \t\t\tbreak;\n \t\t}\n \t\tif(j == key.length() -1){\n \t\t\tresult = true;\n \t\t\tbreak;\n \t\t}\n \t}", "if(word.charAt(j + index)!=key.charAt(j)){\n \t\t\ti = index + 1;\n \t\t\tbreak;\n \t\t}", "word.charAt(j + index)!=key.charAt(j)", "word.charAt(j + index)", "word.charAt", "word", "j + index", "j", "index", "key.charAt(j)", "key.charAt", "key", "j", "{\n \t\t\ti = index + 1;\n \t\t\tbreak;\n \t\t}", "i = index + 1", "i", "index + 1", "index", "1", "break;", "if(j == key.length() -1){\n \t\t\tresult = true;\n \t\t\tbreak;\n \t\t}", "j == key.length() -1", "j", "key.length() -1", "key.length()", "key.length", "key", "1", "{\n \t\t\tresult = true;\n \t\t\tbreak;\n \t\t}", "result = true", "result", "true", "break;", "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 for(int i = 0; i< word.length();){\n \tint index = word.indexOf(key.charAt(0), i);\n \tif(index == -1 || result || index + key.length() > word.length()) break;\n\n \tfor(int j = 0; j < key.length();j++){\n \t\tif(word.charAt(j + index)!=key.charAt(j)){\n \t\t\ti = index + 1;\n \t\t\tbreak;\n \t\t}\n \t\tif(j == key.length() -1){\n \t\t\tresult = true;\n \t\t\tbreak;\n \t\t}\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 for(int i = 0; i< word.length();){\n \tint index = word.indexOf(key.charAt(0), i);\n \tif(index == -1 || result || index + key.length() > word.length()) break;\n\n \tfor(int j = 0; j < key.length();j++){\n \t\tif(word.charAt(j + index)!=key.charAt(j)){\n \t\t\ti = index + 1;\n \t\t\tbreak;\n \t\t}\n \t\tif(j == key.length() -1){\n \t\t\tresult = true;\n \t\t\tbreak;\n \t\t}\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; for(int i = 0; i< word.length();){ int index = word.indexOf(key.charAt(0), i); if(index == -1 || result || index + key.length() > word.length()) break; for(int j = 0; j < key.length();j++){ if(word.charAt(j + index)!=key.charAt(j)){ i = index + 1; break; } if(j == key.length() -1){ result = true; break; } } } 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, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 20, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 4, 18, 13, 2, 2, 13, 13, 4, 18, 13, 14, 4, 18, 4, 18, 18, 13, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 110, 11 ], [ 110, 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 ], [ 31, 32 ], [ 32, 33 ], [ 14, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 34, 44 ], [ 44, 45 ], [ 45, 46 ], [ 34, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 48, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 54, 64 ], [ 64, 65 ], [ 65, 66 ], [ 54, 67 ], [ 68, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 82, 83 ], [ 48, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 85, 92 ], [ 84, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 93, 100 ], [ 14, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 12, 107 ], [ 107, 108 ], [ 0, 109 ], [ 109, 110 ], [ 109, 111 ] ]
[ "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\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\t\tString input = br.readLine();\n\t\tString segment = br.readLine();\n\t\t\n\t\tStringBuffer[] sbArray = new StringBuffer[input.length()];\n\t\t\n\t\tfor(int i = 0; i < input.length() ; i++){\n\t\t\tsbArray[i] = new StringBuffer();\n\t\t\tfor(int j = 0 ; j < segment.length() ; j++){\n\t\t\t\tsbArray[i].append(input.charAt((i+j)%input.length()));\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(sbArray[i].toString());\n\t\t\tif(sbArray[i].toString().equals(segment)){\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//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\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\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\t\tString input = br.readLine();\n\t\tString segment = br.readLine();\n\t\t\n\t\tStringBuffer[] sbArray = new StringBuffer[input.length()];\n\t\t\n\t\tfor(int i = 0; i < input.length() ; i++){\n\t\t\tsbArray[i] = new StringBuffer();\n\t\t\tfor(int j = 0 ; j < segment.length() ; j++){\n\t\t\t\tsbArray[i].append(input.charAt((i+j)%input.length()));\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(sbArray[i].toString());\n\t\t\tif(sbArray[i].toString().equals(segment)){\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//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\t\tString input = br.readLine();\n\t\tString segment = br.readLine();\n\t\t\n\t\tStringBuffer[] sbArray = new StringBuffer[input.length()];\n\t\t\n\t\tfor(int i = 0; i < input.length() ; i++){\n\t\t\tsbArray[i] = new StringBuffer();\n\t\t\tfor(int j = 0 ; j < segment.length() ; j++){\n\t\t\t\tsbArray[i].append(input.charAt((i+j)%input.length()));\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(sbArray[i].toString());\n\t\t\tif(sbArray[i].toString().equals(segment)){\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//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\t\tString input = br.readLine();\n\t\tString segment = br.readLine();\n\t\t\n\t\tStringBuffer[] sbArray = new StringBuffer[input.length()];\n\t\t\n\t\tfor(int i = 0; i < input.length() ; i++){\n\t\t\tsbArray[i] = new StringBuffer();\n\t\t\tfor(int j = 0 ; j < segment.length() ; j++){\n\t\t\t\tsbArray[i].append(input.charAt((i+j)%input.length()));\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(sbArray[i].toString());\n\t\t\tif(sbArray[i].toString().equals(segment)){\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//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\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 segment = br.readLine();", "segment", "br.readLine()", "br.readLine", "br", "StringBuffer[] sbArray = new StringBuffer[input.length()];", "sbArray", "new StringBuffer[input.length()]", "input.length()", "input.length", "input", "for(int i = 0; i < input.length() ; i++){\n\t\t\tsbArray[i] = new StringBuffer();\n\t\t\tfor(int j = 0 ; j < segment.length() ; j++){\n\t\t\t\tsbArray[i].append(input.charAt((i+j)%input.length()));\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(sbArray[i].toString());\n\t\t\tif(sbArray[i].toString().equals(segment)){\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 < input.length()", "i", "input.length()", "input.length", "input", "i++", "i++", "i", "{\n\t\t\tsbArray[i] = new StringBuffer();\n\t\t\tfor(int j = 0 ; j < segment.length() ; j++){\n\t\t\t\tsbArray[i].append(input.charAt((i+j)%input.length()));\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(sbArray[i].toString());\n\t\t\tif(sbArray[i].toString().equals(segment)){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "{\n\t\t\tsbArray[i] = new StringBuffer();\n\t\t\tfor(int j = 0 ; j < segment.length() ; j++){\n\t\t\t\tsbArray[i].append(input.charAt((i+j)%input.length()));\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(sbArray[i].toString());\n\t\t\tif(sbArray[i].toString().equals(segment)){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "sbArray[i] = new StringBuffer()", "sbArray[i]", "sbArray", "i", "new StringBuffer()", "for(int j = 0 ; j < segment.length() ; j++){\n\t\t\t\tsbArray[i].append(input.charAt((i+j)%input.length()));\n\t\t\t}", "int j = 0 ;", "int j = 0 ;", "j", "0", "j < segment.length()", "j", "segment.length()", "segment.length", "segment", "j++", "j++", "j", "{\n\t\t\t\tsbArray[i].append(input.charAt((i+j)%input.length()));\n\t\t\t}", "{\n\t\t\t\tsbArray[i].append(input.charAt((i+j)%input.length()));\n\t\t\t}", "sbArray[i].append(input.charAt((i+j)%input.length()))", "sbArray[i].append", "sbArray[i]", "sbArray", "i", "input.charAt((i+j)%input.length())", "input.charAt", "input", "(i+j)%input.length()", "(i+j)", "i", "j", "input.length()", "input.length", "input", "if(sbArray[i].toString().equals(segment)){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\treturn;\n\t\t\t}", "sbArray[i].toString().equals(segment)", "sbArray[i].toString().equals", "sbArray[i].toString()", "sbArray[i].toString", "sbArray[i]", "sbArray", "i", "segment", "{\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) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\t\tString input = br.readLine();\n\t\tString segment = br.readLine();\n\t\t\n\t\tStringBuffer[] sbArray = new StringBuffer[input.length()];\n\t\t\n\t\tfor(int i = 0; i < input.length() ; i++){\n\t\t\tsbArray[i] = new StringBuffer();\n\t\t\tfor(int j = 0 ; j < segment.length() ; j++){\n\t\t\t\tsbArray[i].append(input.charAt((i+j)%input.length()));\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(sbArray[i].toString());\n\t\t\tif(sbArray[i].toString().equals(segment)){\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//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\t\tString input = br.readLine();\n\t\tString segment = br.readLine();\n\t\t\n\t\tStringBuffer[] sbArray = new StringBuffer[input.length()];\n\t\t\n\t\tfor(int i = 0; i < input.length() ; i++){\n\t\t\tsbArray[i] = new StringBuffer();\n\t\t\tfor(int j = 0 ; j < segment.length() ; j++){\n\t\t\t\tsbArray[i].append(input.charAt((i+j)%input.length()));\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(sbArray[i].toString());\n\t\t\tif(sbArray[i].toString().equals(segment)){\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//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\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 { // TODO ????????????????????????????????????????????? BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String input = br.readLine(); String segment = br.readLine(); StringBuffer[] sbArray = new StringBuffer[input.length()]; for(int i = 0; i < input.length() ; i++){ sbArray[i] = new StringBuffer(); for(int j = 0 ; j < segment.length() ; j++){ sbArray[i].append(input.charAt((i+j)%input.length())); } //System.out.println(sbArray[i].toString()); if(sbArray[i].toString().equals(segment)){ System.out.println("Yes"); return; } } System.out.println("No"); // // if(Character.isLowerCase(c)){ // System.out.print(Character.toUpperCase(c)); // } // // else if(Character.isUpperCase(c)){ // System.out.print(Character.toLowerCase(c)); // } // else { // System.out.print(c); // } // } // System.out.println(); // String[] tmpArray = br.readLine().split(" "); // int n = Integer.parseInt(tmpArray[0]); // int m = Integer.parseInt(tmpArray[1]); // int l = Integer.parseInt(tmpArray[2]); // // long[][] a = new long[n][m]; // long[][] b = new long[m][l]; // long[][] c = new long[n][l]; // // for(int i = 0; i < n; i ++){ // tmpArray = br.readLine().split(" "); // for(int j = 0; j < m; j++){ // a[i][j] = Long.parseLong(tmpArray[j]); // } // } // // for(int i = 0; i < m; i ++){ // tmpArray = br.readLine().split(" "); // for(int j = 0; j < l; j++){ // b[i][j] = Integer.parseInt(tmpArray[j]); // } // } // // for(int i = 0; i < n; i++){ // for(int j = 0; j < l; j++){ // for(int k = 0; k < m; k++){ // c[i][j] += a[i][k]*b[k][j]; // } // // if(j != 0 ){ // System.out.print(" "); // } // System.out.print(c[i][j]); // } // System.out.println(); // } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 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 ], [ 42, 5 ], [ 42, 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 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 32, 38 ], [ 6, 39 ], [ 39, 40 ], [ 0, 41 ], [ 41, 42 ], [ 41, 43 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n String s = stdin.next();\n String p = stdin.next();\n String ss = s + s;\n System.out.println(ss.contains(p) ? \"Yes\" : \"No\");\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n String s = stdin.next();\n String p = stdin.next();\n String ss = s + s;\n System.out.println(ss.contains(p) ? \"Yes\" : \"No\");\n }\n\n}", "Main", "public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n String s = stdin.next();\n String p = stdin.next();\n String ss = s + s;\n System.out.println(ss.contains(p) ? \"Yes\" : \"No\");\n }", "main", "{\n Scanner stdin = new Scanner(System.in);\n String s = stdin.next();\n String p = stdin.next();\n String ss = s + s;\n System.out.println(ss.contains(p) ? \"Yes\" : \"No\");\n }", "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", "String ss = s + s;", "ss", "s + s", "s", "s", "System.out.println(ss.contains(p) ? \"Yes\" : \"No\")", "System.out.println", "System.out", "System", "System.out", "ss.contains(p) ? \"Yes\" : \"No\"", "ss.contains(p)", "ss.contains", "ss", "p", "\"Yes\"", "\"No\"", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n String s = stdin.next();\n String p = stdin.next();\n String ss = s + s;\n System.out.println(ss.contains(p) ? \"Yes\" : \"No\");\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n String s = stdin.next();\n String p = stdin.next();\n String ss = s + s;\n System.out.println(ss.contains(p) ? \"Yes\" : \"No\");\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdin = new Scanner(System.in); String s = stdin.next(); String p = stdin.next(); String ss = s + s; System.out.println(ss.contains(p) ? "Yes" : "No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 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 ], [ 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 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 11, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 11, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 11, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 37, 42 ], [ 42, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 36, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 9, 58 ], [ 58, 59 ] ]
[ "import java.util.*;\nimport java.io.*;\n\nclass Main{\n public static void main(String args[])throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String s = br.readLine();\t//?????????????????????????????????\n String p = br.readLine();\t//?????????????????????????????????\n sb.append(s);\t\t\t\t//sb?????????????????¨??????????????????????????¨??????????????????\n sb.append(s);\n if(sb.indexOf(p) != -1){\n \t//??????????????????????±??????????????????????????????????????????????indexOf??§??????\n \t//????±?????????????????????£?????´?????????-1??????????????§!=?????¶?????????\n \tSystem.out.println(\"Yes\");\n \t//-1??\\????????£??????Yes??????????????????\n }else{\n \tSystem.out.println(\"No\");\n \t//-1?????£??????No??????????????????\n }\n }\n}", "import java.util.*;", "util.*", "java", "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 StringBuilder sb = new StringBuilder();\n String s = br.readLine();\t//?????????????????????????????????\n String p = br.readLine();\t//?????????????????????????????????\n sb.append(s);\t\t\t\t//sb?????????????????¨??????????????????????????¨??????????????????\n sb.append(s);\n if(sb.indexOf(p) != -1){\n \t//??????????????????????±??????????????????????????????????????????????indexOf??§??????\n \t//????±?????????????????????£?????´?????????-1??????????????§!=?????¶?????????\n \tSystem.out.println(\"Yes\");\n \t//-1??\\????????£??????Yes??????????????????\n }else{\n \tSystem.out.println(\"No\");\n \t//-1?????£??????No??????????????????\n }\n }\n}", "Main", "public static void main(String args[])throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String s = br.readLine();\t//?????????????????????????????????\n String p = br.readLine();\t//?????????????????????????????????\n sb.append(s);\t\t\t\t//sb?????????????????¨??????????????????????????¨??????????????????\n sb.append(s);\n if(sb.indexOf(p) != -1){\n \t//??????????????????????±??????????????????????????????????????????????indexOf??§??????\n \t//????±?????????????????????£?????´?????????-1??????????????§!=?????¶?????????\n \tSystem.out.println(\"Yes\");\n \t//-1??\\????????£??????Yes??????????????????\n }else{\n \tSystem.out.println(\"No\");\n \t//-1?????£??????No??????????????????\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String s = br.readLine();\t//?????????????????????????????????\n String p = br.readLine();\t//?????????????????????????????????\n sb.append(s);\t\t\t\t//sb?????????????????¨??????????????????????????¨??????????????????\n sb.append(s);\n if(sb.indexOf(p) != -1){\n \t//??????????????????????±??????????????????????????????????????????????indexOf??§??????\n \t//????±?????????????????????£?????´?????????-1??????????????§!=?????¶?????????\n \tSystem.out.println(\"Yes\");\n \t//-1??\\????????£??????Yes??????????????????\n }else{\n \tSystem.out.println(\"No\");\n \t//-1?????£??????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", "sb.append(s)", "sb.append", "sb", "s", "sb.append(s)", "sb.append", "sb", "s", "if(sb.indexOf(p) != -1){\n \t//??????????????????????±??????????????????????????????????????????????indexOf??§??????\n \t//????±?????????????????????£?????´?????????-1??????????????§!=?????¶?????????\n \tSystem.out.println(\"Yes\");\n \t//-1??\\????????£??????Yes??????????????????\n }else{\n \tSystem.out.println(\"No\");\n \t//-1?????£??????No??????????????????\n }", "sb.indexOf(p) != -1", "sb.indexOf(p)", "sb.indexOf", "sb", "p", "-1", "1", "{\n \t//??????????????????????±??????????????????????????????????????????????indexOf??§??????\n \t//????±?????????????????????£?????´?????????-1??????????????§!=?????¶?????????\n \tSystem.out.println(\"Yes\");\n \t//-1??\\????????£??????Yes??????????????????\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n \tSystem.out.println(\"No\");\n \t//-1?????£??????No??????????????????\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String args[]", "args" ]
import java.util.*; import java.io.*; class Main{ public static void main(String args[])throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); String s = br.readLine(); //????????????????????????????????? String p = br.readLine(); //????????????????????????????????? sb.append(s); //sb?????????????????¨??????????????????????????¨?????????????????? sb.append(s); if(sb.indexOf(p) != -1){ //??????????????????????±??????????????????????????????????????????????indexOf??§?????? //????±?????????????????????£?????´?????????-1??????????????§!=?????¶????????? System.out.println("Yes"); //-1??\????????£??????Yes?????????????????? }else{ System.out.println("No"); //-1?????£??????No?????????????????? } } }
[ 7, 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, 41, 13, 0, 13, 13, 14, 2, 4, 18, 13, 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 ], [ 54, 5 ], [ 54, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 8, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 37, 38 ], [ 31, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 31, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 6, 51 ], [ 51, 52 ], [ 0, 53 ], [ 53, 54 ], [ 53, 55 ] ]
[ "import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String words, sentence;\n sentence = scan.next();\n words = scan.next();\n int result;\n \n sentence+=sentence;\n if(sentence.indexOf(words)!=-1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String words, sentence;\n sentence = scan.next();\n words = scan.next();\n int result;\n \n sentence+=sentence;\n if(sentence.indexOf(words)!=-1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}", "Main", "public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String words, sentence;\n sentence = scan.next();\n words = scan.next();\n int result;\n \n sentence+=sentence;\n if(sentence.indexOf(words)!=-1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }", "main", "{\n Scanner scan=new Scanner(System.in);\n String words, sentence;\n sentence = scan.next();\n words = scan.next();\n int result;\n \n sentence+=sentence;\n if(sentence.indexOf(words)!=-1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "String words", "words", "sentence;", "sentence", "sentence = scan.next()", "sentence", "scan.next()", "scan.next", "scan", "words = scan.next()", "words", "scan.next()", "scan.next", "scan", "int result;", "result", "sentence+=sentence", "sentence", "sentence", "if(sentence.indexOf(words)!=-1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");", "sentence.indexOf(words)!=-1", "sentence.indexOf(words)", "sentence.indexOf", "sentence", "words", "-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 public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String words, sentence;\n sentence = scan.next();\n words = scan.next();\n int result;\n \n sentence+=sentence;\n if(sentence.indexOf(words)!=-1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String words, sentence;\n sentence = scan.next();\n words = scan.next();\n int result;\n \n sentence+=sentence;\n if(sentence.indexOf(words)!=-1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan=new Scanner(System.in); String words, sentence; sentence = scan.next(); words = scan.next(); int result; sentence+=sentence; if(sentence.indexOf(words)!=-1) System.out.println("Yes"); else System.out.println("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 13, 14, 2, 4, 18, 13, 13, 40, 17, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 53, 8 ], [ 53, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 11, 28 ], [ 28, 29 ], [ 28, 30 ], [ 11, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 37, 38 ], [ 31, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 31, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 11, 47 ], [ 47, 48 ], [ 48, 49 ], [ 9, 50 ], [ 50, 51 ], [ 0, 52 ], [ 52, 53 ], [ 52, 54 ] ]
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tString str1=in.next(),str2=in.next();\n\t\tstr1+=str1;\n\t\tif(str1.indexOf(str2)!=-1)out.println(\"Yes\");\n\t\telse out.println(\"No\");\n\t\tout.flush();\n\t}\n\n}\n", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tString str1=in.next(),str2=in.next();\n\t\tstr1+=str1;\n\t\tif(str1.indexOf(str2)!=-1)out.println(\"Yes\");\n\t\telse out.println(\"No\");\n\t\tout.flush();\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tString str1=in.next(),str2=in.next();\n\t\tstr1+=str1;\n\t\tif(str1.indexOf(str2)!=-1)out.println(\"Yes\");\n\t\telse out.println(\"No\");\n\t\tout.flush();\n\t}", "main", "{\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tString str1=in.next(),str2=in.next();\n\t\tstr1+=str1;\n\t\tif(str1.indexOf(str2)!=-1)out.println(\"Yes\");\n\t\telse out.println(\"No\");\n\t\tout.flush();\n\t}", "Scanner in=new Scanner(System.in);", "in", "new Scanner(System.in)", "PrintWriter out=new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "String str1=in.next()", "str1", "in.next()", "in.next", "in", "str2=in.next();", "str2", "in.next()", "in.next", "in", "str1+=str1", "str1", "str1", "if(str1.indexOf(str2)!=-1)out.println(\"Yes\");\n\t\telse out.println(\"No\");", "str1.indexOf(str2)!=-1", "str1.indexOf(str2)", "str1.indexOf", "str1", "str2", "-1", "1", "out.println(\"Yes\")", "out.println", "out", "\"Yes\"", "out.println(\"No\")", "out.println", "out", "\"No\"", "out.flush()", "out.flush", "out", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tString str1=in.next(),str2=in.next();\n\t\tstr1+=str1;\n\t\tif(str1.indexOf(str2)!=-1)out.println(\"Yes\");\n\t\telse out.println(\"No\");\n\t\tout.flush();\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tString str1=in.next(),str2=in.next();\n\t\tstr1+=str1;\n\t\tif(str1.indexOf(str2)!=-1)out.println(\"Yes\");\n\t\telse out.println(\"No\");\n\t\tout.flush();\n\t}\n\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner in=new Scanner(System.in); PrintWriter out=new PrintWriter(System.out); String str1=in.next(),str2=in.next(); str1+=str1; if(str1.indexOf(str2)!=-1)out.println("Yes"); else out.println("No"); out.flush(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 4, 13, 2, 13, 13, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 20, 2, 4, 18, 13, 17, 0, 18, 13, 17, 0, 18, 13, 17, 17, 42, 2, 4, 18, 13, 13, 30, 14, 2, 4, 18, 13, 13, 4, 18, 13, 13, 30, 40, 13, 40, 13, 0, 18, 13, 13, 13, 14, 2, 13, 17, 30, 40, 13, 0, 18, 13, 13, 17, 30, 0, 13, 18, 13, 13, 41, 13, 17, 41, 13, 17, 42, 2, 13, 4, 18, 13, 30, 14, 2, 4, 18, 13, 13, 4, 18, 13, 13, 30, 40, 13, 40, 13, 14, 2, 4, 18, 13, 13, 30, 29, 2, 13, 4, 18, 13, 14, 2, 13, 17, 30, 40, 13, 30, 0, 13, 18, 13, 13, 29, 40, 17, 23, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 14, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 32, 39 ], [ 39, 40 ], [ 31, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 31, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 12, 55 ], [ 55, 56 ], [ 10, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 63, 65 ], [ 59, 66 ], [ 66, 67 ], [ 66, 68 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 69, 73 ], [ 59, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 59, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 84, 88 ], [ 83, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 91, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 90, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 103, 104 ], [ 100, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 90, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 110, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 125, 127 ], [ 59, 128 ], [ 128, 129 ], [ 128, 130 ], [ 59, 131 ], [ 131, 132 ], [ 131, 133 ], [ 59, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 138, 139 ], [ 134, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 143, 146 ], [ 142, 147 ], [ 147, 148 ], [ 148, 149 ], [ 147, 150 ], [ 141, 151 ], [ 151, 152 ], [ 152, 153 ], [ 151, 154 ], [ 154, 155 ], [ 151, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 157, 161 ], [ 156, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 166, 167 ], [ 167, 168 ], [ 141, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 169, 173 ], [ 173, 174 ], [ 174, 175 ], [ 169, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 179, 180 ], [ 179, 181 ], [ 59, 182 ], [ 182, 183 ], [ 183, 184 ], [ 57, 185 ], [ 185, 186 ], [ 57, 187 ], [ 187, 188 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tString str1 = br.readLine();\n\n\t\tString str2 = br.readLine();\n\n\n\t\tif(kmpSearch(str1+str1, str2)== -1){\n\t\t\tSystem.out.println(\"No\");\n\n\t\t}else {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\n\n\t}\n\n\n private static int kmpSearch(String text, String pattern){\n int textIndex = 1;\n int patternIndex = 0;\n int[] cacheTable = new int[pattern.length() + 1];\n cacheTable[0] = cacheTable[1] = 0;\n\n while(pattern.length() > textIndex ){\n if(pattern.charAt(textIndex) == pattern.charAt(patternIndex)){\n\n textIndex++;\n patternIndex++;\n cacheTable[textIndex] = patternIndex;\n } else if (patternIndex == 0){\n\n textIndex++;\n cacheTable[textIndex] = 0;\n } else {\n\n patternIndex = cacheTable[patternIndex];\n }\n }\n\n int i = 0;\n int n = 0;\n while(n < text.length()) {\n\n if(text.charAt(n) == pattern.charAt(i)){\n ++n;\n ++i;\n if(pattern.length() == i){\n\n return n - pattern.length();\n }\n } else if ( i == 0){\n\n ++n;\n } else {\n\n i = cacheTable[i];\n }\n }\n\n return -1;\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\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tString str1 = br.readLine();\n\n\t\tString str2 = br.readLine();\n\n\n\t\tif(kmpSearch(str1+str1, str2)== -1){\n\t\t\tSystem.out.println(\"No\");\n\n\t\t}else {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\n\n\t}\n\n\n private static int kmpSearch(String text, String pattern){\n int textIndex = 1;\n int patternIndex = 0;\n int[] cacheTable = new int[pattern.length() + 1];\n cacheTable[0] = cacheTable[1] = 0;\n\n while(pattern.length() > textIndex ){\n if(pattern.charAt(textIndex) == pattern.charAt(patternIndex)){\n\n textIndex++;\n patternIndex++;\n cacheTable[textIndex] = patternIndex;\n } else if (patternIndex == 0){\n\n textIndex++;\n cacheTable[textIndex] = 0;\n } else {\n\n patternIndex = cacheTable[patternIndex];\n }\n }\n\n int i = 0;\n int n = 0;\n while(n < text.length()) {\n\n if(text.charAt(n) == pattern.charAt(i)){\n ++n;\n ++i;\n if(pattern.length() == i){\n\n return n - pattern.length();\n }\n } else if ( i == 0){\n\n ++n;\n } else {\n\n i = cacheTable[i];\n }\n }\n\n return -1;\n }\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tString str1 = br.readLine();\n\n\t\tString str2 = br.readLine();\n\n\n\t\tif(kmpSearch(str1+str1, str2)== -1){\n\t\t\tSystem.out.println(\"No\");\n\n\t\t}else {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\n\n\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tString str1 = br.readLine();\n\n\t\tString str2 = br.readLine();\n\n\n\t\tif(kmpSearch(str1+str1, str2)== -1){\n\t\t\tSystem.out.println(\"No\");\n\n\t\t}else {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\n\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder builder = new StringBuilder();", "builder", "new StringBuilder()", "String str1 = br.readLine();", "str1", "br.readLine()", "br.readLine", "br", "String str2 = br.readLine();", "str2", "br.readLine()", "br.readLine", "br", "if(kmpSearch(str1+str1, str2)== -1){\n\t\t\tSystem.out.println(\"No\");\n\n\t\t}else {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}", "kmpSearch(str1+str1, str2)== -1", "kmpSearch(str1+str1, str2)", "kmpSearch", "str1+str1", "str1", "str1", "str2", "-1", "1", "{\n\t\t\tSystem.out.println(\"No\");\n\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", "private static int kmpSearch(String text, String pattern){\n int textIndex = 1;\n int patternIndex = 0;\n int[] cacheTable = new int[pattern.length() + 1];\n cacheTable[0] = cacheTable[1] = 0;\n\n while(pattern.length() > textIndex ){\n if(pattern.charAt(textIndex) == pattern.charAt(patternIndex)){\n\n textIndex++;\n patternIndex++;\n cacheTable[textIndex] = patternIndex;\n } else if (patternIndex == 0){\n\n textIndex++;\n cacheTable[textIndex] = 0;\n } else {\n\n patternIndex = cacheTable[patternIndex];\n }\n }\n\n int i = 0;\n int n = 0;\n while(n < text.length()) {\n\n if(text.charAt(n) == pattern.charAt(i)){\n ++n;\n ++i;\n if(pattern.length() == i){\n\n return n - pattern.length();\n }\n } else if ( i == 0){\n\n ++n;\n } else {\n\n i = cacheTable[i];\n }\n }\n\n return -1;\n }", "kmpSearch", "{\n int textIndex = 1;\n int patternIndex = 0;\n int[] cacheTable = new int[pattern.length() + 1];\n cacheTable[0] = cacheTable[1] = 0;\n\n while(pattern.length() > textIndex ){\n if(pattern.charAt(textIndex) == pattern.charAt(patternIndex)){\n\n textIndex++;\n patternIndex++;\n cacheTable[textIndex] = patternIndex;\n } else if (patternIndex == 0){\n\n textIndex++;\n cacheTable[textIndex] = 0;\n } else {\n\n patternIndex = cacheTable[patternIndex];\n }\n }\n\n int i = 0;\n int n = 0;\n while(n < text.length()) {\n\n if(text.charAt(n) == pattern.charAt(i)){\n ++n;\n ++i;\n if(pattern.length() == i){\n\n return n - pattern.length();\n }\n } else if ( i == 0){\n\n ++n;\n } else {\n\n i = cacheTable[i];\n }\n }\n\n return -1;\n }", "int textIndex = 1;", "textIndex", "1", "int patternIndex = 0;", "patternIndex", "0", "int[] cacheTable = new int[pattern.length() + 1];", "cacheTable", "new int[pattern.length() + 1]", "pattern.length() + 1", "pattern.length()", "pattern.length", "pattern", "1", "cacheTable[0] = cacheTable[1] = 0", "cacheTable[0]", "cacheTable", "0", "cacheTable[1] = 0", "cacheTable[1]", "cacheTable", "1", "0", "while(pattern.length() > textIndex ){\n if(pattern.charAt(textIndex) == pattern.charAt(patternIndex)){\n\n textIndex++;\n patternIndex++;\n cacheTable[textIndex] = patternIndex;\n } else if (patternIndex == 0){\n\n textIndex++;\n cacheTable[textIndex] = 0;\n } else {\n\n patternIndex = cacheTable[patternIndex];\n }\n }", "pattern.length() > textIndex", "pattern.length()", "pattern.length", "pattern", "textIndex", "{\n if(pattern.charAt(textIndex) == pattern.charAt(patternIndex)){\n\n textIndex++;\n patternIndex++;\n cacheTable[textIndex] = patternIndex;\n } else if (patternIndex == 0){\n\n textIndex++;\n cacheTable[textIndex] = 0;\n } else {\n\n patternIndex = cacheTable[patternIndex];\n }\n }", "if(pattern.charAt(textIndex) == pattern.charAt(patternIndex)){\n\n textIndex++;\n patternIndex++;\n cacheTable[textIndex] = patternIndex;\n } else if (patternIndex == 0){\n\n textIndex++;\n cacheTable[textIndex] = 0;\n } else {\n\n patternIndex = cacheTable[patternIndex];\n }", "pattern.charAt(textIndex) == pattern.charAt(patternIndex)", "pattern.charAt(textIndex)", "pattern.charAt", "pattern", "textIndex", "pattern.charAt(patternIndex)", "pattern.charAt", "pattern", "patternIndex", "{\n\n textIndex++;\n patternIndex++;\n cacheTable[textIndex] = patternIndex;\n }", "textIndex++", "textIndex", "patternIndex++", "patternIndex", "cacheTable[textIndex] = patternIndex", "cacheTable[textIndex]", "cacheTable", "textIndex", "patternIndex", "if (patternIndex == 0){\n\n textIndex++;\n cacheTable[textIndex] = 0;\n } else {\n\n patternIndex = cacheTable[patternIndex];\n }", "patternIndex == 0", "patternIndex", "0", "{\n\n textIndex++;\n cacheTable[textIndex] = 0;\n }", "textIndex++", "textIndex", "cacheTable[textIndex] = 0", "cacheTable[textIndex]", "cacheTable", "textIndex", "0", "{\n\n patternIndex = cacheTable[patternIndex];\n }", "patternIndex = cacheTable[patternIndex]", "patternIndex", "cacheTable[patternIndex]", "cacheTable", "patternIndex", "int i = 0;", "i", "0", "int n = 0;", "n", "0", "while(n < text.length()) {\n\n if(text.charAt(n) == pattern.charAt(i)){\n ++n;\n ++i;\n if(pattern.length() == i){\n\n return n - pattern.length();\n }\n } else if ( i == 0){\n\n ++n;\n } else {\n\n i = cacheTable[i];\n }\n }", "n < text.length()", "n", "text.length()", "text.length", "text", "{\n\n if(text.charAt(n) == pattern.charAt(i)){\n ++n;\n ++i;\n if(pattern.length() == i){\n\n return n - pattern.length();\n }\n } else if ( i == 0){\n\n ++n;\n } else {\n\n i = cacheTable[i];\n }\n }", "if(text.charAt(n) == pattern.charAt(i)){\n ++n;\n ++i;\n if(pattern.length() == i){\n\n return n - pattern.length();\n }\n } else if ( i == 0){\n\n ++n;\n } else {\n\n i = cacheTable[i];\n }", "text.charAt(n) == pattern.charAt(i)", "text.charAt(n)", "text.charAt", "text", "n", "pattern.charAt(i)", "pattern.charAt", "pattern", "i", "{\n ++n;\n ++i;\n if(pattern.length() == i){\n\n return n - pattern.length();\n }\n }", "++n", "n", "++i", "i", "if(pattern.length() == i){\n\n return n - pattern.length();\n }", "pattern.length() == i", "pattern.length()", "pattern.length", "pattern", "i", "{\n\n return n - pattern.length();\n }", "return n - pattern.length();", "n - pattern.length()", "n", "pattern.length()", "pattern.length", "pattern", "if ( i == 0){\n\n ++n;\n } else {\n\n i = cacheTable[i];\n }", "i == 0", "i", "0", "{\n\n ++n;\n }", "++n", "n", "{\n\n i = cacheTable[i];\n }", "i = cacheTable[i]", "i", "cacheTable[i]", "cacheTable", "i", "return -1;", "-1", "1", "String text", "text", "String pattern", "pattern" ]
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)); StringBuilder builder = new StringBuilder(); String str1 = br.readLine(); String str2 = br.readLine(); if(kmpSearch(str1+str1, str2)== -1){ System.out.println("No"); }else { System.out.println("Yes"); } } private static int kmpSearch(String text, String pattern){ int textIndex = 1; int patternIndex = 0; int[] cacheTable = new int[pattern.length() + 1]; cacheTable[0] = cacheTable[1] = 0; while(pattern.length() > textIndex ){ if(pattern.charAt(textIndex) == pattern.charAt(patternIndex)){ textIndex++; patternIndex++; cacheTable[textIndex] = patternIndex; } else if (patternIndex == 0){ textIndex++; cacheTable[textIndex] = 0; } else { patternIndex = cacheTable[patternIndex]; } } int i = 0; int n = 0; while(n < text.length()) { if(text.charAt(n) == pattern.charAt(i)){ ++n; ++i; if(pattern.length() == i){ return n - pattern.length(); } } else if ( i == 0){ ++n; } else { i = cacheTable[i]; } } return -1; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 41, 13, 4, 18, 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 ], [ 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 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 33, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 33, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 6, 52 ], [ 52, 53 ], [ 0, 54 ], [ 54, 55 ], [ 54, 56 ] ]
[ "\n\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tString str1 = in.next();\n\t\tString str2 = in.next();\n\n\t\tString ring_str = str1 + str1;\n\n\t\t//System.out.println(ring_str);\n\n\t\tint result = ring_str.indexOf(str2);\n\n\t\tif(result == -1){\n\n\t\t\tSystem.out.println(\"No\");\n\n\t\t}else{\n\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tString str1 = in.next();\n\t\tString str2 = in.next();\n\n\t\tString ring_str = str1 + str1;\n\n\t\t//System.out.println(ring_str);\n\n\t\tint result = ring_str.indexOf(str2);\n\n\t\tif(result == -1){\n\n\t\t\tSystem.out.println(\"No\");\n\n\t\t}else{\n\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tString str1 = in.next();\n\t\tString str2 = in.next();\n\n\t\tString ring_str = str1 + str1;\n\n\t\t//System.out.println(ring_str);\n\n\t\tint result = ring_str.indexOf(str2);\n\n\t\tif(result == -1){\n\n\t\t\tSystem.out.println(\"No\");\n\n\t\t}else{\n\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}\n\t}", "main", "{\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tString str1 = in.next();\n\t\tString str2 = in.next();\n\n\t\tString ring_str = str1 + str1;\n\n\t\t//System.out.println(ring_str);\n\n\t\tint result = ring_str.indexOf(str2);\n\n\t\tif(result == -1){\n\n\t\t\tSystem.out.println(\"No\");\n\n\t\t}else{\n\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "String str1 = in.next();", "str1", "in.next()", "in.next", "in", "String str2 = in.next();", "str2", "in.next()", "in.next", "in", "String ring_str = str1 + str1;", "ring_str", "str1 + str1", "str1", "str1", "int result = ring_str.indexOf(str2);", "result", "ring_str.indexOf(str2)", "ring_str.indexOf", "ring_str", "str2", "if(result == -1){\n\n\t\t\tSystem.out.println(\"No\");\n\n\t\t}else{\n\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}", "result == -1", "result", "-1", "1", "{\n\n\t\t\tSystem.out.println(\"No\");\n\n\t\t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "{\n\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tString str1 = in.next();\n\t\tString str2 = in.next();\n\n\t\tString ring_str = str1 + str1;\n\n\t\t//System.out.println(ring_str);\n\n\t\tint result = ring_str.indexOf(str2);\n\n\t\tif(result == -1){\n\n\t\t\tSystem.out.println(\"No\");\n\n\t\t}else{\n\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tString str1 = in.next();\n\t\tString str2 = in.next();\n\n\t\tString ring_str = str1 + str1;\n\n\t\t//System.out.println(ring_str);\n\n\t\tint result = ring_str.indexOf(str2);\n\n\t\tif(result == -1){\n\n\t\t\tSystem.out.println(\"No\");\n\n\t\t}else{\n\n\t\t\tSystem.out.println(\"Yes\");\n\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String str1 = in.next(); String str2 = in.next(); String ring_str = str1 + str1; //System.out.println(ring_str); int result = ring_str.indexOf(str2); if(result == -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, 4, 18, 13, 13, 14, 2, 2, 18, 13, 13, 17, 4, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 61, 5 ], [ 61, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 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 ], [ 29, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 34, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 33, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 33, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 6, 58 ], [ 58, 59 ], [ 0, 60 ], [ 60, 61 ], [ 60, 62 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString p = sc.next();\n\t\tString ss = s+s;\n\t\t\n\t\tString[] sArray = ss.split(p);\n\t\tif(sArray.length>1 || p.equals(s)){\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}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString p = sc.next();\n\t\tString ss = s+s;\n\t\t\n\t\tString[] sArray = ss.split(p);\n\t\tif(sArray.length>1 || p.equals(s)){\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}", "Main", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString p = sc.next();\n\t\tString ss = s+s;\n\t\t\n\t\tString[] sArray = ss.split(p);\n\t\tif(sArray.length>1 || p.equals(s)){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString p = sc.next();\n\t\tString ss = s+s;\n\t\t\n\t\tString[] sArray = ss.split(p);\n\t\tif(sArray.length>1 || p.equals(s)){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "String p = sc.next();", "p", "sc.next()", "sc.next", "sc", "String ss = s+s;", "ss", "s+s", "s", "s", "String[] sArray = ss.split(p);", "sArray", "ss.split(p)", "ss.split", "ss", "p", "if(sArray.length>1 || p.equals(s)){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "sArray.length>1 || p.equals(s)", "sArray.length>1", "sArray.length", "sArray", "sArray.length", "1", "p.equals(s)", "p.equals", "p", "s", "{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString p = sc.next();\n\t\tString ss = s+s;\n\t\t\n\t\tString[] sArray = ss.split(p);\n\t\tif(sArray.length>1 || p.equals(s)){\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}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString p = sc.next();\n\t\tString ss = s+s;\n\t\t\n\t\tString[] sArray = ss.split(p);\n\t\tif(sArray.length>1 || p.equals(s)){\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}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); String s = sc.next(); String p = sc.next(); String ss = s+s; String[] sArray = ss.split(p); if(sArray.length>1 || p.equals(s)){ System.out.println("Yes"); }else{ System.out.println("No"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 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 ], [ 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 ], [ 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 ], [ 0, 51 ], [ 51, 52 ], [ 51, 53 ] ]
[ "import java.io.*;\n\npublic class Main{\n\n public static void main(String[]args)throws IOException{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String strS = br.readLine();\n String strP = br.readLine();\n\n strS = strS + strS;\n if(strS.indexOf(strP) != -1){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}", "import java.io.*;", "io.*", "java", "public class Main{\n\n public static void main(String[]args)throws IOException{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String strS = br.readLine();\n String strP = br.readLine();\n\n strS = strS + strS;\n if(strS.indexOf(strP) != -1){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}", "Main", "public static void main(String[]args)throws IOException{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String strS = br.readLine();\n String strP = br.readLine();\n\n strS = strS + strS;\n if(strS.indexOf(strP) != -1){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }", "main", "{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String strS = br.readLine();\n String strP = br.readLine();\n\n strS = strS + strS;\n if(strS.indexOf(strP) != -1){\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))", "String strS = br.readLine();", "strS", "br.readLine()", "br.readLine", "br", "String strP = br.readLine();", "strP", "br.readLine()", "br.readLine", "br", "strS = strS + strS", "strS", "strS + strS", "strS", "strS", "if(strS.indexOf(strP) != -1){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }", "strS.indexOf(strP) != -1", "strS.indexOf(strP)", "strS.indexOf", "strS", "strP", "-1", "1", "{\n System.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n System.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[]args", "args", "public class Main{\n\n public static void main(String[]args)throws IOException{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String strS = br.readLine();\n String strP = br.readLine();\n\n strS = strS + strS;\n if(strS.indexOf(strP) != -1){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\n }\n }\n}", "public class Main{\n\n public static void main(String[]args)throws IOException{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String strS = br.readLine();\n String strP = br.readLine();\n\n strS = strS + strS;\n if(strS.indexOf(strP) != -1){\n System.out.println(\"Yes\");\n }else{\n System.out.println(\"No\");\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 strS = br.readLine(); String strP = br.readLine(); strS = strS + strS; if(strS.indexOf(strP) != -1){ System.out.println("Yes"); }else{ System.out.println("No"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 17, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 11, 1, 0, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 4, 18, 13, 13, 11, 1, 0, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 2, 2, 13, 13, 4, 18, 13, 4, 18, 13, 13, 30, 0, 13, 17, 3, 40, 13, 14, 2, 13, 4, 18, 13, 30, 4, 18, 18, 13, 13, 17, 4, 18, 13, 29, 4, 18, 13, 4, 18, 18, 13, 13, 17, 29, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 122, 5 ], [ 122, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 8, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 8, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 35, 45 ], [ 45, 46 ], [ 46, 47 ], [ 35, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 49, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 54, 64 ], [ 64, 65 ], [ 65, 66 ], [ 54, 67 ], [ 68, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 70, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 69, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 68, 90 ], [ 90, 91 ], [ 49, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 92, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 98, 105 ], [ 105, 106 ], [ 106, 107 ], [ 98, 108 ], [ 8, 109 ], [ 109, 110 ], [ 110, 111 ], [ 8, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 8, 118 ], [ 6, 119 ], [ 119, 120 ], [ 0, 121 ], [ 121, 122 ], [ 121, 123 ] ]
[ "import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String str,x;\n int i,j,ok;\n ok = 0;\n str = scan.nextLine();\n x = scan.nextLine();\n //StringBuilder sb = new StringBuilder();\n for ( i=0; i<str.length(); i++) {\n str.charAt(i);\n for(j=0; j<x.length();j++){\n if(str.charAt((i+j)%str.length())!=x.charAt(j)){\n ok = 0;\n break;\n }\n ok++;\n }\n if(ok == x.length()){\n System.out.println(\"Yes\");\n scan.close();\n return;\n }\n\n }\n \n\n scan.close();\n System.out.println(\"No\");\n return;\n }\n\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String str,x;\n int i,j,ok;\n ok = 0;\n str = scan.nextLine();\n x = scan.nextLine();\n //StringBuilder sb = new StringBuilder();\n for ( i=0; i<str.length(); i++) {\n str.charAt(i);\n for(j=0; j<x.length();j++){\n if(str.charAt((i+j)%str.length())!=x.charAt(j)){\n ok = 0;\n break;\n }\n ok++;\n }\n if(ok == x.length()){\n System.out.println(\"Yes\");\n scan.close();\n return;\n }\n\n }\n \n\n scan.close();\n System.out.println(\"No\");\n return;\n }\n\n}", "Main", "public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String str,x;\n int i,j,ok;\n ok = 0;\n str = scan.nextLine();\n x = scan.nextLine();\n //StringBuilder sb = new StringBuilder();\n for ( i=0; i<str.length(); i++) {\n str.charAt(i);\n for(j=0; j<x.length();j++){\n if(str.charAt((i+j)%str.length())!=x.charAt(j)){\n ok = 0;\n break;\n }\n ok++;\n }\n if(ok == x.length()){\n System.out.println(\"Yes\");\n scan.close();\n return;\n }\n\n }\n \n\n scan.close();\n System.out.println(\"No\");\n return;\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n String str,x;\n int i,j,ok;\n ok = 0;\n str = scan.nextLine();\n x = scan.nextLine();\n //StringBuilder sb = new StringBuilder();\n for ( i=0; i<str.length(); i++) {\n str.charAt(i);\n for(j=0; j<x.length();j++){\n if(str.charAt((i+j)%str.length())!=x.charAt(j)){\n ok = 0;\n break;\n }\n ok++;\n }\n if(ok == x.length()){\n System.out.println(\"Yes\");\n scan.close();\n return;\n }\n\n }\n \n\n scan.close();\n System.out.println(\"No\");\n return;\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String str", "str", "x;", "x", "int i", "i", "j", "j", "ok;", "ok", "ok = 0", "ok", "0", "str = scan.nextLine()", "str", "scan.nextLine()", "scan.nextLine", "scan", "x = scan.nextLine()", "x", "scan.nextLine()", "scan.nextLine", "scan", "for ( i=0; i<str.length(); i++) {\n str.charAt(i);\n for(j=0; j<x.length();j++){\n if(str.charAt((i+j)%str.length())!=x.charAt(j)){\n ok = 0;\n break;\n }\n ok++;\n }\n if(ok == x.length()){\n System.out.println(\"Yes\");\n scan.close();\n return;\n }\n\n }", "i=0;", "i=0", "i", "0", "i<str.length()", "i", "str.length()", "str.length", "str", "i++", "i++", "i", "{\n str.charAt(i);\n for(j=0; j<x.length();j++){\n if(str.charAt((i+j)%str.length())!=x.charAt(j)){\n ok = 0;\n break;\n }\n ok++;\n }\n if(ok == x.length()){\n System.out.println(\"Yes\");\n scan.close();\n return;\n }\n\n }", "{\n str.charAt(i);\n for(j=0; j<x.length();j++){\n if(str.charAt((i+j)%str.length())!=x.charAt(j)){\n ok = 0;\n break;\n }\n ok++;\n }\n if(ok == x.length()){\n System.out.println(\"Yes\");\n scan.close();\n return;\n }\n\n }", "str.charAt(i)", "str.charAt", "str", "i", "for(j=0; j<x.length();j++){\n if(str.charAt((i+j)%str.length())!=x.charAt(j)){\n ok = 0;\n break;\n }\n ok++;\n }", "j=0;", "j=0", "j", "0", "j<x.length()", "j", "x.length()", "x.length", "x", "j++", "j++", "j", "{\n if(str.charAt((i+j)%str.length())!=x.charAt(j)){\n ok = 0;\n break;\n }\n ok++;\n }", "{\n if(str.charAt((i+j)%str.length())!=x.charAt(j)){\n ok = 0;\n break;\n }\n ok++;\n }", "if(str.charAt((i+j)%str.length())!=x.charAt(j)){\n ok = 0;\n break;\n }", "str.charAt((i+j)%str.length())!=x.charAt(j)", "str.charAt((i+j)%str.length())", "str.charAt", "str", "(i+j)%str.length()", "(i+j)", "i", "j", "str.length()", "str.length", "str", "x.charAt(j)", "x.charAt", "x", "j", "{\n ok = 0;\n break;\n }", "ok = 0", "ok", "0", "break;", "ok++", "ok", "if(ok == x.length()){\n System.out.println(\"Yes\");\n scan.close();\n return;\n }", "ok == x.length()", "ok", "x.length()", "x.length", "x", "{\n System.out.println(\"Yes\");\n scan.close();\n return;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "scan.close()", "scan.close", "scan", "return;", "scan.close()", "scan.close", "scan", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "return;", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String str,x;\n int i,j,ok;\n ok = 0;\n str = scan.nextLine();\n x = scan.nextLine();\n //StringBuilder sb = new StringBuilder();\n for ( i=0; i<str.length(); i++) {\n str.charAt(i);\n for(j=0; j<x.length();j++){\n if(str.charAt((i+j)%str.length())!=x.charAt(j)){\n ok = 0;\n break;\n }\n ok++;\n }\n if(ok == x.length()){\n System.out.println(\"Yes\");\n scan.close();\n return;\n }\n\n }\n \n\n scan.close();\n System.out.println(\"No\");\n return;\n }\n\n}", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String str,x;\n int i,j,ok;\n ok = 0;\n str = scan.nextLine();\n x = scan.nextLine();\n //StringBuilder sb = new StringBuilder();\n for ( i=0; i<str.length(); i++) {\n str.charAt(i);\n for(j=0; j<x.length();j++){\n if(str.charAt((i+j)%str.length())!=x.charAt(j)){\n ok = 0;\n break;\n }\n ok++;\n }\n if(ok == x.length()){\n System.out.println(\"Yes\");\n scan.close();\n return;\n }\n\n }\n \n\n scan.close();\n System.out.println(\"No\");\n return;\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String str,x; int i,j,ok; ok = 0; str = scan.nextLine(); x = scan.nextLine(); //StringBuilder sb = new StringBuilder(); for ( i=0; i<str.length(); i++) { str.charAt(i); for(j=0; j<x.length();j++){ if(str.charAt((i+j)%str.length())!=x.charAt(j)){ ok = 0; break; } ok++; } if(ok == x.length()){ System.out.println("Yes"); scan.close(); return; } } scan.close(); System.out.println("No"); return; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 0, 13, 13, 41, 13, 4, 18, 13, 13, 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 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 8, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 8, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 37, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 37, 49 ], [ 49, 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 Scanner sc = new Scanner(System.in);\n \n String str1 = sc.next();\n sc.nextLine();\n String str2 = sc.next();\n sc.nextLine();\n \n str1 += str1;\n int res = str1.indexOf(str2);\n if (res!=-1){\n System.out.println(\"Yes\"); \n }else{\n System.out.println(\"No\"); \n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n \n String str1 = sc.next();\n sc.nextLine();\n String str2 = sc.next();\n sc.nextLine();\n \n str1 += str1;\n int res = str1.indexOf(str2);\n if (res!=-1){\n System.out.println(\"Yes\"); \n }else{\n System.out.println(\"No\"); \n }\n }\n}", "Main", "public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n \n String str1 = sc.next();\n sc.nextLine();\n String str2 = sc.next();\n sc.nextLine();\n \n str1 += str1;\n int res = str1.indexOf(str2);\n if (res!=-1){\n System.out.println(\"Yes\"); \n }else{\n System.out.println(\"No\"); \n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \n String str1 = sc.next();\n sc.nextLine();\n String str2 = sc.next();\n sc.nextLine();\n \n str1 += str1;\n int res = str1.indexOf(str2);\n if (res!=-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 str1 = sc.next();", "str1", "sc.next()", "sc.next", "sc", "sc.nextLine()", "sc.nextLine", "sc", "String str2 = sc.next();", "str2", "sc.next()", "sc.next", "sc", "sc.nextLine()", "sc.nextLine", "sc", "str1 += str1", "str1", "str1", "int res = str1.indexOf(str2);", "res", "str1.indexOf(str2)", "str1.indexOf", "str1", "str2", "if (res!=-1){\n System.out.println(\"Yes\"); \n }else{\n System.out.println(\"No\"); \n }", "res!=-1", "res", "-1", "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" ]
import java.util.Scanner; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); String str1 = sc.next(); sc.nextLine(); String str2 = sc.next(); sc.nextLine(); str1 += str1; int res = str1.indexOf(str2); if (res!=-1){ System.out.println("Yes"); }else{ System.out.println("No"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 18, 13, 13, 17, 30, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 2, 13, 13, 41, 13, 4, 18, 13, 13, 14, 2, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 77, 8 ], [ 77, 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 ], [ 27, 28 ], [ 28, 29 ], [ 26, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 30, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 30, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 30, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 52, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 52, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 25, 71 ], [ 71, 72 ], [ 72, 73 ], [ 9, 74 ], [ 74, 75 ], [ 0, 76 ], [ 76, 77 ], [ 76, 78 ] ]
[ "import java.util.InputMismatchException;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\ttry{\n\t\t\twhile(scan.hasNextLine()) {\n\t\t\t\tString str1=scan.nextLine();\n\t\t\t\tString str2=scan.nextLine();\n\t\t\t\tstr1=str1+str1;\n\t\t\t\tint result=str1.indexOf(str2);\n\t\t\t\tif(result!=-1) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tscan.close();\n\t\t}catch(InputMismatchException e){\n\t\t\tSystem.out.println(\"入力しなおしてください\");\n\t\t}\n\t\t}\n}", "import java.util.InputMismatchException;", "InputMismatchException", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\ttry{\n\t\t\twhile(scan.hasNextLine()) {\n\t\t\t\tString str1=scan.nextLine();\n\t\t\t\tString str2=scan.nextLine();\n\t\t\t\tstr1=str1+str1;\n\t\t\t\tint result=str1.indexOf(str2);\n\t\t\t\tif(result!=-1) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tscan.close();\n\t\t}catch(InputMismatchException e){\n\t\t\tSystem.out.println(\"入力しなおしてください\");\n\t\t}\n\t\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\ttry{\n\t\t\twhile(scan.hasNextLine()) {\n\t\t\t\tString str1=scan.nextLine();\n\t\t\t\tString str2=scan.nextLine();\n\t\t\t\tstr1=str1+str1;\n\t\t\t\tint result=str1.indexOf(str2);\n\t\t\t\tif(result!=-1) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tscan.close();\n\t\t}catch(InputMismatchException e){\n\t\t\tSystem.out.println(\"入力しなおしてください\");\n\t\t}\n\t\t}", "main", "{\n\t\tScanner scan=new Scanner(System.in);\n\t\ttry{\n\t\t\twhile(scan.hasNextLine()) {\n\t\t\t\tString str1=scan.nextLine();\n\t\t\t\tString str2=scan.nextLine();\n\t\t\t\tstr1=str1+str1;\n\t\t\t\tint result=str1.indexOf(str2);\n\t\t\t\tif(result!=-1) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tscan.close();\n\t\t}catch(InputMismatchException e){\n\t\t\tSystem.out.println(\"入力しなおしてください\");\n\t\t}\n\t\t}", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "try{\n\t\t\twhile(scan.hasNextLine()) {\n\t\t\t\tString str1=scan.nextLine();\n\t\t\t\tString str2=scan.nextLine();\n\t\t\t\tstr1=str1+str1;\n\t\t\t\tint result=str1.indexOf(str2);\n\t\t\t\tif(result!=-1) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tscan.close();\n\t\t}catch(InputMismatchException e){\n\t\t\tSystem.out.println(\"入力しなおしてください\");\n\t\t}", "catch(InputMismatchException e){\n\t\t\tSystem.out.println(\"入力しなおしてください\");\n\t\t}", "InputMismatchException e", "{\n\t\t\tSystem.out.println(\"入力しなおしてください\");\n\t\t}", "System.out.println(\"入力しなおしてください\")", "System.out.println", "System.out", "System", "System.out", "\"入力しなおしてください\"", "{\n\t\t\twhile(scan.hasNextLine()) {\n\t\t\t\tString str1=scan.nextLine();\n\t\t\t\tString str2=scan.nextLine();\n\t\t\t\tstr1=str1+str1;\n\t\t\t\tint result=str1.indexOf(str2);\n\t\t\t\tif(result!=-1) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tscan.close();\n\t\t}", "while(scan.hasNextLine()) {\n\t\t\t\tString str1=scan.nextLine();\n\t\t\t\tString str2=scan.nextLine();\n\t\t\t\tstr1=str1+str1;\n\t\t\t\tint result=str1.indexOf(str2);\n\t\t\t\tif(result!=-1) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t}", "scan.hasNextLine()", "scan.hasNextLine", "scan", "{\n\t\t\t\tString str1=scan.nextLine();\n\t\t\t\tString str2=scan.nextLine();\n\t\t\t\tstr1=str1+str1;\n\t\t\t\tint result=str1.indexOf(str2);\n\t\t\t\tif(result!=-1) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t}", "String str1=scan.nextLine();", "str1", "scan.nextLine()", "scan.nextLine", "scan", "String str2=scan.nextLine();", "str2", "scan.nextLine()", "scan.nextLine", "scan", "str1=str1+str1", "str1", "str1+str1", "str1", "str1", "int result=str1.indexOf(str2);", "result", "str1.indexOf(str2)", "str1.indexOf", "str1", "str2", "if(result!=-1) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}", "result!=-1", "result", "-1", "1", "{\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\"", "{\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\"", "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\ttry{\n\t\t\twhile(scan.hasNextLine()) {\n\t\t\t\tString str1=scan.nextLine();\n\t\t\t\tString str2=scan.nextLine();\n\t\t\t\tstr1=str1+str1;\n\t\t\t\tint result=str1.indexOf(str2);\n\t\t\t\tif(result!=-1) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tscan.close();\n\t\t}catch(InputMismatchException e){\n\t\t\tSystem.out.println(\"入力しなおしてください\");\n\t\t}\n\t\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\ttry{\n\t\t\twhile(scan.hasNextLine()) {\n\t\t\t\tString str1=scan.nextLine();\n\t\t\t\tString str2=scan.nextLine();\n\t\t\t\tstr1=str1+str1;\n\t\t\t\tint result=str1.indexOf(str2);\n\t\t\t\tif(result!=-1) {\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tscan.close();\n\t\t}catch(InputMismatchException e){\n\t\t\tSystem.out.println(\"入力しなおしてください\");\n\t\t}\n\t\t}\n}", "Main" ]
import java.util.InputMismatchException; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan=new Scanner(System.in); try{ while(scan.hasNextLine()) { String str1=scan.nextLine(); String str2=scan.nextLine(); str1=str1+str1; int result=str1.indexOf(str2); if(result!=-1) { System.out.println("Yes"); } else{ System.out.println("No"); } } scan.close(); }catch(InputMismatchException e){ System.out.println("入力しなおしてください"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 20, 41, 13, 17, 41, 13, 20, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 42, 2, 4, 18, 13, 13, 30, 4, 18, 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 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 13, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 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 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 33, 37 ], [ 32, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 8, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 49, 50 ], [ 43, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 43, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 6, 65 ], [ 65, 66 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tString s;\n\t\tString p;\n\t\tStringBuilder ling = new StringBuilder();\n\t\tfinal int MAX_LENGTH = 100;\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\ts = stdIn.nextLine();\n\t\tp = stdIn.nextLine();\n\n\t\twhile(ling.length() <= MAX_LENGTH) {\n\t\t\tling.append(s);\n\t\t}\n\n\t\tif(ling.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\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tString s;\n\t\tString p;\n\t\tStringBuilder ling = new StringBuilder();\n\t\tfinal int MAX_LENGTH = 100;\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\ts = stdIn.nextLine();\n\t\tp = stdIn.nextLine();\n\n\t\twhile(ling.length() <= MAX_LENGTH) {\n\t\t\tling.append(s);\n\t\t}\n\n\t\tif(ling.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\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\n\t\tString s;\n\t\tString p;\n\t\tStringBuilder ling = new StringBuilder();\n\t\tfinal int MAX_LENGTH = 100;\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\ts = stdIn.nextLine();\n\t\tp = stdIn.nextLine();\n\n\t\twhile(ling.length() <= MAX_LENGTH) {\n\t\t\tling.append(s);\n\t\t}\n\n\t\tif(ling.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\n\t}", "main", "{\n\n\t\tString s;\n\t\tString p;\n\t\tStringBuilder ling = new StringBuilder();\n\t\tfinal int MAX_LENGTH = 100;\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\ts = stdIn.nextLine();\n\t\tp = stdIn.nextLine();\n\n\t\twhile(ling.length() <= MAX_LENGTH) {\n\t\t\tling.append(s);\n\t\t}\n\n\t\tif(ling.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\n\t}", "String s;", "s", "String p;", "p", "StringBuilder ling = new StringBuilder();", "ling", "new StringBuilder()", "final int MAX_LENGTH = 100;", "MAX_LENGTH", "100", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "s = stdIn.nextLine()", "s", "stdIn.nextLine()", "stdIn.nextLine", "stdIn", "p = stdIn.nextLine()", "p", "stdIn.nextLine()", "stdIn.nextLine", "stdIn", "while(ling.length() <= MAX_LENGTH) {\n\t\t\tling.append(s);\n\t\t}", "ling.length() <= MAX_LENGTH", "ling.length()", "ling.length", "ling", "MAX_LENGTH", "{\n\t\t\tling.append(s);\n\t\t}", "ling.append(s)", "ling.append", "ling", "s", "if(ling.indexOf(p) == -1) {\n\t\t\tSystem.out.println(\"No\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}", "ling.indexOf(p) == -1", "ling.indexOf(p)", "ling.indexOf", "ling", "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" ]
import java.util.Scanner; class Main { public static void main(String[] args) { String s; String p; StringBuilder ling = new StringBuilder(); final int MAX_LENGTH = 100; Scanner stdIn = new Scanner(System.in); s = stdIn.nextLine(); p = stdIn.nextLine(); while(ling.length() <= MAX_LENGTH) { ling.append(s); } if(ling.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, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 17, 4, 18, 13, 13, 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, 3, 14, 2, 13, 13, 3, 14, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 8, 35 ], [ 35, 36 ], [ 8, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 37, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 51, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 50, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 72, 73 ], [ 73, 74 ], [ 64, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 76, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 85, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 84, 94 ], [ 49, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 8, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 105, 110 ], [ 100, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 6, 118 ], [ 118, 119 ] ]
[ "import java.util.*;\t\t\t\t\n\t\t\t\t\nclass Main {\t\t\t\t\n public static void main(String[] args) {\t\t\t\t\n Scanner sc=new Scanner(System.in);\t\t\t\t\n String s = sc.nextLine();\t\t\t\t\n String p = sc.nextLine();\t\t\t\t\n\t\t\t\t\n int slen = s.length();\t\t\t\t\n int plen = p.length();\t\t\t\t\n int j = 0,i;\t\t\t\t\n for( i = 0; i<slen; i++ ) {\t\t\t\t\n if( p.charAt( 0 ) == s.charAt( i ) ) {\t\t\t\t\n int k = i;\t\t\t\t\n for( j = 0; j<plen; j++ ) {\t\t\t\t\n k = ( i+j ) % slen;\t\t\t\t\n if( p.charAt( j ) != s.charAt( k ) ) break;\t\t\t\t\n }\t\t\t\t\n }\t\t\t\t\n if( plen == j ) break;\t\t\t\t\n }\t\t\t\t\n\t\t\t\t\n if( plen == j ) {\t\t\t\t\n System.out.println( \"Yes\" ); \t\t\t\t\n } else {\t\t\t\t\n System.out.println( \"No\" );\t\t\t\t\n }\t\t\t\t\n }\t\t\t\t\n}\t\t\t\t\n\t\t\t\t", "import java.util.*;", "util.*", "java", "class Main {\t\t\t\t\n public static void main(String[] args) {\t\t\t\t\n Scanner sc=new Scanner(System.in);\t\t\t\t\n String s = sc.nextLine();\t\t\t\t\n String p = sc.nextLine();\t\t\t\t\n\t\t\t\t\n int slen = s.length();\t\t\t\t\n int plen = p.length();\t\t\t\t\n int j = 0,i;\t\t\t\t\n for( i = 0; i<slen; i++ ) {\t\t\t\t\n if( p.charAt( 0 ) == s.charAt( i ) ) {\t\t\t\t\n int k = i;\t\t\t\t\n for( j = 0; j<plen; j++ ) {\t\t\t\t\n k = ( i+j ) % slen;\t\t\t\t\n if( p.charAt( j ) != s.charAt( k ) ) break;\t\t\t\t\n }\t\t\t\t\n }\t\t\t\t\n if( plen == j ) break;\t\t\t\t\n }\t\t\t\t\n\t\t\t\t\n if( plen == j ) {\t\t\t\t\n System.out.println( \"Yes\" ); \t\t\t\t\n } else {\t\t\t\t\n System.out.println( \"No\" );\t\t\t\t\n }\t\t\t\t\n }\t\t\t\t\n}", "Main", "public static void main(String[] args) {\t\t\t\t\n Scanner sc=new Scanner(System.in);\t\t\t\t\n String s = sc.nextLine();\t\t\t\t\n String p = sc.nextLine();\t\t\t\t\n\t\t\t\t\n int slen = s.length();\t\t\t\t\n int plen = p.length();\t\t\t\t\n int j = 0,i;\t\t\t\t\n for( i = 0; i<slen; i++ ) {\t\t\t\t\n if( p.charAt( 0 ) == s.charAt( i ) ) {\t\t\t\t\n int k = i;\t\t\t\t\n for( j = 0; j<plen; j++ ) {\t\t\t\t\n k = ( i+j ) % slen;\t\t\t\t\n if( p.charAt( j ) != s.charAt( k ) ) break;\t\t\t\t\n }\t\t\t\t\n }\t\t\t\t\n if( plen == j ) break;\t\t\t\t\n }\t\t\t\t\n\t\t\t\t\n if( plen == j ) {\t\t\t\t\n System.out.println( \"Yes\" ); \t\t\t\t\n } else {\t\t\t\t\n System.out.println( \"No\" );\t\t\t\t\n }\t\t\t\t\n }", "main", "{\t\t\t\t\n Scanner sc=new Scanner(System.in);\t\t\t\t\n String s = sc.nextLine();\t\t\t\t\n String p = sc.nextLine();\t\t\t\t\n\t\t\t\t\n int slen = s.length();\t\t\t\t\n int plen = p.length();\t\t\t\t\n int j = 0,i;\t\t\t\t\n for( i = 0; i<slen; i++ ) {\t\t\t\t\n if( p.charAt( 0 ) == s.charAt( i ) ) {\t\t\t\t\n int k = i;\t\t\t\t\n for( j = 0; j<plen; j++ ) {\t\t\t\t\n k = ( i+j ) % slen;\t\t\t\t\n if( p.charAt( j ) != s.charAt( k ) ) break;\t\t\t\t\n }\t\t\t\t\n }\t\t\t\t\n if( plen == j ) break;\t\t\t\t\n }\t\t\t\t\n\t\t\t\t\n if( plen == j ) {\t\t\t\t\n System.out.println( \"Yes\" ); \t\t\t\t\n } else {\t\t\t\t\n System.out.println( \"No\" );\t\t\t\t\n }\t\t\t\t\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 slen = s.length();", "slen", "s.length()", "s.length", "s", "int plen = p.length();", "plen", "p.length()", "p.length", "p", "int j = 0", "j", "0", "i;", "i", "for( i = 0; i<slen; i++ ) {\t\t\t\t\n if( p.charAt( 0 ) == s.charAt( i ) ) {\t\t\t\t\n int k = i;\t\t\t\t\n for( j = 0; j<plen; j++ ) {\t\t\t\t\n k = ( i+j ) % slen;\t\t\t\t\n if( p.charAt( j ) != s.charAt( k ) ) break;\t\t\t\t\n }\t\t\t\t\n }\t\t\t\t\n if( plen == j ) break;\t\t\t\t\n }", "i = 0;", "i = 0", "i", "0", "i<slen", "i", "slen", "i++", "i++", "i", "{\t\t\t\t\n if( p.charAt( 0 ) == s.charAt( i ) ) {\t\t\t\t\n int k = i;\t\t\t\t\n for( j = 0; j<plen; j++ ) {\t\t\t\t\n k = ( i+j ) % slen;\t\t\t\t\n if( p.charAt( j ) != s.charAt( k ) ) break;\t\t\t\t\n }\t\t\t\t\n }\t\t\t\t\n if( plen == j ) break;\t\t\t\t\n }", "{\t\t\t\t\n if( p.charAt( 0 ) == s.charAt( i ) ) {\t\t\t\t\n int k = i;\t\t\t\t\n for( j = 0; j<plen; j++ ) {\t\t\t\t\n k = ( i+j ) % slen;\t\t\t\t\n if( p.charAt( j ) != s.charAt( k ) ) break;\t\t\t\t\n }\t\t\t\t\n }\t\t\t\t\n if( plen == j ) break;\t\t\t\t\n }", "if( p.charAt( 0 ) == s.charAt( i ) ) {\t\t\t\t\n int k = i;\t\t\t\t\n for( j = 0; j<plen; j++ ) {\t\t\t\t\n k = ( i+j ) % slen;\t\t\t\t\n if( p.charAt( j ) != s.charAt( k ) ) break;\t\t\t\t\n }\t\t\t\t\n }", "p.charAt( 0 ) == s.charAt( i )", "p.charAt( 0 )", "p.charAt", "p", "0", "s.charAt( i )", "s.charAt", "s", "i", "{\t\t\t\t\n int k = i;\t\t\t\t\n for( j = 0; j<plen; j++ ) {\t\t\t\t\n k = ( i+j ) % slen;\t\t\t\t\n if( p.charAt( j ) != s.charAt( k ) ) break;\t\t\t\t\n }\t\t\t\t\n }", "int k = i;", "k", "i", "for( j = 0; j<plen; j++ ) {\t\t\t\t\n k = ( i+j ) % slen;\t\t\t\t\n if( p.charAt( j ) != s.charAt( k ) ) break;\t\t\t\t\n }", "j = 0;", "j = 0", "j", "0", "j<plen", "j", "plen", "j++", "j++", "j", "{\t\t\t\t\n k = ( i+j ) % slen;\t\t\t\t\n if( p.charAt( j ) != s.charAt( k ) ) break;\t\t\t\t\n }", "{\t\t\t\t\n k = ( i+j ) % slen;\t\t\t\t\n if( p.charAt( j ) != s.charAt( k ) ) break;\t\t\t\t\n }", "k = ( i+j ) % slen", "k", "( i+j ) % slen", "( i+j )", "i", "j", "slen", "if( p.charAt( j ) != s.charAt( k ) ) break;", "p.charAt( j ) != s.charAt( k )", "p.charAt( j )", "p.charAt", "p", "j", "s.charAt( k )", "s.charAt", "s", "k", "break;", "if( plen == j ) break;", "plen == j", "plen", "j", "break;", "if( plen == j ) {\t\t\t\t\n System.out.println( \"Yes\" ); \t\t\t\t\n } else {\t\t\t\t\n System.out.println( \"No\" );\t\t\t\t\n }", "plen == j", "plen", "j", "{\t\t\t\t\n System.out.println( \"Yes\" ); \t\t\t\t\n }", "System.out.println( \"Yes\" )", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\t\t\t\t\n System.out.println( \"No\" );\t\t\t\t\n }", "System.out.println( \"No\" )", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); String s = sc.nextLine(); String p = sc.nextLine(); int slen = s.length(); int plen = p.length(); int j = 0,i; for( i = 0; i<slen; i++ ) { if( p.charAt( 0 ) == s.charAt( i ) ) { int k = i; for( j = 0; j<plen; j++ ) { k = ( i+j ) % slen; if( p.charAt( j ) != s.charAt( k ) ) break; } } if( plen == j ) break; } if( plen == j ) { System.out.println( "Yes" ); } else { System.out.println( "No" ); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 3, 14, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 0, 13, 4, 18, 13, 17, 2, 13, 17, 0, 13, 4, 18, 13, 2, 13, 17, 13, 0, 13, 2, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 101, 5 ], [ 101, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 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 ], [ 8, 29 ], [ 29, 30 ], [ 8, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 31, 41 ], [ 41, 42 ], [ 42, 43 ], [ 31, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 47, 52 ], [ 52, 53 ], [ 46, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 54, 61 ], [ 45, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 62, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 45, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 45, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 89, 91 ], [ 86, 92 ], [ 45, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 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\t//文字列を入力\n\t\tScanner sc=new Scanner(System.in);\n\t\tString s=sc.next();\n\t\tString p=sc.next();\n\n\t\t//文字列をカウント\n\t\tint n=s.length();\n\t\tString x;\n\t\tString y;\n\t\t//文字列を加工\n\t\tfor(int i=0;i<=n-1;i++) {\n\t\t\tif(s.indexOf(p)!=-1) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(i==n-1) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t\tx=s.substring(0,n-1);\n\t\t\ty=s.substring(n-1,n);\n\t\t\ts=y+x;\n\t\t}\n\t}\n\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t//文字列を入力\n\t\tScanner sc=new Scanner(System.in);\n\t\tString s=sc.next();\n\t\tString p=sc.next();\n\n\t\t//文字列をカウント\n\t\tint n=s.length();\n\t\tString x;\n\t\tString y;\n\t\t//文字列を加工\n\t\tfor(int i=0;i<=n-1;i++) {\n\t\t\tif(s.indexOf(p)!=-1) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(i==n-1) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t\tx=s.substring(0,n-1);\n\t\t\ty=s.substring(n-1,n);\n\t\t\ts=y+x;\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t//文字列を入力\n\t\tScanner sc=new Scanner(System.in);\n\t\tString s=sc.next();\n\t\tString p=sc.next();\n\n\t\t//文字列をカウント\n\t\tint n=s.length();\n\t\tString x;\n\t\tString y;\n\t\t//文字列を加工\n\t\tfor(int i=0;i<=n-1;i++) {\n\t\t\tif(s.indexOf(p)!=-1) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(i==n-1) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t\tx=s.substring(0,n-1);\n\t\t\ty=s.substring(n-1,n);\n\t\t\ts=y+x;\n\t\t}\n\t}", "main", "{\n\t\t//文字列を入力\n\t\tScanner sc=new Scanner(System.in);\n\t\tString s=sc.next();\n\t\tString p=sc.next();\n\n\t\t//文字列をカウント\n\t\tint n=s.length();\n\t\tString x;\n\t\tString y;\n\t\t//文字列を加工\n\t\tfor(int i=0;i<=n-1;i++) {\n\t\t\tif(s.indexOf(p)!=-1) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(i==n-1) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t\tx=s.substring(0,n-1);\n\t\t\ty=s.substring(n-1,n);\n\t\t\ts=y+x;\n\t\t}\n\t}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s=sc.next();", "s", "sc.next()", "sc.next", "sc", "String p=sc.next();", "p", "sc.next()", "sc.next", "sc", "int n=s.length();", "n", "s.length()", "s.length", "s", "String x;", "x", "String y;", "y", "for(int i=0;i<=n-1;i++) {\n\t\t\tif(s.indexOf(p)!=-1) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(i==n-1) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t\tx=s.substring(0,n-1);\n\t\t\ty=s.substring(n-1,n);\n\t\t\ts=y+x;\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<=n-1", "i", "n-1", "n", "1", "i++", "i++", "i", "{\n\t\t\tif(s.indexOf(p)!=-1) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(i==n-1) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t\tx=s.substring(0,n-1);\n\t\t\ty=s.substring(n-1,n);\n\t\t\ts=y+x;\n\t\t}", "{\n\t\t\tif(s.indexOf(p)!=-1) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(i==n-1) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t\tx=s.substring(0,n-1);\n\t\t\ty=s.substring(n-1,n);\n\t\t\ts=y+x;\n\t\t}", "if(s.indexOf(p)!=-1) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}", "s.indexOf(p)!=-1", "s.indexOf(p)", "s.indexOf", "s", "p", "-1", "1", "{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "break;", "if(i==n-1) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}", "i==n-1", "i", "n-1", "n", "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\"", "x=s.substring(0,n-1)", "x", "s.substring(0,n-1)", "s.substring", "s", "0", "n-1", "n", "1", "y=s.substring(n-1,n)", "y", "s.substring(n-1,n)", "s.substring", "s", "n-1", "n", "1", "n", "s=y+x", "s", "y+x", "y", "x", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t//文字列を入力\n\t\tScanner sc=new Scanner(System.in);\n\t\tString s=sc.next();\n\t\tString p=sc.next();\n\n\t\t//文字列をカウント\n\t\tint n=s.length();\n\t\tString x;\n\t\tString y;\n\t\t//文字列を加工\n\t\tfor(int i=0;i<=n-1;i++) {\n\t\t\tif(s.indexOf(p)!=-1) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(i==n-1) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t\tx=s.substring(0,n-1);\n\t\t\ty=s.substring(n-1,n);\n\t\t\ts=y+x;\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t//文字列を入力\n\t\tScanner sc=new Scanner(System.in);\n\t\tString s=sc.next();\n\t\tString p=sc.next();\n\n\t\t//文字列をカウント\n\t\tint n=s.length();\n\t\tString x;\n\t\tString y;\n\t\t//文字列を加工\n\t\tfor(int i=0;i<=n-1;i++) {\n\t\t\tif(s.indexOf(p)!=-1) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(i==n-1) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t\tx=s.substring(0,n-1);\n\t\t\ty=s.substring(n-1,n);\n\t\t\ts=y+x;\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { //文字列を入力 Scanner sc=new Scanner(System.in); String s=sc.next(); String p=sc.next(); //文字列をカウント int n=s.length(); String x; String y; //文字列を加工 for(int i=0;i<=n-1;i++) { if(s.indexOf(p)!=-1) { System.out.println("Yes"); break; } if(i==n-1) { System.out.println("No"); } x=s.substring(0,n-1); y=s.substring(n-1,n); s=y+x; } } }
[ 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, 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 ]
[ [ 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 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 26, 30 ], [ 30, 31 ], [ 31, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 33, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 33, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 6, 54 ], [ 54, 55 ] ]
[ "import java.util.Scanner;\n\nclass 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 String ans = s + s.substring(0, p.length());\n\n if (ans.indexOf(p) >= 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String args[]) {\n Scanner scan = new Scanner(System.in);\n String s = scan.nextLine();\n String p = scan.nextLine();\n\n String ans = s + s.substring(0, p.length());\n\n if (ans.indexOf(p) >= 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}", "Main", "public static void main(String args[]) {\n Scanner scan = new Scanner(System.in);\n String s = scan.nextLine();\n String p = scan.nextLine();\n\n String ans = s + s.substring(0, p.length());\n\n if (ans.indexOf(p) >= 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n String s = scan.nextLine();\n String p = scan.nextLine();\n\n String ans = s + s.substring(0, p.length());\n\n if (ans.indexOf(p) >= 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String s = scan.nextLine();", "s", "scan.nextLine()", "scan.nextLine", "scan", "String p = scan.nextLine();", "p", "scan.nextLine()", "scan.nextLine", "scan", "String ans = s + s.substring(0, p.length());", "ans", "s + s.substring(0, p.length())", "s", "s.substring(0, p.length())", "s.substring", "s", "0", "p.length()", "p.length", "p", "if (ans.indexOf(p) >= 0) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }", "ans.indexOf(p) >= 0", "ans.indexOf(p)", "ans.indexOf", "ans", "p", "0", "{\n System.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n System.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String args[]", "args" ]
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); String s = scan.nextLine(); String p = scan.nextLine(); String ans = s + s.substring(0, p.length()); if (ans.indexOf(p) >= 0) { 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, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 29, 41, 13, 2, 13, 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, 14, 4, 18, 13, 4, 18, 13, 13, 2, 13, 13, 30, 0, 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 ], [ 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 ], [ 25, 26 ], [ 26, 27 ], [ 19, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 19, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 19, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 19, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 19, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 19, 53 ], [ 53, 54 ], [ 53, 55 ], [ 19, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 56, 64 ], [ 64, 65 ], [ 65, 66 ], [ 56, 67 ], [ 68, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 70, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 69, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 84, 88 ], [ 88, 89 ], [ 88, 90 ], [ 80, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 19, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 96, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 6, 110 ], [ 110, 111 ] ]
[ "/* 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 String s = br.readLine();\n String p = br.readLine();\n int s_len = s.length();\n int p_len = p.length();\n if(s_len < p_len) return;\n\n String ss = s + s;\n boolean judge = false;\n\n // CHECK\n for(int i = 0; i < s_len; i++){\n if(s.charAt(i) == p.charAt(0)){\n if(p.equals(ss.substring(i, i + p_len))){\n judge = true;\n break;\n }\n }\n }\n // OUTPUT\n if(judge)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\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 String s = br.readLine();\n String p = br.readLine();\n int s_len = s.length();\n int p_len = p.length();\n if(s_len < p_len) return;\n\n String ss = s + s;\n boolean judge = false;\n\n // CHECK\n for(int i = 0; i < s_len; i++){\n if(s.charAt(i) == p.charAt(0)){\n if(p.equals(ss.substring(i, i + p_len))){\n judge = true;\n break;\n }\n }\n }\n // OUTPUT\n if(judge)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\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 String s = br.readLine();\n String p = br.readLine();\n int s_len = s.length();\n int p_len = p.length();\n if(s_len < p_len) return;\n\n String ss = s + s;\n boolean judge = false;\n\n // CHECK\n for(int i = 0; i < s_len; i++){\n if(s.charAt(i) == p.charAt(0)){\n if(p.equals(ss.substring(i, i + p_len))){\n judge = true;\n break;\n }\n }\n }\n // OUTPUT\n if(judge)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }catch(Exception e){\n System.out.println(e);\n }\n }", "main", "{\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s = br.readLine();\n String p = br.readLine();\n int s_len = s.length();\n int p_len = p.length();\n if(s_len < p_len) return;\n\n String ss = s + s;\n boolean judge = false;\n\n // CHECK\n for(int i = 0; i < s_len; i++){\n if(s.charAt(i) == p.charAt(0)){\n if(p.equals(ss.substring(i, i + p_len))){\n judge = true;\n break;\n }\n }\n }\n // OUTPUT\n if(judge)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }catch(Exception e){\n System.out.println(e);\n }\n }", "try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s = br.readLine();\n String p = br.readLine();\n int s_len = s.length();\n int p_len = p.length();\n if(s_len < p_len) return;\n\n String ss = s + s;\n boolean judge = false;\n\n // CHECK\n for(int i = 0; i < s_len; i++){\n if(s.charAt(i) == p.charAt(0)){\n if(p.equals(ss.substring(i, i + p_len))){\n judge = true;\n break;\n }\n }\n }\n // OUTPUT\n if(judge)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n }catch(Exception e){\n System.out.println(e);\n }", "catch(Exception e){\n System.out.println(e);\n }", "Exception e", "{\n System.out.println(e);\n }", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s = br.readLine();\n String p = br.readLine();\n int s_len = s.length();\n int p_len = p.length();\n if(s_len < p_len) return;\n\n String ss = s + s;\n boolean judge = false;\n\n // CHECK\n for(int i = 0; i < s_len; i++){\n if(s.charAt(i) == p.charAt(0)){\n if(p.equals(ss.substring(i, i + p_len))){\n judge = true;\n break;\n }\n }\n }\n // OUTPUT\n if(judge)\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))", "String s = br.readLine();", "s", "br.readLine()", "br.readLine", "br", "String p = br.readLine();", "p", "br.readLine()", "br.readLine", "br", "int s_len = s.length();", "s_len", "s.length()", "s.length", "s", "int p_len = p.length();", "p_len", "p.length()", "p.length", "p", "if(s_len < p_len) return;", "s_len < p_len", "s_len", "p_len", "return;", "String ss = s + s;", "ss", "s + s", "s", "s", "boolean judge = false;", "judge", "false", "for(int i = 0; i < s_len; i++){\n if(s.charAt(i) == p.charAt(0)){\n if(p.equals(ss.substring(i, i + p_len))){\n judge = true;\n break;\n }\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < s_len", "i", "s_len", "i++", "i++", "i", "{\n if(s.charAt(i) == p.charAt(0)){\n if(p.equals(ss.substring(i, i + p_len))){\n judge = true;\n break;\n }\n }\n }", "{\n if(s.charAt(i) == p.charAt(0)){\n if(p.equals(ss.substring(i, i + p_len))){\n judge = true;\n break;\n }\n }\n }", "if(s.charAt(i) == p.charAt(0)){\n if(p.equals(ss.substring(i, i + p_len))){\n judge = true;\n break;\n }\n }", "s.charAt(i) == p.charAt(0)", "s.charAt(i)", "s.charAt", "s", "i", "p.charAt(0)", "p.charAt", "p", "0", "{\n if(p.equals(ss.substring(i, i + p_len))){\n judge = true;\n break;\n }\n }", "if(p.equals(ss.substring(i, i + p_len))){\n judge = true;\n break;\n }", "p.equals(ss.substring(i, i + p_len))", "p.equals", "p", "ss.substring(i, i + p_len)", "ss.substring", "ss", "i", "i + p_len", "i", "p_len", "{\n judge = true;\n break;\n }", "judge = true", "judge", "true", "break;", "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)); String s = br.readLine(); String p = br.readLine(); int s_len = s.length(); int p_len = p.length(); if(s_len < p_len) return; String ss = s + s; boolean judge = false; // CHECK for(int i = 0; i < s_len; i++){ if(s.charAt(i) == p.charAt(0)){ if(p.equals(ss.substring(i, i + p_len))){ judge = true; break; } } } // OUTPUT 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, 2, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 4, 18, 13, 13, 2, 13, 4, 18, 13, 17, 30, 0, 13, 17, 3, 14, 13, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 82, 5 ], [ 82, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 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 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 50, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 46, 59 ], [ 45, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 8, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 65, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 6, 79 ], [ 79, 80 ], [ 0, 81 ], [ 81, 82 ], [ 81, 83 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String args[]){\n\tScanner in = new Scanner(System.in);\n\tString str = in.nextLine();\n\tString str2 = in.nextLine();\n\t\n\tString str3 = str+str;\n\tboolean flag = false;\n\tfor(int i=0;i<str.length();i++){\n\t if(str2.compareTo(str3.substring(i,i+str2.length()))==0){\n\t\tflag =true;\n\t\tbreak;\n\t }\n\t}\n\tif(flag)System.out.println(\"Yes\");\n\telse System.out.println(\"No\");\n }\n}\n \n\t\n\t", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String args[]){\n\tScanner in = new Scanner(System.in);\n\tString str = in.nextLine();\n\tString str2 = in.nextLine();\n\t\n\tString str3 = str+str;\n\tboolean flag = false;\n\tfor(int i=0;i<str.length();i++){\n\t if(str2.compareTo(str3.substring(i,i+str2.length()))==0){\n\t\tflag =true;\n\t\tbreak;\n\t }\n\t}\n\tif(flag)System.out.println(\"Yes\");\n\telse System.out.println(\"No\");\n }\n}", "Main", "public static void main(String args[]){\n\tScanner in = new Scanner(System.in);\n\tString str = in.nextLine();\n\tString str2 = in.nextLine();\n\t\n\tString str3 = str+str;\n\tboolean flag = false;\n\tfor(int i=0;i<str.length();i++){\n\t if(str2.compareTo(str3.substring(i,i+str2.length()))==0){\n\t\tflag =true;\n\t\tbreak;\n\t }\n\t}\n\tif(flag)System.out.println(\"Yes\");\n\telse System.out.println(\"No\");\n }", "main", "{\n\tScanner in = new Scanner(System.in);\n\tString str = in.nextLine();\n\tString str2 = in.nextLine();\n\t\n\tString str3 = str+str;\n\tboolean flag = false;\n\tfor(int i=0;i<str.length();i++){\n\t if(str2.compareTo(str3.substring(i,i+str2.length()))==0){\n\t\tflag =true;\n\t\tbreak;\n\t }\n\t}\n\tif(flag)System.out.println(\"Yes\");\n\telse System.out.println(\"No\");\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "String str = in.nextLine();", "str", "in.nextLine()", "in.nextLine", "in", "String str2 = in.nextLine();", "str2", "in.nextLine()", "in.nextLine", "in", "String str3 = str+str;", "str3", "str+str", "str", "str", "boolean flag = false;", "flag", "false", "for(int i=0;i<str.length();i++){\n\t if(str2.compareTo(str3.substring(i,i+str2.length()))==0){\n\t\tflag =true;\n\t\tbreak;\n\t }\n\t}", "int i=0;", "int i=0;", "i", "0", "i<str.length()", "i", "str.length()", "str.length", "str", "i++", "i++", "i", "{\n\t if(str2.compareTo(str3.substring(i,i+str2.length()))==0){\n\t\tflag =true;\n\t\tbreak;\n\t }\n\t}", "{\n\t if(str2.compareTo(str3.substring(i,i+str2.length()))==0){\n\t\tflag =true;\n\t\tbreak;\n\t }\n\t}", "if(str2.compareTo(str3.substring(i,i+str2.length()))==0){\n\t\tflag =true;\n\t\tbreak;\n\t }", "str2.compareTo(str3.substring(i,i+str2.length()))==0", "str2.compareTo(str3.substring(i,i+str2.length()))", "str2.compareTo", "str2", "str3.substring(i,i+str2.length())", "str3.substring", "str3", "i", "i+str2.length()", "i", "str2.length()", "str2.length", "str2", "0", "{\n\t\tflag =true;\n\t\tbreak;\n\t }", "flag =true", "flag", "true", "break;", "if(flag)System.out.println(\"Yes\");\n\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 public static void main(String args[]){\n\tScanner in = new Scanner(System.in);\n\tString str = in.nextLine();\n\tString str2 = in.nextLine();\n\t\n\tString str3 = str+str;\n\tboolean flag = false;\n\tfor(int i=0;i<str.length();i++){\n\t if(str2.compareTo(str3.substring(i,i+str2.length()))==0){\n\t\tflag =true;\n\t\tbreak;\n\t }\n\t}\n\tif(flag)System.out.println(\"Yes\");\n\telse System.out.println(\"No\");\n }\n}", "public class Main{\n public static void main(String args[]){\n\tScanner in = new Scanner(System.in);\n\tString str = in.nextLine();\n\tString str2 = in.nextLine();\n\t\n\tString str3 = str+str;\n\tboolean flag = false;\n\tfor(int i=0;i<str.length();i++){\n\t if(str2.compareTo(str3.substring(i,i+str2.length()))==0){\n\t\tflag =true;\n\t\tbreak;\n\t }\n\t}\n\tif(flag)System.out.println(\"Yes\");\n\telse System.out.println(\"No\");\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner in = new Scanner(System.in); String str = in.nextLine(); String str2 = in.nextLine(); String str3 = str+str; boolean flag = false; for(int i=0;i<str.length();i++){ if(str2.compareTo(str3.substring(i,i+str2.length()))==0){ flag =true; break; } } if(flag)System.out.println("Yes"); else System.out.println("No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 4, 18, 18, 13, 13, 8, 13, 17, 17, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 4, 13, 23, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 13, 30, 0, 13, 20, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 14, 4, 13, 30, 29, 4, 18, 13, 30, 4, 13, 29, 4, 18, 13, 12, 13, 30, 14, 4, 13, 30, 29, 4, 18, 13, 4, 18, 13, 30, 4, 13, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 14, 4, 13, 30, 29, 4, 18, 13, 4, 18, 13, 30, 4, 13, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 14, 4, 13, 30, 29, 4, 18, 13, 4, 18, 13, 30, 4, 13, 29, 4, 18, 13, 4, 18, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 178, 8 ], [ 178, 9 ], [ 9, 10 ], [ 9, 11 ], [ 178, 12 ], [ 12, 13 ], [ 12, 14 ], [ 178, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 17, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 17, 35 ], [ 35, 36 ], [ 35, 37 ], [ 17, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 43, 46 ], [ 15, 47 ], [ 47, 48 ], [ 0, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 49, 53 ], [ 53, 54 ], [ 49, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 55, 63 ], [ 63, 64 ], [ 49, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 68, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 49, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 49, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 90, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 49, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 116, 117 ], [ 117, 118 ], [ 108, 119 ], [ 119, 120 ], [ 120, 121 ], [ 119, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 126, 127 ], [ 127, 128 ], [ 49, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 132, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 137, 140 ], [ 140, 141 ], [ 141, 142 ], [ 132, 143 ], [ 143, 144 ], [ 144, 145 ], [ 143, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 147, 150 ], [ 150, 151 ], [ 151, 152 ], [ 49, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 156, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 161, 164 ], [ 164, 165 ], [ 165, 166 ], [ 156, 167 ], [ 167, 168 ], [ 168, 169 ], [ 167, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 171, 174 ], [ 174, 175 ], [ 175, 176 ], [ 0, 177 ], [ 177, 178 ], [ 177, 179 ] ]
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main{\n\tfinal static int MOD = 1000000007;\n\tfinal static int INF = 1000000000;\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tNScanner sc = new NScanner(System.in);\n\t\tchar[] s = sc.next().toCharArray();\n\t\tchar[] p = sc.next().toCharArray();\n\t\tboolean okay = false;\n\n\t\there: for(int i = 0; i < s.length; ++i){\n\t\t\tfor(int j = 0; j < p.length; ++j){\n\t\t\t\tint idx = (i + j) % s.length;\n\t\t\t\tif(s[idx] != p[j])\n\t\t\t\t\tcontinue here;\n\t\t\t}\n\t\t\tokay = true;\n\t\t}\n\t\tSystem.out.println(okay ? \"Yes\" : \"No\");\n\t}\n\n}\n\nclass NScanner{\n\n\tprivate BufferedReader br;\n\tprivate StringTokenizer tok;\n\n\tpublic NScanner(InputStream is) throws IOException{\n\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\tgetLine();\n\t}\n\n\tprivate void getLine() throws IOException{\n\t\twhile(tok == null || !hasNext()){\n\t\t\ttok = new StringTokenizer(br.readLine());\n\t\t}\n\t}\n\n\tpublic boolean hasNext(){\n\t\treturn tok.hasMoreTokens();\n\t}\n\n\tpublic String next() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn tok.nextToken();\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn tok.nextToken();\n\t\t}\n\t}\n\n\tpublic int nextInt() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}\n\t}\n\n\tpublic long nextLong() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}\n\t}\n\n\tpublic double nextDouble() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main{\n\tfinal static int MOD = 1000000007;\n\tfinal static int INF = 1000000000;\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tNScanner sc = new NScanner(System.in);\n\t\tchar[] s = sc.next().toCharArray();\n\t\tchar[] p = sc.next().toCharArray();\n\t\tboolean okay = false;\n\n\t\there: for(int i = 0; i < s.length; ++i){\n\t\t\tfor(int j = 0; j < p.length; ++j){\n\t\t\t\tint idx = (i + j) % s.length;\n\t\t\t\tif(s[idx] != p[j])\n\t\t\t\t\tcontinue here;\n\t\t\t}\n\t\t\tokay = true;\n\t\t}\n\t\tSystem.out.println(okay ? \"Yes\" : \"No\");\n\t}\n\n}", "Main", "final static int MOD = 1000000007;", "MOD", "1000000007", "final static int INF = 1000000000;", "INF", "1000000000", "public static void main(String[] args) throws IOException{\n\t\tNScanner sc = new NScanner(System.in);\n\t\tchar[] s = sc.next().toCharArray();\n\t\tchar[] p = sc.next().toCharArray();\n\t\tboolean okay = false;\n\n\t\there: for(int i = 0; i < s.length; ++i){\n\t\t\tfor(int j = 0; j < p.length; ++j){\n\t\t\t\tint idx = (i + j) % s.length;\n\t\t\t\tif(s[idx] != p[j])\n\t\t\t\t\tcontinue here;\n\t\t\t}\n\t\t\tokay = true;\n\t\t}\n\t\tSystem.out.println(okay ? \"Yes\" : \"No\");\n\t}", "main", "{\n\t\tNScanner sc = new NScanner(System.in);\n\t\tchar[] s = sc.next().toCharArray();\n\t\tchar[] p = sc.next().toCharArray();\n\t\tboolean okay = false;\n\n\t\there: for(int i = 0; i < s.length; ++i){\n\t\t\tfor(int j = 0; j < p.length; ++j){\n\t\t\t\tint idx = (i + j) % s.length;\n\t\t\t\tif(s[idx] != p[j])\n\t\t\t\t\tcontinue here;\n\t\t\t}\n\t\t\tokay = true;\n\t\t}\n\t\tSystem.out.println(okay ? \"Yes\" : \"No\");\n\t}", "NScanner sc = new NScanner(System.in);", "sc", "new NScanner(System.in)", "char[] s = sc.next().toCharArray();", "s", "sc.next().toCharArray()", "sc.next().toCharArray", "sc.next()", "sc.next", "sc", "char[] p = sc.next().toCharArray();", "p", "sc.next().toCharArray()", "sc.next().toCharArray", "sc.next()", "sc.next", "sc", "boolean okay = false;", "okay", "false", "System.out.println(okay ? \"Yes\" : \"No\")", "System.out.println", "System.out", "System", "System.out", "okay ? \"Yes\" : \"No\"", "okay", "\"Yes\"", "\"No\"", "String[] args", "args", "class NScanner{\n\n\tprivate BufferedReader br;\n\tprivate StringTokenizer tok;\n\n\tpublic NScanner(InputStream is) throws IOException{\n\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\tgetLine();\n\t}\n\n\tprivate void getLine() throws IOException{\n\t\twhile(tok == null || !hasNext()){\n\t\t\ttok = new StringTokenizer(br.readLine());\n\t\t}\n\t}\n\n\tpublic boolean hasNext(){\n\t\treturn tok.hasMoreTokens();\n\t}\n\n\tpublic String next() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn tok.nextToken();\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn tok.nextToken();\n\t\t}\n\t}\n\n\tpublic int nextInt() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}\n\t}\n\n\tpublic long nextLong() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}\n\t}\n\n\tpublic double nextDouble() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}\n\t}\n}", "NScanner", "private BufferedReader br;", "br", "private StringTokenizer tok;", "tok", "public NScanner(InputStream is) throws IOException{\n\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\tgetLine();\n\t}", "NScanner", "{\n\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\tgetLine();\n\t}", "br = new BufferedReader(new InputStreamReader(is))", "br", "new BufferedReader(new InputStreamReader(is))", "getLine()", "getLine", "InputStream is", "is", "private void getLine() throws IOException{\n\t\twhile(tok == null || !hasNext()){\n\t\t\ttok = new StringTokenizer(br.readLine());\n\t\t}\n\t}", "getLine", "{\n\t\twhile(tok == null || !hasNext()){\n\t\t\ttok = new StringTokenizer(br.readLine());\n\t\t}\n\t}", "while(tok == null || !hasNext()){\n\t\t\ttok = new StringTokenizer(br.readLine());\n\t\t}", "tok == null || !hasNext()", "tok == null", "tok", "null", "!hasNext()", "hasNext()", "hasNext", "{\n\t\t\ttok = new StringTokenizer(br.readLine());\n\t\t}", "tok = new StringTokenizer(br.readLine())", "tok", "new StringTokenizer(br.readLine())", "public boolean hasNext(){\n\t\treturn tok.hasMoreTokens();\n\t}", "hasNext", "{\n\t\treturn tok.hasMoreTokens();\n\t}", "return tok.hasMoreTokens();", "tok.hasMoreTokens()", "tok.hasMoreTokens", "tok", "public String next() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn tok.nextToken();\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn tok.nextToken();\n\t\t}\n\t}", "next", "{\n\t\tif(hasNext()){\n\t\t\treturn tok.nextToken();\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn tok.nextToken();\n\t\t}\n\t}", "if(hasNext()){\n\t\t\treturn tok.nextToken();\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn tok.nextToken();\n\t\t}", "hasNext()", "hasNext", "{\n\t\t\treturn tok.nextToken();\n\t\t}", "return tok.nextToken();", "tok.nextToken()", "tok.nextToken", "tok", "{\n\t\t\tgetLine();\n\t\t\treturn tok.nextToken();\n\t\t}", "getLine()", "getLine", "return tok.nextToken();", "tok.nextToken()", "tok.nextToken", "tok", "public int nextInt() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}\n\t}", "nextInt", "{\n\t\tif(hasNext()){\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}\n\t}", "if(hasNext()){\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}", "hasNext()", "hasNext", "{\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}", "return Integer.parseInt(tok.nextToken());", "Integer.parseInt(tok.nextToken())", "Integer.parseInt", "Integer", "tok.nextToken()", "tok.nextToken", "tok", "{\n\t\t\tgetLine();\n\t\t\treturn Integer.parseInt(tok.nextToken());\n\t\t}", "getLine()", "getLine", "return Integer.parseInt(tok.nextToken());", "Integer.parseInt(tok.nextToken())", "Integer.parseInt", "Integer", "tok.nextToken()", "tok.nextToken", "tok", "public long nextLong() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}\n\t}", "nextLong", "{\n\t\tif(hasNext()){\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}\n\t}", "if(hasNext()){\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}", "hasNext()", "hasNext", "{\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}", "return Long.parseLong(tok.nextToken());", "Long.parseLong(tok.nextToken())", "Long.parseLong", "Long", "tok.nextToken()", "tok.nextToken", "tok", "{\n\t\t\tgetLine();\n\t\t\treturn Long.parseLong(tok.nextToken());\n\t\t}", "getLine()", "getLine", "return Long.parseLong(tok.nextToken());", "Long.parseLong(tok.nextToken())", "Long.parseLong", "Long", "tok.nextToken()", "tok.nextToken", "tok", "public double nextDouble() throws IOException{\n\t\tif(hasNext()){\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}\n\t}", "nextDouble", "{\n\t\tif(hasNext()){\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}\n\t}", "if(hasNext()){\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}else{\n\t\t\tgetLine();\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}", "hasNext()", "hasNext", "{\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}", "return Double.parseDouble(tok.nextToken());", "Double.parseDouble(tok.nextToken())", "Double.parseDouble", "Double", "tok.nextToken()", "tok.nextToken", "tok", "{\n\t\t\tgetLine();\n\t\t\treturn Double.parseDouble(tok.nextToken());\n\t\t}", "getLine()", "getLine", "return Double.parseDouble(tok.nextToken());", "Double.parseDouble(tok.nextToken())", "Double.parseDouble", "Double", "tok.nextToken()", "tok.nextToken", "tok", "public class Main{\n\tfinal static int MOD = 1000000007;\n\tfinal static int INF = 1000000000;\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tNScanner sc = new NScanner(System.in);\n\t\tchar[] s = sc.next().toCharArray();\n\t\tchar[] p = sc.next().toCharArray();\n\t\tboolean okay = false;\n\n\t\there: for(int i = 0; i < s.length; ++i){\n\t\t\tfor(int j = 0; j < p.length; ++j){\n\t\t\t\tint idx = (i + j) % s.length;\n\t\t\t\tif(s[idx] != p[j])\n\t\t\t\t\tcontinue here;\n\t\t\t}\n\t\t\tokay = true;\n\t\t}\n\t\tSystem.out.println(okay ? \"Yes\" : \"No\");\n\t}\n\n}", "public class Main{\n\tfinal static int MOD = 1000000007;\n\tfinal static int INF = 1000000000;\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tNScanner sc = new NScanner(System.in);\n\t\tchar[] s = sc.next().toCharArray();\n\t\tchar[] p = sc.next().toCharArray();\n\t\tboolean okay = false;\n\n\t\there: for(int i = 0; i < s.length; ++i){\n\t\t\tfor(int j = 0; j < p.length; ++j){\n\t\t\t\tint idx = (i + j) % s.length;\n\t\t\t\tif(s[idx] != p[j])\n\t\t\t\t\tcontinue here;\n\t\t\t}\n\t\t\tokay = true;\n\t\t}\n\t\tSystem.out.println(okay ? \"Yes\" : \"No\");\n\t}\n\n}", "Main" ]
import java.util.*; import java.io.*; public class Main{ final static int MOD = 1000000007; final static int INF = 1000000000; public static void main(String[] args) throws IOException{ NScanner sc = new NScanner(System.in); char[] s = sc.next().toCharArray(); char[] p = sc.next().toCharArray(); boolean okay = false; here: for(int i = 0; i < s.length; ++i){ for(int j = 0; j < p.length; ++j){ int idx = (i + j) % s.length; if(s[idx] != p[j]) continue here; } okay = true; } System.out.println(okay ? "Yes" : "No"); } } class NScanner{ private BufferedReader br; private StringTokenizer tok; public NScanner(InputStream is) throws IOException{ br = new BufferedReader(new InputStreamReader(is)); getLine(); } private void getLine() throws IOException{ while(tok == null || !hasNext()){ tok = new StringTokenizer(br.readLine()); } } public boolean hasNext(){ return tok.hasMoreTokens(); } public String next() throws IOException{ if(hasNext()){ return tok.nextToken(); }else{ getLine(); return tok.nextToken(); } } public int nextInt() throws IOException{ if(hasNext()){ return Integer.parseInt(tok.nextToken()); }else{ getLine(); return Integer.parseInt(tok.nextToken()); } } public long nextLong() throws IOException{ if(hasNext()){ return Long.parseLong(tok.nextToken()); }else{ getLine(); return Long.parseLong(tok.nextToken()); } } public double nextDouble() throws IOException{ if(hasNext()){ return Double.parseDouble(tok.nextToken()); }else{ getLine(); return Double.parseDouble(tok.nextToken()); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 17, 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, 0, 13, 2, 2, 13, 13, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 4, 18, 13, 17, 30, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 2, 13, 13, 4, 18, 13, 13, 30, 3, 14, 2, 13, 13, 30, 0, 13, 17, 3, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 136, 5 ], [ 136, 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 ], [ 8, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 8, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 8, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 8, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 8, 48 ], [ 48, 49 ], [ 48, 50 ], [ 51, 51 ], [ 51, 52 ], [ 51, 53 ], [ 51, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 55, 63 ], [ 63, 64 ], [ 64, 65 ], [ 55, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 69, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 68, 78 ], [ 78, 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 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 97, 98 ], [ 97, 99 ], [ 93, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 92, 104 ], [ 104, 105 ], [ 67, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 8, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 115, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 127, 132 ], [ 6, 133 ], [ 133, 134 ], [ 0, 135 ], [ 135, 136 ], [ 135, 137 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int ls,lp,i,j=0,f=0;\n String s,p;\n s=scan.next();\n p=scan.next();\n ls=s.length();\n lp=p.length();\n s=s+s+s;\n for(i=0;i<ls;i++) {\n \tif(s.charAt(i)==p.charAt(0)) {\n \t\tfor(j=1;j<lp;j++) {\n \t\t\tif(s.charAt(i+j)!=p.charAt(j)) {\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}\n \tif(j==lp) {\n \t\tf=1;\n \t\tbreak;\n \t}\n }\n if(f==1) {\n \tSystem.out.println(\"Yes\");\n }\n else {\n \tSystem.out.println(\"No\");\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int ls,lp,i,j=0,f=0;\n String s,p;\n s=scan.next();\n p=scan.next();\n ls=s.length();\n lp=p.length();\n s=s+s+s;\n for(i=0;i<ls;i++) {\n \tif(s.charAt(i)==p.charAt(0)) {\n \t\tfor(j=1;j<lp;j++) {\n \t\t\tif(s.charAt(i+j)!=p.charAt(j)) {\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}\n \tif(j==lp) {\n \t\tf=1;\n \t\tbreak;\n \t}\n }\n if(f==1) {\n \tSystem.out.println(\"Yes\");\n }\n else {\n \tSystem.out.println(\"No\");\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int ls,lp,i,j=0,f=0;\n String s,p;\n s=scan.next();\n p=scan.next();\n ls=s.length();\n lp=p.length();\n s=s+s+s;\n for(i=0;i<ls;i++) {\n \tif(s.charAt(i)==p.charAt(0)) {\n \t\tfor(j=1;j<lp;j++) {\n \t\t\tif(s.charAt(i+j)!=p.charAt(j)) {\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}\n \tif(j==lp) {\n \t\tf=1;\n \t\tbreak;\n \t}\n }\n if(f==1) {\n \tSystem.out.println(\"Yes\");\n }\n else {\n \tSystem.out.println(\"No\");\n }\n }", "main", "{\n Scanner scan=new Scanner(System.in);\n int ls,lp,i,j=0,f=0;\n String s,p;\n s=scan.next();\n p=scan.next();\n ls=s.length();\n lp=p.length();\n s=s+s+s;\n for(i=0;i<ls;i++) {\n \tif(s.charAt(i)==p.charAt(0)) {\n \t\tfor(j=1;j<lp;j++) {\n \t\t\tif(s.charAt(i+j)!=p.charAt(j)) {\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}\n \tif(j==lp) {\n \t\tf=1;\n \t\tbreak;\n \t}\n }\n if(f==1) {\n \tSystem.out.println(\"Yes\");\n }\n else {\n \tSystem.out.println(\"No\");\n }\n }", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "int ls", "ls", "lp", "lp", "i", "i", "j=0", "j", "0", "f=0;", "f", "0", "String s", "s", "p;", "p", "s=scan.next()", "s", "scan.next()", "scan.next", "scan", "p=scan.next()", "p", "scan.next()", "scan.next", "scan", "ls=s.length()", "ls", "s.length()", "s.length", "s", "lp=p.length()", "lp", "p.length()", "p.length", "p", "s=s+s+s", "s", "s+s+s", "s+s+s", "s", "s", "s", "for(i=0;i<ls;i++) {\n \tif(s.charAt(i)==p.charAt(0)) {\n \t\tfor(j=1;j<lp;j++) {\n \t\t\tif(s.charAt(i+j)!=p.charAt(j)) {\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}\n \tif(j==lp) {\n \t\tf=1;\n \t\tbreak;\n \t}\n }", "i=0;", "i=0", "i", "0", "i<ls", "i", "ls", "i++", "i++", "i", "{\n \tif(s.charAt(i)==p.charAt(0)) {\n \t\tfor(j=1;j<lp;j++) {\n \t\t\tif(s.charAt(i+j)!=p.charAt(j)) {\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}\n \tif(j==lp) {\n \t\tf=1;\n \t\tbreak;\n \t}\n }", "{\n \tif(s.charAt(i)==p.charAt(0)) {\n \t\tfor(j=1;j<lp;j++) {\n \t\t\tif(s.charAt(i+j)!=p.charAt(j)) {\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}\n \tif(j==lp) {\n \t\tf=1;\n \t\tbreak;\n \t}\n }", "if(s.charAt(i)==p.charAt(0)) {\n \t\tfor(j=1;j<lp;j++) {\n \t\t\tif(s.charAt(i+j)!=p.charAt(j)) {\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}", "s.charAt(i)==p.charAt(0)", "s.charAt(i)", "s.charAt", "s", "i", "p.charAt(0)", "p.charAt", "p", "0", "{\n \t\tfor(j=1;j<lp;j++) {\n \t\t\tif(s.charAt(i+j)!=p.charAt(j)) {\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}", "for(j=1;j<lp;j++) {\n \t\t\tif(s.charAt(i+j)!=p.charAt(j)) {\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}", "j=1;", "j=1", "j", "1", "j<lp", "j", "lp", "j++", "j++", "j", "{\n \t\t\tif(s.charAt(i+j)!=p.charAt(j)) {\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}", "{\n \t\t\tif(s.charAt(i+j)!=p.charAt(j)) {\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}", "if(s.charAt(i+j)!=p.charAt(j)) {\n \t\t\t\tbreak;\n \t\t\t}", "s.charAt(i+j)!=p.charAt(j)", "s.charAt(i+j)", "s.charAt", "s", "i+j", "i", "j", "p.charAt(j)", "p.charAt", "p", "j", "{\n \t\t\t\tbreak;\n \t\t\t}", "break;", "if(j==lp) {\n \t\tf=1;\n \t\tbreak;\n \t}", "j==lp", "j", "lp", "{\n \t\tf=1;\n \t\tbreak;\n \t}", "f=1", "f", "1", "break;", "if(f==1) {\n \tSystem.out.println(\"Yes\");\n }\n else {\n \tSystem.out.println(\"No\");\n }", "f==1", "f", "1", "{\n \tSystem.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n \tSystem.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int ls,lp,i,j=0,f=0;\n String s,p;\n s=scan.next();\n p=scan.next();\n ls=s.length();\n lp=p.length();\n s=s+s+s;\n for(i=0;i<ls;i++) {\n \tif(s.charAt(i)==p.charAt(0)) {\n \t\tfor(j=1;j<lp;j++) {\n \t\t\tif(s.charAt(i+j)!=p.charAt(j)) {\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}\n \tif(j==lp) {\n \t\tf=1;\n \t\tbreak;\n \t}\n }\n if(f==1) {\n \tSystem.out.println(\"Yes\");\n }\n else {\n \tSystem.out.println(\"No\");\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int ls,lp,i,j=0,f=0;\n String s,p;\n s=scan.next();\n p=scan.next();\n ls=s.length();\n lp=p.length();\n s=s+s+s;\n for(i=0;i<ls;i++) {\n \tif(s.charAt(i)==p.charAt(0)) {\n \t\tfor(j=1;j<lp;j++) {\n \t\t\tif(s.charAt(i+j)!=p.charAt(j)) {\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}\n \tif(j==lp) {\n \t\tf=1;\n \t\tbreak;\n \t}\n }\n if(f==1) {\n \tSystem.out.println(\"Yes\");\n }\n else {\n \tSystem.out.println(\"No\");\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan=new Scanner(System.in); int ls,lp,i,j=0,f=0; String s,p; s=scan.next(); p=scan.next(); ls=s.length(); lp=p.length(); s=s+s+s; for(i=0;i<ls;i++) { if(s.charAt(i)==p.charAt(0)) { for(j=1;j<lp;j++) { if(s.charAt(i+j)!=p.charAt(j)) { break; } } } if(j==lp) { f=1; break; } } if(f==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, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 17, 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, 3, 14, 2, 2, 13, 2, 18, 13, 13, 17, 2, 18, 13, 2, 13, 13, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 0, 13, 17, 14, 2, 13, 17, 3, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 146, 5 ], [ 146, 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 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 51, 53 ], [ 40, 54 ], [ 54, 55 ], [ 55, 56 ], [ 40, 57 ], [ 58, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 64, 66 ], [ 59, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 68, 78 ], [ 78, 79 ], [ 79, 80 ], [ 68, 81 ], [ 82, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 84, 90 ], [ 90, 91 ], [ 90, 92 ], [ 83, 93 ], [ 82, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 95, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 103, 109 ], [ 109, 110 ], [ 109, 111 ], [ 94, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 112, 119 ], [ 119, 120 ], [ 119, 121 ], [ 58, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 8, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 127, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 131, 136 ], [ 146, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 137, 143 ], [ 143, 144 ], [ 0, 145 ], [ 145, 146 ], [ 145, 147 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.next();\n\t\tString p = scan.next();\n\t\ts = s + s;\n\t\tchar[] sc = s.toCharArray();\n\t\tchar[] ps = p.toCharArray();\n\t\tboolean flag = false;\n\t\tfor (int i = 0; i < sc.length - ps.length; i++) {\n\t\t\tif (sc[i] == ps[0]) {\n\t\t\t\tfor (int j = 0; j < ps.length; j++) {\n\t\t\t\t\tif (sc[i + j] != ps[j]) break;\n\t\t\t\t\tif (j == ps.length - 1 && sc[i + j] == ps[j]) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag == true) break;\n\t\t}\n\t\tif (flag == false)\n\t\t\tSystem.out.println(\"No\");\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.next();\n\t\tString p = scan.next();\n\t\ts = s + s;\n\t\tchar[] sc = s.toCharArray();\n\t\tchar[] ps = p.toCharArray();\n\t\tboolean flag = false;\n\t\tfor (int i = 0; i < sc.length - ps.length; i++) {\n\t\t\tif (sc[i] == ps[0]) {\n\t\t\t\tfor (int j = 0; j < ps.length; j++) {\n\t\t\t\t\tif (sc[i + j] != ps[j]) break;\n\t\t\t\t\tif (j == ps.length - 1 && sc[i + j] == ps[j]) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag == true) break;\n\t\t}\n\t\tif (flag == false)\n\t\t\tSystem.out.println(\"No\");\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "Main", "void run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.next();\n\t\tString p = scan.next();\n\t\ts = s + s;\n\t\tchar[] sc = s.toCharArray();\n\t\tchar[] ps = p.toCharArray();\n\t\tboolean flag = false;\n\t\tfor (int i = 0; i < sc.length - ps.length; i++) {\n\t\t\tif (sc[i] == ps[0]) {\n\t\t\t\tfor (int j = 0; j < ps.length; j++) {\n\t\t\t\t\tif (sc[i + j] != ps[j]) break;\n\t\t\t\t\tif (j == ps.length - 1 && sc[i + j] == ps[j]) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag == true) break;\n\t\t}\n\t\tif (flag == false)\n\t\t\tSystem.out.println(\"No\");\n\t}", "run", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.next();\n\t\tString p = scan.next();\n\t\ts = s + s;\n\t\tchar[] sc = s.toCharArray();\n\t\tchar[] ps = p.toCharArray();\n\t\tboolean flag = false;\n\t\tfor (int i = 0; i < sc.length - ps.length; i++) {\n\t\t\tif (sc[i] == ps[0]) {\n\t\t\t\tfor (int j = 0; j < ps.length; j++) {\n\t\t\t\t\tif (sc[i + j] != ps[j]) break;\n\t\t\t\t\tif (j == ps.length - 1 && sc[i + j] == ps[j]) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag == true) break;\n\t\t}\n\t\tif (flag == false)\n\t\t\tSystem.out.println(\"No\");\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 + s", "s", "s + s", "s", "s", "char[] sc = s.toCharArray();", "sc", "s.toCharArray()", "s.toCharArray", "s", "char[] ps = p.toCharArray();", "ps", "p.toCharArray()", "p.toCharArray", "p", "boolean flag = false;", "flag", "false", "for (int i = 0; i < sc.length - ps.length; i++) {\n\t\t\tif (sc[i] == ps[0]) {\n\t\t\t\tfor (int j = 0; j < ps.length; j++) {\n\t\t\t\t\tif (sc[i + j] != ps[j]) break;\n\t\t\t\t\tif (j == ps.length - 1 && sc[i + j] == ps[j]) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag == true) break;\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < sc.length - ps.length", "i", "sc.length - ps.length", "sc.length", "sc", "sc.length", "ps.length", "ps", "ps.length", "i++", "i++", "i", "{\n\t\t\tif (sc[i] == ps[0]) {\n\t\t\t\tfor (int j = 0; j < ps.length; j++) {\n\t\t\t\t\tif (sc[i + j] != ps[j]) break;\n\t\t\t\t\tif (j == ps.length - 1 && sc[i + j] == ps[j]) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag == true) break;\n\t\t}", "{\n\t\t\tif (sc[i] == ps[0]) {\n\t\t\t\tfor (int j = 0; j < ps.length; j++) {\n\t\t\t\t\tif (sc[i + j] != ps[j]) break;\n\t\t\t\t\tif (j == ps.length - 1 && sc[i + j] == ps[j]) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag == true) break;\n\t\t}", "if (sc[i] == ps[0]) {\n\t\t\t\tfor (int j = 0; j < ps.length; j++) {\n\t\t\t\t\tif (sc[i + j] != ps[j]) break;\n\t\t\t\t\tif (j == ps.length - 1 && sc[i + j] == ps[j]) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "sc[i] == ps[0]", "sc[i]", "sc", "i", "ps[0]", "ps", "0", "{\n\t\t\t\tfor (int j = 0; j < ps.length; j++) {\n\t\t\t\t\tif (sc[i + j] != ps[j]) break;\n\t\t\t\t\tif (j == ps.length - 1 && sc[i + j] == ps[j]) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "for (int j = 0; j < ps.length; j++) {\n\t\t\t\t\tif (sc[i + j] != ps[j]) break;\n\t\t\t\t\tif (j == ps.length - 1 && sc[i + j] == ps[j]) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\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 < ps.length", "j", "ps.length", "ps", "ps.length", "j++", "j++", "j", "{\n\t\t\t\t\tif (sc[i + j] != ps[j]) break;\n\t\t\t\t\tif (j == ps.length - 1 && sc[i + j] == ps[j]) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\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 (sc[i + j] != ps[j]) break;\n\t\t\t\t\tif (j == ps.length - 1 && sc[i + j] == ps[j]) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}", "if (sc[i + j] != ps[j]) break;", "sc[i + j] != ps[j]", "sc[i + j]", "sc", "i + j", "i", "j", "ps[j]", "ps", "j", "break;", "if (j == ps.length - 1 && sc[i + j] == ps[j]) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}", "j == ps.length - 1 && sc[i + j] == ps[j]", "j == ps.length - 1", "j", "ps.length - 1", "ps.length", "ps", "ps.length", "1", "sc[i + j] == ps[j]", "sc[i + j]", "sc", "i + j", "i", "j", "ps[j]", "ps", "j", "{\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "flag = true", "flag", "true", "if (flag == true) break;", "flag == true", "flag", "true", "break;", "if (flag == false)\n\t\t\tSystem.out.println(\"No\");", "flag == false", "flag", "false", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "public static void main(String[] args) {\n\t\tnew Main().run();\n\t}", "main", "{\n\t\tnew Main().run();\n\t}", "new Main().run()", "new Main().run", "new Main()", "String[] args", "args", "public class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.next();\n\t\tString p = scan.next();\n\t\ts = s + s;\n\t\tchar[] sc = s.toCharArray();\n\t\tchar[] ps = p.toCharArray();\n\t\tboolean flag = false;\n\t\tfor (int i = 0; i < sc.length - ps.length; i++) {\n\t\t\tif (sc[i] == ps[0]) {\n\t\t\t\tfor (int j = 0; j < ps.length; j++) {\n\t\t\t\t\tif (sc[i + j] != ps[j]) break;\n\t\t\t\t\tif (j == ps.length - 1 && sc[i + j] == ps[j]) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag == true) break;\n\t\t}\n\t\tif (flag == false)\n\t\t\tSystem.out.println(\"No\");\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "public class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.next();\n\t\tString p = scan.next();\n\t\ts = s + s;\n\t\tchar[] sc = s.toCharArray();\n\t\tchar[] ps = p.toCharArray();\n\t\tboolean flag = false;\n\t\tfor (int i = 0; i < sc.length - ps.length; i++) {\n\t\t\tif (sc[i] == ps[0]) {\n\t\t\t\tfor (int j = 0; j < ps.length; j++) {\n\t\t\t\t\tif (sc[i + j] != ps[j]) break;\n\t\t\t\t\tif (j == ps.length - 1 && sc[i + j] == ps[j]) {\n\t\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag == true) break;\n\t\t}\n\t\tif (flag == false)\n\t\t\tSystem.out.println(\"No\");\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { void run() { Scanner scan = new Scanner(System.in); String s = scan.next(); String p = scan.next(); s = s + s; char[] sc = s.toCharArray(); char[] ps = p.toCharArray(); boolean flag = false; for (int i = 0; i < sc.length - ps.length; i++) { if (sc[i] == ps[0]) { for (int j = 0; j < ps.length; j++) { if (sc[i + j] != ps[j]) break; if (j == ps.length - 1 && sc[i + j] == ps[j]) { System.out.println("Yes"); flag = true; } } } if (flag == true) break; } if (flag == false) System.out.println("No"); } public static void main(String[] args) { new Main().run(); } }
[ 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, 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 ], [ 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 ], [ 14, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 31, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 31, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 12, 50 ], [ 50, 51 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\nclass Main{\n\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tString word = br.readLine();\n\n\t\tstr += str;\n\n\t\tif(str.contains(word)){\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}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "class Main{\n\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tString word = br.readLine();\n\n\t\tstr += str;\n\n\t\tif(str.contains(word)){\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) throws IOException{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tString word = br.readLine();\n\n\t\tstr += str;\n\n\t\tif(str.contains(word)){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tString word = br.readLine();\n\n\t\tstr += str;\n\n\t\tif(str.contains(word)){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\n\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 word = br.readLine();", "word", "br.readLine()", "br.readLine", "br", "str += str", "str", "str", "if(str.contains(word)){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "str.contains(word)", "str.contains", "str", "word", "{\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.InputStreamReader; import java.io.IOException; class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); String word = br.readLine(); str += str; if(str.contains(word)){ System.out.println("Yes"); }else{ System.out.println("No"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 42, 2, 4, 18, 13, 17, 4, 18, 13, 13, 0, 13, 4, 18, 13, 4, 18, 18, 13, 13, 8, 4, 18, 13, 13, 17, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 17, 31 ], [ 31, 32 ], [ 31, 33 ], [ 17, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 35, 39 ], [ 34, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 17, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 17, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 54, 59 ], [ 54, 60 ], [ 15, 61 ], [ 61, 62 ] ]
[ "import java.io.BufferedReader;\nimport java.io.FileReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\nclass Main{\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str=br.readLine();\n\t\tString b=br.readLine();\n\t\tStringBuilder sb=new StringBuilder(str);\n\t\twhile(sb.length()<101)sb.append(str);\n\t\tstr=sb.toString();\n\t\tSystem.out.println(str.contains(b)?\"Yes\":\"No\");\n\t\n\t\n\t}}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.FileReader;", "FileReader", "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\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str=br.readLine();\n\t\tString b=br.readLine();\n\t\tStringBuilder sb=new StringBuilder(str);\n\t\twhile(sb.length()<101)sb.append(str);\n\t\tstr=sb.toString();\n\t\tSystem.out.println(str.contains(b)?\"Yes\":\"No\");\n\t\n\t\n\t}}", "Main", "public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str=br.readLine();\n\t\tString b=br.readLine();\n\t\tStringBuilder sb=new StringBuilder(str);\n\t\twhile(sb.length()<101)sb.append(str);\n\t\tstr=sb.toString();\n\t\tSystem.out.println(str.contains(b)?\"Yes\":\"No\");\n\t\n\t\n\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str=br.readLine();\n\t\tString b=br.readLine();\n\t\tStringBuilder sb=new StringBuilder(str);\n\t\twhile(sb.length()<101)sb.append(str);\n\t\tstr=sb.toString();\n\t\tSystem.out.println(str.contains(b)?\"Yes\":\"No\");\n\t\n\t\n\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 b=br.readLine();", "b", "br.readLine()", "br.readLine", "br", "StringBuilder sb=new StringBuilder(str);", "sb", "new StringBuilder(str)", "while(sb.length()<101)sb.append(str);", "sb.length()<101", "sb.length()", "sb.length", "sb", "101", "sb.append(str)", "sb.append", "sb", "str", "str=sb.toString()", "str", "sb.toString()", "sb.toString", "sb", "System.out.println(str.contains(b)?\"Yes\":\"No\")", "System.out.println", "System.out", "System", "System.out", "str.contains(b)?\"Yes\":\"No\"", "str.contains(b)", "str.contains", "str", "b", "\"Yes\"", "\"No\"", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.FileReader; 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 str=br.readLine(); String b=br.readLine(); StringBuilder sb=new StringBuilder(str); while(sb.length()<101)sb.append(str); str=sb.toString(); System.out.println(str.contains(b)?"Yes":"No"); }}
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 8, 4, 18, 2, 13, 13, 13, 17, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 39, 5 ], [ 39, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 27, 34 ], [ 27, 35 ], [ 6, 36 ], [ 36, 37 ], [ 0, 38 ], [ 38, 39 ], [ 38, 40 ] ]
[ "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 s = sc.next();\n String p = sc.next();\n\n System.out.println((s + s).contains(p) ? \"Yes\" : \"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 s = sc.next();\n String p = sc.next();\n\n System.out.println((s + s).contains(p) ? \"Yes\" : \"No\");\n }\n}", "Main", "public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String p = sc.next();\n\n System.out.println((s + s).contains(p) ? \"Yes\" : \"No\");\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String p = sc.next();\n\n System.out.println((s + s).contains(p) ? \"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", "System.out.println((s + s).contains(p) ? \"Yes\" : \"No\")", "System.out.println", "System.out", "System", "System.out", "(s + s).contains(p) ? \"Yes\" : \"No\"", "(s + s).contains(p)", "(s + s).contains", "(s + s)", "s", "s", "p", "\"Yes\"", "\"No\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String p = sc.next();\n\n System.out.println((s + s).contains(p) ? \"Yes\" : \"No\");\n }\n}", "public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String p = sc.next();\n\n System.out.println((s + s).contains(p) ? \"Yes\" : \"No\");\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); String p = sc.next(); System.out.println((s + s).contains(p) ? "Yes" : "No"); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 17, 41, 13, 20, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 4, 18, 13, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 4, 18, 13, 17, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 13, 4, 18, 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 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 14, 19 ], [ 19, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 14, 24 ], [ 24, 25 ], [ 24, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 14, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 14, 37 ], [ 37, 38 ], [ 38, 39 ], [ 14, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 42, 44 ], [ 14, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 52, 56 ], [ 45, 57 ], [ 57, 58 ], [ 58, 59 ], [ 45, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 64, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 61, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 73, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 14, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 82, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 12, 98 ], [ 98, 99 ] ]
[ "import 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\tString s,p,temp;\n\t\tboolean match = false;\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \ts = br.readLine();\n \tp = br.readLine();\n \tbr.close();\n\n \ts = s + s;\n \tfor(int i = 0;i < s.length()/2;i++){\n \t\ttemp = s.substring(i, i + p.length());\n \t\tif(temp.equals(p)){\n \t\t\tmatch = true;\n \t\t}\n \t}\n \tif(match){\n \t\tSystem.out.println(\"Yes\");\n \t}\n \telse{\n \t\tSystem.out.println(\"No\");\n \t}\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tString s,p,temp;\n\t\tboolean match = false;\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \ts = br.readLine();\n \tp = br.readLine();\n \tbr.close();\n\n \ts = s + s;\n \tfor(int i = 0;i < s.length()/2;i++){\n \t\ttemp = s.substring(i, i + p.length());\n \t\tif(temp.equals(p)){\n \t\t\tmatch = true;\n \t\t}\n \t}\n \tif(match){\n \t\tSystem.out.println(\"Yes\");\n \t}\n \telse{\n \t\tSystem.out.println(\"No\");\n \t}\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n\t\tString s,p,temp;\n\t\tboolean match = false;\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \ts = br.readLine();\n \tp = br.readLine();\n \tbr.close();\n\n \ts = s + s;\n \tfor(int i = 0;i < s.length()/2;i++){\n \t\ttemp = s.substring(i, i + p.length());\n \t\tif(temp.equals(p)){\n \t\t\tmatch = true;\n \t\t}\n \t}\n \tif(match){\n \t\tSystem.out.println(\"Yes\");\n \t}\n \telse{\n \t\tSystem.out.println(\"No\");\n \t}\n }", "main", "{\n\t\tString s,p,temp;\n\t\tboolean match = false;\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \ts = br.readLine();\n \tp = br.readLine();\n \tbr.close();\n\n \ts = s + s;\n \tfor(int i = 0;i < s.length()/2;i++){\n \t\ttemp = s.substring(i, i + p.length());\n \t\tif(temp.equals(p)){\n \t\t\tmatch = true;\n \t\t}\n \t}\n \tif(match){\n \t\tSystem.out.println(\"Yes\");\n \t}\n \telse{\n \t\tSystem.out.println(\"No\");\n \t}\n }", "String s", "s", "p", "p", "temp;", "temp", "boolean match = false;", "match", "false", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "s = br.readLine()", "s", "br.readLine()", "br.readLine", "br", "p = br.readLine()", "p", "br.readLine()", "br.readLine", "br", "br.close()", "br.close", "br", "s = s + s", "s", "s + s", "s", "s", "for(int i = 0;i < s.length()/2;i++){\n \t\ttemp = s.substring(i, i + p.length());\n \t\tif(temp.equals(p)){\n \t\t\tmatch = true;\n \t\t}\n \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\ttemp = s.substring(i, i + p.length());\n \t\tif(temp.equals(p)){\n \t\t\tmatch = true;\n \t\t}\n \t}", "{\n \t\ttemp = s.substring(i, i + p.length());\n \t\tif(temp.equals(p)){\n \t\t\tmatch = true;\n \t\t}\n \t}", "temp = s.substring(i, i + p.length())", "temp", "s.substring(i, i + p.length())", "s.substring", "s", "i", "i + p.length()", "i", "p.length()", "p.length", "p", "if(temp.equals(p)){\n \t\t\tmatch = true;\n \t\t}", "temp.equals(p)", "temp.equals", "temp", "p", "{\n \t\t\tmatch = true;\n \t\t}", "match = true", "match", "true", "if(match){\n \t\tSystem.out.println(\"Yes\");\n \t}\n \telse{\n \t\tSystem.out.println(\"No\");\n \t}", "match", "{\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" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main { public static void main(String[] args) throws IOException{ String s,p,temp; boolean match = false; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); s = br.readLine(); p = br.readLine(); br.close(); s = s + s; for(int i = 0;i < s.length()/2;i++){ temp = s.substring(i, i + p.length()); if(temp.equals(p)){ match = true; } } if(match){ 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, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 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 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 34, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 8, 53 ], [ 53, 54 ], [ 54, 55 ], [ 6, 56 ], [ 56, 57 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n public static void main(String args[]) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString roop = scanner.next();\n\t\tString search = scanner.next();\n \t\t\n \t\troop = roop.concat(roop);\n \t\t\n \t\tint result = roop.lastIndexOf(search);\n \t\n\t\tif (result != -1) {\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\tscanner.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String args[]) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString roop = scanner.next();\n\t\tString search = scanner.next();\n \t\t\n \t\troop = roop.concat(roop);\n \t\t\n \t\tint result = roop.lastIndexOf(search);\n \t\n\t\tif (result != -1) {\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\tscanner.close();\n }\n}", "Main", "public static void main(String args[]) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString roop = scanner.next();\n\t\tString search = scanner.next();\n \t\t\n \t\troop = roop.concat(roop);\n \t\t\n \t\tint result = roop.lastIndexOf(search);\n \t\n\t\tif (result != -1) {\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\tscanner.close();\n }", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString roop = scanner.next();\n\t\tString search = scanner.next();\n \t\t\n \t\troop = roop.concat(roop);\n \t\t\n \t\tint result = roop.lastIndexOf(search);\n \t\n\t\tif (result != -1) {\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\tscanner.close();\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String roop = scanner.next();", "roop", "scanner.next()", "scanner.next", "scanner", "String search = scanner.next();", "search", "scanner.next()", "scanner.next", "scanner", "roop = roop.concat(roop)", "roop", "roop.concat(roop)", "roop.concat", "roop", "roop", "int result = roop.lastIndexOf(search);", "result", "roop.lastIndexOf(search)", "roop.lastIndexOf", "roop", "search", "if (result != -1) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "result != -1", "result", "-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\"", "scanner.close()", "scanner.close", "scanner", "String args[]", "args" ]
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); String roop = scanner.next(); String search = scanner.next(); roop = roop.concat(roop); int result = roop.lastIndexOf(search); if (result != -1) { System.out.println("Yes"); } else { System.out.println("No"); } scanner.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 41, 13, 17, 14, 2, 13, 4, 18, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 67, 5 ], [ 67, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 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 ], [ 8, 38 ], [ 38, 39 ], [ 38, 40 ], [ 8, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 41, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 8, 61 ], [ 61, 62 ], [ 62, 63 ], [ 6, 64 ], [ 64, 65 ], [ 0, 66 ], [ 66, 67 ], [ 66, 68 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString p = sc.next();\n\t\tchar[] characterS = s.toCharArray();\n\t\tchar[] characterC = p.toCharArray();\n\t\tint i, j, l;\n\t\tint count = 0;\n\t\ttop: for (i = 0; i < s.length(); i++) {\n\t\t\tfor (j = 0, l = 0; j < p.length();) {\n\t\t\t\ttry {\n\t\t\t\t\tif (characterC[j] == characterS[j + i]) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t} catch (java.lang.ArrayIndexOutOfBoundsException e) {\n\t\t\t\t\tif (characterC[j] == characterS[l]) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tl++;\n\t\t\t\t\t}\n\t\t\t\t} finally {\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (count == p.length()) {\n\t\t\t\tbreak top;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}\n\t\tif (count == p.length()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tsc.close();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString p = sc.next();\n\t\tchar[] characterS = s.toCharArray();\n\t\tchar[] characterC = p.toCharArray();\n\t\tint i, j, l;\n\t\tint count = 0;\n\t\ttop: for (i = 0; i < s.length(); i++) {\n\t\t\tfor (j = 0, l = 0; j < p.length();) {\n\t\t\t\ttry {\n\t\t\t\t\tif (characterC[j] == characterS[j + i]) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t} catch (java.lang.ArrayIndexOutOfBoundsException e) {\n\t\t\t\t\tif (characterC[j] == characterS[l]) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tl++;\n\t\t\t\t\t}\n\t\t\t\t} finally {\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (count == p.length()) {\n\t\t\t\tbreak top;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}\n\t\tif (count == p.length()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tsc.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString p = sc.next();\n\t\tchar[] characterS = s.toCharArray();\n\t\tchar[] characterC = p.toCharArray();\n\t\tint i, j, l;\n\t\tint count = 0;\n\t\ttop: for (i = 0; i < s.length(); i++) {\n\t\t\tfor (j = 0, l = 0; j < p.length();) {\n\t\t\t\ttry {\n\t\t\t\t\tif (characterC[j] == characterS[j + i]) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t} catch (java.lang.ArrayIndexOutOfBoundsException e) {\n\t\t\t\t\tif (characterC[j] == characterS[l]) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tl++;\n\t\t\t\t\t}\n\t\t\t\t} finally {\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (count == p.length()) {\n\t\t\t\tbreak top;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}\n\t\tif (count == p.length()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString p = sc.next();\n\t\tchar[] characterS = s.toCharArray();\n\t\tchar[] characterC = p.toCharArray();\n\t\tint i, j, l;\n\t\tint count = 0;\n\t\ttop: for (i = 0; i < s.length(); i++) {\n\t\t\tfor (j = 0, l = 0; j < p.length();) {\n\t\t\t\ttry {\n\t\t\t\t\tif (characterC[j] == characterS[j + i]) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t} catch (java.lang.ArrayIndexOutOfBoundsException e) {\n\t\t\t\t\tif (characterC[j] == characterS[l]) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tl++;\n\t\t\t\t\t}\n\t\t\t\t} finally {\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (count == p.length()) {\n\t\t\t\tbreak top;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}\n\t\tif (count == p.length()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "String p = sc.next();", "p", "sc.next()", "sc.next", "sc", "char[] characterS = s.toCharArray();", "characterS", "s.toCharArray()", "s.toCharArray", "s", "char[] characterC = p.toCharArray();", "characterC", "p.toCharArray()", "p.toCharArray", "p", "int i", "i", "j", "j", "l;", "l", "int count = 0;", "count", "0", "if (count == p.length()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "count == p.length()", "count", "p.length()", "p.length", "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\"", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString p = sc.next();\n\t\tchar[] characterS = s.toCharArray();\n\t\tchar[] characterC = p.toCharArray();\n\t\tint i, j, l;\n\t\tint count = 0;\n\t\ttop: for (i = 0; i < s.length(); i++) {\n\t\t\tfor (j = 0, l = 0; j < p.length();) {\n\t\t\t\ttry {\n\t\t\t\t\tif (characterC[j] == characterS[j + i]) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t} catch (java.lang.ArrayIndexOutOfBoundsException e) {\n\t\t\t\t\tif (characterC[j] == characterS[l]) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tl++;\n\t\t\t\t\t}\n\t\t\t\t} finally {\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (count == p.length()) {\n\t\t\t\tbreak top;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}\n\t\tif (count == p.length()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tsc.close();\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString p = sc.next();\n\t\tchar[] characterS = s.toCharArray();\n\t\tchar[] characterC = p.toCharArray();\n\t\tint i, j, l;\n\t\tint count = 0;\n\t\ttop: for (i = 0; i < s.length(); i++) {\n\t\t\tfor (j = 0, l = 0; j < p.length();) {\n\t\t\t\ttry {\n\t\t\t\t\tif (characterC[j] == characterS[j + i]) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t} catch (java.lang.ArrayIndexOutOfBoundsException e) {\n\t\t\t\t\tif (characterC[j] == characterS[l]) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tl++;\n\t\t\t\t\t}\n\t\t\t\t} finally {\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (count == p.length()) {\n\t\t\t\tbreak top;\n\t\t\t} else {\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}\n\t\tif (count == p.length()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); String p = sc.next(); char[] characterS = s.toCharArray(); char[] characterC = p.toCharArray(); int i, j, l; int count = 0; top: for (i = 0; i < s.length(); i++) { for (j = 0, l = 0; j < p.length();) { try { if (characterC[j] == characterS[j + i]) { count++; } } catch (java.lang.ArrayIndexOutOfBoundsException e) { if (characterC[j] == characterS[l]) { count++; l++; } } finally { j++; } } if (count == p.length()) { break top; } else { count = 0; } } if (count == p.length()) { System.out.println("Yes"); } else { System.out.println("No"); } sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 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, 11, 1, 41, 13, 17, 2, 13, 2, 4, 18, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 4, 18, 13, 4, 18, 13, 13, 2, 13, 4, 18, 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 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 17, 25 ], [ 25, 26 ], [ 17, 27 ], [ 27, 28 ], [ 27, 29 ], [ 17, 30 ], [ 30, 31 ], [ 30, 32 ], [ 17, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 33, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 40, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 40, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 40, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 63, 67 ], [ 67, 68 ], [ 68, 69 ], [ 56, 70 ], [ 70, 71 ], [ 71, 72 ], [ 56, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 75, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 88, 95 ], [ 40, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 15, 102 ], [ 102, 103 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s, b;\n String c;\n int count = 0;\n int j = 0;\n try {\n s = br.readLine();\n b = br.readLine();\n c = s + s;\n for (int i = 0; i < c.length() - b.length(); i++) {\n if (b.equals(c.substring(i, i + b.length()))) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s, b;\n String c;\n int count = 0;\n int j = 0;\n try {\n s = br.readLine();\n b = br.readLine();\n c = s + s;\n for (int i = 0; i < c.length() - b.length(); i++) {\n if (b.equals(c.substring(i, i + b.length()))) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n}", "Main", "public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s, b;\n String c;\n int count = 0;\n int j = 0;\n try {\n s = br.readLine();\n b = br.readLine();\n c = s + s;\n for (int i = 0; i < c.length() - b.length(); i++) {\n if (b.equals(c.substring(i, i + b.length()))) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s, b;\n String c;\n int count = 0;\n int j = 0;\n try {\n s = br.readLine();\n b = br.readLine();\n c = s + s;\n for (int i = 0; i < c.length() - b.length(); i++) {\n if (b.equals(c.substring(i, i + b.length()))) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String s", "s", "b;", "b", "String c;", "c", "int count = 0;", "count", "0", "int j = 0;", "j", "0", "try {\n s = br.readLine();\n b = br.readLine();\n c = s + s;\n for (int i = 0; i < c.length() - b.length(); i++) {\n if (b.equals(c.substring(i, i + b.length()))) {\n System.out.println(\"Yes\");\n return;\n }\n }\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 s = br.readLine();\n b = br.readLine();\n c = s + s;\n for (int i = 0; i < c.length() - b.length(); i++) {\n if (b.equals(c.substring(i, i + b.length()))) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n\n }", "s = br.readLine()", "s", "br.readLine()", "br.readLine", "br", "b = br.readLine()", "b", "br.readLine()", "br.readLine", "br", "c = s + s", "c", "s + s", "s", "s", "for (int i = 0; i < c.length() - b.length(); i++) {\n if (b.equals(c.substring(i, i + b.length()))) {\n System.out.println(\"Yes\");\n return;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < c.length() - b.length()", "i", "c.length() - b.length()", "c.length()", "c.length", "c", "b.length()", "b.length", "b", "i++", "i++", "i", "{\n if (b.equals(c.substring(i, i + b.length()))) {\n System.out.println(\"Yes\");\n return;\n }\n }", "{\n if (b.equals(c.substring(i, i + b.length()))) {\n System.out.println(\"Yes\");\n return;\n }\n }", "if (b.equals(c.substring(i, i + b.length()))) {\n System.out.println(\"Yes\");\n return;\n }", "b.equals(c.substring(i, i + b.length()))", "b.equals", "b", "c.substring(i, i + b.length())", "c.substring", "c", "i", "i + b.length()", "i", "b.length()", "b.length", "b", "{\n System.out.println(\"Yes\");\n return;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "return;", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String s, b; String c; int count = 0; int j = 0; try { s = br.readLine(); b = br.readLine(); c = s + s; for (int i = 0; i < c.length() - b.length(); i++) { if (b.equals(c.substring(i, i + b.length()))) { System.out.println("Yes"); return; } } System.out.println("No"); } catch (IOException e) { e.printStackTrace(); } } }
[ 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, 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 ], [ 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 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 12, 52 ], [ 52, 53 ], [ 0, 54 ], [ 54, 55 ], [ 54, 56 ] ]
[ "/**\n * 与えられた英文に含まれる、\n * 各アルファベットの数を数えるプログラムを作成して下さい。 なお、小文字と大文字は区別しません。\n */\n\n//スキャナつかうため\n\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Scanner;\n\npublic class Main {\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t//入力される二つの文字列を受け取る\n\t\tString strs = sc.nextLine();\n\t\tString strItti = sc.nextLine();\n\t\t//比較対象になる文字列をつくる\n\t\tString strMoji = strs + strs;\n\t\t// System.out.println(strMoji);\n\t\t//strMoji のなかにstrIttiがあればYes,なければNoを表示\n\t\tif (strMoji.contains(strItti)) {\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}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t//入力される二つの文字列を受け取る\n\t\tString strs = sc.nextLine();\n\t\tString strItti = sc.nextLine();\n\t\t//比較対象になる文字列をつくる\n\t\tString strMoji = strs + strs;\n\t\t// System.out.println(strMoji);\n\t\t//strMoji のなかにstrIttiがあればYes,なければNoを表示\n\t\tif (strMoji.contains(strItti)) {\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", "// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t//入力される二つの文字列を受け取る\n\t\tString strs = sc.nextLine();\n\t\tString strItti = sc.nextLine();\n\t\t//比較対象になる文字列をつくる\n\t\tString strMoji = strs + strs;\n\t\t// System.out.println(strMoji);\n\t\t//strMoji のなかにstrIttiがあればYes,なければNoを表示\n\t\tif (strMoji.contains(strItti)) {\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\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t//入力される二つの文字列を受け取る\n\t\tString strs = sc.nextLine();\n\t\tString strItti = sc.nextLine();\n\t\t//比較対象になる文字列をつくる\n\t\tString strMoji = strs + strs;\n\t\t// System.out.println(strMoji);\n\t\t//strMoji のなかにstrIttiがあればYes,なければNoを表示\n\t\tif (strMoji.contains(strItti)) {\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 strs = sc.nextLine();", "strs", "sc.nextLine()", "sc.nextLine", "sc", "String strItti = sc.nextLine();", "strItti", "sc.nextLine()", "sc.nextLine", "sc", "String strMoji = strs + strs;", "strMoji", "strs + strs", "strs", "strs", "if (strMoji.contains(strItti)) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "strMoji.contains(strItti)", "strMoji.contains", "strMoji", "strItti", "{\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t//入力される二つの文字列を受け取る\n\t\tString strs = sc.nextLine();\n\t\tString strItti = sc.nextLine();\n\t\t//比較対象になる文字列をつくる\n\t\tString strMoji = strs + strs;\n\t\t// System.out.println(strMoji);\n\t\t//strMoji のなかにstrIttiがあればYes,なければNoを表示\n\t\tif (strMoji.contains(strItti)) {\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\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t//入力される二つの文字列を受け取る\n\t\tString strs = sc.nextLine();\n\t\tString strItti = sc.nextLine();\n\t\t//比較対象になる文字列をつくる\n\t\tString strMoji = strs + strs;\n\t\t// System.out.println(strMoji);\n\t\t//strMoji のなかにstrIttiがあればYes,なければNoを表示\n\t\tif (strMoji.contains(strItti)) {\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.io.BufferedReader; import java.io.InputStreamReader; import java.util.Scanner; public class Main { // プログラムのエントリポイント public static void main(String[] args) { // 入力ストリームの生成 Scanner sc = new Scanner(System.in); //入力される二つの文字列を受け取る String strs = sc.nextLine(); String strItti = sc.nextLine(); //比較対象になる文字列をつくる String strMoji = strs + strs; // System.out.println(strMoji); //strMoji のなかにstrIttiがあればYes,なければNoを表示 if (strMoji.contains(strItti)) { 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, 4, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 2, 13, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 13, 14, 4, 18, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 77, 11 ], [ 77, 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 ], [ 28, 31 ], [ 12, 32 ], [ 32, 33 ], [ 77, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 39, 41 ], [ 36, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 36, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 36, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 54, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 34, 72 ], [ 72, 73 ], [ 34, 74 ], [ 74, 75 ], [ 0, 76 ], [ 76, 77 ], [ 76, 78 ] ]
[ "import java.util.Scanner;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\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.next();\n\t\tString p = sc.next();\n\t\tprintIsString(s, p);\n\t}\n\n\tprivate static void printIsString(String s, String p) {\n\t\tString S = s + s;\n\t\tPattern pa = Pattern.compile(p);\n\t\tMatcher m = pa.matcher(S);\n\t\tif (m.find()) {\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", "import java.util.regex.Matcher;", "Matcher", "java.util.regex", "import java.util.regex.Pattern;", "Pattern", "java.util.regex", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString p = sc.next();\n\t\tprintIsString(s, p);\n\t}\n\n\tprivate static void printIsString(String s, String p) {\n\t\tString S = s + s;\n\t\tPattern pa = Pattern.compile(p);\n\t\tMatcher m = pa.matcher(S);\n\t\tif (m.find()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString p = sc.next();\n\t\tprintIsString(s, p);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString p = sc.next();\n\t\tprintIsString(s, p);\n\t}", "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", "printIsString(s, p)", "printIsString", "s", "p", "String[] args", "args", "private static void printIsString(String s, String p) {\n\t\tString S = s + s;\n\t\tPattern pa = Pattern.compile(p);\n\t\tMatcher m = pa.matcher(S);\n\t\tif (m.find()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "printIsString", "{\n\t\tString S = s + s;\n\t\tPattern pa = Pattern.compile(p);\n\t\tMatcher m = pa.matcher(S);\n\t\tif (m.find()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "String S = s + s;", "S", "s + s", "s", "s", "Pattern pa = Pattern.compile(p);", "pa", "Pattern.compile(p)", "Pattern.compile", "Pattern", "p", "Matcher m = pa.matcher(S);", "m", "pa.matcher(S)", "pa.matcher", "pa", "S", "if (m.find()) {\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "m.find()", "m.find", "m", "{\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 s", "s", "String p", "p", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString p = sc.next();\n\t\tprintIsString(s, p);\n\t}\n\n\tprivate static void printIsString(String s, String p) {\n\t\tString S = s + s;\n\t\tPattern pa = Pattern.compile(p);\n\t\tMatcher m = pa.matcher(S);\n\t\tif (m.find()) {\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\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tString p = sc.next();\n\t\tprintIsString(s, p);\n\t}\n\n\tprivate static void printIsString(String s, String p) {\n\t\tString S = s + s;\n\t\tPattern pa = Pattern.compile(p);\n\t\tMatcher m = pa.matcher(S);\n\t\tif (m.find()) {\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; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); String p = sc.next(); printIsString(s, p); } private static void printIsString(String s, String p) { String S = s + s; Pattern pa = Pattern.compile(p); Matcher m = pa.matcher(S); if (m.find()) { System.out.println("Yes"); } else { System.out.println("No"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 4, 18, 13, 4, 18, 13, 30, 14, 4, 18, 13, 2, 4, 18, 13, 13, 4, 18, 13, 17, 2, 2, 13, 4, 18, 13, 4, 18, 13, 30, 0, 13, 17, 30, 14, 4, 18, 13, 4, 18, 13, 13, 2, 13, 4, 18, 13, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 104, 5 ], [ 104, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 25, 35 ], [ 35, 36 ], [ 36, 37 ], [ 25, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 48, 49 ], [ 40, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 55, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 64, 70 ], [ 70, 71 ], [ 71, 72 ], [ 51, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 40, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 78, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 8, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 6, 101 ], [ 101, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String p = sc.next();\n String ans = \"No\";\n\n for(int i = 0; i < s.length(); i++){\n if(i + p.length() > s.length()){\n if(p.equals(s.substring(i) + s.substring(0, i + p.length() - s.length()))){\n ans = \"Yes\";\n }\n } else {\n if(p.equals(s.substring(i, i + p.length()))){\n ans = \"Yes\";\n }\n }\n }\n\n System.out.println(ans);\n }\n}\n", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String p = sc.next();\n String ans = \"No\";\n\n for(int i = 0; i < s.length(); i++){\n if(i + p.length() > s.length()){\n if(p.equals(s.substring(i) + s.substring(0, i + p.length() - s.length()))){\n ans = \"Yes\";\n }\n } else {\n if(p.equals(s.substring(i, i + p.length()))){\n ans = \"Yes\";\n }\n }\n }\n\n System.out.println(ans);\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String p = sc.next();\n String ans = \"No\";\n\n for(int i = 0; i < s.length(); i++){\n if(i + p.length() > s.length()){\n if(p.equals(s.substring(i) + s.substring(0, i + p.length() - s.length()))){\n ans = \"Yes\";\n }\n } else {\n if(p.equals(s.substring(i, i + p.length()))){\n ans = \"Yes\";\n }\n }\n }\n\n System.out.println(ans);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String p = sc.next();\n String ans = \"No\";\n\n for(int i = 0; i < s.length(); i++){\n if(i + p.length() > s.length()){\n if(p.equals(s.substring(i) + s.substring(0, i + p.length() - s.length()))){\n ans = \"Yes\";\n }\n } else {\n if(p.equals(s.substring(i, i + p.length()))){\n ans = \"Yes\";\n }\n }\n }\n\n System.out.println(ans);\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", "String ans = \"No\";", "ans", "\"No\"", "for(int i = 0; i < s.length(); i++){\n if(i + p.length() > s.length()){\n if(p.equals(s.substring(i) + s.substring(0, i + p.length() - s.length()))){\n ans = \"Yes\";\n }\n } else {\n if(p.equals(s.substring(i, i + p.length()))){\n ans = \"Yes\";\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 if(p.equals(s.substring(i) + s.substring(0, i + p.length() - s.length()))){\n ans = \"Yes\";\n }\n } else {\n if(p.equals(s.substring(i, i + p.length()))){\n ans = \"Yes\";\n }\n }\n }", "{\n if(i + p.length() > s.length()){\n if(p.equals(s.substring(i) + s.substring(0, i + p.length() - s.length()))){\n ans = \"Yes\";\n }\n } else {\n if(p.equals(s.substring(i, i + p.length()))){\n ans = \"Yes\";\n }\n }\n }", "if(i + p.length() > s.length()){\n if(p.equals(s.substring(i) + s.substring(0, i + p.length() - s.length()))){\n ans = \"Yes\";\n }\n } else {\n if(p.equals(s.substring(i, i + p.length()))){\n ans = \"Yes\";\n }\n }", "i + p.length() > s.length()", "i + p.length()", "i", "p.length()", "p.length", "p", "s.length()", "s.length", "s", "{\n if(p.equals(s.substring(i) + s.substring(0, i + p.length() - s.length()))){\n ans = \"Yes\";\n }\n }", "if(p.equals(s.substring(i) + s.substring(0, i + p.length() - s.length()))){\n ans = \"Yes\";\n }", "p.equals(s.substring(i) + s.substring(0, i + p.length() - s.length()))", "p.equals", "p", "s.substring(i) + s.substring(0, i + p.length() - s.length())", "s.substring(i)", "s.substring", "s", "i", "s.substring(0, i + p.length() - s.length())", "s.substring", "s", "0", "i + p.length() - s.length()", "i + p.length()", "i", "p.length()", "p.length", "p", "s.length()", "s.length", "s", "{\n ans = \"Yes\";\n }", "ans = \"Yes\"", "ans", "\"Yes\"", "{\n if(p.equals(s.substring(i, i + p.length()))){\n ans = \"Yes\";\n }\n }", "if(p.equals(s.substring(i, i + p.length()))){\n ans = \"Yes\";\n }", "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", "{\n ans = \"Yes\";\n }", "ans = \"Yes\"", "ans", "\"Yes\"", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String p = sc.next();\n String ans = \"No\";\n\n for(int i = 0; i < s.length(); i++){\n if(i + p.length() > s.length()){\n if(p.equals(s.substring(i) + s.substring(0, i + p.length() - s.length()))){\n ans = \"Yes\";\n }\n } else {\n if(p.equals(s.substring(i, i + p.length()))){\n ans = \"Yes\";\n }\n }\n }\n\n System.out.println(ans);\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String p = sc.next();\n String ans = \"No\";\n\n for(int i = 0; i < s.length(); i++){\n if(i + p.length() > s.length()){\n if(p.equals(s.substring(i) + s.substring(0, i + p.length() - s.length()))){\n ans = \"Yes\";\n }\n } else {\n if(p.equals(s.substring(i, i + p.length()))){\n ans = \"Yes\";\n }\n }\n }\n\n System.out.println(ans);\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); String p = sc.next(); String ans = "No"; for(int i = 0; i < s.length(); i++){ if(i + p.length() > s.length()){ if(p.equals(s.substring(i) + s.substring(0, i + p.length() - s.length()))){ ans = "Yes"; } } else { if(p.equals(s.substring(i, i + p.length()))){ ans = "Yes"; } } } System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 4, 18, 13, 17, 30, 41, 13, 13, 0, 13, 17, 42, 17, 30, 14, 2, 13, 4, 18, 13, 3, 14, 2, 2, 13, 13, 4, 18, 13, 0, 13, 40, 13, 14, 2, 4, 18, 13, 2, 13, 13, 4, 18, 13, 13, 3, 40, 13, 14, 2, 13, 4, 18, 13, 3, 0, 13, 17, 14, 2, 13, 4, 18, 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 ], [ 128, 5 ], [ 128, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 25, 35 ], [ 35, 36 ], [ 36, 37 ], [ 25, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 41, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 40, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 54, 56 ], [ 50, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 60, 66 ], [ 59, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 67, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 59, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 84, 85 ], [ 84, 86 ], [ 80, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 79, 91 ], [ 59, 92 ], [ 92, 93 ], [ 50, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 94, 100 ], [ 94, 101 ], [ 101, 102 ], [ 101, 103 ], [ 8, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 104, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 104, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 8, 122 ], [ 122, 123 ], [ 123, 124 ], [ 6, 125 ], [ 125, 126 ], [ 0, 127 ], [ 127, 128 ], [ 127, 129 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String p = sc.next();\n\n int j = 0;\n\n for(int i = 0; i < s.length(); i++){\n if(s.charAt(i) == p.charAt(0)){\n int a = i;\n j = 0;\n while(true){\n if(j == p.length())\n break;\n if(a + j == s.length())\n a = -j;\n if(s.charAt(a + j) != p.charAt(j))\n break;\n j++;\n }\n if(j == p.length())\n break;\n else\n j = 0;\n }\n }\n if(j == p.length())\n System.out.println(\"Yes\");\n else\n System.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\n String s = sc.next();\n String p = sc.next();\n\n int j = 0;\n\n for(int i = 0; i < s.length(); i++){\n if(s.charAt(i) == p.charAt(0)){\n int a = i;\n j = 0;\n while(true){\n if(j == p.length())\n break;\n if(a + j == s.length())\n a = -j;\n if(s.charAt(a + j) != p.charAt(j))\n break;\n j++;\n }\n if(j == p.length())\n break;\n else\n j = 0;\n }\n }\n if(j == p.length())\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n\n sc.close();\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String p = sc.next();\n\n int j = 0;\n\n for(int i = 0; i < s.length(); i++){\n if(s.charAt(i) == p.charAt(0)){\n int a = i;\n j = 0;\n while(true){\n if(j == p.length())\n break;\n if(a + j == s.length())\n a = -j;\n if(s.charAt(a + j) != p.charAt(j))\n break;\n j++;\n }\n if(j == p.length())\n break;\n else\n j = 0;\n }\n }\n if(j == p.length())\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String p = sc.next();\n\n int j = 0;\n\n for(int i = 0; i < s.length(); i++){\n if(s.charAt(i) == p.charAt(0)){\n int a = i;\n j = 0;\n while(true){\n if(j == p.length())\n break;\n if(a + j == s.length())\n a = -j;\n if(s.charAt(a + j) != p.charAt(j))\n break;\n j++;\n }\n if(j == p.length())\n break;\n else\n j = 0;\n }\n }\n if(j == p.length())\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "String p = sc.next();", "p", "sc.next()", "sc.next", "sc", "int j = 0;", "j", "0", "for(int i = 0; i < s.length(); i++){\n if(s.charAt(i) == p.charAt(0)){\n int a = i;\n j = 0;\n while(true){\n if(j == p.length())\n break;\n if(a + j == s.length())\n a = -j;\n if(s.charAt(a + j) != p.charAt(j))\n break;\n j++;\n }\n if(j == p.length())\n break;\n else\n j = 0;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n if(s.charAt(i) == p.charAt(0)){\n int a = i;\n j = 0;\n while(true){\n if(j == p.length())\n break;\n if(a + j == s.length())\n a = -j;\n if(s.charAt(a + j) != p.charAt(j))\n break;\n j++;\n }\n if(j == p.length())\n break;\n else\n j = 0;\n }\n }", "{\n if(s.charAt(i) == p.charAt(0)){\n int a = i;\n j = 0;\n while(true){\n if(j == p.length())\n break;\n if(a + j == s.length())\n a = -j;\n if(s.charAt(a + j) != p.charAt(j))\n break;\n j++;\n }\n if(j == p.length())\n break;\n else\n j = 0;\n }\n }", "if(s.charAt(i) == p.charAt(0)){\n int a = i;\n j = 0;\n while(true){\n if(j == p.length())\n break;\n if(a + j == s.length())\n a = -j;\n if(s.charAt(a + j) != p.charAt(j))\n break;\n j++;\n }\n if(j == p.length())\n break;\n else\n j = 0;\n }", "s.charAt(i) == p.charAt(0)", "s.charAt(i)", "s.charAt", "s", "i", "p.charAt(0)", "p.charAt", "p", "0", "{\n int a = i;\n j = 0;\n while(true){\n if(j == p.length())\n break;\n if(a + j == s.length())\n a = -j;\n if(s.charAt(a + j) != p.charAt(j))\n break;\n j++;\n }\n if(j == p.length())\n break;\n else\n j = 0;\n }", "int a = i;", "a", "i", "j = 0", "j", "0", "while(true){\n if(j == p.length())\n break;\n if(a + j == s.length())\n a = -j;\n if(s.charAt(a + j) != p.charAt(j))\n break;\n j++;\n }", "true", "{\n if(j == p.length())\n break;\n if(a + j == s.length())\n a = -j;\n if(s.charAt(a + j) != p.charAt(j))\n break;\n j++;\n }", "if(j == p.length())\n break;", "j == p.length()", "j", "p.length()", "p.length", "p", "break;", "if(a + j == s.length())\n a = -j;", "a + j == s.length()", "a + j", "a", "j", "s.length()", "s.length", "s", "a = -j", "a", "-j", "j", "if(s.charAt(a + j) != p.charAt(j))\n break;", "s.charAt(a + j) != p.charAt(j)", "s.charAt(a + j)", "s.charAt", "s", "a + j", "a", "j", "p.charAt(j)", "p.charAt", "p", "j", "break;", "j++", "j", "if(j == p.length())\n break;\n else\n j = 0;", "j == p.length()", "j", "p.length()", "p.length", "p", "break;", "j = 0", "j", "0", "if(j == p.length())\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");", "j == p.length()", "j", "p.length()", "p.length", "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\"", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n String p = sc.next();\n\n int j = 0;\n\n for(int i = 0; i < s.length(); i++){\n if(s.charAt(i) == p.charAt(0)){\n int a = i;\n j = 0;\n while(true){\n if(j == p.length())\n break;\n if(a + j == s.length())\n a = -j;\n if(s.charAt(a + j) != p.charAt(j))\n break;\n j++;\n }\n if(j == p.length())\n break;\n else\n j = 0;\n }\n }\n if(j == p.length())\n System.out.println(\"Yes\");\n else\n System.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\n String s = sc.next();\n String p = sc.next();\n\n int j = 0;\n\n for(int i = 0; i < s.length(); i++){\n if(s.charAt(i) == p.charAt(0)){\n int a = i;\n j = 0;\n while(true){\n if(j == p.length())\n break;\n if(a + j == s.length())\n a = -j;\n if(s.charAt(a + j) != p.charAt(j))\n break;\n j++;\n }\n if(j == p.length())\n break;\n else\n j = 0;\n }\n }\n if(j == p.length())\n System.out.println(\"Yes\");\n else\n System.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 s = sc.next(); String p = sc.next(); int j = 0; for(int i = 0; i < s.length(); i++){ if(s.charAt(i) == p.charAt(0)){ int a = i; j = 0; while(true){ if(j == p.length()) break; if(a + j == s.length()) a = -j; if(s.charAt(a + j) != p.charAt(j)) break; j++; } if(j == p.length()) break; else j = 0; } } if(j == p.length()) System.out.println("Yes"); else System.out.println("No"); sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 4, 18, 18, 13, 13, 8, 13, 17, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 37, 5 ], [ 37, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 30, 33 ], [ 6, 34 ], [ 34, 35 ], [ 0, 36 ], [ 36, 37 ], [ 36, 38 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String s = sc.next(); \n String a = sc.next();\n \n boolean f = false;\n in : for(int i=0;i<s.length();i++){\n for(int j=0;j<a.length();j++){\n if(s.charAt((i+j)%s.length()) != a.charAt(j))continue in;\n }\n f=true;break;\n }\n \n System.out.println( f ? \"Yes\":\"No\");\n }\n}\n", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String s = sc.next(); \n String a = sc.next();\n \n boolean f = false;\n in : for(int i=0;i<s.length();i++){\n for(int j=0;j<a.length();j++){\n if(s.charAt((i+j)%s.length()) != a.charAt(j))continue in;\n }\n f=true;break;\n }\n \n System.out.println( f ? \"Yes\":\"No\");\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String s = sc.next(); \n String a = sc.next();\n \n boolean f = false;\n in : for(int i=0;i<s.length();i++){\n for(int j=0;j<a.length();j++){\n if(s.charAt((i+j)%s.length()) != a.charAt(j))continue in;\n }\n f=true;break;\n }\n \n System.out.println( f ? \"Yes\":\"No\");\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.next(); \n String a = sc.next();\n \n boolean f = false;\n in : for(int i=0;i<s.length();i++){\n for(int j=0;j<a.length();j++){\n if(s.charAt((i+j)%s.length()) != a.charAt(j))continue in;\n }\n f=true;break;\n }\n \n System.out.println( f ? \"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 a = sc.next();", "a", "sc.next()", "sc.next", "sc", "boolean f = false;", "f", "false", "System.out.println( f ? \"Yes\":\"No\")", "System.out.println", "System.out", "System", "System.out", "f ? \"Yes\":\"No\"", "f", "\"Yes\"", "\"No\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String s = sc.next(); \n String a = sc.next();\n \n boolean f = false;\n in : for(int i=0;i<s.length();i++){\n for(int j=0;j<a.length();j++){\n if(s.charAt((i+j)%s.length()) != a.charAt(j))continue in;\n }\n f=true;break;\n }\n \n System.out.println( f ? \"Yes\":\"No\");\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String s = sc.next(); \n String a = sc.next();\n \n boolean f = false;\n in : for(int i=0;i<s.length();i++){\n for(int j=0;j<a.length();j++){\n if(s.charAt((i+j)%s.length()) != a.charAt(j))continue in;\n }\n f=true;break;\n }\n \n System.out.println( f ? \"Yes\":\"No\");\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); String s = sc.next(); String a = sc.next(); boolean f = false; in : for(int i=0;i<s.length();i++){ for(int j=0;j<a.length();j++){ if(s.charAt((i+j)%s.length()) != a.charAt(j))continue in; } f=true;break; } System.out.println( f ? "Yes":"No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 42, 2, 13, 13, 30, 14, 4, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 3, 41, 13, 4, 18, 13, 17, 17, 41, 13, 4, 18, 13, 17, 0, 13, 2, 13, 13, 40, 13, 14, 2, 13, 4, 18, 13, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 84, 5 ], [ 84, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 8, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 35, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 40, 47 ], [ 34, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 50, 54 ], [ 34, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 34, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 34, 66 ], [ 66, 67 ], [ 8, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 68, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 6, 81 ], [ 81, 82 ], [ 0, 83 ], [ 83, 84 ], [ 83, 85 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tString line2 = sc.nextLine();\n\n\t\tint len1 = line1.length();\n\t\tint i = 0;\n\n\t\twhile (i < len1) {\n\t\t\tif (line1.contains(line2)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString a = line1.substring(0, 1);\n\t\t\tString b = line1.substring(1);\n\t\t\tline1 = b + a;\n\t\t\ti++;\n\t\t}\n\n\t\tif (i == line1.length()) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tString line2 = sc.nextLine();\n\n\t\tint len1 = line1.length();\n\t\tint i = 0;\n\n\t\twhile (i < len1) {\n\t\t\tif (line1.contains(line2)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString a = line1.substring(0, 1);\n\t\t\tString b = line1.substring(1);\n\t\t\tline1 = b + a;\n\t\t\ti++;\n\t\t}\n\n\t\tif (i == line1.length()) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tString line2 = sc.nextLine();\n\n\t\tint len1 = line1.length();\n\t\tint i = 0;\n\n\t\twhile (i < len1) {\n\t\t\tif (line1.contains(line2)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString a = line1.substring(0, 1);\n\t\t\tString b = line1.substring(1);\n\t\t\tline1 = b + a;\n\t\t\ti++;\n\t\t}\n\n\t\tif (i == line1.length()) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tString line2 = sc.nextLine();\n\n\t\tint len1 = line1.length();\n\t\tint i = 0;\n\n\t\twhile (i < len1) {\n\t\t\tif (line1.contains(line2)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString a = line1.substring(0, 1);\n\t\t\tString b = line1.substring(1);\n\t\t\tline1 = b + a;\n\t\t\ti++;\n\t\t}\n\n\t\tif (i == line1.length()) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String line1 = sc.nextLine();", "line1", "sc.nextLine()", "sc.nextLine", "sc", "String line2 = sc.nextLine();", "line2", "sc.nextLine()", "sc.nextLine", "sc", "int len1 = line1.length();", "len1", "line1.length()", "line1.length", "line1", "int i = 0;", "i", "0", "while (i < len1) {\n\t\t\tif (line1.contains(line2)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString a = line1.substring(0, 1);\n\t\t\tString b = line1.substring(1);\n\t\t\tline1 = b + a;\n\t\t\ti++;\n\t\t}", "i < len1", "i", "len1", "{\n\t\t\tif (line1.contains(line2)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString a = line1.substring(0, 1);\n\t\t\tString b = line1.substring(1);\n\t\t\tline1 = b + a;\n\t\t\ti++;\n\t\t}", "if (line1.contains(line2)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}", "line1.contains(line2)", "line1.contains", "line1", "line2", "{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "break;", "String a = line1.substring(0, 1);", "a", "line1.substring(0, 1)", "line1.substring", "line1", "0", "1", "String b = line1.substring(1);", "b", "line1.substring(1)", "line1.substring", "line1", "1", "line1 = b + a", "line1", "b + a", "b", "a", "i++", "i", "if (i == line1.length()) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "i == line1.length()", "i", "line1.length()", "line1.length", "line1", "{\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tString line2 = sc.nextLine();\n\n\t\tint len1 = line1.length();\n\t\tint i = 0;\n\n\t\twhile (i < len1) {\n\t\t\tif (line1.contains(line2)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString a = line1.substring(0, 1);\n\t\t\tString b = line1.substring(1);\n\t\t\tline1 = b + a;\n\t\t\ti++;\n\t\t}\n\n\t\tif (i == line1.length()) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line1 = sc.nextLine();\n\t\tString line2 = sc.nextLine();\n\n\t\tint len1 = line1.length();\n\t\tint i = 0;\n\n\t\twhile (i < len1) {\n\t\t\tif (line1.contains(line2)) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString a = line1.substring(0, 1);\n\t\t\tString b = line1.substring(1);\n\t\t\tline1 = b + a;\n\t\t\ti++;\n\t\t}\n\n\t\tif (i == line1.length()) {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); String line1 = sc.nextLine(); String line2 = sc.nextLine(); int len1 = line1.length(); int i = 0; while (i < len1) { if (line1.contains(line2)) { System.out.println("Yes"); break; } String a = line1.substring(0, 1); String b = line1.substring(1); line1 = b + a; i++; } if (i == line1.length()) { System.out.println("No"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 13, 14, 4, 18, 13, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 75, 17 ], [ 75, 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 ], [ 20, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 20, 37 ], [ 37, 38 ], [ 37, 39 ], [ 20, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 20, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 20, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 52, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 20, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 18, 72 ], [ 72, 73 ], [ 0, 74 ], [ 74, 75 ], [ 74, 76 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.lang.StringBuilder;\nimport java.util.regex.Pattern;\nimport java.util.regex.Matcher;\npublic class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString st = sc.readLine();\n\t\tString s = sc.readLine();\n\t\tst += st;\n\t\tPattern p = Pattern.compile(s);\n\t\tMatcher matcher = p.matcher(st);\n\t\tif(matcher.find()){\n\t\t\tsb.append(\"Yes\\n\");\n\t\t}else{\n\t\t\tsb.append(\"No\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.lang.StringBuilder;", "StringBuilder", "java.lang", "import java.util.regex.Pattern;", "Pattern", "java.util.regex", "import java.util.regex.Matcher;", "Matcher", "java.util.regex", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString st = sc.readLine();\n\t\tString s = sc.readLine();\n\t\tst += st;\n\t\tPattern p = Pattern.compile(s);\n\t\tMatcher matcher = p.matcher(st);\n\t\tif(matcher.find()){\n\t\t\tsb.append(\"Yes\\n\");\n\t\t}else{\n\t\t\tsb.append(\"No\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}", "Main", "public static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString st = sc.readLine();\n\t\tString s = sc.readLine();\n\t\tst += st;\n\t\tPattern p = Pattern.compile(s);\n\t\tMatcher matcher = p.matcher(st);\n\t\tif(matcher.find()){\n\t\t\tsb.append(\"Yes\\n\");\n\t\t}else{\n\t\t\tsb.append(\"No\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}", "main", "{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString st = sc.readLine();\n\t\tString s = sc.readLine();\n\t\tst += st;\n\t\tPattern p = Pattern.compile(s);\n\t\tMatcher matcher = p.matcher(st);\n\t\tif(matcher.find()){\n\t\t\tsb.append(\"Yes\\n\");\n\t\t}else{\n\t\t\tsb.append(\"No\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}", "BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));", "sc", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "String st = sc.readLine();", "st", "sc.readLine()", "sc.readLine", "sc", "String s = sc.readLine();", "s", "sc.readLine()", "sc.readLine", "sc", "st += st", "st", "st", "Pattern p = Pattern.compile(s);", "p", "Pattern.compile(s)", "Pattern.compile", "Pattern", "s", "Matcher matcher = p.matcher(st);", "matcher", "p.matcher(st)", "p.matcher", "p", "st", "if(matcher.find()){\n\t\t\tsb.append(\"Yes\\n\");\n\t\t}else{\n\t\t\tsb.append(\"No\\n\");\n\t\t}", "matcher.find()", "matcher.find", "matcher", "{\n\t\t\tsb.append(\"Yes\\n\");\n\t\t}", "sb.append(\"Yes\\n\")", "sb.append", "sb", "\"Yes\\n\"", "{\n\t\t\tsb.append(\"No\\n\");\n\t\t}", "sb.append(\"No\\n\")", "sb.append", "sb", "\"No\\n\"", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString st = sc.readLine();\n\t\tString s = sc.readLine();\n\t\tst += st;\n\t\tPattern p = Pattern.compile(s);\n\t\tMatcher matcher = p.matcher(st);\n\t\tif(matcher.find()){\n\t\t\tsb.append(\"Yes\\n\");\n\t\t}else{\n\t\t\tsb.append(\"No\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString st = sc.readLine();\n\t\tString s = sc.readLine();\n\t\tst += st;\n\t\tPattern p = Pattern.compile(s);\n\t\tMatcher matcher = p.matcher(st);\n\t\tif(matcher.find()){\n\t\t\tsb.append(\"Yes\\n\");\n\t\t}else{\n\t\t\tsb.append(\"No\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.lang.StringBuilder; import java.util.regex.Pattern; import java.util.regex.Matcher; public class Main { public static void main(String[] args) throws Exception{ BufferedReader sc = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); String st = sc.readLine(); String s = sc.readLine(); st += st; Pattern p = Pattern.compile(s); Matcher matcher = p.matcher(st); if(matcher.find()){ sb.append("Yes\n"); }else{ sb.append("No\n"); } System.out.print(sb); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 17, 41, 13, 41, 13, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 0, 18, 13, 13, 17, 41, 13, 20, 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, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 0, 13, 4, 18, 13, 2, 2, 13, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 3, 14, 2, 13, 2, 4, 18, 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, 13 ], [ 13, 14 ], [ 8, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 8, 38 ], [ 38, 39 ], [ 38, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 8, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 8, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 51, 61 ], [ 61, 62 ], [ 62, 63 ], [ 51, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 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 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 93, 94 ], [ 65, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 95, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 100, 107 ], [ 65, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 111, 115 ], [ 108, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 6, 122 ], [ 122, 123 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n int[] count = new int[26];\n char c;\n String str1, str2, temp;\n for (int i = 0; i < 26; i++) \n count[i] = 0;\n Scanner sc = new Scanner(System.in);\n str1 = sc.next();\n str2 = sc.next();\n\n for(int i = 0; i < str1.length(); i++) {\n temp = \"\";\n for (int j = 0; j < str2.length(); j++) \n temp += str1.charAt((i+j) % str1.length());\n if (temp.equals(str2)) {\n System.out.println(\"Yes\");\n break;\n } \n if (i == str1.length() - 1)\n System.out.println(\"No\");\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String[] args) {\n int[] count = new int[26];\n char c;\n String str1, str2, temp;\n for (int i = 0; i < 26; i++) \n count[i] = 0;\n Scanner sc = new Scanner(System.in);\n str1 = sc.next();\n str2 = sc.next();\n\n for(int i = 0; i < str1.length(); i++) {\n temp = \"\";\n for (int j = 0; j < str2.length(); j++) \n temp += str1.charAt((i+j) % str1.length());\n if (temp.equals(str2)) {\n System.out.println(\"Yes\");\n break;\n } \n if (i == str1.length() - 1)\n System.out.println(\"No\");\n }\n }\n}", "Main", "public static void main(String[] args) {\n int[] count = new int[26];\n char c;\n String str1, str2, temp;\n for (int i = 0; i < 26; i++) \n count[i] = 0;\n Scanner sc = new Scanner(System.in);\n str1 = sc.next();\n str2 = sc.next();\n\n for(int i = 0; i < str1.length(); i++) {\n temp = \"\";\n for (int j = 0; j < str2.length(); j++) \n temp += str1.charAt((i+j) % str1.length());\n if (temp.equals(str2)) {\n System.out.println(\"Yes\");\n break;\n } \n if (i == str1.length() - 1)\n System.out.println(\"No\");\n }\n }", "main", "{\n int[] count = new int[26];\n char c;\n String str1, str2, temp;\n for (int i = 0; i < 26; i++) \n count[i] = 0;\n Scanner sc = new Scanner(System.in);\n str1 = sc.next();\n str2 = sc.next();\n\n for(int i = 0; i < str1.length(); i++) {\n temp = \"\";\n for (int j = 0; j < str2.length(); j++) \n temp += str1.charAt((i+j) % str1.length());\n if (temp.equals(str2)) {\n System.out.println(\"Yes\");\n break;\n } \n if (i == str1.length() - 1)\n System.out.println(\"No\");\n }\n }", "int[] count = new int[26];", "count", "new int[26]", "26", "char c;", "c", "String str1", "str1", "str2", "str2", "temp;", "temp", "for (int i = 0; i < 26; i++) \n count[i] = 0;", "int i = 0;", "int i = 0;", "i", "0", "i < 26", "i", "26", "i++", "i++", "i", "count[i] = 0;", "count[i] = 0", "count[i]", "count", "i", "0", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "str1 = sc.next()", "str1", "sc.next()", "sc.next", "sc", "str2 = sc.next()", "str2", "sc.next()", "sc.next", "sc", "for(int i = 0; i < str1.length(); i++) {\n temp = \"\";\n for (int j = 0; j < str2.length(); j++) \n temp += str1.charAt((i+j) % str1.length());\n if (temp.equals(str2)) {\n System.out.println(\"Yes\");\n break;\n } \n if (i == str1.length() - 1)\n System.out.println(\"No\");\n }", "int i = 0;", "int i = 0;", "i", "0", "i < str1.length()", "i", "str1.length()", "str1.length", "str1", "i++", "i++", "i", "{\n temp = \"\";\n for (int j = 0; j < str2.length(); j++) \n temp += str1.charAt((i+j) % str1.length());\n if (temp.equals(str2)) {\n System.out.println(\"Yes\");\n break;\n } \n if (i == str1.length() - 1)\n System.out.println(\"No\");\n }", "{\n temp = \"\";\n for (int j = 0; j < str2.length(); j++) \n temp += str1.charAt((i+j) % str1.length());\n if (temp.equals(str2)) {\n System.out.println(\"Yes\");\n break;\n } \n if (i == str1.length() - 1)\n System.out.println(\"No\");\n }", "temp = \"\"", "temp", "\"\"", "for (int j = 0; j < str2.length(); j++) \n temp += str1.charAt((i+j) % str1.length());", "int j = 0;", "int j = 0;", "j", "0", "j < str2.length()", "j", "str2.length()", "str2.length", "str2", "j++", "j++", "j", "temp += str1.charAt((i+j) % str1.length());", "temp += str1.charAt((i+j) % str1.length())", "temp", "str1.charAt((i+j) % str1.length())", "str1.charAt", "str1", "(i+j) % str1.length()", "(i+j)", "i", "j", "str1.length()", "str1.length", "str1", "if (temp.equals(str2)) {\n System.out.println(\"Yes\");\n break;\n }", "temp.equals(str2)", "temp.equals", "temp", "str2", "{\n System.out.println(\"Yes\");\n break;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "break;", "if (i == str1.length() - 1)\n System.out.println(\"No\");", "i == str1.length() - 1", "i", "str1.length() - 1", "str1.length()", "str1.length", "str1", "1", "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) { int[] count = new int[26]; char c; String str1, str2, temp; for (int i = 0; i < 26; i++) count[i] = 0; Scanner sc = new Scanner(System.in); str1 = sc.next(); str2 = sc.next(); for(int i = 0; i < str1.length(); i++) { temp = ""; for (int j = 0; j < str2.length(); j++) temp += str1.charAt((i+j) % str1.length()); if (temp.equals(str2)) { System.out.println("Yes"); break; } if (i == str1.length() - 1) System.out.println("No"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 4, 18, 13, 13, 30, 40, 13, 14, 2, 13, 4, 18, 13, 30, 4, 18, 18, 13, 13, 17, 3, 40, 13, 14, 2, 13, 4, 18, 13, 30, 0, 13, 17, 14, 2, 13, 2, 4, 18, 13, 17, 30, 0, 13, 40, 17, 40, 13, 0, 13, 13, 0, 13, 17, 14, 2, 13, 4, 18, 13, 30, 4, 18, 18, 13, 13, 17, 3, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 123, 5 ], [ 123, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 8, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 31, 41 ], [ 41, 42 ], [ 42, 43 ], [ 31, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 47, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 46, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 59, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 65, 72 ], [ 45, 73 ], [ 73, 74 ], [ 45, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 75, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 45, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 88, 92 ], [ 85, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 93, 98 ], [ 98, 99 ], [ 93, 100 ], [ 100, 101 ], [ 100, 102 ], [ 93, 103 ], [ 103, 104 ], [ 103, 105 ], [ 93, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 106, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 112, 119 ], [ 6, 120 ], [ 120, 121 ], [ 0, 122 ], [ 122, 123 ], [ 122, 124 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String p = sc.next();\n int end = 0;\n int cnt = 0;\n int j = 0;\n for (int i = 0; i < p.length(); i++) {\n\n if (s.charAt(j) == p.charAt(i)) {\n cnt++;\n if (cnt == p.length()) {\n System.out.println(\"Yes\");\n break;\n }\n }\n j++;\n if (j == s.length()) {\n j = 0;\n }\n if (i == p.length() - 1) {\n i = -1;\n end++;\n j = end;\n cnt = 0;\n if (end == s.length()) {\n System.out.println(\"No\");\n break;\n }\n }\n\n }\n\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String p = sc.next();\n int end = 0;\n int cnt = 0;\n int j = 0;\n for (int i = 0; i < p.length(); i++) {\n\n if (s.charAt(j) == p.charAt(i)) {\n cnt++;\n if (cnt == p.length()) {\n System.out.println(\"Yes\");\n break;\n }\n }\n j++;\n if (j == s.length()) {\n j = 0;\n }\n if (i == p.length() - 1) {\n i = -1;\n end++;\n j = end;\n cnt = 0;\n if (end == s.length()) {\n System.out.println(\"No\");\n break;\n }\n }\n\n }\n\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String p = sc.next();\n int end = 0;\n int cnt = 0;\n int j = 0;\n for (int i = 0; i < p.length(); i++) {\n\n if (s.charAt(j) == p.charAt(i)) {\n cnt++;\n if (cnt == p.length()) {\n System.out.println(\"Yes\");\n break;\n }\n }\n j++;\n if (j == s.length()) {\n j = 0;\n }\n if (i == p.length() - 1) {\n i = -1;\n end++;\n j = end;\n cnt = 0;\n if (end == s.length()) {\n System.out.println(\"No\");\n break;\n }\n }\n\n }\n\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String p = sc.next();\n int end = 0;\n int cnt = 0;\n int j = 0;\n for (int i = 0; i < p.length(); i++) {\n\n if (s.charAt(j) == p.charAt(i)) {\n cnt++;\n if (cnt == p.length()) {\n System.out.println(\"Yes\");\n break;\n }\n }\n j++;\n if (j == s.length()) {\n j = 0;\n }\n if (i == p.length() - 1) {\n i = -1;\n end++;\n j = end;\n cnt = 0;\n if (end == s.length()) {\n System.out.println(\"No\");\n break;\n }\n }\n\n }\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "String p = sc.next();", "p", "sc.next()", "sc.next", "sc", "int end = 0;", "end", "0", "int cnt = 0;", "cnt", "0", "int j = 0;", "j", "0", "for (int i = 0; i < p.length(); i++) {\n\n if (s.charAt(j) == p.charAt(i)) {\n cnt++;\n if (cnt == p.length()) {\n System.out.println(\"Yes\");\n break;\n }\n }\n j++;\n if (j == s.length()) {\n j = 0;\n }\n if (i == p.length() - 1) {\n i = -1;\n end++;\n j = end;\n cnt = 0;\n if (end == s.length()) {\n System.out.println(\"No\");\n break;\n }\n }\n\n }", "int i = 0;", "int i = 0;", "i", "0", "i < p.length()", "i", "p.length()", "p.length", "p", "i++", "i++", "i", "{\n\n if (s.charAt(j) == p.charAt(i)) {\n cnt++;\n if (cnt == p.length()) {\n System.out.println(\"Yes\");\n break;\n }\n }\n j++;\n if (j == s.length()) {\n j = 0;\n }\n if (i == p.length() - 1) {\n i = -1;\n end++;\n j = end;\n cnt = 0;\n if (end == s.length()) {\n System.out.println(\"No\");\n break;\n }\n }\n\n }", "{\n\n if (s.charAt(j) == p.charAt(i)) {\n cnt++;\n if (cnt == p.length()) {\n System.out.println(\"Yes\");\n break;\n }\n }\n j++;\n if (j == s.length()) {\n j = 0;\n }\n if (i == p.length() - 1) {\n i = -1;\n end++;\n j = end;\n cnt = 0;\n if (end == s.length()) {\n System.out.println(\"No\");\n break;\n }\n }\n\n }", "if (s.charAt(j) == p.charAt(i)) {\n cnt++;\n if (cnt == p.length()) {\n System.out.println(\"Yes\");\n break;\n }\n }", "s.charAt(j) == p.charAt(i)", "s.charAt(j)", "s.charAt", "s", "j", "p.charAt(i)", "p.charAt", "p", "i", "{\n cnt++;\n if (cnt == p.length()) {\n System.out.println(\"Yes\");\n break;\n }\n }", "cnt++", "cnt", "if (cnt == p.length()) {\n System.out.println(\"Yes\");\n break;\n }", "cnt == p.length()", "cnt", "p.length()", "p.length", "p", "{\n System.out.println(\"Yes\");\n break;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "break;", "j++", "j", "if (j == s.length()) {\n j = 0;\n }", "j == s.length()", "j", "s.length()", "s.length", "s", "{\n j = 0;\n }", "j = 0", "j", "0", "if (i == p.length() - 1) {\n i = -1;\n end++;\n j = end;\n cnt = 0;\n if (end == s.length()) {\n System.out.println(\"No\");\n break;\n }\n }", "i == p.length() - 1", "i", "p.length() - 1", "p.length()", "p.length", "p", "1", "{\n i = -1;\n end++;\n j = end;\n cnt = 0;\n if (end == s.length()) {\n System.out.println(\"No\");\n break;\n }\n }", "i = -1", "i", "-1", "1", "end++", "end", "j = end", "j", "end", "cnt = 0", "cnt", "0", "if (end == s.length()) {\n System.out.println(\"No\");\n break;\n }", "end == s.length()", "end", "s.length()", "s.length", "s", "{\n System.out.println(\"No\");\n break;\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "break;", "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 int end = 0;\n int cnt = 0;\n int j = 0;\n for (int i = 0; i < p.length(); i++) {\n\n if (s.charAt(j) == p.charAt(i)) {\n cnt++;\n if (cnt == p.length()) {\n System.out.println(\"Yes\");\n break;\n }\n }\n j++;\n if (j == s.length()) {\n j = 0;\n }\n if (i == p.length() - 1) {\n i = -1;\n end++;\n j = end;\n cnt = 0;\n if (end == s.length()) {\n System.out.println(\"No\");\n break;\n }\n }\n\n }\n\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n String p = sc.next();\n int end = 0;\n int cnt = 0;\n int j = 0;\n for (int i = 0; i < p.length(); i++) {\n\n if (s.charAt(j) == p.charAt(i)) {\n cnt++;\n if (cnt == p.length()) {\n System.out.println(\"Yes\");\n break;\n }\n }\n j++;\n if (j == s.length()) {\n j = 0;\n }\n if (i == p.length() - 1) {\n i = -1;\n end++;\n j = end;\n cnt = 0;\n if (end == s.length()) {\n System.out.println(\"No\");\n break;\n }\n }\n\n }\n\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); String p = sc.next(); int end = 0; int cnt = 0; int j = 0; for (int i = 0; i < p.length(); i++) { if (s.charAt(j) == p.charAt(i)) { cnt++; if (cnt == p.length()) { System.out.println("Yes"); break; } } j++; if (j == s.length()) { j = 0; } if (i == p.length() - 1) { i = -1; end++; j = end; cnt = 0; if (end == s.length()) { System.out.println("No"); break; } } } } }
[ 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, 0, 13, 2, 13, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 2, 13, 13, 14, 4, 18, 13, 13, 30, 0, 13, 17, 3, 14, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 98, 8 ], [ 98, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 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 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 11, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 11, 40 ], [ 40, 41 ], [ 11, 42 ], [ 42, 43 ], [ 42, 44 ], [ 11, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 45, 55 ], [ 55, 56 ], [ 56, 57 ], [ 45, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 62, 66 ], [ 66, 67 ], [ 66, 68 ], [ 59, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 69, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 11, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 79, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 9, 95 ], [ 95, 96 ], [ 0, 97 ], [ 97, 98 ], [ 97, 99 ] ]
[ "import java.io.IOException;\nimport java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString a = sc.next();\n\t\t\tString b = sc.next();\n\t\t\ta=a+a;\n\t\t\tint c = a.length();\n\t\t\tint d = b.length();\n\t\t\tString f;\n\t\t\tboolean g=false;\n\t\t\tfor(int e=0;e<c-d;++e){\n\t\t\t\tf=a.substring(e,e+d);\n\t\t\t\tif(b.equals(f)){\n\t\t\t\t\tg=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(g){\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}\n\n}", "import java.io.IOException;", "IOException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString a = sc.next();\n\t\t\tString b = sc.next();\n\t\t\ta=a+a;\n\t\t\tint c = a.length();\n\t\t\tint d = b.length();\n\t\t\tString f;\n\t\t\tboolean g=false;\n\t\t\tfor(int e=0;e<c-d;++e){\n\t\t\t\tf=a.substring(e,e+d);\n\t\t\t\tif(b.equals(f)){\n\t\t\t\t\tg=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(g){\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}\n\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString a = sc.next();\n\t\t\tString b = sc.next();\n\t\t\ta=a+a;\n\t\t\tint c = a.length();\n\t\t\tint d = b.length();\n\t\t\tString f;\n\t\t\tboolean g=false;\n\t\t\tfor(int e=0;e<c-d;++e){\n\t\t\t\tf=a.substring(e,e+d);\n\t\t\t\tif(b.equals(f)){\n\t\t\t\t\tg=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(g){\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}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString a = sc.next();\n\t\t\tString b = sc.next();\n\t\t\ta=a+a;\n\t\t\tint c = a.length();\n\t\t\tint d = b.length();\n\t\t\tString f;\n\t\t\tboolean g=false;\n\t\t\tfor(int e=0;e<c-d;++e){\n\t\t\t\tf=a.substring(e,e+d);\n\t\t\t\tif(b.equals(f)){\n\t\t\t\t\tg=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(g){\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}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String a = sc.next();", "a", "sc.next()", "sc.next", "sc", "String b = sc.next();", "b", "sc.next()", "sc.next", "sc", "a=a+a", "a", "a+a", "a", "a", "int c = a.length();", "c", "a.length()", "a.length", "a", "int d = b.length();", "d", "b.length()", "b.length", "b", "String f;", "f", "boolean g=false;", "g", "false", "for(int e=0;e<c-d;++e){\n\t\t\t\tf=a.substring(e,e+d);\n\t\t\t\tif(b.equals(f)){\n\t\t\t\t\tg=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "int e=0;", "int e=0;", "e", "0", "e<c-d", "e", "c-d", "c", "d", "++e", "++e", "e", "{\n\t\t\t\tf=a.substring(e,e+d);\n\t\t\t\tif(b.equals(f)){\n\t\t\t\t\tg=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tf=a.substring(e,e+d);\n\t\t\t\tif(b.equals(f)){\n\t\t\t\t\tg=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "f=a.substring(e,e+d)", "f", "a.substring(e,e+d)", "a.substring", "a", "e", "e+d", "e", "d", "if(b.equals(f)){\n\t\t\t\t\tg=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "b.equals(f)", "b.equals", "b", "f", "{\n\t\t\t\t\tg=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "g=true", "g", "true", "break;", "if(g){\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}", "g", "{\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\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString a = sc.next();\n\t\t\tString b = sc.next();\n\t\t\ta=a+a;\n\t\t\tint c = a.length();\n\t\t\tint d = b.length();\n\t\t\tString f;\n\t\t\tboolean g=false;\n\t\t\tfor(int e=0;e<c-d;++e){\n\t\t\t\tf=a.substring(e,e+d);\n\t\t\t\tif(b.equals(f)){\n\t\t\t\t\tg=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(g){\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}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString a = sc.next();\n\t\t\tString b = sc.next();\n\t\t\ta=a+a;\n\t\t\tint c = a.length();\n\t\t\tint d = b.length();\n\t\t\tString f;\n\t\t\tboolean g=false;\n\t\t\tfor(int e=0;e<c-d;++e){\n\t\t\t\tf=a.substring(e,e+d);\n\t\t\t\tif(b.equals(f)){\n\t\t\t\t\tg=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(g){\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}\n\n}", "Main" ]
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); String a = sc.next(); String b = sc.next(); a=a+a; int c = a.length(); int d = b.length(); String f; boolean g=false; for(int e=0;e<c-d;++e){ f=a.substring(e,e+d); if(b.equals(f)){ g=true; break; } } if(g){ 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, 2, 17, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 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, 4, 18, 13, 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, 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 ], [ 18, 19 ], [ 18, 20 ], [ 9, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 21, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 21, 35 ], [ 35, 36 ], [ 21, 37 ], [ 37, 38 ], [ 37, 39 ], [ 21, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 40, 50 ], [ 50, 51 ], [ 51, 52 ], [ 40, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 56, 62 ], [ 62, 63 ], [ 63, 64 ], [ 55, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 72, 76 ], [ 55, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 81, 85 ], [ 85, 86 ], [ 86, 87 ], [ 80, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 88, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 92, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 96, 100 ], [ 54, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 101, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 21, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 111, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 6, 127 ], [ 127, 128 ] ]
[ "import java.io.*;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = br.readLine();\n\t\t\tString p = br.readLine();\n\t\t\tString c;\n\t\t\tint flg=0;\n\t\t\tfor(int i=0; i<s.length(); i++){\n\t\t\t\tif(i+p.length()<=s.length()){\n\t\t\t\t\tc = s.substring(i, p.length()+i);\n\t\t\t\t} else{\n\t\t\t\t\tc = s.substring(i, s.length()) + s.substring(0, p.length()-(s.length()-i));\n\t\t\t\t}\n\t\t\t\tif(p.equals(c)){\n\t\t\t\t\tflg = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(flg==1) System.out.println(\"Yes\");\n\t\t\telse System.out.println(\"No\");\n\t\t} catch(IOException e){\n\t\t\tSystem.out.println(\"Exception :\" + e);\n\t\t}\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main{\n\tpublic static void main(String[] args){\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = br.readLine();\n\t\t\tString p = br.readLine();\n\t\t\tString c;\n\t\t\tint flg=0;\n\t\t\tfor(int i=0; i<s.length(); i++){\n\t\t\t\tif(i+p.length()<=s.length()){\n\t\t\t\t\tc = s.substring(i, p.length()+i);\n\t\t\t\t} else{\n\t\t\t\t\tc = s.substring(i, s.length()) + s.substring(0, p.length()-(s.length()-i));\n\t\t\t\t}\n\t\t\t\tif(p.equals(c)){\n\t\t\t\t\tflg = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(flg==1) System.out.println(\"Yes\");\n\t\t\telse System.out.println(\"No\");\n\t\t} catch(IOException e){\n\t\t\tSystem.out.println(\"Exception :\" + e);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = br.readLine();\n\t\t\tString p = br.readLine();\n\t\t\tString c;\n\t\t\tint flg=0;\n\t\t\tfor(int i=0; i<s.length(); i++){\n\t\t\t\tif(i+p.length()<=s.length()){\n\t\t\t\t\tc = s.substring(i, p.length()+i);\n\t\t\t\t} else{\n\t\t\t\t\tc = s.substring(i, s.length()) + s.substring(0, p.length()-(s.length()-i));\n\t\t\t\t}\n\t\t\t\tif(p.equals(c)){\n\t\t\t\t\tflg = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(flg==1) System.out.println(\"Yes\");\n\t\t\telse System.out.println(\"No\");\n\t\t} catch(IOException e){\n\t\t\tSystem.out.println(\"Exception :\" + 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 s = br.readLine();\n\t\t\tString p = br.readLine();\n\t\t\tString c;\n\t\t\tint flg=0;\n\t\t\tfor(int i=0; i<s.length(); i++){\n\t\t\t\tif(i+p.length()<=s.length()){\n\t\t\t\t\tc = s.substring(i, p.length()+i);\n\t\t\t\t} else{\n\t\t\t\t\tc = s.substring(i, s.length()) + s.substring(0, p.length()-(s.length()-i));\n\t\t\t\t}\n\t\t\t\tif(p.equals(c)){\n\t\t\t\t\tflg = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(flg==1) System.out.println(\"Yes\");\n\t\t\telse System.out.println(\"No\");\n\t\t} catch(IOException e){\n\t\t\tSystem.out.println(\"Exception :\" + e);\n\t\t}\n\t}", "try{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = br.readLine();\n\t\t\tString p = br.readLine();\n\t\t\tString c;\n\t\t\tint flg=0;\n\t\t\tfor(int i=0; i<s.length(); i++){\n\t\t\t\tif(i+p.length()<=s.length()){\n\t\t\t\t\tc = s.substring(i, p.length()+i);\n\t\t\t\t} else{\n\t\t\t\t\tc = s.substring(i, s.length()) + s.substring(0, p.length()-(s.length()-i));\n\t\t\t\t}\n\t\t\t\tif(p.equals(c)){\n\t\t\t\t\tflg = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(flg==1) System.out.println(\"Yes\");\n\t\t\telse System.out.println(\"No\");\n\t\t} catch(IOException e){\n\t\t\tSystem.out.println(\"Exception :\" + e);\n\t\t}", "catch(IOException e){\n\t\t\tSystem.out.println(\"Exception :\" + e);\n\t\t}", "IOException e", "{\n\t\t\tSystem.out.println(\"Exception :\" + e);\n\t\t}", "System.out.println(\"Exception :\" + e)", "System.out.println", "System.out", "System", "System.out", "\"Exception :\" + e", "\"Exception :\"", "e", "{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = br.readLine();\n\t\t\tString p = br.readLine();\n\t\t\tString c;\n\t\t\tint flg=0;\n\t\t\tfor(int i=0; i<s.length(); i++){\n\t\t\t\tif(i+p.length()<=s.length()){\n\t\t\t\t\tc = s.substring(i, p.length()+i);\n\t\t\t\t} else{\n\t\t\t\t\tc = s.substring(i, s.length()) + s.substring(0, p.length()-(s.length()-i));\n\t\t\t\t}\n\t\t\t\tif(p.equals(c)){\n\t\t\t\t\tflg = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(flg==1) System.out.println(\"Yes\");\n\t\t\telse System.out.println(\"No\");\n\t\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", "String c;", "c", "int flg=0;", "flg", "0", "for(int i=0; i<s.length(); i++){\n\t\t\t\tif(i+p.length()<=s.length()){\n\t\t\t\t\tc = s.substring(i, p.length()+i);\n\t\t\t\t} else{\n\t\t\t\t\tc = s.substring(i, s.length()) + s.substring(0, p.length()-(s.length()-i));\n\t\t\t\t}\n\t\t\t\tif(p.equals(c)){\n\t\t\t\t\tflg = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n\t\t\t\tif(i+p.length()<=s.length()){\n\t\t\t\t\tc = s.substring(i, p.length()+i);\n\t\t\t\t} else{\n\t\t\t\t\tc = s.substring(i, s.length()) + s.substring(0, p.length()-(s.length()-i));\n\t\t\t\t}\n\t\t\t\tif(p.equals(c)){\n\t\t\t\t\tflg = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(i+p.length()<=s.length()){\n\t\t\t\t\tc = s.substring(i, p.length()+i);\n\t\t\t\t} else{\n\t\t\t\t\tc = s.substring(i, s.length()) + s.substring(0, p.length()-(s.length()-i));\n\t\t\t\t}\n\t\t\t\tif(p.equals(c)){\n\t\t\t\t\tflg = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "if(i+p.length()<=s.length()){\n\t\t\t\t\tc = s.substring(i, p.length()+i);\n\t\t\t\t} else{\n\t\t\t\t\tc = s.substring(i, s.length()) + s.substring(0, p.length()-(s.length()-i));\n\t\t\t\t}", "i+p.length()<=s.length()", "i+p.length()", "i", "p.length()", "p.length", "p", "s.length()", "s.length", "s", "{\n\t\t\t\t\tc = s.substring(i, p.length()+i);\n\t\t\t\t}", "c = s.substring(i, p.length()+i)", "c", "s.substring(i, p.length()+i)", "s.substring", "s", "i", "p.length()+i", "p.length()", "p.length", "p", "i", "{\n\t\t\t\t\tc = s.substring(i, s.length()) + s.substring(0, p.length()-(s.length()-i));\n\t\t\t\t}", "c = s.substring(i, s.length()) + s.substring(0, p.length()-(s.length()-i))", "c", "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(c)){\n\t\t\t\t\tflg = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "p.equals(c)", "p.equals", "p", "c", "{\n\t\t\t\t\tflg = 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "flg = 1", "flg", "1", "break;", "if(flg==1) System.out.println(\"Yes\");\n\t\t\telse System.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\"", "String[] args", "args" ]
import java.io.*; class Main{ public static void main(String[] args){ try{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String s = br.readLine(); String p = br.readLine(); String c; int flg=0; for(int i=0; i<s.length(); i++){ if(i+p.length()<=s.length()){ c = s.substring(i, p.length()+i); } else{ c = s.substring(i, s.length()) + s.substring(0, p.length()-(s.length()-i)); } if(p.equals(c)){ flg = 1; break; } } if(flg==1) System.out.println("Yes"); else System.out.println("No"); } catch(IOException e){ System.out.println("Exception :" + 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, 2, 13, 4, 18, 13, 17, 4, 18, 13, 14, 4, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 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 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 26, 30 ], [ 30, 31 ], [ 31, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 33, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 6, 52 ], [ 52, 53 ], [ 0, 54 ], [ 54, 55 ], [ 54, 56 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n \n String check = s + s.substring(0,p.length());\n if(check.contains(p)) {\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 s = sc.nextLine();\n String p = sc.nextLine();\n \n String check = s + s.substring(0,p.length());\n if(check.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 \n String check = s + s.substring(0,p.length());\n if(check.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 \n String check = s + s.substring(0,p.length());\n if(check.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 check = s + s.substring(0,p.length());", "check", "s + s.substring(0,p.length())", "s", "s.substring(0,p.length())", "s.substring", "s", "0", "p.length()", "p.length", "p", "if(check.contains(p)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }", "check.contains(p)", "check.contains", "check", "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 \n String check = s + s.substring(0,p.length());\n if(check.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 \n String check = s + s.substring(0,p.length());\n if(check.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 check = s + s.substring(0,p.length()); if(check.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, 4, 18, 13, 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, 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 ], [ 37, 38 ], [ 38, 39 ], [ 11, 40 ], [ 40, 41 ], [ 40, 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\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString ringText =scan.nextLine();\n\t\tint ringLength = ringText.length();\n\t\tchar[] ringChar = ringText.toCharArray();\n\t\t\n\t\tString target =scan.nextLine();\n\t\tint targetLength = target.length();\n\t\t\n\t\tString hikaku = \"\";\n\t\t\n\t\tboolean kai = false;\n\t\t\n\t\tfor(int i=0; i<ringLength; i++){\n\t\t\t\thikaku = \"\";\n\t\t\t\tkai = false;\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<targetLength; j++){\n\t\t\t\t\tint i2 = j;\n\t\t\t\t\tif(i + i2 >= ringLength){\n\t\t\t\t\t\ti2 -= ringLength;\n\t\t\t\t\t}\n\t\t\t\t\thikaku = hikaku + ringChar[i+i2];\n\t\t\t\t}\n\t\t\t\tif(target.equals(hikaku)){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tkai = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t\t\n\t\tif(kai == false){\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\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString ringText =scan.nextLine();\n\t\tint ringLength = ringText.length();\n\t\tchar[] ringChar = ringText.toCharArray();\n\t\t\n\t\tString target =scan.nextLine();\n\t\tint targetLength = target.length();\n\t\t\n\t\tString hikaku = \"\";\n\t\t\n\t\tboolean kai = false;\n\t\t\n\t\tfor(int i=0; i<ringLength; i++){\n\t\t\t\thikaku = \"\";\n\t\t\t\tkai = false;\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<targetLength; j++){\n\t\t\t\t\tint i2 = j;\n\t\t\t\t\tif(i + i2 >= ringLength){\n\t\t\t\t\t\ti2 -= ringLength;\n\t\t\t\t\t}\n\t\t\t\t\thikaku = hikaku + ringChar[i+i2];\n\t\t\t\t}\n\t\t\t\tif(target.equals(hikaku)){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tkai = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t\t\n\t\tif(kai == false){\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\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString ringText =scan.nextLine();\n\t\tint ringLength = ringText.length();\n\t\tchar[] ringChar = ringText.toCharArray();\n\t\t\n\t\tString target =scan.nextLine();\n\t\tint targetLength = target.length();\n\t\t\n\t\tString hikaku = \"\";\n\t\t\n\t\tboolean kai = false;\n\t\t\n\t\tfor(int i=0; i<ringLength; i++){\n\t\t\t\thikaku = \"\";\n\t\t\t\tkai = false;\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<targetLength; j++){\n\t\t\t\t\tint i2 = j;\n\t\t\t\t\tif(i + i2 >= ringLength){\n\t\t\t\t\t\ti2 -= ringLength;\n\t\t\t\t\t}\n\t\t\t\t\thikaku = hikaku + ringChar[i+i2];\n\t\t\t\t}\n\t\t\t\tif(target.equals(hikaku)){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tkai = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t\t\n\t\tif(kai == false){\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tString ringText =scan.nextLine();\n\t\tint ringLength = ringText.length();\n\t\tchar[] ringChar = ringText.toCharArray();\n\t\t\n\t\tString target =scan.nextLine();\n\t\tint targetLength = target.length();\n\t\t\n\t\tString hikaku = \"\";\n\t\t\n\t\tboolean kai = false;\n\t\t\n\t\tfor(int i=0; i<ringLength; i++){\n\t\t\t\thikaku = \"\";\n\t\t\t\tkai = false;\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<targetLength; j++){\n\t\t\t\t\tint i2 = j;\n\t\t\t\t\tif(i + i2 >= ringLength){\n\t\t\t\t\t\ti2 -= ringLength;\n\t\t\t\t\t}\n\t\t\t\t\thikaku = hikaku + ringChar[i+i2];\n\t\t\t\t}\n\t\t\t\tif(target.equals(hikaku)){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tkai = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t\t\n\t\tif(kai == false){\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String ringText =scan.nextLine();", "ringText", "scan.nextLine()", "scan.nextLine", "scan", "int ringLength = ringText.length();", "ringLength", "ringText.length()", "ringText.length", "ringText", "char[] ringChar = ringText.toCharArray();", "ringChar", "ringText.toCharArray()", "ringText.toCharArray", "ringText", "String target =scan.nextLine();", "target", "scan.nextLine()", "scan.nextLine", "scan", "int targetLength = target.length();", "targetLength", "target.length()", "target.length", "target", "String hikaku = \"\";", "hikaku", "\"\"", "boolean kai = false;", "kai", "false", "for(int i=0; i<ringLength; i++){\n\t\t\t\thikaku = \"\";\n\t\t\t\tkai = false;\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<targetLength; j++){\n\t\t\t\t\tint i2 = j;\n\t\t\t\t\tif(i + i2 >= ringLength){\n\t\t\t\t\t\ti2 -= ringLength;\n\t\t\t\t\t}\n\t\t\t\t\thikaku = hikaku + ringChar[i+i2];\n\t\t\t\t}\n\t\t\t\tif(target.equals(hikaku)){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tkai = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<ringLength", "i", "ringLength", "i++", "i++", "i", "{\n\t\t\t\thikaku = \"\";\n\t\t\t\tkai = false;\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<targetLength; j++){\n\t\t\t\t\tint i2 = j;\n\t\t\t\t\tif(i + i2 >= ringLength){\n\t\t\t\t\t\ti2 -= ringLength;\n\t\t\t\t\t}\n\t\t\t\t\thikaku = hikaku + ringChar[i+i2];\n\t\t\t\t}\n\t\t\t\tif(target.equals(hikaku)){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tkai = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}", "{\n\t\t\t\thikaku = \"\";\n\t\t\t\tkai = false;\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<targetLength; j++){\n\t\t\t\t\tint i2 = j;\n\t\t\t\t\tif(i + i2 >= ringLength){\n\t\t\t\t\t\ti2 -= ringLength;\n\t\t\t\t\t}\n\t\t\t\t\thikaku = hikaku + ringChar[i+i2];\n\t\t\t\t}\n\t\t\t\tif(target.equals(hikaku)){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tkai = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}", "hikaku = \"\"", "hikaku", "\"\"", "kai = false", "kai", "false", "for(int j=0; j<targetLength; j++){\n\t\t\t\t\tint i2 = j;\n\t\t\t\t\tif(i + i2 >= ringLength){\n\t\t\t\t\t\ti2 -= ringLength;\n\t\t\t\t\t}\n\t\t\t\t\thikaku = hikaku + ringChar[i+i2];\n\t\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<targetLength", "j", "targetLength", "j++", "j++", "j", "{\n\t\t\t\t\tint i2 = j;\n\t\t\t\t\tif(i + i2 >= ringLength){\n\t\t\t\t\t\ti2 -= ringLength;\n\t\t\t\t\t}\n\t\t\t\t\thikaku = hikaku + ringChar[i+i2];\n\t\t\t\t}", "{\n\t\t\t\t\tint i2 = j;\n\t\t\t\t\tif(i + i2 >= ringLength){\n\t\t\t\t\t\ti2 -= ringLength;\n\t\t\t\t\t}\n\t\t\t\t\thikaku = hikaku + ringChar[i+i2];\n\t\t\t\t}", "int i2 = j;", "i2", "j", "if(i + i2 >= ringLength){\n\t\t\t\t\t\ti2 -= ringLength;\n\t\t\t\t\t}", "i + i2 >= ringLength", "i + i2", "i", "i2", "ringLength", "{\n\t\t\t\t\t\ti2 -= ringLength;\n\t\t\t\t\t}", "i2 -= ringLength", "i2", "ringLength", "hikaku = hikaku + ringChar[i+i2]", "hikaku", "hikaku + ringChar[i+i2]", "hikaku", "ringChar[i+i2]", "ringChar", "i+i2", "i", "i2", "if(target.equals(hikaku)){\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tkai = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "target.equals(hikaku)", "target.equals", "target", "hikaku", "{\n\t\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\t\tkai = true;\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 = true", "kai", "true", "break;", "if(kai == false){\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "kai == false", "kai", "false", "{\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{ Scanner scan = new Scanner(System.in); String ringText =scan.nextLine(); int ringLength = ringText.length(); char[] ringChar = ringText.toCharArray(); String target =scan.nextLine(); int targetLength = target.length(); String hikaku = ""; boolean kai = false; for(int i=0; i<ringLength; i++){ hikaku = ""; kai = false; for(int j=0; j<targetLength; j++){ int i2 = j; if(i + i2 >= ringLength){ i2 -= ringLength; } hikaku = hikaku + ringChar[i+i2]; } if(target.equals(hikaku)){ System.out.println("Yes"); kai = true; break; } } if(kai == false){ 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, 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 ], [ 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 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 26, 31 ], [ 31, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 25, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 6, 47 ], [ 47, 48 ], [ 0, 49 ], [ 49, 50 ], [ 49, 51 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n String target = sc.next();\n str += str;\n if (str.indexOf(target) != -1) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}\n", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n String target = sc.next();\n str += str;\n if (str.indexOf(target) != -1) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n String target = sc.next();\n str += str;\n if (str.indexOf(target) != -1) {\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 target = sc.next();\n str += str;\n if (str.indexOf(target) != -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 str = sc.next();", "str", "sc.next()", "sc.next", "sc", "String target = sc.next();", "target", "sc.next()", "sc.next", "sc", "str += str", "str", "str", "if (str.indexOf(target) != -1) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }", "str.indexOf(target) != -1", "str.indexOf(target)", "str.indexOf", "str", "target", "-1", "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) throws Exception {\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n String target = sc.next();\n str += str;\n if (str.indexOf(target) != -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) throws Exception {\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n String target = sc.next();\n str += str;\n if (str.indexOf(target) != -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) throws Exception { Scanner sc = new Scanner(System.in); String str = sc.next(); String target = sc.next(); str += str; if (str.indexOf(target) != -1) { System.out.println("Yes"); } else { System.out.println("No"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 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 ], [ 51, 5 ], [ 51, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 32, 32 ], [ 32, 33 ], [ 32, 34 ], [ 32, 35 ], [ 27, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 27, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 6, 48 ], [ 48, 49 ], [ 0, 50 ], [ 50, 51 ], [ 50, 52 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString s = sc.nextLine();\n\t\tString p = sc.nextLine();\n\n\t\tString ss = s + s;\n\n//\t\tSystem.out.println(ss);\n\n\t\tif ( ss.matches(\".*\" + p + \".*\") )\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString s = sc.nextLine();\n\t\tString p = sc.nextLine();\n\n\t\tString ss = s + s;\n\n//\t\tSystem.out.println(ss);\n\n\t\tif ( ss.matches(\".*\" + p + \".*\") )\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString s = sc.nextLine();\n\t\tString p = sc.nextLine();\n\n\t\tString ss = s + s;\n\n//\t\tSystem.out.println(ss);\n\n\t\tif ( ss.matches(\".*\" + p + \".*\") )\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString s = sc.nextLine();\n\t\tString p = sc.nextLine();\n\n\t\tString ss = s + s;\n\n//\t\tSystem.out.println(ss);\n\n\t\tif ( ss.matches(\".*\" + p + \".*\") )\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.nextLine();", "s", "sc.nextLine()", "sc.nextLine", "sc", "String p = sc.nextLine();", "p", "sc.nextLine()", "sc.nextLine", "sc", "String ss = s + s;", "ss", "s + s", "s", "s", "if ( ss.matches(\".*\" + p + \".*\") )\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");", "ss.matches(\".*\" + p + \".*\")", "ss.matches", "ss", "\".*\" + p + \".*\"", "\".*\" + p + \".*\"", "\".*\"", "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\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString s = sc.nextLine();\n\t\tString p = sc.nextLine();\n\n\t\tString ss = s + s;\n\n//\t\tSystem.out.println(ss);\n\n\t\tif ( ss.matches(\".*\" + p + \".*\") )\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString s = sc.nextLine();\n\t\tString p = sc.nextLine();\n\n\t\tString ss = s + s;\n\n//\t\tSystem.out.println(ss);\n\n\t\tif ( ss.matches(\".*\" + p + \".*\") )\n\t\t\tSystem.out.println(\"Yes\");\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); String s = sc.nextLine(); String p = sc.nextLine(); String ss = s + s; // System.out.println(ss); 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, 0, 13, 4, 18, 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 ], [ 48, 5 ], [ 48, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 19, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 28, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 6, 45 ], [ 45, 46 ], [ 0, 47 ], [ 47, 48 ], [ 47, 49 ] ]
[ "\n\nimport java.util.Scanner;\npublic class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n line = line.concat(line);\n String pattern = sc.nextLine();\n if(line.contains(pattern)) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n \n \n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n line = line.concat(line);\n String pattern = sc.nextLine();\n if(line.contains(pattern)) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n \n \n }\n}", "Main", "public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n line = line.concat(line);\n String pattern = sc.nextLine();\n if(line.contains(pattern)) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n \n \n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n line = line.concat(line);\n String pattern = sc.nextLine();\n if(line.contains(pattern)) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n \n \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String line = sc.nextLine();", "line", "sc.nextLine()", "sc.nextLine", "sc", "line = line.concat(line)", "line", "line.concat(line)", "line.concat", "line", "line", "String pattern = sc.nextLine();", "pattern", "sc.nextLine()", "sc.nextLine", "sc", "if(line.contains(pattern)) System.out.println(\"Yes\");\n else System.out.println(\"No\");", "line.contains(pattern)", "line.contains", "line", "pattern", "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 public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n line = line.concat(line);\n String pattern = sc.nextLine();\n if(line.contains(pattern)) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n \n \n }\n}", "public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n line = line.concat(line);\n String pattern = sc.nextLine();\n if(line.contains(pattern)) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n \n \n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String line = sc.nextLine(); line = line.concat(line); String pattern = sc.nextLine(); if(line.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, 4, 18, 13, 41, 13, 2, 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 ], [ 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 ], [ 24, 25 ], [ 24, 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 ] ]
[ "import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n String s = sc.next();\n String p = sc.next();\n \n String text = s + s;\n \n if(text.contains(p)) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n String s = sc.next();\n String p = sc.next();\n \n String text = s + s;\n \n if(text.contains(p)) 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.next();\n String p = sc.next();\n \n String text = s + s;\n \n if(text.contains(p)) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \n String s = sc.next();\n String p = sc.next();\n \n String text = s + s;\n \n if(text.contains(p)) 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", "String p = sc.next();", "p", "sc.next()", "sc.next", "sc", "String text = s + s;", "text", "s + s", "s", "s", "if(text.contains(p)) System.out.println(\"Yes\");\n else System.out.println(\"No\");", "text.contains(p)", "text.contains", "text", "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 sc = new Scanner(System.in);\n \n String s = sc.next();\n String p = sc.next();\n \n String text = s + s;\n \n if(text.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 sc = new Scanner(System.in);\n \n String s = sc.next();\n String p = sc.next();\n \n String text = s + s;\n \n if(text.contains(p)) System.out.println(\"Yes\");\n else System.out.println(\"No\");\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); String p = sc.next(); String text = s + s; if(text.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, 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\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 s1 += s1;\n if(s1.contains(s2)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\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 s1 += s1;\n if(s1.contains(s2)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }\n\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s1 = sc.nextLine();\n String s2 = sc.nextLine();\n s1 += s1;\n if(s1.contains(s2)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s1 = sc.nextLine();\n String s2 = sc.nextLine();\n s1 += s1;\n if(s1.contains(s2)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s1 = sc.nextLine();", "s1", "sc.nextLine()", "sc.nextLine", "sc", "String s2 = sc.nextLine();", "s2", "sc.nextLine()", "sc.nextLine", "sc", "s1 += s1", "s1", "s1", "if(s1.contains(s2)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }", "s1.contains(s2)", "s1.contains", "s1", "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", "public class Main {\n\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 s1 += s1;\n if(s1.contains(s2)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s1 = sc.nextLine();\n String s2 = sc.nextLine();\n s1 += s1;\n if(s1.contains(s2)) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s1 = sc.nextLine(); String s2 = sc.nextLine(); s1 += s1; if(s1.contains(s2)) { 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, 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 ]
[ [ 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 ], [ 22, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 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.IOException;\nimport java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString s = scanner.nextLine();\n\t\tString str = s + s;\n\t\tString ans = scanner.nextLine();\n\t\t\n\t\tif(str.contains(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.IOException;", "IOException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString s = scanner.nextLine();\n\t\tString str = s + s;\n\t\tString ans = scanner.nextLine();\n\t\t\n\t\tif(str.contains(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\t\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString s = scanner.nextLine();\n\t\tString str = s + s;\n\t\tString ans = scanner.nextLine();\n\t\t\n\t\tif(str.contains(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\t\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString s = scanner.nextLine();\n\t\tString str = s + s;\n\t\tString ans = scanner.nextLine();\n\t\t\n\t\tif(str.contains(ans)){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String s = scanner.nextLine();", "s", "scanner.nextLine()", "scanner.nextLine", "scanner", "String str = s + s;", "str", "s + s", "s", "s", "String ans = scanner.nextLine();", "ans", "scanner.nextLine()", "scanner.nextLine", "scanner", "if(str.contains(ans)){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t} else {\n\t\t\tSystem.out.println(\"No\");\n\t\t}", "str.contains(ans)", "str.contains", "str", "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" ]
import java.io.IOException; import java.util.Scanner; class Main { public static void main(String[] args) throws IOException { Scanner scanner = new Scanner(System.in); String s = scanner.nextLine(); String str = s + s; String ans = scanner.nextLine(); if(str.contains(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, 0, 13, 4, 18, 13, 17, 2, 4, 18, 13, 17, 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 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 24, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 28, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 39, 40 ], [ 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 s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\t\ts += s.substring(0, s.length() - 1);\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}", "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\ts += s.substring(0, s.length() - 1);\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}", "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\ts += s.substring(0, s.length() - 1);\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\tScanner scan = new Scanner(System.in);\n\t\tString s = scan.nextLine();\n\t\tString p = scan.nextLine();\n\t\ts += s.substring(0, s.length() - 1);\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}", "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.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", "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\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\ts += s.substring(0, s.length() - 1);\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}", "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\ts += s.substring(0, s.length() - 1);\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}", "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.substring(0, s.length() - 1); 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, 4, 18, 13, 0, 13, 2, 13, 13, 41, 13, 8, 4, 18, 13, 13, 17, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 48, 5 ], [ 48, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 27, 29 ], [ 8, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 32, 38 ], [ 8, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 6, 45 ], [ 45, 46 ], [ 0, 47 ], [ 47, 48 ], [ 47, 49 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n //Scanner\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n sc.close();\n //sをつなげる\n s = s + s;\n //条件分岐\n String result = s.contains(p) ? \"Yes\": \"No\";\n //結果表示\n System.out.println(result);\n \n\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n\n //Scanner\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n sc.close();\n //sをつなげる\n s = s + s;\n //条件分岐\n String result = s.contains(p) ? \"Yes\": \"No\";\n //結果表示\n System.out.println(result);\n \n\n }\n\n}", "Main", "public static void main(String[] args) {\n\n //Scanner\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n sc.close();\n //sをつなげる\n s = s + s;\n //条件分岐\n String result = s.contains(p) ? \"Yes\": \"No\";\n //結果表示\n System.out.println(result);\n \n\n }", "main", "{\n\n //Scanner\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n sc.close();\n //sをつなげる\n s = s + s;\n //条件分岐\n String result = s.contains(p) ? \"Yes\": \"No\";\n //結果表示\n System.out.println(result);\n \n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.nextLine();", "s", "sc.nextLine()", "sc.nextLine", "sc", "String p = sc.nextLine();", "p", "sc.nextLine()", "sc.nextLine", "sc", "sc.close()", "sc.close", "sc", "s = s + s", "s", "s + s", "s", "s", "String result = s.contains(p) ? \"Yes\": \"No\";", "result", "s.contains(p) ? \"Yes\": \"No\"", "s.contains(p)", "s.contains", "s", "p", "\"Yes\"", "\"No\"", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n\n //Scanner\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n sc.close();\n //sをつなげる\n s = s + s;\n //条件分岐\n String result = s.contains(p) ? \"Yes\": \"No\";\n //結果表示\n System.out.println(result);\n \n\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n\n //Scanner\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n sc.close();\n //sをつなげる\n s = s + s;\n //条件分岐\n String result = s.contains(p) ? \"Yes\": \"No\";\n //結果表示\n System.out.println(result);\n \n\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { //Scanner Scanner sc = new Scanner(System.in); String s = sc.nextLine(); String p = sc.nextLine(); sc.close(); //sをつなげる s = s + s; //条件分岐 String result = s.contains(p) ? "Yes": "No"; //結果表示 System.out.println(result); } }
[ 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, 14, 2, 2, 2, 13, 17, 4, 18, 13, 4, 18, 13, 30, 4, 18, 13, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 17, 2, 4, 18, 13, 2, 4, 18, 13, 13, 30, 4, 18, 13, 4, 18, 13, 13, 2, 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 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 85, 86 ], [ 79, 87 ], [ 87, 88 ], [ 88, 89 ], [ 78, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 94, 98 ], [ 98, 99 ], [ 99, 100 ], [ 90, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 104, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 108, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 112, 116 ], [ 78, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 118, 121 ], [ 121, 122 ], [ 122, 123 ], [ 121, 124 ], [ 121, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 77, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 134, 135 ], [ 135, 136 ], [ 130, 137 ], [ 137, 138 ], [ 137, 139 ], [ 77, 140 ], [ 140, 141 ], [ 141, 142 ], [ 140, 143 ], [ 140, 144 ], [ 144, 145 ], [ 145, 146 ], [ 19, 147 ], [ 147, 148 ], [ 147, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 149, 154 ], [ 147, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 155, 160 ], [ 6, 161 ], [ 161, 162 ] ]
[ "/* 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 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 if( ((i + 1) + p.length()) > s.length() ){\n sb.append(s.substring(i, s.length()));\n sb.append(s.substring(0, (p.length() - (s.length() - i))));\n }else {\n sb.append(s.substring(i, i + p.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 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 if( ((i + 1) + p.length()) > s.length() ){\n sb.append(s.substring(i, s.length()));\n sb.append(s.substring(0, (p.length() - (s.length() - i))));\n }else {\n sb.append(s.substring(i, i + p.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 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 if( ((i + 1) + p.length()) > s.length() ){\n sb.append(s.substring(i, s.length()));\n sb.append(s.substring(0, (p.length() - (s.length() - i))));\n }else {\n sb.append(s.substring(i, i + p.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 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 if( ((i + 1) + p.length()) > s.length() ){\n sb.append(s.substring(i, s.length()));\n sb.append(s.substring(0, (p.length() - (s.length() - i))));\n }else {\n sb.append(s.substring(i, i + p.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 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 if( ((i + 1) + p.length()) > s.length() ){\n sb.append(s.substring(i, s.length()));\n sb.append(s.substring(0, (p.length() - (s.length() - i))));\n }else {\n sb.append(s.substring(i, i + p.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 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 if( ((i + 1) + p.length()) > s.length() ){\n sb.append(s.substring(i, s.length()));\n sb.append(s.substring(0, (p.length() - (s.length() - i))));\n }else {\n sb.append(s.substring(i, i + p.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 if( ((i + 1) + p.length()) > s.length() ){\n sb.append(s.substring(i, s.length()));\n sb.append(s.substring(0, (p.length() - (s.length() - i))));\n }else {\n sb.append(s.substring(i, i + p.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 if( ((i + 1) + p.length()) > s.length() ){\n sb.append(s.substring(i, s.length()));\n sb.append(s.substring(0, (p.length() - (s.length() - i))));\n }else {\n sb.append(s.substring(i, i + p.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 if( ((i + 1) + p.length()) > s.length() ){\n sb.append(s.substring(i, s.length()));\n sb.append(s.substring(0, (p.length() - (s.length() - i))));\n }else {\n sb.append(s.substring(i, i + p.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 if( ((i + 1) + p.length()) > s.length() ){\n sb.append(s.substring(i, s.length()));\n sb.append(s.substring(0, (p.length() - (s.length() - i))));\n }else {\n sb.append(s.substring(i, i + p.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 if( ((i + 1) + p.length()) > s.length() ){\n sb.append(s.substring(i, s.length()));\n sb.append(s.substring(0, (p.length() - (s.length() - i))));\n }else {\n sb.append(s.substring(i, i + p.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 }", "if( ((i + 1) + p.length()) > s.length() ){\n sb.append(s.substring(i, s.length()));\n sb.append(s.substring(0, (p.length() - (s.length() - i))));\n }else {\n sb.append(s.substring(i, i + p.length()));\n }", "((i + 1) + p.length()) > s.length()", "((i + 1) + p.length())", "(i + 1)", "i", "1", "p.length()", "p.length", "p", "s.length()", "s.length", "s", "{\n sb.append(s.substring(i, s.length()));\n sb.append(s.substring(0, (p.length() - (s.length() - i))));\n }", "sb.append(s.substring(i, s.length()))", "sb.append", "sb", "s.substring(i, s.length())", "s.substring", "s", "i", "s.length()", "s.length", "s", "sb.append(s.substring(0, (p.length() - (s.length() - i))))", "sb.append", "sb", "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", "{\n sb.append(s.substring(i, i + p.length()));\n }", "sb.append(s.substring(i, i + p.length()))", "sb.append", "sb", "s.substring(i, i + p.length())", "s.substring", "s", "i", "i + p.length()", "i", "p.length()", "p.length", "p", "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)){ if( ((i + 1) + p.length()) > s.length() ){ sb.append(s.substring(i, s.length())); sb.append(s.substring(0, (p.length() - (s.length() - i)))); }else { sb.append(s.substring(i, i + p.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, 41, 13, 0, 13, 4, 18, 13, 0, 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 ], [ 54, 5 ], [ 54, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 35, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 29, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 6, 51 ], [ 51, 52 ], [ 0, 53 ], [ 53, 54 ], [ 53, 55 ] ]
[ "import java.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 str1;\n String str2;\n \n str1 = br.readLine();\n str1 += str1;\n\n str2 = br.readLine();\n \n if(str1.indexOf(str2) == -1){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\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 str1;\n String str2;\n \n str1 = br.readLine();\n str1 += str1;\n\n str2 = br.readLine();\n \n if(str1.indexOf(str2) == -1){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\n }\n \n }\n}", "Main", "public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str1;\n String str2;\n \n str1 = br.readLine();\n str1 += str1;\n\n str2 = br.readLine();\n \n if(str1.indexOf(str2) == -1){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\n }\n \n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str1;\n String str2;\n \n str1 = br.readLine();\n str1 += str1;\n\n str2 = br.readLine();\n \n if(str1.indexOf(str2) == -1){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\n }\n \n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String str1;", "str1", "String str2;", "str2", "str1 = br.readLine()", "str1", "br.readLine()", "br.readLine", "br", "str1 += str1", "str1", "str1", "str2 = br.readLine()", "str2", "br.readLine()", "br.readLine", "br", "if(str1.indexOf(str2) == -1){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\n }", "str1.indexOf(str2) == -1", "str1.indexOf(str2)", "str1.indexOf", "str1", "str2", "-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)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str1;\n String str2;\n \n str1 = br.readLine();\n str1 += str1;\n\n str2 = br.readLine();\n \n if(str1.indexOf(str2) == -1){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\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 str1;\n String str2;\n \n str1 = br.readLine();\n str1 += str1;\n\n str2 = br.readLine();\n \n if(str1.indexOf(str2) == -1){\n System.out.println(\"No\");\n }else{\n System.out.println(\"Yes\");\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 str1; String str2; str1 = br.readLine(); str1 += str1; str2 = br.readLine(); if(str1.indexOf(str2) == -1){ System.out.println("No"); }else{ System.out.println("Yes"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 17, 0, 13, 4, 18, 13, 0, 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, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 61, 5 ], [ 61, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 8, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 33, 35 ], [ 8, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 36, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 36, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 6, 58 ], [ 58, 59 ], [ 0, 60 ], [ 60, 61 ], [ 60, 62 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n Scanner sc= new Scanner( System.in );\n\n\t\tString str=\"\";\n\t\tString in_str=\"\";\n\t\tString w_str=\"\";\n\n str = sc.nextLine();\n in_str = sc.nextLine();\n\n w_str = str + str;\n\n\t\tif ( w_str.contains( in_str ) ) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\t\t\n\t\tsc.close();\n\t}\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n Scanner sc= new Scanner( System.in );\n\n\t\tString str=\"\";\n\t\tString in_str=\"\";\n\t\tString w_str=\"\";\n\n str = sc.nextLine();\n in_str = sc.nextLine();\n\n w_str = str + str;\n\n\t\tif ( w_str.contains( in_str ) ) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\t\t\n\t\tsc.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\n Scanner sc= new Scanner( System.in );\n\n\t\tString str=\"\";\n\t\tString in_str=\"\";\n\t\tString w_str=\"\";\n\n str = sc.nextLine();\n in_str = sc.nextLine();\n\n w_str = str + str;\n\n\t\tif ( w_str.contains( in_str ) ) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\t\t\n\t\tsc.close();\n\t}", "main", "{\n\n Scanner sc= new Scanner( System.in );\n\n\t\tString str=\"\";\n\t\tString in_str=\"\";\n\t\tString w_str=\"\";\n\n str = sc.nextLine();\n in_str = sc.nextLine();\n\n w_str = str + str;\n\n\t\tif ( w_str.contains( in_str ) ) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\t\t\n\t\tsc.close();\n\t}", "Scanner sc= new Scanner( System.in );", "sc", "new Scanner( System.in )", "String str=\"\";", "str", "\"\"", "String in_str=\"\";", "in_str", "\"\"", "String w_str=\"\";", "w_str", "\"\"", "str = sc.nextLine()", "str", "sc.nextLine()", "sc.nextLine", "sc", "in_str = sc.nextLine()", "in_str", "sc.nextLine()", "sc.nextLine", "sc", "w_str = str + str", "w_str", "str + str", "str", "str", "if ( w_str.contains( in_str ) ) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }", "w_str.contains( in_str )", "w_str.contains", "w_str", "in_str", "{\n System.out.println(\"Yes\");\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "{\n System.out.println(\"No\");\n }", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n Scanner sc= new Scanner( System.in );\n\n\t\tString str=\"\";\n\t\tString in_str=\"\";\n\t\tString w_str=\"\";\n\n str = sc.nextLine();\n in_str = sc.nextLine();\n\n w_str = str + str;\n\n\t\tif ( w_str.contains( in_str ) ) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\t\t\n\t\tsc.close();\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n Scanner sc= new Scanner( System.in );\n\n\t\tString str=\"\";\n\t\tString in_str=\"\";\n\t\tString w_str=\"\";\n\n str = sc.nextLine();\n in_str = sc.nextLine();\n\n w_str = str + str;\n\n\t\tif ( w_str.contains( in_str ) ) {\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n\t\t\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc= new Scanner( System.in ); String str=""; String in_str=""; String w_str=""; str = sc.nextLine(); in_str = sc.nextLine(); w_str = str + str; if ( w_str.contains( in_str ) ) { 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, 11, 1, 0, 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, 11, 1, 0, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 2, 2, 13, 13, 4, 18, 13, 4, 18, 13, 13, 3, 14, 2, 13, 4, 18, 13, 30, 4, 18, 18, 13, 13, 17, 3, 14, 2, 13, 4, 18, 13, 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 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 24, 34 ], [ 34, 35 ], [ 35, 36 ], [ 24, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 40, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 39, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 52, 62 ], [ 62, 63 ], [ 63, 64 ], [ 52, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 77, 78 ], [ 68, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 67, 83 ], [ 49, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 84, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 90, 97 ], [ 8, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 98, 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.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n int si;\n for(si = 0;si < s.length();si++){\n if(s.charAt(si) == p.charAt(0)){\n int pi;\n for(pi = 1;pi < p.length();pi++){\n if(s.charAt((si + pi) % s.length()) != p.charAt(pi))break;\n }\n if(pi == p.length()){\n System.out.println(\"Yes\");\n break;\n }\n }\n }\n if(si == s.length())System.out.println(\"No\");\n sc.close();\n }\n}\n", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n int si;\n for(si = 0;si < s.length();si++){\n if(s.charAt(si) == p.charAt(0)){\n int pi;\n for(pi = 1;pi < p.length();pi++){\n if(s.charAt((si + pi) % s.length()) != p.charAt(pi))break;\n }\n if(pi == p.length()){\n System.out.println(\"Yes\");\n break;\n }\n }\n }\n if(si == s.length())System.out.println(\"No\");\n sc.close();\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 int si;\n for(si = 0;si < s.length();si++){\n if(s.charAt(si) == p.charAt(0)){\n int pi;\n for(pi = 1;pi < p.length();pi++){\n if(s.charAt((si + pi) % s.length()) != p.charAt(pi))break;\n }\n if(pi == p.length()){\n System.out.println(\"Yes\");\n break;\n }\n }\n }\n if(si == s.length())System.out.println(\"No\");\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n int si;\n for(si = 0;si < s.length();si++){\n if(s.charAt(si) == p.charAt(0)){\n int pi;\n for(pi = 1;pi < p.length();pi++){\n if(s.charAt((si + pi) % s.length()) != p.charAt(pi))break;\n }\n if(pi == p.length()){\n System.out.println(\"Yes\");\n break;\n }\n }\n }\n if(si == s.length())System.out.println(\"No\");\n sc.close();\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 si;", "si", "for(si = 0;si < s.length();si++){\n if(s.charAt(si) == p.charAt(0)){\n int pi;\n for(pi = 1;pi < p.length();pi++){\n if(s.charAt((si + pi) % s.length()) != p.charAt(pi))break;\n }\n if(pi == p.length()){\n System.out.println(\"Yes\");\n break;\n }\n }\n }", "si = 0;", "si = 0", "si", "0", "si < s.length()", "si", "s.length()", "s.length", "s", "si++", "si++", "si", "{\n if(s.charAt(si) == p.charAt(0)){\n int pi;\n for(pi = 1;pi < p.length();pi++){\n if(s.charAt((si + pi) % s.length()) != p.charAt(pi))break;\n }\n if(pi == p.length()){\n System.out.println(\"Yes\");\n break;\n }\n }\n }", "{\n if(s.charAt(si) == p.charAt(0)){\n int pi;\n for(pi = 1;pi < p.length();pi++){\n if(s.charAt((si + pi) % s.length()) != p.charAt(pi))break;\n }\n if(pi == p.length()){\n System.out.println(\"Yes\");\n break;\n }\n }\n }", "if(s.charAt(si) == p.charAt(0)){\n int pi;\n for(pi = 1;pi < p.length();pi++){\n if(s.charAt((si + pi) % s.length()) != p.charAt(pi))break;\n }\n if(pi == p.length()){\n System.out.println(\"Yes\");\n break;\n }\n }", "s.charAt(si) == p.charAt(0)", "s.charAt(si)", "s.charAt", "s", "si", "p.charAt(0)", "p.charAt", "p", "0", "{\n int pi;\n for(pi = 1;pi < p.length();pi++){\n if(s.charAt((si + pi) % s.length()) != p.charAt(pi))break;\n }\n if(pi == p.length()){\n System.out.println(\"Yes\");\n break;\n }\n }", "int pi;", "pi", "for(pi = 1;pi < p.length();pi++){\n if(s.charAt((si + pi) % s.length()) != p.charAt(pi))break;\n }", "pi = 1;", "pi = 1", "pi", "1", "pi < p.length()", "pi", "p.length()", "p.length", "p", "pi++", "pi++", "pi", "{\n if(s.charAt((si + pi) % s.length()) != p.charAt(pi))break;\n }", "{\n if(s.charAt((si + pi) % s.length()) != p.charAt(pi))break;\n }", "if(s.charAt((si + pi) % s.length()) != p.charAt(pi))break;", "s.charAt((si + pi) % s.length()) != p.charAt(pi)", "s.charAt((si + pi) % s.length())", "s.charAt", "s", "(si + pi) % s.length()", "(si + pi)", "si", "pi", "s.length()", "s.length", "s", "p.charAt(pi)", "p.charAt", "p", "pi", "break;", "if(pi == p.length()){\n System.out.println(\"Yes\");\n break;\n }", "pi == p.length()", "pi", "p.length()", "p.length", "p", "{\n System.out.println(\"Yes\");\n break;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "break;", "if(si == s.length())System.out.println(\"No\");", "si == s.length()", "si", "s.length()", "s.length", "s", "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 s = sc.nextLine();\n String p = sc.nextLine();\n int si;\n for(si = 0;si < s.length();si++){\n if(s.charAt(si) == p.charAt(0)){\n int pi;\n for(pi = 1;pi < p.length();pi++){\n if(s.charAt((si + pi) % s.length()) != p.charAt(pi))break;\n }\n if(pi == p.length()){\n System.out.println(\"Yes\");\n break;\n }\n }\n }\n if(si == s.length())System.out.println(\"No\");\n sc.close();\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n String p = sc.nextLine();\n int si;\n for(si = 0;si < s.length();si++){\n if(s.charAt(si) == p.charAt(0)){\n int pi;\n for(pi = 1;pi < p.length();pi++){\n if(s.charAt((si + pi) % s.length()) != p.charAt(pi))break;\n }\n if(pi == p.length()){\n System.out.println(\"Yes\");\n break;\n }\n }\n }\n if(si == s.length())System.out.println(\"No\");\n sc.close();\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.nextLine(); String p = sc.nextLine(); int si; for(si = 0;si < s.length();si++){ if(s.charAt(si) == p.charAt(0)){ int pi; for(pi = 1;pi < p.length();pi++){ if(s.charAt((si + pi) % s.length()) != p.charAt(pi))break; } if(pi == p.length()){ System.out.println("Yes"); break; } } } if(si == s.length())System.out.println("No"); sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 2, 4, 18, 13, 2, 4, 18, 13, 17, 4, 18, 13, 4, 18, 13, 17, 2, 4, 18, 13, 17, 14, 2, 4, 18, 13, 13, 40, 17, 30, 4, 18, 18, 13, 13, 17, 29, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 100, 20 ], [ 100, 21 ], [ 21, 22 ], [ 21, 23 ], [ 100, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 37, 47 ], [ 47, 48 ], [ 48, 49 ], [ 37, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 58, 62 ], [ 55, 63 ], [ 63, 64 ], [ 64, 65 ], [ 54, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 66, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 70, 74 ], [ 51, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 76, 81 ], [ 81, 82 ], [ 75, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 83, 90 ], [ 26, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 24, 97 ], [ 97, 98 ], [ 0, 99 ], [ 99, 100 ], [ 99, 101 ] ]
[ "import java.util.HashMap;\nimport java.util.ArrayList;\nimport java.util.Scanner;\nimport java.util.regex.Pattern;\nimport java.util.Collections;\nimport java.math.BigDecimal;\n\npublic class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n String s = sc.next();\n String p = sc.next();\n for (int i = 0; i < s.length(); i++) {\n s = s.substring(s.length()-1, s.length()) + s.substring(0, s.length()-1);\n if (s.indexOf(p) != -1) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }\n}", "import java.util.HashMap;", "HashMap", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.regex.Pattern;", "Pattern", "java.util.regex", "import java.util.Collections;", "Collections", "java.util", "import java.math.BigDecimal;", "BigDecimal", "java.math", "public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n String s = sc.next();\n String p = sc.next();\n for (int i = 0; i < s.length(); i++) {\n s = s.substring(s.length()-1, s.length()) + s.substring(0, s.length()-1);\n if (s.indexOf(p) != -1) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\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 String s = sc.next();\n String p = sc.next();\n for (int i = 0; i < s.length(); i++) {\n s = s.substring(s.length()-1, s.length()) + s.substring(0, s.length()-1);\n if (s.indexOf(p) != -1) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }", "main", "{\n String s = sc.next();\n String p = sc.next();\n for (int i = 0; i < s.length(); i++) {\n s = s.substring(s.length()-1, s.length()) + s.substring(0, s.length()-1);\n if (s.indexOf(p) != -1) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "String p = sc.next();", "p", "sc.next()", "sc.next", "sc", "for (int i = 0; i < s.length(); i++) {\n s = s.substring(s.length()-1, s.length()) + s.substring(0, s.length()-1);\n if (s.indexOf(p) != -1) {\n System.out.println(\"Yes\");\n return;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n s = s.substring(s.length()-1, s.length()) + s.substring(0, s.length()-1);\n if (s.indexOf(p) != -1) {\n System.out.println(\"Yes\");\n return;\n }\n }", "{\n s = s.substring(s.length()-1, s.length()) + s.substring(0, s.length()-1);\n if (s.indexOf(p) != -1) {\n System.out.println(\"Yes\");\n return;\n }\n }", "s = s.substring(s.length()-1, s.length()) + s.substring(0, s.length()-1)", "s", "s.substring(s.length()-1, s.length()) + s.substring(0, s.length()-1)", "s.substring(s.length()-1, s.length())", "s.substring", "s", "s.length()-1", "s.length()", "s.length", "s", "1", "s.length()", "s.length", "s", "s.substring(0, s.length()-1)", "s.substring", "s", "0", "s.length()-1", "s.length()", "s.length", "s", "1", "if (s.indexOf(p) != -1) {\n System.out.println(\"Yes\");\n return;\n }", "s.indexOf(p) != -1", "s.indexOf(p)", "s.indexOf", "s", "p", "-1", "1", "{\n System.out.println(\"Yes\");\n return;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "return;", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "String[] args", "args", "public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n String s = sc.next();\n String p = sc.next();\n for (int i = 0; i < s.length(); i++) {\n s = s.substring(s.length()-1, s.length()) + s.substring(0, s.length()-1);\n if (s.indexOf(p) != -1) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }\n}", "public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n String s = sc.next();\n String p = sc.next();\n for (int i = 0; i < s.length(); i++) {\n s = s.substring(s.length()-1, s.length()) + s.substring(0, s.length()-1);\n if (s.indexOf(p) != -1) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }\n}", "Main" ]
import java.util.HashMap; import java.util.ArrayList; import java.util.Scanner; import java.util.regex.Pattern; import java.util.Collections; import java.math.BigDecimal; public class Main { public static Scanner sc = new Scanner(System.in); public static void main(String[] args) throws Exception { String s = sc.next(); String p = sc.next(); for (int i = 0; i < s.length(); i++) { s = s.substring(s.length()-1, s.length()) + s.substring(0, s.length()-1); if (s.indexOf(p) != -1) { System.out.println("Yes"); return; } } System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 13, 13, 13, 17, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 3, 14, 2, 18, 13, 8, 2, 2, 13, 13, 18, 13, 13, 2, 2, 13, 13, 18, 13, 13, 2, 13, 13, 18, 13, 13, 30, 40, 13, 4, 13, 13, 13, 13, 3, 14, 2, 13, 2, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 3, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 130, 5 ], [ 130, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 8, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 8, 34 ], [ 34, 35 ], [ 34, 36 ], [ 34, 37 ], [ 34, 38 ], [ 6, 39 ], [ 39, 40 ], [ 130, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 51, 53 ], [ 44, 54 ], [ 54, 55 ], [ 55, 56 ], [ 44, 57 ], [ 58, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 59, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 65, 72 ], [ 59, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 82, 84 ], [ 77, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 89, 90 ], [ 89, 91 ], [ 77, 92 ], [ 92, 93 ], [ 92, 94 ], [ 74, 95 ], [ 95, 96 ], [ 95, 97 ], [ 73, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 101, 102 ], [ 101, 103 ], [ 101, 104 ], [ 101, 105 ], [ 98, 106 ], [ 73, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 107, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 115, 122 ], [ 41, 123 ], [ 123, 124 ], [ 41, 125 ], [ 125, 126 ], [ 41, 127 ], [ 127, 128 ], [ 0, 129 ], [ 129, 130 ], [ 129, 131 ] ]
[ "import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\t\n\t\tString text;\n\t\ttext = scan.next();\n\t\tchar[] s = text.toCharArray();\n\t\ttext = scan.next();\n\t\tchar[] p = text.toCharArray();\n\t\tfunc(s , p ,0);\n\n\t}\n\n\tstatic void func(char[] s , char[] p , int n ) {\n\t\tfor(int i = 0 ; i < s.length ; i++) {\n\t\t\tif(n == s.length) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t}else if(s[i+n >= s.length ? i+n-s.length : i+n] != p[i]) {\n\t\t\t\tn++;\n\t\t\t\tfunc(s , p , n );\n\t\t\t\tbreak;\n\t\t\t}else if(i == p.length - 1) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\t\n\t\tString text;\n\t\ttext = scan.next();\n\t\tchar[] s = text.toCharArray();\n\t\ttext = scan.next();\n\t\tchar[] p = text.toCharArray();\n\t\tfunc(s , p ,0);\n\n\t}\n\n\tstatic void func(char[] s , char[] p , int n ) {\n\t\tfor(int i = 0 ; i < s.length ; i++) {\n\t\t\tif(n == s.length) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t}else if(s[i+n >= s.length ? i+n-s.length : i+n] != p[i]) {\n\t\t\t\tn++;\n\t\t\t\tfunc(s , p , n );\n\t\t\t\tbreak;\n\t\t\t}else if(i == p.length - 1) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\t\n\t\tString text;\n\t\ttext = scan.next();\n\t\tchar[] s = text.toCharArray();\n\t\ttext = scan.next();\n\t\tchar[] p = text.toCharArray();\n\t\tfunc(s , p ,0);\n\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\t\n\t\tString text;\n\t\ttext = scan.next();\n\t\tchar[] s = text.toCharArray();\n\t\ttext = scan.next();\n\t\tchar[] p = text.toCharArray();\n\t\tfunc(s , p ,0);\n\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String text;", "text", "text = scan.next()", "text", "scan.next()", "scan.next", "scan", "char[] s = text.toCharArray();", "s", "text.toCharArray()", "text.toCharArray", "text", "text = scan.next()", "text", "scan.next()", "scan.next", "scan", "char[] p = text.toCharArray();", "p", "text.toCharArray()", "text.toCharArray", "text", "func(s , p ,0)", "func", "s", "p", "0", "String[] args", "args", "static void func(char[] s , char[] p , int n ) {\n\t\tfor(int i = 0 ; i < s.length ; i++) {\n\t\t\tif(n == s.length) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t}else if(s[i+n >= s.length ? i+n-s.length : i+n] != p[i]) {\n\t\t\t\tn++;\n\t\t\t\tfunc(s , p , n );\n\t\t\t\tbreak;\n\t\t\t}else if(i == p.length - 1) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "func", "{\n\t\tfor(int i = 0 ; i < s.length ; i++) {\n\t\t\tif(n == s.length) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t}else if(s[i+n >= s.length ? i+n-s.length : i+n] != p[i]) {\n\t\t\t\tn++;\n\t\t\t\tfunc(s , p , n );\n\t\t\t\tbreak;\n\t\t\t}else if(i == p.length - 1) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "for(int i = 0 ; i < s.length ; i++) {\n\t\t\tif(n == s.length) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t}else if(s[i+n >= s.length ? i+n-s.length : i+n] != p[i]) {\n\t\t\t\tn++;\n\t\t\t\tfunc(s , p , n );\n\t\t\t\tbreak;\n\t\t\t}else if(i == p.length - 1) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < s.length", "i", "s.length", "s", "s.length", "i++", "i++", "i", "{\n\t\t\tif(n == s.length) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t}else if(s[i+n >= s.length ? i+n-s.length : i+n] != p[i]) {\n\t\t\t\tn++;\n\t\t\t\tfunc(s , p , n );\n\t\t\t\tbreak;\n\t\t\t}else if(i == p.length - 1) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(n == s.length) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t}else if(s[i+n >= s.length ? i+n-s.length : i+n] != p[i]) {\n\t\t\t\tn++;\n\t\t\t\tfunc(s , p , n );\n\t\t\t\tbreak;\n\t\t\t}else if(i == p.length - 1) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "if(n == s.length) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t}else if(s[i+n >= s.length ? i+n-s.length : i+n] != p[i]) {\n\t\t\t\tn++;\n\t\t\t\tfunc(s , p , n );\n\t\t\t\tbreak;\n\t\t\t}else if(i == p.length - 1) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}", "n == s.length", "n", "s.length", "s", "s.length", "{\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t}", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "break;", "if(s[i+n >= s.length ? i+n-s.length : i+n] != p[i]) {\n\t\t\t\tn++;\n\t\t\t\tfunc(s , p , n );\n\t\t\t\tbreak;\n\t\t\t}else if(i == p.length - 1) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}", "s[i+n >= s.length ? i+n-s.length : i+n] != p[i]", "s[i+n >= s.length ? i+n-s.length : i+n]", "s", "i+n >= s.length ? i+n-s.length : i+n", "i+n >= s.length", "i+n", "i", "n", "s.length", "s", "s.length", "i+n-s.length", "i+n", "i", "n", "s.length", "s", "s.length", "i+n", "i", "n", "p[i]", "p", "i", "{\n\t\t\t\tn++;\n\t\t\t\tfunc(s , p , n );\n\t\t\t\tbreak;\n\t\t\t}", "n++", "n", "func(s , p , n )", "func", "s", "p", "n", "break;", "if(i == p.length - 1) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}", "i == p.length - 1", "i", "p.length - 1", "p.length", "p", "p.length", "1", "{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "break;", "char[] s", "s", "char[] p", "p", "int n", "n", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\t\n\t\tString text;\n\t\ttext = scan.next();\n\t\tchar[] s = text.toCharArray();\n\t\ttext = scan.next();\n\t\tchar[] p = text.toCharArray();\n\t\tfunc(s , p ,0);\n\n\t}\n\n\tstatic void func(char[] s , char[] p , int n ) {\n\t\tfor(int i = 0 ; i < s.length ; i++) {\n\t\t\tif(n == s.length) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t}else if(s[i+n >= s.length ? i+n-s.length : i+n] != p[i]) {\n\t\t\t\tn++;\n\t\t\t\tfunc(s , p , n );\n\t\t\t\tbreak;\n\t\t\t}else if(i == p.length - 1) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\t\n\t\tString text;\n\t\ttext = scan.next();\n\t\tchar[] s = text.toCharArray();\n\t\ttext = scan.next();\n\t\tchar[] p = text.toCharArray();\n\t\tfunc(s , p ,0);\n\n\t}\n\n\tstatic void func(char[] s , char[] p , int n ) {\n\t\tfor(int i = 0 ; i < s.length ; i++) {\n\t\t\tif(n == s.length) {\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t\tbreak;\n\t\t\t}else if(s[i+n >= s.length ? i+n-s.length : i+n] != p[i]) {\n\t\t\t\tn++;\n\t\t\t\tfunc(s , p , n );\n\t\t\t\tbreak;\n\t\t\t}else if(i == p.length - 1) {\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String text; text = scan.next(); char[] s = text.toCharArray(); text = scan.next(); char[] p = text.toCharArray(); func(s , p ,0); } static void func(char[] s , char[] p , int n ) { for(int i = 0 ; i < s.length ; i++) { if(n == s.length) { System.out.println("No"); break; }else if(s[i+n >= s.length ? i+n-s.length : i+n] != p[i]) { n++; func(s , p , n ); break; }else if(i == p.length - 1) { System.out.println("Yes"); break; } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 4, 18, 20, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 2, 13, 13, 17, 41, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 2, 13, 18, 13, 13, 2, 2, 13, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 40, 4, 18, 18, 13, 2, 13, 13, 18, 13, 13, 30, 0, 13, 17, 3, 40, 13, 14, 2, 13, 2, 13, 4, 18, 13, 30, 4, 18, 18, 13, 13, 17, 29, 4, 18, 18, 13, 13, 17, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 136, 11 ], [ 136, 12 ], [ 12, 13 ], [ 12, 14 ], [ 136, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 15, 21 ], [ 21, 22 ], [ 136, 23 ], [ 23, 24 ], [ 23, 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 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 25, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 25, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 50, 60 ], [ 60, 61 ], [ 61, 62 ], [ 50, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 68, 70 ], [ 64, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 76, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 71, 89 ], [ 89, 90 ], [ 90, 91 ], [ 71, 92 ], [ 93, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 96, 103 ], [ 103, 104 ], [ 103, 105 ], [ 94, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 93, 111 ], [ 111, 112 ], [ 64, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 113, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 121, 128 ], [ 25, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 0, 135 ], [ 135, 136 ], [ 135, 137 ] ]
[ "import java.util.HashMap;\nimport java.util.Map;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n new Main().solve();\n }\n\n Scanner sc = new Scanner(System.in);\n\n void solve() {\n String s = sc.nextLine();\n String p = sc.nextLine();\n String[] ring = (s + s).split(\"\");\n String[] pArr = p.split(\"\");\n for (int i = 0; i < ring.length; ++i) {\n boolean f = true;\n int cnt = 0;\n for (int j = 0; j < pArr.length && i + j < ring.length; ++j) {\n if (!ring[i + j].equals(pArr[j])) {\n f = false;\n break;\n }\n cnt++;\n }\n if (f && cnt == p.length()) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }\n}\n\n\n\n", "import java.util.HashMap;", "HashMap", "java.util", "import java.util.Map;", "Map", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n new Main().solve();\n }\n\n Scanner sc = new Scanner(System.in);\n\n void solve() {\n String s = sc.nextLine();\n String p = sc.nextLine();\n String[] ring = (s + s).split(\"\");\n String[] pArr = p.split(\"\");\n for (int i = 0; i < ring.length; ++i) {\n boolean f = true;\n int cnt = 0;\n for (int j = 0; j < pArr.length && i + j < ring.length; ++j) {\n if (!ring[i + j].equals(pArr[j])) {\n f = false;\n break;\n }\n cnt++;\n }\n if (f && cnt == p.length()) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }\n}", "Main", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] args) {\n new Main().solve();\n }", "main", "{\n new Main().solve();\n }", "new Main().solve()", "new Main().solve", "new Main()", "String[] args", "args", "void solve() {\n String s = sc.nextLine();\n String p = sc.nextLine();\n String[] ring = (s + s).split(\"\");\n String[] pArr = p.split(\"\");\n for (int i = 0; i < ring.length; ++i) {\n boolean f = true;\n int cnt = 0;\n for (int j = 0; j < pArr.length && i + j < ring.length; ++j) {\n if (!ring[i + j].equals(pArr[j])) {\n f = false;\n break;\n }\n cnt++;\n }\n if (f && cnt == p.length()) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }", "solve", "{\n String s = sc.nextLine();\n String p = sc.nextLine();\n String[] ring = (s + s).split(\"\");\n String[] pArr = p.split(\"\");\n for (int i = 0; i < ring.length; ++i) {\n boolean f = true;\n int cnt = 0;\n for (int j = 0; j < pArr.length && i + j < ring.length; ++j) {\n if (!ring[i + j].equals(pArr[j])) {\n f = false;\n break;\n }\n cnt++;\n }\n if (f && cnt == p.length()) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }", "String s = sc.nextLine();", "s", "sc.nextLine()", "sc.nextLine", "sc", "String p = sc.nextLine();", "p", "sc.nextLine()", "sc.nextLine", "sc", "String[] ring = (s + s).split(\"\");", "ring", "(s + s).split(\"\")", "(s + s).split", "(s + s)", "s", "s", "\"\"", "String[] pArr = p.split(\"\");", "pArr", "p.split(\"\")", "p.split", "p", "\"\"", "for (int i = 0; i < ring.length; ++i) {\n boolean f = true;\n int cnt = 0;\n for (int j = 0; j < pArr.length && i + j < ring.length; ++j) {\n if (!ring[i + j].equals(pArr[j])) {\n f = false;\n break;\n }\n cnt++;\n }\n if (f && cnt == p.length()) {\n System.out.println(\"Yes\");\n return;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < ring.length", "i", "ring.length", "ring", "ring.length", "++i", "++i", "i", "{\n boolean f = true;\n int cnt = 0;\n for (int j = 0; j < pArr.length && i + j < ring.length; ++j) {\n if (!ring[i + j].equals(pArr[j])) {\n f = false;\n break;\n }\n cnt++;\n }\n if (f && cnt == p.length()) {\n System.out.println(\"Yes\");\n return;\n }\n }", "{\n boolean f = true;\n int cnt = 0;\n for (int j = 0; j < pArr.length && i + j < ring.length; ++j) {\n if (!ring[i + j].equals(pArr[j])) {\n f = false;\n break;\n }\n cnt++;\n }\n if (f && cnt == p.length()) {\n System.out.println(\"Yes\");\n return;\n }\n }", "boolean f = true;", "f", "true", "int cnt = 0;", "cnt", "0", "for (int j = 0; j < pArr.length && i + j < ring.length; ++j) {\n if (!ring[i + j].equals(pArr[j])) {\n f = false;\n break;\n }\n cnt++;\n }", "int j = 0;", "int j = 0;", "j", "0", "j < pArr.length && i + j < ring.length", "j < pArr.length", "j", "pArr.length", "pArr", "pArr.length", "i + j < ring.length", "i + j", "i", "j", "ring.length", "ring", "ring.length", "++j", "++j", "j", "{\n if (!ring[i + j].equals(pArr[j])) {\n f = false;\n break;\n }\n cnt++;\n }", "{\n if (!ring[i + j].equals(pArr[j])) {\n f = false;\n break;\n }\n cnt++;\n }", "if (!ring[i + j].equals(pArr[j])) {\n f = false;\n break;\n }", "!ring[i + j].equals(pArr[j])", "ring[i + j].equals(pArr[j])", "ring[i + j].equals", "ring[i + j]", "ring", "i + j", "i", "j", "pArr[j]", "pArr", "j", "{\n f = false;\n break;\n }", "f = false", "f", "false", "break;", "cnt++", "cnt", "if (f && cnt == p.length()) {\n System.out.println(\"Yes\");\n return;\n }", "f && cnt == p.length()", "f", "cnt == p.length()", "cnt", "p.length()", "p.length", "p", "{\n System.out.println(\"Yes\");\n return;\n }", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "return;", "System.out.println(\"No\")", "System.out.println", "System.out", "System", "System.out", "\"No\"", "public class Main {\n\n public static void main(String[] args) {\n new Main().solve();\n }\n\n Scanner sc = new Scanner(System.in);\n\n void solve() {\n String s = sc.nextLine();\n String p = sc.nextLine();\n String[] ring = (s + s).split(\"\");\n String[] pArr = p.split(\"\");\n for (int i = 0; i < ring.length; ++i) {\n boolean f = true;\n int cnt = 0;\n for (int j = 0; j < pArr.length && i + j < ring.length; ++j) {\n if (!ring[i + j].equals(pArr[j])) {\n f = false;\n break;\n }\n cnt++;\n }\n if (f && cnt == p.length()) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n new Main().solve();\n }\n\n Scanner sc = new Scanner(System.in);\n\n void solve() {\n String s = sc.nextLine();\n String p = sc.nextLine();\n String[] ring = (s + s).split(\"\");\n String[] pArr = p.split(\"\");\n for (int i = 0; i < ring.length; ++i) {\n boolean f = true;\n int cnt = 0;\n for (int j = 0; j < pArr.length && i + j < ring.length; ++j) {\n if (!ring[i + j].equals(pArr[j])) {\n f = false;\n break;\n }\n cnt++;\n }\n if (f && cnt == p.length()) {\n System.out.println(\"Yes\");\n return;\n }\n }\n System.out.println(\"No\");\n }\n}", "Main" ]
import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Main { public static void main(String[] args) { new Main().solve(); } Scanner sc = new Scanner(System.in); void solve() { String s = sc.nextLine(); String p = sc.nextLine(); String[] ring = (s + s).split(""); String[] pArr = p.split(""); for (int i = 0; i < ring.length; ++i) { boolean f = true; int cnt = 0; for (int j = 0; j < pArr.length && i + j < ring.length; ++j) { if (!ring[i + j].equals(pArr[j])) { f = false; break; } cnt++; } if (f && cnt == p.length()) { System.out.println("Yes"); return; } } System.out.println("No"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 13, 14, 4, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 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 ] ]
[ "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 s = br.readLine();\n String p = br.readLine();\n s += s;\n if (s.contains(p)){\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }\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 s = br.readLine();\n String p = br.readLine();\n s += s;\n if (s.contains(p)){\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s = br.readLine();\n String p = br.readLine();\n s += s;\n if (s.contains(p)){\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s = br.readLine();\n String p = br.readLine();\n s += s;\n if (s.contains(p)){\n System.out.println(\"Yes\");\n }\n else {\n System.out.println(\"No\");\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String s = br.readLine();", "s", "br.readLine()", "br.readLine", "br", "String p = br.readLine();", "p", "br.readLine()", "br.readLine", "br", "s += s", "s", "s", "if (s.contains(p)){\n System.out.println(\"Yes\");\n }\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" ]
import java.io.*; 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(); 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, 41, 13, 41, 13, 20, 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, 4, 18, 13, 4, 18, 13, 17, 4, 18, 13, 30, 4, 18, 18, 13, 13, 17, 4, 18, 13, 17, 0, 13, 2, 4, 18, 13, 2, 4, 18, 13, 17, 4, 18, 13, 4, 18, 13, 17, 2, 4, 18, 13, 17, 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 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 13, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 26, 36 ], [ 36, 37 ], [ 37, 38 ], [ 26, 39 ], [ 40, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 52, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 40, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 69, 73 ], [ 66, 74 ], [ 74, 75 ], [ 75, 76 ], [ 65, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 77, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 81, 85 ], [ 8, 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\tpublic static void main(String [] args){\n\t\tString s,p;\n\t\tScanner sc = new Scanner(System.in);\n\t\ts = sc.nextLine();\n\t\tp = sc.nextLine();\n\t\tfor(int i = 0; i < s.length(); i++){\n\t\t\tif(p.equals(s.substring(0,p.length()))){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\ts = s.substring(s.length() - 1, s.length()) + s.substring(0,s.length() - 1);\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String [] args){\n\t\tString s,p;\n\t\tScanner sc = new Scanner(System.in);\n\t\ts = sc.nextLine();\n\t\tp = sc.nextLine();\n\t\tfor(int i = 0; i < s.length(); i++){\n\t\t\tif(p.equals(s.substring(0,p.length()))){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\ts = s.substring(s.length() - 1, s.length()) + s.substring(0,s.length() - 1);\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}\n}", "Main", "public static void main(String [] args){\n\t\tString s,p;\n\t\tScanner sc = new Scanner(System.in);\n\t\ts = sc.nextLine();\n\t\tp = sc.nextLine();\n\t\tfor(int i = 0; i < s.length(); i++){\n\t\t\tif(p.equals(s.substring(0,p.length()))){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\ts = s.substring(s.length() - 1, s.length()) + s.substring(0,s.length() - 1);\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}", "main", "{\n\t\tString s,p;\n\t\tScanner sc = new Scanner(System.in);\n\t\ts = sc.nextLine();\n\t\tp = sc.nextLine();\n\t\tfor(int i = 0; i < s.length(); i++){\n\t\t\tif(p.equals(s.substring(0,p.length()))){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\ts = s.substring(s.length() - 1, s.length()) + s.substring(0,s.length() - 1);\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}", "String s", "s", "p;", "p", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "s = sc.nextLine()", "s", "sc.nextLine()", "sc.nextLine", "sc", "p = sc.nextLine()", "p", "sc.nextLine()", "sc.nextLine", "sc", "for(int i = 0; i < s.length(); i++){\n\t\t\tif(p.equals(s.substring(0,p.length()))){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\ts = s.substring(s.length() - 1, s.length()) + s.substring(0,s.length() - 1);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n\t\t\tif(p.equals(s.substring(0,p.length()))){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\ts = s.substring(s.length() - 1, s.length()) + s.substring(0,s.length() - 1);\n\t\t}", "{\n\t\t\tif(p.equals(s.substring(0,p.length()))){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\ts = s.substring(s.length() - 1, s.length()) + s.substring(0,s.length() - 1);\n\t\t}", "if(p.equals(s.substring(0,p.length()))){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "p.equals(s.substring(0,p.length()))", "p.equals", "p", "s.substring(0,p.length())", "s.substring", "s", "0", "p.length()", "p.length", "p", "{\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "System.out.println(\"Yes\")", "System.out.println", "System.out", "System", "System.out", "\"Yes\"", "System.exit(0)", "System.exit", "System", "0", "s = s.substring(s.length() - 1, s.length()) + s.substring(0,s.length() - 1)", "s", "s.substring(s.length() - 1, s.length()) + s.substring(0,s.length() - 1)", "s.substring(s.length() - 1, s.length())", "s.substring", "s", "s.length() - 1", "s.length()", "s.length", "s", "1", "s.length()", "s.length", "s", "s.substring(0,s.length() - 1)", "s.substring", "s", "0", "s.length() - 1", "s.length()", "s.length", "s", "1", "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\tString s,p;\n\t\tScanner sc = new Scanner(System.in);\n\t\ts = sc.nextLine();\n\t\tp = sc.nextLine();\n\t\tfor(int i = 0; i < s.length(); i++){\n\t\t\tif(p.equals(s.substring(0,p.length()))){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\ts = s.substring(s.length() - 1, s.length()) + s.substring(0,s.length() - 1);\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}\n}", "public class Main{\n\tpublic static void main(String [] args){\n\t\tString s,p;\n\t\tScanner sc = new Scanner(System.in);\n\t\ts = sc.nextLine();\n\t\tp = sc.nextLine();\n\t\tfor(int i = 0; i < s.length(); i++){\n\t\t\tif(p.equals(s.substring(0,p.length()))){\n\t\t\t\tSystem.out.println(\"Yes\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\ts = s.substring(s.length() - 1, s.length()) + s.substring(0,s.length() - 1);\n\t\t}\n\t\tSystem.out.println(\"No\");\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String [] args){ String s,p; Scanner sc = new Scanner(System.in); s = sc.nextLine(); p = sc.nextLine(); for(int i = 0; i < s.length(); i++){ if(p.equals(s.substring(0,p.length()))){ System.out.println("Yes"); System.exit(0); } s = s.substring(s.length() - 1, s.length()) + s.substring(0,s.length() - 1); } System.out.println("No"); } }