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, 17, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 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, 0, 13, 4, 18, 13, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 13, 18, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 13, 18, 13, 13, 0, 13, 4, 18, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 11, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 34, 35 ], [ 23, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 23, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 23, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 23, 51 ], [ 51, 52 ], [ 51, 53 ], [ 23, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 54, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 66, 72 ], [ 72, 73 ], [ 72, 74 ], [ 66, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 75, 85 ], [ 85, 86 ], [ 86, 87 ], [ 75, 88 ], [ 89, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 66, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 104, 105 ], [ 104, 106 ], [ 99, 107 ], [ 107, 108 ], [ 108, 109 ], [ 99, 110 ], [ 111, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 66, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 122, 123 ], [ 23, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 9, 130 ], [ 130, 131 ] ]
[ "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\tString answer = \"\";\n\t\tString temp = \"\";\n\t\t\n\t\twhile(true){\n\t\t\ttemp = scan.next();\n\t\t\tif(temp.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar[] targetChar = temp.toCharArray();\n\t\t\tint targetLength = temp.length();\n\t\t\tint shuffleTimes = scan.nextInt();\n\t\t\tint shuffleBegin = 0;\n\n\t\t\tfor(int i =0; i<shuffleTimes; i++){\n\t\t\t\tshuffleBegin = scan.nextInt();\n\t\t\t\tanswer = \"\";\n\n\t\t\t\tfor(int j=0; j<(targetLength - shuffleBegin) ; j++){\n\t\t\t\t\tanswer = answer + targetChar[j + shuffleBegin];\n\t\t\t\t}\n\t\t\t\tfor(int j=0; j<shuffleBegin; j++){\n\t\t\t\t\tanswer = answer + targetChar[j];\n\t\t\t\t}\n\t\t\t\ttargetChar = answer.toCharArray();\n\t\t\t}\n\t\t\tSystem.out.println(answer);\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\tString answer = \"\";\n\t\tString temp = \"\";\n\t\t\n\t\twhile(true){\n\t\t\ttemp = scan.next();\n\t\t\tif(temp.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar[] targetChar = temp.toCharArray();\n\t\t\tint targetLength = temp.length();\n\t\t\tint shuffleTimes = scan.nextInt();\n\t\t\tint shuffleBegin = 0;\n\n\t\t\tfor(int i =0; i<shuffleTimes; i++){\n\t\t\t\tshuffleBegin = scan.nextInt();\n\t\t\t\tanswer = \"\";\n\n\t\t\t\tfor(int j=0; j<(targetLength - shuffleBegin) ; j++){\n\t\t\t\t\tanswer = answer + targetChar[j + shuffleBegin];\n\t\t\t\t}\n\t\t\t\tfor(int j=0; j<shuffleBegin; j++){\n\t\t\t\t\tanswer = answer + targetChar[j];\n\t\t\t\t}\n\t\t\t\ttargetChar = answer.toCharArray();\n\t\t\t}\n\t\t\tSystem.out.println(answer);\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\tString answer = \"\";\n\t\tString temp = \"\";\n\t\t\n\t\twhile(true){\n\t\t\ttemp = scan.next();\n\t\t\tif(temp.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar[] targetChar = temp.toCharArray();\n\t\t\tint targetLength = temp.length();\n\t\t\tint shuffleTimes = scan.nextInt();\n\t\t\tint shuffleBegin = 0;\n\n\t\t\tfor(int i =0; i<shuffleTimes; i++){\n\t\t\t\tshuffleBegin = scan.nextInt();\n\t\t\t\tanswer = \"\";\n\n\t\t\t\tfor(int j=0; j<(targetLength - shuffleBegin) ; j++){\n\t\t\t\t\tanswer = answer + targetChar[j + shuffleBegin];\n\t\t\t\t}\n\t\t\t\tfor(int j=0; j<shuffleBegin; j++){\n\t\t\t\t\tanswer = answer + targetChar[j];\n\t\t\t\t}\n\t\t\t\ttargetChar = answer.toCharArray();\n\t\t\t}\n\t\t\tSystem.out.println(answer);\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString answer = \"\";\n\t\tString temp = \"\";\n\t\t\n\t\twhile(true){\n\t\t\ttemp = scan.next();\n\t\t\tif(temp.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar[] targetChar = temp.toCharArray();\n\t\t\tint targetLength = temp.length();\n\t\t\tint shuffleTimes = scan.nextInt();\n\t\t\tint shuffleBegin = 0;\n\n\t\t\tfor(int i =0; i<shuffleTimes; i++){\n\t\t\t\tshuffleBegin = scan.nextInt();\n\t\t\t\tanswer = \"\";\n\n\t\t\t\tfor(int j=0; j<(targetLength - shuffleBegin) ; j++){\n\t\t\t\t\tanswer = answer + targetChar[j + shuffleBegin];\n\t\t\t\t}\n\t\t\t\tfor(int j=0; j<shuffleBegin; j++){\n\t\t\t\t\tanswer = answer + targetChar[j];\n\t\t\t\t}\n\t\t\t\ttargetChar = answer.toCharArray();\n\t\t\t}\n\t\t\tSystem.out.println(answer);\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String answer = \"\";", "answer", "\"\"", "String temp = \"\";", "temp", "\"\"", "while(true){\n\t\t\ttemp = scan.next();\n\t\t\tif(temp.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar[] targetChar = temp.toCharArray();\n\t\t\tint targetLength = temp.length();\n\t\t\tint shuffleTimes = scan.nextInt();\n\t\t\tint shuffleBegin = 0;\n\n\t\t\tfor(int i =0; i<shuffleTimes; i++){\n\t\t\t\tshuffleBegin = scan.nextInt();\n\t\t\t\tanswer = \"\";\n\n\t\t\t\tfor(int j=0; j<(targetLength - shuffleBegin) ; j++){\n\t\t\t\t\tanswer = answer + targetChar[j + shuffleBegin];\n\t\t\t\t}\n\t\t\t\tfor(int j=0; j<shuffleBegin; j++){\n\t\t\t\t\tanswer = answer + targetChar[j];\n\t\t\t\t}\n\t\t\t\ttargetChar = answer.toCharArray();\n\t\t\t}\n\t\t\tSystem.out.println(answer);\n\t\t}", "true", "{\n\t\t\ttemp = scan.next();\n\t\t\tif(temp.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar[] targetChar = temp.toCharArray();\n\t\t\tint targetLength = temp.length();\n\t\t\tint shuffleTimes = scan.nextInt();\n\t\t\tint shuffleBegin = 0;\n\n\t\t\tfor(int i =0; i<shuffleTimes; i++){\n\t\t\t\tshuffleBegin = scan.nextInt();\n\t\t\t\tanswer = \"\";\n\n\t\t\t\tfor(int j=0; j<(targetLength - shuffleBegin) ; j++){\n\t\t\t\t\tanswer = answer + targetChar[j + shuffleBegin];\n\t\t\t\t}\n\t\t\t\tfor(int j=0; j<shuffleBegin; j++){\n\t\t\t\t\tanswer = answer + targetChar[j];\n\t\t\t\t}\n\t\t\t\ttargetChar = answer.toCharArray();\n\t\t\t}\n\t\t\tSystem.out.println(answer);\n\t\t}", "temp = scan.next()", "temp", "scan.next()", "scan.next", "scan", "if(temp.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}", "temp.equals(\"-\")", "temp.equals", "temp", "\"-\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "char[] targetChar = temp.toCharArray();", "targetChar", "temp.toCharArray()", "temp.toCharArray", "temp", "int targetLength = temp.length();", "targetLength", "temp.length()", "temp.length", "temp", "int shuffleTimes = scan.nextInt();", "shuffleTimes", "scan.nextInt()", "scan.nextInt", "scan", "int shuffleBegin = 0;", "shuffleBegin", "0", "for(int i =0; i<shuffleTimes; i++){\n\t\t\t\tshuffleBegin = scan.nextInt();\n\t\t\t\tanswer = \"\";\n\n\t\t\t\tfor(int j=0; j<(targetLength - shuffleBegin) ; j++){\n\t\t\t\t\tanswer = answer + targetChar[j + shuffleBegin];\n\t\t\t\t}\n\t\t\t\tfor(int j=0; j<shuffleBegin; j++){\n\t\t\t\t\tanswer = answer + targetChar[j];\n\t\t\t\t}\n\t\t\t\ttargetChar = answer.toCharArray();\n\t\t\t}", "int i =0;", "int i =0;", "i", "0", "i<shuffleTimes", "i", "shuffleTimes", "i++", "i++", "i", "{\n\t\t\t\tshuffleBegin = scan.nextInt();\n\t\t\t\tanswer = \"\";\n\n\t\t\t\tfor(int j=0; j<(targetLength - shuffleBegin) ; j++){\n\t\t\t\t\tanswer = answer + targetChar[j + shuffleBegin];\n\t\t\t\t}\n\t\t\t\tfor(int j=0; j<shuffleBegin; j++){\n\t\t\t\t\tanswer = answer + targetChar[j];\n\t\t\t\t}\n\t\t\t\ttargetChar = answer.toCharArray();\n\t\t\t}", "{\n\t\t\t\tshuffleBegin = scan.nextInt();\n\t\t\t\tanswer = \"\";\n\n\t\t\t\tfor(int j=0; j<(targetLength - shuffleBegin) ; j++){\n\t\t\t\t\tanswer = answer + targetChar[j + shuffleBegin];\n\t\t\t\t}\n\t\t\t\tfor(int j=0; j<shuffleBegin; j++){\n\t\t\t\t\tanswer = answer + targetChar[j];\n\t\t\t\t}\n\t\t\t\ttargetChar = answer.toCharArray();\n\t\t\t}", "shuffleBegin = scan.nextInt()", "shuffleBegin", "scan.nextInt()", "scan.nextInt", "scan", "answer = \"\"", "answer", "\"\"", "for(int j=0; j<(targetLength - shuffleBegin) ; j++){\n\t\t\t\t\tanswer = answer + targetChar[j + shuffleBegin];\n\t\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<(targetLength - shuffleBegin)", "j", "(targetLength - shuffleBegin)", "targetLength", "shuffleBegin", "j++", "j++", "j", "{\n\t\t\t\t\tanswer = answer + targetChar[j + shuffleBegin];\n\t\t\t\t}", "{\n\t\t\t\t\tanswer = answer + targetChar[j + shuffleBegin];\n\t\t\t\t}", "answer = answer + targetChar[j + shuffleBegin]", "answer", "answer + targetChar[j + shuffleBegin]", "answer", "targetChar[j + shuffleBegin]", "targetChar", "j + shuffleBegin", "j", "shuffleBegin", "for(int j=0; j<shuffleBegin; j++){\n\t\t\t\t\tanswer = answer + targetChar[j];\n\t\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<shuffleBegin", "j", "shuffleBegin", "j++", "j++", "j", "{\n\t\t\t\t\tanswer = answer + targetChar[j];\n\t\t\t\t}", "{\n\t\t\t\t\tanswer = answer + targetChar[j];\n\t\t\t\t}", "answer = answer + targetChar[j]", "answer", "answer + targetChar[j]", "answer", "targetChar[j]", "targetChar", "j", "targetChar = answer.toCharArray()", "targetChar", "answer.toCharArray()", "answer.toCharArray", "answer", "System.out.println(answer)", "System.out.println", "System.out", "System", "System.out", "answer", "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 answer = ""; String temp = ""; while(true){ temp = scan.next(); if(temp.equals("-")){ break; } char[] targetChar = temp.toCharArray(); int targetLength = temp.length(); int shuffleTimes = scan.nextInt(); int shuffleBegin = 0; for(int i =0; i<shuffleTimes; i++){ shuffleBegin = scan.nextInt(); answer = ""; for(int j=0; j<(targetLength - shuffleBegin) ; j++){ answer = answer + targetChar[j + shuffleBegin]; } for(int j=0; j<shuffleBegin; j++){ answer = answer + targetChar[j]; } targetChar = answer.toCharArray(); } System.out.println(answer); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 41, 13, 41, 13, 42, 40, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 0, 13, 2, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 17, 13, 4, 18, 4, 18, 13, 13, 13, 0, 13, 4, 18, 13, 4, 18, 18, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 115, 8 ], [ 115, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 12, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 19, 23 ], [ 23, 24 ], [ 23, 25 ], [ 19, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 19, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 19, 37 ], [ 37, 38 ], [ 19, 39 ], [ 39, 40 ], [ 19, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 41, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 54, 55 ], [ 47, 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 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 75, 76 ], [ 68, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 80, 84 ], [ 84, 85 ], [ 85, 86 ], [ 79, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 87, 91 ], [ 47, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 92, 98 ], [ 47, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 19, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 109, 110 ], [ 110, 111 ], [ 9, 112 ], [ 112, 113 ], [ 0, 114 ], [ 114, 115 ], [ 114, 116 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tString str = input.readLine();\n\t\t\tint m;\n\t\t\tint h;\n\t\t\twhile (!str.equals(\"-\")) {\n\t\t\t\tm = Integer.parseInt(input.readLine());\n\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\th = Integer.parseInt(input.readLine());\n\t\t\t\t\tstr = (str.substring(h, str.length()) + str.substring(0, h));\n\t\t\t\t}\n\t\t\t\tanswer.append(str).append(lb);\n\t\t\t\tstr = input.readLine();\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tString str = input.readLine();\n\t\t\tint m;\n\t\t\tint h;\n\t\t\twhile (!str.equals(\"-\")) {\n\t\t\t\tm = Integer.parseInt(input.readLine());\n\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\th = Integer.parseInt(input.readLine());\n\t\t\t\t\tstr = (str.substring(h, str.length()) + str.substring(0, h));\n\t\t\t\t}\n\t\t\t\tanswer.append(str).append(lb);\n\t\t\t\tstr = input.readLine();\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tString str = input.readLine();\n\t\t\tint m;\n\t\t\tint h;\n\t\t\twhile (!str.equals(\"-\")) {\n\t\t\t\tm = Integer.parseInt(input.readLine());\n\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\th = Integer.parseInt(input.readLine());\n\t\t\t\t\tstr = (str.substring(h, str.length()) + str.substring(0, h));\n\t\t\t\t}\n\t\t\t\tanswer.append(str).append(lb);\n\t\t\t\tstr = input.readLine();\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tString str = input.readLine();\n\t\t\tint m;\n\t\t\tint h;\n\t\t\twhile (!str.equals(\"-\")) {\n\t\t\t\tm = Integer.parseInt(input.readLine());\n\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\th = Integer.parseInt(input.readLine());\n\t\t\t\t\tstr = (str.substring(h, str.length()) + str.substring(0, h));\n\t\t\t\t}\n\t\t\t\tanswer.append(str).append(lb);\n\t\t\t\tstr = input.readLine();\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "try {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tString str = input.readLine();\n\t\t\tint m;\n\t\t\tint h;\n\t\t\twhile (!str.equals(\"-\")) {\n\t\t\t\tm = Integer.parseInt(input.readLine());\n\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\th = Integer.parseInt(input.readLine());\n\t\t\t\t\tstr = (str.substring(h, str.length()) + str.substring(0, h));\n\t\t\t\t}\n\t\t\t\tanswer.append(str).append(lb);\n\t\t\t\tstr = input.readLine();\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}", "catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}", "Exception e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tString str = input.readLine();\n\t\t\tint m;\n\t\t\tint h;\n\t\t\twhile (!str.equals(\"-\")) {\n\t\t\t\tm = Integer.parseInt(input.readLine());\n\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\th = Integer.parseInt(input.readLine());\n\t\t\t\t\tstr = (str.substring(h, str.length()) + str.substring(0, h));\n\t\t\t\t}\n\t\t\t\tanswer.append(str).append(lb);\n\t\t\t\tstr = input.readLine();\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(answer.toString());\n\t\t}", "BufferedReader input = new BufferedReader(new InputStreamReader(System.in));", "input", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder answer = new StringBuilder();", "answer", "new StringBuilder()", "String lb = System.getProperty(\"line.separator\");", "lb", "System.getProperty(\"line.separator\")", "System.getProperty", "System", "\"line.separator\"", "String str = input.readLine();", "str", "input.readLine()", "input.readLine", "input", "int m;", "m", "int h;", "h", "while (!str.equals(\"-\")) {\n\t\t\t\tm = Integer.parseInt(input.readLine());\n\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\th = Integer.parseInt(input.readLine());\n\t\t\t\t\tstr = (str.substring(h, str.length()) + str.substring(0, h));\n\t\t\t\t}\n\t\t\t\tanswer.append(str).append(lb);\n\t\t\t\tstr = input.readLine();\n\t\t\t}", "!str.equals(\"-\")", "str.equals(\"-\")", "str.equals", "str", "\"-\"", "{\n\t\t\t\tm = Integer.parseInt(input.readLine());\n\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\th = Integer.parseInt(input.readLine());\n\t\t\t\t\tstr = (str.substring(h, str.length()) + str.substring(0, h));\n\t\t\t\t}\n\t\t\t\tanswer.append(str).append(lb);\n\t\t\t\tstr = input.readLine();\n\t\t\t}", "m = Integer.parseInt(input.readLine())", "m", "Integer.parseInt(input.readLine())", "Integer.parseInt", "Integer", "input.readLine()", "input.readLine", "input", "for (int i = 0; i < m; i++) {\n\t\t\t\t\th = Integer.parseInt(input.readLine());\n\t\t\t\t\tstr = (str.substring(h, str.length()) + str.substring(0, h));\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n\t\t\t\t\th = Integer.parseInt(input.readLine());\n\t\t\t\t\tstr = (str.substring(h, str.length()) + str.substring(0, h));\n\t\t\t\t}", "{\n\t\t\t\t\th = Integer.parseInt(input.readLine());\n\t\t\t\t\tstr = (str.substring(h, str.length()) + str.substring(0, h));\n\t\t\t\t}", "h = Integer.parseInt(input.readLine())", "h", "Integer.parseInt(input.readLine())", "Integer.parseInt", "Integer", "input.readLine()", "input.readLine", "input", "str = (str.substring(h, str.length()) + str.substring(0, h))", "str", "(str.substring(h, str.length()) + str.substring(0, h))", "str.substring(h, str.length())", "str.substring", "str", "h", "str.length()", "str.length", "str", "str.substring(0, h)", "str.substring", "str", "0", "h", "answer.append(str).append(lb)", "answer.append(str).append", "answer.append(str)", "answer.append", "answer", "str", "lb", "str = input.readLine()", "str", "input.readLine()", "input.readLine", "input", "System.out.print(answer.toString())", "System.out.print", "System.out", "System", "System.out", "answer.toString()", "answer.toString", "answer", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tString str = input.readLine();\n\t\t\tint m;\n\t\t\tint h;\n\t\t\twhile (!str.equals(\"-\")) {\n\t\t\t\tm = Integer.parseInt(input.readLine());\n\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\th = Integer.parseInt(input.readLine());\n\t\t\t\t\tstr = (str.substring(h, str.length()) + str.substring(0, h));\n\t\t\t\t}\n\t\t\t\tanswer.append(str).append(lb);\n\t\t\t\tstr = input.readLine();\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tString lb = System.getProperty(\"line.separator\");\n\t\t\t\n\t\t\tString str = input.readLine();\n\t\t\tint m;\n\t\t\tint h;\n\t\t\twhile (!str.equals(\"-\")) {\n\t\t\t\tm = Integer.parseInt(input.readLine());\n\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\th = Integer.parseInt(input.readLine());\n\t\t\t\t\tstr = (str.substring(h, str.length()) + str.substring(0, h));\n\t\t\t\t}\n\t\t\t\tanswer.append(str).append(lb);\n\t\t\t\tstr = input.readLine();\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { try { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); StringBuilder answer = new StringBuilder(); String lb = System.getProperty("line.separator"); String str = input.readLine(); int m; int h; while (!str.equals("-")) { m = Integer.parseInt(input.readLine()); for (int i = 0; i < m; i++) { h = Integer.parseInt(input.readLine()); str = (str.substring(h, str.length()) + str.substring(0, h)); } answer.append(str).append(lb); str = input.readLine(); } System.out.print(answer.toString()); } catch (Exception e) { e.printStackTrace(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 4, 18, 13, 17, 13, 41, 13, 20, 0, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 14, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 31, 39 ], [ 39, 40 ], [ 40, 41 ], [ 31, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 43, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 54, 58 ], [ 43, 59 ], [ 59, 60 ], [ 59, 61 ], [ 43, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 64, 68 ], [ 43, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 14, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 6, 80 ], [ 80, 81 ] ]
[ "import java.util.*;\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n while(true){\n \tString s=sc.next();\n if(s.equals(\"-\"))\n break;\n \tint m=sc.nextInt();\n \tfor(int i=0;i<m;i++){\n \t\tint h=sc.nextInt();\n \t\ts=s.concat(s.substring(0,h));\n StringBuffer sb=new StringBuffer(s);\n \tsb=sb.delete(0,h);\n s=sb.toString();\n \t}\n \tSystem.out.println(s);\n }\n \n }\n}", "import java.util.*;", "util.*", "java", "class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n while(true){\n \tString s=sc.next();\n if(s.equals(\"-\"))\n break;\n \tint m=sc.nextInt();\n \tfor(int i=0;i<m;i++){\n \t\tint h=sc.nextInt();\n \t\ts=s.concat(s.substring(0,h));\n StringBuffer sb=new StringBuffer(s);\n \tsb=sb.delete(0,h);\n s=sb.toString();\n \t}\n \tSystem.out.println(s);\n }\n \n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n while(true){\n \tString s=sc.next();\n if(s.equals(\"-\"))\n break;\n \tint m=sc.nextInt();\n \tfor(int i=0;i<m;i++){\n \t\tint h=sc.nextInt();\n \t\ts=s.concat(s.substring(0,h));\n StringBuffer sb=new StringBuffer(s);\n \tsb=sb.delete(0,h);\n s=sb.toString();\n \t}\n \tSystem.out.println(s);\n }\n \n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \n while(true){\n \tString s=sc.next();\n if(s.equals(\"-\"))\n break;\n \tint m=sc.nextInt();\n \tfor(int i=0;i<m;i++){\n \t\tint h=sc.nextInt();\n \t\ts=s.concat(s.substring(0,h));\n StringBuffer sb=new StringBuffer(s);\n \tsb=sb.delete(0,h);\n s=sb.toString();\n \t}\n \tSystem.out.println(s);\n }\n \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n \tString s=sc.next();\n if(s.equals(\"-\"))\n break;\n \tint m=sc.nextInt();\n \tfor(int i=0;i<m;i++){\n \t\tint h=sc.nextInt();\n \t\ts=s.concat(s.substring(0,h));\n StringBuffer sb=new StringBuffer(s);\n \tsb=sb.delete(0,h);\n s=sb.toString();\n \t}\n \tSystem.out.println(s);\n }", "true", "{\n \tString s=sc.next();\n if(s.equals(\"-\"))\n break;\n \tint m=sc.nextInt();\n \tfor(int i=0;i<m;i++){\n \t\tint h=sc.nextInt();\n \t\ts=s.concat(s.substring(0,h));\n StringBuffer sb=new StringBuffer(s);\n \tsb=sb.delete(0,h);\n s=sb.toString();\n \t}\n \tSystem.out.println(s);\n }", "String s=sc.next();", "s", "sc.next()", "sc.next", "sc", "if(s.equals(\"-\"))\n break;", "s.equals(\"-\")", "s.equals", "s", "\"-\"", "break;", "int m=sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0;i<m;i++){\n \t\tint h=sc.nextInt();\n \t\ts=s.concat(s.substring(0,h));\n StringBuffer sb=new StringBuffer(s);\n \tsb=sb.delete(0,h);\n s=sb.toString();\n \t}", "int i=0;", "int i=0;", "i", "0", "i<m", "i", "m", "i++", "i++", "i", "{\n \t\tint h=sc.nextInt();\n \t\ts=s.concat(s.substring(0,h));\n StringBuffer sb=new StringBuffer(s);\n \tsb=sb.delete(0,h);\n s=sb.toString();\n \t}", "{\n \t\tint h=sc.nextInt();\n \t\ts=s.concat(s.substring(0,h));\n StringBuffer sb=new StringBuffer(s);\n \tsb=sb.delete(0,h);\n s=sb.toString();\n \t}", "int h=sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "s=s.concat(s.substring(0,h))", "s", "s.concat(s.substring(0,h))", "s.concat", "s", "s.substring(0,h)", "s.substring", "s", "0", "h", "StringBuffer sb=new StringBuffer(s);", "sb", "new StringBuffer(s)", "sb=sb.delete(0,h)", "sb", "sb.delete(0,h)", "sb.delete", "sb", "0", "h", "s=sb.toString()", "s", "sb.toString()", "sb.toString", "sb", "System.out.println(s)", "System.out.println", "System.out", "System", "System.out", "s", "String[] args", "args" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(true){ String s=sc.next(); if(s.equals("-")) break; int m=sc.nextInt(); for(int i=0;i<m;i++){ int h=sc.nextInt(); s=s.concat(s.substring(0,h)); StringBuffer sb=new StringBuffer(s); sb=sb.delete(0,h); s=sb.toString(); } System.out.println(s); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 13, 2, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 77, 5 ], [ 77, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 14, 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 ], [ 47, 48 ], [ 48, 49 ], [ 44, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 53, 57 ], [ 57, 58 ], [ 58, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 60, 64 ], [ 14, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 8, 71 ], [ 71, 72 ], [ 72, 73 ], [ 6, 74 ], [ 74, 75 ], [ 0, 76 ], [ 76, 77 ], [ 76, 78 ] ]
[ "import java.util.*;\n \npublic class Main {\n\t\n public static void main( String args[] ) {\n Scanner scan\t= new Scanner( System.in );\n\n\t\twhile( true ) {\n\t\t\t// 文字列入力\n\t\t\tString\tn\t\t= scan.next();\n\t\t\tif ( n.equals(\"-\") ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// 処理\n\t\t\tint\tm = scan.nextInt();\n\t\t\tfor( int i = 0; i < m; i++ ) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tn = n.substring( h, n.length() ) + n.substring( 0, h );\n\n\t\t\t}\n\n\t\t\t// 出力\n\t\t\tSystem.out.println( n );\n\t\t}\n\t\t\n\t\tscan.close();\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\t\n public static void main( String args[] ) {\n Scanner scan\t= new Scanner( System.in );\n\n\t\twhile( true ) {\n\t\t\t// 文字列入力\n\t\t\tString\tn\t\t= scan.next();\n\t\t\tif ( n.equals(\"-\") ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// 処理\n\t\t\tint\tm = scan.nextInt();\n\t\t\tfor( int i = 0; i < m; i++ ) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tn = n.substring( h, n.length() ) + n.substring( 0, h );\n\n\t\t\t}\n\n\t\t\t// 出力\n\t\t\tSystem.out.println( n );\n\t\t}\n\t\t\n\t\tscan.close();\n\t}\n}", "Main", "public static void main( String args[] ) {\n Scanner scan\t= new Scanner( System.in );\n\n\t\twhile( true ) {\n\t\t\t// 文字列入力\n\t\t\tString\tn\t\t= scan.next();\n\t\t\tif ( n.equals(\"-\") ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// 処理\n\t\t\tint\tm = scan.nextInt();\n\t\t\tfor( int i = 0; i < m; i++ ) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tn = n.substring( h, n.length() ) + n.substring( 0, h );\n\n\t\t\t}\n\n\t\t\t// 出力\n\t\t\tSystem.out.println( n );\n\t\t}\n\t\t\n\t\tscan.close();\n\t}", "main", "{\n Scanner scan\t= new Scanner( System.in );\n\n\t\twhile( true ) {\n\t\t\t// 文字列入力\n\t\t\tString\tn\t\t= scan.next();\n\t\t\tif ( n.equals(\"-\") ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// 処理\n\t\t\tint\tm = scan.nextInt();\n\t\t\tfor( int i = 0; i < m; i++ ) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tn = n.substring( h, n.length() ) + n.substring( 0, h );\n\n\t\t\t}\n\n\t\t\t// 出力\n\t\t\tSystem.out.println( n );\n\t\t}\n\t\t\n\t\tscan.close();\n\t}", "Scanner scan\t= new Scanner( System.in );", "scan", "new Scanner( System.in )", "while( true ) {\n\t\t\t// 文字列入力\n\t\t\tString\tn\t\t= scan.next();\n\t\t\tif ( n.equals(\"-\") ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// 処理\n\t\t\tint\tm = scan.nextInt();\n\t\t\tfor( int i = 0; i < m; i++ ) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tn = n.substring( h, n.length() ) + n.substring( 0, h );\n\n\t\t\t}\n\n\t\t\t// 出力\n\t\t\tSystem.out.println( n );\n\t\t}", "true", "{\n\t\t\t// 文字列入力\n\t\t\tString\tn\t\t= scan.next();\n\t\t\tif ( n.equals(\"-\") ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// 処理\n\t\t\tint\tm = scan.nextInt();\n\t\t\tfor( int i = 0; i < m; i++ ) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tn = n.substring( h, n.length() ) + n.substring( 0, h );\n\n\t\t\t}\n\n\t\t\t// 出力\n\t\t\tSystem.out.println( n );\n\t\t}", "String\tn\t\t= scan.next();", "n", "scan.next()", "scan.next", "scan", "if ( n.equals(\"-\") ) {\n\t\t\t\tbreak;\n\t\t\t}", "n.equals(\"-\")", "n.equals", "n", "\"-\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int\tm = scan.nextInt();", "m", "scan.nextInt()", "scan.nextInt", "scan", "for( int i = 0; i < m; i++ ) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tn = n.substring( h, n.length() ) + n.substring( 0, h );\n\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tn = n.substring( h, n.length() ) + n.substring( 0, h );\n\n\t\t\t}", "{\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tn = n.substring( h, n.length() ) + n.substring( 0, h );\n\n\t\t\t}", "int h = scan.nextInt();", "h", "scan.nextInt()", "scan.nextInt", "scan", "n = n.substring( h, n.length() ) + n.substring( 0, h )", "n", "n.substring( h, n.length() ) + n.substring( 0, h )", "n.substring( h, n.length() )", "n.substring", "n", "h", "n.length()", "n.length", "n", "n.substring( 0, h )", "n.substring", "n", "0", "h", "System.out.println( n )", "System.out.println", "System.out", "System", "System.out", "n", "scan.close()", "scan.close", "scan", "String args[]", "args", "public class Main {\n\t\n public static void main( String args[] ) {\n Scanner scan\t= new Scanner( System.in );\n\n\t\twhile( true ) {\n\t\t\t// 文字列入力\n\t\t\tString\tn\t\t= scan.next();\n\t\t\tif ( n.equals(\"-\") ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// 処理\n\t\t\tint\tm = scan.nextInt();\n\t\t\tfor( int i = 0; i < m; i++ ) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tn = n.substring( h, n.length() ) + n.substring( 0, h );\n\n\t\t\t}\n\n\t\t\t// 出力\n\t\t\tSystem.out.println( n );\n\t\t}\n\t\t\n\t\tscan.close();\n\t}\n}", "public class Main {\n\t\n public static void main( String args[] ) {\n Scanner scan\t= new Scanner( System.in );\n\n\t\twhile( true ) {\n\t\t\t// 文字列入力\n\t\t\tString\tn\t\t= scan.next();\n\t\t\tif ( n.equals(\"-\") ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// 処理\n\t\t\tint\tm = scan.nextInt();\n\t\t\tfor( int i = 0; i < m; i++ ) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tn = n.substring( h, n.length() ) + n.substring( 0, h );\n\n\t\t\t}\n\n\t\t\t// 出力\n\t\t\tSystem.out.println( n );\n\t\t}\n\t\t\n\t\tscan.close();\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main( String args[] ) { Scanner scan = new Scanner( System.in ); while( true ) { // 文字列入力 String n = scan.next(); if ( n.equals("-") ) { break; } // 処理 int m = scan.nextInt(); for( int i = 0; i < m; i++ ) { int h = scan.nextInt(); n = n.substring( h, n.length() ) + n.substring( 0, h ); } // 出力 System.out.println( n ); } scan.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 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, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 2, 2, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 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 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 14, 36 ], [ 36, 37 ], [ 36, 38 ], [ 14, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 39, 47 ], [ 47, 48 ], [ 48, 49 ], [ 39, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 14, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 57, 67 ], [ 67, 68 ], [ 68, 69 ], [ 57, 70 ], [ 71, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 14, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 8, 91 ], [ 91, 92 ], [ 92, 93 ], [ 6, 94 ], [ 94, 95 ], [ 140, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 99, 109 ], [ 109, 110 ], [ 110, 111 ], [ 99, 112 ], [ 113, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 113, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 129, 130 ], [ 129, 131 ], [ 98, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 96, 137 ], [ 137, 138 ], [ 0, 139 ], [ 139, 140 ], [ 139, 141 ] ]
[ "import java.util.*;\npublic class Main{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n while(true)\n {\n String s = sc.next();\n if(s.equals(\"-\"))break;\n\n char[] chars = s.toCharArray();\n int n = sc.nextInt();\n int sum = 0;\n for (int i = 0; i < n; i++) {\n sum += sc.nextInt();\n }\n for (int i = 0; i < chars.length; i++) {\n System.out.print(chars[(sum+i)%chars.length]);\n }\n System.out.println();\n }\n\n sc.close();\n }\n \n public static void printary(int[] a)\n {\n for ( int i = 0; i < a.length; i++) {\n if(i>0) System.out.print(\" \");\n System.out.print(a[i]);\n }\n System.out.println();\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 while(true)\n {\n String s = sc.next();\n if(s.equals(\"-\"))break;\n\n char[] chars = s.toCharArray();\n int n = sc.nextInt();\n int sum = 0;\n for (int i = 0; i < n; i++) {\n sum += sc.nextInt();\n }\n for (int i = 0; i < chars.length; i++) {\n System.out.print(chars[(sum+i)%chars.length]);\n }\n System.out.println();\n }\n\n sc.close();\n }\n \n public static void printary(int[] a)\n {\n for ( int i = 0; i < a.length; i++) {\n if(i>0) System.out.print(\" \");\n System.out.print(a[i]);\n }\n System.out.println();\n }\n}", "Main", "public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n while(true)\n {\n String s = sc.next();\n if(s.equals(\"-\"))break;\n\n char[] chars = s.toCharArray();\n int n = sc.nextInt();\n int sum = 0;\n for (int i = 0; i < n; i++) {\n sum += sc.nextInt();\n }\n for (int i = 0; i < chars.length; i++) {\n System.out.print(chars[(sum+i)%chars.length]);\n }\n System.out.println();\n }\n\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while(true)\n {\n String s = sc.next();\n if(s.equals(\"-\"))break;\n\n char[] chars = s.toCharArray();\n int n = sc.nextInt();\n int sum = 0;\n for (int i = 0; i < n; i++) {\n sum += sc.nextInt();\n }\n for (int i = 0; i < chars.length; i++) {\n System.out.print(chars[(sum+i)%chars.length]);\n }\n System.out.println();\n }\n\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true)\n {\n String s = sc.next();\n if(s.equals(\"-\"))break;\n\n char[] chars = s.toCharArray();\n int n = sc.nextInt();\n int sum = 0;\n for (int i = 0; i < n; i++) {\n sum += sc.nextInt();\n }\n for (int i = 0; i < chars.length; i++) {\n System.out.print(chars[(sum+i)%chars.length]);\n }\n System.out.println();\n }", "true", "{\n String s = sc.next();\n if(s.equals(\"-\"))break;\n\n char[] chars = s.toCharArray();\n int n = sc.nextInt();\n int sum = 0;\n for (int i = 0; i < n; i++) {\n sum += sc.nextInt();\n }\n for (int i = 0; i < chars.length; i++) {\n System.out.print(chars[(sum+i)%chars.length]);\n }\n System.out.println();\n }", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "if(s.equals(\"-\"))break;", "s.equals(\"-\")", "s.equals", "s", "\"-\"", "break;", "char[] chars = s.toCharArray();", "chars", "s.toCharArray()", "s.toCharArray", "s", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int sum = 0;", "sum", "0", "for (int i = 0; i < n; i++) {\n sum += sc.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n sum += sc.nextInt();\n }", "{\n sum += sc.nextInt();\n }", "sum += sc.nextInt()", "sum", "sc.nextInt()", "sc.nextInt", "sc", "for (int i = 0; i < chars.length; i++) {\n System.out.print(chars[(sum+i)%chars.length]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < chars.length", "i", "chars.length", "chars", "chars.length", "i++", "i++", "i", "{\n System.out.print(chars[(sum+i)%chars.length]);\n }", "{\n System.out.print(chars[(sum+i)%chars.length]);\n }", "System.out.print(chars[(sum+i)%chars.length])", "System.out.print", "System.out", "System", "System.out", "chars[(sum+i)%chars.length]", "chars", "(sum+i)%chars.length", "(sum+i)", "sum", "i", "chars.length", "chars", "chars.length", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "sc.close()", "sc.close", "sc", "String[] args", "args", "public static void printary(int[] a)\n {\n for ( int i = 0; i < a.length; i++) {\n if(i>0) System.out.print(\" \");\n System.out.print(a[i]);\n }\n System.out.println();\n }", "printary", "{\n for ( int i = 0; i < a.length; i++) {\n if(i>0) System.out.print(\" \");\n System.out.print(a[i]);\n }\n System.out.println();\n }", "for ( int i = 0; i < a.length; i++) {\n if(i>0) System.out.print(\" \");\n System.out.print(a[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "{\n if(i>0) System.out.print(\" \");\n System.out.print(a[i]);\n }", "{\n if(i>0) System.out.print(\" \");\n System.out.print(a[i]);\n }", "if(i>0) System.out.print(\" \");", "i>0", "i", "0", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.print(a[i])", "System.out.print", "System.out", "System", "System.out", "a[i]", "a", "i", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int[] a", "a", "public class Main{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n while(true)\n {\n String s = sc.next();\n if(s.equals(\"-\"))break;\n\n char[] chars = s.toCharArray();\n int n = sc.nextInt();\n int sum = 0;\n for (int i = 0; i < n; i++) {\n sum += sc.nextInt();\n }\n for (int i = 0; i < chars.length; i++) {\n System.out.print(chars[(sum+i)%chars.length]);\n }\n System.out.println();\n }\n\n sc.close();\n }\n \n public static void printary(int[] a)\n {\n for ( int i = 0; i < a.length; i++) {\n if(i>0) System.out.print(\" \");\n System.out.print(a[i]);\n }\n System.out.println();\n }\n}", "public class Main{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n while(true)\n {\n String s = sc.next();\n if(s.equals(\"-\"))break;\n\n char[] chars = s.toCharArray();\n int n = sc.nextInt();\n int sum = 0;\n for (int i = 0; i < n; i++) {\n sum += sc.nextInt();\n }\n for (int i = 0; i < chars.length; i++) {\n System.out.print(chars[(sum+i)%chars.length]);\n }\n System.out.println();\n }\n\n sc.close();\n }\n \n public static void printary(int[] a)\n {\n for ( int i = 0; i < a.length; i++) {\n if(i>0) System.out.print(\" \");\n System.out.print(a[i]);\n }\n System.out.println();\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(true) { String s = sc.next(); if(s.equals("-"))break; char[] chars = s.toCharArray(); int n = sc.nextInt(); int sum = 0; for (int i = 0; i < n; i++) { sum += sc.nextInt(); } for (int i = 0; i < chars.length; i++) { System.out.print(chars[(sum+i)%chars.length]); } System.out.println(); } sc.close(); } public static void printary(int[] a) { for ( int i = 0; i < a.length; i++) { if(i>0) System.out.print(" "); System.out.print(a[i]); } System.out.println(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 20, 41, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 4, 18, 13, 17, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 83, 5 ], [ 83, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 22, 27 ], [ 27, 28 ], [ 16, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 16, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 46, 52 ], [ 52, 53 ], [ 52, 54 ], [ 46, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 57, 61 ], [ 46, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 66, 70 ], [ 46, 71 ], [ 71, 72 ], [ 71, 73 ], [ 16, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 6, 80 ], [ 80, 81 ], [ 0, 82 ], [ 82, 83 ], [ 82, 84 ] ]
[ "import java.util.Scanner;\n\n//????????????\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t//???????????????\n\n\n\t\twhile (sc.hasNext()) {\n\t\t\tString line1 = sc.next();\n\t\t\tif(line1.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint count = sc.nextInt();\n\n\t\t\tfor(int i = 0; i < count;i++) {\n\t\t\t\tint num = sc.nextInt();\n\t\t\t\t//StringBuilder???????????§???????????????\n\t\t\t\tStringBuilder sb = new StringBuilder(line1);\n\n\t\t\t\t//?????????????????????????????????????????????\n\t\t\t\t//????????????????????????\n\t\t\t\tString cutLine = sb.substring(0 , num);\n\t\t\t\tline1 = sb.delete(0, num).toString();\n\t\t\t\tline1 += cutLine;\n\t\t\t}\n\n\t\t\tSystem.out.println(line1);\n\n\n\n\t\t}\n\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t//???????????????\n\n\n\t\twhile (sc.hasNext()) {\n\t\t\tString line1 = sc.next();\n\t\t\tif(line1.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint count = sc.nextInt();\n\n\t\t\tfor(int i = 0; i < count;i++) {\n\t\t\t\tint num = sc.nextInt();\n\t\t\t\t//StringBuilder???????????§???????????????\n\t\t\t\tStringBuilder sb = new StringBuilder(line1);\n\n\t\t\t\t//?????????????????????????????????????????????\n\t\t\t\t//????????????????????????\n\t\t\t\tString cutLine = sb.substring(0 , num);\n\t\t\t\tline1 = sb.delete(0, num).toString();\n\t\t\t\tline1 += cutLine;\n\t\t\t}\n\n\t\t\tSystem.out.println(line1);\n\n\n\n\t\t}\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t//???????????????\n\n\n\t\twhile (sc.hasNext()) {\n\t\t\tString line1 = sc.next();\n\t\t\tif(line1.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint count = sc.nextInt();\n\n\t\t\tfor(int i = 0; i < count;i++) {\n\t\t\t\tint num = sc.nextInt();\n\t\t\t\t//StringBuilder???????????§???????????????\n\t\t\t\tStringBuilder sb = new StringBuilder(line1);\n\n\t\t\t\t//?????????????????????????????????????????????\n\t\t\t\t//????????????????????????\n\t\t\t\tString cutLine = sb.substring(0 , num);\n\t\t\t\tline1 = sb.delete(0, num).toString();\n\t\t\t\tline1 += cutLine;\n\t\t\t}\n\n\t\t\tSystem.out.println(line1);\n\n\n\n\t\t}\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t//???????????????\n\n\n\t\twhile (sc.hasNext()) {\n\t\t\tString line1 = sc.next();\n\t\t\tif(line1.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint count = sc.nextInt();\n\n\t\t\tfor(int i = 0; i < count;i++) {\n\t\t\t\tint num = sc.nextInt();\n\t\t\t\t//StringBuilder???????????§???????????????\n\t\t\t\tStringBuilder sb = new StringBuilder(line1);\n\n\t\t\t\t//?????????????????????????????????????????????\n\t\t\t\t//????????????????????????\n\t\t\t\tString cutLine = sb.substring(0 , num);\n\t\t\t\tline1 = sb.delete(0, num).toString();\n\t\t\t\tline1 += cutLine;\n\t\t\t}\n\n\t\t\tSystem.out.println(line1);\n\n\n\n\t\t}\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (sc.hasNext()) {\n\t\t\tString line1 = sc.next();\n\t\t\tif(line1.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint count = sc.nextInt();\n\n\t\t\tfor(int i = 0; i < count;i++) {\n\t\t\t\tint num = sc.nextInt();\n\t\t\t\t//StringBuilder???????????§???????????????\n\t\t\t\tStringBuilder sb = new StringBuilder(line1);\n\n\t\t\t\t//?????????????????????????????????????????????\n\t\t\t\t//????????????????????????\n\t\t\t\tString cutLine = sb.substring(0 , num);\n\t\t\t\tline1 = sb.delete(0, num).toString();\n\t\t\t\tline1 += cutLine;\n\t\t\t}\n\n\t\t\tSystem.out.println(line1);\n\n\n\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\tString line1 = sc.next();\n\t\t\tif(line1.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint count = sc.nextInt();\n\n\t\t\tfor(int i = 0; i < count;i++) {\n\t\t\t\tint num = sc.nextInt();\n\t\t\t\t//StringBuilder???????????§???????????????\n\t\t\t\tStringBuilder sb = new StringBuilder(line1);\n\n\t\t\t\t//?????????????????????????????????????????????\n\t\t\t\t//????????????????????????\n\t\t\t\tString cutLine = sb.substring(0 , num);\n\t\t\t\tline1 = sb.delete(0, num).toString();\n\t\t\t\tline1 += cutLine;\n\t\t\t}\n\n\t\t\tSystem.out.println(line1);\n\n\n\n\t\t}", "String line1 = sc.next();", "line1", "sc.next()", "sc.next", "sc", "if(line1.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}", "line1.equals(\"-\")", "line1.equals", "line1", "\"-\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int count = sc.nextInt();", "count", "sc.nextInt()", "sc.nextInt", "sc", "for(int i = 0; i < count;i++) {\n\t\t\t\tint num = sc.nextInt();\n\t\t\t\t//StringBuilder???????????§???????????????\n\t\t\t\tStringBuilder sb = new StringBuilder(line1);\n\n\t\t\t\t//?????????????????????????????????????????????\n\t\t\t\t//????????????????????????\n\t\t\t\tString cutLine = sb.substring(0 , num);\n\t\t\t\tline1 = sb.delete(0, num).toString();\n\t\t\t\tline1 += cutLine;\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < count", "i", "count", "i++", "i++", "i", "{\n\t\t\t\tint num = sc.nextInt();\n\t\t\t\t//StringBuilder???????????§???????????????\n\t\t\t\tStringBuilder sb = new StringBuilder(line1);\n\n\t\t\t\t//?????????????????????????????????????????????\n\t\t\t\t//????????????????????????\n\t\t\t\tString cutLine = sb.substring(0 , num);\n\t\t\t\tline1 = sb.delete(0, num).toString();\n\t\t\t\tline1 += cutLine;\n\t\t\t}", "{\n\t\t\t\tint num = sc.nextInt();\n\t\t\t\t//StringBuilder???????????§???????????????\n\t\t\t\tStringBuilder sb = new StringBuilder(line1);\n\n\t\t\t\t//?????????????????????????????????????????????\n\t\t\t\t//????????????????????????\n\t\t\t\tString cutLine = sb.substring(0 , num);\n\t\t\t\tline1 = sb.delete(0, num).toString();\n\t\t\t\tline1 += cutLine;\n\t\t\t}", "int num = sc.nextInt();", "num", "sc.nextInt()", "sc.nextInt", "sc", "StringBuilder sb = new StringBuilder(line1);", "sb", "new StringBuilder(line1)", "String cutLine = sb.substring(0 , num);", "cutLine", "sb.substring(0 , num)", "sb.substring", "sb", "0", "num", "line1 = sb.delete(0, num).toString()", "line1", "sb.delete(0, num).toString()", "sb.delete(0, num).toString", "sb.delete(0, num)", "sb.delete", "sb", "0", "num", "line1 += cutLine", "line1", "cutLine", "System.out.println(line1)", "System.out.println", "System.out", "System", "System.out", "line1", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t//???????????????\n\n\n\t\twhile (sc.hasNext()) {\n\t\t\tString line1 = sc.next();\n\t\t\tif(line1.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint count = sc.nextInt();\n\n\t\t\tfor(int i = 0; i < count;i++) {\n\t\t\t\tint num = sc.nextInt();\n\t\t\t\t//StringBuilder???????????§???????????????\n\t\t\t\tStringBuilder sb = new StringBuilder(line1);\n\n\t\t\t\t//?????????????????????????????????????????????\n\t\t\t\t//????????????????????????\n\t\t\t\tString cutLine = sb.substring(0 , num);\n\t\t\t\tline1 = sb.delete(0, num).toString();\n\t\t\t\tline1 += cutLine;\n\t\t\t}\n\n\t\t\tSystem.out.println(line1);\n\n\n\n\t\t}\n\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t//???????????????\n\n\n\t\twhile (sc.hasNext()) {\n\t\t\tString line1 = sc.next();\n\t\t\tif(line1.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint count = sc.nextInt();\n\n\t\t\tfor(int i = 0; i < count;i++) {\n\t\t\t\tint num = sc.nextInt();\n\t\t\t\t//StringBuilder???????????§???????????????\n\t\t\t\tStringBuilder sb = new StringBuilder(line1);\n\n\t\t\t\t//?????????????????????????????????????????????\n\t\t\t\t//????????????????????????\n\t\t\t\tString cutLine = sb.substring(0 , num);\n\t\t\t\tline1 = sb.delete(0, num).toString();\n\t\t\t\tline1 += cutLine;\n\t\t\t}\n\n\t\t\tSystem.out.println(line1);\n\n\n\n\t\t}\n\n\t}\n}", "Main" ]
import java.util.Scanner; //???????????? public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); //??????????????? while (sc.hasNext()) { String line1 = sc.next(); if(line1.equals("-")) { break; } int count = sc.nextInt(); for(int i = 0; i < count;i++) { int num = sc.nextInt(); //StringBuilder???????????§??????????????? StringBuilder sb = new StringBuilder(line1); //????????????????????????????????????????????? //???????????????????????? String cutLine = sb.substring(0 , num); line1 = sb.delete(0, num).toString(); line1 += cutLine; } System.out.println(line1); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 17, 13, 3, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 13, 2, 4, 18, 13, 13, 4, 18, 13, 17, 13, 4, 18, 13, 4, 13, 13, 12, 13, 30, 4, 18, 20, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 4, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 14, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 31, 39 ], [ 39, 40 ], [ 40, 41 ], [ 31, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 43, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 51, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 56, 60 ], [ 14, 61 ], [ 61, 62 ], [ 62, 63 ], [ 14, 64 ], [ 64, 65 ], [ 64, 66 ], [ 4, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 67, 73 ], [ 73, 74 ], [ 4, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 75, 84 ], [ 84, 85 ], [ 4, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 86, 95 ], [ 95, 96 ], [ 4, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ] ]
[ "import java.util.Scanner;\n \nclass Main {\n Scanner sc = new Scanner(System.in);\n \n public void run() {\n while(true){\n \n String s=sc.nextLine();\n if(\"-\".equals(s))break;\n int count=sc.nextInt();\n for(int i=0;i<count;i++){\n int index=sc.nextInt();\n s=s.substring(index)+s.substring(0,index);\n }sc.nextLine();\n ln(s);\n }\n }\n \n public static void main(String[] args) {\n new Main().run();\n }\n \n public static void pr(Object o) {\n System.out.print(o);\n }\n \n public static void ln(Object o) {\n System.out.println(o);\n }\n \n public static void ln() {\n System.out.println();\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n Scanner sc = new Scanner(System.in);\n \n public void run() {\n while(true){\n \n String s=sc.nextLine();\n if(\"-\".equals(s))break;\n int count=sc.nextInt();\n for(int i=0;i<count;i++){\n int index=sc.nextInt();\n s=s.substring(index)+s.substring(0,index);\n }sc.nextLine();\n ln(s);\n }\n }\n \n public static void main(String[] args) {\n new Main().run();\n }\n \n public static void pr(Object o) {\n System.out.print(o);\n }\n \n public static void ln(Object o) {\n System.out.println(o);\n }\n \n public static void ln() {\n System.out.println();\n }\n}", "Main", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public void run() {\n while(true){\n \n String s=sc.nextLine();\n if(\"-\".equals(s))break;\n int count=sc.nextInt();\n for(int i=0;i<count;i++){\n int index=sc.nextInt();\n s=s.substring(index)+s.substring(0,index);\n }sc.nextLine();\n ln(s);\n }\n }", "run", "{\n while(true){\n \n String s=sc.nextLine();\n if(\"-\".equals(s))break;\n int count=sc.nextInt();\n for(int i=0;i<count;i++){\n int index=sc.nextInt();\n s=s.substring(index)+s.substring(0,index);\n }sc.nextLine();\n ln(s);\n }\n }", "while(true){\n \n String s=sc.nextLine();\n if(\"-\".equals(s))break;\n int count=sc.nextInt();\n for(int i=0;i<count;i++){\n int index=sc.nextInt();\n s=s.substring(index)+s.substring(0,index);\n }sc.nextLine();\n ln(s);\n }", "true", "{\n \n String s=sc.nextLine();\n if(\"-\".equals(s))break;\n int count=sc.nextInt();\n for(int i=0;i<count;i++){\n int index=sc.nextInt();\n s=s.substring(index)+s.substring(0,index);\n }sc.nextLine();\n ln(s);\n }", "String s=sc.nextLine();", "s", "sc.nextLine()", "sc.nextLine", "sc", "if(\"-\".equals(s))break;", "\"-\".equals(s)", "\"-\".equals", "\"-\"", "s", "break;", "int count=sc.nextInt();", "count", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0;i<count;i++){\n int index=sc.nextInt();\n s=s.substring(index)+s.substring(0,index);\n }", "int i=0;", "int i=0;", "i", "0", "i<count", "i", "count", "i++", "i++", "i", "{\n int index=sc.nextInt();\n s=s.substring(index)+s.substring(0,index);\n }", "{\n int index=sc.nextInt();\n s=s.substring(index)+s.substring(0,index);\n }", "int index=sc.nextInt();", "index", "sc.nextInt()", "sc.nextInt", "sc", "s=s.substring(index)+s.substring(0,index)", "s", "s.substring(index)+s.substring(0,index)", "s.substring(index)", "s.substring", "s", "index", "s.substring(0,index)", "s.substring", "s", "0", "index", "sc.nextLine()", "sc.nextLine", "sc", "ln(s)", "ln", "s", "public static void main(String[] args) {\n new Main().run();\n }", "main", "{\n new Main().run();\n }", "new Main().run()", "new Main().run", "new Main()", "String[] args", "args", "public static void pr(Object o) {\n System.out.print(o);\n }", "pr", "{\n System.out.print(o);\n }", "System.out.print(o)", "System.out.print", "System.out", "System", "System.out", "o", "Object o", "o", "public static void ln(Object o) {\n System.out.println(o);\n }", "ln", "{\n System.out.println(o);\n }", "System.out.println(o)", "System.out.println", "System.out", "System", "System.out", "o", "Object o", "o", "public static void ln() {\n System.out.println();\n }", "ln", "{\n System.out.println();\n }", "System.out.println()", "System.out.println", "System.out", "System", "System.out" ]
import java.util.Scanner; class Main { Scanner sc = new Scanner(System.in); public void run() { while(true){ String s=sc.nextLine(); if("-".equals(s))break; int count=sc.nextInt(); for(int i=0;i<count;i++){ int index=sc.nextInt(); s=s.substring(index)+s.substring(0,index); }sc.nextLine(); ln(s); } } public static void main(String[] args) { new Main().run(); } public static void pr(Object o) { System.out.print(o); } public static void ln(Object o) { System.out.println(o); } public static void ln() { System.out.println(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 40, 17, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 4, 18, 13, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 14, 4, 18, 17, 13, 30, 3, 14, 4, 18, 4, 18, 13, 13, 30, 14, 2, 4, 18, 13, 2, 13, 17, 30, 0, 13, 2, 2, 13, 4, 18, 13, 13, 17, 9, 30, 41, 13, 4, 18, 13, 13, 0, 13, 4, 13, 13, 13, 30, 0, 13, 13, 0, 13, 4, 18, 13, 14, 2, 4, 18, 13, 13, 30, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 17, 13, 4, 18, 13, 17, 13, 4, 18, 13, 13, 29, 4, 18, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 161, 11 ], [ 161, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 19, 22 ], [ 22, 23 ], [ 15, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 28, 29 ], [ 28, 30 ], [ 24, 31 ], [ 31, 32 ], [ 31, 33 ], [ 24, 34 ], [ 34, 35 ], [ 34, 36 ], [ 24, 37 ], [ 37, 38 ], [ 37, 39 ], [ 24, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 24, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 47, 53 ], [ 46, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 55, 60 ], [ 60, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 62, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 71, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 82, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 82, 88 ], [ 78, 89 ], [ 70, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 90, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 99, 102 ], [ 62, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 54, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 113, 117 ], [ 112, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 24, 125 ], [ 125, 126 ], [ 126, 127 ], [ 12, 128 ], [ 128, 129 ], [ 161, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 139, 140 ], [ 138, 141 ], [ 138, 142 ], [ 132, 143 ], [ 143, 144 ], [ 144, 145 ], [ 143, 146 ], [ 143, 147 ], [ 132, 148 ], [ 148, 149 ], [ 149, 150 ], [ 148, 151 ], [ 132, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 130, 156 ], [ 156, 157 ], [ 130, 158 ], [ 158, 159 ], [ 0, 160 ], [ 160, 161 ], [ 160, 162 ] ]
[ "import java.io.InputStreamReader;\nimport java.io.LineNumberReader;\nimport java.util.regex.Pattern;\n\n/**\n * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_9_A\n * \n * @author eitatsuro\n * \n */\npublic class Main {\n \n public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n String pile = null;\n long lineNum = 0;\n long resultShowLine = 0;\n \n // ??????????????????\n Pattern p = Pattern.compile(\"^[0-9]*$\");\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ???????????¶.\n if (\"-\".equals(inputStr)) {\n // do nothing.\n break;\n }\n \n // ??±??°?????????????????????.\n if (p.matcher(inputStr).find()) {\n if (lineNumReader.getLineNumber() == lineNum + 1) {\n // ?????£??????????????°???????????????????????¨?????????????????°????¨????.\n resultShowLine = resultShowLine\n + Integer.parseInt(inputStr) + 2;\n continue;\n } else {\n // ?????£?????????????????????\n int h = Integer.parseInt(inputStr);\n pile = shuffle(pile, h);\n }\n } else {\n pile = inputStr;\n lineNum = lineNumReader.getLineNumber();\n }\n \n if (lineNumReader.getLineNumber() == resultShowLine) {\n // ??¢???????????????\n System.out.println(pile);\n }\n }\n \n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n \n public static String shuffle(String original, int h) {\n StringBuilder shuffledStr = new StringBuilder(original);\n String temp = shuffledStr.substring(0, h);\n shuffledStr.delete(0, h);\n shuffledStr.append(temp);\n return shuffledStr.toString();\n \n }\n}", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.LineNumberReader;", "LineNumberReader", "java.io", "import java.util.regex.Pattern;", "Pattern", "java.util.regex", "public class Main {\n \n public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n String pile = null;\n long lineNum = 0;\n long resultShowLine = 0;\n \n // ??????????????????\n Pattern p = Pattern.compile(\"^[0-9]*$\");\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ???????????¶.\n if (\"-\".equals(inputStr)) {\n // do nothing.\n break;\n }\n \n // ??±??°?????????????????????.\n if (p.matcher(inputStr).find()) {\n if (lineNumReader.getLineNumber() == lineNum + 1) {\n // ?????£??????????????°???????????????????????¨?????????????????°????¨????.\n resultShowLine = resultShowLine\n + Integer.parseInt(inputStr) + 2;\n continue;\n } else {\n // ?????£?????????????????????\n int h = Integer.parseInt(inputStr);\n pile = shuffle(pile, h);\n }\n } else {\n pile = inputStr;\n lineNum = lineNumReader.getLineNumber();\n }\n \n if (lineNumReader.getLineNumber() == resultShowLine) {\n // ??¢???????????????\n System.out.println(pile);\n }\n }\n \n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n \n public static String shuffle(String original, int h) {\n StringBuilder shuffledStr = new StringBuilder(original);\n String temp = shuffledStr.substring(0, h);\n shuffledStr.delete(0, h);\n shuffledStr.append(temp);\n return shuffledStr.toString();\n \n }\n}", "Main", "public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n String pile = null;\n long lineNum = 0;\n long resultShowLine = 0;\n \n // ??????????????????\n Pattern p = Pattern.compile(\"^[0-9]*$\");\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ???????????¶.\n if (\"-\".equals(inputStr)) {\n // do nothing.\n break;\n }\n \n // ??±??°?????????????????????.\n if (p.matcher(inputStr).find()) {\n if (lineNumReader.getLineNumber() == lineNum + 1) {\n // ?????£??????????????°???????????????????????¨?????????????????°????¨????.\n resultShowLine = resultShowLine\n + Integer.parseInt(inputStr) + 2;\n continue;\n } else {\n // ?????£?????????????????????\n int h = Integer.parseInt(inputStr);\n pile = shuffle(pile, h);\n }\n } else {\n pile = inputStr;\n lineNum = lineNumReader.getLineNumber();\n }\n \n if (lineNumReader.getLineNumber() == resultShowLine) {\n // ??¢???????????????\n System.out.println(pile);\n }\n }\n \n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }", "main", "{\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n String pile = null;\n long lineNum = 0;\n long resultShowLine = 0;\n \n // ??????????????????\n Pattern p = Pattern.compile(\"^[0-9]*$\");\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ???????????¶.\n if (\"-\".equals(inputStr)) {\n // do nothing.\n break;\n }\n \n // ??±??°?????????????????????.\n if (p.matcher(inputStr).find()) {\n if (lineNumReader.getLineNumber() == lineNum + 1) {\n // ?????£??????????????°???????????????????????¨?????????????????°????¨????.\n resultShowLine = resultShowLine\n + Integer.parseInt(inputStr) + 2;\n continue;\n } else {\n // ?????£?????????????????????\n int h = Integer.parseInt(inputStr);\n pile = shuffle(pile, h);\n }\n } else {\n pile = inputStr;\n lineNum = lineNumReader.getLineNumber();\n }\n \n if (lineNumReader.getLineNumber() == resultShowLine) {\n // ??¢???????????????\n System.out.println(pile);\n }\n }\n \n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }", "try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n String pile = null;\n long lineNum = 0;\n long resultShowLine = 0;\n \n // ??????????????????\n Pattern p = Pattern.compile(\"^[0-9]*$\");\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ???????????¶.\n if (\"-\".equals(inputStr)) {\n // do nothing.\n break;\n }\n \n // ??±??°?????????????????????.\n if (p.matcher(inputStr).find()) {\n if (lineNumReader.getLineNumber() == lineNum + 1) {\n // ?????£??????????????°???????????????????????¨?????????????????°????¨????.\n resultShowLine = resultShowLine\n + Integer.parseInt(inputStr) + 2;\n continue;\n } else {\n // ?????£?????????????????????\n int h = Integer.parseInt(inputStr);\n pile = shuffle(pile, h);\n }\n } else {\n pile = inputStr;\n lineNum = lineNumReader.getLineNumber();\n }\n \n if (lineNumReader.getLineNumber() == resultShowLine) {\n // ??¢???????????????\n System.out.println(pile);\n }\n }\n \n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }", "catch (Exception e) {\n System.exit(-1);\n }", "Exception e", "{\n System.exit(-1);\n }", "System.exit(-1)", "System.exit", "System", "-1", "1", "{\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n String pile = null;\n long lineNum = 0;\n long resultShowLine = 0;\n \n // ??????????????????\n Pattern p = Pattern.compile(\"^[0-9]*$\");\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ???????????¶.\n if (\"-\".equals(inputStr)) {\n // do nothing.\n break;\n }\n \n // ??±??°?????????????????????.\n if (p.matcher(inputStr).find()) {\n if (lineNumReader.getLineNumber() == lineNum + 1) {\n // ?????£??????????????°???????????????????????¨?????????????????°????¨????.\n resultShowLine = resultShowLine\n + Integer.parseInt(inputStr) + 2;\n continue;\n } else {\n // ?????£?????????????????????\n int h = Integer.parseInt(inputStr);\n pile = shuffle(pile, h);\n }\n } else {\n pile = inputStr;\n lineNum = lineNumReader.getLineNumber();\n }\n \n if (lineNumReader.getLineNumber() == resultShowLine) {\n // ??¢???????????????\n System.out.println(pile);\n }\n }\n \n lineNumReader.close();\n }", "LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));", "lineNumReader", "new LineNumberReader(\n new InputStreamReader(System.in))", "String inputStr = null;", "inputStr", "null", "String pile = null;", "pile", "null", "long lineNum = 0;", "lineNum", "0", "long resultShowLine = 0;", "resultShowLine", "0", "Pattern p = Pattern.compile(\"^[0-9]*$\");", "p", "Pattern.compile(\"^[0-9]*$\")", "Pattern.compile", "Pattern", "\"^[0-9]*$\"", "while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ???????????¶.\n if (\"-\".equals(inputStr)) {\n // do nothing.\n break;\n }\n \n // ??±??°?????????????????????.\n if (p.matcher(inputStr).find()) {\n if (lineNumReader.getLineNumber() == lineNum + 1) {\n // ?????£??????????????°???????????????????????¨?????????????????°????¨????.\n resultShowLine = resultShowLine\n + Integer.parseInt(inputStr) + 2;\n continue;\n } else {\n // ?????£?????????????????????\n int h = Integer.parseInt(inputStr);\n pile = shuffle(pile, h);\n }\n } else {\n pile = inputStr;\n lineNum = lineNumReader.getLineNumber();\n }\n \n if (lineNumReader.getLineNumber() == resultShowLine) {\n // ??¢???????????????\n System.out.println(pile);\n }\n }", "(inputStr = lineNumReader.readLine()) != null", "(inputStr = lineNumReader.readLine())", "inputStr", "lineNumReader.readLine()", "lineNumReader.readLine", "lineNumReader", "null", "{\n \n // ???????????¶.\n if (\"-\".equals(inputStr)) {\n // do nothing.\n break;\n }\n \n // ??±??°?????????????????????.\n if (p.matcher(inputStr).find()) {\n if (lineNumReader.getLineNumber() == lineNum + 1) {\n // ?????£??????????????°???????????????????????¨?????????????????°????¨????.\n resultShowLine = resultShowLine\n + Integer.parseInt(inputStr) + 2;\n continue;\n } else {\n // ?????£?????????????????????\n int h = Integer.parseInt(inputStr);\n pile = shuffle(pile, h);\n }\n } else {\n pile = inputStr;\n lineNum = lineNumReader.getLineNumber();\n }\n \n if (lineNumReader.getLineNumber() == resultShowLine) {\n // ??¢???????????????\n System.out.println(pile);\n }\n }", "if (\"-\".equals(inputStr)) {\n // do nothing.\n break;\n }", "\"-\".equals(inputStr)", "\"-\".equals", "\"-\"", "inputStr", "{\n // do nothing.\n break;\n }", "break;", "if (p.matcher(inputStr).find()) {\n if (lineNumReader.getLineNumber() == lineNum + 1) {\n // ?????£??????????????°???????????????????????¨?????????????????°????¨????.\n resultShowLine = resultShowLine\n + Integer.parseInt(inputStr) + 2;\n continue;\n } else {\n // ?????£?????????????????????\n int h = Integer.parseInt(inputStr);\n pile = shuffle(pile, h);\n }\n } else {\n pile = inputStr;\n lineNum = lineNumReader.getLineNumber();\n }", "p.matcher(inputStr).find()", "p.matcher(inputStr).find", "p.matcher(inputStr)", "p.matcher", "p", "inputStr", "{\n if (lineNumReader.getLineNumber() == lineNum + 1) {\n // ?????£??????????????°???????????????????????¨?????????????????°????¨????.\n resultShowLine = resultShowLine\n + Integer.parseInt(inputStr) + 2;\n continue;\n } else {\n // ?????£?????????????????????\n int h = Integer.parseInt(inputStr);\n pile = shuffle(pile, h);\n }\n }", "if (lineNumReader.getLineNumber() == lineNum + 1) {\n // ?????£??????????????°???????????????????????¨?????????????????°????¨????.\n resultShowLine = resultShowLine\n + Integer.parseInt(inputStr) + 2;\n continue;\n } else {\n // ?????£?????????????????????\n int h = Integer.parseInt(inputStr);\n pile = shuffle(pile, h);\n }", "lineNumReader.getLineNumber() == lineNum + 1", "lineNumReader.getLineNumber()", "lineNumReader.getLineNumber", "lineNumReader", "lineNum + 1", "lineNum", "1", "{\n // ?????£??????????????°???????????????????????¨?????????????????°????¨????.\n resultShowLine = resultShowLine\n + Integer.parseInt(inputStr) + 2;\n continue;\n }", "resultShowLine = resultShowLine\n + Integer.parseInt(inputStr) + 2", "resultShowLine", "resultShowLine\n + Integer.parseInt(inputStr) + 2", "resultShowLine\n + Integer.parseInt(inputStr) + 2", "resultShowLine", "Integer.parseInt(inputStr)", "Integer.parseInt", "Integer", "inputStr", "2", "continue;", "{\n // ?????£?????????????????????\n int h = Integer.parseInt(inputStr);\n pile = shuffle(pile, h);\n }", "int h = Integer.parseInt(inputStr);", "h", "Integer.parseInt(inputStr)", "Integer.parseInt", "Integer", "inputStr", "pile = shuffle(pile, h)", "pile", "shuffle(pile, h)", "shuffle", "pile", "h", "{\n pile = inputStr;\n lineNum = lineNumReader.getLineNumber();\n }", "pile = inputStr", "pile", "inputStr", "lineNum = lineNumReader.getLineNumber()", "lineNum", "lineNumReader.getLineNumber()", "lineNumReader.getLineNumber", "lineNumReader", "if (lineNumReader.getLineNumber() == resultShowLine) {\n // ??¢???????????????\n System.out.println(pile);\n }", "lineNumReader.getLineNumber() == resultShowLine", "lineNumReader.getLineNumber()", "lineNumReader.getLineNumber", "lineNumReader", "resultShowLine", "{\n // ??¢???????????????\n System.out.println(pile);\n }", "System.out.println(pile)", "System.out.println", "System.out", "System", "System.out", "pile", "lineNumReader.close()", "lineNumReader.close", "lineNumReader", "String[] args", "args", "public static String shuffle(String original, int h) {\n StringBuilder shuffledStr = new StringBuilder(original);\n String temp = shuffledStr.substring(0, h);\n shuffledStr.delete(0, h);\n shuffledStr.append(temp);\n return shuffledStr.toString();\n \n }", "shuffle", "{\n StringBuilder shuffledStr = new StringBuilder(original);\n String temp = shuffledStr.substring(0, h);\n shuffledStr.delete(0, h);\n shuffledStr.append(temp);\n return shuffledStr.toString();\n \n }", "StringBuilder shuffledStr = new StringBuilder(original);", "shuffledStr", "new StringBuilder(original)", "String temp = shuffledStr.substring(0, h);", "temp", "shuffledStr.substring(0, h)", "shuffledStr.substring", "shuffledStr", "0", "h", "shuffledStr.delete(0, h)", "shuffledStr.delete", "shuffledStr", "0", "h", "shuffledStr.append(temp)", "shuffledStr.append", "shuffledStr", "temp", "return shuffledStr.toString();", "shuffledStr.toString()", "shuffledStr.toString", "shuffledStr", "String original", "original", "int h", "h", "public class Main {\n \n public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n String pile = null;\n long lineNum = 0;\n long resultShowLine = 0;\n \n // ??????????????????\n Pattern p = Pattern.compile(\"^[0-9]*$\");\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ???????????¶.\n if (\"-\".equals(inputStr)) {\n // do nothing.\n break;\n }\n \n // ??±??°?????????????????????.\n if (p.matcher(inputStr).find()) {\n if (lineNumReader.getLineNumber() == lineNum + 1) {\n // ?????£??????????????°???????????????????????¨?????????????????°????¨????.\n resultShowLine = resultShowLine\n + Integer.parseInt(inputStr) + 2;\n continue;\n } else {\n // ?????£?????????????????????\n int h = Integer.parseInt(inputStr);\n pile = shuffle(pile, h);\n }\n } else {\n pile = inputStr;\n lineNum = lineNumReader.getLineNumber();\n }\n \n if (lineNumReader.getLineNumber() == resultShowLine) {\n // ??¢???????????????\n System.out.println(pile);\n }\n }\n \n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n \n public static String shuffle(String original, int h) {\n StringBuilder shuffledStr = new StringBuilder(original);\n String temp = shuffledStr.substring(0, h);\n shuffledStr.delete(0, h);\n shuffledStr.append(temp);\n return shuffledStr.toString();\n \n }\n}", "public class Main {\n \n public static void main(String[] args) {\n try {\n LineNumberReader lineNumReader = new LineNumberReader(\n new InputStreamReader(System.in));\n \n String inputStr = null;\n String pile = null;\n long lineNum = 0;\n long resultShowLine = 0;\n \n // ??????????????????\n Pattern p = Pattern.compile(\"^[0-9]*$\");\n \n while ((inputStr = lineNumReader.readLine()) != null) {\n \n // ???????????¶.\n if (\"-\".equals(inputStr)) {\n // do nothing.\n break;\n }\n \n // ??±??°?????????????????????.\n if (p.matcher(inputStr).find()) {\n if (lineNumReader.getLineNumber() == lineNum + 1) {\n // ?????£??????????????°???????????????????????¨?????????????????°????¨????.\n resultShowLine = resultShowLine\n + Integer.parseInt(inputStr) + 2;\n continue;\n } else {\n // ?????£?????????????????????\n int h = Integer.parseInt(inputStr);\n pile = shuffle(pile, h);\n }\n } else {\n pile = inputStr;\n lineNum = lineNumReader.getLineNumber();\n }\n \n if (lineNumReader.getLineNumber() == resultShowLine) {\n // ??¢???????????????\n System.out.println(pile);\n }\n }\n \n lineNumReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n \n }\n \n public static String shuffle(String original, int h) {\n StringBuilder shuffledStr = new StringBuilder(original);\n String temp = shuffledStr.substring(0, h);\n shuffledStr.delete(0, h);\n shuffledStr.append(temp);\n return shuffledStr.toString();\n \n }\n}", "Main" ]
import java.io.InputStreamReader; import java.io.LineNumberReader; import java.util.regex.Pattern; /** * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_9_A * * @author eitatsuro * */ public class Main { public static void main(String[] args) { try { LineNumberReader lineNumReader = new LineNumberReader( new InputStreamReader(System.in)); String inputStr = null; String pile = null; long lineNum = 0; long resultShowLine = 0; // ?????????????????? Pattern p = Pattern.compile("^[0-9]*$"); while ((inputStr = lineNumReader.readLine()) != null) { // ???????????¶. if ("-".equals(inputStr)) { // do nothing. break; } // ??±??°?????????????????????. if (p.matcher(inputStr).find()) { if (lineNumReader.getLineNumber() == lineNum + 1) { // ?????£??????????????°???????????????????????¨?????????????????°????¨????. resultShowLine = resultShowLine + Integer.parseInt(inputStr) + 2; continue; } else { // ?????£????????????????????? int h = Integer.parseInt(inputStr); pile = shuffle(pile, h); } } else { pile = inputStr; lineNum = lineNumReader.getLineNumber(); } if (lineNumReader.getLineNumber() == resultShowLine) { // ??¢??????????????? System.out.println(pile); } } lineNumReader.close(); } catch (Exception e) { System.exit(-1); } } public static String shuffle(String original, int h) { StringBuilder shuffledStr = new StringBuilder(original); String temp = shuffledStr.substring(0, h); shuffledStr.delete(0, h); shuffledStr.append(temp); return shuffledStr.toString(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 42, 40, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 13, 41, 13, 4, 18, 13, 13, 4, 18, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 0, 13, 4, 18, 13, 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 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 19, 22 ], [ 17, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 49, 53 ], [ 41, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 56, 60 ], [ 60, 61 ], [ 61, 62 ], [ 41, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 23, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 23, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 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 Scanner scn = new Scanner(System.in);\n String cards = scn.next();\n\n while(!cards.equals(\"-\")){\n int m = scn.nextInt();\n for(int i=0;i<m;i++){\n int h = scn.nextInt();\n String top = cards.substring(0,h);\n String bottom = cards.substring(h,cards.length());\n cards = bottom + top;\n }\n System.out.println(cards);\n cards = scn.next();\n }\n\n\n\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n String cards = scn.next();\n\n while(!cards.equals(\"-\")){\n int m = scn.nextInt();\n for(int i=0;i<m;i++){\n int h = scn.nextInt();\n String top = cards.substring(0,h);\n String bottom = cards.substring(h,cards.length());\n cards = bottom + top;\n }\n System.out.println(cards);\n cards = scn.next();\n }\n\n\n\n }\n\n}", "Main", "public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n String cards = scn.next();\n\n while(!cards.equals(\"-\")){\n int m = scn.nextInt();\n for(int i=0;i<m;i++){\n int h = scn.nextInt();\n String top = cards.substring(0,h);\n String bottom = cards.substring(h,cards.length());\n cards = bottom + top;\n }\n System.out.println(cards);\n cards = scn.next();\n }\n\n\n\n }", "main", "{\n Scanner scn = new Scanner(System.in);\n String cards = scn.next();\n\n while(!cards.equals(\"-\")){\n int m = scn.nextInt();\n for(int i=0;i<m;i++){\n int h = scn.nextInt();\n String top = cards.substring(0,h);\n String bottom = cards.substring(h,cards.length());\n cards = bottom + top;\n }\n System.out.println(cards);\n cards = scn.next();\n }\n\n\n\n }", "Scanner scn = new Scanner(System.in);", "scn", "new Scanner(System.in)", "String cards = scn.next();", "cards", "scn.next()", "scn.next", "scn", "while(!cards.equals(\"-\")){\n int m = scn.nextInt();\n for(int i=0;i<m;i++){\n int h = scn.nextInt();\n String top = cards.substring(0,h);\n String bottom = cards.substring(h,cards.length());\n cards = bottom + top;\n }\n System.out.println(cards);\n cards = scn.next();\n }", "!cards.equals(\"-\")", "cards.equals(\"-\")", "cards.equals", "cards", "\"-\"", "{\n int m = scn.nextInt();\n for(int i=0;i<m;i++){\n int h = scn.nextInt();\n String top = cards.substring(0,h);\n String bottom = cards.substring(h,cards.length());\n cards = bottom + top;\n }\n System.out.println(cards);\n cards = scn.next();\n }", "int m = scn.nextInt();", "m", "scn.nextInt()", "scn.nextInt", "scn", "for(int i=0;i<m;i++){\n int h = scn.nextInt();\n String top = cards.substring(0,h);\n String bottom = cards.substring(h,cards.length());\n cards = bottom + top;\n }", "int i=0;", "int i=0;", "i", "0", "i<m", "i", "m", "i++", "i++", "i", "{\n int h = scn.nextInt();\n String top = cards.substring(0,h);\n String bottom = cards.substring(h,cards.length());\n cards = bottom + top;\n }", "{\n int h = scn.nextInt();\n String top = cards.substring(0,h);\n String bottom = cards.substring(h,cards.length());\n cards = bottom + top;\n }", "int h = scn.nextInt();", "h", "scn.nextInt()", "scn.nextInt", "scn", "String top = cards.substring(0,h);", "top", "cards.substring(0,h)", "cards.substring", "cards", "0", "h", "String bottom = cards.substring(h,cards.length());", "bottom", "cards.substring(h,cards.length())", "cards.substring", "cards", "h", "cards.length()", "cards.length", "cards", "cards = bottom + top", "cards", "bottom + top", "bottom", "top", "System.out.println(cards)", "System.out.println", "System.out", "System", "System.out", "cards", "cards = scn.next()", "cards", "scn.next()", "scn.next", "scn", "String args[]", "args", "public class Main {\n public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n String cards = scn.next();\n\n while(!cards.equals(\"-\")){\n int m = scn.nextInt();\n for(int i=0;i<m;i++){\n int h = scn.nextInt();\n String top = cards.substring(0,h);\n String bottom = cards.substring(h,cards.length());\n cards = bottom + top;\n }\n System.out.println(cards);\n cards = scn.next();\n }\n\n\n\n }\n\n}", "public class Main {\n public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n String cards = scn.next();\n\n while(!cards.equals(\"-\")){\n int m = scn.nextInt();\n for(int i=0;i<m;i++){\n int h = scn.nextInt();\n String top = cards.substring(0,h);\n String bottom = cards.substring(h,cards.length());\n cards = bottom + top;\n }\n System.out.println(cards);\n cards = scn.next();\n }\n\n\n\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner scn = new Scanner(System.in); String cards = scn.next(); while(!cards.equals("-")){ int m = scn.nextInt(); for(int i=0;i<m;i++){ int h = scn.nextInt(); String top = cards.substring(0,h); String bottom = cards.substring(h,cards.length()); cards = bottom + top; } System.out.println(cards); cards = scn.next(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 41, 13, 41, 13, 41, 13, 42, 17, 30, 41, 13, 17, 0, 13, 4, 18, 13, 14, 2, 4, 18, 13, 17, 17, 3, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 17, 18, 13, 13, 0, 13, 4, 18, 13, 18, 13, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 110, 5 ], [ 110, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 24, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 33, 40 ], [ 24, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 24, 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 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 24, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 66, 74 ], [ 74, 75 ], [ 75, 76 ], [ 66, 77 ], [ 78, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 81, 85 ], [ 85, 86 ], [ 85, 87 ], [ 78, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 93, 94 ], [ 93, 95 ], [ 78, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 98, 100 ], [ 24, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 6, 107 ], [ 107, 108 ], [ 0, 109 ], [ 109, 110 ], [ 109, 111 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int[] h = new int[100];\n String str, substr1, substr2;\n while(true){\n int m=0;\n str = sc.next();\n if(str.charAt(0) == '-') break;\n m = sc.nextInt();\n for(int i=0;i<m;i++){\n h[i] = sc.nextInt();\n }\n for(int i=0;i<m;i++){\n substr1 = str.substring(0,h[i]);\n substr2 = str.substring(h[i]);\n str = substr2 + substr1;\n }\n System.out.println(str);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int[] h = new int[100];\n String str, substr1, substr2;\n while(true){\n int m=0;\n str = sc.next();\n if(str.charAt(0) == '-') break;\n m = sc.nextInt();\n for(int i=0;i<m;i++){\n h[i] = sc.nextInt();\n }\n for(int i=0;i<m;i++){\n substr1 = str.substring(0,h[i]);\n substr2 = str.substring(h[i]);\n str = substr2 + substr1;\n }\n System.out.println(str);\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int[] h = new int[100];\n String str, substr1, substr2;\n while(true){\n int m=0;\n str = sc.next();\n if(str.charAt(0) == '-') break;\n m = sc.nextInt();\n for(int i=0;i<m;i++){\n h[i] = sc.nextInt();\n }\n for(int i=0;i<m;i++){\n substr1 = str.substring(0,h[i]);\n substr2 = str.substring(h[i]);\n str = substr2 + substr1;\n }\n System.out.println(str);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int[] h = new int[100];\n String str, substr1, substr2;\n while(true){\n int m=0;\n str = sc.next();\n if(str.charAt(0) == '-') break;\n m = sc.nextInt();\n for(int i=0;i<m;i++){\n h[i] = sc.nextInt();\n }\n for(int i=0;i<m;i++){\n substr1 = str.substring(0,h[i]);\n substr2 = str.substring(h[i]);\n str = substr2 + substr1;\n }\n System.out.println(str);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int[] h = new int[100];", "h", "new int[100]", "100", "String str", "str", "substr1", "substr1", "substr2;", "substr2", "while(true){\n int m=0;\n str = sc.next();\n if(str.charAt(0) == '-') break;\n m = sc.nextInt();\n for(int i=0;i<m;i++){\n h[i] = sc.nextInt();\n }\n for(int i=0;i<m;i++){\n substr1 = str.substring(0,h[i]);\n substr2 = str.substring(h[i]);\n str = substr2 + substr1;\n }\n System.out.println(str);\n }", "true", "{\n int m=0;\n str = sc.next();\n if(str.charAt(0) == '-') break;\n m = sc.nextInt();\n for(int i=0;i<m;i++){\n h[i] = sc.nextInt();\n }\n for(int i=0;i<m;i++){\n substr1 = str.substring(0,h[i]);\n substr2 = str.substring(h[i]);\n str = substr2 + substr1;\n }\n System.out.println(str);\n }", "int m=0;", "m", "0", "str = sc.next()", "str", "sc.next()", "sc.next", "sc", "if(str.charAt(0) == '-') break;", "str.charAt(0) == '-'", "str.charAt(0)", "str.charAt", "str", "0", "'-'", "break;", "m = sc.nextInt()", "m", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0;i<m;i++){\n h[i] = sc.nextInt();\n }", "int i=0;", "int i=0;", "i", "0", "i<m", "i", "m", "i++", "i++", "i", "{\n h[i] = sc.nextInt();\n }", "{\n h[i] = sc.nextInt();\n }", "h[i] = sc.nextInt()", "h[i]", "h", "i", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0;i<m;i++){\n substr1 = str.substring(0,h[i]);\n substr2 = str.substring(h[i]);\n str = substr2 + substr1;\n }", "int i=0;", "int i=0;", "i", "0", "i<m", "i", "m", "i++", "i++", "i", "{\n substr1 = str.substring(0,h[i]);\n substr2 = str.substring(h[i]);\n str = substr2 + substr1;\n }", "{\n substr1 = str.substring(0,h[i]);\n substr2 = str.substring(h[i]);\n str = substr2 + substr1;\n }", "substr1 = str.substring(0,h[i])", "substr1", "str.substring(0,h[i])", "str.substring", "str", "0", "h[i]", "h", "i", "substr2 = str.substring(h[i])", "substr2", "str.substring(h[i])", "str.substring", "str", "h[i]", "h", "i", "str = substr2 + substr1", "str", "substr2 + substr1", "substr2", "substr1", "System.out.println(str)", "System.out.println", "System.out", "System", "System.out", "str", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int[] h = new int[100];\n String str, substr1, substr2;\n while(true){\n int m=0;\n str = sc.next();\n if(str.charAt(0) == '-') break;\n m = sc.nextInt();\n for(int i=0;i<m;i++){\n h[i] = sc.nextInt();\n }\n for(int i=0;i<m;i++){\n substr1 = str.substring(0,h[i]);\n substr2 = str.substring(h[i]);\n str = substr2 + substr1;\n }\n System.out.println(str);\n }\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int[] h = new int[100];\n String str, substr1, substr2;\n while(true){\n int m=0;\n str = sc.next();\n if(str.charAt(0) == '-') break;\n m = sc.nextInt();\n for(int i=0;i<m;i++){\n h[i] = sc.nextInt();\n }\n for(int i=0;i<m;i++){\n substr1 = str.substring(0,h[i]);\n substr2 = str.substring(h[i]);\n str = substr2 + substr1;\n }\n System.out.println(str);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int[] h = new int[100]; String str, substr1, substr2; while(true){ int m=0; str = sc.next(); if(str.charAt(0) == '-') break; m = sc.nextInt(); for(int i=0;i<m;i++){ h[i] = sc.nextInt(); } for(int i=0;i<m;i++){ substr1 = str.substring(0,h[i]); substr2 = str.substring(h[i]); str = substr2 + substr1; } System.out.println(str); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 41, 13, 20, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 0, 13, 20, 0, 13, 4, 18, 13, 42, 4, 18, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 41, 13, 20, 0, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 13, 2, 13, 17, 3, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 112, 5 ], [ 112, 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 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 8, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 30, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 34, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 40, 45 ], [ 34, 46 ], [ 46, 47 ], [ 46, 48 ], [ 34, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 34, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 59, 67 ], [ 67, 68 ], [ 68, 69 ], [ 59, 70 ], [ 71, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 71, 77 ], [ 77, 78 ], [ 77, 79 ], [ 71, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 82, 86 ], [ 71, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 89, 93 ], [ 58, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 99, 100 ], [ 99, 101 ], [ 58, 102 ], [ 8, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 6, 109 ], [ 109, 110 ], [ 0, 111 ], [ 111, 112 ], [ 111, 113 ] ]
[ "\n\nimport java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String args[]) {\n\n\t\t//\n\t\tString sentence = \"\";\n\t\tint shuffle_times = 0;\n\t\tint shuffle_number = 0;\n\t\tStringBuffer input_sentence = null;\n\t\tString out = \"\";\n\t\tStringBuffer out_all = new StringBuffer(out);\n\n\t\t//\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (sc.hasNext()) {\n\n\t\t\t// 入力文字列\n\t\t\tsentence = sc.next();\n\t\t\t//入力文字列が_の場合は\n\t\t\tif(sentence.equals(\"-\"))\n\t\t\tbreak;\n\t\t\t\n\t\t\t//\n\t\t\tinput_sentence = new StringBuffer(sentence);\n\t\t\t// シャッフルする回数\n\t\t\tshuffle_times = sc.nextInt();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// シャッフル枚数\n\t\t\t\tfor (int i = 0; i < shuffle_times; i++) {\n\n\t\t\t\t\t//\n\t\t\t\t\tshuffle_number = sc.nextInt();\n\t\t\t\t\t// シャッフルしてカードの上に移動するものを、取ってくる\n\t\t\t\t\tStringBuffer add_sentence = new StringBuffer(\n\t\t\t\t\t\t\tinput_sentence.substring(0, (shuffle_number)));\n\t\t\t\t\t// 上に移動するカードを元のカード列から削除\n\t\t\t\t\tinput_sentence = input_sentence.delete(0,(shuffle_number));\n\t\t\t\t\t//シャッフルしたあとカード列\n\t\t\t\t\tinput_sentence = add_sentence.insert(0, input_sentence);\n\n\t\t\t\t}\n\t\t\t\tout_all = out_all.append(input_sentence+\"\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.print(out_all);\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\n\tpublic static void main(String args[]) {\n\n\t\t//\n\t\tString sentence = \"\";\n\t\tint shuffle_times = 0;\n\t\tint shuffle_number = 0;\n\t\tStringBuffer input_sentence = null;\n\t\tString out = \"\";\n\t\tStringBuffer out_all = new StringBuffer(out);\n\n\t\t//\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (sc.hasNext()) {\n\n\t\t\t// 入力文字列\n\t\t\tsentence = sc.next();\n\t\t\t//入力文字列が_の場合は\n\t\t\tif(sentence.equals(\"-\"))\n\t\t\tbreak;\n\t\t\t\n\t\t\t//\n\t\t\tinput_sentence = new StringBuffer(sentence);\n\t\t\t// シャッフルする回数\n\t\t\tshuffle_times = sc.nextInt();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// シャッフル枚数\n\t\t\t\tfor (int i = 0; i < shuffle_times; i++) {\n\n\t\t\t\t\t//\n\t\t\t\t\tshuffle_number = sc.nextInt();\n\t\t\t\t\t// シャッフルしてカードの上に移動するものを、取ってくる\n\t\t\t\t\tStringBuffer add_sentence = new StringBuffer(\n\t\t\t\t\t\t\tinput_sentence.substring(0, (shuffle_number)));\n\t\t\t\t\t// 上に移動するカードを元のカード列から削除\n\t\t\t\t\tinput_sentence = input_sentence.delete(0,(shuffle_number));\n\t\t\t\t\t//シャッフルしたあとカード列\n\t\t\t\t\tinput_sentence = add_sentence.insert(0, input_sentence);\n\n\t\t\t\t}\n\t\t\t\tout_all = out_all.append(input_sentence+\"\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.print(out_all);\n\t}\n\n}", "Main", "public static void main(String args[]) {\n\n\t\t//\n\t\tString sentence = \"\";\n\t\tint shuffle_times = 0;\n\t\tint shuffle_number = 0;\n\t\tStringBuffer input_sentence = null;\n\t\tString out = \"\";\n\t\tStringBuffer out_all = new StringBuffer(out);\n\n\t\t//\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (sc.hasNext()) {\n\n\t\t\t// 入力文字列\n\t\t\tsentence = sc.next();\n\t\t\t//入力文字列が_の場合は\n\t\t\tif(sentence.equals(\"-\"))\n\t\t\tbreak;\n\t\t\t\n\t\t\t//\n\t\t\tinput_sentence = new StringBuffer(sentence);\n\t\t\t// シャッフルする回数\n\t\t\tshuffle_times = sc.nextInt();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// シャッフル枚数\n\t\t\t\tfor (int i = 0; i < shuffle_times; i++) {\n\n\t\t\t\t\t//\n\t\t\t\t\tshuffle_number = sc.nextInt();\n\t\t\t\t\t// シャッフルしてカードの上に移動するものを、取ってくる\n\t\t\t\t\tStringBuffer add_sentence = new StringBuffer(\n\t\t\t\t\t\t\tinput_sentence.substring(0, (shuffle_number)));\n\t\t\t\t\t// 上に移動するカードを元のカード列から削除\n\t\t\t\t\tinput_sentence = input_sentence.delete(0,(shuffle_number));\n\t\t\t\t\t//シャッフルしたあとカード列\n\t\t\t\t\tinput_sentence = add_sentence.insert(0, input_sentence);\n\n\t\t\t\t}\n\t\t\t\tout_all = out_all.append(input_sentence+\"\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.print(out_all);\n\t}", "main", "{\n\n\t\t//\n\t\tString sentence = \"\";\n\t\tint shuffle_times = 0;\n\t\tint shuffle_number = 0;\n\t\tStringBuffer input_sentence = null;\n\t\tString out = \"\";\n\t\tStringBuffer out_all = new StringBuffer(out);\n\n\t\t//\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (sc.hasNext()) {\n\n\t\t\t// 入力文字列\n\t\t\tsentence = sc.next();\n\t\t\t//入力文字列が_の場合は\n\t\t\tif(sentence.equals(\"-\"))\n\t\t\tbreak;\n\t\t\t\n\t\t\t//\n\t\t\tinput_sentence = new StringBuffer(sentence);\n\t\t\t// シャッフルする回数\n\t\t\tshuffle_times = sc.nextInt();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// シャッフル枚数\n\t\t\t\tfor (int i = 0; i < shuffle_times; i++) {\n\n\t\t\t\t\t//\n\t\t\t\t\tshuffle_number = sc.nextInt();\n\t\t\t\t\t// シャッフルしてカードの上に移動するものを、取ってくる\n\t\t\t\t\tStringBuffer add_sentence = new StringBuffer(\n\t\t\t\t\t\t\tinput_sentence.substring(0, (shuffle_number)));\n\t\t\t\t\t// 上に移動するカードを元のカード列から削除\n\t\t\t\t\tinput_sentence = input_sentence.delete(0,(shuffle_number));\n\t\t\t\t\t//シャッフルしたあとカード列\n\t\t\t\t\tinput_sentence = add_sentence.insert(0, input_sentence);\n\n\t\t\t\t}\n\t\t\t\tout_all = out_all.append(input_sentence+\"\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.print(out_all);\n\t}", "String sentence = \"\";", "sentence", "\"\"", "int shuffle_times = 0;", "shuffle_times", "0", "int shuffle_number = 0;", "shuffle_number", "0", "StringBuffer input_sentence = null;", "input_sentence", "null", "String out = \"\";", "out", "\"\"", "StringBuffer out_all = new StringBuffer(out);", "out_all", "new StringBuffer(out)", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (sc.hasNext()) {\n\n\t\t\t// 入力文字列\n\t\t\tsentence = sc.next();\n\t\t\t//入力文字列が_の場合は\n\t\t\tif(sentence.equals(\"-\"))\n\t\t\tbreak;\n\t\t\t\n\t\t\t//\n\t\t\tinput_sentence = new StringBuffer(sentence);\n\t\t\t// シャッフルする回数\n\t\t\tshuffle_times = sc.nextInt();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// シャッフル枚数\n\t\t\t\tfor (int i = 0; i < shuffle_times; i++) {\n\n\t\t\t\t\t//\n\t\t\t\t\tshuffle_number = sc.nextInt();\n\t\t\t\t\t// シャッフルしてカードの上に移動するものを、取ってくる\n\t\t\t\t\tStringBuffer add_sentence = new StringBuffer(\n\t\t\t\t\t\t\tinput_sentence.substring(0, (shuffle_number)));\n\t\t\t\t\t// 上に移動するカードを元のカード列から削除\n\t\t\t\t\tinput_sentence = input_sentence.delete(0,(shuffle_number));\n\t\t\t\t\t//シャッフルしたあとカード列\n\t\t\t\t\tinput_sentence = add_sentence.insert(0, input_sentence);\n\n\t\t\t\t}\n\t\t\t\tout_all = out_all.append(input_sentence+\"\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\n\t\t\t// 入力文字列\n\t\t\tsentence = sc.next();\n\t\t\t//入力文字列が_の場合は\n\t\t\tif(sentence.equals(\"-\"))\n\t\t\tbreak;\n\t\t\t\n\t\t\t//\n\t\t\tinput_sentence = new StringBuffer(sentence);\n\t\t\t// シャッフルする回数\n\t\t\tshuffle_times = sc.nextInt();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// シャッフル枚数\n\t\t\t\tfor (int i = 0; i < shuffle_times; i++) {\n\n\t\t\t\t\t//\n\t\t\t\t\tshuffle_number = sc.nextInt();\n\t\t\t\t\t// シャッフルしてカードの上に移動するものを、取ってくる\n\t\t\t\t\tStringBuffer add_sentence = new StringBuffer(\n\t\t\t\t\t\t\tinput_sentence.substring(0, (shuffle_number)));\n\t\t\t\t\t// 上に移動するカードを元のカード列から削除\n\t\t\t\t\tinput_sentence = input_sentence.delete(0,(shuffle_number));\n\t\t\t\t\t//シャッフルしたあとカード列\n\t\t\t\t\tinput_sentence = add_sentence.insert(0, input_sentence);\n\n\t\t\t\t}\n\t\t\t\tout_all = out_all.append(input_sentence+\"\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}", "sentence = sc.next()", "sentence", "sc.next()", "sc.next", "sc", "if(sentence.equals(\"-\"))\n\t\t\tbreak;", "sentence.equals(\"-\")", "sentence.equals", "sentence", "\"-\"", "break;", "input_sentence = new StringBuffer(sentence)", "input_sentence", "new StringBuffer(sentence)", "shuffle_times = sc.nextInt()", "shuffle_times", "sc.nextInt()", "sc.nextInt", "sc", "while (sc.hasNext()) {\n\t\t\t\t// シャッフル枚数\n\t\t\t\tfor (int i = 0; i < shuffle_times; i++) {\n\n\t\t\t\t\t//\n\t\t\t\t\tshuffle_number = sc.nextInt();\n\t\t\t\t\t// シャッフルしてカードの上に移動するものを、取ってくる\n\t\t\t\t\tStringBuffer add_sentence = new StringBuffer(\n\t\t\t\t\t\t\tinput_sentence.substring(0, (shuffle_number)));\n\t\t\t\t\t// 上に移動するカードを元のカード列から削除\n\t\t\t\t\tinput_sentence = input_sentence.delete(0,(shuffle_number));\n\t\t\t\t\t//シャッフルしたあとカード列\n\t\t\t\t\tinput_sentence = add_sentence.insert(0, input_sentence);\n\n\t\t\t\t}\n\t\t\t\tout_all = out_all.append(input_sentence+\"\\n\");\n\t\t\t\tbreak;\n\t\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\t\t// シャッフル枚数\n\t\t\t\tfor (int i = 0; i < shuffle_times; i++) {\n\n\t\t\t\t\t//\n\t\t\t\t\tshuffle_number = sc.nextInt();\n\t\t\t\t\t// シャッフルしてカードの上に移動するものを、取ってくる\n\t\t\t\t\tStringBuffer add_sentence = new StringBuffer(\n\t\t\t\t\t\t\tinput_sentence.substring(0, (shuffle_number)));\n\t\t\t\t\t// 上に移動するカードを元のカード列から削除\n\t\t\t\t\tinput_sentence = input_sentence.delete(0,(shuffle_number));\n\t\t\t\t\t//シャッフルしたあとカード列\n\t\t\t\t\tinput_sentence = add_sentence.insert(0, input_sentence);\n\n\t\t\t\t}\n\t\t\t\tout_all = out_all.append(input_sentence+\"\\n\");\n\t\t\t\tbreak;\n\t\t\t}", "for (int i = 0; i < shuffle_times; i++) {\n\n\t\t\t\t\t//\n\t\t\t\t\tshuffle_number = sc.nextInt();\n\t\t\t\t\t// シャッフルしてカードの上に移動するものを、取ってくる\n\t\t\t\t\tStringBuffer add_sentence = new StringBuffer(\n\t\t\t\t\t\t\tinput_sentence.substring(0, (shuffle_number)));\n\t\t\t\t\t// 上に移動するカードを元のカード列から削除\n\t\t\t\t\tinput_sentence = input_sentence.delete(0,(shuffle_number));\n\t\t\t\t\t//シャッフルしたあとカード列\n\t\t\t\t\tinput_sentence = add_sentence.insert(0, input_sentence);\n\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < shuffle_times", "i", "shuffle_times", "i++", "i++", "i", "{\n\n\t\t\t\t\t//\n\t\t\t\t\tshuffle_number = sc.nextInt();\n\t\t\t\t\t// シャッフルしてカードの上に移動するものを、取ってくる\n\t\t\t\t\tStringBuffer add_sentence = new StringBuffer(\n\t\t\t\t\t\t\tinput_sentence.substring(0, (shuffle_number)));\n\t\t\t\t\t// 上に移動するカードを元のカード列から削除\n\t\t\t\t\tinput_sentence = input_sentence.delete(0,(shuffle_number));\n\t\t\t\t\t//シャッフルしたあとカード列\n\t\t\t\t\tinput_sentence = add_sentence.insert(0, input_sentence);\n\n\t\t\t\t}", "{\n\n\t\t\t\t\t//\n\t\t\t\t\tshuffle_number = sc.nextInt();\n\t\t\t\t\t// シャッフルしてカードの上に移動するものを、取ってくる\n\t\t\t\t\tStringBuffer add_sentence = new StringBuffer(\n\t\t\t\t\t\t\tinput_sentence.substring(0, (shuffle_number)));\n\t\t\t\t\t// 上に移動するカードを元のカード列から削除\n\t\t\t\t\tinput_sentence = input_sentence.delete(0,(shuffle_number));\n\t\t\t\t\t//シャッフルしたあとカード列\n\t\t\t\t\tinput_sentence = add_sentence.insert(0, input_sentence);\n\n\t\t\t\t}", "shuffle_number = sc.nextInt()", "shuffle_number", "sc.nextInt()", "sc.nextInt", "sc", "StringBuffer add_sentence = new StringBuffer(\n\t\t\t\t\t\t\tinput_sentence.substring(0, (shuffle_number)));", "add_sentence", "new StringBuffer(\n\t\t\t\t\t\t\tinput_sentence.substring(0, (shuffle_number)))", "input_sentence = input_sentence.delete(0,(shuffle_number))", "input_sentence", "input_sentence.delete(0,(shuffle_number))", "input_sentence.delete", "input_sentence", "0", "(shuffle_number)", "input_sentence = add_sentence.insert(0, input_sentence)", "input_sentence", "add_sentence.insert(0, input_sentence)", "add_sentence.insert", "add_sentence", "0", "input_sentence", "out_all = out_all.append(input_sentence+\"\\n\")", "out_all", "out_all.append(input_sentence+\"\\n\")", "out_all.append", "out_all", "input_sentence+\"\\n\"", "input_sentence", "\"\\n\"", "break;", "System.out.print(out_all)", "System.out.print", "System.out", "System", "System.out", "out_all", "String args[]", "args", "public class Main{\n\n\tpublic static void main(String args[]) {\n\n\t\t//\n\t\tString sentence = \"\";\n\t\tint shuffle_times = 0;\n\t\tint shuffle_number = 0;\n\t\tStringBuffer input_sentence = null;\n\t\tString out = \"\";\n\t\tStringBuffer out_all = new StringBuffer(out);\n\n\t\t//\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (sc.hasNext()) {\n\n\t\t\t// 入力文字列\n\t\t\tsentence = sc.next();\n\t\t\t//入力文字列が_の場合は\n\t\t\tif(sentence.equals(\"-\"))\n\t\t\tbreak;\n\t\t\t\n\t\t\t//\n\t\t\tinput_sentence = new StringBuffer(sentence);\n\t\t\t// シャッフルする回数\n\t\t\tshuffle_times = sc.nextInt();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// シャッフル枚数\n\t\t\t\tfor (int i = 0; i < shuffle_times; i++) {\n\n\t\t\t\t\t//\n\t\t\t\t\tshuffle_number = sc.nextInt();\n\t\t\t\t\t// シャッフルしてカードの上に移動するものを、取ってくる\n\t\t\t\t\tStringBuffer add_sentence = new StringBuffer(\n\t\t\t\t\t\t\tinput_sentence.substring(0, (shuffle_number)));\n\t\t\t\t\t// 上に移動するカードを元のカード列から削除\n\t\t\t\t\tinput_sentence = input_sentence.delete(0,(shuffle_number));\n\t\t\t\t\t//シャッフルしたあとカード列\n\t\t\t\t\tinput_sentence = add_sentence.insert(0, input_sentence);\n\n\t\t\t\t}\n\t\t\t\tout_all = out_all.append(input_sentence+\"\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.print(out_all);\n\t}\n\n}", "public class Main{\n\n\tpublic static void main(String args[]) {\n\n\t\t//\n\t\tString sentence = \"\";\n\t\tint shuffle_times = 0;\n\t\tint shuffle_number = 0;\n\t\tStringBuffer input_sentence = null;\n\t\tString out = \"\";\n\t\tStringBuffer out_all = new StringBuffer(out);\n\n\t\t//\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (sc.hasNext()) {\n\n\t\t\t// 入力文字列\n\t\t\tsentence = sc.next();\n\t\t\t//入力文字列が_の場合は\n\t\t\tif(sentence.equals(\"-\"))\n\t\t\tbreak;\n\t\t\t\n\t\t\t//\n\t\t\tinput_sentence = new StringBuffer(sentence);\n\t\t\t// シャッフルする回数\n\t\t\tshuffle_times = sc.nextInt();\n\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\t// シャッフル枚数\n\t\t\t\tfor (int i = 0; i < shuffle_times; i++) {\n\n\t\t\t\t\t//\n\t\t\t\t\tshuffle_number = sc.nextInt();\n\t\t\t\t\t// シャッフルしてカードの上に移動するものを、取ってくる\n\t\t\t\t\tStringBuffer add_sentence = new StringBuffer(\n\t\t\t\t\t\t\tinput_sentence.substring(0, (shuffle_number)));\n\t\t\t\t\t// 上に移動するカードを元のカード列から削除\n\t\t\t\t\tinput_sentence = input_sentence.delete(0,(shuffle_number));\n\t\t\t\t\t//シャッフルしたあとカード列\n\t\t\t\t\tinput_sentence = add_sentence.insert(0, input_sentence);\n\n\t\t\t\t}\n\t\t\t\tout_all = out_all.append(input_sentence+\"\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.print(out_all);\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String args[]) { // String sentence = ""; int shuffle_times = 0; int shuffle_number = 0; StringBuffer input_sentence = null; String out = ""; StringBuffer out_all = new StringBuffer(out); // Scanner sc = new Scanner(System.in); while (sc.hasNext()) { // 入力文字列 sentence = sc.next(); //入力文字列が_の場合は if(sentence.equals("-")) break; // input_sentence = new StringBuffer(sentence); // シャッフルする回数 shuffle_times = sc.nextInt(); while (sc.hasNext()) { // シャッフル枚数 for (int i = 0; i < shuffle_times; i++) { // shuffle_number = sc.nextInt(); // シャッフルしてカードの上に移動するものを、取ってくる StringBuffer add_sentence = new StringBuffer( input_sentence.substring(0, (shuffle_number))); // 上に移動するカードを元のカード列から削除 input_sentence = input_sentence.delete(0,(shuffle_number)); //シャッフルしたあとカード列 input_sentence = add_sentence.insert(0, input_sentence); } out_all = out_all.append(input_sentence+"\n"); break; } } System.out.print(out_all); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 2, 4, 18, 13, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 76, 5 ], [ 76, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 26, 31 ], [ 20, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 20, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 37, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 49, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 57, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 62, 66 ], [ 20, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 6, 73 ], [ 73, 74 ], [ 0, 75 ], [ 75, 76 ], [ 75, 77 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\t/*\n\t\t * ????????????????????¨???????????? aabc String str [] =read();\n\t\t * ?????£??????????????° m int cnt= 3;\n\t\t * ?????????h???????????????????????¨??????????????????\n\t\t * aabc\n\t\t * int 1; m1\n\t\t * int 2; h2\n\t\t * int 1; h1\n\t\t *\n\t\t * syso(aabc) - if()break;\n\t\t *\n\t\t *\n\t\t * int h = 3; string str = \"abcdef\";\n\t\t * string left =str.substr(0,h); //abc\n\t\t */\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// declear variable\n\t\tString cardSet;\n\t\tint shuffleM,shuffleH;\n\t\t// while section\n\t\twhile (true) {\n\t\t\tcardSet=sc.next();\n\t\t\t// break condition\n\t\t\tif(cardSet.equals(\"-\"))break;\n\t\t\t// Shuffle chance\n\t\t\tshuffleM = sc.nextInt();\n\t\t\tfor (int i = 0; i < shuffleM; i++) {\n\t\t\t\tshuffleH = sc.nextInt();\n\t\t\t\t// Shuffle\n\t\t\t\tcardSet = cardSet.substring(shuffleH) + cardSet.substring(0, shuffleH);\n\t\t\t}\n\t\t\tSystem.out.println(cardSet);\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t/*\n\t\t * ????????????????????¨???????????? aabc String str [] =read();\n\t\t * ?????£??????????????° m int cnt= 3;\n\t\t * ?????????h???????????????????????¨??????????????????\n\t\t * aabc\n\t\t * int 1; m1\n\t\t * int 2; h2\n\t\t * int 1; h1\n\t\t *\n\t\t * syso(aabc) - if()break;\n\t\t *\n\t\t *\n\t\t * int h = 3; string str = \"abcdef\";\n\t\t * string left =str.substr(0,h); //abc\n\t\t */\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// declear variable\n\t\tString cardSet;\n\t\tint shuffleM,shuffleH;\n\t\t// while section\n\t\twhile (true) {\n\t\t\tcardSet=sc.next();\n\t\t\t// break condition\n\t\t\tif(cardSet.equals(\"-\"))break;\n\t\t\t// Shuffle chance\n\t\t\tshuffleM = sc.nextInt();\n\t\t\tfor (int i = 0; i < shuffleM; i++) {\n\t\t\t\tshuffleH = sc.nextInt();\n\t\t\t\t// Shuffle\n\t\t\t\tcardSet = cardSet.substring(shuffleH) + cardSet.substring(0, shuffleH);\n\t\t\t}\n\t\t\tSystem.out.println(cardSet);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\t/*\n\t\t * ????????????????????¨???????????? aabc String str [] =read();\n\t\t * ?????£??????????????° m int cnt= 3;\n\t\t * ?????????h???????????????????????¨??????????????????\n\t\t * aabc\n\t\t * int 1; m1\n\t\t * int 2; h2\n\t\t * int 1; h1\n\t\t *\n\t\t * syso(aabc) - if()break;\n\t\t *\n\t\t *\n\t\t * int h = 3; string str = \"abcdef\";\n\t\t * string left =str.substr(0,h); //abc\n\t\t */\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// declear variable\n\t\tString cardSet;\n\t\tint shuffleM,shuffleH;\n\t\t// while section\n\t\twhile (true) {\n\t\t\tcardSet=sc.next();\n\t\t\t// break condition\n\t\t\tif(cardSet.equals(\"-\"))break;\n\t\t\t// Shuffle chance\n\t\t\tshuffleM = sc.nextInt();\n\t\t\tfor (int i = 0; i < shuffleM; i++) {\n\t\t\t\tshuffleH = sc.nextInt();\n\t\t\t\t// Shuffle\n\t\t\t\tcardSet = cardSet.substring(shuffleH) + cardSet.substring(0, shuffleH);\n\t\t\t}\n\t\t\tSystem.out.println(cardSet);\n\t\t}\n\t}", "main", "{\n\t\t/*\n\t\t * ????????????????????¨???????????? aabc String str [] =read();\n\t\t * ?????£??????????????° m int cnt= 3;\n\t\t * ?????????h???????????????????????¨??????????????????\n\t\t * aabc\n\t\t * int 1; m1\n\t\t * int 2; h2\n\t\t * int 1; h1\n\t\t *\n\t\t * syso(aabc) - if()break;\n\t\t *\n\t\t *\n\t\t * int h = 3; string str = \"abcdef\";\n\t\t * string left =str.substr(0,h); //abc\n\t\t */\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// declear variable\n\t\tString cardSet;\n\t\tint shuffleM,shuffleH;\n\t\t// while section\n\t\twhile (true) {\n\t\t\tcardSet=sc.next();\n\t\t\t// break condition\n\t\t\tif(cardSet.equals(\"-\"))break;\n\t\t\t// Shuffle chance\n\t\t\tshuffleM = sc.nextInt();\n\t\t\tfor (int i = 0; i < shuffleM; i++) {\n\t\t\t\tshuffleH = sc.nextInt();\n\t\t\t\t// Shuffle\n\t\t\t\tcardSet = cardSet.substring(shuffleH) + cardSet.substring(0, shuffleH);\n\t\t\t}\n\t\t\tSystem.out.println(cardSet);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String cardSet;", "cardSet", "int shuffleM", "shuffleM", "shuffleH;", "shuffleH", "while (true) {\n\t\t\tcardSet=sc.next();\n\t\t\t// break condition\n\t\t\tif(cardSet.equals(\"-\"))break;\n\t\t\t// Shuffle chance\n\t\t\tshuffleM = sc.nextInt();\n\t\t\tfor (int i = 0; i < shuffleM; i++) {\n\t\t\t\tshuffleH = sc.nextInt();\n\t\t\t\t// Shuffle\n\t\t\t\tcardSet = cardSet.substring(shuffleH) + cardSet.substring(0, shuffleH);\n\t\t\t}\n\t\t\tSystem.out.println(cardSet);\n\t\t}", "true", "{\n\t\t\tcardSet=sc.next();\n\t\t\t// break condition\n\t\t\tif(cardSet.equals(\"-\"))break;\n\t\t\t// Shuffle chance\n\t\t\tshuffleM = sc.nextInt();\n\t\t\tfor (int i = 0; i < shuffleM; i++) {\n\t\t\t\tshuffleH = sc.nextInt();\n\t\t\t\t// Shuffle\n\t\t\t\tcardSet = cardSet.substring(shuffleH) + cardSet.substring(0, shuffleH);\n\t\t\t}\n\t\t\tSystem.out.println(cardSet);\n\t\t}", "cardSet=sc.next()", "cardSet", "sc.next()", "sc.next", "sc", "if(cardSet.equals(\"-\"))break;", "cardSet.equals(\"-\")", "cardSet.equals", "cardSet", "\"-\"", "break;", "shuffleM = sc.nextInt()", "shuffleM", "sc.nextInt()", "sc.nextInt", "sc", "for (int i = 0; i < shuffleM; i++) {\n\t\t\t\tshuffleH = sc.nextInt();\n\t\t\t\t// Shuffle\n\t\t\t\tcardSet = cardSet.substring(shuffleH) + cardSet.substring(0, shuffleH);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < shuffleM", "i", "shuffleM", "i++", "i++", "i", "{\n\t\t\t\tshuffleH = sc.nextInt();\n\t\t\t\t// Shuffle\n\t\t\t\tcardSet = cardSet.substring(shuffleH) + cardSet.substring(0, shuffleH);\n\t\t\t}", "{\n\t\t\t\tshuffleH = sc.nextInt();\n\t\t\t\t// Shuffle\n\t\t\t\tcardSet = cardSet.substring(shuffleH) + cardSet.substring(0, shuffleH);\n\t\t\t}", "shuffleH = sc.nextInt()", "shuffleH", "sc.nextInt()", "sc.nextInt", "sc", "cardSet = cardSet.substring(shuffleH) + cardSet.substring(0, shuffleH)", "cardSet", "cardSet.substring(shuffleH) + cardSet.substring(0, shuffleH)", "cardSet.substring(shuffleH)", "cardSet.substring", "cardSet", "shuffleH", "cardSet.substring(0, shuffleH)", "cardSet.substring", "cardSet", "0", "shuffleH", "System.out.println(cardSet)", "System.out.println", "System.out", "System", "System.out", "cardSet", "String[] args", "args", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t/*\n\t\t * ????????????????????¨???????????? aabc String str [] =read();\n\t\t * ?????£??????????????° m int cnt= 3;\n\t\t * ?????????h???????????????????????¨??????????????????\n\t\t * aabc\n\t\t * int 1; m1\n\t\t * int 2; h2\n\t\t * int 1; h1\n\t\t *\n\t\t * syso(aabc) - if()break;\n\t\t *\n\t\t *\n\t\t * int h = 3; string str = \"abcdef\";\n\t\t * string left =str.substr(0,h); //abc\n\t\t */\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// declear variable\n\t\tString cardSet;\n\t\tint shuffleM,shuffleH;\n\t\t// while section\n\t\twhile (true) {\n\t\t\tcardSet=sc.next();\n\t\t\t// break condition\n\t\t\tif(cardSet.equals(\"-\"))break;\n\t\t\t// Shuffle chance\n\t\t\tshuffleM = sc.nextInt();\n\t\t\tfor (int i = 0; i < shuffleM; i++) {\n\t\t\t\tshuffleH = sc.nextInt();\n\t\t\t\t// Shuffle\n\t\t\t\tcardSet = cardSet.substring(shuffleH) + cardSet.substring(0, shuffleH);\n\t\t\t}\n\t\t\tSystem.out.println(cardSet);\n\t\t}\n\t}\n}", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t/*\n\t\t * ????????????????????¨???????????? aabc String str [] =read();\n\t\t * ?????£??????????????° m int cnt= 3;\n\t\t * ?????????h???????????????????????¨??????????????????\n\t\t * aabc\n\t\t * int 1; m1\n\t\t * int 2; h2\n\t\t * int 1; h1\n\t\t *\n\t\t * syso(aabc) - if()break;\n\t\t *\n\t\t *\n\t\t * int h = 3; string str = \"abcdef\";\n\t\t * string left =str.substr(0,h); //abc\n\t\t */\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// declear variable\n\t\tString cardSet;\n\t\tint shuffleM,shuffleH;\n\t\t// while section\n\t\twhile (true) {\n\t\t\tcardSet=sc.next();\n\t\t\t// break condition\n\t\t\tif(cardSet.equals(\"-\"))break;\n\t\t\t// Shuffle chance\n\t\t\tshuffleM = sc.nextInt();\n\t\t\tfor (int i = 0; i < shuffleM; i++) {\n\t\t\t\tshuffleH = sc.nextInt();\n\t\t\t\t// Shuffle\n\t\t\t\tcardSet = cardSet.substring(shuffleH) + cardSet.substring(0, shuffleH);\n\t\t\t}\n\t\t\tSystem.out.println(cardSet);\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { /* * ????????????????????¨???????????? aabc String str [] =read(); * ?????£??????????????° m int cnt= 3; * ?????????h???????????????????????¨?????????????????? * aabc * int 1; m1 * int 2; h2 * int 1; h1 * * syso(aabc) - if()break; * * * int h = 3; string str = "abcdef"; * string left =str.substr(0,h); //abc */ Scanner sc = new Scanner(System.in); // declear variable String cardSet; int shuffleM,shuffleH; // while section while (true) { cardSet=sc.next(); // break condition if(cardSet.equals("-"))break; // Shuffle chance shuffleM = sc.nextInt(); for (int i = 0; i < shuffleM; i++) { shuffleH = sc.nextInt(); // Shuffle cardSet = cardSet.substring(shuffleH) + cardSet.substring(0, shuffleH); } System.out.println(cardSet); } } }
[ 7, 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, 41, 13, 17, 41, 13, 20, 41, 13, 20, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 4, 18, 13, 13, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 13, 0, 13, 2, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 17, 40, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 13, 41, 13, 4, 18, 13, 13, 11, 1, 41, 13, 13, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 179, 8 ], [ 179, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 11, 19 ], [ 19, 20 ], [ 11, 21 ], [ 21, 22 ], [ 21, 23 ], [ 11, 24 ], [ 24, 25 ], [ 24, 26 ], [ 11, 27 ], [ 27, 28 ], [ 27, 29 ], [ 11, 30 ], [ 30, 31 ], [ 30, 32 ], [ 11, 33 ], [ 33, 34 ], [ 33, 35 ], [ 11, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 49, 50 ], [ 38, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 38, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 38, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 60, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 72, 78 ], [ 78, 79 ], [ 78, 80 ], [ 38, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 38, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 38, 92 ], [ 92, 93 ], [ 92, 94 ], [ 38, 95 ], [ 95, 96 ], [ 11, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 102, 103 ], [ 102, 104 ], [ 97, 105 ], [ 105, 106 ], [ 106, 107 ], [ 97, 108 ], [ 109, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 109, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 109, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 131, 133 ], [ 124, 134 ], [ 134, 135 ], [ 135, 136 ], [ 124, 137 ], [ 138, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 139, 144 ], [ 144, 145 ], [ 144, 146 ], [ 109, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 147, 152 ], [ 152, 153 ], [ 152, 154 ], [ 147, 155 ], [ 155, 156 ], [ 156, 157 ], [ 147, 158 ], [ 159, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 160, 165 ], [ 165, 166 ], [ 165, 167 ], [ 109, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 11, 173 ], [ 173, 174 ], [ 174, 175 ], [ 9, 176 ], [ 176, 177 ], [ 0, 178 ], [ 178, 179 ], [ 178, 180 ] ]
[ "import java.util.Scanner;\nimport java.util.ArrayList;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n;\n\t\tint m, h;\n\t\tint sum = 0;\n\t\tint wordLength = 0;\n\t\tint count = 0;\n\t\tArrayList<String> wordsList = new ArrayList<String>();\n\t\tArrayList<Integer> shufflesList = new ArrayList<Integer>();\n\t\twhile (true) {\n\t\t\tn = sc.next();\n\t\t\tif (n.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twordsList.add(n);\n\t\t\tm = sc.nextInt();\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\th = sc.nextInt();\n\t\t\t\tsum += h;\n\t\t\t}\n\t\t\twordLength = sum % n.length();\n\t\t\tshufflesList.add(wordLength);\n\t\t\tsum = 0;\n\t\t\tcount++;\n\t\t}\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tchar[] array = wordsList.get(i).toCharArray();\n\t\t\tint shuffle = shufflesList.get(i);\n\t\t\tfor (int j = shuffle; j < array.length; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t}\n\t\t\tfor (int j = 0; j < shuffle; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tsc.close();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n;\n\t\tint m, h;\n\t\tint sum = 0;\n\t\tint wordLength = 0;\n\t\tint count = 0;\n\t\tArrayList<String> wordsList = new ArrayList<String>();\n\t\tArrayList<Integer> shufflesList = new ArrayList<Integer>();\n\t\twhile (true) {\n\t\t\tn = sc.next();\n\t\t\tif (n.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twordsList.add(n);\n\t\t\tm = sc.nextInt();\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\th = sc.nextInt();\n\t\t\t\tsum += h;\n\t\t\t}\n\t\t\twordLength = sum % n.length();\n\t\t\tshufflesList.add(wordLength);\n\t\t\tsum = 0;\n\t\t\tcount++;\n\t\t}\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tchar[] array = wordsList.get(i).toCharArray();\n\t\t\tint shuffle = shufflesList.get(i);\n\t\t\tfor (int j = shuffle; j < array.length; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t}\n\t\t\tfor (int j = 0; j < shuffle; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\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 n;\n\t\tint m, h;\n\t\tint sum = 0;\n\t\tint wordLength = 0;\n\t\tint count = 0;\n\t\tArrayList<String> wordsList = new ArrayList<String>();\n\t\tArrayList<Integer> shufflesList = new ArrayList<Integer>();\n\t\twhile (true) {\n\t\t\tn = sc.next();\n\t\t\tif (n.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twordsList.add(n);\n\t\t\tm = sc.nextInt();\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\th = sc.nextInt();\n\t\t\t\tsum += h;\n\t\t\t}\n\t\t\twordLength = sum % n.length();\n\t\t\tshufflesList.add(wordLength);\n\t\t\tsum = 0;\n\t\t\tcount++;\n\t\t}\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tchar[] array = wordsList.get(i).toCharArray();\n\t\t\tint shuffle = shufflesList.get(i);\n\t\t\tfor (int j = shuffle; j < array.length; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t}\n\t\t\tfor (int j = 0; j < shuffle; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n;\n\t\tint m, h;\n\t\tint sum = 0;\n\t\tint wordLength = 0;\n\t\tint count = 0;\n\t\tArrayList<String> wordsList = new ArrayList<String>();\n\t\tArrayList<Integer> shufflesList = new ArrayList<Integer>();\n\t\twhile (true) {\n\t\t\tn = sc.next();\n\t\t\tif (n.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twordsList.add(n);\n\t\t\tm = sc.nextInt();\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\th = sc.nextInt();\n\t\t\t\tsum += h;\n\t\t\t}\n\t\t\twordLength = sum % n.length();\n\t\t\tshufflesList.add(wordLength);\n\t\t\tsum = 0;\n\t\t\tcount++;\n\t\t}\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tchar[] array = wordsList.get(i).toCharArray();\n\t\t\tint shuffle = shufflesList.get(i);\n\t\t\tfor (int j = shuffle; j < array.length; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t}\n\t\t\tfor (int j = 0; j < shuffle; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String n;", "n", "int m", "m", "h;", "h", "int sum = 0;", "sum", "0", "int wordLength = 0;", "wordLength", "0", "int count = 0;", "count", "0", "ArrayList<String> wordsList = new ArrayList<String>();", "wordsList", "new ArrayList<String>()", "ArrayList<Integer> shufflesList = new ArrayList<Integer>();", "shufflesList", "new ArrayList<Integer>()", "while (true) {\n\t\t\tn = sc.next();\n\t\t\tif (n.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twordsList.add(n);\n\t\t\tm = sc.nextInt();\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\th = sc.nextInt();\n\t\t\t\tsum += h;\n\t\t\t}\n\t\t\twordLength = sum % n.length();\n\t\t\tshufflesList.add(wordLength);\n\t\t\tsum = 0;\n\t\t\tcount++;\n\t\t}", "true", "{\n\t\t\tn = sc.next();\n\t\t\tif (n.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twordsList.add(n);\n\t\t\tm = sc.nextInt();\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\th = sc.nextInt();\n\t\t\t\tsum += h;\n\t\t\t}\n\t\t\twordLength = sum % n.length();\n\t\t\tshufflesList.add(wordLength);\n\t\t\tsum = 0;\n\t\t\tcount++;\n\t\t}", "n = sc.next()", "n", "sc.next()", "sc.next", "sc", "if (n.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}", "n.equals(\"-\")", "n.equals", "n", "\"-\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "wordsList.add(n)", "wordsList.add", "wordsList", "n", "m = sc.nextInt()", "m", "sc.nextInt()", "sc.nextInt", "sc", "for (int i = 0; i < m; i++) {\n\t\t\t\th = sc.nextInt();\n\t\t\t\tsum += h;\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n\t\t\t\th = sc.nextInt();\n\t\t\t\tsum += h;\n\t\t\t}", "{\n\t\t\t\th = sc.nextInt();\n\t\t\t\tsum += h;\n\t\t\t}", "h = sc.nextInt()", "h", "sc.nextInt()", "sc.nextInt", "sc", "sum += h", "sum", "h", "wordLength = sum % n.length()", "wordLength", "sum % n.length()", "sum", "n.length()", "n.length", "n", "shufflesList.add(wordLength)", "shufflesList.add", "shufflesList", "wordLength", "sum = 0", "sum", "0", "count++", "count", "for (int i = 0; i < count; i++) {\n\t\t\tchar[] array = wordsList.get(i).toCharArray();\n\t\t\tint shuffle = shufflesList.get(i);\n\t\t\tfor (int j = shuffle; j < array.length; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t}\n\t\t\tfor (int j = 0; j < shuffle; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < count", "i", "count", "i++", "i++", "i", "{\n\t\t\tchar[] array = wordsList.get(i).toCharArray();\n\t\t\tint shuffle = shufflesList.get(i);\n\t\t\tfor (int j = shuffle; j < array.length; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t}\n\t\t\tfor (int j = 0; j < shuffle; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "{\n\t\t\tchar[] array = wordsList.get(i).toCharArray();\n\t\t\tint shuffle = shufflesList.get(i);\n\t\t\tfor (int j = shuffle; j < array.length; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t}\n\t\t\tfor (int j = 0; j < shuffle; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "char[] array = wordsList.get(i).toCharArray();", "array", "wordsList.get(i).toCharArray()", "wordsList.get(i).toCharArray", "wordsList.get(i)", "wordsList.get", "wordsList", "i", "int shuffle = shufflesList.get(i);", "shuffle", "shufflesList.get(i)", "shufflesList.get", "shufflesList", "i", "for (int j = shuffle; j < array.length; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t}", "int j = shuffle;", "int j = shuffle;", "j", "shuffle", "j < array.length", "j", "array.length", "array", "array.length", "j++", "j++", "j", "{\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t}", "System.out.print(array[j])", "System.out.print", "System.out", "System", "System.out", "array[j]", "array", "j", "for (int j = 0; j < shuffle; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < shuffle", "j", "shuffle", "j++", "j++", "j", "{\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t}", "System.out.print(array[j])", "System.out.print", "System.out", "System", "System.out", "array[j]", "array", "j", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "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 n;\n\t\tint m, h;\n\t\tint sum = 0;\n\t\tint wordLength = 0;\n\t\tint count = 0;\n\t\tArrayList<String> wordsList = new ArrayList<String>();\n\t\tArrayList<Integer> shufflesList = new ArrayList<Integer>();\n\t\twhile (true) {\n\t\t\tn = sc.next();\n\t\t\tif (n.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twordsList.add(n);\n\t\t\tm = sc.nextInt();\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\th = sc.nextInt();\n\t\t\t\tsum += h;\n\t\t\t}\n\t\t\twordLength = sum % n.length();\n\t\t\tshufflesList.add(wordLength);\n\t\t\tsum = 0;\n\t\t\tcount++;\n\t\t}\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tchar[] array = wordsList.get(i).toCharArray();\n\t\t\tint shuffle = shufflesList.get(i);\n\t\t\tfor (int j = shuffle; j < array.length; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t}\n\t\t\tfor (int j = 0; j < shuffle; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\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 n;\n\t\tint m, h;\n\t\tint sum = 0;\n\t\tint wordLength = 0;\n\t\tint count = 0;\n\t\tArrayList<String> wordsList = new ArrayList<String>();\n\t\tArrayList<Integer> shufflesList = new ArrayList<Integer>();\n\t\twhile (true) {\n\t\t\tn = sc.next();\n\t\t\tif (n.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twordsList.add(n);\n\t\t\tm = sc.nextInt();\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\th = sc.nextInt();\n\t\t\t\tsum += h;\n\t\t\t}\n\t\t\twordLength = sum % n.length();\n\t\t\tshufflesList.add(wordLength);\n\t\t\tsum = 0;\n\t\t\tcount++;\n\t\t}\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tchar[] array = wordsList.get(i).toCharArray();\n\t\t\tint shuffle = shufflesList.get(i);\n\t\t\tfor (int j = shuffle; j < array.length; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t}\n\t\t\tfor (int j = 0; j < shuffle; j++) {\n\t\t\t\tSystem.out.print(array[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.util.Scanner; import java.util.ArrayList; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String n; int m, h; int sum = 0; int wordLength = 0; int count = 0; ArrayList<String> wordsList = new ArrayList<String>(); ArrayList<Integer> shufflesList = new ArrayList<Integer>(); while (true) { n = sc.next(); if (n.equals("-")) { break; } wordsList.add(n); m = sc.nextInt(); for (int i = 0; i < m; i++) { h = sc.nextInt(); sum += h; } wordLength = sum % n.length(); shufflesList.add(wordLength); sum = 0; count++; } for (int i = 0; i < count; i++) { char[] array = wordsList.get(i).toCharArray(); int shuffle = shufflesList.get(i); for (int j = shuffle; j < array.length; j++) { System.out.print(array[j]); } for (int j = 0; j < shuffle; j++) { System.out.print(array[j]); } System.out.println(); } 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, 17, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 5, 13, 30, 4, 18, 18, 13, 13, 17, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 41, 13, 20, 18, 13, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 4, 18, 13, 13, 17, 13, 2, 18, 13, 13, 13, 13, 4, 18, 13, 13, 13, 13, 17, 2, 18, 13, 13, 13, 4, 18, 13, 13, 17, 13, 17, 18, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 182, 14 ], [ 182, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 24, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 24, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 49, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 55, 60 ], [ 60, 61 ], [ 49, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 49, 67 ], [ 67, 68 ], [ 67, 69 ], [ 70, 71 ], [ 70, 72 ], [ 49, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 49, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 49, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 89, 90 ], [ 89, 91 ], [ 84, 92 ], [ 92, 93 ], [ 93, 94 ], [ 84, 95 ], [ 96, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 96, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 96, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 108, 112 ], [ 108, 113 ], [ 108, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 108, 119 ], [ 96, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 120, 124 ], [ 120, 125 ], [ 120, 126 ], [ 120, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 127, 131 ], [ 96, 132 ], [ 132, 133 ], [ 133, 134 ], [ 132, 135 ], [ 132, 136 ], [ 132, 137 ], [ 132, 138 ], [ 132, 139 ], [ 139, 140 ], [ 139, 141 ], [ 49, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 145, 146 ], [ 144, 147 ], [ 49, 148 ], [ 148, 149 ], [ 149, 150 ], [ 148, 151 ], [ 43, 152 ], [ 152, 153 ], [ 152, 154 ], [ 154, 155 ], [ 155, 156 ], [ 43, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 157, 162 ], [ 162, 163 ], [ 162, 164 ], [ 157, 165 ], [ 165, 166 ], [ 166, 167 ], [ 157, 168 ], [ 169, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 170, 175 ], [ 175, 176 ], [ 176, 177 ], [ 175, 178 ], [ 15, 179 ], [ 179, 180 ], [ 0, 181 ], [ 181, 182 ], [ 181, 183 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\n/**\n * Lesson9B 1つのアルファベットが描かれた n 枚のカードの山をシャッフルします。 1回のシャッフルでは、下から h 枚のカードをまとめて取り出し、\n * それを残ったカードの山の上に積み上げます。 カードの山は以下のように1つの文字列で与えられます。 abcdeefab\n * 最初の文字が一番下にあるカード、最後の文字が一番上にあるカードを示しています。 例えば、これを h が 4 でシャッフルすると、最初の4文字 abcd\n * が、 残りの文字 eefab の末尾へ連結されるので以下のようになります: eefababcd このシャッフルを何回か繰り返します。\n * カードの山の最初の並び(文字列)と h の列をを読み込み、最後の並び(文字列)を出力するプログラム\n *\n * @author Internship\n *\n */\npublic class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// 答えの格納場所\n\t\tArrayList<String> StringAry = new ArrayList<String>();\n\n\t\t// charを繋げてStrinにする\n\t\tString StrFromChar = \"\";\n\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\twhile (true) {\n\n\t\t\t\t// 1行目読み込む\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\tif (strLine.equals(\"-\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// char型に分解\n\t\t\t\tchar[] chaAryLine1 = strLine.toCharArray();\n\n\t\t\t\t// 入れ替え後の配列\n\t\t\t\tchar[] charAfter = new char[chaAryLine1.length];\n\n\t\t\t\t// 2行目の読み込み\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 2つ目の引数を取得\n\t\t\t\tint intNum2 = Integer.parseInt(strLine);\n\n\t\t\t\t// 3行目以降を読み込む\n\t\t\t\tfor (int i = 0; i < intNum2; i++) {\n\t\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t\t// シャフルの切れ目を取得\n\t\t\t\t\tint intShuffle = Integer.parseInt(strLine);\n\n\t\t\t\t\t// 入れ替え\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, 0, charAfter,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle, intShuffle);\n\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, intShuffle, charAfter, 0,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle);\n\n\t\t\t\t\t// 入れ替え後のcharAfterの値をchaAryLine1へコピー\n\t\t\t\t\tSystem.arraycopy(charAfter, 0, chaAryLine1, 0,\n\t\t\t\t\t\t\tcharAfter.length);\n\t\t\t\t}\n\n\t\t\t\tStrFromChar = String.valueOf(charAfter);\n\n\t\t\t\tStringAry.add(StrFromChar);\n\n\t\t\t}\n\n\t\t\tint intSize = StringAry.size();\n\n\t\t\t// 出力\n\t\t\tfor (int i = 0; i < intSize; i++) {\n\t\t\t\tSystem.out.println(StringAry.get(i));\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.ArrayList;", "ArrayList", "java.util", "public class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// 答えの格納場所\n\t\tArrayList<String> StringAry = new ArrayList<String>();\n\n\t\t// charを繋げてStrinにする\n\t\tString StrFromChar = \"\";\n\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\twhile (true) {\n\n\t\t\t\t// 1行目読み込む\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\tif (strLine.equals(\"-\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// char型に分解\n\t\t\t\tchar[] chaAryLine1 = strLine.toCharArray();\n\n\t\t\t\t// 入れ替え後の配列\n\t\t\t\tchar[] charAfter = new char[chaAryLine1.length];\n\n\t\t\t\t// 2行目の読み込み\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 2つ目の引数を取得\n\t\t\t\tint intNum2 = Integer.parseInt(strLine);\n\n\t\t\t\t// 3行目以降を読み込む\n\t\t\t\tfor (int i = 0; i < intNum2; i++) {\n\t\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t\t// シャフルの切れ目を取得\n\t\t\t\t\tint intShuffle = Integer.parseInt(strLine);\n\n\t\t\t\t\t// 入れ替え\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, 0, charAfter,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle, intShuffle);\n\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, intShuffle, charAfter, 0,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle);\n\n\t\t\t\t\t// 入れ替え後のcharAfterの値をchaAryLine1へコピー\n\t\t\t\t\tSystem.arraycopy(charAfter, 0, chaAryLine1, 0,\n\t\t\t\t\t\t\tcharAfter.length);\n\t\t\t\t}\n\n\t\t\t\tStrFromChar = String.valueOf(charAfter);\n\n\t\t\t\tStringAry.add(StrFromChar);\n\n\t\t\t}\n\n\t\t\tint intSize = StringAry.size();\n\n\t\t\t// 出力\n\t\t\tfor (int i = 0; i < intSize; i++) {\n\t\t\t\tSystem.out.println(StringAry.get(i));\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}\n}", "Main", "/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// 答えの格納場所\n\t\tArrayList<String> StringAry = new ArrayList<String>();\n\n\t\t// charを繋げてStrinにする\n\t\tString StrFromChar = \"\";\n\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\twhile (true) {\n\n\t\t\t\t// 1行目読み込む\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\tif (strLine.equals(\"-\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// char型に分解\n\t\t\t\tchar[] chaAryLine1 = strLine.toCharArray();\n\n\t\t\t\t// 入れ替え後の配列\n\t\t\t\tchar[] charAfter = new char[chaAryLine1.length];\n\n\t\t\t\t// 2行目の読み込み\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 2つ目の引数を取得\n\t\t\t\tint intNum2 = Integer.parseInt(strLine);\n\n\t\t\t\t// 3行目以降を読み込む\n\t\t\t\tfor (int i = 0; i < intNum2; i++) {\n\t\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t\t// シャフルの切れ目を取得\n\t\t\t\t\tint intShuffle = Integer.parseInt(strLine);\n\n\t\t\t\t\t// 入れ替え\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, 0, charAfter,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle, intShuffle);\n\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, intShuffle, charAfter, 0,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle);\n\n\t\t\t\t\t// 入れ替え後のcharAfterの値をchaAryLine1へコピー\n\t\t\t\t\tSystem.arraycopy(charAfter, 0, chaAryLine1, 0,\n\t\t\t\t\t\t\tcharAfter.length);\n\t\t\t\t}\n\n\t\t\t\tStrFromChar = String.valueOf(charAfter);\n\n\t\t\t\tStringAry.add(StrFromChar);\n\n\t\t\t}\n\n\t\t\tint intSize = StringAry.size();\n\n\t\t\t// 出力\n\t\t\tfor (int i = 0; i < intSize; i++) {\n\t\t\t\tSystem.out.println(StringAry.get(i));\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}", "main", "{\n\n\t\t// 答えの格納場所\n\t\tArrayList<String> StringAry = new ArrayList<String>();\n\n\t\t// charを繋げてStrinにする\n\t\tString StrFromChar = \"\";\n\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\twhile (true) {\n\n\t\t\t\t// 1行目読み込む\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\tif (strLine.equals(\"-\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// char型に分解\n\t\t\t\tchar[] chaAryLine1 = strLine.toCharArray();\n\n\t\t\t\t// 入れ替え後の配列\n\t\t\t\tchar[] charAfter = new char[chaAryLine1.length];\n\n\t\t\t\t// 2行目の読み込み\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 2つ目の引数を取得\n\t\t\t\tint intNum2 = Integer.parseInt(strLine);\n\n\t\t\t\t// 3行目以降を読み込む\n\t\t\t\tfor (int i = 0; i < intNum2; i++) {\n\t\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t\t// シャフルの切れ目を取得\n\t\t\t\t\tint intShuffle = Integer.parseInt(strLine);\n\n\t\t\t\t\t// 入れ替え\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, 0, charAfter,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle, intShuffle);\n\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, intShuffle, charAfter, 0,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle);\n\n\t\t\t\t\t// 入れ替え後のcharAfterの値をchaAryLine1へコピー\n\t\t\t\t\tSystem.arraycopy(charAfter, 0, chaAryLine1, 0,\n\t\t\t\t\t\t\tcharAfter.length);\n\t\t\t\t}\n\n\t\t\t\tStrFromChar = String.valueOf(charAfter);\n\n\t\t\t\tStringAry.add(StrFromChar);\n\n\t\t\t}\n\n\t\t\tint intSize = StringAry.size();\n\n\t\t\t// 出力\n\t\t\tfor (int i = 0; i < intSize; i++) {\n\t\t\t\tSystem.out.println(StringAry.get(i));\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}", "ArrayList<String> StringAry = new ArrayList<String>();", "StringAry", "new ArrayList<String>()", "String StrFromChar = \"\";", "StrFromChar", "\"\"", "try {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\twhile (true) {\n\n\t\t\t\t// 1行目読み込む\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\tif (strLine.equals(\"-\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// char型に分解\n\t\t\t\tchar[] chaAryLine1 = strLine.toCharArray();\n\n\t\t\t\t// 入れ替え後の配列\n\t\t\t\tchar[] charAfter = new char[chaAryLine1.length];\n\n\t\t\t\t// 2行目の読み込み\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 2つ目の引数を取得\n\t\t\t\tint intNum2 = Integer.parseInt(strLine);\n\n\t\t\t\t// 3行目以降を読み込む\n\t\t\t\tfor (int i = 0; i < intNum2; i++) {\n\t\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t\t// シャフルの切れ目を取得\n\t\t\t\t\tint intShuffle = Integer.parseInt(strLine);\n\n\t\t\t\t\t// 入れ替え\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, 0, charAfter,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle, intShuffle);\n\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, intShuffle, charAfter, 0,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle);\n\n\t\t\t\t\t// 入れ替え後のcharAfterの値をchaAryLine1へコピー\n\t\t\t\t\tSystem.arraycopy(charAfter, 0, chaAryLine1, 0,\n\t\t\t\t\t\t\tcharAfter.length);\n\t\t\t\t}\n\n\t\t\t\tStrFromChar = String.valueOf(charAfter);\n\n\t\t\t\tStringAry.add(StrFromChar);\n\n\t\t\t}\n\n\t\t\tint intSize = StringAry.size();\n\n\t\t\t// 出力\n\t\t\tfor (int i = 0; i < intSize; i++) {\n\t\t\t\tSystem.out.println(StringAry.get(i));\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}", "catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}", "IOException e", "{\n\t\t\tSystem.out.println(e);\n\t\t}", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}", "NumberFormatException e", "{\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}", "System.out.println(\"数字で入力して下さい\")", "System.out.println", "System.out", "System", "System.out", "\"数字で入力して下さい\"", "{\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\twhile (true) {\n\n\t\t\t\t// 1行目読み込む\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\tif (strLine.equals(\"-\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// char型に分解\n\t\t\t\tchar[] chaAryLine1 = strLine.toCharArray();\n\n\t\t\t\t// 入れ替え後の配列\n\t\t\t\tchar[] charAfter = new char[chaAryLine1.length];\n\n\t\t\t\t// 2行目の読み込み\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 2つ目の引数を取得\n\t\t\t\tint intNum2 = Integer.parseInt(strLine);\n\n\t\t\t\t// 3行目以降を読み込む\n\t\t\t\tfor (int i = 0; i < intNum2; i++) {\n\t\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t\t// シャフルの切れ目を取得\n\t\t\t\t\tint intShuffle = Integer.parseInt(strLine);\n\n\t\t\t\t\t// 入れ替え\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, 0, charAfter,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle, intShuffle);\n\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, intShuffle, charAfter, 0,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle);\n\n\t\t\t\t\t// 入れ替え後のcharAfterの値をchaAryLine1へコピー\n\t\t\t\t\tSystem.arraycopy(charAfter, 0, chaAryLine1, 0,\n\t\t\t\t\t\t\tcharAfter.length);\n\t\t\t\t}\n\n\t\t\t\tStrFromChar = String.valueOf(charAfter);\n\n\t\t\t\tStringAry.add(StrFromChar);\n\n\t\t\t}\n\n\t\t\tint intSize = StringAry.size();\n\n\t\t\t// 出力\n\t\t\tfor (int i = 0; i < intSize; i++) {\n\t\t\t\tSystem.out.println(StringAry.get(i));\n\t\t\t}\n\n\t\t}", "BufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));", "insBR", "new BufferedReader(new InputStreamReader(System.in))", "while (true) {\n\n\t\t\t\t// 1行目読み込む\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\tif (strLine.equals(\"-\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// char型に分解\n\t\t\t\tchar[] chaAryLine1 = strLine.toCharArray();\n\n\t\t\t\t// 入れ替え後の配列\n\t\t\t\tchar[] charAfter = new char[chaAryLine1.length];\n\n\t\t\t\t// 2行目の読み込み\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 2つ目の引数を取得\n\t\t\t\tint intNum2 = Integer.parseInt(strLine);\n\n\t\t\t\t// 3行目以降を読み込む\n\t\t\t\tfor (int i = 0; i < intNum2; i++) {\n\t\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t\t// シャフルの切れ目を取得\n\t\t\t\t\tint intShuffle = Integer.parseInt(strLine);\n\n\t\t\t\t\t// 入れ替え\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, 0, charAfter,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle, intShuffle);\n\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, intShuffle, charAfter, 0,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle);\n\n\t\t\t\t\t// 入れ替え後のcharAfterの値をchaAryLine1へコピー\n\t\t\t\t\tSystem.arraycopy(charAfter, 0, chaAryLine1, 0,\n\t\t\t\t\t\t\tcharAfter.length);\n\t\t\t\t}\n\n\t\t\t\tStrFromChar = String.valueOf(charAfter);\n\n\t\t\t\tStringAry.add(StrFromChar);\n\n\t\t\t}", "true", "{\n\n\t\t\t\t// 1行目読み込む\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\tif (strLine.equals(\"-\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// char型に分解\n\t\t\t\tchar[] chaAryLine1 = strLine.toCharArray();\n\n\t\t\t\t// 入れ替え後の配列\n\t\t\t\tchar[] charAfter = new char[chaAryLine1.length];\n\n\t\t\t\t// 2行目の読み込み\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 2つ目の引数を取得\n\t\t\t\tint intNum2 = Integer.parseInt(strLine);\n\n\t\t\t\t// 3行目以降を読み込む\n\t\t\t\tfor (int i = 0; i < intNum2; i++) {\n\t\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t\t// シャフルの切れ目を取得\n\t\t\t\t\tint intShuffle = Integer.parseInt(strLine);\n\n\t\t\t\t\t// 入れ替え\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, 0, charAfter,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle, intShuffle);\n\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, intShuffle, charAfter, 0,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle);\n\n\t\t\t\t\t// 入れ替え後のcharAfterの値をchaAryLine1へコピー\n\t\t\t\t\tSystem.arraycopy(charAfter, 0, chaAryLine1, 0,\n\t\t\t\t\t\t\tcharAfter.length);\n\t\t\t\t}\n\n\t\t\t\tStrFromChar = String.valueOf(charAfter);\n\n\t\t\t\tStringAry.add(StrFromChar);\n\n\t\t\t}", "String strLine = insBR.readLine();", "strLine", "insBR.readLine()", "insBR.readLine", "insBR", "if (strLine.equals(\"-\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}", "strLine.equals(\"-\")", "strLine.equals", "strLine", "\"-\"", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "char[] chaAryLine1 = strLine.toCharArray();", "chaAryLine1", "strLine.toCharArray()", "strLine.toCharArray", "strLine", "char[] charAfter = new char[chaAryLine1.length];", "charAfter", "new char[chaAryLine1.length]", "chaAryLine1.length", "chaAryLine1", "chaAryLine1.length", "strLine = insBR.readLine()", "strLine", "insBR.readLine()", "insBR.readLine", "insBR", "int intNum2 = Integer.parseInt(strLine);", "intNum2", "Integer.parseInt(strLine)", "Integer.parseInt", "Integer", "strLine", "for (int i = 0; i < intNum2; i++) {\n\t\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t\t// シャフルの切れ目を取得\n\t\t\t\t\tint intShuffle = Integer.parseInt(strLine);\n\n\t\t\t\t\t// 入れ替え\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, 0, charAfter,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle, intShuffle);\n\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, intShuffle, charAfter, 0,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle);\n\n\t\t\t\t\t// 入れ替え後のcharAfterの値をchaAryLine1へコピー\n\t\t\t\t\tSystem.arraycopy(charAfter, 0, chaAryLine1, 0,\n\t\t\t\t\t\t\tcharAfter.length);\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < intNum2", "i", "intNum2", "i++", "i++", "i", "{\n\t\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t\t// シャフルの切れ目を取得\n\t\t\t\t\tint intShuffle = Integer.parseInt(strLine);\n\n\t\t\t\t\t// 入れ替え\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, 0, charAfter,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle, intShuffle);\n\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, intShuffle, charAfter, 0,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle);\n\n\t\t\t\t\t// 入れ替え後のcharAfterの値をchaAryLine1へコピー\n\t\t\t\t\tSystem.arraycopy(charAfter, 0, chaAryLine1, 0,\n\t\t\t\t\t\t\tcharAfter.length);\n\t\t\t\t}", "{\n\t\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t\t// シャフルの切れ目を取得\n\t\t\t\t\tint intShuffle = Integer.parseInt(strLine);\n\n\t\t\t\t\t// 入れ替え\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, 0, charAfter,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle, intShuffle);\n\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, intShuffle, charAfter, 0,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle);\n\n\t\t\t\t\t// 入れ替え後のcharAfterの値をchaAryLine1へコピー\n\t\t\t\t\tSystem.arraycopy(charAfter, 0, chaAryLine1, 0,\n\t\t\t\t\t\t\tcharAfter.length);\n\t\t\t\t}", "strLine = insBR.readLine()", "strLine", "insBR.readLine()", "insBR.readLine", "insBR", "int intShuffle = Integer.parseInt(strLine);", "intShuffle", "Integer.parseInt(strLine)", "Integer.parseInt", "Integer", "strLine", "System.arraycopy(chaAryLine1, 0, charAfter,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle, intShuffle)", "System.arraycopy", "System", "chaAryLine1", "0", "charAfter", "chaAryLine1.length - intShuffle", "chaAryLine1.length", "chaAryLine1", "chaAryLine1.length", "intShuffle", "intShuffle", "System.arraycopy(chaAryLine1, intShuffle, charAfter, 0,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle)", "System.arraycopy", "System", "chaAryLine1", "intShuffle", "charAfter", "0", "chaAryLine1.length - intShuffle", "chaAryLine1.length", "chaAryLine1", "chaAryLine1.length", "intShuffle", "System.arraycopy(charAfter, 0, chaAryLine1, 0,\n\t\t\t\t\t\t\tcharAfter.length)", "System.arraycopy", "System", "charAfter", "0", "chaAryLine1", "0", "charAfter.length", "charAfter", "charAfter.length", "StrFromChar = String.valueOf(charAfter)", "StrFromChar", "String.valueOf(charAfter)", "String.valueOf", "String", "charAfter", "StringAry.add(StrFromChar)", "StringAry.add", "StringAry", "StrFromChar", "int intSize = StringAry.size();", "intSize", "StringAry.size()", "StringAry.size", "StringAry", "for (int i = 0; i < intSize; i++) {\n\t\t\t\tSystem.out.println(StringAry.get(i));\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < intSize", "i", "intSize", "i++", "i++", "i", "{\n\t\t\t\tSystem.out.println(StringAry.get(i));\n\t\t\t}", "{\n\t\t\t\tSystem.out.println(StringAry.get(i));\n\t\t\t}", "System.out.println(StringAry.get(i))", "System.out.println", "System.out", "System", "System.out", "StringAry.get(i)", "StringAry.get", "StringAry", "i", "String[] args", "args", "public class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// 答えの格納場所\n\t\tArrayList<String> StringAry = new ArrayList<String>();\n\n\t\t// charを繋げてStrinにする\n\t\tString StrFromChar = \"\";\n\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\twhile (true) {\n\n\t\t\t\t// 1行目読み込む\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\tif (strLine.equals(\"-\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// char型に分解\n\t\t\t\tchar[] chaAryLine1 = strLine.toCharArray();\n\n\t\t\t\t// 入れ替え後の配列\n\t\t\t\tchar[] charAfter = new char[chaAryLine1.length];\n\n\t\t\t\t// 2行目の読み込み\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 2つ目の引数を取得\n\t\t\t\tint intNum2 = Integer.parseInt(strLine);\n\n\t\t\t\t// 3行目以降を読み込む\n\t\t\t\tfor (int i = 0; i < intNum2; i++) {\n\t\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t\t// シャフルの切れ目を取得\n\t\t\t\t\tint intShuffle = Integer.parseInt(strLine);\n\n\t\t\t\t\t// 入れ替え\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, 0, charAfter,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle, intShuffle);\n\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, intShuffle, charAfter, 0,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle);\n\n\t\t\t\t\t// 入れ替え後のcharAfterの値をchaAryLine1へコピー\n\t\t\t\t\tSystem.arraycopy(charAfter, 0, chaAryLine1, 0,\n\t\t\t\t\t\t\tcharAfter.length);\n\t\t\t\t}\n\n\t\t\t\tStrFromChar = String.valueOf(charAfter);\n\n\t\t\t\tStringAry.add(StrFromChar);\n\n\t\t\t}\n\n\t\t\tint intSize = StringAry.size();\n\n\t\t\t// 出力\n\t\t\tfor (int i = 0; i < intSize; i++) {\n\t\t\t\tSystem.out.println(StringAry.get(i));\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}\n}", "public class Main{\n\n\t/**\n\t * プログラムのエントリポイント\n\t *\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\t// 答えの格納場所\n\t\tArrayList<String> StringAry = new ArrayList<String>();\n\n\t\t// charを繋げてStrinにする\n\t\tString StrFromChar = \"\";\n\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\twhile (true) {\n\n\t\t\t\t// 1行目読み込む\n\t\t\t\tString strLine = insBR.readLine();\n\n\t\t\t\tif (strLine.equals(\"-\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// char型に分解\n\t\t\t\tchar[] chaAryLine1 = strLine.toCharArray();\n\n\t\t\t\t// 入れ替え後の配列\n\t\t\t\tchar[] charAfter = new char[chaAryLine1.length];\n\n\t\t\t\t// 2行目の読み込み\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t// 2つ目の引数を取得\n\t\t\t\tint intNum2 = Integer.parseInt(strLine);\n\n\t\t\t\t// 3行目以降を読み込む\n\t\t\t\tfor (int i = 0; i < intNum2; i++) {\n\t\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t\t// シャフルの切れ目を取得\n\t\t\t\t\tint intShuffle = Integer.parseInt(strLine);\n\n\t\t\t\t\t// 入れ替え\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, 0, charAfter,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle, intShuffle);\n\n\t\t\t\t\tSystem.arraycopy(chaAryLine1, intShuffle, charAfter, 0,\n\t\t\t\t\t\t\tchaAryLine1.length - intShuffle);\n\n\t\t\t\t\t// 入れ替え後のcharAfterの値をchaAryLine1へコピー\n\t\t\t\t\tSystem.arraycopy(charAfter, 0, chaAryLine1, 0,\n\t\t\t\t\t\t\tcharAfter.length);\n\t\t\t\t}\n\n\t\t\t\tStrFromChar = String.valueOf(charAfter);\n\n\t\t\t\tStringAry.add(StrFromChar);\n\n\t\t\t}\n\n\t\t\tint intSize = StringAry.size();\n\n\t\t\t// 出力\n\t\t\tfor (int i = 0; i < intSize; i++) {\n\t\t\t\tSystem.out.println(StringAry.get(i));\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"数字で入力して下さい\");\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; /** * Lesson9B 1つのアルファベットが描かれた n 枚のカードの山をシャッフルします。 1回のシャッフルでは、下から h 枚のカードをまとめて取り出し、 * それを残ったカードの山の上に積み上げます。 カードの山は以下のように1つの文字列で与えられます。 abcdeefab * 最初の文字が一番下にあるカード、最後の文字が一番上にあるカードを示しています。 例えば、これを h が 4 でシャッフルすると、最初の4文字 abcd * が、 残りの文字 eefab の末尾へ連結されるので以下のようになります: eefababcd このシャッフルを何回か繰り返します。 * カードの山の最初の並び(文字列)と h の列をを読み込み、最後の並び(文字列)を出力するプログラム * * @author Internship * */ public class Main{ /** * プログラムのエントリポイント * * @param args */ public static void main(String[] args) { // 答えの格納場所 ArrayList<String> StringAry = new ArrayList<String>(); // charを繋げてStrinにする String StrFromChar = ""; try { BufferedReader insBR = new BufferedReader(new InputStreamReader(System.in)); while (true) { // 1行目読み込む String strLine = insBR.readLine(); if (strLine.equals("-")) { break; } // char型に分解 char[] chaAryLine1 = strLine.toCharArray(); // 入れ替え後の配列 char[] charAfter = new char[chaAryLine1.length]; // 2行目の読み込み strLine = insBR.readLine(); // 2つ目の引数を取得 int intNum2 = Integer.parseInt(strLine); // 3行目以降を読み込む for (int i = 0; i < intNum2; i++) { strLine = insBR.readLine(); // シャフルの切れ目を取得 int intShuffle = Integer.parseInt(strLine); // 入れ替え System.arraycopy(chaAryLine1, 0, charAfter, chaAryLine1.length - intShuffle, intShuffle); System.arraycopy(chaAryLine1, intShuffle, charAfter, 0, chaAryLine1.length - intShuffle); // 入れ替え後のcharAfterの値をchaAryLine1へコピー System.arraycopy(charAfter, 0, chaAryLine1, 0, charAfter.length); } StrFromChar = String.valueOf(charAfter); StringAry.add(StrFromChar); } int intSize = StringAry.size(); // 出力 for (int i = 0; i < intSize; i++) { System.out.println(StringAry.get(i)); } } catch (IOException e) { System.out.println(e); } catch (NumberFormatException e) { System.out.println("数字で入力して下さい"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 42, 40, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 13, 41, 13, 4, 18, 13, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 84, 5 ], [ 84, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 19, 22 ], [ 17, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 49, 53 ], [ 41, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 41, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 23, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 23, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 23, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 6, 81 ], [ 81, 82 ], [ 0, 83 ], [ 83, 84 ], [ 83, 85 ] ]
[ "import java.util.Scanner;\npublic class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String deck = scan.nextLine();\n while(!deck.equals(\"-\")) {\n int a = scan.nextInt();\n for(int x = 0; x < a; x++){\n int s = scan.nextInt();\n String half = deck.substring(0, s);\n String rest = deck.substring(s);\n deck = rest + half;\n }\n System.out.println(deck);\n deck = scan.nextLine();\n deck = scan.nextLine();\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 deck = scan.nextLine();\n while(!deck.equals(\"-\")) {\n int a = scan.nextInt();\n for(int x = 0; x < a; x++){\n int s = scan.nextInt();\n String half = deck.substring(0, s);\n String rest = deck.substring(s);\n deck = rest + half;\n }\n System.out.println(deck);\n deck = scan.nextLine();\n deck = scan.nextLine();\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String deck = scan.nextLine();\n while(!deck.equals(\"-\")) {\n int a = scan.nextInt();\n for(int x = 0; x < a; x++){\n int s = scan.nextInt();\n String half = deck.substring(0, s);\n String rest = deck.substring(s);\n deck = rest + half;\n }\n System.out.println(deck);\n deck = scan.nextLine();\n deck = scan.nextLine();\n }\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n String deck = scan.nextLine();\n while(!deck.equals(\"-\")) {\n int a = scan.nextInt();\n for(int x = 0; x < a; x++){\n int s = scan.nextInt();\n String half = deck.substring(0, s);\n String rest = deck.substring(s);\n deck = rest + half;\n }\n System.out.println(deck);\n deck = scan.nextLine();\n deck = scan.nextLine();\n }\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String deck = scan.nextLine();", "deck", "scan.nextLine()", "scan.nextLine", "scan", "while(!deck.equals(\"-\")) {\n int a = scan.nextInt();\n for(int x = 0; x < a; x++){\n int s = scan.nextInt();\n String half = deck.substring(0, s);\n String rest = deck.substring(s);\n deck = rest + half;\n }\n System.out.println(deck);\n deck = scan.nextLine();\n deck = scan.nextLine();\n }", "!deck.equals(\"-\")", "deck.equals(\"-\")", "deck.equals", "deck", "\"-\"", "{\n int a = scan.nextInt();\n for(int x = 0; x < a; x++){\n int s = scan.nextInt();\n String half = deck.substring(0, s);\n String rest = deck.substring(s);\n deck = rest + half;\n }\n System.out.println(deck);\n deck = scan.nextLine();\n deck = scan.nextLine();\n }", "int a = scan.nextInt();", "a", "scan.nextInt()", "scan.nextInt", "scan", "for(int x = 0; x < a; x++){\n int s = scan.nextInt();\n String half = deck.substring(0, s);\n String rest = deck.substring(s);\n deck = rest + half;\n }", "int x = 0;", "int x = 0;", "x", "0", "x < a", "x", "a", "x++", "x++", "x", "{\n int s = scan.nextInt();\n String half = deck.substring(0, s);\n String rest = deck.substring(s);\n deck = rest + half;\n }", "{\n int s = scan.nextInt();\n String half = deck.substring(0, s);\n String rest = deck.substring(s);\n deck = rest + half;\n }", "int s = scan.nextInt();", "s", "scan.nextInt()", "scan.nextInt", "scan", "String half = deck.substring(0, s);", "half", "deck.substring(0, s)", "deck.substring", "deck", "0", "s", "String rest = deck.substring(s);", "rest", "deck.substring(s)", "deck.substring", "deck", "s", "deck = rest + half", "deck", "rest + half", "rest", "half", "System.out.println(deck)", "System.out.println", "System.out", "System", "System.out", "deck", "deck = scan.nextLine()", "deck", "scan.nextLine()", "scan.nextLine", "scan", "deck = scan.nextLine()", "deck", "scan.nextLine()", "scan.nextLine", "scan", "String[] args", "args", "public class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String deck = scan.nextLine();\n while(!deck.equals(\"-\")) {\n int a = scan.nextInt();\n for(int x = 0; x < a; x++){\n int s = scan.nextInt();\n String half = deck.substring(0, s);\n String rest = deck.substring(s);\n deck = rest + half;\n }\n System.out.println(deck);\n deck = scan.nextLine();\n deck = scan.nextLine();\n }\n }\n}", "public class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String deck = scan.nextLine();\n while(!deck.equals(\"-\")) {\n int a = scan.nextInt();\n for(int x = 0; x < a; x++){\n int s = scan.nextInt();\n String half = deck.substring(0, s);\n String rest = deck.substring(s);\n deck = rest + half;\n }\n System.out.println(deck);\n deck = scan.nextLine();\n deck = scan.nextLine();\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); String deck = scan.nextLine(); while(!deck.equals("-")) { int a = scan.nextInt(); for(int x = 0; x < a; x++){ int s = scan.nextInt(); String half = deck.substring(0, s); String rest = deck.substring(s); deck = rest + half; } System.out.println(deck); deck = scan.nextLine(); deck = scan.nextLine(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 17, 13, 3, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 0, 13, 13, 14, 2, 13, 17, 4, 18, 13, 13, 30, 4, 18, 13, 4, 18, 13, 13, 13, 4, 18, 13, 4, 18, 13, 17, 13, 4, 18, 13, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 115, 14 ], [ 115, 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 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 26, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 26, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 48, 49 ], [ 49, 50 ], [ 26, 51 ], [ 51, 52 ], [ 51, 53 ], [ 26, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 54, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 73, 74 ], [ 26, 75 ], [ 75, 76 ], [ 75, 77 ], [ 26, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 78, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 90, 94 ], [ 86, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 98, 102 ], [ 26, 103 ], [ 103, 104 ], [ 104, 105 ], [ 115, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 106, 112 ], [ 112, 113 ], [ 0, 114 ], [ 114, 115 ], [ 114, 116 ] ]
[ "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 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(System.out);\n while(true) {\n String line = br.readLine();\n if (\"-\".equals(line))\n \tbreak;\n int len = line.length();\n int m = Integer.parseInt(br.readLine());\n int h = 0;\n for (int i=0; i<m; i++) {\n \th += Integer.parseInt(br.readLine());\n }\n h %= len;\n if(h == 0)\n \tout.println(line);\n else {\n \tout.print(line.substring(h, len));\n \tout.println(line.substring(0, h));\n }\n out.flush();\n }\n }\n \n public static void main(String[] args) throws IOException {\n new 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 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(System.out);\n while(true) {\n String line = br.readLine();\n if (\"-\".equals(line))\n \tbreak;\n int len = line.length();\n int m = Integer.parseInt(br.readLine());\n int h = 0;\n for (int i=0; i<m; i++) {\n \th += Integer.parseInt(br.readLine());\n }\n h %= len;\n if(h == 0)\n \tout.println(line);\n else {\n \tout.print(line.substring(h, len));\n \tout.println(line.substring(0, h));\n }\n out.flush();\n }\n }\n \n public static void main(String[] args) throws IOException {\n new Main().exec();\n }\n}", "Main", "public void exec() throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(System.out);\n while(true) {\n String line = br.readLine();\n if (\"-\".equals(line))\n \tbreak;\n int len = line.length();\n int m = Integer.parseInt(br.readLine());\n int h = 0;\n for (int i=0; i<m; i++) {\n \th += Integer.parseInt(br.readLine());\n }\n h %= len;\n if(h == 0)\n \tout.println(line);\n else {\n \tout.print(line.substring(h, len));\n \tout.println(line.substring(0, h));\n }\n out.flush();\n }\n }", "exec", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(System.out);\n while(true) {\n String line = br.readLine();\n if (\"-\".equals(line))\n \tbreak;\n int len = line.length();\n int m = Integer.parseInt(br.readLine());\n int h = 0;\n for (int i=0; i<m; i++) {\n \th += Integer.parseInt(br.readLine());\n }\n h %= len;\n if(h == 0)\n \tout.println(line);\n else {\n \tout.print(line.substring(h, len));\n \tout.println(line.substring(0, h));\n }\n out.flush();\n }\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)", "while(true) {\n String line = br.readLine();\n if (\"-\".equals(line))\n \tbreak;\n int len = line.length();\n int m = Integer.parseInt(br.readLine());\n int h = 0;\n for (int i=0; i<m; i++) {\n \th += Integer.parseInt(br.readLine());\n }\n h %= len;\n if(h == 0)\n \tout.println(line);\n else {\n \tout.print(line.substring(h, len));\n \tout.println(line.substring(0, h));\n }\n out.flush();\n }", "true", "{\n String line = br.readLine();\n if (\"-\".equals(line))\n \tbreak;\n int len = line.length();\n int m = Integer.parseInt(br.readLine());\n int h = 0;\n for (int i=0; i<m; i++) {\n \th += Integer.parseInt(br.readLine());\n }\n h %= len;\n if(h == 0)\n \tout.println(line);\n else {\n \tout.print(line.substring(h, len));\n \tout.println(line.substring(0, h));\n }\n out.flush();\n }", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "if (\"-\".equals(line))\n \tbreak;", "\"-\".equals(line)", "\"-\".equals", "\"-\"", "line", "break;", "int len = line.length();", "len", "line.length()", "line.length", "line", "int m = Integer.parseInt(br.readLine());", "m", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int h = 0;", "h", "0", "for (int i=0; i<m; i++) {\n \th += Integer.parseInt(br.readLine());\n }", "int i=0;", "int i=0;", "i", "0", "i<m", "i", "m", "i++", "i++", "i", "{\n \th += Integer.parseInt(br.readLine());\n }", "{\n \th += Integer.parseInt(br.readLine());\n }", "h += Integer.parseInt(br.readLine())", "h", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "h %= len", "h", "len", "if(h == 0)\n \tout.println(line);\n else {\n \tout.print(line.substring(h, len));\n \tout.println(line.substring(0, h));\n }", "h == 0", "h", "0", "out.println(line)", "out.println", "out", "line", "{\n \tout.print(line.substring(h, len));\n \tout.println(line.substring(0, h));\n }", "out.print(line.substring(h, len))", "out.print", "out", "line.substring(h, len)", "line.substring", "line", "h", "len", "out.println(line.substring(0, h))", "out.println", "out", "line.substring(0, h)", "line.substring", "line", "0", "h", "out.flush()", "out.flush", "out", "public static void main(String[] args) throws IOException {\n new Main().exec();\n }", "main", "{\n new Main().exec();\n }", "new Main().exec()", "new Main().exec", "new Main()", "String[] args", "args", "public class Main {\n public void exec() throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(System.out);\n while(true) {\n String line = br.readLine();\n if (\"-\".equals(line))\n \tbreak;\n int len = line.length();\n int m = Integer.parseInt(br.readLine());\n int h = 0;\n for (int i=0; i<m; i++) {\n \th += Integer.parseInt(br.readLine());\n }\n h %= len;\n if(h == 0)\n \tout.println(line);\n else {\n \tout.print(line.substring(h, len));\n \tout.println(line.substring(0, h));\n }\n out.flush();\n }\n }\n \n public static void main(String[] args) throws IOException {\n new Main().exec();\n }\n}", "public class Main {\n public void exec() throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(System.out);\n while(true) {\n String line = br.readLine();\n if (\"-\".equals(line))\n \tbreak;\n int len = line.length();\n int m = Integer.parseInt(br.readLine());\n int h = 0;\n for (int i=0; i<m; i++) {\n \th += Integer.parseInt(br.readLine());\n }\n h %= len;\n if(h == 0)\n \tout.println(line);\n else {\n \tout.print(line.substring(h, len));\n \tout.println(line.substring(0, h));\n }\n out.flush();\n }\n }\n \n public static void main(String[] args) throws IOException {\n new 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); while(true) { String line = br.readLine(); if ("-".equals(line)) break; int len = line.length(); int m = Integer.parseInt(br.readLine()); int h = 0; for (int i=0; i<m; i++) { h += Integer.parseInt(br.readLine()); } h %= len; if(h == 0) out.println(line); else { out.print(line.substring(h, len)); out.println(line.substring(0, h)); } out.flush(); } } public static void main(String[] args) throws IOException { new Main().exec(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 4, 18, 13, 4, 18, 13, 3, 14, 40, 4, 13, 13, 30, 4, 18, 13, 4, 18, 13, 0, 13, 20, 41, 13, 4, 18, 13, 9, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 13, 17, 13, 4, 18, 13, 13, 4, 18, 13, 17, 28, 13, 13, 30, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 38, 5, 13, 30, 29, 17, 30, 4, 18, 13, 13, 29, 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 ], [ 125, 11 ], [ 125, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 14, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 41, 42 ], [ 42, 43 ], [ 37, 44 ], [ 26, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 55, 56 ], [ 50, 57 ], [ 57, 58 ], [ 57, 59 ], [ 50, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 50, 65 ], [ 26, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 26, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 74, 78 ], [ 26, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 81, 85 ], [ 26, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 14, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 14, 94 ], [ 94, 95 ], [ 94, 96 ], [ 94, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 12, 104 ], [ 104, 105 ], [ 125, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 109, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 116, 119 ], [ 115, 120 ], [ 120, 121 ], [ 106, 122 ], [ 122, 123 ], [ 0, 124 ], [ 124, 125 ], [ 124, 126 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.*;\npublic class Main {\n public static void main(String[] args) throws Exception {\n List<String> list = new ArrayList<String>();\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n while(true) {\n String line = br.readLine();\n if(line.equals(\"-\")){\n list.add(sb.toString());\n break;\n }\n if(!isNumber(line)){\n list.add(sb.toString());\n sb = new StringBuilder(line);\n String foo = br.readLine();//消化\n continue;\n }\n int sub = Integer.parseInt(line);\n String tmp = sb.substring(0,sub);\n sb = sb.delete(0,sub);\n sb.append(tmp);\n }\n list.remove(0);\n for(String s:list) \n System.out.println(s);\n }\n static boolean isNumber(String val) {\n \ttry {\n \t\tInteger.parseInt(val);\n \t\treturn true;\n \t} catch (NumberFormatException nfex) {\n \t\treturn false;\n \t}\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n List<String> list = new ArrayList<String>();\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n while(true) {\n String line = br.readLine();\n if(line.equals(\"-\")){\n list.add(sb.toString());\n break;\n }\n if(!isNumber(line)){\n list.add(sb.toString());\n sb = new StringBuilder(line);\n String foo = br.readLine();//消化\n continue;\n }\n int sub = Integer.parseInt(line);\n String tmp = sb.substring(0,sub);\n sb = sb.delete(0,sub);\n sb.append(tmp);\n }\n list.remove(0);\n for(String s:list) \n System.out.println(s);\n }\n static boolean isNumber(String val) {\n \ttry {\n \t\tInteger.parseInt(val);\n \t\treturn true;\n \t} catch (NumberFormatException nfex) {\n \t\treturn false;\n \t}\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n List<String> list = new ArrayList<String>();\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n while(true) {\n String line = br.readLine();\n if(line.equals(\"-\")){\n list.add(sb.toString());\n break;\n }\n if(!isNumber(line)){\n list.add(sb.toString());\n sb = new StringBuilder(line);\n String foo = br.readLine();//消化\n continue;\n }\n int sub = Integer.parseInt(line);\n String tmp = sb.substring(0,sub);\n sb = sb.delete(0,sub);\n sb.append(tmp);\n }\n list.remove(0);\n for(String s:list) \n System.out.println(s);\n }", "main", "{\n List<String> list = new ArrayList<String>();\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n while(true) {\n String line = br.readLine();\n if(line.equals(\"-\")){\n list.add(sb.toString());\n break;\n }\n if(!isNumber(line)){\n list.add(sb.toString());\n sb = new StringBuilder(line);\n String foo = br.readLine();//消化\n continue;\n }\n int sub = Integer.parseInt(line);\n String tmp = sb.substring(0,sub);\n sb = sb.delete(0,sub);\n sb.append(tmp);\n }\n list.remove(0);\n for(String s:list) \n System.out.println(s);\n }", "List<String> list = new ArrayList<String>();", "list", "new ArrayList<String>()", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "while(true) {\n String line = br.readLine();\n if(line.equals(\"-\")){\n list.add(sb.toString());\n break;\n }\n if(!isNumber(line)){\n list.add(sb.toString());\n sb = new StringBuilder(line);\n String foo = br.readLine();//消化\n continue;\n }\n int sub = Integer.parseInt(line);\n String tmp = sb.substring(0,sub);\n sb = sb.delete(0,sub);\n sb.append(tmp);\n }", "true", "{\n String line = br.readLine();\n if(line.equals(\"-\")){\n list.add(sb.toString());\n break;\n }\n if(!isNumber(line)){\n list.add(sb.toString());\n sb = new StringBuilder(line);\n String foo = br.readLine();//消化\n continue;\n }\n int sub = Integer.parseInt(line);\n String tmp = sb.substring(0,sub);\n sb = sb.delete(0,sub);\n sb.append(tmp);\n }", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "if(line.equals(\"-\")){\n list.add(sb.toString());\n break;\n }", "line.equals(\"-\")", "line.equals", "line", "\"-\"", "{\n list.add(sb.toString());\n break;\n }", "list.add(sb.toString())", "list.add", "list", "sb.toString()", "sb.toString", "sb", "break;", "if(!isNumber(line)){\n list.add(sb.toString());\n sb = new StringBuilder(line);\n String foo = br.readLine();//消化\n continue;\n }", "!isNumber(line)", "isNumber(line)", "isNumber", "line", "{\n list.add(sb.toString());\n sb = new StringBuilder(line);\n String foo = br.readLine();//消化\n continue;\n }", "list.add(sb.toString())", "list.add", "list", "sb.toString()", "sb.toString", "sb", "sb = new StringBuilder(line)", "sb", "new StringBuilder(line)", "String foo = br.readLine();", "foo", "br.readLine()", "br.readLine", "br", "continue;", "int sub = Integer.parseInt(line);", "sub", "Integer.parseInt(line)", "Integer.parseInt", "Integer", "line", "String tmp = sb.substring(0,sub);", "tmp", "sb.substring(0,sub)", "sb.substring", "sb", "0", "sub", "sb = sb.delete(0,sub)", "sb", "sb.delete(0,sub)", "sb.delete", "sb", "0", "sub", "sb.append(tmp)", "sb.append", "sb", "tmp", "list.remove(0)", "list.remove", "list", "0", "for(String s:list) \n System.out.println(s);", "String s", "list", "System.out.println(s);", "System.out.println(s)", "System.out.println", "System.out", "System", "System.out", "s", "String[] args", "args", "static boolean isNumber(String val) {\n \ttry {\n \t\tInteger.parseInt(val);\n \t\treturn true;\n \t} catch (NumberFormatException nfex) {\n \t\treturn false;\n \t}\n }", "isNumber", "{\n \ttry {\n \t\tInteger.parseInt(val);\n \t\treturn true;\n \t} catch (NumberFormatException nfex) {\n \t\treturn false;\n \t}\n }", "try {\n \t\tInteger.parseInt(val);\n \t\treturn true;\n \t} catch (NumberFormatException nfex) {\n \t\treturn false;\n \t}", "catch (NumberFormatException nfex) {\n \t\treturn false;\n \t}", "NumberFormatException nfex", "{\n \t\treturn false;\n \t}", "return false;", "false", "{\n \t\tInteger.parseInt(val);\n \t\treturn true;\n \t}", "Integer.parseInt(val)", "Integer.parseInt", "Integer", "val", "return true;", "true", "String val", "val", "public class Main {\n public static void main(String[] args) throws Exception {\n List<String> list = new ArrayList<String>();\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n while(true) {\n String line = br.readLine();\n if(line.equals(\"-\")){\n list.add(sb.toString());\n break;\n }\n if(!isNumber(line)){\n list.add(sb.toString());\n sb = new StringBuilder(line);\n String foo = br.readLine();//消化\n continue;\n }\n int sub = Integer.parseInt(line);\n String tmp = sb.substring(0,sub);\n sb = sb.delete(0,sub);\n sb.append(tmp);\n }\n list.remove(0);\n for(String s:list) \n System.out.println(s);\n }\n static boolean isNumber(String val) {\n \ttry {\n \t\tInteger.parseInt(val);\n \t\treturn true;\n \t} catch (NumberFormatException nfex) {\n \t\treturn false;\n \t}\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n List<String> list = new ArrayList<String>();\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n while(true) {\n String line = br.readLine();\n if(line.equals(\"-\")){\n list.add(sb.toString());\n break;\n }\n if(!isNumber(line)){\n list.add(sb.toString());\n sb = new StringBuilder(line);\n String foo = br.readLine();//消化\n continue;\n }\n int sub = Integer.parseInt(line);\n String tmp = sb.substring(0,sub);\n sb = sb.delete(0,sub);\n sb.append(tmp);\n }\n list.remove(0);\n for(String s:list) \n System.out.println(s);\n }\n static boolean isNumber(String val) {\n \ttry {\n \t\tInteger.parseInt(val);\n \t\treturn true;\n \t} catch (NumberFormatException nfex) {\n \t\treturn false;\n \t}\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; public class Main { public static void main(String[] args) throws Exception { List<String> list = new ArrayList<String>(); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); while(true) { String line = br.readLine(); if(line.equals("-")){ list.add(sb.toString()); break; } if(!isNumber(line)){ list.add(sb.toString()); sb = new StringBuilder(line); String foo = br.readLine();//消化 continue; } int sub = Integer.parseInt(line); String tmp = sb.substring(0,sub); sb = sb.delete(0,sub); sb.append(tmp); } list.remove(0); for(String s:list) System.out.println(s); } static boolean isNumber(String val) { try { Integer.parseInt(val); return true; } catch (NumberFormatException nfex) { return false; } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 41, 13, 20, 41, 13, 17, 41, 13, 17, 42, 17, 30, 14, 4, 18, 0, 13, 4, 18, 13, 17, 3, 4, 18, 13, 13, 0, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 17, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 103, 11 ], [ 103, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 16, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 16, 25 ], [ 25, 26 ], [ 25, 27 ], [ 16, 28 ], [ 28, 29 ], [ 28, 30 ], [ 16, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 35, 42 ], [ 34, 43 ], [ 33, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 33, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 54, 55 ], [ 33, 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 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 75, 76 ], [ 68, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 80, 84 ], [ 68, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 85, 89 ], [ 33, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 33, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 12, 100 ], [ 100, 101 ], [ 0, 102 ], [ 102, 103 ], [ 102, 104 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n String line;\n StringBuilder cards = new StringBuilder();\n int sTimes = 0;\n int cuts = 0;\n\n while(true){\n\n if( (line = br.readLine()).equals(\"-\") ) break;\n\n cards.append(line);\n sTimes = Integer.parseInt(br.readLine());\n\n for ( int i = 0; i < sTimes; i++ ) {\n cuts = Integer.parseInt(br.readLine());\n cards.append(cards.substring(0, cuts));\n cards.delete(0,cuts);\n }\n\n System.out.println(cards);\n\n cards.setLength(0);\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\n public static void main(String[] args) throws IOException {\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n String line;\n StringBuilder cards = new StringBuilder();\n int sTimes = 0;\n int cuts = 0;\n\n while(true){\n\n if( (line = br.readLine()).equals(\"-\") ) break;\n\n cards.append(line);\n sTimes = Integer.parseInt(br.readLine());\n\n for ( int i = 0; i < sTimes; i++ ) {\n cuts = Integer.parseInt(br.readLine());\n cards.append(cards.substring(0, cuts));\n cards.delete(0,cuts);\n }\n\n System.out.println(cards);\n\n cards.setLength(0);\n }\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n String line;\n StringBuilder cards = new StringBuilder();\n int sTimes = 0;\n int cuts = 0;\n\n while(true){\n\n if( (line = br.readLine()).equals(\"-\") ) break;\n\n cards.append(line);\n sTimes = Integer.parseInt(br.readLine());\n\n for ( int i = 0; i < sTimes; i++ ) {\n cuts = Integer.parseInt(br.readLine());\n cards.append(cards.substring(0, cuts));\n cards.delete(0,cuts);\n }\n\n System.out.println(cards);\n\n cards.setLength(0);\n }\n }\n }", "main", "{\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n String line;\n StringBuilder cards = new StringBuilder();\n int sTimes = 0;\n int cuts = 0;\n\n while(true){\n\n if( (line = br.readLine()).equals(\"-\") ) break;\n\n cards.append(line);\n sTimes = Integer.parseInt(br.readLine());\n\n for ( int i = 0; i < sTimes; i++ ) {\n cuts = Integer.parseInt(br.readLine());\n cards.append(cards.substring(0, cuts));\n cards.delete(0,cuts);\n }\n\n System.out.println(cards);\n\n cards.setLength(0);\n }\n }\n }", "try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n String line;\n StringBuilder cards = new StringBuilder();\n int sTimes = 0;\n int cuts = 0;\n\n while(true){\n\n if( (line = br.readLine()).equals(\"-\") ) break;\n\n cards.append(line);\n sTimes = Integer.parseInt(br.readLine());\n\n for ( int i = 0; i < sTimes; i++ ) {\n cuts = Integer.parseInt(br.readLine());\n cards.append(cards.substring(0, cuts));\n cards.delete(0,cuts);\n }\n\n System.out.println(cards);\n\n cards.setLength(0);\n }\n }", "{\n\n String line;\n StringBuilder cards = new StringBuilder();\n int sTimes = 0;\n int cuts = 0;\n\n while(true){\n\n if( (line = br.readLine()).equals(\"-\") ) break;\n\n cards.append(line);\n sTimes = Integer.parseInt(br.readLine());\n\n for ( int i = 0; i < sTimes; i++ ) {\n cuts = Integer.parseInt(br.readLine());\n cards.append(cards.substring(0, cuts));\n cards.delete(0,cuts);\n }\n\n System.out.println(cards);\n\n cards.setLength(0);\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", "StringBuilder cards = new StringBuilder();", "cards", "new StringBuilder()", "int sTimes = 0;", "sTimes", "0", "int cuts = 0;", "cuts", "0", "while(true){\n\n if( (line = br.readLine()).equals(\"-\") ) break;\n\n cards.append(line);\n sTimes = Integer.parseInt(br.readLine());\n\n for ( int i = 0; i < sTimes; i++ ) {\n cuts = Integer.parseInt(br.readLine());\n cards.append(cards.substring(0, cuts));\n cards.delete(0,cuts);\n }\n\n System.out.println(cards);\n\n cards.setLength(0);\n }", "true", "{\n\n if( (line = br.readLine()).equals(\"-\") ) break;\n\n cards.append(line);\n sTimes = Integer.parseInt(br.readLine());\n\n for ( int i = 0; i < sTimes; i++ ) {\n cuts = Integer.parseInt(br.readLine());\n cards.append(cards.substring(0, cuts));\n cards.delete(0,cuts);\n }\n\n System.out.println(cards);\n\n cards.setLength(0);\n }", "if( (line = br.readLine()).equals(\"-\") ) break;", "(line = br.readLine()).equals(\"-\")", "(line = br.readLine()).equals", "(line = br.readLine())", "line", "br.readLine()", "br.readLine", "br", "\"-\"", "break;", "cards.append(line)", "cards.append", "cards", "line", "sTimes = Integer.parseInt(br.readLine())", "sTimes", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "for ( int i = 0; i < sTimes; i++ ) {\n cuts = Integer.parseInt(br.readLine());\n cards.append(cards.substring(0, cuts));\n cards.delete(0,cuts);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < sTimes", "i", "sTimes", "i++", "i++", "i", "{\n cuts = Integer.parseInt(br.readLine());\n cards.append(cards.substring(0, cuts));\n cards.delete(0,cuts);\n }", "{\n cuts = Integer.parseInt(br.readLine());\n cards.append(cards.substring(0, cuts));\n cards.delete(0,cuts);\n }", "cuts = Integer.parseInt(br.readLine())", "cuts", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "cards.append(cards.substring(0, cuts))", "cards.append", "cards", "cards.substring(0, cuts)", "cards.substring", "cards", "0", "cuts", "cards.delete(0,cuts)", "cards.delete", "cards", "0", "cuts", "System.out.println(cards)", "System.out.println", "System.out", "System", "System.out", "cards", "cards.setLength(0)", "cards.setLength", "cards", "0", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) throws IOException {\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n String line;\n StringBuilder cards = new StringBuilder();\n int sTimes = 0;\n int cuts = 0;\n\n while(true){\n\n if( (line = br.readLine()).equals(\"-\") ) break;\n\n cards.append(line);\n sTimes = Integer.parseInt(br.readLine());\n\n for ( int i = 0; i < sTimes; i++ ) {\n cuts = Integer.parseInt(br.readLine());\n cards.append(cards.substring(0, cuts));\n cards.delete(0,cuts);\n }\n\n System.out.println(cards);\n\n cards.setLength(0);\n }\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) throws IOException {\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n String line;\n StringBuilder cards = new StringBuilder();\n int sTimes = 0;\n int cuts = 0;\n\n while(true){\n\n if( (line = br.readLine()).equals(\"-\") ) break;\n\n cards.append(line);\n sTimes = Integer.parseInt(br.readLine());\n\n for ( int i = 0; i < sTimes; i++ ) {\n cuts = Integer.parseInt(br.readLine());\n cards.append(cards.substring(0, cuts));\n cards.delete(0,cuts);\n }\n\n System.out.println(cards);\n\n cards.setLength(0);\n }\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 { try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) { String line; StringBuilder cards = new StringBuilder(); int sTimes = 0; int cuts = 0; while(true){ if( (line = br.readLine()).equals("-") ) break; cards.append(line); sTimes = Integer.parseInt(br.readLine()); for ( int i = 0; i < sTimes; i++ ) { cuts = Integer.parseInt(br.readLine()); cards.append(cards.substring(0, cuts)); cards.delete(0,cuts); } System.out.println(cards); cards.setLength(0); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 17, 0, 13, 4, 18, 13, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 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 ], [ 14, 17 ], [ 17, 18 ], [ 17, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 14, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 14, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 39, 47 ], [ 47, 48 ], [ 48, 49 ], [ 39, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 51, 57 ], [ 57, 58 ], [ 57, 59 ], [ 51, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 62, 66 ], [ 66, 67 ], [ 67, 68 ], [ 51, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 71, 75 ], [ 51, 76 ], [ 76, 77 ], [ 76, 78 ], [ 14, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 6, 85 ], [ 85, 86 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String[]args){\n\tScanner sc = new Scanner(System.in);\n\n\twhile(true){\n String W1;\n int m = 0,h=0;\n \n String W = sc.next();\n if(W.equals(\"-\"))\n break;\n \n m = sc.nextInt();;\n for(int i=0 ; i<m;i++){\n \th = sc.nextInt();\n \tW1= \"\";\n \tW1+=W.substring(h,(W.length()));\n \t\tW1+=W.substring(0,h);\n W=W1;\n\t\t}\n System.out.println(W);\n }\n \n \n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n\tpublic static void main(String[]args){\n\tScanner sc = new Scanner(System.in);\n\n\twhile(true){\n String W1;\n int m = 0,h=0;\n \n String W = sc.next();\n if(W.equals(\"-\"))\n break;\n \n m = sc.nextInt();;\n for(int i=0 ; i<m;i++){\n \th = sc.nextInt();\n \tW1= \"\";\n \tW1+=W.substring(h,(W.length()));\n \t\tW1+=W.substring(0,h);\n W=W1;\n\t\t}\n System.out.println(W);\n }\n \n \n\t}\n}", "Main", "public static void main(String[]args){\n\tScanner sc = new Scanner(System.in);\n\n\twhile(true){\n String W1;\n int m = 0,h=0;\n \n String W = sc.next();\n if(W.equals(\"-\"))\n break;\n \n m = sc.nextInt();;\n for(int i=0 ; i<m;i++){\n \th = sc.nextInt();\n \tW1= \"\";\n \tW1+=W.substring(h,(W.length()));\n \t\tW1+=W.substring(0,h);\n W=W1;\n\t\t}\n System.out.println(W);\n }\n \n \n\t}", "main", "{\n\tScanner sc = new Scanner(System.in);\n\n\twhile(true){\n String W1;\n int m = 0,h=0;\n \n String W = sc.next();\n if(W.equals(\"-\"))\n break;\n \n m = sc.nextInt();;\n for(int i=0 ; i<m;i++){\n \th = sc.nextInt();\n \tW1= \"\";\n \tW1+=W.substring(h,(W.length()));\n \t\tW1+=W.substring(0,h);\n W=W1;\n\t\t}\n System.out.println(W);\n }\n \n \n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n String W1;\n int m = 0,h=0;\n \n String W = sc.next();\n if(W.equals(\"-\"))\n break;\n \n m = sc.nextInt();;\n for(int i=0 ; i<m;i++){\n \th = sc.nextInt();\n \tW1= \"\";\n \tW1+=W.substring(h,(W.length()));\n \t\tW1+=W.substring(0,h);\n W=W1;\n\t\t}\n System.out.println(W);\n }", "true", "{\n String W1;\n int m = 0,h=0;\n \n String W = sc.next();\n if(W.equals(\"-\"))\n break;\n \n m = sc.nextInt();;\n for(int i=0 ; i<m;i++){\n \th = sc.nextInt();\n \tW1= \"\";\n \tW1+=W.substring(h,(W.length()));\n \t\tW1+=W.substring(0,h);\n W=W1;\n\t\t}\n System.out.println(W);\n }", "String W1;", "W1", "int m = 0", "m", "0", "h=0;", "h", "0", "String W = sc.next();", "W", "sc.next()", "sc.next", "sc", "if(W.equals(\"-\"))\n break;", "W.equals(\"-\")", "W.equals", "W", "\"-\"", "break;", "m = sc.nextInt()", "m", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0 ; i<m;i++){\n \th = sc.nextInt();\n \tW1= \"\";\n \tW1+=W.substring(h,(W.length()));\n \t\tW1+=W.substring(0,h);\n W=W1;\n\t\t}", "int i=0 ;", "int i=0 ;", "i", "0", "i<m", "i", "m", "i++", "i++", "i", "{\n \th = sc.nextInt();\n \tW1= \"\";\n \tW1+=W.substring(h,(W.length()));\n \t\tW1+=W.substring(0,h);\n W=W1;\n\t\t}", "{\n \th = sc.nextInt();\n \tW1= \"\";\n \tW1+=W.substring(h,(W.length()));\n \t\tW1+=W.substring(0,h);\n W=W1;\n\t\t}", "h = sc.nextInt()", "h", "sc.nextInt()", "sc.nextInt", "sc", "W1= \"\"", "W1", "\"\"", "W1+=W.substring(h,(W.length()))", "W1", "W.substring(h,(W.length()))", "W.substring", "W", "h", "(W.length())", "W.length", "W", "W1+=W.substring(0,h)", "W1", "W.substring(0,h)", "W.substring", "W", "0", "h", "W=W1", "W", "W1", "System.out.println(W)", "System.out.println", "System.out", "System", "System.out", "W", "String[]args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[]args){ Scanner sc = new Scanner(System.in); while(true){ String W1; int m = 0,h=0; String W = sc.next(); if(W.equals("-")) break; m = sc.nextInt();; for(int i=0 ; i<m;i++){ h = sc.nextInt(); W1= ""; W1+=W.substring(h,(W.length())); W1+=W.substring(0,h); W=W1; } System.out.println(W); } } }
[ 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, 17, 42, 2, 4, 18, 0, 13, 4, 18, 13, 17, 17, 30, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 4, 18, 13, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 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 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 28, 35 ], [ 27, 36 ], [ 26, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 43, 44 ], [ 44, 45 ], [ 37, 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 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 65, 66 ], [ 58, 67 ], [ 67, 68 ], [ 67, 69 ], [ 58, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 58, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 83, 87 ], [ 58, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 37, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 6, 99 ], [ 99, 100 ] ]
[ "/* ITP1_9_B */\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 cards = \"\";\n\n while((cards = br.readLine()).equals(\"-\") == false){\n int shuffle = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < shuffle; i++){\n int h = Integer.parseInt(br.readLine());\n StringBuilder sb = new StringBuilder();\n sb.append(cards.substring(h, cards.length()));\n sb.append(cards.substring(0, h));\n cards = sb.toString();\n }\n System.out.println(cards);\n }\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 String cards = \"\";\n\n while((cards = br.readLine()).equals(\"-\") == false){\n int shuffle = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < shuffle; i++){\n int h = Integer.parseInt(br.readLine());\n StringBuilder sb = new StringBuilder();\n sb.append(cards.substring(h, cards.length()));\n sb.append(cards.substring(0, h));\n cards = sb.toString();\n }\n System.out.println(cards);\n }\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 String cards = \"\";\n\n while((cards = br.readLine()).equals(\"-\") == false){\n int shuffle = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < shuffle; i++){\n int h = Integer.parseInt(br.readLine());\n StringBuilder sb = new StringBuilder();\n sb.append(cards.substring(h, cards.length()));\n sb.append(cards.substring(0, h));\n cards = sb.toString();\n }\n System.out.println(cards);\n }\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 String cards = \"\";\n\n while((cards = br.readLine()).equals(\"-\") == false){\n int shuffle = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < shuffle; i++){\n int h = Integer.parseInt(br.readLine());\n StringBuilder sb = new StringBuilder();\n sb.append(cards.substring(h, cards.length()));\n sb.append(cards.substring(0, h));\n cards = sb.toString();\n }\n System.out.println(cards);\n }\n\n }catch(Exception e){\n System.out.println(e);\n }\n }", "try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String cards = \"\";\n\n while((cards = br.readLine()).equals(\"-\") == false){\n int shuffle = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < shuffle; i++){\n int h = Integer.parseInt(br.readLine());\n StringBuilder sb = new StringBuilder();\n sb.append(cards.substring(h, cards.length()));\n sb.append(cards.substring(0, h));\n cards = sb.toString();\n }\n System.out.println(cards);\n }\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 String cards = \"\";\n\n while((cards = br.readLine()).equals(\"-\") == false){\n int shuffle = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < shuffle; i++){\n int h = Integer.parseInt(br.readLine());\n StringBuilder sb = new StringBuilder();\n sb.append(cards.substring(h, cards.length()));\n sb.append(cards.substring(0, h));\n cards = sb.toString();\n }\n System.out.println(cards);\n }\n\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String cards = \"\";", "cards", "\"\"", "while((cards = br.readLine()).equals(\"-\") == false){\n int shuffle = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < shuffle; i++){\n int h = Integer.parseInt(br.readLine());\n StringBuilder sb = new StringBuilder();\n sb.append(cards.substring(h, cards.length()));\n sb.append(cards.substring(0, h));\n cards = sb.toString();\n }\n System.out.println(cards);\n }", "(cards = br.readLine()).equals(\"-\") == false", "(cards = br.readLine()).equals(\"-\")", "(cards = br.readLine()).equals", "(cards = br.readLine())", "cards", "br.readLine()", "br.readLine", "br", "\"-\"", "false", "{\n int shuffle = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < shuffle; i++){\n int h = Integer.parseInt(br.readLine());\n StringBuilder sb = new StringBuilder();\n sb.append(cards.substring(h, cards.length()));\n sb.append(cards.substring(0, h));\n cards = sb.toString();\n }\n System.out.println(cards);\n }", "int shuffle = Integer.parseInt(br.readLine());", "shuffle", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "for(int i = 0; i < shuffle; i++){\n int h = Integer.parseInt(br.readLine());\n StringBuilder sb = new StringBuilder();\n sb.append(cards.substring(h, cards.length()));\n sb.append(cards.substring(0, h));\n cards = sb.toString();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < shuffle", "i", "shuffle", "i++", "i++", "i", "{\n int h = Integer.parseInt(br.readLine());\n StringBuilder sb = new StringBuilder();\n sb.append(cards.substring(h, cards.length()));\n sb.append(cards.substring(0, h));\n cards = sb.toString();\n }", "{\n int h = Integer.parseInt(br.readLine());\n StringBuilder sb = new StringBuilder();\n sb.append(cards.substring(h, cards.length()));\n sb.append(cards.substring(0, h));\n cards = sb.toString();\n }", "int h = Integer.parseInt(br.readLine());", "h", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "sb.append(cards.substring(h, cards.length()))", "sb.append", "sb", "cards.substring(h, cards.length())", "cards.substring", "cards", "h", "cards.length()", "cards.length", "cards", "sb.append(cards.substring(0, h))", "sb.append", "sb", "cards.substring(0, h)", "cards.substring", "cards", "0", "h", "cards = sb.toString()", "cards", "sb.toString()", "sb.toString", "sb", "System.out.println(cards)", "System.out.println", "System.out", "System", "System.out", "cards", "String[] args", "args" ]
/* ITP1_9_B */ import java.io.*; class Main { public static void main(String[] args) { try{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String cards = ""; while((cards = br.readLine()).equals("-") == false){ int shuffle = Integer.parseInt(br.readLine()); for(int i = 0; i < shuffle; i++){ int h = Integer.parseInt(br.readLine()); StringBuilder sb = new StringBuilder(); sb.append(cards.substring(h, cards.length())); sb.append(cards.substring(0, h)); cards = sb.toString(); } System.out.println(cards); } }catch(Exception e){ System.out.println(e); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 17, 13, 3, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 2, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 13, 2, 4, 18, 13, 13, 4, 18, 13, 2, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 31, 36 ], [ 25, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 25, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 47, 48 ], [ 47, 49 ], [ 42, 50 ], [ 50, 51 ], [ 51, 52 ], [ 42, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 54, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 54, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 69, 73 ], [ 54, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 79, 83 ], [ 25, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 87, 88 ], [ 87, 89 ], [ 8, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 6, 96 ], [ 96, 97 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n StringBuilder output = new StringBuilder();\n String word;\n int m;\n int h;\n int original_length;\n while (true) {\n word = scan.next();\n if (\"-\".equals(word))\n break;\n m = scan.nextInt();\n for (int i = 0; i < m; i++) {\n h = scan.nextInt();\n original_length = word.length();\n word = word + word.substring(0,h);\n word = word.substring(word.length() - original_length);\n }\n output.append(word + '\\n');\n }\n System.out.print(output);\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 StringBuilder output = new StringBuilder();\n String word;\n int m;\n int h;\n int original_length;\n while (true) {\n word = scan.next();\n if (\"-\".equals(word))\n break;\n m = scan.nextInt();\n for (int i = 0; i < m; i++) {\n h = scan.nextInt();\n original_length = word.length();\n word = word + word.substring(0,h);\n word = word.substring(word.length() - original_length);\n }\n output.append(word + '\\n');\n }\n System.out.print(output);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n StringBuilder output = new StringBuilder();\n String word;\n int m;\n int h;\n int original_length;\n while (true) {\n word = scan.next();\n if (\"-\".equals(word))\n break;\n m = scan.nextInt();\n for (int i = 0; i < m; i++) {\n h = scan.nextInt();\n original_length = word.length();\n word = word + word.substring(0,h);\n word = word.substring(word.length() - original_length);\n }\n output.append(word + '\\n');\n }\n System.out.print(output);\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n StringBuilder output = new StringBuilder();\n String word;\n int m;\n int h;\n int original_length;\n while (true) {\n word = scan.next();\n if (\"-\".equals(word))\n break;\n m = scan.nextInt();\n for (int i = 0; i < m; i++) {\n h = scan.nextInt();\n original_length = word.length();\n word = word + word.substring(0,h);\n word = word.substring(word.length() - original_length);\n }\n output.append(word + '\\n');\n }\n System.out.print(output);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "StringBuilder output = new StringBuilder();", "output", "new StringBuilder()", "String word;", "word", "int m;", "m", "int h;", "h", "int original_length;", "original_length", "while (true) {\n word = scan.next();\n if (\"-\".equals(word))\n break;\n m = scan.nextInt();\n for (int i = 0; i < m; i++) {\n h = scan.nextInt();\n original_length = word.length();\n word = word + word.substring(0,h);\n word = word.substring(word.length() - original_length);\n }\n output.append(word + '\\n');\n }", "true", "{\n word = scan.next();\n if (\"-\".equals(word))\n break;\n m = scan.nextInt();\n for (int i = 0; i < m; i++) {\n h = scan.nextInt();\n original_length = word.length();\n word = word + word.substring(0,h);\n word = word.substring(word.length() - original_length);\n }\n output.append(word + '\\n');\n }", "word = scan.next()", "word", "scan.next()", "scan.next", "scan", "if (\"-\".equals(word))\n break;", "\"-\".equals(word)", "\"-\".equals", "\"-\"", "word", "break;", "m = scan.nextInt()", "m", "scan.nextInt()", "scan.nextInt", "scan", "for (int i = 0; i < m; i++) {\n h = scan.nextInt();\n original_length = word.length();\n word = word + word.substring(0,h);\n word = word.substring(word.length() - original_length);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n h = scan.nextInt();\n original_length = word.length();\n word = word + word.substring(0,h);\n word = word.substring(word.length() - original_length);\n }", "{\n h = scan.nextInt();\n original_length = word.length();\n word = word + word.substring(0,h);\n word = word.substring(word.length() - original_length);\n }", "h = scan.nextInt()", "h", "scan.nextInt()", "scan.nextInt", "scan", "original_length = word.length()", "original_length", "word.length()", "word.length", "word", "word = word + word.substring(0,h)", "word", "word + word.substring(0,h)", "word", "word.substring(0,h)", "word.substring", "word", "0", "h", "word = word.substring(word.length() - original_length)", "word", "word.substring(word.length() - original_length)", "word.substring", "word", "word.length() - original_length", "word.length()", "word.length", "word", "original_length", "output.append(word + '\\n')", "output.append", "output", "word + '\\n'", "word", "'\\n'", "System.out.print(output)", "System.out.print", "System.out", "System", "System.out", "output", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); StringBuilder output = new StringBuilder(); String word; int m; int h; int original_length; while (true) { word = scan.next(); if ("-".equals(word)) break; m = scan.nextInt(); for (int i = 0; i < m; i++) { h = scan.nextInt(); original_length = word.length(); word = word + word.substring(0,h); word = word.substring(word.length() - original_length); } output.append(word + '\n'); } System.out.print(output); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 0, 13, 4, 18, 13, 41, 13, 41, 13, 42, 40, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 2, 4, 18, 13, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 13, 0, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 79, 5 ], [ 79, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 47, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 55, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 60, 64 ], [ 29, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 29, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 6, 76 ], [ 76, 77 ], [ 0, 78 ], [ 78, 79 ], [ 78, 80 ] ]
[ "import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String words;\n words = scan.next();\n int n, cuting;\n \n while(!words.equals(\"-\")){\n n=scan.nextInt();\n \n for(int i=0; i<n; i++){\n cuting=scan.nextInt();\n words=words.substring(cuting)+words.substring(0, cuting);\n }\n System.out.println(words);\n words=scan.next();\n }\n \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;\n words = scan.next();\n int n, cuting;\n \n while(!words.equals(\"-\")){\n n=scan.nextInt();\n \n for(int i=0; i<n; i++){\n cuting=scan.nextInt();\n words=words.substring(cuting)+words.substring(0, cuting);\n }\n System.out.println(words);\n words=scan.next();\n }\n \n }\n}", "Main", "public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String words;\n words = scan.next();\n int n, cuting;\n \n while(!words.equals(\"-\")){\n n=scan.nextInt();\n \n for(int i=0; i<n; i++){\n cuting=scan.nextInt();\n words=words.substring(cuting)+words.substring(0, cuting);\n }\n System.out.println(words);\n words=scan.next();\n }\n \n }", "main", "{\n Scanner scan=new Scanner(System.in);\n String words;\n words = scan.next();\n int n, cuting;\n \n while(!words.equals(\"-\")){\n n=scan.nextInt();\n \n for(int i=0; i<n; i++){\n cuting=scan.nextInt();\n words=words.substring(cuting)+words.substring(0, cuting);\n }\n System.out.println(words);\n words=scan.next();\n }\n \n }", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "String words;", "words", "words = scan.next()", "words", "scan.next()", "scan.next", "scan", "int n", "n", "cuting;", "cuting", "while(!words.equals(\"-\")){\n n=scan.nextInt();\n \n for(int i=0; i<n; i++){\n cuting=scan.nextInt();\n words=words.substring(cuting)+words.substring(0, cuting);\n }\n System.out.println(words);\n words=scan.next();\n }", "!words.equals(\"-\")", "words.equals(\"-\")", "words.equals", "words", "\"-\"", "{\n n=scan.nextInt();\n \n for(int i=0; i<n; i++){\n cuting=scan.nextInt();\n words=words.substring(cuting)+words.substring(0, cuting);\n }\n System.out.println(words);\n words=scan.next();\n }", "n=scan.nextInt()", "n", "scan.nextInt()", "scan.nextInt", "scan", "for(int i=0; i<n; i++){\n cuting=scan.nextInt();\n words=words.substring(cuting)+words.substring(0, cuting);\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n cuting=scan.nextInt();\n words=words.substring(cuting)+words.substring(0, cuting);\n }", "{\n cuting=scan.nextInt();\n words=words.substring(cuting)+words.substring(0, cuting);\n }", "cuting=scan.nextInt()", "cuting", "scan.nextInt()", "scan.nextInt", "scan", "words=words.substring(cuting)+words.substring(0, cuting)", "words", "words.substring(cuting)+words.substring(0, cuting)", "words.substring(cuting)", "words.substring", "words", "cuting", "words.substring(0, cuting)", "words.substring", "words", "0", "cuting", "System.out.println(words)", "System.out.println", "System.out", "System", "System.out", "words", "words=scan.next()", "words", "scan.next()", "scan.next", "scan", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String words;\n words = scan.next();\n int n, cuting;\n \n while(!words.equals(\"-\")){\n n=scan.nextInt();\n \n for(int i=0; i<n; i++){\n cuting=scan.nextInt();\n words=words.substring(cuting)+words.substring(0, cuting);\n }\n System.out.println(words);\n words=scan.next();\n }\n \n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner scan=new Scanner(System.in);\n String words;\n words = scan.next();\n int n, cuting;\n \n while(!words.equals(\"-\")){\n n=scan.nextInt();\n \n for(int i=0; i<n; i++){\n cuting=scan.nextInt();\n words=words.substring(cuting)+words.substring(0, cuting);\n }\n System.out.println(words);\n words=scan.next();\n }\n \n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan=new Scanner(System.in); String words; words = scan.next(); int n, cuting; while(!words.equals("-")){ n=scan.nextInt(); for(int i=0; i<n; i++){ cuting=scan.nextInt(); words=words.substring(cuting)+words.substring(0, cuting); } System.out.println(words); words=scan.next(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 13, 0, 13, 2, 4, 18, 13, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 88, 11 ], [ 88, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 26, 31 ], [ 20, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 37, 38 ], [ 38, 39 ], [ 20, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 40, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 59, 60 ], [ 52, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 63, 67 ], [ 52, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 70, 78 ], [ 20, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 12, 85 ], [ 85, 86 ], [ 0, 87 ], [ 87, 88 ], [ 87, 89 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\npublic class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString key = br.readLine();\n\t\t\tif(key.equals(\"-\")) break;\n\t\t\tint n=Integer.parseInt(br.readLine());\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tint ch=Integer.parseInt(br.readLine());\n\t\t\t\tString tmpstr=key.substring(0,ch);\n\t\t\t\tkey=key.substring(ch, key.length())+tmpstr;\n\t\t\t}\n\t\t\tSystem.out.println(key);\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString key = br.readLine();\n\t\t\tif(key.equals(\"-\")) break;\n\t\t\tint n=Integer.parseInt(br.readLine());\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tint ch=Integer.parseInt(br.readLine());\n\t\t\t\tString tmpstr=key.substring(0,ch);\n\t\t\t\tkey=key.substring(ch, key.length())+tmpstr;\n\t\t\t}\n\t\t\tSystem.out.println(key);\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\twhile(true){\n\t\t\tString key = br.readLine();\n\t\t\tif(key.equals(\"-\")) break;\n\t\t\tint n=Integer.parseInt(br.readLine());\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tint ch=Integer.parseInt(br.readLine());\n\t\t\t\tString tmpstr=key.substring(0,ch);\n\t\t\t\tkey=key.substring(ch, key.length())+tmpstr;\n\t\t\t}\n\t\t\tSystem.out.println(key);\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString key = br.readLine();\n\t\t\tif(key.equals(\"-\")) break;\n\t\t\tint n=Integer.parseInt(br.readLine());\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tint ch=Integer.parseInt(br.readLine());\n\t\t\t\tString tmpstr=key.substring(0,ch);\n\t\t\t\tkey=key.substring(ch, key.length())+tmpstr;\n\t\t\t}\n\t\t\tSystem.out.println(key);\n\t\t}\n\t}", "BufferedReader br=new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n\t\t\tString key = br.readLine();\n\t\t\tif(key.equals(\"-\")) break;\n\t\t\tint n=Integer.parseInt(br.readLine());\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tint ch=Integer.parseInt(br.readLine());\n\t\t\t\tString tmpstr=key.substring(0,ch);\n\t\t\t\tkey=key.substring(ch, key.length())+tmpstr;\n\t\t\t}\n\t\t\tSystem.out.println(key);\n\t\t}", "true", "{\n\t\t\tString key = br.readLine();\n\t\t\tif(key.equals(\"-\")) break;\n\t\t\tint n=Integer.parseInt(br.readLine());\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tint ch=Integer.parseInt(br.readLine());\n\t\t\t\tString tmpstr=key.substring(0,ch);\n\t\t\t\tkey=key.substring(ch, key.length())+tmpstr;\n\t\t\t}\n\t\t\tSystem.out.println(key);\n\t\t}", "String key = br.readLine();", "key", "br.readLine()", "br.readLine", "br", "if(key.equals(\"-\")) break;", "key.equals(\"-\")", "key.equals", "key", "\"-\"", "break;", "int n=Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "for(int i=0;i<n;i++){\n\t\t\t\tint ch=Integer.parseInt(br.readLine());\n\t\t\t\tString tmpstr=key.substring(0,ch);\n\t\t\t\tkey=key.substring(ch, key.length())+tmpstr;\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tint ch=Integer.parseInt(br.readLine());\n\t\t\t\tString tmpstr=key.substring(0,ch);\n\t\t\t\tkey=key.substring(ch, key.length())+tmpstr;\n\t\t\t}", "{\n\t\t\t\tint ch=Integer.parseInt(br.readLine());\n\t\t\t\tString tmpstr=key.substring(0,ch);\n\t\t\t\tkey=key.substring(ch, key.length())+tmpstr;\n\t\t\t}", "int ch=Integer.parseInt(br.readLine());", "ch", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "String tmpstr=key.substring(0,ch);", "tmpstr", "key.substring(0,ch)", "key.substring", "key", "0", "ch", "key=key.substring(ch, key.length())+tmpstr", "key", "key.substring(ch, key.length())+tmpstr", "key.substring(ch, key.length())", "key.substring", "key", "ch", "key.length()", "key.length", "key", "tmpstr", "System.out.println(key)", "System.out.println", "System.out", "System", "System.out", "key", "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\twhile(true){\n\t\t\tString key = br.readLine();\n\t\t\tif(key.equals(\"-\")) break;\n\t\t\tint n=Integer.parseInt(br.readLine());\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tint ch=Integer.parseInt(br.readLine());\n\t\t\t\tString tmpstr=key.substring(0,ch);\n\t\t\t\tkey=key.substring(ch, key.length())+tmpstr;\n\t\t\t}\n\t\t\tSystem.out.println(key);\n\t\t}\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\twhile(true){\n\t\t\tString key = br.readLine();\n\t\t\tif(key.equals(\"-\")) break;\n\t\t\tint n=Integer.parseInt(br.readLine());\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tint ch=Integer.parseInt(br.readLine());\n\t\t\t\tString tmpstr=key.substring(0,ch);\n\t\t\t\tkey=key.substring(ch, key.length())+tmpstr;\n\t\t\t}\n\t\t\tSystem.out.println(key);\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)); while(true){ String key = br.readLine(); if(key.equals("-")) break; int n=Integer.parseInt(br.readLine()); for(int i=0;i<n;i++){ int ch=Integer.parseInt(br.readLine()); String tmpstr=key.substring(0,ch); key=key.substring(ch, key.length())+tmpstr; } System.out.println(key); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 2, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 78, 5 ], [ 78, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 22, 29 ], [ 20, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 30, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 36, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 48, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 57, 61 ], [ 61, 62 ], [ 62, 63 ], [ 56, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 64, 68 ], [ 30, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 6, 75 ], [ 75, 76 ], [ 0, 77 ], [ 77, 78 ], [ 77, 79 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n String s;\n int m;\n int h;\n int i;\n while(!(s=sc.next()).equals(\"-\")){\n m=sc.nextInt();\n for(i=0;i<m;i++){\n h=sc.nextInt();\n s=s.substring(h,s.length())+s.substring(0,h);\n }\n System.out.println(s);\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;\n int m;\n int h;\n int i;\n while(!(s=sc.next()).equals(\"-\")){\n m=sc.nextInt();\n for(i=0;i<m;i++){\n h=sc.nextInt();\n s=s.substring(h,s.length())+s.substring(0,h);\n }\n System.out.println(s);\n }\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n String s;\n int m;\n int h;\n int i;\n while(!(s=sc.next()).equals(\"-\")){\n m=sc.nextInt();\n for(i=0;i<m;i++){\n h=sc.nextInt();\n s=s.substring(h,s.length())+s.substring(0,h);\n }\n System.out.println(s);\n }\n }", "main", "{\n Scanner sc=new Scanner(System.in);\n String s;\n int m;\n int h;\n int i;\n while(!(s=sc.next()).equals(\"-\")){\n m=sc.nextInt();\n for(i=0;i<m;i++){\n h=sc.nextInt();\n s=s.substring(h,s.length())+s.substring(0,h);\n }\n System.out.println(s);\n }\n }", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s;", "s", "int m;", "m", "int h;", "h", "int i;", "i", "while(!(s=sc.next()).equals(\"-\")){\n m=sc.nextInt();\n for(i=0;i<m;i++){\n h=sc.nextInt();\n s=s.substring(h,s.length())+s.substring(0,h);\n }\n System.out.println(s);\n }", "!(s=sc.next()).equals(\"-\")", "(s=sc.next()).equals(\"-\")", "(s=sc.next()).equals", "(s=sc.next())", "s", "sc.next()", "sc.next", "sc", "\"-\"", "{\n m=sc.nextInt();\n for(i=0;i<m;i++){\n h=sc.nextInt();\n s=s.substring(h,s.length())+s.substring(0,h);\n }\n System.out.println(s);\n }", "m=sc.nextInt()", "m", "sc.nextInt()", "sc.nextInt", "sc", "for(i=0;i<m;i++){\n h=sc.nextInt();\n s=s.substring(h,s.length())+s.substring(0,h);\n }", "i=0;", "i=0", "i", "0", "i<m", "i", "m", "i++", "i++", "i", "{\n h=sc.nextInt();\n s=s.substring(h,s.length())+s.substring(0,h);\n }", "{\n h=sc.nextInt();\n s=s.substring(h,s.length())+s.substring(0,h);\n }", "h=sc.nextInt()", "h", "sc.nextInt()", "sc.nextInt", "sc", "s=s.substring(h,s.length())+s.substring(0,h)", "s", "s.substring(h,s.length())+s.substring(0,h)", "s.substring(h,s.length())", "s.substring", "s", "h", "s.length()", "s.length", "s", "s.substring(0,h)", "s.substring", "s", "0", "h", "System.out.println(s)", "System.out.println", "System.out", "System", "System.out", "s", "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;\n int m;\n int h;\n int i;\n while(!(s=sc.next()).equals(\"-\")){\n m=sc.nextInt();\n for(i=0;i<m;i++){\n h=sc.nextInt();\n s=s.substring(h,s.length())+s.substring(0,h);\n }\n System.out.println(s);\n }\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n String s;\n int m;\n int h;\n int i;\n while(!(s=sc.next()).equals(\"-\")){\n m=sc.nextInt();\n for(i=0;i<m;i++){\n h=sc.nextInt();\n s=s.substring(h,s.length())+s.substring(0,h);\n }\n System.out.println(s);\n }\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc=new Scanner(System.in); String s; int m; int h; int i; while(!(s=sc.next()).equals("-")){ m=sc.nextInt(); for(i=0;i<m;i++){ h=sc.nextInt(); s=s.substring(h,s.length())+s.substring(0,h); } System.out.println(s); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 4, 18, 13, 29, 0, 13, 4, 18, 13, 0, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 18, 13, 13, 41, 13, 4, 18, 13, 18, 13, 13, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 105, 8 ], [ 105, 9 ], [ 9, 10 ], [ 105, 11 ], [ 11, 12 ], [ 105, 13 ], [ 13, 14 ], [ 105, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 34, 38 ], [ 23, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 23, 44 ], [ 44, 45 ], [ 44, 46 ], [ 23, 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 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 60, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 71, 72 ], [ 60, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 75, 79 ], [ 79, 80 ], [ 79, 81 ], [ 60, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 87, 88 ], [ 87, 89 ], [ 84, 90 ], [ 60, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 23, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 15, 102 ], [ 102, 103 ], [ 0, 104 ], [ 104, 105 ], [ 104, 106 ] ]
[ "import java.util.Scanner;\nimport java.util.Arrays;\npublic class Main {\n public static int[] n;\n public static int m;\n public static String s;\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true){\n s=sc.next();\n if(s.equals(\"-\")){\n sc.close();\n return;\n }\n m=sc.nextInt();\n n=new int[m];\n for(int i=0;i<m;i++){\n int len=s.length();\n n[i]=sc.nextInt();\n String a=s.substring(0,n[i]);\n String b=s.substring(n[i],len);\n s=b+a;\n }\n System.out.println(s);\n }\n}\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.Arrays;", "Arrays", "java.util", "public class Main {\n public static int[] n;\n public static int m;\n public static String s;\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true){\n s=sc.next();\n if(s.equals(\"-\")){\n sc.close();\n return;\n }\n m=sc.nextInt();\n n=new int[m];\n for(int i=0;i<m;i++){\n int len=s.length();\n n[i]=sc.nextInt();\n String a=s.substring(0,n[i]);\n String b=s.substring(n[i],len);\n s=b+a;\n }\n System.out.println(s);\n }\n}\n}", "Main", "public static int[] n;", "n", "public static int m;", "m", "public static String s;", "s", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true){\n s=sc.next();\n if(s.equals(\"-\")){\n sc.close();\n return;\n }\n m=sc.nextInt();\n n=new int[m];\n for(int i=0;i<m;i++){\n int len=s.length();\n n[i]=sc.nextInt();\n String a=s.substring(0,n[i]);\n String b=s.substring(n[i],len);\n s=b+a;\n }\n System.out.println(s);\n }\n}", "main", "{\n Scanner sc = new Scanner(System.in);\n while(true){\n s=sc.next();\n if(s.equals(\"-\")){\n sc.close();\n return;\n }\n m=sc.nextInt();\n n=new int[m];\n for(int i=0;i<m;i++){\n int len=s.length();\n n[i]=sc.nextInt();\n String a=s.substring(0,n[i]);\n String b=s.substring(n[i],len);\n s=b+a;\n }\n System.out.println(s);\n }\n}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n s=sc.next();\n if(s.equals(\"-\")){\n sc.close();\n return;\n }\n m=sc.nextInt();\n n=new int[m];\n for(int i=0;i<m;i++){\n int len=s.length();\n n[i]=sc.nextInt();\n String a=s.substring(0,n[i]);\n String b=s.substring(n[i],len);\n s=b+a;\n }\n System.out.println(s);\n }", "true", "{\n s=sc.next();\n if(s.equals(\"-\")){\n sc.close();\n return;\n }\n m=sc.nextInt();\n n=new int[m];\n for(int i=0;i<m;i++){\n int len=s.length();\n n[i]=sc.nextInt();\n String a=s.substring(0,n[i]);\n String b=s.substring(n[i],len);\n s=b+a;\n }\n System.out.println(s);\n }", "s=sc.next()", "s", "sc.next()", "sc.next", "sc", "if(s.equals(\"-\")){\n sc.close();\n return;\n }", "s.equals(\"-\")", "s.equals", "s", "\"-\"", "{\n sc.close();\n return;\n }", "sc.close()", "sc.close", "sc", "return;", "m=sc.nextInt()", "m", "sc.nextInt()", "sc.nextInt", "sc", "n=new int[m]", "n", "new int[m]", "m", "for(int i=0;i<m;i++){\n int len=s.length();\n n[i]=sc.nextInt();\n String a=s.substring(0,n[i]);\n String b=s.substring(n[i],len);\n s=b+a;\n }", "int i=0;", "int i=0;", "i", "0", "i<m", "i", "m", "i++", "i++", "i", "{\n int len=s.length();\n n[i]=sc.nextInt();\n String a=s.substring(0,n[i]);\n String b=s.substring(n[i],len);\n s=b+a;\n }", "{\n int len=s.length();\n n[i]=sc.nextInt();\n String a=s.substring(0,n[i]);\n String b=s.substring(n[i],len);\n s=b+a;\n }", "int len=s.length();", "len", "s.length()", "s.length", "s", "n[i]=sc.nextInt()", "n[i]", "n", "i", "sc.nextInt()", "sc.nextInt", "sc", "String a=s.substring(0,n[i]);", "a", "s.substring(0,n[i])", "s.substring", "s", "0", "n[i]", "n", "i", "String b=s.substring(n[i],len);", "b", "s.substring(n[i],len)", "s.substring", "s", "n[i]", "n", "i", "len", "s=b+a", "s", "b+a", "b", "a", "System.out.println(s)", "System.out.println", "System.out", "System", "System.out", "s", "String[] args", "args", "public class Main {\n public static int[] n;\n public static int m;\n public static String s;\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true){\n s=sc.next();\n if(s.equals(\"-\")){\n sc.close();\n return;\n }\n m=sc.nextInt();\n n=new int[m];\n for(int i=0;i<m;i++){\n int len=s.length();\n n[i]=sc.nextInt();\n String a=s.substring(0,n[i]);\n String b=s.substring(n[i],len);\n s=b+a;\n }\n System.out.println(s);\n }\n}\n}", "public class Main {\n public static int[] n;\n public static int m;\n public static String s;\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true){\n s=sc.next();\n if(s.equals(\"-\")){\n sc.close();\n return;\n }\n m=sc.nextInt();\n n=new int[m];\n for(int i=0;i<m;i++){\n int len=s.length();\n n[i]=sc.nextInt();\n String a=s.substring(0,n[i]);\n String b=s.substring(n[i],len);\n s=b+a;\n }\n System.out.println(s);\n }\n}\n}", "Main" ]
import java.util.Scanner; import java.util.Arrays; public class Main { public static int[] n; public static int m; public static String s; public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(true){ s=sc.next(); if(s.equals("-")){ sc.close(); return; } m=sc.nextInt(); n=new int[m]; for(int i=0;i<m;i++){ int len=s.length(); n[i]=sc.nextInt(); String a=s.substring(0,n[i]); String b=s.substring(n[i],len); s=b+a; } System.out.println(s); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 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 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 23, 28 ], [ 28, 29 ], [ 17, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 17, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 47, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 55, 59 ], [ 47, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 17, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 9, 72 ], [ 72, 73 ] ]
[ "import java.util.Scanner;\nimport java.util.Arrays;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\tString s = scanner.next();\n\t\t\t\n\t\t\tif(s.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint m = scanner.nextInt();\n\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint n = scanner.nextInt();\n\t\t\t\ts += s.substring(0,n);\n\t\t\t\ts = s.substring(n);\n\t\t\t}\n\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.Arrays;", "Arrays", "java.util", "class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\tString s = scanner.next();\n\t\t\t\n\t\t\tif(s.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint m = scanner.nextInt();\n\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint n = scanner.nextInt();\n\t\t\t\ts += s.substring(0,n);\n\t\t\t\ts = s.substring(n);\n\t\t\t}\n\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\tString s = scanner.next();\n\t\t\t\n\t\t\tif(s.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint m = scanner.nextInt();\n\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint n = scanner.nextInt();\n\t\t\t\ts += s.substring(0,n);\n\t\t\t\ts = s.substring(n);\n\t\t\t}\n\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\tString s = scanner.next();\n\t\t\t\n\t\t\tif(s.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint m = scanner.nextInt();\n\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint n = scanner.nextInt();\n\t\t\t\ts += s.substring(0,n);\n\t\t\t\ts = s.substring(n);\n\t\t\t}\n\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "while(true){\n\t\t\tString s = scanner.next();\n\t\t\t\n\t\t\tif(s.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint m = scanner.nextInt();\n\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint n = scanner.nextInt();\n\t\t\t\ts += s.substring(0,n);\n\t\t\t\ts = s.substring(n);\n\t\t\t}\n\n\t\t\tSystem.out.println(s);\n\t\t}", "true", "{\n\t\t\tString s = scanner.next();\n\t\t\t\n\t\t\tif(s.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tint m = scanner.nextInt();\n\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint n = scanner.nextInt();\n\t\t\t\ts += s.substring(0,n);\n\t\t\t\ts = s.substring(n);\n\t\t\t}\n\n\t\t\tSystem.out.println(s);\n\t\t}", "String s = scanner.next();", "s", "scanner.next()", "scanner.next", "scanner", "if(s.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}", "s.equals(\"-\")", "s.equals", "s", "\"-\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int m = scanner.nextInt();", "m", "scanner.nextInt()", "scanner.nextInt", "scanner", "for(int i = 0; i < m; i++){\n\t\t\t\tint n = scanner.nextInt();\n\t\t\t\ts += s.substring(0,n);\n\t\t\t\ts = s.substring(n);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n\t\t\t\tint n = scanner.nextInt();\n\t\t\t\ts += s.substring(0,n);\n\t\t\t\ts = s.substring(n);\n\t\t\t}", "{\n\t\t\t\tint n = scanner.nextInt();\n\t\t\t\ts += s.substring(0,n);\n\t\t\t\ts = s.substring(n);\n\t\t\t}", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "s += s.substring(0,n)", "s", "s.substring(0,n)", "s.substring", "s", "0", "n", "s = s.substring(n)", "s", "s.substring(n)", "s.substring", "s", "n", "System.out.println(s)", "System.out.println", "System.out", "System", "System.out", "s", "String[] args", "args" ]
import java.util.Scanner; import java.util.Arrays; class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); while(true){ String s = scanner.next(); if(s.equals("-")){ break; } int m = scanner.nextInt(); for(int i = 0; i < m; i++){ int n = scanner.nextInt(); s += s.substring(0,n); s = s.substring(n); } System.out.println(s); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 41, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 26, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 43, 44 ], [ 44, 45 ], [ 26, 46 ], [ 46, 47 ], [ 46, 48 ], [ 26, 49 ], [ 49, 50 ], [ 26, 51 ], [ 51, 52 ], [ 51, 53 ], [ 26, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 54, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 73, 74 ], [ 66, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 80, 84 ], [ 66, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 87, 91 ], [ 26, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 18, 98 ], [ 98, 99 ] ]
[ "import java.io.BufferedReader;\nimport java.io.FileReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Scanner;\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\t//BufferedReader br = new BufferedReader(new FileReader(\"sample.txt\"));\n\t\twhile(true){\n\t\tString x=br.readLine();\n\t\tif(x.equals(\"-\"))break;\n\t\tint y=Integer.parseInt(br.readLine());\n\t\tint z=0;\n\t\tString str;\n\t\tStringBuilder stb=new StringBuilder(x);\n\t\t\n\t\tfor(int i=0;i<y;i++){\n\t\t\tz=Integer.parseInt(br.readLine());\n\t\t\tstb=stb.append(stb.substring(0,z));\n\t\t\tstb=stb.delete(0, z);\n\t\t}System.out.println(stb);\n\t\t\n\t\t}\n\t\t}\n\t\t\n\t\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", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t//BufferedReader br = new BufferedReader(new FileReader(\"sample.txt\"));\n\t\twhile(true){\n\t\tString x=br.readLine();\n\t\tif(x.equals(\"-\"))break;\n\t\tint y=Integer.parseInt(br.readLine());\n\t\tint z=0;\n\t\tString str;\n\t\tStringBuilder stb=new StringBuilder(x);\n\t\t\n\t\tfor(int i=0;i<y;i++){\n\t\t\tz=Integer.parseInt(br.readLine());\n\t\t\tstb=stb.append(stb.substring(0,z));\n\t\t\tstb=stb.delete(0, z);\n\t\t}System.out.println(stb);\n\t\t\n\t\t}\n\t\t}\n\t\t\n\t\t}", "Main", "public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t//BufferedReader br = new BufferedReader(new FileReader(\"sample.txt\"));\n\t\twhile(true){\n\t\tString x=br.readLine();\n\t\tif(x.equals(\"-\"))break;\n\t\tint y=Integer.parseInt(br.readLine());\n\t\tint z=0;\n\t\tString str;\n\t\tStringBuilder stb=new StringBuilder(x);\n\t\t\n\t\tfor(int i=0;i<y;i++){\n\t\t\tz=Integer.parseInt(br.readLine());\n\t\t\tstb=stb.append(stb.substring(0,z));\n\t\t\tstb=stb.delete(0, z);\n\t\t}System.out.println(stb);\n\t\t\n\t\t}\n\t\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t//BufferedReader br = new BufferedReader(new FileReader(\"sample.txt\"));\n\t\twhile(true){\n\t\tString x=br.readLine();\n\t\tif(x.equals(\"-\"))break;\n\t\tint y=Integer.parseInt(br.readLine());\n\t\tint z=0;\n\t\tString str;\n\t\tStringBuilder stb=new StringBuilder(x);\n\t\t\n\t\tfor(int i=0;i<y;i++){\n\t\t\tz=Integer.parseInt(br.readLine());\n\t\t\tstb=stb.append(stb.substring(0,z));\n\t\t\tstb=stb.delete(0, z);\n\t\t}System.out.println(stb);\n\t\t\n\t\t}\n\t\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n\t\tString x=br.readLine();\n\t\tif(x.equals(\"-\"))break;\n\t\tint y=Integer.parseInt(br.readLine());\n\t\tint z=0;\n\t\tString str;\n\t\tStringBuilder stb=new StringBuilder(x);\n\t\t\n\t\tfor(int i=0;i<y;i++){\n\t\t\tz=Integer.parseInt(br.readLine());\n\t\t\tstb=stb.append(stb.substring(0,z));\n\t\t\tstb=stb.delete(0, z);\n\t\t}System.out.println(stb);\n\t\t\n\t\t}", "true", "{\n\t\tString x=br.readLine();\n\t\tif(x.equals(\"-\"))break;\n\t\tint y=Integer.parseInt(br.readLine());\n\t\tint z=0;\n\t\tString str;\n\t\tStringBuilder stb=new StringBuilder(x);\n\t\t\n\t\tfor(int i=0;i<y;i++){\n\t\t\tz=Integer.parseInt(br.readLine());\n\t\t\tstb=stb.append(stb.substring(0,z));\n\t\t\tstb=stb.delete(0, z);\n\t\t}System.out.println(stb);\n\t\t\n\t\t}", "String x=br.readLine();", "x", "br.readLine()", "br.readLine", "br", "if(x.equals(\"-\"))break;", "x.equals(\"-\")", "x.equals", "x", "\"-\"", "break;", "int y=Integer.parseInt(br.readLine());", "y", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int z=0;", "z", "0", "String str;", "str", "StringBuilder stb=new StringBuilder(x);", "stb", "new StringBuilder(x)", "for(int i=0;i<y;i++){\n\t\t\tz=Integer.parseInt(br.readLine());\n\t\t\tstb=stb.append(stb.substring(0,z));\n\t\t\tstb=stb.delete(0, z);\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<y", "i", "y", "i++", "i++", "i", "{\n\t\t\tz=Integer.parseInt(br.readLine());\n\t\t\tstb=stb.append(stb.substring(0,z));\n\t\t\tstb=stb.delete(0, z);\n\t\t}", "{\n\t\t\tz=Integer.parseInt(br.readLine());\n\t\t\tstb=stb.append(stb.substring(0,z));\n\t\t\tstb=stb.delete(0, z);\n\t\t}", "z=Integer.parseInt(br.readLine())", "z", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "stb=stb.append(stb.substring(0,z))", "stb", "stb.append(stb.substring(0,z))", "stb.append", "stb", "stb.substring(0,z)", "stb.substring", "stb", "0", "z", "stb=stb.delete(0, z)", "stb", "stb.delete(0, z)", "stb.delete", "stb", "0", "z", "System.out.println(stb)", "System.out.println", "System.out", "System", "System.out", "stb", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; class Main{ public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); //BufferedReader br = new BufferedReader(new FileReader("sample.txt")); while(true){ String x=br.readLine(); if(x.equals("-"))break; int y=Integer.parseInt(br.readLine()); int z=0; String str; StringBuilder stb=new StringBuilder(x); for(int i=0;i<y;i++){ z=Integer.parseInt(br.readLine()); stb=stb.append(stb.substring(0,z)); stb=stb.delete(0, z); }System.out.println(stb); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 17, 41, 13, 17, 11, 1, 0, 13, 17, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 30, 0, 13, 4, 18, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 13, 13, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 109, 5 ], [ 109, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 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 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 36, 37 ], [ 30, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 39, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 39, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 50, 55 ], [ 55, 56 ], [ 50, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 57, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 68, 69 ], [ 68, 70 ], [ 63, 71 ], [ 71, 72 ], [ 72, 73 ], [ 63, 74 ], [ 75, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 75, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 83, 87 ], [ 75, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 90, 94 ], [ 75, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 39, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 6, 106 ], [ 106, 107 ], [ 0, 108 ], [ 108, 109 ], [ 108, 110 ] ]
[ "import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n,i,j,a,l;\n String str1,str2=\" \",str3=\" \";\n for(i=0; ;i++){\n str1=sc.next();\n l=str1.length();\n if(str1.equals(\"-\")){\n break;\n }else{\n n=sc.nextInt();\n for(j=1;j<=n;j++){\n a=sc.nextInt();\n str2=str1.substring(0,a);\n str3=str1.substring(a,l);\n str1=str3+str2;\n }\n }\n System.out.println(str1);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n,i,j,a,l;\n String str1,str2=\" \",str3=\" \";\n for(i=0; ;i++){\n str1=sc.next();\n l=str1.length();\n if(str1.equals(\"-\")){\n break;\n }else{\n n=sc.nextInt();\n for(j=1;j<=n;j++){\n a=sc.nextInt();\n str2=str1.substring(0,a);\n str3=str1.substring(a,l);\n str1=str3+str2;\n }\n }\n System.out.println(str1);\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n,i,j,a,l;\n String str1,str2=\" \",str3=\" \";\n for(i=0; ;i++){\n str1=sc.next();\n l=str1.length();\n if(str1.equals(\"-\")){\n break;\n }else{\n n=sc.nextInt();\n for(j=1;j<=n;j++){\n a=sc.nextInt();\n str2=str1.substring(0,a);\n str3=str1.substring(a,l);\n str1=str3+str2;\n }\n }\n System.out.println(str1);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n,i,j,a,l;\n String str1,str2=\" \",str3=\" \";\n for(i=0; ;i++){\n str1=sc.next();\n l=str1.length();\n if(str1.equals(\"-\")){\n break;\n }else{\n n=sc.nextInt();\n for(j=1;j<=n;j++){\n a=sc.nextInt();\n str2=str1.substring(0,a);\n str3=str1.substring(a,l);\n str1=str3+str2;\n }\n }\n System.out.println(str1);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n", "n", "i", "i", "j", "j", "a", "a", "l;", "l", "String str1", "str1", "str2=\" \"", "str2", "\" \"", "str3=\" \";", "str3", "\" \"", "for(i=0; ;i++){\n str1=sc.next();\n l=str1.length();\n if(str1.equals(\"-\")){\n break;\n }else{\n n=sc.nextInt();\n for(j=1;j<=n;j++){\n a=sc.nextInt();\n str2=str1.substring(0,a);\n str3=str1.substring(a,l);\n str1=str3+str2;\n }\n }\n System.out.println(str1);\n }", "i=0;", "i=0", "i", "0", "i++", "i++", "i", "{\n str1=sc.next();\n l=str1.length();\n if(str1.equals(\"-\")){\n break;\n }else{\n n=sc.nextInt();\n for(j=1;j<=n;j++){\n a=sc.nextInt();\n str2=str1.substring(0,a);\n str3=str1.substring(a,l);\n str1=str3+str2;\n }\n }\n System.out.println(str1);\n }", "{\n str1=sc.next();\n l=str1.length();\n if(str1.equals(\"-\")){\n break;\n }else{\n n=sc.nextInt();\n for(j=1;j<=n;j++){\n a=sc.nextInt();\n str2=str1.substring(0,a);\n str3=str1.substring(a,l);\n str1=str3+str2;\n }\n }\n System.out.println(str1);\n }", "str1=sc.next()", "str1", "sc.next()", "sc.next", "sc", "l=str1.length()", "l", "str1.length()", "str1.length", "str1", "if(str1.equals(\"-\")){\n break;\n }else{\n n=sc.nextInt();\n for(j=1;j<=n;j++){\n a=sc.nextInt();\n str2=str1.substring(0,a);\n str3=str1.substring(a,l);\n str1=str3+str2;\n }\n }", "str1.equals(\"-\")", "str1.equals", "str1", "\"-\"", "{\n break;\n }", "break;", "{\n n=sc.nextInt();\n for(j=1;j<=n;j++){\n a=sc.nextInt();\n str2=str1.substring(0,a);\n str3=str1.substring(a,l);\n str1=str3+str2;\n }\n }", "n=sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "for(j=1;j<=n;j++){\n a=sc.nextInt();\n str2=str1.substring(0,a);\n str3=str1.substring(a,l);\n str1=str3+str2;\n }", "j=1;", "j=1", "j", "1", "j<=n", "j", "n", "j++", "j++", "j", "{\n a=sc.nextInt();\n str2=str1.substring(0,a);\n str3=str1.substring(a,l);\n str1=str3+str2;\n }", "{\n a=sc.nextInt();\n str2=str1.substring(0,a);\n str3=str1.substring(a,l);\n str1=str3+str2;\n }", "a=sc.nextInt()", "a", "sc.nextInt()", "sc.nextInt", "sc", "str2=str1.substring(0,a)", "str2", "str1.substring(0,a)", "str1.substring", "str1", "0", "a", "str3=str1.substring(a,l)", "str3", "str1.substring(a,l)", "str1.substring", "str1", "a", "l", "str1=str3+str2", "str1", "str3+str2", "str3", "str2", "System.out.println(str1)", "System.out.println", "System.out", "System", "System.out", "str1", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n,i,j,a,l;\n String str1,str2=\" \",str3=\" \";\n for(i=0; ;i++){\n str1=sc.next();\n l=str1.length();\n if(str1.equals(\"-\")){\n break;\n }else{\n n=sc.nextInt();\n for(j=1;j<=n;j++){\n a=sc.nextInt();\n str2=str1.substring(0,a);\n str3=str1.substring(a,l);\n str1=str3+str2;\n }\n }\n System.out.println(str1);\n }\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n,i,j,a,l;\n String str1,str2=\" \",str3=\" \";\n for(i=0; ;i++){\n str1=sc.next();\n l=str1.length();\n if(str1.equals(\"-\")){\n break;\n }else{\n n=sc.nextInt();\n for(j=1;j<=n;j++){\n a=sc.nextInt();\n str2=str1.substring(0,a);\n str3=str1.substring(a,l);\n str1=str3+str2;\n }\n }\n System.out.println(str1);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n,i,j,a,l; String str1,str2=" ",str3=" "; for(i=0; ;i++){ str1=sc.next(); l=str1.length(); if(str1.equals("-")){ break; }else{ n=sc.nextInt(); for(j=1;j<=n;j++){ a=sc.nextInt(); str2=str1.substring(0,a); str3=str1.substring(a,l); str1=str3+str2; } } System.out.println(str1); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 13, 13, 4, 18, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 85, 5 ], [ 85, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 14, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 31, 39 ], [ 39, 40 ], [ 40, 41 ], [ 31, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 43, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 51, 55 ], [ 43, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 58, 62 ], [ 62, 63 ], [ 63, 64 ], [ 43, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 14, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 85, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 76, 82 ], [ 82, 83 ], [ 0, 84 ], [ 84, 85 ], [ 84, 86 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tvoid run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString card = scan.next();\n\t\t\tif (card.equals(\"-\")) break;\n\t\t\tint m = scan.nextInt();\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString str = card.substring(0, h);\n\t\t\t\tcard = card.substring(h, card.length());\n\t\t\t\tcard = card + str;\n\t\t\t}\n\t\t\tSystem.out.println(card);\n\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\twhile (true) {\n\t\t\tString card = scan.next();\n\t\t\tif (card.equals(\"-\")) break;\n\t\t\tint m = scan.nextInt();\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString str = card.substring(0, h);\n\t\t\t\tcard = card.substring(h, card.length());\n\t\t\t\tcard = card + str;\n\t\t\t}\n\t\t\tSystem.out.println(card);\n\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\twhile (true) {\n\t\t\tString card = scan.next();\n\t\t\tif (card.equals(\"-\")) break;\n\t\t\tint m = scan.nextInt();\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString str = card.substring(0, h);\n\t\t\t\tcard = card.substring(h, card.length());\n\t\t\t\tcard = card + str;\n\t\t\t}\n\t\t\tSystem.out.println(card);\n\t\t}\n\t\t\n\t}", "run", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString card = scan.next();\n\t\t\tif (card.equals(\"-\")) break;\n\t\t\tint m = scan.nextInt();\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString str = card.substring(0, h);\n\t\t\t\tcard = card.substring(h, card.length());\n\t\t\t\tcard = card + str;\n\t\t\t}\n\t\t\tSystem.out.println(card);\n\t\t}\n\t\t\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while (true) {\n\t\t\tString card = scan.next();\n\t\t\tif (card.equals(\"-\")) break;\n\t\t\tint m = scan.nextInt();\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString str = card.substring(0, h);\n\t\t\t\tcard = card.substring(h, card.length());\n\t\t\t\tcard = card + str;\n\t\t\t}\n\t\t\tSystem.out.println(card);\n\t\t}", "true", "{\n\t\t\tString card = scan.next();\n\t\t\tif (card.equals(\"-\")) break;\n\t\t\tint m = scan.nextInt();\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString str = card.substring(0, h);\n\t\t\t\tcard = card.substring(h, card.length());\n\t\t\t\tcard = card + str;\n\t\t\t}\n\t\t\tSystem.out.println(card);\n\t\t}", "String card = scan.next();", "card", "scan.next()", "scan.next", "scan", "if (card.equals(\"-\")) break;", "card.equals(\"-\")", "card.equals", "card", "\"-\"", "break;", "int m = scan.nextInt();", "m", "scan.nextInt()", "scan.nextInt", "scan", "for (int i = 0; i < m; i++) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString str = card.substring(0, h);\n\t\t\t\tcard = card.substring(h, card.length());\n\t\t\t\tcard = card + str;\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString str = card.substring(0, h);\n\t\t\t\tcard = card.substring(h, card.length());\n\t\t\t\tcard = card + str;\n\t\t\t}", "{\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString str = card.substring(0, h);\n\t\t\t\tcard = card.substring(h, card.length());\n\t\t\t\tcard = card + str;\n\t\t\t}", "int h = scan.nextInt();", "h", "scan.nextInt()", "scan.nextInt", "scan", "String str = card.substring(0, h);", "str", "card.substring(0, h)", "card.substring", "card", "0", "h", "card = card.substring(h, card.length())", "card", "card.substring(h, card.length())", "card.substring", "card", "h", "card.length()", "card.length", "card", "card = card + str", "card", "card + str", "card", "str", "System.out.println(card)", "System.out.println", "System.out", "System", "System.out", "card", "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\twhile (true) {\n\t\t\tString card = scan.next();\n\t\t\tif (card.equals(\"-\")) break;\n\t\t\tint m = scan.nextInt();\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString str = card.substring(0, h);\n\t\t\t\tcard = card.substring(h, card.length());\n\t\t\t\tcard = card + str;\n\t\t\t}\n\t\t\tSystem.out.println(card);\n\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\twhile (true) {\n\t\t\tString card = scan.next();\n\t\t\tif (card.equals(\"-\")) break;\n\t\t\tint m = scan.nextInt();\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString str = card.substring(0, h);\n\t\t\t\tcard = card.substring(h, card.length());\n\t\t\t\tcard = card + str;\n\t\t\t}\n\t\t\tSystem.out.println(card);\n\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); while (true) { String card = scan.next(); if (card.equals("-")) break; int m = scan.nextInt(); for (int i = 0; i < m; i++) { int h = scan.nextInt(); String str = card.substring(0, h); card = card.substring(h, card.length()); card = card + str; } System.out.println(card); } } 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, 38, 5, 13, 30, 4, 18, 13, 30, 14, 2, 13, 17, 30, 38, 5, 13, 30, 4, 18, 13, 30, 4, 18, 13, 30, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 2, 2, 13, 17, 4, 18, 13, 17, 30, 3, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 17, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 120, 11 ], [ 120, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 18, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 31, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 18, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 47, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 53, 62 ], [ 62, 63 ], [ 47, 64 ], [ 64, 65 ], [ 64, 66 ], [ 47, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 73, 74 ], [ 47, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 80, 81 ], [ 80, 82 ], [ 75, 83 ], [ 83, 84 ], [ 84, 85 ], [ 75, 86 ], [ 87, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 93, 94 ], [ 94, 95 ], [ 87, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 99, 103 ], [ 87, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 104, 108 ], [ 47, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 114, 115 ], [ 115, 116 ], [ 12, 117 ], [ 117, 118 ], [ 0, 119 ], [ 119, 120 ], [ 119, 121 ] ]
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\tString cards;\n\t\t\twhile(true){\n\t\t\t\tcards = br.readLine();\n\t\t\t\tif(cards == null || cards.equals(\"-\") ){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tStringBuilder sb = new StringBuilder(cards);\n\n\t\t\t\tint m = Integer.parseInt(br.readLine());\n\n\t\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\t\tint h = Integer.parseInt(br.readLine());\n\n\t\t\t\t\tsb.append(sb.substring(0,h));\n\t\t\t\t\tsb.delete(0, h);\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb.toString());\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\tString cards;\n\t\t\twhile(true){\n\t\t\t\tcards = br.readLine();\n\t\t\t\tif(cards == null || cards.equals(\"-\") ){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tStringBuilder sb = new StringBuilder(cards);\n\n\t\t\t\tint m = Integer.parseInt(br.readLine());\n\n\t\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\t\tint h = Integer.parseInt(br.readLine());\n\n\t\t\t\t\tsb.append(sb.substring(0,h));\n\t\t\t\t\tsb.delete(0, h);\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb.toString());\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\tString cards;\n\t\t\twhile(true){\n\t\t\t\tcards = br.readLine();\n\t\t\t\tif(cards == null || cards.equals(\"-\") ){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tStringBuilder sb = new StringBuilder(cards);\n\n\t\t\t\tint m = Integer.parseInt(br.readLine());\n\n\t\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\t\tint h = Integer.parseInt(br.readLine());\n\n\t\t\t\t\tsb.append(sb.substring(0,h));\n\t\t\t\t\tsb.delete(0, h);\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb.toString());\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\tString cards;\n\t\t\twhile(true){\n\t\t\t\tcards = br.readLine();\n\t\t\t\tif(cards == null || cards.equals(\"-\") ){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tStringBuilder sb = new StringBuilder(cards);\n\n\t\t\t\tint m = Integer.parseInt(br.readLine());\n\n\t\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\t\tint h = Integer.parseInt(br.readLine());\n\n\t\t\t\t\tsb.append(sb.substring(0,h));\n\t\t\t\t\tsb.delete(0, h);\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb.toString());\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "try {\n\n\t\t\tString cards;\n\t\t\twhile(true){\n\t\t\t\tcards = br.readLine();\n\t\t\t\tif(cards == null || cards.equals(\"-\") ){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tStringBuilder sb = new StringBuilder(cards);\n\n\t\t\t\tint m = Integer.parseInt(br.readLine());\n\n\t\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\t\tint h = Integer.parseInt(br.readLine());\n\n\t\t\t\t\tsb.append(sb.substring(0,h));\n\t\t\t\t\tsb.delete(0, h);\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb.toString());\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "if (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "br != null", "br", "null", "{\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "try {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}", "catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}", "IOException e", "{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\t\t\tbr.close();\n\t\t\t\t}", "br.close()", "br.close", "br", "{\n\n\t\t\tString cards;\n\t\t\twhile(true){\n\t\t\t\tcards = br.readLine();\n\t\t\t\tif(cards == null || cards.equals(\"-\") ){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tStringBuilder sb = new StringBuilder(cards);\n\n\t\t\t\tint m = Integer.parseInt(br.readLine());\n\n\t\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\t\tint h = Integer.parseInt(br.readLine());\n\n\t\t\t\t\tsb.append(sb.substring(0,h));\n\t\t\t\t\tsb.delete(0, h);\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb.toString());\n\t\t\t}\n\t\t}", "String cards;", "cards", "while(true){\n\t\t\t\tcards = br.readLine();\n\t\t\t\tif(cards == null || cards.equals(\"-\") ){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tStringBuilder sb = new StringBuilder(cards);\n\n\t\t\t\tint m = Integer.parseInt(br.readLine());\n\n\t\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\t\tint h = Integer.parseInt(br.readLine());\n\n\t\t\t\t\tsb.append(sb.substring(0,h));\n\t\t\t\t\tsb.delete(0, h);\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb.toString());\n\t\t\t}", "true", "{\n\t\t\t\tcards = br.readLine();\n\t\t\t\tif(cards == null || cards.equals(\"-\") ){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tStringBuilder sb = new StringBuilder(cards);\n\n\t\t\t\tint m = Integer.parseInt(br.readLine());\n\n\t\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\t\tint h = Integer.parseInt(br.readLine());\n\n\t\t\t\t\tsb.append(sb.substring(0,h));\n\t\t\t\t\tsb.delete(0, h);\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb.toString());\n\t\t\t}", "cards = br.readLine()", "cards", "br.readLine()", "br.readLine", "br", "if(cards == null || cards.equals(\"-\") ){\n\t\t\t\t\tbreak;\n\t\t\t\t}", "cards == null || cards.equals(\"-\")", "cards == null", "cards", "null", "cards.equals(\"-\")", "cards.equals", "cards", "\"-\"", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "StringBuilder sb = new StringBuilder(cards);", "sb", "new StringBuilder(cards)", "int m = Integer.parseInt(br.readLine());", "m", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "for(int i=0;i<m;i++){\n\t\t\t\t\tint h = Integer.parseInt(br.readLine());\n\n\t\t\t\t\tsb.append(sb.substring(0,h));\n\t\t\t\t\tsb.delete(0, h);\n\n\t\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<m", "i", "m", "i++", "i++", "i", "{\n\t\t\t\t\tint h = Integer.parseInt(br.readLine());\n\n\t\t\t\t\tsb.append(sb.substring(0,h));\n\t\t\t\t\tsb.delete(0, h);\n\n\t\t\t\t}", "{\n\t\t\t\t\tint h = Integer.parseInt(br.readLine());\n\n\t\t\t\t\tsb.append(sb.substring(0,h));\n\t\t\t\t\tsb.delete(0, h);\n\n\t\t\t\t}", "int h = Integer.parseInt(br.readLine());", "h", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "sb.append(sb.substring(0,h))", "sb.append", "sb", "sb.substring(0,h)", "sb.substring", "sb", "0", "h", "sb.delete(0, h)", "sb.delete", "sb", "0", "h", "System.out.println(sb.toString())", "System.out.println", "System.out", "System", "System.out", "sb.toString()", "sb.toString", "sb", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\tString cards;\n\t\t\twhile(true){\n\t\t\t\tcards = br.readLine();\n\t\t\t\tif(cards == null || cards.equals(\"-\") ){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tStringBuilder sb = new StringBuilder(cards);\n\n\t\t\t\tint m = Integer.parseInt(br.readLine());\n\n\t\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\t\tint h = Integer.parseInt(br.readLine());\n\n\t\t\t\t\tsb.append(sb.substring(0,h));\n\t\t\t\t\tsb.delete(0, h);\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb.toString());\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\n\t\t\tString cards;\n\t\t\twhile(true){\n\t\t\t\tcards = br.readLine();\n\t\t\t\tif(cards == null || cards.equals(\"-\") ){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tStringBuilder sb = new StringBuilder(cards);\n\n\t\t\t\tint m = Integer.parseInt(br.readLine());\n\n\t\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\t\tint h = Integer.parseInt(br.readLine());\n\n\t\t\t\t\tsb.append(sb.substring(0,h));\n\t\t\t\t\tsb.delete(0, h);\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb.toString());\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try { String cards; while(true){ cards = br.readLine(); if(cards == null || cards.equals("-") ){ break; } StringBuilder sb = new StringBuilder(cards); int m = Integer.parseInt(br.readLine()); for(int i=0;i<m;i++){ int h = Integer.parseInt(br.readLine()); sb.append(sb.substring(0,h)); sb.delete(0, h); } System.out.println(sb.toString()); } } catch (IOException e) { e.printStackTrace(); } finally { if (br != null) { try { br.close(); } catch (IOException e) { e.printStackTrace(); } } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 20, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 17, 18, 13, 13, 4, 18, 13, 17, 18, 13, 13, 4, 18, 13, 13, 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 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 14, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 53, 54 ], [ 14, 55 ], [ 55, 56 ], [ 55, 57 ], [ 14, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 14, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 62, 70 ], [ 70, 71 ], [ 71, 72 ], [ 62, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 74, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 84, 88 ], [ 88, 89 ], [ 88, 90 ], [ 74, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 14, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 6, 101 ], [ 101, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\twhile(true) {\n\t\t\tString str = scan.next();\n\t\t\t\n\t\t\tif(str.equals(\"-\")) break;\n\t\t\t\n\t\t\tint m = scan.nextInt();\n\t\t\t\n\t\t\tint[] h = new int[m];\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\th[i] = scan.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\tStringBuilder str2 = new StringBuilder();\n\t\t\tstr2.append(str);\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tString str_temp = str2.substring(0, h[i]);\n\t\t\t\tstr2.delete(0, h[i]);\n\t\t\t\tstr2.append(str_temp);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(str2);\n\t\t}\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// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\twhile(true) {\n\t\t\tString str = scan.next();\n\t\t\t\n\t\t\tif(str.equals(\"-\")) break;\n\t\t\t\n\t\t\tint m = scan.nextInt();\n\t\t\t\n\t\t\tint[] h = new int[m];\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\th[i] = scan.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\tStringBuilder str2 = new StringBuilder();\n\t\t\tstr2.append(str);\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tString str_temp = str2.substring(0, h[i]);\n\t\t\t\tstr2.delete(0, h[i]);\n\t\t\t\tstr2.append(str_temp);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(str2);\n\t\t}\n\t\t\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\twhile(true) {\n\t\t\tString str = scan.next();\n\t\t\t\n\t\t\tif(str.equals(\"-\")) break;\n\t\t\t\n\t\t\tint m = scan.nextInt();\n\t\t\t\n\t\t\tint[] h = new int[m];\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\th[i] = scan.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\tStringBuilder str2 = new StringBuilder();\n\t\t\tstr2.append(str);\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tString str_temp = str2.substring(0, h[i]);\n\t\t\t\tstr2.delete(0, h[i]);\n\t\t\t\tstr2.append(str_temp);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(str2);\n\t\t}\n\t\t\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\twhile(true) {\n\t\t\tString str = scan.next();\n\t\t\t\n\t\t\tif(str.equals(\"-\")) break;\n\t\t\t\n\t\t\tint m = scan.nextInt();\n\t\t\t\n\t\t\tint[] h = new int[m];\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\th[i] = scan.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\tStringBuilder str2 = new StringBuilder();\n\t\t\tstr2.append(str);\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tString str_temp = str2.substring(0, h[i]);\n\t\t\t\tstr2.delete(0, h[i]);\n\t\t\t\tstr2.append(str_temp);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(str2);\n\t\t}\n\t\t\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(true) {\n\t\t\tString str = scan.next();\n\t\t\t\n\t\t\tif(str.equals(\"-\")) break;\n\t\t\t\n\t\t\tint m = scan.nextInt();\n\t\t\t\n\t\t\tint[] h = new int[m];\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\th[i] = scan.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\tStringBuilder str2 = new StringBuilder();\n\t\t\tstr2.append(str);\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tString str_temp = str2.substring(0, h[i]);\n\t\t\t\tstr2.delete(0, h[i]);\n\t\t\t\tstr2.append(str_temp);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(str2);\n\t\t}", "true", "{\n\t\t\tString str = scan.next();\n\t\t\t\n\t\t\tif(str.equals(\"-\")) break;\n\t\t\t\n\t\t\tint m = scan.nextInt();\n\t\t\t\n\t\t\tint[] h = new int[m];\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\th[i] = scan.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\tStringBuilder str2 = new StringBuilder();\n\t\t\tstr2.append(str);\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tString str_temp = str2.substring(0, h[i]);\n\t\t\t\tstr2.delete(0, h[i]);\n\t\t\t\tstr2.append(str_temp);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(str2);\n\t\t}", "String str = scan.next();", "str", "scan.next()", "scan.next", "scan", "if(str.equals(\"-\")) break;", "str.equals(\"-\")", "str.equals", "str", "\"-\"", "break;", "int m = scan.nextInt();", "m", "scan.nextInt()", "scan.nextInt", "scan", "int[] h = new int[m];", "h", "new int[m]", "m", "for(int i = 0; i < m; i++) {\n\t\t\t\th[i] = scan.nextInt();\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n\t\t\t\th[i] = scan.nextInt();\n\t\t\t}", "{\n\t\t\t\th[i] = scan.nextInt();\n\t\t\t}", "h[i] = scan.nextInt()", "h[i]", "h", "i", "scan.nextInt()", "scan.nextInt", "scan", "StringBuilder str2 = new StringBuilder();", "str2", "new StringBuilder()", "str2.append(str)", "str2.append", "str2", "str", "for(int i = 0; i < m; i++) {\n\t\t\t\tString str_temp = str2.substring(0, h[i]);\n\t\t\t\tstr2.delete(0, h[i]);\n\t\t\t\tstr2.append(str_temp);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n\t\t\t\tString str_temp = str2.substring(0, h[i]);\n\t\t\t\tstr2.delete(0, h[i]);\n\t\t\t\tstr2.append(str_temp);\n\t\t\t}", "{\n\t\t\t\tString str_temp = str2.substring(0, h[i]);\n\t\t\t\tstr2.delete(0, h[i]);\n\t\t\t\tstr2.append(str_temp);\n\t\t\t}", "String str_temp = str2.substring(0, h[i]);", "str_temp", "str2.substring(0, h[i])", "str2.substring", "str2", "0", "h[i]", "h", "i", "str2.delete(0, h[i])", "str2.delete", "str2", "0", "h[i]", "h", "i", "str2.append(str_temp)", "str2.append", "str2", "str_temp", "System.out.println(str2)", "System.out.println", "System.out", "System", "System.out", "str2", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\twhile(true) {\n\t\t\tString str = scan.next();\n\t\t\t\n\t\t\tif(str.equals(\"-\")) break;\n\t\t\t\n\t\t\tint m = scan.nextInt();\n\t\t\t\n\t\t\tint[] h = new int[m];\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\th[i] = scan.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\tStringBuilder str2 = new StringBuilder();\n\t\t\tstr2.append(str);\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tString str_temp = str2.substring(0, h[i]);\n\t\t\t\tstr2.delete(0, h[i]);\n\t\t\t\tstr2.append(str_temp);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(str2);\n\t\t}\n\t\t\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\twhile(true) {\n\t\t\tString str = scan.next();\n\t\t\t\n\t\t\tif(str.equals(\"-\")) break;\n\t\t\t\n\t\t\tint m = scan.nextInt();\n\t\t\t\n\t\t\tint[] h = new int[m];\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\th[i] = scan.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\tStringBuilder str2 = new StringBuilder();\n\t\t\tstr2.append(str);\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tString str_temp = str2.substring(0, h[i]);\n\t\t\t\tstr2.delete(0, h[i]);\n\t\t\t\tstr2.append(str_temp);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(str2);\n\t\t}\n\t\t\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner scan = new Scanner(System.in); while(true) { String str = scan.next(); if(str.equals("-")) break; int m = scan.nextInt(); int[] h = new int[m]; for(int i = 0; i < m; i++) { h[i] = scan.nextInt(); } StringBuilder str2 = new StringBuilder(); str2.append(str); for(int i = 0; i < m; i++) { String str_temp = str2.substring(0, h[i]); str2.delete(0, h[i]); str2.append(str_temp); } System.out.println(str2); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 4, 18, 13, 17, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 20, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 18, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 2, 2, 13, 13, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 184, 5 ], [ 184, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 14, 34 ], [ 34, 35 ], [ 34, 36 ], [ 14, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 38, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 14, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 14, 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 ], [ 76, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 76, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 86, 96 ], [ 96, 97 ], [ 97, 98 ], [ 86, 99 ], [ 100, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 107, 109 ], [ 76, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 115, 116 ], [ 115, 117 ], [ 110, 118 ], [ 118, 119 ], [ 119, 120 ], [ 110, 121 ], [ 122, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 123, 131 ], [ 131, 132 ], [ 131, 133 ], [ 76, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 139, 140 ], [ 139, 141 ], [ 134, 142 ], [ 142, 143 ], [ 143, 144 ], [ 134, 145 ], [ 146, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 147, 151 ], [ 151, 152 ], [ 151, 153 ], [ 14, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 154, 159 ], [ 159, 160 ], [ 159, 161 ], [ 154, 162 ], [ 162, 163 ], [ 163, 164 ], [ 154, 165 ], [ 166, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 167, 172 ], [ 172, 173 ], [ 172, 174 ], [ 14, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 175, 180 ], [ 6, 181 ], [ 181, 182 ], [ 0, 183 ], [ 183, 184 ], [ 183, 185 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n while(true){\n String line = sc.next();\n if(line.equals(\"-\")) System.exit(0);\n int l = line.length();\n char[] moji = new char[l];\n for(int i=0;i<l;i++){\n moji[i] = line.charAt(i);\n }\n\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n char[] moji2 = new char[l];\n int h = sc.nextInt();\n for(int j=0;j<l-h;j++){\n moji2[j] = moji[h+j];\n }\n for(int j=0;j<h;j++){\n moji2[l-h+j] = moji[j];\n }\n for(int j=0;j<l;j++){\n moji[j] = moji2[j];\n }\n }\n for(int k=0;k<l;k++){\n System.out.print(moji[k]);\n }\n System.out.println(\"\");\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n while(true){\n String line = sc.next();\n if(line.equals(\"-\")) System.exit(0);\n int l = line.length();\n char[] moji = new char[l];\n for(int i=0;i<l;i++){\n moji[i] = line.charAt(i);\n }\n\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n char[] moji2 = new char[l];\n int h = sc.nextInt();\n for(int j=0;j<l-h;j++){\n moji2[j] = moji[h+j];\n }\n for(int j=0;j<h;j++){\n moji2[l-h+j] = moji[j];\n }\n for(int j=0;j<l;j++){\n moji[j] = moji2[j];\n }\n }\n for(int k=0;k<l;k++){\n System.out.print(moji[k]);\n }\n System.out.println(\"\");\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n while(true){\n String line = sc.next();\n if(line.equals(\"-\")) System.exit(0);\n int l = line.length();\n char[] moji = new char[l];\n for(int i=0;i<l;i++){\n moji[i] = line.charAt(i);\n }\n\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n char[] moji2 = new char[l];\n int h = sc.nextInt();\n for(int j=0;j<l-h;j++){\n moji2[j] = moji[h+j];\n }\n for(int j=0;j<h;j++){\n moji2[l-h+j] = moji[j];\n }\n for(int j=0;j<l;j++){\n moji[j] = moji2[j];\n }\n }\n for(int k=0;k<l;k++){\n System.out.print(moji[k]);\n }\n System.out.println(\"\");\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n while(true){\n String line = sc.next();\n if(line.equals(\"-\")) System.exit(0);\n int l = line.length();\n char[] moji = new char[l];\n for(int i=0;i<l;i++){\n moji[i] = line.charAt(i);\n }\n\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n char[] moji2 = new char[l];\n int h = sc.nextInt();\n for(int j=0;j<l-h;j++){\n moji2[j] = moji[h+j];\n }\n for(int j=0;j<h;j++){\n moji2[l-h+j] = moji[j];\n }\n for(int j=0;j<l;j++){\n moji[j] = moji2[j];\n }\n }\n for(int k=0;k<l;k++){\n System.out.print(moji[k]);\n }\n System.out.println(\"\");\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n String line = sc.next();\n if(line.equals(\"-\")) System.exit(0);\n int l = line.length();\n char[] moji = new char[l];\n for(int i=0;i<l;i++){\n moji[i] = line.charAt(i);\n }\n\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n char[] moji2 = new char[l];\n int h = sc.nextInt();\n for(int j=0;j<l-h;j++){\n moji2[j] = moji[h+j];\n }\n for(int j=0;j<h;j++){\n moji2[l-h+j] = moji[j];\n }\n for(int j=0;j<l;j++){\n moji[j] = moji2[j];\n }\n }\n for(int k=0;k<l;k++){\n System.out.print(moji[k]);\n }\n System.out.println(\"\");\n }", "true", "{\n String line = sc.next();\n if(line.equals(\"-\")) System.exit(0);\n int l = line.length();\n char[] moji = new char[l];\n for(int i=0;i<l;i++){\n moji[i] = line.charAt(i);\n }\n\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n char[] moji2 = new char[l];\n int h = sc.nextInt();\n for(int j=0;j<l-h;j++){\n moji2[j] = moji[h+j];\n }\n for(int j=0;j<h;j++){\n moji2[l-h+j] = moji[j];\n }\n for(int j=0;j<l;j++){\n moji[j] = moji2[j];\n }\n }\n for(int k=0;k<l;k++){\n System.out.print(moji[k]);\n }\n System.out.println(\"\");\n }", "String line = sc.next();", "line", "sc.next()", "sc.next", "sc", "if(line.equals(\"-\")) System.exit(0);", "line.equals(\"-\")", "line.equals", "line", "\"-\"", "System.exit(0)", "System.exit", "System", "0", "int l = line.length();", "l", "line.length()", "line.length", "line", "char[] moji = new char[l];", "moji", "new char[l]", "l", "for(int i=0;i<l;i++){\n moji[i] = line.charAt(i);\n }", "int i=0;", "int i=0;", "i", "0", "i<l", "i", "l", "i++", "i++", "i", "{\n moji[i] = line.charAt(i);\n }", "{\n moji[i] = line.charAt(i);\n }", "moji[i] = line.charAt(i)", "moji[i]", "moji", "i", "line.charAt(i)", "line.charAt", "line", "i", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0;i<m;i++){\n char[] moji2 = new char[l];\n int h = sc.nextInt();\n for(int j=0;j<l-h;j++){\n moji2[j] = moji[h+j];\n }\n for(int j=0;j<h;j++){\n moji2[l-h+j] = moji[j];\n }\n for(int j=0;j<l;j++){\n moji[j] = moji2[j];\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<m", "i", "m", "i++", "i++", "i", "{\n char[] moji2 = new char[l];\n int h = sc.nextInt();\n for(int j=0;j<l-h;j++){\n moji2[j] = moji[h+j];\n }\n for(int j=0;j<h;j++){\n moji2[l-h+j] = moji[j];\n }\n for(int j=0;j<l;j++){\n moji[j] = moji2[j];\n }\n }", "{\n char[] moji2 = new char[l];\n int h = sc.nextInt();\n for(int j=0;j<l-h;j++){\n moji2[j] = moji[h+j];\n }\n for(int j=0;j<h;j++){\n moji2[l-h+j] = moji[j];\n }\n for(int j=0;j<l;j++){\n moji[j] = moji2[j];\n }\n }", "char[] moji2 = new char[l];", "moji2", "new char[l]", "l", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "for(int j=0;j<l-h;j++){\n moji2[j] = moji[h+j];\n }", "int j=0;", "int j=0;", "j", "0", "j<l-h", "j", "l-h", "l", "h", "j++", "j++", "j", "{\n moji2[j] = moji[h+j];\n }", "{\n moji2[j] = moji[h+j];\n }", "moji2[j] = moji[h+j]", "moji2[j]", "moji2", "j", "moji[h+j]", "moji", "h+j", "h", "j", "for(int j=0;j<h;j++){\n moji2[l-h+j] = moji[j];\n }", "int j=0;", "int j=0;", "j", "0", "j<h", "j", "h", "j++", "j++", "j", "{\n moji2[l-h+j] = moji[j];\n }", "{\n moji2[l-h+j] = moji[j];\n }", "moji2[l-h+j] = moji[j]", "moji2[l-h+j]", "moji2", "l-h+j", "l-h", "l", "h", "j", "moji[j]", "moji", "j", "for(int j=0;j<l;j++){\n moji[j] = moji2[j];\n }", "int j=0;", "int j=0;", "j", "0", "j<l", "j", "l", "j++", "j++", "j", "{\n moji[j] = moji2[j];\n }", "{\n moji[j] = moji2[j];\n }", "moji[j] = moji2[j]", "moji[j]", "moji", "j", "moji2[j]", "moji2", "j", "for(int k=0;k<l;k++){\n System.out.print(moji[k]);\n }", "int k=0;", "int k=0;", "k", "0", "k<l", "k", "l", "k++", "k++", "k", "{\n System.out.print(moji[k]);\n }", "{\n System.out.print(moji[k]);\n }", "System.out.print(moji[k])", "System.out.print", "System.out", "System", "System.out", "moji[k]", "moji", "k", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n while(true){\n String line = sc.next();\n if(line.equals(\"-\")) System.exit(0);\n int l = line.length();\n char[] moji = new char[l];\n for(int i=0;i<l;i++){\n moji[i] = line.charAt(i);\n }\n\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n char[] moji2 = new char[l];\n int h = sc.nextInt();\n for(int j=0;j<l-h;j++){\n moji2[j] = moji[h+j];\n }\n for(int j=0;j<h;j++){\n moji2[l-h+j] = moji[j];\n }\n for(int j=0;j<l;j++){\n moji[j] = moji2[j];\n }\n }\n for(int k=0;k<l;k++){\n System.out.print(moji[k]);\n }\n System.out.println(\"\");\n }\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n while(true){\n String line = sc.next();\n if(line.equals(\"-\")) System.exit(0);\n int l = line.length();\n char[] moji = new char[l];\n for(int i=0;i<l;i++){\n moji[i] = line.charAt(i);\n }\n\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n char[] moji2 = new char[l];\n int h = sc.nextInt();\n for(int j=0;j<l-h;j++){\n moji2[j] = moji[h+j];\n }\n for(int j=0;j<h;j++){\n moji2[l-h+j] = moji[j];\n }\n for(int j=0;j<l;j++){\n moji[j] = moji2[j];\n }\n }\n for(int k=0;k<l;k++){\n System.out.print(moji[k]);\n }\n System.out.println(\"\");\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(true){ String line = sc.next(); if(line.equals("-")) System.exit(0); int l = line.length(); char[] moji = new char[l]; for(int i=0;i<l;i++){ moji[i] = line.charAt(i); } int m = sc.nextInt(); for(int i=0;i<m;i++){ char[] moji2 = new char[l]; int h = sc.nextInt(); for(int j=0;j<l-h;j++){ moji2[j] = moji[h+j]; } for(int j=0;j<h;j++){ moji2[l-h+j] = moji[j]; } for(int j=0;j<l;j++){ moji[j] = moji2[j]; } } for(int k=0;k<l;k++){ System.out.print(moji[k]); } System.out.println(""); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 41, 13, 20, 28, 13, 13, 30, 4, 18, 13, 13, 11, 1, 41, 13, 4, 18, 13, 2, 13, 17, 1, 40, 13, 30, 30, 11, 1, 41, 13, 4, 18, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 113, 8 ], [ 113, 9 ], [ 9, 10 ], [ 9, 11 ], [ 113, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 19, 26 ], [ 17, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 33, 35 ], [ 27, 36 ], [ 36, 37 ], [ 36, 38 ], [ 36, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 27, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 44, 51 ], [ 51, 52 ], [ 51, 53 ], [ 44, 54 ], [ 54, 55 ], [ 55, 56 ], [ 44, 57 ], [ 58, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 59, 66 ], [ 66, 67 ], [ 66, 68 ], [ 59, 69 ], [ 69, 70 ], [ 70, 71 ], [ 59, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 78, 79 ], [ 27, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 80, 90 ], [ 90, 91 ], [ 91, 92 ], [ 80, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 99, 100 ], [ 27, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 12, 110 ], [ 110, 111 ], [ 0, 112 ], [ 112, 113 ], [ 112, 114 ] ]
[ "import java.util.ArrayDeque;\nimport java.util.Scanner;\n\npublic class Main{\n\n\tstatic final Scanner s=new Scanner(System.in);\n\n\tpublic static void main(String args[]){\n\t\tString b;\n\t\twhile(!(b=s.next()).equals(\"-\")){\n\t\t\tchar buf[]=b.toCharArray();\n\t\t\tArrayDeque<Character> deque=new ArrayDeque<>();\n\t\t\tfor(char c:buf)\n\t\t\t\tdeque.add(c);\n\t\t\tfor(int i=s.nextInt(); i>0; i--){\n\t\t\t\tfor(int j=s.nextInt(); j>0; j--){\n\t\t\t\t\tdeque.add(deque.poll());\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0; i<buf.length; i++)\n\t\t\t\tbuf[i]=deque.poll();\n\t\t\tSystem.out.println(String.valueOf(buf));\n\t\t}\n\t}\n}", "import java.util.ArrayDeque;", "ArrayDeque", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\n\tstatic final Scanner s=new Scanner(System.in);\n\n\tpublic static void main(String args[]){\n\t\tString b;\n\t\twhile(!(b=s.next()).equals(\"-\")){\n\t\t\tchar buf[]=b.toCharArray();\n\t\t\tArrayDeque<Character> deque=new ArrayDeque<>();\n\t\t\tfor(char c:buf)\n\t\t\t\tdeque.add(c);\n\t\t\tfor(int i=s.nextInt(); i>0; i--){\n\t\t\t\tfor(int j=s.nextInt(); j>0; j--){\n\t\t\t\t\tdeque.add(deque.poll());\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0; i<buf.length; i++)\n\t\t\t\tbuf[i]=deque.poll();\n\t\t\tSystem.out.println(String.valueOf(buf));\n\t\t}\n\t}\n}", "Main", "static final Scanner s=new Scanner(System.in);", "s", "new Scanner(System.in)", "public static void main(String args[]){\n\t\tString b;\n\t\twhile(!(b=s.next()).equals(\"-\")){\n\t\t\tchar buf[]=b.toCharArray();\n\t\t\tArrayDeque<Character> deque=new ArrayDeque<>();\n\t\t\tfor(char c:buf)\n\t\t\t\tdeque.add(c);\n\t\t\tfor(int i=s.nextInt(); i>0; i--){\n\t\t\t\tfor(int j=s.nextInt(); j>0; j--){\n\t\t\t\t\tdeque.add(deque.poll());\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0; i<buf.length; i++)\n\t\t\t\tbuf[i]=deque.poll();\n\t\t\tSystem.out.println(String.valueOf(buf));\n\t\t}\n\t}", "main", "{\n\t\tString b;\n\t\twhile(!(b=s.next()).equals(\"-\")){\n\t\t\tchar buf[]=b.toCharArray();\n\t\t\tArrayDeque<Character> deque=new ArrayDeque<>();\n\t\t\tfor(char c:buf)\n\t\t\t\tdeque.add(c);\n\t\t\tfor(int i=s.nextInt(); i>0; i--){\n\t\t\t\tfor(int j=s.nextInt(); j>0; j--){\n\t\t\t\t\tdeque.add(deque.poll());\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0; i<buf.length; i++)\n\t\t\t\tbuf[i]=deque.poll();\n\t\t\tSystem.out.println(String.valueOf(buf));\n\t\t}\n\t}", "String b;", "b", "while(!(b=s.next()).equals(\"-\")){\n\t\t\tchar buf[]=b.toCharArray();\n\t\t\tArrayDeque<Character> deque=new ArrayDeque<>();\n\t\t\tfor(char c:buf)\n\t\t\t\tdeque.add(c);\n\t\t\tfor(int i=s.nextInt(); i>0; i--){\n\t\t\t\tfor(int j=s.nextInt(); j>0; j--){\n\t\t\t\t\tdeque.add(deque.poll());\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0; i<buf.length; i++)\n\t\t\t\tbuf[i]=deque.poll();\n\t\t\tSystem.out.println(String.valueOf(buf));\n\t\t}", "!(b=s.next()).equals(\"-\")", "(b=s.next()).equals(\"-\")", "(b=s.next()).equals", "(b=s.next())", "b", "s.next()", "s.next", "s", "\"-\"", "{\n\t\t\tchar buf[]=b.toCharArray();\n\t\t\tArrayDeque<Character> deque=new ArrayDeque<>();\n\t\t\tfor(char c:buf)\n\t\t\t\tdeque.add(c);\n\t\t\tfor(int i=s.nextInt(); i>0; i--){\n\t\t\t\tfor(int j=s.nextInt(); j>0; j--){\n\t\t\t\t\tdeque.add(deque.poll());\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0; i<buf.length; i++)\n\t\t\t\tbuf[i]=deque.poll();\n\t\t\tSystem.out.println(String.valueOf(buf));\n\t\t}", "char buf[]=b.toCharArray();", "buf", "b.toCharArray()", "b.toCharArray", "b", "ArrayDeque<Character> deque=new ArrayDeque<>();", "deque", "new ArrayDeque<>()", "for(char c:buf)\n\t\t\t\tdeque.add(c);", "char c", "buf", "deque.add(c);", "deque.add(c)", "deque.add", "deque", "c", "for(int i=s.nextInt(); i>0; i--){\n\t\t\t\tfor(int j=s.nextInt(); j>0; j--){\n\t\t\t\t\tdeque.add(deque.poll());\n\t\t\t\t}\n\t\t\t}", "int i=s.nextInt();", "int i=s.nextInt();", "i", "s.nextInt()", "s.nextInt", "s", "i>0", "i", "0", "i--", "i--", "i", "{\n\t\t\t\tfor(int j=s.nextInt(); j>0; j--){\n\t\t\t\t\tdeque.add(deque.poll());\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tfor(int j=s.nextInt(); j>0; j--){\n\t\t\t\t\tdeque.add(deque.poll());\n\t\t\t\t}\n\t\t\t}", "for(int j=s.nextInt(); j>0; j--){\n\t\t\t\t\tdeque.add(deque.poll());\n\t\t\t\t}", "int j=s.nextInt();", "int j=s.nextInt();", "j", "s.nextInt()", "s.nextInt", "s", "j>0", "j", "0", "j--", "j--", "j", "{\n\t\t\t\t\tdeque.add(deque.poll());\n\t\t\t\t}", "{\n\t\t\t\t\tdeque.add(deque.poll());\n\t\t\t\t}", "deque.add(deque.poll())", "deque.add", "deque", "deque.poll()", "deque.poll", "deque", "for(int i=0; i<buf.length; i++)\n\t\t\t\tbuf[i]=deque.poll();", "int i=0;", "int i=0;", "i", "0", "i<buf.length", "i", "buf.length", "buf", "buf.length", "i++", "i++", "i", "buf[i]=deque.poll();", "buf[i]=deque.poll()", "buf[i]", "buf", "i", "deque.poll()", "deque.poll", "deque", "System.out.println(String.valueOf(buf))", "System.out.println", "System.out", "System", "System.out", "String.valueOf(buf)", "String.valueOf", "String", "buf", "String args[]", "args", "public class Main{\n\n\tstatic final Scanner s=new Scanner(System.in);\n\n\tpublic static void main(String args[]){\n\t\tString b;\n\t\twhile(!(b=s.next()).equals(\"-\")){\n\t\t\tchar buf[]=b.toCharArray();\n\t\t\tArrayDeque<Character> deque=new ArrayDeque<>();\n\t\t\tfor(char c:buf)\n\t\t\t\tdeque.add(c);\n\t\t\tfor(int i=s.nextInt(); i>0; i--){\n\t\t\t\tfor(int j=s.nextInt(); j>0; j--){\n\t\t\t\t\tdeque.add(deque.poll());\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0; i<buf.length; i++)\n\t\t\t\tbuf[i]=deque.poll();\n\t\t\tSystem.out.println(String.valueOf(buf));\n\t\t}\n\t}\n}", "public class Main{\n\n\tstatic final Scanner s=new Scanner(System.in);\n\n\tpublic static void main(String args[]){\n\t\tString b;\n\t\twhile(!(b=s.next()).equals(\"-\")){\n\t\t\tchar buf[]=b.toCharArray();\n\t\t\tArrayDeque<Character> deque=new ArrayDeque<>();\n\t\t\tfor(char c:buf)\n\t\t\t\tdeque.add(c);\n\t\t\tfor(int i=s.nextInt(); i>0; i--){\n\t\t\t\tfor(int j=s.nextInt(); j>0; j--){\n\t\t\t\t\tdeque.add(deque.poll());\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0; i<buf.length; i++)\n\t\t\t\tbuf[i]=deque.poll();\n\t\t\tSystem.out.println(String.valueOf(buf));\n\t\t}\n\t}\n}", "Main" ]
import java.util.ArrayDeque; import java.util.Scanner; public class Main{ static final Scanner s=new Scanner(System.in); public static void main(String args[]){ String b; while(!(b=s.next()).equals("-")){ char buf[]=b.toCharArray(); ArrayDeque<Character> deque=new ArrayDeque<>(); for(char c:buf) deque.add(c); for(int i=s.nextInt(); i>0; i--){ for(int j=s.nextInt(); j>0; j--){ deque.add(deque.poll()); } } for(int i=0; i<buf.length; i++) buf[i]=deque.poll(); System.out.println(String.valueOf(buf)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 13, 41, 13, 4, 18, 13, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 17, 13, 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 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 22, 27 ], [ 27, 28 ], [ 16, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 34, 35 ], [ 35, 36 ], [ 16, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 37, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 56, 57 ], [ 49, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 60, 64 ], [ 49, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 49, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 16, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 76, 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 public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(sc.hasNextLine()) {\n String num=sc.nextLine();\n if(num.equals(\"-\")) {\n \tbreak;\n }\n int m=Integer.parseInt(sc.nextLine());\n for(int i=0;i<m;i++) {\n \tint h=Integer.parseInt(sc.nextLine());\n \tString head = num.substring(0,h);\n \tString tail = num.substring(h);\n \tnum = tail + head;\n }\n System.out.printf(\"%s\\n\", num);\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 while(sc.hasNextLine()) {\n String num=sc.nextLine();\n if(num.equals(\"-\")) {\n \tbreak;\n }\n int m=Integer.parseInt(sc.nextLine());\n for(int i=0;i<m;i++) {\n \tint h=Integer.parseInt(sc.nextLine());\n \tString head = num.substring(0,h);\n \tString tail = num.substring(h);\n \tnum = tail + head;\n }\n System.out.printf(\"%s\\n\", num);\n }\n sc.close();\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(sc.hasNextLine()) {\n String num=sc.nextLine();\n if(num.equals(\"-\")) {\n \tbreak;\n }\n int m=Integer.parseInt(sc.nextLine());\n for(int i=0;i<m;i++) {\n \tint h=Integer.parseInt(sc.nextLine());\n \tString head = num.substring(0,h);\n \tString tail = num.substring(h);\n \tnum = tail + head;\n }\n System.out.printf(\"%s\\n\", num);\n }\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while(sc.hasNextLine()) {\n String num=sc.nextLine();\n if(num.equals(\"-\")) {\n \tbreak;\n }\n int m=Integer.parseInt(sc.nextLine());\n for(int i=0;i<m;i++) {\n \tint h=Integer.parseInt(sc.nextLine());\n \tString head = num.substring(0,h);\n \tString tail = num.substring(h);\n \tnum = tail + head;\n }\n System.out.printf(\"%s\\n\", num);\n }\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(sc.hasNextLine()) {\n String num=sc.nextLine();\n if(num.equals(\"-\")) {\n \tbreak;\n }\n int m=Integer.parseInt(sc.nextLine());\n for(int i=0;i<m;i++) {\n \tint h=Integer.parseInt(sc.nextLine());\n \tString head = num.substring(0,h);\n \tString tail = num.substring(h);\n \tnum = tail + head;\n }\n System.out.printf(\"%s\\n\", num);\n }", "sc.hasNextLine()", "sc.hasNextLine", "sc", "{\n String num=sc.nextLine();\n if(num.equals(\"-\")) {\n \tbreak;\n }\n int m=Integer.parseInt(sc.nextLine());\n for(int i=0;i<m;i++) {\n \tint h=Integer.parseInt(sc.nextLine());\n \tString head = num.substring(0,h);\n \tString tail = num.substring(h);\n \tnum = tail + head;\n }\n System.out.printf(\"%s\\n\", num);\n }", "String num=sc.nextLine();", "num", "sc.nextLine()", "sc.nextLine", "sc", "if(num.equals(\"-\")) {\n \tbreak;\n }", "num.equals(\"-\")", "num.equals", "num", "\"-\"", "{\n \tbreak;\n }", "break;", "int m=Integer.parseInt(sc.nextLine());", "m", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "for(int i=0;i<m;i++) {\n \tint h=Integer.parseInt(sc.nextLine());\n \tString head = num.substring(0,h);\n \tString tail = num.substring(h);\n \tnum = tail + head;\n }", "int i=0;", "int i=0;", "i", "0", "i<m", "i", "m", "i++", "i++", "i", "{\n \tint h=Integer.parseInt(sc.nextLine());\n \tString head = num.substring(0,h);\n \tString tail = num.substring(h);\n \tnum = tail + head;\n }", "{\n \tint h=Integer.parseInt(sc.nextLine());\n \tString head = num.substring(0,h);\n \tString tail = num.substring(h);\n \tnum = tail + head;\n }", "int h=Integer.parseInt(sc.nextLine());", "h", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "String head = num.substring(0,h);", "head", "num.substring(0,h)", "num.substring", "num", "0", "h", "String tail = num.substring(h);", "tail", "num.substring(h)", "num.substring", "num", "h", "num = tail + head", "num", "tail + head", "tail", "head", "System.out.printf(\"%s\\n\", num)", "System.out.printf", "System.out", "System", "System.out", "\"%s\\n\"", "num", "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 while(sc.hasNextLine()) {\n String num=sc.nextLine();\n if(num.equals(\"-\")) {\n \tbreak;\n }\n int m=Integer.parseInt(sc.nextLine());\n for(int i=0;i<m;i++) {\n \tint h=Integer.parseInt(sc.nextLine());\n \tString head = num.substring(0,h);\n \tString tail = num.substring(h);\n \tnum = tail + head;\n }\n System.out.printf(\"%s\\n\", num);\n }\n sc.close();\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(sc.hasNextLine()) {\n String num=sc.nextLine();\n if(num.equals(\"-\")) {\n \tbreak;\n }\n int m=Integer.parseInt(sc.nextLine());\n for(int i=0;i<m;i++) {\n \tint h=Integer.parseInt(sc.nextLine());\n \tString head = num.substring(0,h);\n \tString tail = num.substring(h);\n \tnum = tail + head;\n }\n System.out.printf(\"%s\\n\", num);\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); while(sc.hasNextLine()) { String num=sc.nextLine(); if(num.equals("-")) { break; } int m=Integer.parseInt(sc.nextLine()); for(int i=0;i<m;i++) { int h=Integer.parseInt(sc.nextLine()); String head = num.substring(0,h); String tail = num.substring(h); num = tail + head; } System.out.printf("%s\n", num); } sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 30, 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, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 20, 13, 0, 18, 13, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 2, 13, 17, 18, 13, 13, 0, 18, 13, 2, 18, 13, 13, 17, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 152, 11 ], [ 152, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 26, 31 ], [ 31, 32 ], [ 26, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 33, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 56, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 62, 70 ], [ 70, 71 ], [ 71, 72 ], [ 62, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 74, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 86, 96 ], [ 96, 97 ], [ 97, 98 ], [ 86, 99 ], [ 100, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 101, 107 ], [ 107, 108 ], [ 107, 109 ], [ 74, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 110, 118 ], [ 118, 119 ], [ 118, 120 ], [ 33, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 128, 130 ], [ 121, 131 ], [ 131, 132 ], [ 132, 133 ], [ 121, 134 ], [ 135, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 141, 142 ], [ 141, 143 ], [ 33, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 12, 149 ], [ 149, 150 ], [ 0, 151 ], [ 151, 152 ], [ 151, 153 ] ]
[ "import java.util.Scanner;\nimport java.util.ArrayList;\nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n String S=sc.next();\n //System.out.println(S);\n if(S.equals(\"-\")){\n break;\n }else{\n char[] c = S.toCharArray();\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h= sc.nextInt();\n for(int j=0;j<h;j++){\n char[] temp = new char[h];\n temp[j] = c[0];\n //System.out.println(temp[j]);\n for(int k=1;k<c.length;k++){\n c[k-1]=c[k];\n //System.out.print(c[k]);\n }\n c[c.length-1]=temp[j];\n //System.out.println(c[c.length-1]);\n }\n }\n for(int l=0;l<c.length;l++){\n System.out.print(c[l]);\n }\n System.out.println();\n }\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.io.*;", "io.*", "java", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n String S=sc.next();\n //System.out.println(S);\n if(S.equals(\"-\")){\n break;\n }else{\n char[] c = S.toCharArray();\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h= sc.nextInt();\n for(int j=0;j<h;j++){\n char[] temp = new char[h];\n temp[j] = c[0];\n //System.out.println(temp[j]);\n for(int k=1;k<c.length;k++){\n c[k-1]=c[k];\n //System.out.print(c[k]);\n }\n c[c.length-1]=temp[j];\n //System.out.println(c[c.length-1]);\n }\n }\n for(int l=0;l<c.length;l++){\n System.out.print(c[l]);\n }\n System.out.println();\n }\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n String S=sc.next();\n //System.out.println(S);\n if(S.equals(\"-\")){\n break;\n }else{\n char[] c = S.toCharArray();\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h= sc.nextInt();\n for(int j=0;j<h;j++){\n char[] temp = new char[h];\n temp[j] = c[0];\n //System.out.println(temp[j]);\n for(int k=1;k<c.length;k++){\n c[k-1]=c[k];\n //System.out.print(c[k]);\n }\n c[c.length-1]=temp[j];\n //System.out.println(c[c.length-1]);\n }\n }\n for(int l=0;l<c.length;l++){\n System.out.print(c[l]);\n }\n System.out.println();\n }\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while(true){\n String S=sc.next();\n //System.out.println(S);\n if(S.equals(\"-\")){\n break;\n }else{\n char[] c = S.toCharArray();\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h= sc.nextInt();\n for(int j=0;j<h;j++){\n char[] temp = new char[h];\n temp[j] = c[0];\n //System.out.println(temp[j]);\n for(int k=1;k<c.length;k++){\n c[k-1]=c[k];\n //System.out.print(c[k]);\n }\n c[c.length-1]=temp[j];\n //System.out.println(c[c.length-1]);\n }\n }\n for(int l=0;l<c.length;l++){\n System.out.print(c[l]);\n }\n System.out.println();\n }\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n String S=sc.next();\n //System.out.println(S);\n if(S.equals(\"-\")){\n break;\n }else{\n char[] c = S.toCharArray();\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h= sc.nextInt();\n for(int j=0;j<h;j++){\n char[] temp = new char[h];\n temp[j] = c[0];\n //System.out.println(temp[j]);\n for(int k=1;k<c.length;k++){\n c[k-1]=c[k];\n //System.out.print(c[k]);\n }\n c[c.length-1]=temp[j];\n //System.out.println(c[c.length-1]);\n }\n }\n for(int l=0;l<c.length;l++){\n System.out.print(c[l]);\n }\n System.out.println();\n }\n }", "true", "{\n String S=sc.next();\n //System.out.println(S);\n if(S.equals(\"-\")){\n break;\n }else{\n char[] c = S.toCharArray();\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h= sc.nextInt();\n for(int j=0;j<h;j++){\n char[] temp = new char[h];\n temp[j] = c[0];\n //System.out.println(temp[j]);\n for(int k=1;k<c.length;k++){\n c[k-1]=c[k];\n //System.out.print(c[k]);\n }\n c[c.length-1]=temp[j];\n //System.out.println(c[c.length-1]);\n }\n }\n for(int l=0;l<c.length;l++){\n System.out.print(c[l]);\n }\n System.out.println();\n }\n }", "String S=sc.next();", "S", "sc.next()", "sc.next", "sc", "if(S.equals(\"-\")){\n break;\n }else{\n char[] c = S.toCharArray();\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h= sc.nextInt();\n for(int j=0;j<h;j++){\n char[] temp = new char[h];\n temp[j] = c[0];\n //System.out.println(temp[j]);\n for(int k=1;k<c.length;k++){\n c[k-1]=c[k];\n //System.out.print(c[k]);\n }\n c[c.length-1]=temp[j];\n //System.out.println(c[c.length-1]);\n }\n }\n for(int l=0;l<c.length;l++){\n System.out.print(c[l]);\n }\n System.out.println();\n }", "S.equals(\"-\")", "S.equals", "S", "\"-\"", "{\n break;\n }", "break;", "{\n char[] c = S.toCharArray();\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h= sc.nextInt();\n for(int j=0;j<h;j++){\n char[] temp = new char[h];\n temp[j] = c[0];\n //System.out.println(temp[j]);\n for(int k=1;k<c.length;k++){\n c[k-1]=c[k];\n //System.out.print(c[k]);\n }\n c[c.length-1]=temp[j];\n //System.out.println(c[c.length-1]);\n }\n }\n for(int l=0;l<c.length;l++){\n System.out.print(c[l]);\n }\n System.out.println();\n }", "char[] c = S.toCharArray();", "c", "S.toCharArray()", "S.toCharArray", "S", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0;i<m;i++){\n int h= sc.nextInt();\n for(int j=0;j<h;j++){\n char[] temp = new char[h];\n temp[j] = c[0];\n //System.out.println(temp[j]);\n for(int k=1;k<c.length;k++){\n c[k-1]=c[k];\n //System.out.print(c[k]);\n }\n c[c.length-1]=temp[j];\n //System.out.println(c[c.length-1]);\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<m", "i", "m", "i++", "i++", "i", "{\n int h= sc.nextInt();\n for(int j=0;j<h;j++){\n char[] temp = new char[h];\n temp[j] = c[0];\n //System.out.println(temp[j]);\n for(int k=1;k<c.length;k++){\n c[k-1]=c[k];\n //System.out.print(c[k]);\n }\n c[c.length-1]=temp[j];\n //System.out.println(c[c.length-1]);\n }\n }", "{\n int h= sc.nextInt();\n for(int j=0;j<h;j++){\n char[] temp = new char[h];\n temp[j] = c[0];\n //System.out.println(temp[j]);\n for(int k=1;k<c.length;k++){\n c[k-1]=c[k];\n //System.out.print(c[k]);\n }\n c[c.length-1]=temp[j];\n //System.out.println(c[c.length-1]);\n }\n }", "int h= sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "for(int j=0;j<h;j++){\n char[] temp = new char[h];\n temp[j] = c[0];\n //System.out.println(temp[j]);\n for(int k=1;k<c.length;k++){\n c[k-1]=c[k];\n //System.out.print(c[k]);\n }\n c[c.length-1]=temp[j];\n //System.out.println(c[c.length-1]);\n }", "int j=0;", "int j=0;", "j", "0", "j<h", "j", "h", "j++", "j++", "j", "{\n char[] temp = new char[h];\n temp[j] = c[0];\n //System.out.println(temp[j]);\n for(int k=1;k<c.length;k++){\n c[k-1]=c[k];\n //System.out.print(c[k]);\n }\n c[c.length-1]=temp[j];\n //System.out.println(c[c.length-1]);\n }", "{\n char[] temp = new char[h];\n temp[j] = c[0];\n //System.out.println(temp[j]);\n for(int k=1;k<c.length;k++){\n c[k-1]=c[k];\n //System.out.print(c[k]);\n }\n c[c.length-1]=temp[j];\n //System.out.println(c[c.length-1]);\n }", "char[] temp = new char[h];", "temp", "new char[h]", "h", "temp[j] = c[0]", "temp[j]", "temp", "j", "c[0]", "c", "0", "for(int k=1;k<c.length;k++){\n c[k-1]=c[k];\n //System.out.print(c[k]);\n }", "int k=1;", "int k=1;", "k", "1", "k<c.length", "k", "c.length", "c", "c.length", "k++", "k++", "k", "{\n c[k-1]=c[k];\n //System.out.print(c[k]);\n }", "{\n c[k-1]=c[k];\n //System.out.print(c[k]);\n }", "c[k-1]=c[k]", "c[k-1]", "c", "k-1", "k", "1", "c[k]", "c", "k", "c[c.length-1]=temp[j]", "c[c.length-1]", "c", "c.length-1", "c.length", "c", "c.length", "1", "temp[j]", "temp", "j", "for(int l=0;l<c.length;l++){\n System.out.print(c[l]);\n }", "int l=0;", "int l=0;", "l", "0", "l<c.length", "l", "c.length", "c", "c.length", "l++", "l++", "l", "{\n System.out.print(c[l]);\n }", "{\n System.out.print(c[l]);\n }", "System.out.print(c[l])", "System.out.print", "System.out", "System", "System.out", "c[l]", "c", "l", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n String S=sc.next();\n //System.out.println(S);\n if(S.equals(\"-\")){\n break;\n }else{\n char[] c = S.toCharArray();\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h= sc.nextInt();\n for(int j=0;j<h;j++){\n char[] temp = new char[h];\n temp[j] = c[0];\n //System.out.println(temp[j]);\n for(int k=1;k<c.length;k++){\n c[k-1]=c[k];\n //System.out.print(c[k]);\n }\n c[c.length-1]=temp[j];\n //System.out.println(c[c.length-1]);\n }\n }\n for(int l=0;l<c.length;l++){\n System.out.print(c[l]);\n }\n System.out.println();\n }\n }\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n while(true){\n String S=sc.next();\n //System.out.println(S);\n if(S.equals(\"-\")){\n break;\n }else{\n char[] c = S.toCharArray();\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h= sc.nextInt();\n for(int j=0;j<h;j++){\n char[] temp = new char[h];\n temp[j] = c[0];\n //System.out.println(temp[j]);\n for(int k=1;k<c.length;k++){\n c[k-1]=c[k];\n //System.out.print(c[k]);\n }\n c[c.length-1]=temp[j];\n //System.out.println(c[c.length-1]);\n }\n }\n for(int l=0;l<c.length;l++){\n System.out.print(c[l]);\n }\n System.out.println();\n }\n }\n }\n}", "Main" ]
import java.util.Scanner; import java.util.ArrayList; import java.io.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(true){ String S=sc.next(); //System.out.println(S); if(S.equals("-")){ break; }else{ char[] c = S.toCharArray(); int m = sc.nextInt(); for(int i=0;i<m;i++){ int h= sc.nextInt(); for(int j=0;j<h;j++){ char[] temp = new char[h]; temp[j] = c[0]; //System.out.println(temp[j]); for(int k=1;k<c.length;k++){ c[k-1]=c[k]; //System.out.print(c[k]); } c[c.length-1]=temp[j]; //System.out.println(c[c.length-1]); } } for(int l=0;l<c.length;l++){ System.out.print(c[l]); } System.out.println(); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 40, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 41, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 0, 13, 2, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 17, 13, 4, 18, 13, 13, 28, 13, 13, 30, 30, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 21, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 38, 39 ], [ 39, 40 ], [ 27, 41 ], [ 41, 42 ], [ 27, 43 ], [ 43, 44 ], [ 27, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 53, 54 ], [ 54, 55 ], [ 45, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 64, 65 ], [ 57, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 68, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 76, 80 ], [ 27, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 14, 85 ], [ 85, 86 ], [ 85, 87 ], [ 85, 88 ], [ 89, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 12, 96 ], [ 96, 97 ] ]
[ "import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tList<String> ret = new ArrayList<String>();\n\t\twhile (!in.hasNext(\"-\")) {\n\t\t\tString n = in.next();\n\t\t\tint cnt = Integer.parseInt(in.next());\n\t\t\tint i, h;\n\t\t\tfor (i = 0; i < cnt; i++) {\n\t\t\t\th = Integer.parseInt(in.next());\n\t\t\t\tn = n.substring(h, n.length()) + n.substring(0, h);\n\t\t\t}\n\t\t\tret.add(n);\n\t\t}\n\n\t\tfor (String text : ret) {\n\t\t\tSystem.out.println(text);\n\t\t}\n\t}\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tList<String> ret = new ArrayList<String>();\n\t\twhile (!in.hasNext(\"-\")) {\n\t\t\tString n = in.next();\n\t\t\tint cnt = Integer.parseInt(in.next());\n\t\t\tint i, h;\n\t\t\tfor (i = 0; i < cnt; i++) {\n\t\t\t\th = Integer.parseInt(in.next());\n\t\t\t\tn = n.substring(h, n.length()) + n.substring(0, h);\n\t\t\t}\n\t\t\tret.add(n);\n\t\t}\n\n\t\tfor (String text : ret) {\n\t\t\tSystem.out.println(text);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tList<String> ret = new ArrayList<String>();\n\t\twhile (!in.hasNext(\"-\")) {\n\t\t\tString n = in.next();\n\t\t\tint cnt = Integer.parseInt(in.next());\n\t\t\tint i, h;\n\t\t\tfor (i = 0; i < cnt; i++) {\n\t\t\t\th = Integer.parseInt(in.next());\n\t\t\t\tn = n.substring(h, n.length()) + n.substring(0, h);\n\t\t\t}\n\t\t\tret.add(n);\n\t\t}\n\n\t\tfor (String text : ret) {\n\t\t\tSystem.out.println(text);\n\t\t}\n\t}", "main", "{\n\t\tScanner in = new Scanner(System.in);\n\t\tList<String> ret = new ArrayList<String>();\n\t\twhile (!in.hasNext(\"-\")) {\n\t\t\tString n = in.next();\n\t\t\tint cnt = Integer.parseInt(in.next());\n\t\t\tint i, h;\n\t\t\tfor (i = 0; i < cnt; i++) {\n\t\t\t\th = Integer.parseInt(in.next());\n\t\t\t\tn = n.substring(h, n.length()) + n.substring(0, h);\n\t\t\t}\n\t\t\tret.add(n);\n\t\t}\n\n\t\tfor (String text : ret) {\n\t\t\tSystem.out.println(text);\n\t\t}\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "List<String> ret = new ArrayList<String>();", "ret", "new ArrayList<String>()", "while (!in.hasNext(\"-\")) {\n\t\t\tString n = in.next();\n\t\t\tint cnt = Integer.parseInt(in.next());\n\t\t\tint i, h;\n\t\t\tfor (i = 0; i < cnt; i++) {\n\t\t\t\th = Integer.parseInt(in.next());\n\t\t\t\tn = n.substring(h, n.length()) + n.substring(0, h);\n\t\t\t}\n\t\t\tret.add(n);\n\t\t}", "!in.hasNext(\"-\")", "in.hasNext(\"-\")", "in.hasNext", "in", "\"-\"", "{\n\t\t\tString n = in.next();\n\t\t\tint cnt = Integer.parseInt(in.next());\n\t\t\tint i, h;\n\t\t\tfor (i = 0; i < cnt; i++) {\n\t\t\t\th = Integer.parseInt(in.next());\n\t\t\t\tn = n.substring(h, n.length()) + n.substring(0, h);\n\t\t\t}\n\t\t\tret.add(n);\n\t\t}", "String n = in.next();", "n", "in.next()", "in.next", "in", "int cnt = Integer.parseInt(in.next());", "cnt", "Integer.parseInt(in.next())", "Integer.parseInt", "Integer", "in.next()", "in.next", "in", "int i", "i", "h;", "h", "for (i = 0; i < cnt; i++) {\n\t\t\t\th = Integer.parseInt(in.next());\n\t\t\t\tn = n.substring(h, n.length()) + n.substring(0, h);\n\t\t\t}", "i = 0;", "i = 0", "i", "0", "i < cnt", "i", "cnt", "i++", "i++", "i", "{\n\t\t\t\th = Integer.parseInt(in.next());\n\t\t\t\tn = n.substring(h, n.length()) + n.substring(0, h);\n\t\t\t}", "{\n\t\t\t\th = Integer.parseInt(in.next());\n\t\t\t\tn = n.substring(h, n.length()) + n.substring(0, h);\n\t\t\t}", "h = Integer.parseInt(in.next())", "h", "Integer.parseInt(in.next())", "Integer.parseInt", "Integer", "in.next()", "in.next", "in", "n = n.substring(h, n.length()) + n.substring(0, h)", "n", "n.substring(h, n.length()) + n.substring(0, h)", "n.substring(h, n.length())", "n.substring", "n", "h", "n.length()", "n.length", "n", "n.substring(0, h)", "n.substring", "n", "0", "h", "ret.add(n)", "ret.add", "ret", "n", "for (String text : ret) {\n\t\t\tSystem.out.println(text);\n\t\t}", "String text", "ret", "{\n\t\t\tSystem.out.println(text);\n\t\t}", "{\n\t\t\tSystem.out.println(text);\n\t\t}", "System.out.println(text)", "System.out.println", "System.out", "System", "System.out", "text", "String[] args", "args" ]
import java.util.ArrayList; import java.util.List; import java.util.Scanner; class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); List<String> ret = new ArrayList<String>(); while (!in.hasNext("-")) { String n = in.next(); int cnt = Integer.parseInt(in.next()); int i, h; for (i = 0; i < cnt; i++) { h = Integer.parseInt(in.next()); n = n.substring(h, n.length()) + n.substring(0, h); } ret.add(n); } for (String text : ret) { System.out.println(text); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 11, 1, 30, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 17, 41, 13, 20, 18, 13, 13, 41, 13, 20, 18, 13, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 2, 13, 13, 14, 2, 13, 18, 13, 13, 30, 0, 13, 2, 13, 18, 13, 13, 30, 0, 13, 13, 0, 18, 13, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 168, 5 ], [ 168, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 17, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 23, 28 ], [ 17, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 17, 35 ], [ 35, 36 ], [ 35, 37 ], [ 38, 39 ], [ 38, 40 ], [ 17, 41 ], [ 41, 42 ], [ 41, 43 ], [ 44, 45 ], [ 44, 46 ], [ 17, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 17, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 64, 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 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 84, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 90, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 101, 103 ], [ 90, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 84, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 112, 113 ], [ 112, 114 ], [ 64, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 122, 124 ], [ 115, 125 ], [ 125, 126 ], [ 126, 127 ], [ 115, 128 ], [ 129, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 134, 135 ], [ 134, 136 ], [ 17, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 137, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 144, 146 ], [ 137, 147 ], [ 147, 148 ], [ 148, 149 ], [ 137, 150 ], [ 151, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 152, 157 ], [ 157, 158 ], [ 157, 159 ], [ 17, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 6, 165 ], [ 165, 166 ], [ 0, 167 ], [ 167, 168 ], [ 167, 169 ] ]
[ "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\tint num;\n\t\tfor(;;){\n\t\t\tString wo = sc.next();\n\t\t\tif(wo.equals(\"-\"))break;\n\t\t\tString[] woArray = wo.split(\"\");\n\t\t\tString[] ans = new String[woArray.length];\n\t\t\tString[] sans = new String[woArray.length];\n\t\t\tint m = sc.nextInt();\n\t\t\tfor(int i=0; i<m; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tfor(int j=0; j<woArray.length; j++){\n\t\t\t\t\tint add = j + h;\n\t\t\t\t\tif(add>=woArray.length){\n\t\t\t\t\t\tnum = add - woArray.length;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = add;\n\t\t\t\t\t}\n\t\t\t\t\tans[j]=woArray[num];\n\t\t\t\t}\n\t\t\t\tfor(int j=0; j<woArray.length; j++){\n\t\t\t\t\twoArray[j]=ans[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j=0; j<ans.length; j++){\n\t\t\t\tSystem.out.print(ans[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num;\n\t\tfor(;;){\n\t\t\tString wo = sc.next();\n\t\t\tif(wo.equals(\"-\"))break;\n\t\t\tString[] woArray = wo.split(\"\");\n\t\t\tString[] ans = new String[woArray.length];\n\t\t\tString[] sans = new String[woArray.length];\n\t\t\tint m = sc.nextInt();\n\t\t\tfor(int i=0; i<m; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tfor(int j=0; j<woArray.length; j++){\n\t\t\t\t\tint add = j + h;\n\t\t\t\t\tif(add>=woArray.length){\n\t\t\t\t\t\tnum = add - woArray.length;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = add;\n\t\t\t\t\t}\n\t\t\t\t\tans[j]=woArray[num];\n\t\t\t\t}\n\t\t\t\tfor(int j=0; j<woArray.length; j++){\n\t\t\t\t\twoArray[j]=ans[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j=0; j<ans.length; j++){\n\t\t\t\tSystem.out.print(ans[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\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\tint num;\n\t\tfor(;;){\n\t\t\tString wo = sc.next();\n\t\t\tif(wo.equals(\"-\"))break;\n\t\t\tString[] woArray = wo.split(\"\");\n\t\t\tString[] ans = new String[woArray.length];\n\t\t\tString[] sans = new String[woArray.length];\n\t\t\tint m = sc.nextInt();\n\t\t\tfor(int i=0; i<m; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tfor(int j=0; j<woArray.length; j++){\n\t\t\t\t\tint add = j + h;\n\t\t\t\t\tif(add>=woArray.length){\n\t\t\t\t\t\tnum = add - woArray.length;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = add;\n\t\t\t\t\t}\n\t\t\t\t\tans[j]=woArray[num];\n\t\t\t\t}\n\t\t\t\tfor(int j=0; j<woArray.length; j++){\n\t\t\t\t\twoArray[j]=ans[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j=0; j<ans.length; j++){\n\t\t\t\tSystem.out.print(ans[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num;\n\t\tfor(;;){\n\t\t\tString wo = sc.next();\n\t\t\tif(wo.equals(\"-\"))break;\n\t\t\tString[] woArray = wo.split(\"\");\n\t\t\tString[] ans = new String[woArray.length];\n\t\t\tString[] sans = new String[woArray.length];\n\t\t\tint m = sc.nextInt();\n\t\t\tfor(int i=0; i<m; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tfor(int j=0; j<woArray.length; j++){\n\t\t\t\t\tint add = j + h;\n\t\t\t\t\tif(add>=woArray.length){\n\t\t\t\t\t\tnum = add - woArray.length;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = add;\n\t\t\t\t\t}\n\t\t\t\t\tans[j]=woArray[num];\n\t\t\t\t}\n\t\t\t\tfor(int j=0; j<woArray.length; j++){\n\t\t\t\t\twoArray[j]=ans[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j=0; j<ans.length; j++){\n\t\t\t\tSystem.out.print(ans[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int num;", "num", "for(;;){\n\t\t\tString wo = sc.next();\n\t\t\tif(wo.equals(\"-\"))break;\n\t\t\tString[] woArray = wo.split(\"\");\n\t\t\tString[] ans = new String[woArray.length];\n\t\t\tString[] sans = new String[woArray.length];\n\t\t\tint m = sc.nextInt();\n\t\t\tfor(int i=0; i<m; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tfor(int j=0; j<woArray.length; j++){\n\t\t\t\t\tint add = j + h;\n\t\t\t\t\tif(add>=woArray.length){\n\t\t\t\t\t\tnum = add - woArray.length;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = add;\n\t\t\t\t\t}\n\t\t\t\t\tans[j]=woArray[num];\n\t\t\t\t}\n\t\t\t\tfor(int j=0; j<woArray.length; j++){\n\t\t\t\t\twoArray[j]=ans[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j=0; j<ans.length; j++){\n\t\t\t\tSystem.out.print(ans[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", ";", "{\n\t\t\tString wo = sc.next();\n\t\t\tif(wo.equals(\"-\"))break;\n\t\t\tString[] woArray = wo.split(\"\");\n\t\t\tString[] ans = new String[woArray.length];\n\t\t\tString[] sans = new String[woArray.length];\n\t\t\tint m = sc.nextInt();\n\t\t\tfor(int i=0; i<m; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tfor(int j=0; j<woArray.length; j++){\n\t\t\t\t\tint add = j + h;\n\t\t\t\t\tif(add>=woArray.length){\n\t\t\t\t\t\tnum = add - woArray.length;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = add;\n\t\t\t\t\t}\n\t\t\t\t\tans[j]=woArray[num];\n\t\t\t\t}\n\t\t\t\tfor(int j=0; j<woArray.length; j++){\n\t\t\t\t\twoArray[j]=ans[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j=0; j<ans.length; j++){\n\t\t\t\tSystem.out.print(ans[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "{\n\t\t\tString wo = sc.next();\n\t\t\tif(wo.equals(\"-\"))break;\n\t\t\tString[] woArray = wo.split(\"\");\n\t\t\tString[] ans = new String[woArray.length];\n\t\t\tString[] sans = new String[woArray.length];\n\t\t\tint m = sc.nextInt();\n\t\t\tfor(int i=0; i<m; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tfor(int j=0; j<woArray.length; j++){\n\t\t\t\t\tint add = j + h;\n\t\t\t\t\tif(add>=woArray.length){\n\t\t\t\t\t\tnum = add - woArray.length;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = add;\n\t\t\t\t\t}\n\t\t\t\t\tans[j]=woArray[num];\n\t\t\t\t}\n\t\t\t\tfor(int j=0; j<woArray.length; j++){\n\t\t\t\t\twoArray[j]=ans[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j=0; j<ans.length; j++){\n\t\t\t\tSystem.out.print(ans[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "String wo = sc.next();", "wo", "sc.next()", "sc.next", "sc", "if(wo.equals(\"-\"))break;", "wo.equals(\"-\")", "wo.equals", "wo", "\"-\"", "break;", "String[] woArray = wo.split(\"\");", "woArray", "wo.split(\"\")", "wo.split", "wo", "\"\"", "String[] ans = new String[woArray.length];", "ans", "new String[woArray.length]", "woArray.length", "woArray", "woArray.length", "String[] sans = new String[woArray.length];", "sans", "new String[woArray.length]", "woArray.length", "woArray", "woArray.length", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0; i<m; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tfor(int j=0; j<woArray.length; j++){\n\t\t\t\t\tint add = j + h;\n\t\t\t\t\tif(add>=woArray.length){\n\t\t\t\t\t\tnum = add - woArray.length;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = add;\n\t\t\t\t\t}\n\t\t\t\t\tans[j]=woArray[num];\n\t\t\t\t}\n\t\t\t\tfor(int j=0; j<woArray.length; j++){\n\t\t\t\t\twoArray[j]=ans[j];\n\t\t\t\t}\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<m", "i", "m", "i++", "i++", "i", "{\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tfor(int j=0; j<woArray.length; j++){\n\t\t\t\t\tint add = j + h;\n\t\t\t\t\tif(add>=woArray.length){\n\t\t\t\t\t\tnum = add - woArray.length;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = add;\n\t\t\t\t\t}\n\t\t\t\t\tans[j]=woArray[num];\n\t\t\t\t}\n\t\t\t\tfor(int j=0; j<woArray.length; j++){\n\t\t\t\t\twoArray[j]=ans[j];\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tfor(int j=0; j<woArray.length; j++){\n\t\t\t\t\tint add = j + h;\n\t\t\t\t\tif(add>=woArray.length){\n\t\t\t\t\t\tnum = add - woArray.length;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = add;\n\t\t\t\t\t}\n\t\t\t\t\tans[j]=woArray[num];\n\t\t\t\t}\n\t\t\t\tfor(int j=0; j<woArray.length; j++){\n\t\t\t\t\twoArray[j]=ans[j];\n\t\t\t\t}\n\t\t\t}", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "for(int j=0; j<woArray.length; j++){\n\t\t\t\t\tint add = j + h;\n\t\t\t\t\tif(add>=woArray.length){\n\t\t\t\t\t\tnum = add - woArray.length;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = add;\n\t\t\t\t\t}\n\t\t\t\t\tans[j]=woArray[num];\n\t\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<woArray.length", "j", "woArray.length", "woArray", "woArray.length", "j++", "j++", "j", "{\n\t\t\t\t\tint add = j + h;\n\t\t\t\t\tif(add>=woArray.length){\n\t\t\t\t\t\tnum = add - woArray.length;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = add;\n\t\t\t\t\t}\n\t\t\t\t\tans[j]=woArray[num];\n\t\t\t\t}", "{\n\t\t\t\t\tint add = j + h;\n\t\t\t\t\tif(add>=woArray.length){\n\t\t\t\t\t\tnum = add - woArray.length;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = add;\n\t\t\t\t\t}\n\t\t\t\t\tans[j]=woArray[num];\n\t\t\t\t}", "int add = j + h;", "add", "j + h", "j", "h", "if(add>=woArray.length){\n\t\t\t\t\t\tnum = add - woArray.length;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = add;\n\t\t\t\t\t}", "add>=woArray.length", "add", "woArray.length", "woArray", "woArray.length", "{\n\t\t\t\t\t\tnum = add - woArray.length;\n\t\t\t\t\t}", "num = add - woArray.length", "num", "add - woArray.length", "add", "woArray.length", "woArray", "woArray.length", "{\n\t\t\t\t\t\tnum = add;\n\t\t\t\t\t}", "num = add", "num", "add", "ans[j]=woArray[num]", "ans[j]", "ans", "j", "woArray[num]", "woArray", "num", "for(int j=0; j<woArray.length; j++){\n\t\t\t\t\twoArray[j]=ans[j];\n\t\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<woArray.length", "j", "woArray.length", "woArray", "woArray.length", "j++", "j++", "j", "{\n\t\t\t\t\twoArray[j]=ans[j];\n\t\t\t\t}", "{\n\t\t\t\t\twoArray[j]=ans[j];\n\t\t\t\t}", "woArray[j]=ans[j]", "woArray[j]", "woArray", "j", "ans[j]", "ans", "j", "for(int j=0; j<ans.length; j++){\n\t\t\t\tSystem.out.print(ans[j]);\n\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<ans.length", "j", "ans.length", "ans", "ans.length", "j++", "j++", "j", "{\n\t\t\t\tSystem.out.print(ans[j]);\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(ans[j]);\n\t\t\t}", "System.out.print(ans[j])", "System.out.print", "System.out", "System", "System.out", "ans[j]", "ans", "j", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "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\tint num;\n\t\tfor(;;){\n\t\t\tString wo = sc.next();\n\t\t\tif(wo.equals(\"-\"))break;\n\t\t\tString[] woArray = wo.split(\"\");\n\t\t\tString[] ans = new String[woArray.length];\n\t\t\tString[] sans = new String[woArray.length];\n\t\t\tint m = sc.nextInt();\n\t\t\tfor(int i=0; i<m; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tfor(int j=0; j<woArray.length; j++){\n\t\t\t\t\tint add = j + h;\n\t\t\t\t\tif(add>=woArray.length){\n\t\t\t\t\t\tnum = add - woArray.length;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = add;\n\t\t\t\t\t}\n\t\t\t\t\tans[j]=woArray[num];\n\t\t\t\t}\n\t\t\t\tfor(int j=0; j<woArray.length; j++){\n\t\t\t\t\twoArray[j]=ans[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j=0; j<ans.length; j++){\n\t\t\t\tSystem.out.print(ans[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\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\tint num;\n\t\tfor(;;){\n\t\t\tString wo = sc.next();\n\t\t\tif(wo.equals(\"-\"))break;\n\t\t\tString[] woArray = wo.split(\"\");\n\t\t\tString[] ans = new String[woArray.length];\n\t\t\tString[] sans = new String[woArray.length];\n\t\t\tint m = sc.nextInt();\n\t\t\tfor(int i=0; i<m; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tfor(int j=0; j<woArray.length; j++){\n\t\t\t\t\tint add = j + h;\n\t\t\t\t\tif(add>=woArray.length){\n\t\t\t\t\t\tnum = add - woArray.length;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = add;\n\t\t\t\t\t}\n\t\t\t\t\tans[j]=woArray[num];\n\t\t\t\t}\n\t\t\t\tfor(int j=0; j<woArray.length; j++){\n\t\t\t\t\twoArray[j]=ans[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j=0; j<ans.length; j++){\n\t\t\t\tSystem.out.print(ans[j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\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); int num; for(;;){ String wo = sc.next(); if(wo.equals("-"))break; String[] woArray = wo.split(""); String[] ans = new String[woArray.length]; String[] sans = new String[woArray.length]; int m = sc.nextInt(); for(int i=0; i<m; i++){ int h = sc.nextInt(); for(int j=0; j<woArray.length; j++){ int add = j + h; if(add>=woArray.length){ num = add - woArray.length; }else{ num = add; } ans[j]=woArray[num]; } for(int j=0; j<woArray.length; j++){ woArray[j]=ans[j]; } } for(int j=0; j<ans.length; j++){ System.out.print(ans[j]); } System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 29, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 0, 13, 2, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 81, 5 ], [ 81, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 22, 27 ], [ 16, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 33, 34 ], [ 34, 35 ], [ 16, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 36, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 55, 56 ], [ 48, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 59, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 67, 71 ], [ 16, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 6, 78 ], [ 78, 79 ], [ 0, 80 ], [ 80, 81 ], [ 80, 82 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\twhile (s.hasNext()) {\n\t\t\tString str = s.next();\n\t\t\tif (str.equals(\"-\")) return;\n\t\t\tint n = Integer.parseInt(s.next());\n\t\t\tfor (int i = 0; i < n; ++i) {\n\t\t\t\tint h = Integer.parseInt(s.next());\n\t\t\t\tstr = str.substring(h, str.length()) + str.substring(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(str);\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 s = new Scanner(System.in);\n\t\twhile (s.hasNext()) {\n\t\t\tString str = s.next();\n\t\t\tif (str.equals(\"-\")) return;\n\t\t\tint n = Integer.parseInt(s.next());\n\t\t\tfor (int i = 0; i < n; ++i) {\n\t\t\t\tint h = Integer.parseInt(s.next());\n\t\t\t\tstr = str.substring(h, str.length()) + str.substring(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\twhile (s.hasNext()) {\n\t\t\tString str = s.next();\n\t\t\tif (str.equals(\"-\")) return;\n\t\t\tint n = Integer.parseInt(s.next());\n\t\t\tfor (int i = 0; i < n; ++i) {\n\t\t\t\tint h = Integer.parseInt(s.next());\n\t\t\t\tstr = str.substring(h, str.length()) + str.substring(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}", "main", "{\n\t\tScanner s = new Scanner(System.in);\n\t\twhile (s.hasNext()) {\n\t\t\tString str = s.next();\n\t\t\tif (str.equals(\"-\")) return;\n\t\t\tint n = Integer.parseInt(s.next());\n\t\t\tfor (int i = 0; i < n; ++i) {\n\t\t\t\tint h = Integer.parseInt(s.next());\n\t\t\t\tstr = str.substring(h, str.length()) + str.substring(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "while (s.hasNext()) {\n\t\t\tString str = s.next();\n\t\t\tif (str.equals(\"-\")) return;\n\t\t\tint n = Integer.parseInt(s.next());\n\t\t\tfor (int i = 0; i < n; ++i) {\n\t\t\t\tint h = Integer.parseInt(s.next());\n\t\t\t\tstr = str.substring(h, str.length()) + str.substring(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}", "s.hasNext()", "s.hasNext", "s", "{\n\t\t\tString str = s.next();\n\t\t\tif (str.equals(\"-\")) return;\n\t\t\tint n = Integer.parseInt(s.next());\n\t\t\tfor (int i = 0; i < n; ++i) {\n\t\t\t\tint h = Integer.parseInt(s.next());\n\t\t\t\tstr = str.substring(h, str.length()) + str.substring(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}", "String str = s.next();", "str", "s.next()", "s.next", "s", "if (str.equals(\"-\")) return;", "str.equals(\"-\")", "str.equals", "str", "\"-\"", "return;", "int n = Integer.parseInt(s.next());", "n", "Integer.parseInt(s.next())", "Integer.parseInt", "Integer", "s.next()", "s.next", "s", "for (int i = 0; i < n; ++i) {\n\t\t\t\tint h = Integer.parseInt(s.next());\n\t\t\t\tstr = str.substring(h, str.length()) + str.substring(0, h);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "++i", "++i", "i", "{\n\t\t\t\tint h = Integer.parseInt(s.next());\n\t\t\t\tstr = str.substring(h, str.length()) + str.substring(0, h);\n\t\t\t}", "{\n\t\t\t\tint h = Integer.parseInt(s.next());\n\t\t\t\tstr = str.substring(h, str.length()) + str.substring(0, h);\n\t\t\t}", "int h = Integer.parseInt(s.next());", "h", "Integer.parseInt(s.next())", "Integer.parseInt", "Integer", "s.next()", "s.next", "s", "str = str.substring(h, str.length()) + str.substring(0, h)", "str", "str.substring(h, str.length()) + str.substring(0, h)", "str.substring(h, str.length())", "str.substring", "str", "h", "str.length()", "str.length", "str", "str.substring(0, h)", "str.substring", "str", "0", "h", "System.out.println(str)", "System.out.println", "System.out", "System", "System.out", "str", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\twhile (s.hasNext()) {\n\t\t\tString str = s.next();\n\t\t\tif (str.equals(\"-\")) return;\n\t\t\tint n = Integer.parseInt(s.next());\n\t\t\tfor (int i = 0; i < n; ++i) {\n\t\t\t\tint h = Integer.parseInt(s.next());\n\t\t\t\tstr = str.substring(h, str.length()) + str.substring(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\twhile (s.hasNext()) {\n\t\t\tString str = s.next();\n\t\t\tif (str.equals(\"-\")) return;\n\t\t\tint n = Integer.parseInt(s.next());\n\t\t\tfor (int i = 0; i < n; ++i) {\n\t\t\t\tint h = Integer.parseInt(s.next());\n\t\t\t\tstr = str.substring(h, str.length()) + str.substring(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); while (s.hasNext()) { String str = s.next(); if (str.equals("-")) return; int n = Integer.parseInt(s.next()); for (int i = 0; i < n; ++i) { int h = Integer.parseInt(s.next()); str = str.substring(h, str.length()) + str.substring(0, h); } System.out.println(str); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 0, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 13, 0, 13, 13, 0, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 110, 11 ], [ 110, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 14, 22 ], [ 22, 23 ], [ 14, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 26, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 39, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 45, 50 ], [ 39, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 57, 58 ], [ 39, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 59, 67 ], [ 67, 68 ], [ 68, 69 ], [ 59, 70 ], [ 71, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 78, 79 ], [ 71, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 82, 86 ], [ 71, 87 ], [ 87, 88 ], [ 87, 89 ], [ 71, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 96, 97 ], [ 92, 98 ], [ 98, 99 ], [ 99, 100 ], [ 39, 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\n\n\npublic class Main{\n\tpublic static void main(String[] args){\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString str, text;\n\t\tint num, position;\n\n\t\ttry{\n\n\t\t\twhile(true){\n\t\t\t\tstr=reader.readLine();\n\n\t\t\t\tif(str.equals(\"-\"))break;\n\n\t\t\t\tnum=Integer.parseInt(reader.readLine());\n\n\t\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\t\tposition=Integer.parseInt(reader.readLine());\n\n\t\t\t\t\ttext=str.substring(0, position);\n\t\t\t\t\tstr+=text;\n\t\t\t\t\tstr=str.substring(text.length(), str.length());\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\n\t\t\t}\n\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.print(e);\n\t\t}\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main{\n\tpublic static void main(String[] args){\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString str, text;\n\t\tint num, position;\n\n\t\ttry{\n\n\t\t\twhile(true){\n\t\t\t\tstr=reader.readLine();\n\n\t\t\t\tif(str.equals(\"-\"))break;\n\n\t\t\t\tnum=Integer.parseInt(reader.readLine());\n\n\t\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\t\tposition=Integer.parseInt(reader.readLine());\n\n\t\t\t\t\ttext=str.substring(0, position);\n\t\t\t\t\tstr+=text;\n\t\t\t\t\tstr=str.substring(text.length(), str.length());\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\n\t\t\t}\n\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.print(e);\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args){\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString str, text;\n\t\tint num, position;\n\n\t\ttry{\n\n\t\t\twhile(true){\n\t\t\t\tstr=reader.readLine();\n\n\t\t\t\tif(str.equals(\"-\"))break;\n\n\t\t\t\tnum=Integer.parseInt(reader.readLine());\n\n\t\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\t\tposition=Integer.parseInt(reader.readLine());\n\n\t\t\t\t\ttext=str.substring(0, position);\n\t\t\t\t\tstr+=text;\n\t\t\t\t\tstr=str.substring(text.length(), str.length());\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\n\t\t\t}\n\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.print(e);\n\t\t}\n\t}", "main", "{\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString str, text;\n\t\tint num, position;\n\n\t\ttry{\n\n\t\t\twhile(true){\n\t\t\t\tstr=reader.readLine();\n\n\t\t\t\tif(str.equals(\"-\"))break;\n\n\t\t\t\tnum=Integer.parseInt(reader.readLine());\n\n\t\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\t\tposition=Integer.parseInt(reader.readLine());\n\n\t\t\t\t\ttext=str.substring(0, position);\n\t\t\t\t\tstr+=text;\n\t\t\t\t\tstr=str.substring(text.length(), str.length());\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\n\t\t\t}\n\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.print(e);\n\t\t}\n\t}", "BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "String str", "str", "text;", "text", "int num", "num", "position;", "position", "try{\n\n\t\t\twhile(true){\n\t\t\t\tstr=reader.readLine();\n\n\t\t\t\tif(str.equals(\"-\"))break;\n\n\t\t\t\tnum=Integer.parseInt(reader.readLine());\n\n\t\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\t\tposition=Integer.parseInt(reader.readLine());\n\n\t\t\t\t\ttext=str.substring(0, position);\n\t\t\t\t\tstr+=text;\n\t\t\t\t\tstr=str.substring(text.length(), str.length());\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\n\t\t\t}\n\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.print(e);\n\t\t}", "catch(IOException e){\n\t\t\tSystem.out.print(e);\n\t\t}", "IOException e", "{\n\t\t\tSystem.out.print(e);\n\t\t}", "System.out.print(e)", "System.out.print", "System.out", "System", "System.out", "e", "{\n\n\t\t\twhile(true){\n\t\t\t\tstr=reader.readLine();\n\n\t\t\t\tif(str.equals(\"-\"))break;\n\n\t\t\t\tnum=Integer.parseInt(reader.readLine());\n\n\t\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\t\tposition=Integer.parseInt(reader.readLine());\n\n\t\t\t\t\ttext=str.substring(0, position);\n\t\t\t\t\tstr+=text;\n\t\t\t\t\tstr=str.substring(text.length(), str.length());\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\n\t\t\t}\n\n\n\t\t}", "while(true){\n\t\t\t\tstr=reader.readLine();\n\n\t\t\t\tif(str.equals(\"-\"))break;\n\n\t\t\t\tnum=Integer.parseInt(reader.readLine());\n\n\t\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\t\tposition=Integer.parseInt(reader.readLine());\n\n\t\t\t\t\ttext=str.substring(0, position);\n\t\t\t\t\tstr+=text;\n\t\t\t\t\tstr=str.substring(text.length(), str.length());\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\n\t\t\t}", "true", "{\n\t\t\t\tstr=reader.readLine();\n\n\t\t\t\tif(str.equals(\"-\"))break;\n\n\t\t\t\tnum=Integer.parseInt(reader.readLine());\n\n\t\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\t\tposition=Integer.parseInt(reader.readLine());\n\n\t\t\t\t\ttext=str.substring(0, position);\n\t\t\t\t\tstr+=text;\n\t\t\t\t\tstr=str.substring(text.length(), str.length());\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\n\t\t\t}", "str=reader.readLine()", "str", "reader.readLine()", "reader.readLine", "reader", "if(str.equals(\"-\"))break;", "str.equals(\"-\")", "str.equals", "str", "\"-\"", "break;", "num=Integer.parseInt(reader.readLine())", "num", "Integer.parseInt(reader.readLine())", "Integer.parseInt", "Integer", "reader.readLine()", "reader.readLine", "reader", "for(int i=0;i<num;i++){\n\t\t\t\t\tposition=Integer.parseInt(reader.readLine());\n\n\t\t\t\t\ttext=str.substring(0, position);\n\t\t\t\t\tstr+=text;\n\t\t\t\t\tstr=str.substring(text.length(), str.length());\n\t\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<num", "i", "num", "i++", "i++", "i", "{\n\t\t\t\t\tposition=Integer.parseInt(reader.readLine());\n\n\t\t\t\t\ttext=str.substring(0, position);\n\t\t\t\t\tstr+=text;\n\t\t\t\t\tstr=str.substring(text.length(), str.length());\n\t\t\t\t}", "{\n\t\t\t\t\tposition=Integer.parseInt(reader.readLine());\n\n\t\t\t\t\ttext=str.substring(0, position);\n\t\t\t\t\tstr+=text;\n\t\t\t\t\tstr=str.substring(text.length(), str.length());\n\t\t\t\t}", "position=Integer.parseInt(reader.readLine())", "position", "Integer.parseInt(reader.readLine())", "Integer.parseInt", "Integer", "reader.readLine()", "reader.readLine", "reader", "text=str.substring(0, position)", "text", "str.substring(0, position)", "str.substring", "str", "0", "position", "str+=text", "str", "text", "str=str.substring(text.length(), str.length())", "str", "str.substring(text.length(), str.length())", "str.substring", "str", "text.length()", "text.length", "text", "str.length()", "str.length", "str", "System.out.println(str)", "System.out.println", "System.out", "System", "System.out", "str", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString str, text;\n\t\tint num, position;\n\n\t\ttry{\n\n\t\t\twhile(true){\n\t\t\t\tstr=reader.readLine();\n\n\t\t\t\tif(str.equals(\"-\"))break;\n\n\t\t\t\tnum=Integer.parseInt(reader.readLine());\n\n\t\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\t\tposition=Integer.parseInt(reader.readLine());\n\n\t\t\t\t\ttext=str.substring(0, position);\n\t\t\t\t\tstr+=text;\n\t\t\t\t\tstr=str.substring(text.length(), str.length());\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\n\t\t\t}\n\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.print(e);\n\t\t}\n\t}\n\n}", "public class Main{\n\tpublic static void main(String[] args){\n\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString str, text;\n\t\tint num, position;\n\n\t\ttry{\n\n\t\t\twhile(true){\n\t\t\t\tstr=reader.readLine();\n\n\t\t\t\tif(str.equals(\"-\"))break;\n\n\t\t\t\tnum=Integer.parseInt(reader.readLine());\n\n\t\t\t\tfor(int i=0;i<num;i++){\n\t\t\t\t\tposition=Integer.parseInt(reader.readLine());\n\n\t\t\t\t\ttext=str.substring(0, position);\n\t\t\t\t\tstr+=text;\n\t\t\t\t\tstr=str.substring(text.length(), str.length());\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\n\t\t\t}\n\n\n\t\t}catch(IOException e){\n\t\t\tSystem.out.print(e);\n\t\t}\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main{ public static void main(String[] args){ BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); String str, text; int num, position; try{ while(true){ str=reader.readLine(); if(str.equals("-"))break; num=Integer.parseInt(reader.readLine()); for(int i=0;i<num;i++){ position=Integer.parseInt(reader.readLine()); text=str.substring(0, position); str+=text; str=str.substring(text.length(), str.length()); } System.out.println(str); } }catch(IOException e){ System.out.print(e); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 4, 18, 13, 2, 2, 13, 13, 4, 18, 13, 4, 18, 18, 13, 13, 0, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 26, 31 ], [ 20, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 20, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 37, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 20, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 55, 65 ], [ 65, 66 ], [ 66, 67 ], [ 55, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 83, 84 ], [ 20, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 20, 90 ], [ 90, 91 ], [ 90, 92 ], [ 6, 93 ], [ 93, 94 ] ]
[ "\nimport java.util.*;\nclass Main {\n public static void main(String...args) {\n Scanner scan = new Scanner(System.in);\n String str = null;\n int total =0;\n while(true) {\n str = scan.next();\n if(str.equals(\"-\"))break;\n int times = scan.nextInt();\n for(int i = 0 ; i < times; i++) {\n total += scan.nextInt();\n }\n for(int n = 0; n < str.length(); n++) {\n System.out.print(str.charAt((total + n )%str.length()));\n } \n System.out.println();\n total = 0;\n }\n \n }\n}\n\n", "import java.util.*;", "util.*", "java", "class Main {\n public static void main(String...args) {\n Scanner scan = new Scanner(System.in);\n String str = null;\n int total =0;\n while(true) {\n str = scan.next();\n if(str.equals(\"-\"))break;\n int times = scan.nextInt();\n for(int i = 0 ; i < times; i++) {\n total += scan.nextInt();\n }\n for(int n = 0; n < str.length(); n++) {\n System.out.print(str.charAt((total + n )%str.length()));\n } \n System.out.println();\n total = 0;\n }\n \n }\n}", "Main", "public static void main(String...args) {\n Scanner scan = new Scanner(System.in);\n String str = null;\n int total =0;\n while(true) {\n str = scan.next();\n if(str.equals(\"-\"))break;\n int times = scan.nextInt();\n for(int i = 0 ; i < times; i++) {\n total += scan.nextInt();\n }\n for(int n = 0; n < str.length(); n++) {\n System.out.print(str.charAt((total + n )%str.length()));\n } \n System.out.println();\n total = 0;\n }\n \n }", "main", "{\n Scanner scan = new Scanner(System.in);\n String str = null;\n int total =0;\n while(true) {\n str = scan.next();\n if(str.equals(\"-\"))break;\n int times = scan.nextInt();\n for(int i = 0 ; i < times; i++) {\n total += scan.nextInt();\n }\n for(int n = 0; n < str.length(); n++) {\n System.out.print(str.charAt((total + n )%str.length()));\n } \n System.out.println();\n total = 0;\n }\n \n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String str = null;", "str", "null", "int total =0;", "total", "0", "while(true) {\n str = scan.next();\n if(str.equals(\"-\"))break;\n int times = scan.nextInt();\n for(int i = 0 ; i < times; i++) {\n total += scan.nextInt();\n }\n for(int n = 0; n < str.length(); n++) {\n System.out.print(str.charAt((total + n )%str.length()));\n } \n System.out.println();\n total = 0;\n }", "true", "{\n str = scan.next();\n if(str.equals(\"-\"))break;\n int times = scan.nextInt();\n for(int i = 0 ; i < times; i++) {\n total += scan.nextInt();\n }\n for(int n = 0; n < str.length(); n++) {\n System.out.print(str.charAt((total + n )%str.length()));\n } \n System.out.println();\n total = 0;\n }", "str = scan.next()", "str", "scan.next()", "scan.next", "scan", "if(str.equals(\"-\"))break;", "str.equals(\"-\")", "str.equals", "str", "\"-\"", "break;", "int times = scan.nextInt();", "times", "scan.nextInt()", "scan.nextInt", "scan", "for(int i = 0 ; i < times; i++) {\n total += scan.nextInt();\n }", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < times", "i", "times", "i++", "i++", "i", "{\n total += scan.nextInt();\n }", "{\n total += scan.nextInt();\n }", "total += scan.nextInt()", "total", "scan.nextInt()", "scan.nextInt", "scan", "for(int n = 0; n < str.length(); n++) {\n System.out.print(str.charAt((total + n )%str.length()));\n }", "int n = 0;", "int n = 0;", "n", "0", "n < str.length()", "n", "str.length()", "str.length", "str", "n++", "n++", "n", "{\n System.out.print(str.charAt((total + n )%str.length()));\n }", "{\n System.out.print(str.charAt((total + n )%str.length()));\n }", "System.out.print(str.charAt((total + n )%str.length()))", "System.out.print", "System.out", "System", "System.out", "str.charAt((total + n )%str.length())", "str.charAt", "str", "(total + n )%str.length()", "(total + n )", "total", "n", "str.length()", "str.length", "str", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "total = 0", "total", "0", "String...args", "args" ]
import java.util.*; class Main { public static void main(String...args) { Scanner scan = new Scanner(System.in); String str = null; int total =0; while(true) { str = scan.next(); if(str.equals("-"))break; int times = scan.nextInt(); for(int i = 0 ; i < times; i++) { total += scan.nextInt(); } for(int n = 0; n < str.length(); n++) { System.out.print(str.charAt((total + n )%str.length())); } System.out.println(); total = 0; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 17, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 13, 13, 41, 13, 4, 18, 13, 17, 41, 13, 2, 13, 18, 13, 13, 11, 1, 41, 13, 13, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 18, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 126, 5 ], [ 126, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 23, 28 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 14, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 46, 52 ], [ 52, 53 ], [ 52, 54 ], [ 14, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 14, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 14, 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 ], [ 83, 88 ], [ 83, 89 ], [ 89, 90 ], [ 89, 91 ], [ 14, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 97, 98 ], [ 97, 99 ], [ 92, 100 ], [ 100, 101 ], [ 101, 102 ], [ 92, 103 ], [ 104, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 105, 110 ], [ 105, 111 ], [ 111, 112 ], [ 111, 113 ], [ 14, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 8, 120 ], [ 120, 121 ], [ 121, 122 ], [ 6, 123 ], [ 123, 124 ], [ 0, 125 ], [ 125, 126 ], [ 125, 127 ] ]
[ "import java.util.Scanner;\npublic class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true){\n int sum=0;\n String s = sc.next();\n if(s.equals(\"-\"))\n break;\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h=sc.nextInt();\n sum+=h;\n }\n String[] d=s.split(\"\");\n int l=sum%d.length;\n for(int i=l;i<d.length;i++){\n System.out.printf(\"%s\",d[i]);\n }\n for(int i=0;i<l;i++){\n System.out.printf(\"%s\",d[i]);\n }\n System.out.println(\"\");\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 while(true){\n int sum=0;\n String s = sc.next();\n if(s.equals(\"-\"))\n break;\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h=sc.nextInt();\n sum+=h;\n }\n String[] d=s.split(\"\");\n int l=sum%d.length;\n for(int i=l;i<d.length;i++){\n System.out.printf(\"%s\",d[i]);\n }\n for(int i=0;i<l;i++){\n System.out.printf(\"%s\",d[i]);\n }\n System.out.println(\"\");\n }\n sc.close();\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true){\n int sum=0;\n String s = sc.next();\n if(s.equals(\"-\"))\n break;\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h=sc.nextInt();\n sum+=h;\n }\n String[] d=s.split(\"\");\n int l=sum%d.length;\n for(int i=l;i<d.length;i++){\n System.out.printf(\"%s\",d[i]);\n }\n for(int i=0;i<l;i++){\n System.out.printf(\"%s\",d[i]);\n }\n System.out.println(\"\");\n }\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while(true){\n int sum=0;\n String s = sc.next();\n if(s.equals(\"-\"))\n break;\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h=sc.nextInt();\n sum+=h;\n }\n String[] d=s.split(\"\");\n int l=sum%d.length;\n for(int i=l;i<d.length;i++){\n System.out.printf(\"%s\",d[i]);\n }\n for(int i=0;i<l;i++){\n System.out.printf(\"%s\",d[i]);\n }\n System.out.println(\"\");\n }\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n int sum=0;\n String s = sc.next();\n if(s.equals(\"-\"))\n break;\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h=sc.nextInt();\n sum+=h;\n }\n String[] d=s.split(\"\");\n int l=sum%d.length;\n for(int i=l;i<d.length;i++){\n System.out.printf(\"%s\",d[i]);\n }\n for(int i=0;i<l;i++){\n System.out.printf(\"%s\",d[i]);\n }\n System.out.println(\"\");\n }", "true", "{\n int sum=0;\n String s = sc.next();\n if(s.equals(\"-\"))\n break;\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h=sc.nextInt();\n sum+=h;\n }\n String[] d=s.split(\"\");\n int l=sum%d.length;\n for(int i=l;i<d.length;i++){\n System.out.printf(\"%s\",d[i]);\n }\n for(int i=0;i<l;i++){\n System.out.printf(\"%s\",d[i]);\n }\n System.out.println(\"\");\n }", "int sum=0;", "sum", "0", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "if(s.equals(\"-\"))\n break;", "s.equals(\"-\")", "s.equals", "s", "\"-\"", "break;", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0;i<m;i++){\n int h=sc.nextInt();\n sum+=h;\n }", "int i=0;", "int i=0;", "i", "0", "i<m", "i", "m", "i++", "i++", "i", "{\n int h=sc.nextInt();\n sum+=h;\n }", "{\n int h=sc.nextInt();\n sum+=h;\n }", "int h=sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "sum+=h", "sum", "h", "String[] d=s.split(\"\");", "d", "s.split(\"\")", "s.split", "s", "\"\"", "int l=sum%d.length;", "l", "sum%d.length", "sum", "d.length", "d", "d.length", "for(int i=l;i<d.length;i++){\n System.out.printf(\"%s\",d[i]);\n }", "int i=l;", "int i=l;", "i", "l", "i<d.length", "i", "d.length", "d", "d.length", "i++", "i++", "i", "{\n System.out.printf(\"%s\",d[i]);\n }", "{\n System.out.printf(\"%s\",d[i]);\n }", "System.out.printf(\"%s\",d[i])", "System.out.printf", "System.out", "System", "System.out", "\"%s\"", "d[i]", "d", "i", "for(int i=0;i<l;i++){\n System.out.printf(\"%s\",d[i]);\n }", "int i=0;", "int i=0;", "i", "0", "i<l", "i", "l", "i++", "i++", "i", "{\n System.out.printf(\"%s\",d[i]);\n }", "{\n System.out.printf(\"%s\",d[i]);\n }", "System.out.printf(\"%s\",d[i])", "System.out.printf", "System.out", "System", "System.out", "\"%s\"", "d[i]", "d", "i", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true){\n int sum=0;\n String s = sc.next();\n if(s.equals(\"-\"))\n break;\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h=sc.nextInt();\n sum+=h;\n }\n String[] d=s.split(\"\");\n int l=sum%d.length;\n for(int i=l;i<d.length;i++){\n System.out.printf(\"%s\",d[i]);\n }\n for(int i=0;i<l;i++){\n System.out.printf(\"%s\",d[i]);\n }\n System.out.println(\"\");\n }\n sc.close();\n }\n}", "public class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true){\n int sum=0;\n String s = sc.next();\n if(s.equals(\"-\"))\n break;\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h=sc.nextInt();\n sum+=h;\n }\n String[] d=s.split(\"\");\n int l=sum%d.length;\n for(int i=l;i<d.length;i++){\n System.out.printf(\"%s\",d[i]);\n }\n for(int i=0;i<l;i++){\n System.out.printf(\"%s\",d[i]);\n }\n System.out.println(\"\");\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); while(true){ int sum=0; String s = sc.next(); if(s.equals("-")) break; int m = sc.nextInt(); for(int i=0;i<m;i++){ int h=sc.nextInt(); sum+=h; } String[] d=s.split(""); int l=sum%d.length; for(int i=l;i<d.length;i++){ System.out.printf("%s",d[i]); } for(int i=0;i<l;i++){ System.out.printf("%s",d[i]); } System.out.println(""); } sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 42, 40, 4, 18, 17, 13, 30, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 17, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 13, 13, 30, 0, 13, 4, 18, 13, 13, 30, 0, 13, 4, 18, 13, 13, 0, 13, 2, 13, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 4, 18, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 148, 8 ], [ 148, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 26 ], [ 26, 27 ], [ 26, 28 ], [ 11, 29 ], [ 29, 30 ], [ 29, 31 ], [ 11, 32 ], [ 32, 33 ], [ 32, 34 ], [ 11, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 35, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 47, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 59, 65 ], [ 65, 66 ], [ 65, 67 ], [ 59, 68 ], [ 68, 69 ], [ 68, 70 ], [ 59, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 71, 81 ], [ 81, 82 ], [ 82, 83 ], [ 71, 84 ], [ 85, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 86, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 59, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 41, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 41, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 116, 117 ], [ 11, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 126, 127 ], [ 118, 128 ], [ 128, 129 ], [ 129, 130 ], [ 118, 131 ], [ 132, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 138, 139 ], [ 139, 140 ], [ 138, 141 ], [ 11, 142 ], [ 142, 143 ], [ 143, 144 ], [ 9, 145 ], [ 145, 146 ], [ 0, 147 ], [ 147, 148 ], [ 147, 149 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString strIn =scan.nextLine();\n\t\tint intLoop = 0;\n\t\tint intSplit = 0;\n\t\tString strAns = \"\";\n\t\tString strTemp = \"\";\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\twhile(!\"-\".equals(strIn)){\n\t\t\tintLoop = scan.nextInt();\n\t\t\tfor(int i = 0; i < intLoop; i++){\n\t\t\t\tintSplit = scan.nextInt();\n\t\t\t\tstrTemp = \"\";\n\t\t\t\tstrAns =\"\";\n\t\t\t\tfor(int j = 0; j < strIn.length(); j++){\n\n\t\t\t\t\tif(j < intSplit){\n\t\t\t\t\t\tstrTemp += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strTemp : \" + strTemp);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tstrAns += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strAns : \" + strAns);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstrIn = strAns + strTemp;\n\t\t\t}\n\t\t\t//System.out.println(strIn);\n\t\t\tlist.add(strIn);\n\t\t\tstrIn =scan.next();\n\t\t}\n\t\tfor(int i = 0; i < list.size(); i++){\n\t\t\tSystem.out.println(list.get(i));\n\t\t}\n\t\tscan.close();\n\t}\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString strIn =scan.nextLine();\n\t\tint intLoop = 0;\n\t\tint intSplit = 0;\n\t\tString strAns = \"\";\n\t\tString strTemp = \"\";\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\twhile(!\"-\".equals(strIn)){\n\t\t\tintLoop = scan.nextInt();\n\t\t\tfor(int i = 0; i < intLoop; i++){\n\t\t\t\tintSplit = scan.nextInt();\n\t\t\t\tstrTemp = \"\";\n\t\t\t\tstrAns =\"\";\n\t\t\t\tfor(int j = 0; j < strIn.length(); j++){\n\n\t\t\t\t\tif(j < intSplit){\n\t\t\t\t\t\tstrTemp += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strTemp : \" + strTemp);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tstrAns += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strAns : \" + strAns);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstrIn = strAns + strTemp;\n\t\t\t}\n\t\t\t//System.out.println(strIn);\n\t\t\tlist.add(strIn);\n\t\t\tstrIn =scan.next();\n\t\t}\n\t\tfor(int i = 0; i < list.size(); i++){\n\t\t\tSystem.out.println(list.get(i));\n\t\t}\n\t\tscan.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString strIn =scan.nextLine();\n\t\tint intLoop = 0;\n\t\tint intSplit = 0;\n\t\tString strAns = \"\";\n\t\tString strTemp = \"\";\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\twhile(!\"-\".equals(strIn)){\n\t\t\tintLoop = scan.nextInt();\n\t\t\tfor(int i = 0; i < intLoop; i++){\n\t\t\t\tintSplit = scan.nextInt();\n\t\t\t\tstrTemp = \"\";\n\t\t\t\tstrAns =\"\";\n\t\t\t\tfor(int j = 0; j < strIn.length(); j++){\n\n\t\t\t\t\tif(j < intSplit){\n\t\t\t\t\t\tstrTemp += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strTemp : \" + strTemp);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tstrAns += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strAns : \" + strAns);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstrIn = strAns + strTemp;\n\t\t\t}\n\t\t\t//System.out.println(strIn);\n\t\t\tlist.add(strIn);\n\t\t\tstrIn =scan.next();\n\t\t}\n\t\tfor(int i = 0; i < list.size(); i++){\n\t\t\tSystem.out.println(list.get(i));\n\t\t}\n\t\tscan.close();\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString strIn =scan.nextLine();\n\t\tint intLoop = 0;\n\t\tint intSplit = 0;\n\t\tString strAns = \"\";\n\t\tString strTemp = \"\";\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\twhile(!\"-\".equals(strIn)){\n\t\t\tintLoop = scan.nextInt();\n\t\t\tfor(int i = 0; i < intLoop; i++){\n\t\t\t\tintSplit = scan.nextInt();\n\t\t\t\tstrTemp = \"\";\n\t\t\t\tstrAns =\"\";\n\t\t\t\tfor(int j = 0; j < strIn.length(); j++){\n\n\t\t\t\t\tif(j < intSplit){\n\t\t\t\t\t\tstrTemp += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strTemp : \" + strTemp);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tstrAns += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strAns : \" + strAns);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstrIn = strAns + strTemp;\n\t\t\t}\n\t\t\t//System.out.println(strIn);\n\t\t\tlist.add(strIn);\n\t\t\tstrIn =scan.next();\n\t\t}\n\t\tfor(int i = 0; i < list.size(); i++){\n\t\t\tSystem.out.println(list.get(i));\n\t\t}\n\t\tscan.close();\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String strIn =scan.nextLine();", "strIn", "scan.nextLine()", "scan.nextLine", "scan", "int intLoop = 0;", "intLoop", "0", "int intSplit = 0;", "intSplit", "0", "String strAns = \"\";", "strAns", "\"\"", "String strTemp = \"\";", "strTemp", "\"\"", "ArrayList<String> list = new ArrayList<String>();", "list", "new ArrayList<String>()", "while(!\"-\".equals(strIn)){\n\t\t\tintLoop = scan.nextInt();\n\t\t\tfor(int i = 0; i < intLoop; i++){\n\t\t\t\tintSplit = scan.nextInt();\n\t\t\t\tstrTemp = \"\";\n\t\t\t\tstrAns =\"\";\n\t\t\t\tfor(int j = 0; j < strIn.length(); j++){\n\n\t\t\t\t\tif(j < intSplit){\n\t\t\t\t\t\tstrTemp += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strTemp : \" + strTemp);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tstrAns += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strAns : \" + strAns);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstrIn = strAns + strTemp;\n\t\t\t}\n\t\t\t//System.out.println(strIn);\n\t\t\tlist.add(strIn);\n\t\t\tstrIn =scan.next();\n\t\t}", "!\"-\".equals(strIn)", "\"-\".equals(strIn)", "\"-\".equals", "\"-\"", "strIn", "{\n\t\t\tintLoop = scan.nextInt();\n\t\t\tfor(int i = 0; i < intLoop; i++){\n\t\t\t\tintSplit = scan.nextInt();\n\t\t\t\tstrTemp = \"\";\n\t\t\t\tstrAns =\"\";\n\t\t\t\tfor(int j = 0; j < strIn.length(); j++){\n\n\t\t\t\t\tif(j < intSplit){\n\t\t\t\t\t\tstrTemp += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strTemp : \" + strTemp);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tstrAns += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strAns : \" + strAns);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstrIn = strAns + strTemp;\n\t\t\t}\n\t\t\t//System.out.println(strIn);\n\t\t\tlist.add(strIn);\n\t\t\tstrIn =scan.next();\n\t\t}", "intLoop = scan.nextInt()", "intLoop", "scan.nextInt()", "scan.nextInt", "scan", "for(int i = 0; i < intLoop; i++){\n\t\t\t\tintSplit = scan.nextInt();\n\t\t\t\tstrTemp = \"\";\n\t\t\t\tstrAns =\"\";\n\t\t\t\tfor(int j = 0; j < strIn.length(); j++){\n\n\t\t\t\t\tif(j < intSplit){\n\t\t\t\t\t\tstrTemp += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strTemp : \" + strTemp);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tstrAns += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strAns : \" + strAns);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstrIn = strAns + strTemp;\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < intLoop", "i", "intLoop", "i++", "i++", "i", "{\n\t\t\t\tintSplit = scan.nextInt();\n\t\t\t\tstrTemp = \"\";\n\t\t\t\tstrAns =\"\";\n\t\t\t\tfor(int j = 0; j < strIn.length(); j++){\n\n\t\t\t\t\tif(j < intSplit){\n\t\t\t\t\t\tstrTemp += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strTemp : \" + strTemp);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tstrAns += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strAns : \" + strAns);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstrIn = strAns + strTemp;\n\t\t\t}", "{\n\t\t\t\tintSplit = scan.nextInt();\n\t\t\t\tstrTemp = \"\";\n\t\t\t\tstrAns =\"\";\n\t\t\t\tfor(int j = 0; j < strIn.length(); j++){\n\n\t\t\t\t\tif(j < intSplit){\n\t\t\t\t\t\tstrTemp += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strTemp : \" + strTemp);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tstrAns += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strAns : \" + strAns);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstrIn = strAns + strTemp;\n\t\t\t}", "intSplit = scan.nextInt()", "intSplit", "scan.nextInt()", "scan.nextInt", "scan", "strTemp = \"\"", "strTemp", "\"\"", "strAns =\"\"", "strAns", "\"\"", "for(int j = 0; j < strIn.length(); j++){\n\n\t\t\t\t\tif(j < intSplit){\n\t\t\t\t\t\tstrTemp += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strTemp : \" + strTemp);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tstrAns += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strAns : \" + strAns);\n\t\t\t\t\t}\n\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < strIn.length()", "j", "strIn.length()", "strIn.length", "strIn", "j++", "j++", "j", "{\n\n\t\t\t\t\tif(j < intSplit){\n\t\t\t\t\t\tstrTemp += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strTemp : \" + strTemp);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tstrAns += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strAns : \" + strAns);\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\n\t\t\t\t\tif(j < intSplit){\n\t\t\t\t\t\tstrTemp += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strTemp : \" + strTemp);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tstrAns += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strAns : \" + strAns);\n\t\t\t\t\t}\n\t\t\t\t}", "if(j < intSplit){\n\t\t\t\t\t\tstrTemp += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strTemp : \" + strTemp);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tstrAns += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strAns : \" + strAns);\n\t\t\t\t\t}", "j < intSplit", "j", "intSplit", "{\n\t\t\t\t\t\tstrTemp += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strTemp : \" + strTemp);\n\t\t\t\t\t}", "strTemp += strIn.charAt(j)", "strTemp", "strIn.charAt(j)", "strIn.charAt", "strIn", "j", "{\n\t\t\t\t\t\tstrAns += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strAns : \" + strAns);\n\t\t\t\t\t}", "strAns += strIn.charAt(j)", "strAns", "strIn.charAt(j)", "strIn.charAt", "strIn", "j", "strIn = strAns + strTemp", "strIn", "strAns + strTemp", "strAns", "strTemp", "list.add(strIn)", "list.add", "list", "strIn", "strIn =scan.next()", "strIn", "scan.next()", "scan.next", "scan", "for(int i = 0; i < list.size(); i++){\n\t\t\tSystem.out.println(list.get(i));\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < list.size()", "i", "list.size()", "list.size", "list", "i++", "i++", "i", "{\n\t\t\tSystem.out.println(list.get(i));\n\t\t}", "{\n\t\t\tSystem.out.println(list.get(i));\n\t\t}", "System.out.println(list.get(i))", "System.out.println", "System.out", "System", "System.out", "list.get(i)", "list.get", "list", "i", "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\tString strIn =scan.nextLine();\n\t\tint intLoop = 0;\n\t\tint intSplit = 0;\n\t\tString strAns = \"\";\n\t\tString strTemp = \"\";\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\twhile(!\"-\".equals(strIn)){\n\t\t\tintLoop = scan.nextInt();\n\t\t\tfor(int i = 0; i < intLoop; i++){\n\t\t\t\tintSplit = scan.nextInt();\n\t\t\t\tstrTemp = \"\";\n\t\t\t\tstrAns =\"\";\n\t\t\t\tfor(int j = 0; j < strIn.length(); j++){\n\n\t\t\t\t\tif(j < intSplit){\n\t\t\t\t\t\tstrTemp += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strTemp : \" + strTemp);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tstrAns += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strAns : \" + strAns);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstrIn = strAns + strTemp;\n\t\t\t}\n\t\t\t//System.out.println(strIn);\n\t\t\tlist.add(strIn);\n\t\t\tstrIn =scan.next();\n\t\t}\n\t\tfor(int i = 0; i < list.size(); i++){\n\t\t\tSystem.out.println(list.get(i));\n\t\t}\n\t\tscan.close();\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString strIn =scan.nextLine();\n\t\tint intLoop = 0;\n\t\tint intSplit = 0;\n\t\tString strAns = \"\";\n\t\tString strTemp = \"\";\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\twhile(!\"-\".equals(strIn)){\n\t\t\tintLoop = scan.nextInt();\n\t\t\tfor(int i = 0; i < intLoop; i++){\n\t\t\t\tintSplit = scan.nextInt();\n\t\t\t\tstrTemp = \"\";\n\t\t\t\tstrAns =\"\";\n\t\t\t\tfor(int j = 0; j < strIn.length(); j++){\n\n\t\t\t\t\tif(j < intSplit){\n\t\t\t\t\t\tstrTemp += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strTemp : \" + strTemp);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tstrAns += strIn.charAt(j);\n\t\t\t\t\t\t//System.out.println(\"strAns : \" + strAns);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstrIn = strAns + strTemp;\n\t\t\t}\n\t\t\t//System.out.println(strIn);\n\t\t\tlist.add(strIn);\n\t\t\tstrIn =scan.next();\n\t\t}\n\t\tfor(int i = 0; i < list.size(); i++){\n\t\t\tSystem.out.println(list.get(i));\n\t\t}\n\t\tscan.close();\n\t}\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String strIn =scan.nextLine(); int intLoop = 0; int intSplit = 0; String strAns = ""; String strTemp = ""; ArrayList<String> list = new ArrayList<String>(); while(!"-".equals(strIn)){ intLoop = scan.nextInt(); for(int i = 0; i < intLoop; i++){ intSplit = scan.nextInt(); strTemp = ""; strAns =""; for(int j = 0; j < strIn.length(); j++){ if(j < intSplit){ strTemp += strIn.charAt(j); //System.out.println("strTemp : " + strTemp); }else{ strAns += strIn.charAt(j); //System.out.println("strAns : " + strAns); } } strIn = strAns + strTemp; } //System.out.println(strIn); list.add(strIn); strIn =scan.next(); } for(int i = 0; i < list.size(); i++){ System.out.println(list.get(i)); } scan.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 4, 18, 13, 17, 17, 3, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 81, 5 ], [ 81, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 21, 26 ], [ 20, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 14, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 45, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 53, 57 ], [ 57, 58 ], [ 58, 59 ], [ 45, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 62, 66 ], [ 45, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 14, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 6, 78 ], [ 78, 79 ], [ 0, 80 ], [ 80, 81 ], [ 80, 82 ] ]
[ "\nimport java.util.*;\n\npublic class Main {\n\t \n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\twhile(true) {\n\t\t\tString str=cin.next();\n\t\t\tif(str.charAt(0)=='-')break;\n\t\t\t//System.out.println(str);\n\t\t\tint m=cin.nextInt();\n\t\t\tfor(int i=0;i<m;i++) {\n\t\t\t\tint h=cin.nextInt();\n\t\t\t\tString h1=str.substring(h,str.length());\n\t\t\t\tString h2=str.substring(0, h);\n\t\t\t\t//System.out.println(h1+\" \"+h2);\n\t\t\t\tstr=h1+h2;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}\n\t\n\t\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\t \n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\twhile(true) {\n\t\t\tString str=cin.next();\n\t\t\tif(str.charAt(0)=='-')break;\n\t\t\t//System.out.println(str);\n\t\t\tint m=cin.nextInt();\n\t\t\tfor(int i=0;i<m;i++) {\n\t\t\t\tint h=cin.nextInt();\n\t\t\t\tString h1=str.substring(h,str.length());\n\t\t\t\tString h2=str.substring(0, h);\n\t\t\t\t//System.out.println(h1+\" \"+h2);\n\t\t\t\tstr=h1+h2;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}\n\t\n\t\n}", "Main", "public static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\twhile(true) {\n\t\t\tString str=cin.next();\n\t\t\tif(str.charAt(0)=='-')break;\n\t\t\t//System.out.println(str);\n\t\t\tint m=cin.nextInt();\n\t\t\tfor(int i=0;i<m;i++) {\n\t\t\t\tint h=cin.nextInt();\n\t\t\t\tString h1=str.substring(h,str.length());\n\t\t\t\tString h2=str.substring(0, h);\n\t\t\t\t//System.out.println(h1+\" \"+h2);\n\t\t\t\tstr=h1+h2;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}", "main", "{\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\twhile(true) {\n\t\t\tString str=cin.next();\n\t\t\tif(str.charAt(0)=='-')break;\n\t\t\t//System.out.println(str);\n\t\t\tint m=cin.nextInt();\n\t\t\tfor(int i=0;i<m;i++) {\n\t\t\t\tint h=cin.nextInt();\n\t\t\t\tString h1=str.substring(h,str.length());\n\t\t\t\tString h2=str.substring(0, h);\n\t\t\t\t//System.out.println(h1+\" \"+h2);\n\t\t\t\tstr=h1+h2;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}", "Scanner cin=new Scanner(System.in);", "cin", "new Scanner(System.in)", "while(true) {\n\t\t\tString str=cin.next();\n\t\t\tif(str.charAt(0)=='-')break;\n\t\t\t//System.out.println(str);\n\t\t\tint m=cin.nextInt();\n\t\t\tfor(int i=0;i<m;i++) {\n\t\t\t\tint h=cin.nextInt();\n\t\t\t\tString h1=str.substring(h,str.length());\n\t\t\t\tString h2=str.substring(0, h);\n\t\t\t\t//System.out.println(h1+\" \"+h2);\n\t\t\t\tstr=h1+h2;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(str);\n\t\t}", "true", "{\n\t\t\tString str=cin.next();\n\t\t\tif(str.charAt(0)=='-')break;\n\t\t\t//System.out.println(str);\n\t\t\tint m=cin.nextInt();\n\t\t\tfor(int i=0;i<m;i++) {\n\t\t\t\tint h=cin.nextInt();\n\t\t\t\tString h1=str.substring(h,str.length());\n\t\t\t\tString h2=str.substring(0, h);\n\t\t\t\t//System.out.println(h1+\" \"+h2);\n\t\t\t\tstr=h1+h2;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(str);\n\t\t}", "String str=cin.next();", "str", "cin.next()", "cin.next", "cin", "if(str.charAt(0)=='-')break;", "str.charAt(0)=='-'", "str.charAt(0)", "str.charAt", "str", "0", "'-'", "break;", "int m=cin.nextInt();", "m", "cin.nextInt()", "cin.nextInt", "cin", "for(int i=0;i<m;i++) {\n\t\t\t\tint h=cin.nextInt();\n\t\t\t\tString h1=str.substring(h,str.length());\n\t\t\t\tString h2=str.substring(0, h);\n\t\t\t\t//System.out.println(h1+\" \"+h2);\n\t\t\t\tstr=h1+h2;\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<m", "i", "m", "i++", "i++", "i", "{\n\t\t\t\tint h=cin.nextInt();\n\t\t\t\tString h1=str.substring(h,str.length());\n\t\t\t\tString h2=str.substring(0, h);\n\t\t\t\t//System.out.println(h1+\" \"+h2);\n\t\t\t\tstr=h1+h2;\n\t\t\t}", "{\n\t\t\t\tint h=cin.nextInt();\n\t\t\t\tString h1=str.substring(h,str.length());\n\t\t\t\tString h2=str.substring(0, h);\n\t\t\t\t//System.out.println(h1+\" \"+h2);\n\t\t\t\tstr=h1+h2;\n\t\t\t}", "int h=cin.nextInt();", "h", "cin.nextInt()", "cin.nextInt", "cin", "String h1=str.substring(h,str.length());", "h1", "str.substring(h,str.length())", "str.substring", "str", "h", "str.length()", "str.length", "str", "String h2=str.substring(0, h);", "h2", "str.substring(0, h)", "str.substring", "str", "0", "h", "str=h1+h2", "str", "h1+h2", "h1", "h2", "System.out.println(str)", "System.out.println", "System.out", "System", "System.out", "str", "String[] args", "args", "public class Main {\n\t \n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\twhile(true) {\n\t\t\tString str=cin.next();\n\t\t\tif(str.charAt(0)=='-')break;\n\t\t\t//System.out.println(str);\n\t\t\tint m=cin.nextInt();\n\t\t\tfor(int i=0;i<m;i++) {\n\t\t\t\tint h=cin.nextInt();\n\t\t\t\tString h1=str.substring(h,str.length());\n\t\t\t\tString h2=str.substring(0, h);\n\t\t\t\t//System.out.println(h1+\" \"+h2);\n\t\t\t\tstr=h1+h2;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}\n\t\n\t\n}", "public class Main {\n\t \n\tpublic static void main(String[] args) {\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\twhile(true) {\n\t\t\tString str=cin.next();\n\t\t\tif(str.charAt(0)=='-')break;\n\t\t\t//System.out.println(str);\n\t\t\tint m=cin.nextInt();\n\t\t\tfor(int i=0;i<m;i++) {\n\t\t\t\tint h=cin.nextInt();\n\t\t\t\tString h1=str.substring(h,str.length());\n\t\t\t\tString h2=str.substring(0, h);\n\t\t\t\t//System.out.println(h1+\" \"+h2);\n\t\t\t\tstr=h1+h2;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}\n\t\n\t\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner cin=new Scanner(System.in); while(true) { String str=cin.next(); if(str.charAt(0)=='-')break; //System.out.println(str); int m=cin.nextInt(); for(int i=0;i<m;i++) { int h=cin.nextInt(); String h1=str.substring(h,str.length()); String h2=str.substring(0, h); //System.out.println(h1+" "+h2); str=h1+h2; } System.out.println(str); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 41, 13, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 13, 0, 13, 2, 4, 18, 13, 18, 13, 13, 4, 18, 13, 17, 18, 13, 13, 4, 18, 18, 13, 13, 13, 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 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 14, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 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 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 14, 56 ], [ 56, 57 ], [ 56, 58 ], [ 14, 59 ], [ 59, 60 ], [ 14, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 61, 69 ], [ 69, 70 ], [ 70, 71 ], [ 61, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 83, 84 ], [ 83, 85 ], [ 79, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 86, 90 ], [ 90, 91 ], [ 90, 92 ], [ 14, 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{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true)\n\t\t{\n\t\t\t// data input\n\t\t\tString str = sc.next();\n\t\t\tif (str.equals(\"-\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = sc.nextInt();\n\t\t\tint[] shuffle = new int[m];\n\t\t\tfor (int i = 0; i < m; i++)\n\t\t\t{\n\t\t\t\tshuffle[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t// shuffle\n\t\t\tString after = str;\n\t\t\tString before;\n\t\t\tfor (int i = 0; i < m; i++)\n\t\t\t{\n\t\t\t\tbefore = after;\n\t\t\t\tafter = before.substring(shuffle[i]) + before.substring(0, shuffle[i]);\n\t\t\t}\n\n\t\t\tSystem.out.println(after);\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{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true)\n\t\t{\n\t\t\t// data input\n\t\t\tString str = sc.next();\n\t\t\tif (str.equals(\"-\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = sc.nextInt();\n\t\t\tint[] shuffle = new int[m];\n\t\t\tfor (int i = 0; i < m; i++)\n\t\t\t{\n\t\t\t\tshuffle[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t// shuffle\n\t\t\tString after = str;\n\t\t\tString before;\n\t\t\tfor (int i = 0; i < m; i++)\n\t\t\t{\n\t\t\t\tbefore = after;\n\t\t\t\tafter = before.substring(shuffle[i]) + before.substring(0, shuffle[i]);\n\t\t\t}\n\n\t\t\tSystem.out.println(after);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true)\n\t\t{\n\t\t\t// data input\n\t\t\tString str = sc.next();\n\t\t\tif (str.equals(\"-\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = sc.nextInt();\n\t\t\tint[] shuffle = new int[m];\n\t\t\tfor (int i = 0; i < m; i++)\n\t\t\t{\n\t\t\t\tshuffle[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t// shuffle\n\t\t\tString after = str;\n\t\t\tString before;\n\t\t\tfor (int i = 0; i < m; i++)\n\t\t\t{\n\t\t\t\tbefore = after;\n\t\t\t\tafter = before.substring(shuffle[i]) + before.substring(0, shuffle[i]);\n\t\t\t}\n\n\t\t\tSystem.out.println(after);\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true)\n\t\t{\n\t\t\t// data input\n\t\t\tString str = sc.next();\n\t\t\tif (str.equals(\"-\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = sc.nextInt();\n\t\t\tint[] shuffle = new int[m];\n\t\t\tfor (int i = 0; i < m; i++)\n\t\t\t{\n\t\t\t\tshuffle[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t// shuffle\n\t\t\tString after = str;\n\t\t\tString before;\n\t\t\tfor (int i = 0; i < m; i++)\n\t\t\t{\n\t\t\t\tbefore = after;\n\t\t\t\tafter = before.substring(shuffle[i]) + before.substring(0, shuffle[i]);\n\t\t\t}\n\n\t\t\tSystem.out.println(after);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true)\n\t\t{\n\t\t\t// data input\n\t\t\tString str = sc.next();\n\t\t\tif (str.equals(\"-\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = sc.nextInt();\n\t\t\tint[] shuffle = new int[m];\n\t\t\tfor (int i = 0; i < m; i++)\n\t\t\t{\n\t\t\t\tshuffle[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t// shuffle\n\t\t\tString after = str;\n\t\t\tString before;\n\t\t\tfor (int i = 0; i < m; i++)\n\t\t\t{\n\t\t\t\tbefore = after;\n\t\t\t\tafter = before.substring(shuffle[i]) + before.substring(0, shuffle[i]);\n\t\t\t}\n\n\t\t\tSystem.out.println(after);\n\t\t}", "true", "{\n\t\t\t// data input\n\t\t\tString str = sc.next();\n\t\t\tif (str.equals(\"-\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = sc.nextInt();\n\t\t\tint[] shuffle = new int[m];\n\t\t\tfor (int i = 0; i < m; i++)\n\t\t\t{\n\t\t\t\tshuffle[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t// shuffle\n\t\t\tString after = str;\n\t\t\tString before;\n\t\t\tfor (int i = 0; i < m; i++)\n\t\t\t{\n\t\t\t\tbefore = after;\n\t\t\t\tafter = before.substring(shuffle[i]) + before.substring(0, shuffle[i]);\n\t\t\t}\n\n\t\t\tSystem.out.println(after);\n\t\t}", "String str = sc.next();", "str", "sc.next()", "sc.next", "sc", "if (str.equals(\"-\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}", "str.equals(\"-\")", "str.equals", "str", "\"-\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "int[] shuffle = new int[m];", "shuffle", "new int[m]", "m", "for (int i = 0; i < m; i++)\n\t\t\t{\n\t\t\t\tshuffle[i] = sc.nextInt();\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n\t\t\t\tshuffle[i] = sc.nextInt();\n\t\t\t}", "{\n\t\t\t\tshuffle[i] = sc.nextInt();\n\t\t\t}", "shuffle[i] = sc.nextInt()", "shuffle[i]", "shuffle", "i", "sc.nextInt()", "sc.nextInt", "sc", "String after = str;", "after", "str", "String before;", "before", "for (int i = 0; i < m; i++)\n\t\t\t{\n\t\t\t\tbefore = after;\n\t\t\t\tafter = before.substring(shuffle[i]) + before.substring(0, shuffle[i]);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n\t\t\t\tbefore = after;\n\t\t\t\tafter = before.substring(shuffle[i]) + before.substring(0, shuffle[i]);\n\t\t\t}", "{\n\t\t\t\tbefore = after;\n\t\t\t\tafter = before.substring(shuffle[i]) + before.substring(0, shuffle[i]);\n\t\t\t}", "before = after", "before", "after", "after = before.substring(shuffle[i]) + before.substring(0, shuffle[i])", "after", "before.substring(shuffle[i]) + before.substring(0, shuffle[i])", "before.substring(shuffle[i])", "before.substring", "before", "shuffle[i]", "shuffle", "i", "before.substring(0, shuffle[i])", "before.substring", "before", "0", "shuffle[i]", "shuffle", "i", "System.out.println(after)", "System.out.println", "System.out", "System", "System.out", "after", "String[] args", "args", "public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true)\n\t\t{\n\t\t\t// data input\n\t\t\tString str = sc.next();\n\t\t\tif (str.equals(\"-\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = sc.nextInt();\n\t\t\tint[] shuffle = new int[m];\n\t\t\tfor (int i = 0; i < m; i++)\n\t\t\t{\n\t\t\t\tshuffle[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t// shuffle\n\t\t\tString after = str;\n\t\t\tString before;\n\t\t\tfor (int i = 0; i < m; i++)\n\t\t\t{\n\t\t\t\tbefore = after;\n\t\t\t\tafter = before.substring(shuffle[i]) + before.substring(0, shuffle[i]);\n\t\t\t}\n\n\t\t\tSystem.out.println(after);\n\t\t}\n\t}\n}", "public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true)\n\t\t{\n\t\t\t// data input\n\t\t\tString str = sc.next();\n\t\t\tif (str.equals(\"-\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = sc.nextInt();\n\t\t\tint[] shuffle = new int[m];\n\t\t\tfor (int i = 0; i < m; i++)\n\t\t\t{\n\t\t\t\tshuffle[i] = sc.nextInt();\n\t\t\t}\n\n\t\t\t// shuffle\n\t\t\tString after = str;\n\t\t\tString before;\n\t\t\tfor (int i = 0; i < m; i++)\n\t\t\t{\n\t\t\t\tbefore = after;\n\t\t\t\tafter = before.substring(shuffle[i]) + before.substring(0, shuffle[i]);\n\t\t\t}\n\n\t\t\tSystem.out.println(after);\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); while (true) { // data input String str = sc.next(); if (str.equals("-")) { break; } int m = sc.nextInt(); int[] shuffle = new int[m]; for (int i = 0; i < m; i++) { shuffle[i] = sc.nextInt(); } // shuffle String after = str; String before; for (int i = 0; i < m; i++) { before = after; after = before.substring(shuffle[i]) + before.substring(0, shuffle[i]); } System.out.println(after); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 20, 42, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 4, 18, 18, 13, 13, 4, 18, 13, 13, 3, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 18, 13, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 2, 13, 18, 13, 13, 30, 0, 18, 13, 13, 18, 13, 2, 2, 13, 18, 13, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 18, 13, 13, 4, 18, 13, 4, 18, 13, 13, 40, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 209, 14 ], [ 209, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 24, 26 ], [ 17, 27 ], [ 27, 28 ], [ 27, 29 ], [ 17, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 32, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 38, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 43, 65 ], [ 32, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 32, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 76, 77 ], [ 77, 78 ], [ 32, 79 ], [ 79, 80 ], [ 79, 81 ], [ 32, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 88, 89 ], [ 88, 90 ], [ 83, 91 ], [ 91, 92 ], [ 92, 93 ], [ 83, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 102, 103 ], [ 103, 104 ], [ 32, 105 ], [ 105, 106 ], [ 105, 107 ], [ 108, 109 ], [ 108, 110 ], [ 32, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 116, 117 ], [ 116, 118 ], [ 111, 119 ], [ 119, 120 ], [ 120, 121 ], [ 111, 122 ], [ 123, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 131, 133 ], [ 124, 134 ], [ 134, 135 ], [ 135, 136 ], [ 124, 137 ], [ 138, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 143, 145 ], [ 140, 146 ], [ 146, 147 ], [ 146, 148 ], [ 139, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 157, 159 ], [ 139, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 161, 165 ], [ 165, 166 ], [ 165, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 170, 171 ], [ 170, 172 ], [ 167, 173 ], [ 173, 174 ], [ 173, 175 ], [ 123, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 176, 181 ], [ 181, 182 ], [ 181, 183 ], [ 183, 184 ], [ 183, 185 ], [ 176, 186 ], [ 186, 187 ], [ 187, 188 ], [ 176, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 190, 194 ], [ 194, 195 ], [ 194, 196 ], [ 32, 197 ], [ 197, 198 ], [ 198, 199 ], [ 197, 200 ], [ 200, 201 ], [ 201, 202 ], [ 200, 203 ], [ 32, 204 ], [ 204, 205 ], [ 15, 206 ], [ 206, 207 ], [ 0, 208 ], [ 208, 209 ], [ 208, 210 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\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\tboolean set = true;\n\n\t\tint count = 0;\n\n\t\tArrayList<String> result = new ArrayList<String>();\n\n\t\t//シャッフルを始める\n\t\twhile(set)\n\t\t{\n\t\t\t//データを入力する\n\t\t\tString str = input.readLine();\n\n\t\t\t//終了条件\n\t\t\tif(str.equals(\"-\"))\n\t\t\t{\n\t\t\t\tfor(int num = 0; num < count; num++)\n\t\t\t\t\tSystem.out.println(result.get(num));\n\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//カードごとに分ける\n\t\t\t\tchar[] cards = str.toCharArray();\n\n\t\t\tint kaisuu = Integer.parseInt(input.readLine());\n\n\t\t\tint[] maisuu = new int[kaisuu];\n\n\t\t\t//カードをとる枚数を入力する\n\t\t\tfor(int num = 0; num < kaisuu; num++)\n\t\t\t\tmaisuu[num] = Integer.parseInt(input.readLine());\n\n\t\t\tchar[] over = new char[cards.length];\n\n\t\t\t//シャッフルする\n\t\t\tfor(int kai = 0; kai < kaisuu; kai++)\n\t\t\t{\n\t\t\t\tfor(int mai = 0; mai < cards.length; mai++)\n\t\t\t\t{\n\t\t\t\t\tif(mai + maisuu[kai] < cards.length)\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai]];\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai] - cards.length];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor(int num = 0; num < cards.length; num++)\n\t\t\t\t\tcards[num] = over[num];\n\n\t\t\t}\n\n\t\t\tresult.add(String.valueOf(cards));\n\n\t\t\tcount++;\n\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", "import java.util.ArrayList;", "ArrayList", "java.util", "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\tboolean set = true;\n\n\t\tint count = 0;\n\n\t\tArrayList<String> result = new ArrayList<String>();\n\n\t\t//シャッフルを始める\n\t\twhile(set)\n\t\t{\n\t\t\t//データを入力する\n\t\t\tString str = input.readLine();\n\n\t\t\t//終了条件\n\t\t\tif(str.equals(\"-\"))\n\t\t\t{\n\t\t\t\tfor(int num = 0; num < count; num++)\n\t\t\t\t\tSystem.out.println(result.get(num));\n\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//カードごとに分ける\n\t\t\t\tchar[] cards = str.toCharArray();\n\n\t\t\tint kaisuu = Integer.parseInt(input.readLine());\n\n\t\t\tint[] maisuu = new int[kaisuu];\n\n\t\t\t//カードをとる枚数を入力する\n\t\t\tfor(int num = 0; num < kaisuu; num++)\n\t\t\t\tmaisuu[num] = Integer.parseInt(input.readLine());\n\n\t\t\tchar[] over = new char[cards.length];\n\n\t\t\t//シャッフルする\n\t\t\tfor(int kai = 0; kai < kaisuu; kai++)\n\t\t\t{\n\t\t\t\tfor(int mai = 0; mai < cards.length; mai++)\n\t\t\t\t{\n\t\t\t\t\tif(mai + maisuu[kai] < cards.length)\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai]];\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai] - cards.length];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor(int num = 0; num < cards.length; num++)\n\t\t\t\t\tcards[num] = over[num];\n\n\t\t\t}\n\n\t\t\tresult.add(String.valueOf(cards));\n\n\t\t\tcount++;\n\n\t\t}\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\tboolean set = true;\n\n\t\tint count = 0;\n\n\t\tArrayList<String> result = new ArrayList<String>();\n\n\t\t//シャッフルを始める\n\t\twhile(set)\n\t\t{\n\t\t\t//データを入力する\n\t\t\tString str = input.readLine();\n\n\t\t\t//終了条件\n\t\t\tif(str.equals(\"-\"))\n\t\t\t{\n\t\t\t\tfor(int num = 0; num < count; num++)\n\t\t\t\t\tSystem.out.println(result.get(num));\n\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//カードごとに分ける\n\t\t\t\tchar[] cards = str.toCharArray();\n\n\t\t\tint kaisuu = Integer.parseInt(input.readLine());\n\n\t\t\tint[] maisuu = new int[kaisuu];\n\n\t\t\t//カードをとる枚数を入力する\n\t\t\tfor(int num = 0; num < kaisuu; num++)\n\t\t\t\tmaisuu[num] = Integer.parseInt(input.readLine());\n\n\t\t\tchar[] over = new char[cards.length];\n\n\t\t\t//シャッフルする\n\t\t\tfor(int kai = 0; kai < kaisuu; kai++)\n\t\t\t{\n\t\t\t\tfor(int mai = 0; mai < cards.length; mai++)\n\t\t\t\t{\n\t\t\t\t\tif(mai + maisuu[kai] < cards.length)\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai]];\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai] - cards.length];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor(int num = 0; num < cards.length; num++)\n\t\t\t\t\tcards[num] = over[num];\n\n\t\t\t}\n\n\t\t\tresult.add(String.valueOf(cards));\n\n\t\t\tcount++;\n\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader input = new BufferedReader (new InputStreamReader (System.in));\n\n\t\tboolean set = true;\n\n\t\tint count = 0;\n\n\t\tArrayList<String> result = new ArrayList<String>();\n\n\t\t//シャッフルを始める\n\t\twhile(set)\n\t\t{\n\t\t\t//データを入力する\n\t\t\tString str = input.readLine();\n\n\t\t\t//終了条件\n\t\t\tif(str.equals(\"-\"))\n\t\t\t{\n\t\t\t\tfor(int num = 0; num < count; num++)\n\t\t\t\t\tSystem.out.println(result.get(num));\n\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//カードごとに分ける\n\t\t\t\tchar[] cards = str.toCharArray();\n\n\t\t\tint kaisuu = Integer.parseInt(input.readLine());\n\n\t\t\tint[] maisuu = new int[kaisuu];\n\n\t\t\t//カードをとる枚数を入力する\n\t\t\tfor(int num = 0; num < kaisuu; num++)\n\t\t\t\tmaisuu[num] = Integer.parseInt(input.readLine());\n\n\t\t\tchar[] over = new char[cards.length];\n\n\t\t\t//シャッフルする\n\t\t\tfor(int kai = 0; kai < kaisuu; kai++)\n\t\t\t{\n\t\t\t\tfor(int mai = 0; mai < cards.length; mai++)\n\t\t\t\t{\n\t\t\t\t\tif(mai + maisuu[kai] < cards.length)\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai]];\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai] - cards.length];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor(int num = 0; num < cards.length; num++)\n\t\t\t\t\tcards[num] = over[num];\n\n\t\t\t}\n\n\t\t\tresult.add(String.valueOf(cards));\n\n\t\t\tcount++;\n\n\t\t}\n\t}", "BufferedReader input = new BufferedReader (new InputStreamReader (System.in));", "input", "new BufferedReader (new InputStreamReader (System.in))", "boolean set = true;", "set", "true", "int count = 0;", "count", "0", "ArrayList<String> result = new ArrayList<String>();", "result", "new ArrayList<String>()", "while(set)\n\t\t{\n\t\t\t//データを入力する\n\t\t\tString str = input.readLine();\n\n\t\t\t//終了条件\n\t\t\tif(str.equals(\"-\"))\n\t\t\t{\n\t\t\t\tfor(int num = 0; num < count; num++)\n\t\t\t\t\tSystem.out.println(result.get(num));\n\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//カードごとに分ける\n\t\t\t\tchar[] cards = str.toCharArray();\n\n\t\t\tint kaisuu = Integer.parseInt(input.readLine());\n\n\t\t\tint[] maisuu = new int[kaisuu];\n\n\t\t\t//カードをとる枚数を入力する\n\t\t\tfor(int num = 0; num < kaisuu; num++)\n\t\t\t\tmaisuu[num] = Integer.parseInt(input.readLine());\n\n\t\t\tchar[] over = new char[cards.length];\n\n\t\t\t//シャッフルする\n\t\t\tfor(int kai = 0; kai < kaisuu; kai++)\n\t\t\t{\n\t\t\t\tfor(int mai = 0; mai < cards.length; mai++)\n\t\t\t\t{\n\t\t\t\t\tif(mai + maisuu[kai] < cards.length)\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai]];\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai] - cards.length];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor(int num = 0; num < cards.length; num++)\n\t\t\t\t\tcards[num] = over[num];\n\n\t\t\t}\n\n\t\t\tresult.add(String.valueOf(cards));\n\n\t\t\tcount++;\n\n\t\t}", "set", "{\n\t\t\t//データを入力する\n\t\t\tString str = input.readLine();\n\n\t\t\t//終了条件\n\t\t\tif(str.equals(\"-\"))\n\t\t\t{\n\t\t\t\tfor(int num = 0; num < count; num++)\n\t\t\t\t\tSystem.out.println(result.get(num));\n\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//カードごとに分ける\n\t\t\t\tchar[] cards = str.toCharArray();\n\n\t\t\tint kaisuu = Integer.parseInt(input.readLine());\n\n\t\t\tint[] maisuu = new int[kaisuu];\n\n\t\t\t//カードをとる枚数を入力する\n\t\t\tfor(int num = 0; num < kaisuu; num++)\n\t\t\t\tmaisuu[num] = Integer.parseInt(input.readLine());\n\n\t\t\tchar[] over = new char[cards.length];\n\n\t\t\t//シャッフルする\n\t\t\tfor(int kai = 0; kai < kaisuu; kai++)\n\t\t\t{\n\t\t\t\tfor(int mai = 0; mai < cards.length; mai++)\n\t\t\t\t{\n\t\t\t\t\tif(mai + maisuu[kai] < cards.length)\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai]];\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai] - cards.length];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor(int num = 0; num < cards.length; num++)\n\t\t\t\t\tcards[num] = over[num];\n\n\t\t\t}\n\n\t\t\tresult.add(String.valueOf(cards));\n\n\t\t\tcount++;\n\n\t\t}", "String str = input.readLine();", "str", "input.readLine()", "input.readLine", "input", "if(str.equals(\"-\"))\n\t\t\t{\n\t\t\t\tfor(int num = 0; num < count; num++)\n\t\t\t\t\tSystem.out.println(result.get(num));\n\n\t\t\t\tbreak;\n\t\t\t}", "str.equals(\"-\")", "str.equals", "str", "\"-\"", "{\n\t\t\t\tfor(int num = 0; num < count; num++)\n\t\t\t\t\tSystem.out.println(result.get(num));\n\n\t\t\t\tbreak;\n\t\t\t}", "for(int num = 0; num < count; num++)\n\t\t\t\t\tSystem.out.println(result.get(num));", "int num = 0;", "int num = 0;", "num", "0", "num < count", "num", "count", "num++", "num++", "num", "System.out.println(result.get(num));", "System.out.println(result.get(num))", "System.out.println", "System.out", "System", "System.out", "result.get(num)", "result.get", "result", "num", "break;", "char[] cards = str.toCharArray();", "cards", "str.toCharArray()", "str.toCharArray", "str", "int kaisuu = Integer.parseInt(input.readLine());", "kaisuu", "Integer.parseInt(input.readLine())", "Integer.parseInt", "Integer", "input.readLine()", "input.readLine", "input", "int[] maisuu = new int[kaisuu];", "maisuu", "new int[kaisuu]", "kaisuu", "for(int num = 0; num < kaisuu; num++)\n\t\t\t\tmaisuu[num] = Integer.parseInt(input.readLine());", "int num = 0;", "int num = 0;", "num", "0", "num < kaisuu", "num", "kaisuu", "num++", "num++", "num", "maisuu[num] = Integer.parseInt(input.readLine());", "maisuu[num] = Integer.parseInt(input.readLine())", "maisuu[num]", "maisuu", "num", "Integer.parseInt(input.readLine())", "Integer.parseInt", "Integer", "input.readLine()", "input.readLine", "input", "char[] over = new char[cards.length];", "over", "new char[cards.length]", "cards.length", "cards", "cards.length", "for(int kai = 0; kai < kaisuu; kai++)\n\t\t\t{\n\t\t\t\tfor(int mai = 0; mai < cards.length; mai++)\n\t\t\t\t{\n\t\t\t\t\tif(mai + maisuu[kai] < cards.length)\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai]];\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai] - cards.length];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor(int num = 0; num < cards.length; num++)\n\t\t\t\t\tcards[num] = over[num];\n\n\t\t\t}", "int kai = 0;", "int kai = 0;", "kai", "0", "kai < kaisuu", "kai", "kaisuu", "kai++", "kai++", "kai", "{\n\t\t\t\tfor(int mai = 0; mai < cards.length; mai++)\n\t\t\t\t{\n\t\t\t\t\tif(mai + maisuu[kai] < cards.length)\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai]];\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai] - cards.length];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor(int num = 0; num < cards.length; num++)\n\t\t\t\t\tcards[num] = over[num];\n\n\t\t\t}", "{\n\t\t\t\tfor(int mai = 0; mai < cards.length; mai++)\n\t\t\t\t{\n\t\t\t\t\tif(mai + maisuu[kai] < cards.length)\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai]];\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai] - cards.length];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor(int num = 0; num < cards.length; num++)\n\t\t\t\t\tcards[num] = over[num];\n\n\t\t\t}", "for(int mai = 0; mai < cards.length; mai++)\n\t\t\t\t{\n\t\t\t\t\tif(mai + maisuu[kai] < cards.length)\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai]];\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai] - cards.length];\n\t\t\t\t\t}\n\t\t\t\t}", "int mai = 0;", "int mai = 0;", "mai", "0", "mai < cards.length", "mai", "cards.length", "cards", "cards.length", "mai++", "mai++", "mai", "{\n\t\t\t\t\tif(mai + maisuu[kai] < cards.length)\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai]];\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai] - cards.length];\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tif(mai + maisuu[kai] < cards.length)\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai]];\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai] - cards.length];\n\t\t\t\t\t}\n\t\t\t\t}", "if(mai + maisuu[kai] < cards.length)\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai]];\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai] - cards.length];\n\t\t\t\t\t}", "mai + maisuu[kai] < cards.length", "mai + maisuu[kai]", "mai", "maisuu[kai]", "maisuu", "kai", "cards.length", "cards", "cards.length", "over[mai] = cards[mai + maisuu[kai]]", "over[mai]", "over", "mai", "cards[mai + maisuu[kai]]", "cards", "mai + maisuu[kai]", "mai", "maisuu[kai]", "maisuu", "kai", "{\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai] - cards.length];\n\t\t\t\t\t}", "over[mai] = cards[mai + maisuu[kai] - cards.length]", "over[mai]", "over", "mai", "cards[mai + maisuu[kai] - cards.length]", "cards", "mai + maisuu[kai] - cards.length", "mai + maisuu[kai]", "mai", "maisuu[kai]", "maisuu", "kai", "cards.length", "cards", "cards.length", "for(int num = 0; num < cards.length; num++)\n\t\t\t\t\tcards[num] = over[num];", "int num = 0;", "int num = 0;", "num", "0", "num < cards.length", "num", "cards.length", "cards", "cards.length", "num++", "num++", "num", "cards[num] = over[num];", "cards[num] = over[num]", "cards[num]", "cards", "num", "over[num]", "over", "num", "result.add(String.valueOf(cards))", "result.add", "result", "String.valueOf(cards)", "String.valueOf", "String", "cards", "count++", "count", "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\tboolean set = true;\n\n\t\tint count = 0;\n\n\t\tArrayList<String> result = new ArrayList<String>();\n\n\t\t//シャッフルを始める\n\t\twhile(set)\n\t\t{\n\t\t\t//データを入力する\n\t\t\tString str = input.readLine();\n\n\t\t\t//終了条件\n\t\t\tif(str.equals(\"-\"))\n\t\t\t{\n\t\t\t\tfor(int num = 0; num < count; num++)\n\t\t\t\t\tSystem.out.println(result.get(num));\n\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//カードごとに分ける\n\t\t\t\tchar[] cards = str.toCharArray();\n\n\t\t\tint kaisuu = Integer.parseInt(input.readLine());\n\n\t\t\tint[] maisuu = new int[kaisuu];\n\n\t\t\t//カードをとる枚数を入力する\n\t\t\tfor(int num = 0; num < kaisuu; num++)\n\t\t\t\tmaisuu[num] = Integer.parseInt(input.readLine());\n\n\t\t\tchar[] over = new char[cards.length];\n\n\t\t\t//シャッフルする\n\t\t\tfor(int kai = 0; kai < kaisuu; kai++)\n\t\t\t{\n\t\t\t\tfor(int mai = 0; mai < cards.length; mai++)\n\t\t\t\t{\n\t\t\t\t\tif(mai + maisuu[kai] < cards.length)\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai]];\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai] - cards.length];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor(int num = 0; num < cards.length; num++)\n\t\t\t\t\tcards[num] = over[num];\n\n\t\t\t}\n\n\t\t\tresult.add(String.valueOf(cards));\n\n\t\t\tcount++;\n\n\t\t}\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\tboolean set = true;\n\n\t\tint count = 0;\n\n\t\tArrayList<String> result = new ArrayList<String>();\n\n\t\t//シャッフルを始める\n\t\twhile(set)\n\t\t{\n\t\t\t//データを入力する\n\t\t\tString str = input.readLine();\n\n\t\t\t//終了条件\n\t\t\tif(str.equals(\"-\"))\n\t\t\t{\n\t\t\t\tfor(int num = 0; num < count; num++)\n\t\t\t\t\tSystem.out.println(result.get(num));\n\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//カードごとに分ける\n\t\t\t\tchar[] cards = str.toCharArray();\n\n\t\t\tint kaisuu = Integer.parseInt(input.readLine());\n\n\t\t\tint[] maisuu = new int[kaisuu];\n\n\t\t\t//カードをとる枚数を入力する\n\t\t\tfor(int num = 0; num < kaisuu; num++)\n\t\t\t\tmaisuu[num] = Integer.parseInt(input.readLine());\n\n\t\t\tchar[] over = new char[cards.length];\n\n\t\t\t//シャッフルする\n\t\t\tfor(int kai = 0; kai < kaisuu; kai++)\n\t\t\t{\n\t\t\t\tfor(int mai = 0; mai < cards.length; mai++)\n\t\t\t\t{\n\t\t\t\t\tif(mai + maisuu[kai] < cards.length)\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai]];\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tover[mai] = cards[mai + maisuu[kai] - cards.length];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor(int num = 0; num < cards.length; num++)\n\t\t\t\t\tcards[num] = over[num];\n\n\t\t\t}\n\n\t\t\tresult.add(String.valueOf(cards));\n\n\t\t\tcount++;\n\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; public class Main { public static void main (String[] args) throws IOException { BufferedReader input = new BufferedReader (new InputStreamReader (System.in)); boolean set = true; int count = 0; ArrayList<String> result = new ArrayList<String>(); //シャッフルを始める while(set) { //データを入力する String str = input.readLine(); //終了条件 if(str.equals("-")) { for(int num = 0; num < count; num++) System.out.println(result.get(num)); break; } //カードごとに分ける char[] cards = str.toCharArray(); int kaisuu = Integer.parseInt(input.readLine()); int[] maisuu = new int[kaisuu]; //カードをとる枚数を入力する for(int num = 0; num < kaisuu; num++) maisuu[num] = Integer.parseInt(input.readLine()); char[] over = new char[cards.length]; //シャッフルする for(int kai = 0; kai < kaisuu; kai++) { for(int mai = 0; mai < cards.length; mai++) { if(mai + maisuu[kai] < cards.length) over[mai] = cards[mai + maisuu[kai]]; else { over[mai] = cards[mai + maisuu[kai] - cards.length]; } } for(int num = 0; num < cards.length; num++) cards[num] = over[num]; } result.add(String.valueOf(cards)); count++; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 2, 4, 18, 13, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 74, 5 ], [ 74, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 23, 28 ], [ 28, 29 ], [ 17, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 17, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 47, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 55, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 60, 64 ], [ 17, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 6, 71 ], [ 71, 72 ], [ 0, 73 ], [ 73, 74 ], [ 73, 75 ] ]
[ "\n\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String []args){\n\t\t//????????£?????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint A = 0;\n\t\t//??°?????????\n\t\twhile(true){\n\t\t\t//?????????????????? ????????????\n\t\t\tString cardword = sc.next();\n\t\t\t//\"-\"?????\\?????????????????????\n\t\t\tif(cardword.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//??°??????????????°????????????\n\t\t\tint n = sc.nextInt();\n\n\n\n\t\t\t//????????°????????????\n\t\t\tfor(int i = 0;i < n; i++){\n\t\t\t\t//????????????????????????\n\t\t\t\tA = sc.nextInt();\n\t\t\t\tcardword = cardword.substring(A)+cardword.substring(0,A);\n\t\t\t}\n\t\t\tSystem.out.println(cardword);\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\t//????????£?????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint A = 0;\n\t\t//??°?????????\n\t\twhile(true){\n\t\t\t//?????????????????? ????????????\n\t\t\tString cardword = sc.next();\n\t\t\t//\"-\"?????\\?????????????????????\n\t\t\tif(cardword.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//??°??????????????°????????????\n\t\t\tint n = sc.nextInt();\n\n\n\n\t\t\t//????????°????????????\n\t\t\tfor(int i = 0;i < n; i++){\n\t\t\t\t//????????????????????????\n\t\t\t\tA = sc.nextInt();\n\t\t\t\tcardword = cardword.substring(A)+cardword.substring(0,A);\n\t\t\t}\n\t\t\tSystem.out.println(cardword);\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\n\t\tint A = 0;\n\t\t//??°?????????\n\t\twhile(true){\n\t\t\t//?????????????????? ????????????\n\t\t\tString cardword = sc.next();\n\t\t\t//\"-\"?????\\?????????????????????\n\t\t\tif(cardword.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//??°??????????????°????????????\n\t\t\tint n = sc.nextInt();\n\n\n\n\t\t\t//????????°????????????\n\t\t\tfor(int i = 0;i < n; i++){\n\t\t\t\t//????????????????????????\n\t\t\t\tA = sc.nextInt();\n\t\t\t\tcardword = cardword.substring(A)+cardword.substring(0,A);\n\t\t\t}\n\t\t\tSystem.out.println(cardword);\n\t\t}\n\t}", "main", "{\n\t\t//????????£?????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint A = 0;\n\t\t//??°?????????\n\t\twhile(true){\n\t\t\t//?????????????????? ????????????\n\t\t\tString cardword = sc.next();\n\t\t\t//\"-\"?????\\?????????????????????\n\t\t\tif(cardword.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//??°??????????????°????????????\n\t\t\tint n = sc.nextInt();\n\n\n\n\t\t\t//????????°????????????\n\t\t\tfor(int i = 0;i < n; i++){\n\t\t\t\t//????????????????????????\n\t\t\t\tA = sc.nextInt();\n\t\t\t\tcardword = cardword.substring(A)+cardword.substring(0,A);\n\t\t\t}\n\t\t\tSystem.out.println(cardword);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int A = 0;", "A", "0", "while(true){\n\t\t\t//?????????????????? ????????????\n\t\t\tString cardword = sc.next();\n\t\t\t//\"-\"?????\\?????????????????????\n\t\t\tif(cardword.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//??°??????????????°????????????\n\t\t\tint n = sc.nextInt();\n\n\n\n\t\t\t//????????°????????????\n\t\t\tfor(int i = 0;i < n; i++){\n\t\t\t\t//????????????????????????\n\t\t\t\tA = sc.nextInt();\n\t\t\t\tcardword = cardword.substring(A)+cardword.substring(0,A);\n\t\t\t}\n\t\t\tSystem.out.println(cardword);\n\t\t}", "true", "{\n\t\t\t//?????????????????? ????????????\n\t\t\tString cardword = sc.next();\n\t\t\t//\"-\"?????\\?????????????????????\n\t\t\tif(cardword.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//??°??????????????°????????????\n\t\t\tint n = sc.nextInt();\n\n\n\n\t\t\t//????????°????????????\n\t\t\tfor(int i = 0;i < n; i++){\n\t\t\t\t//????????????????????????\n\t\t\t\tA = sc.nextInt();\n\t\t\t\tcardword = cardword.substring(A)+cardword.substring(0,A);\n\t\t\t}\n\t\t\tSystem.out.println(cardword);\n\t\t}", "String cardword = sc.next();", "cardword", "sc.next()", "sc.next", "sc", "if(cardword.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}", "cardword.equals(\"-\")", "cardword.equals", "cardword", "\"-\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "for(int i = 0;i < n; i++){\n\t\t\t\t//????????????????????????\n\t\t\t\tA = sc.nextInt();\n\t\t\t\tcardword = cardword.substring(A)+cardword.substring(0,A);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\t//????????????????????????\n\t\t\t\tA = sc.nextInt();\n\t\t\t\tcardword = cardword.substring(A)+cardword.substring(0,A);\n\t\t\t}", "{\n\t\t\t\t//????????????????????????\n\t\t\t\tA = sc.nextInt();\n\t\t\t\tcardword = cardword.substring(A)+cardword.substring(0,A);\n\t\t\t}", "A = sc.nextInt()", "A", "sc.nextInt()", "sc.nextInt", "sc", "cardword = cardword.substring(A)+cardword.substring(0,A)", "cardword", "cardword.substring(A)+cardword.substring(0,A)", "cardword.substring(A)", "cardword.substring", "cardword", "A", "cardword.substring(0,A)", "cardword.substring", "cardword", "0", "A", "System.out.println(cardword)", "System.out.println", "System.out", "System", "System.out", "cardword", "String []args", "args", "public class Main {\n\tpublic static void main(String []args){\n\t\t//????????£?????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint A = 0;\n\t\t//??°?????????\n\t\twhile(true){\n\t\t\t//?????????????????? ????????????\n\t\t\tString cardword = sc.next();\n\t\t\t//\"-\"?????\\?????????????????????\n\t\t\tif(cardword.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//??°??????????????°????????????\n\t\t\tint n = sc.nextInt();\n\n\n\n\t\t\t//????????°????????????\n\t\t\tfor(int i = 0;i < n; i++){\n\t\t\t\t//????????????????????????\n\t\t\t\tA = sc.nextInt();\n\t\t\t\tcardword = cardword.substring(A)+cardword.substring(0,A);\n\t\t\t}\n\t\t\tSystem.out.println(cardword);\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String []args){\n\t\t//????????£?????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint A = 0;\n\t\t//??°?????????\n\t\twhile(true){\n\t\t\t//?????????????????? ????????????\n\t\t\tString cardword = sc.next();\n\t\t\t//\"-\"?????\\?????????????????????\n\t\t\tif(cardword.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//??°??????????????°????????????\n\t\t\tint n = sc.nextInt();\n\n\n\n\t\t\t//????????°????????????\n\t\t\tfor(int i = 0;i < n; i++){\n\t\t\t\t//????????????????????????\n\t\t\t\tA = sc.nextInt();\n\t\t\t\tcardword = cardword.substring(A)+cardword.substring(0,A);\n\t\t\t}\n\t\t\tSystem.out.println(cardword);\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); int A = 0; //??°????????? while(true){ //?????????????????? ???????????? String cardword = sc.next(); //"-"?????\????????????????????? if(cardword.equals("-")){ break; } //??°??????????????°???????????? int n = sc.nextInt(); //????????°???????????? for(int i = 0;i < n; i++){ //???????????????????????? A = sc.nextInt(); cardword = cardword.substring(A)+cardword.substring(0,A); } System.out.println(cardword); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 17, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 82, 11 ], [ 82, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 26, 31 ], [ 20, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 20, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 37, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 49, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 49, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 63, 67 ], [ 49, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 20, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 12, 79 ], [ 79, 80 ], [ 0, 81 ], [ 81, 82 ], [ 81, 83 ] ]
[ "import java.io.File;\nimport java.io.IOException;\nimport java.util.*;\n \npublic class Main {\n \n\tpublic static void main(String[] args) throws IOException {\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\tString S = sc.next();\n\t\t\tif(S.equals(\"-\")) break;\n\t\t\tint m = sc.nextInt();\n\t\t\t\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString right = S.substring(h);\n\t\t\t\tString left = S.substring(0, h);\n\t\t\t\tS = right + left;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(S);\n\t\t}\n\t}\n}", "import java.io.File;", "File", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.util.*;", "util.*", "java", "public class Main {\n \n\tpublic static void main(String[] args) throws IOException {\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\tString S = sc.next();\n\t\t\tif(S.equals(\"-\")) break;\n\t\t\tint m = sc.nextInt();\n\t\t\t\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString right = S.substring(h);\n\t\t\t\tString left = S.substring(0, h);\n\t\t\t\tS = right + left;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(S);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\tString S = sc.next();\n\t\t\tif(S.equals(\"-\")) break;\n\t\t\tint m = sc.nextInt();\n\t\t\t\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString right = S.substring(h);\n\t\t\t\tString left = S.substring(0, h);\n\t\t\t\tS = right + left;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(S);\n\t\t}\n\t}", "main", "{\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\tString S = sc.next();\n\t\t\tif(S.equals(\"-\")) break;\n\t\t\tint m = sc.nextInt();\n\t\t\t\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString right = S.substring(h);\n\t\t\t\tString left = S.substring(0, h);\n\t\t\t\tS = right + left;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(S);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n\t\t\tString S = sc.next();\n\t\t\tif(S.equals(\"-\")) break;\n\t\t\tint m = sc.nextInt();\n\t\t\t\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString right = S.substring(h);\n\t\t\t\tString left = S.substring(0, h);\n\t\t\t\tS = right + left;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(S);\n\t\t}", "true", "{\n\t\t\tString S = sc.next();\n\t\t\tif(S.equals(\"-\")) break;\n\t\t\tint m = sc.nextInt();\n\t\t\t\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString right = S.substring(h);\n\t\t\t\tString left = S.substring(0, h);\n\t\t\t\tS = right + left;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(S);\n\t\t}", "String S = sc.next();", "S", "sc.next()", "sc.next", "sc", "if(S.equals(\"-\")) break;", "S.equals(\"-\")", "S.equals", "S", "\"-\"", "break;", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "for(int i = 0; i < m; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString right = S.substring(h);\n\t\t\t\tString left = S.substring(0, h);\n\t\t\t\tS = right + left;\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString right = S.substring(h);\n\t\t\t\tString left = S.substring(0, h);\n\t\t\t\tS = right + left;\n\t\t\t}", "{\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString right = S.substring(h);\n\t\t\t\tString left = S.substring(0, h);\n\t\t\t\tS = right + left;\n\t\t\t}", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "String right = S.substring(h);", "right", "S.substring(h)", "S.substring", "S", "h", "String left = S.substring(0, h);", "left", "S.substring(0, h)", "S.substring", "S", "0", "h", "S = right + left", "S", "right + left", "right", "left", "System.out.println(S)", "System.out.println", "System.out", "System", "System.out", "S", "String[] args", "args", "public class Main {\n \n\tpublic static void main(String[] args) throws IOException {\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\tString S = sc.next();\n\t\t\tif(S.equals(\"-\")) break;\n\t\t\tint m = sc.nextInt();\n\t\t\t\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString right = S.substring(h);\n\t\t\t\tString left = S.substring(0, h);\n\t\t\t\tS = right + left;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(S);\n\t\t}\n\t}\n}", "public class Main {\n \n\tpublic static void main(String[] args) throws IOException {\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\tString S = sc.next();\n\t\t\tif(S.equals(\"-\")) break;\n\t\t\tint m = sc.nextInt();\n\t\t\t\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString right = S.substring(h);\n\t\t\t\tString left = S.substring(0, h);\n\t\t\t\tS = right + left;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(S);\n\t\t}\n\t}\n}", "Main" ]
import java.io.File; import java.io.IOException; import java.util.*; public class Main { public static void main(String[] args) throws IOException { //File file = new File("input.txt"); //Scanner sc = new Scanner(file); Scanner sc = new Scanner(System.in); while(true){ String S = sc.next(); if(S.equals("-")) break; int m = sc.nextInt(); for(int i = 0; i < m; i++){ int h = sc.nextInt(); String right = S.substring(h); String left = S.substring(0, h); S = right + left; } System.out.println(S); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 78, 5 ], [ 78, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 14, 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 ], [ 47, 48 ], [ 48, 49 ], [ 44, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 52, 56 ], [ 44, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 44, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 14, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 6, 75 ], [ 75, 76 ], [ 0, 77 ], [ 77, 78 ], [ 77, 79 ] ]
[ "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 while(true){\n String str = sc.next();\n if(str.equals(\"-\")){\n break;\n }\n int m = sc.nextInt();\n for(int i = 0; i < m; i++){\n int h = sc.nextInt();\n String con = str.substring(0,h);\n con = str.concat(con);\n str = con.substring(h);\n }\n System.out.println(str);\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 while(true){\n String str = sc.next();\n if(str.equals(\"-\")){\n break;\n }\n int m = sc.nextInt();\n for(int i = 0; i < m; i++){\n int h = sc.nextInt();\n String con = str.substring(0,h);\n con = str.concat(con);\n str = con.substring(h);\n }\n System.out.println(str);\n }\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n while(true){\n String str = sc.next();\n if(str.equals(\"-\")){\n break;\n }\n int m = sc.nextInt();\n for(int i = 0; i < m; i++){\n int h = sc.nextInt();\n String con = str.substring(0,h);\n con = str.concat(con);\n str = con.substring(h);\n }\n System.out.println(str);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while(true){\n String str = sc.next();\n if(str.equals(\"-\")){\n break;\n }\n int m = sc.nextInt();\n for(int i = 0; i < m; i++){\n int h = sc.nextInt();\n String con = str.substring(0,h);\n con = str.concat(con);\n str = con.substring(h);\n }\n System.out.println(str);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n String str = sc.next();\n if(str.equals(\"-\")){\n break;\n }\n int m = sc.nextInt();\n for(int i = 0; i < m; i++){\n int h = sc.nextInt();\n String con = str.substring(0,h);\n con = str.concat(con);\n str = con.substring(h);\n }\n System.out.println(str);\n }", "true", "{\n String str = sc.next();\n if(str.equals(\"-\")){\n break;\n }\n int m = sc.nextInt();\n for(int i = 0; i < m; i++){\n int h = sc.nextInt();\n String con = str.substring(0,h);\n con = str.concat(con);\n str = con.substring(h);\n }\n System.out.println(str);\n }", "String str = sc.next();", "str", "sc.next()", "sc.next", "sc", "if(str.equals(\"-\")){\n break;\n }", "str.equals(\"-\")", "str.equals", "str", "\"-\"", "{\n break;\n }", "break;", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "for(int i = 0; i < m; i++){\n int h = sc.nextInt();\n String con = str.substring(0,h);\n con = str.concat(con);\n str = con.substring(h);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n int h = sc.nextInt();\n String con = str.substring(0,h);\n con = str.concat(con);\n str = con.substring(h);\n }", "{\n int h = sc.nextInt();\n String con = str.substring(0,h);\n con = str.concat(con);\n str = con.substring(h);\n }", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "String con = str.substring(0,h);", "con", "str.substring(0,h)", "str.substring", "str", "0", "h", "con = str.concat(con)", "con", "str.concat(con)", "str.concat", "str", "con", "str = con.substring(h)", "str", "con.substring(h)", "con.substring", "con", "h", "System.out.println(str)", "System.out.println", "System.out", "System", "System.out", "str", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n while(true){\n String str = sc.next();\n if(str.equals(\"-\")){\n break;\n }\n int m = sc.nextInt();\n for(int i = 0; i < m; i++){\n int h = sc.nextInt();\n String con = str.substring(0,h);\n con = str.concat(con);\n str = con.substring(h);\n }\n System.out.println(str);\n }\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n while(true){\n String str = sc.next();\n if(str.equals(\"-\")){\n break;\n }\n int m = sc.nextInt();\n for(int i = 0; i < m; i++){\n int h = sc.nextInt();\n String con = str.substring(0,h);\n con = str.concat(con);\n str = con.substring(h);\n }\n System.out.println(str);\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); while(true){ String str = sc.next(); if(str.equals("-")){ break; } int m = sc.nextInt(); for(int i = 0; i < m; i++){ int h = sc.nextInt(); String con = str.substring(0,h); con = str.concat(con); str = con.substring(h); } System.out.println(str); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 4, 13, 13, 23, 13, 12, 13, 30, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 17, 13, 41, 13, 4, 18, 13, 13, 4, 18, 13, 29, 2, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 109, 8 ], [ 109, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 9, 18 ], [ 18, 19 ], [ 109, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 31, 36 ], [ 36, 37 ], [ 25, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 43, 44 ], [ 44, 45 ], [ 25, 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 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 65, 66 ], [ 58, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 69, 72 ], [ 25, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 20, 79 ], [ 79, 80 ], [ 109, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 86, 90 ], [ 83, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 93, 97 ], [ 97, 98 ], [ 98, 99 ], [ 83, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 81, 104 ], [ 104, 105 ], [ 81, 106 ], [ 106, 107 ], [ 0, 108 ], [ 108, 109 ], [ 108, 110 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n execute(br);\n }\n\n private static void execute(BufferedReader br) throws Exception {\n while (true) {\n String str = br.readLine();\n if (str.equals(\"-\")) { break; }\n int m = Integer.parseInt(br.readLine());\n for (int i = 0; i < m; i++) {\n int n = Integer.parseInt(br.readLine());\n str = shuffle(str, n);\n }\n System.out.println(str);\n }\n }\n\n private static String shuffle(String str, int n) {\n String fromInitialsToN = str.substring(0, n);\n String fromN1ToEnd = str.substring(n, str.length());\n return fromN1ToEnd + fromInitialsToN;\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n execute(br);\n }\n\n private static void execute(BufferedReader br) throws Exception {\n while (true) {\n String str = br.readLine();\n if (str.equals(\"-\")) { break; }\n int m = Integer.parseInt(br.readLine());\n for (int i = 0; i < m; i++) {\n int n = Integer.parseInt(br.readLine());\n str = shuffle(str, n);\n }\n System.out.println(str);\n }\n }\n\n private static String shuffle(String str, int n) {\n String fromInitialsToN = str.substring(0, n);\n String fromN1ToEnd = str.substring(n, str.length());\n return fromN1ToEnd + fromInitialsToN;\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n execute(br);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n execute(br);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "execute(br)", "execute", "br", "String[] args", "args", "private static void execute(BufferedReader br) throws Exception {\n while (true) {\n String str = br.readLine();\n if (str.equals(\"-\")) { break; }\n int m = Integer.parseInt(br.readLine());\n for (int i = 0; i < m; i++) {\n int n = Integer.parseInt(br.readLine());\n str = shuffle(str, n);\n }\n System.out.println(str);\n }\n }", "execute", "{\n while (true) {\n String str = br.readLine();\n if (str.equals(\"-\")) { break; }\n int m = Integer.parseInt(br.readLine());\n for (int i = 0; i < m; i++) {\n int n = Integer.parseInt(br.readLine());\n str = shuffle(str, n);\n }\n System.out.println(str);\n }\n }", "while (true) {\n String str = br.readLine();\n if (str.equals(\"-\")) { break; }\n int m = Integer.parseInt(br.readLine());\n for (int i = 0; i < m; i++) {\n int n = Integer.parseInt(br.readLine());\n str = shuffle(str, n);\n }\n System.out.println(str);\n }", "true", "{\n String str = br.readLine();\n if (str.equals(\"-\")) { break; }\n int m = Integer.parseInt(br.readLine());\n for (int i = 0; i < m; i++) {\n int n = Integer.parseInt(br.readLine());\n str = shuffle(str, n);\n }\n System.out.println(str);\n }", "String str = br.readLine();", "str", "br.readLine()", "br.readLine", "br", "if (str.equals(\"-\")) { break; }", "str.equals(\"-\")", "str.equals", "str", "\"-\"", "{ break; }", "break;", "int m = Integer.parseInt(br.readLine());", "m", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "for (int i = 0; i < m; i++) {\n int n = Integer.parseInt(br.readLine());\n str = shuffle(str, n);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n int n = Integer.parseInt(br.readLine());\n str = shuffle(str, n);\n }", "{\n int n = Integer.parseInt(br.readLine());\n str = shuffle(str, n);\n }", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "str = shuffle(str, n)", "str", "shuffle(str, n)", "shuffle", "str", "n", "System.out.println(str)", "System.out.println", "System.out", "System", "System.out", "str", "BufferedReader br", "br", "private static String shuffle(String str, int n) {\n String fromInitialsToN = str.substring(0, n);\n String fromN1ToEnd = str.substring(n, str.length());\n return fromN1ToEnd + fromInitialsToN;\n }", "shuffle", "{\n String fromInitialsToN = str.substring(0, n);\n String fromN1ToEnd = str.substring(n, str.length());\n return fromN1ToEnd + fromInitialsToN;\n }", "String fromInitialsToN = str.substring(0, n);", "fromInitialsToN", "str.substring(0, n)", "str.substring", "str", "0", "n", "String fromN1ToEnd = str.substring(n, str.length());", "fromN1ToEnd", "str.substring(n, str.length())", "str.substring", "str", "n", "str.length()", "str.length", "str", "return fromN1ToEnd + fromInitialsToN;", "fromN1ToEnd + fromInitialsToN", "fromN1ToEnd", "fromInitialsToN", "String str", "str", "int n", "n", "public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n execute(br);\n }\n\n private static void execute(BufferedReader br) throws Exception {\n while (true) {\n String str = br.readLine();\n if (str.equals(\"-\")) { break; }\n int m = Integer.parseInt(br.readLine());\n for (int i = 0; i < m; i++) {\n int n = Integer.parseInt(br.readLine());\n str = shuffle(str, n);\n }\n System.out.println(str);\n }\n }\n\n private static String shuffle(String str, int n) {\n String fromInitialsToN = str.substring(0, n);\n String fromN1ToEnd = str.substring(n, str.length());\n return fromN1ToEnd + fromInitialsToN;\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n execute(br);\n }\n\n private static void execute(BufferedReader br) throws Exception {\n while (true) {\n String str = br.readLine();\n if (str.equals(\"-\")) { break; }\n int m = Integer.parseInt(br.readLine());\n for (int i = 0; i < m; i++) {\n int n = Integer.parseInt(br.readLine());\n str = shuffle(str, n);\n }\n System.out.println(str);\n }\n }\n\n private static String shuffle(String str, int n) {\n String fromInitialsToN = str.substring(0, n);\n String fromN1ToEnd = str.substring(n, str.length());\n return fromN1ToEnd + fromInitialsToN;\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); execute(br); } private static void execute(BufferedReader br) throws Exception { while (true) { String str = br.readLine(); if (str.equals("-")) { break; } int m = Integer.parseInt(br.readLine()); for (int i = 0; i < m; i++) { int n = Integer.parseInt(br.readLine()); str = shuffle(str, n); } System.out.println(str); } } private static String shuffle(String str, int n) { String fromInitialsToN = str.substring(0, n); String fromN1ToEnd = str.substring(n, str.length()); return fromN1ToEnd + fromInitialsToN; } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 42, 4, 13, 0, 13, 4, 18, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 13, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 13, 28, 13, 13, 30, 30, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 17, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 14, 4, 18, 13, 13, 30, 29, 17, 30, 29, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 120, 8 ], [ 120, 9 ], [ 9, 10 ], [ 9, 11 ], [ 120, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 37, 38 ], [ 38, 39 ], [ 31, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 40, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 55, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 61, 62 ], [ 62, 63 ], [ 31, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 14, 68 ], [ 68, 69 ], [ 68, 70 ], [ 68, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 12, 79 ], [ 79, 80 ], [ 120, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 83, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 92, 96 ], [ 83, 97 ], [ 97, 98 ], [ 81, 99 ], [ 99, 100 ], [ 81, 101 ], [ 101, 102 ], [ 120, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 106, 111 ], [ 111, 112 ], [ 112, 113 ], [ 106, 114 ], [ 114, 115 ], [ 115, 116 ], [ 103, 117 ], [ 117, 118 ], [ 0, 119 ], [ 119, 120 ], [ 119, 121 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tfinal static String END_SIGN = \"-\";\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<String> resultList = new ArrayList<String>();\n\n\t\tString str;\n\t\twhile (EndDecision(str = sc.nextLine())) {\n\n\t\t\tint shuffleCount = Integer.parseInt(sc.nextLine());\n\n\t\t\tfor (int i = 0; i < shuffleCount; i++) {\n\t\t\t\tstr = Shuffle(str, Integer.parseInt(sc.nextLine()));\n\t\t\t}\n\t\t\tresultList.add(str);\n\t\t}\n\n\t\tfor (String s : resultList) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\n\t}\n\n\tstatic String Shuffle(String str, int num) {\n\t\tString result = str.substring(num);\n\t\tresult += str.substring(0, num);\n\t\treturn result;\n\t}\n\n\t// 終了判定\n\tpublic static boolean EndDecision(String array) {\n\t\tif (array.equals(END_SIGN)) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\n\t}\n\n}\n", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tfinal static String END_SIGN = \"-\";\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<String> resultList = new ArrayList<String>();\n\n\t\tString str;\n\t\twhile (EndDecision(str = sc.nextLine())) {\n\n\t\t\tint shuffleCount = Integer.parseInt(sc.nextLine());\n\n\t\t\tfor (int i = 0; i < shuffleCount; i++) {\n\t\t\t\tstr = Shuffle(str, Integer.parseInt(sc.nextLine()));\n\t\t\t}\n\t\t\tresultList.add(str);\n\t\t}\n\n\t\tfor (String s : resultList) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\n\t}\n\n\tstatic String Shuffle(String str, int num) {\n\t\tString result = str.substring(num);\n\t\tresult += str.substring(0, num);\n\t\treturn result;\n\t}\n\n\t// 終了判定\n\tpublic static boolean EndDecision(String array) {\n\t\tif (array.equals(END_SIGN)) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\n\t}\n\n}", "Main", "final static String END_SIGN = \"-\";", "END_SIGN", "\"-\"", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<String> resultList = new ArrayList<String>();\n\n\t\tString str;\n\t\twhile (EndDecision(str = sc.nextLine())) {\n\n\t\t\tint shuffleCount = Integer.parseInt(sc.nextLine());\n\n\t\t\tfor (int i = 0; i < shuffleCount; i++) {\n\t\t\t\tstr = Shuffle(str, Integer.parseInt(sc.nextLine()));\n\t\t\t}\n\t\t\tresultList.add(str);\n\t\t}\n\n\t\tfor (String s : resultList) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<String> resultList = new ArrayList<String>();\n\n\t\tString str;\n\t\twhile (EndDecision(str = sc.nextLine())) {\n\n\t\t\tint shuffleCount = Integer.parseInt(sc.nextLine());\n\n\t\t\tfor (int i = 0; i < shuffleCount; i++) {\n\t\t\t\tstr = Shuffle(str, Integer.parseInt(sc.nextLine()));\n\t\t\t}\n\t\t\tresultList.add(str);\n\t\t}\n\n\t\tfor (String s : resultList) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "ArrayList<String> resultList = new ArrayList<String>();", "resultList", "new ArrayList<String>()", "String str;", "str", "while (EndDecision(str = sc.nextLine())) {\n\n\t\t\tint shuffleCount = Integer.parseInt(sc.nextLine());\n\n\t\t\tfor (int i = 0; i < shuffleCount; i++) {\n\t\t\t\tstr = Shuffle(str, Integer.parseInt(sc.nextLine()));\n\t\t\t}\n\t\t\tresultList.add(str);\n\t\t}", "EndDecision(str = sc.nextLine())", "EndDecision", "str = sc.nextLine()", "str", "sc.nextLine()", "sc.nextLine", "sc", "{\n\n\t\t\tint shuffleCount = Integer.parseInt(sc.nextLine());\n\n\t\t\tfor (int i = 0; i < shuffleCount; i++) {\n\t\t\t\tstr = Shuffle(str, Integer.parseInt(sc.nextLine()));\n\t\t\t}\n\t\t\tresultList.add(str);\n\t\t}", "int shuffleCount = Integer.parseInt(sc.nextLine());", "shuffleCount", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "for (int i = 0; i < shuffleCount; i++) {\n\t\t\t\tstr = Shuffle(str, Integer.parseInt(sc.nextLine()));\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < shuffleCount", "i", "shuffleCount", "i++", "i++", "i", "{\n\t\t\t\tstr = Shuffle(str, Integer.parseInt(sc.nextLine()));\n\t\t\t}", "{\n\t\t\t\tstr = Shuffle(str, Integer.parseInt(sc.nextLine()));\n\t\t\t}", "str = Shuffle(str, Integer.parseInt(sc.nextLine()))", "str", "Shuffle(str, Integer.parseInt(sc.nextLine()))", "Shuffle", "str", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "resultList.add(str)", "resultList.add", "resultList", "str", "for (String s : resultList) {\n\t\t\tSystem.out.println(s);\n\t\t}", "String s", "resultList", "{\n\t\t\tSystem.out.println(s);\n\t\t}", "{\n\t\t\tSystem.out.println(s);\n\t\t}", "System.out.println(s)", "System.out.println", "System.out", "System", "System.out", "s", "String[] args", "args", "static String Shuffle(String str, int num) {\n\t\tString result = str.substring(num);\n\t\tresult += str.substring(0, num);\n\t\treturn result;\n\t}", "Shuffle", "{\n\t\tString result = str.substring(num);\n\t\tresult += str.substring(0, num);\n\t\treturn result;\n\t}", "String result = str.substring(num);", "result", "str.substring(num)", "str.substring", "str", "num", "result += str.substring(0, num)", "result", "str.substring(0, num)", "str.substring", "str", "0", "num", "return result;", "result", "String str", "str", "int num", "num", "// 終了判定\n\tpublic static boolean EndDecision(String array) {\n\t\tif (array.equals(END_SIGN)) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\n\t}", "EndDecision", "{\n\t\tif (array.equals(END_SIGN)) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\n\t}", "if (array.equals(END_SIGN)) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}", "array.equals(END_SIGN)", "array.equals", "array", "END_SIGN", "{\n\t\t\treturn false;\n\t\t}", "return false;", "false", "{\n\t\t\treturn true;\n\t\t}", "return true;", "true", "String array", "array", "public class Main {\n\n\tfinal static String END_SIGN = \"-\";\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<String> resultList = new ArrayList<String>();\n\n\t\tString str;\n\t\twhile (EndDecision(str = sc.nextLine())) {\n\n\t\t\tint shuffleCount = Integer.parseInt(sc.nextLine());\n\n\t\t\tfor (int i = 0; i < shuffleCount; i++) {\n\t\t\t\tstr = Shuffle(str, Integer.parseInt(sc.nextLine()));\n\t\t\t}\n\t\t\tresultList.add(str);\n\t\t}\n\n\t\tfor (String s : resultList) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\n\t}\n\n\tstatic String Shuffle(String str, int num) {\n\t\tString result = str.substring(num);\n\t\tresult += str.substring(0, num);\n\t\treturn result;\n\t}\n\n\t// 終了判定\n\tpublic static boolean EndDecision(String array) {\n\t\tif (array.equals(END_SIGN)) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\n\t}\n\n}", "public class Main {\n\n\tfinal static String END_SIGN = \"-\";\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<String> resultList = new ArrayList<String>();\n\n\t\tString str;\n\t\twhile (EndDecision(str = sc.nextLine())) {\n\n\t\t\tint shuffleCount = Integer.parseInt(sc.nextLine());\n\n\t\t\tfor (int i = 0; i < shuffleCount; i++) {\n\t\t\t\tstr = Shuffle(str, Integer.parseInt(sc.nextLine()));\n\t\t\t}\n\t\t\tresultList.add(str);\n\t\t}\n\n\t\tfor (String s : resultList) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\n\t}\n\n\tstatic String Shuffle(String str, int num) {\n\t\tString result = str.substring(num);\n\t\tresult += str.substring(0, num);\n\t\treturn result;\n\t}\n\n\t// 終了判定\n\tpublic static boolean EndDecision(String array) {\n\t\tif (array.equals(END_SIGN)) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\n\t}\n\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main { final static String END_SIGN = "-"; public static void main(String[] args) { Scanner sc = new Scanner(System.in); ArrayList<String> resultList = new ArrayList<String>(); String str; while (EndDecision(str = sc.nextLine())) { int shuffleCount = Integer.parseInt(sc.nextLine()); for (int i = 0; i < shuffleCount; i++) { str = Shuffle(str, Integer.parseInt(sc.nextLine())); } resultList.add(str); } for (String s : resultList) { System.out.println(s); } } static String Shuffle(String str, int num) { String result = str.substring(num); result += str.substring(0, num); return result; } // 終了判定 public static boolean EndDecision(String array) { if (array.equals(END_SIGN)) { return false; } else { return true; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 28, 13, 13, 30, 30, 0, 13, 2, 4, 18, 13, 13, 4, 18, 13, 17, 13, 29, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 99, 5 ], [ 99, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 14, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 53, 54 ], [ 14, 55 ], [ 55, 56 ], [ 56, 57 ], [ 14, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 60, 63 ], [ 14, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 6, 70 ], [ 70, 71 ], [ 99, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 75, 78 ], [ 79, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 82, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 87, 91 ], [ 74, 92 ], [ 92, 93 ], [ 72, 94 ], [ 94, 95 ], [ 72, 96 ], [ 96, 97 ], [ 0, 98 ], [ 98, 99 ], [ 98, 100 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tString start = sc.nextLine();\n\t\t\tif(start.equals(\"-\")) break;\n\n\t\t\tint m = sc.nextInt();\n\t\t\tint[] shuffle = new int[m];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tshuffle[i] = sc.nextInt();\n\t\t\t}\n\t\t\tsc.nextLine();\n\n\t\t\tString ans = doShuffle(start, shuffle);\n\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n\n\tprivate static String doShuffle(String text, int[] shuffle) {\n\n\t\tfor(int num : shuffle) {\n\t\t\ttext = text.substring(num) + text.substring(0, num);\n\t\t}\n\t\treturn text;\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tString start = sc.nextLine();\n\t\t\tif(start.equals(\"-\")) break;\n\n\t\t\tint m = sc.nextInt();\n\t\t\tint[] shuffle = new int[m];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tshuffle[i] = sc.nextInt();\n\t\t\t}\n\t\t\tsc.nextLine();\n\n\t\t\tString ans = doShuffle(start, shuffle);\n\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n\n\tprivate static String doShuffle(String text, int[] shuffle) {\n\n\t\tfor(int num : shuffle) {\n\t\t\ttext = text.substring(num) + text.substring(0, num);\n\t\t}\n\t\treturn text;\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tString start = sc.nextLine();\n\t\t\tif(start.equals(\"-\")) break;\n\n\t\t\tint m = sc.nextInt();\n\t\t\tint[] shuffle = new int[m];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tshuffle[i] = sc.nextInt();\n\t\t\t}\n\t\t\tsc.nextLine();\n\n\t\t\tString ans = doShuffle(start, shuffle);\n\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tString start = sc.nextLine();\n\t\t\tif(start.equals(\"-\")) break;\n\n\t\t\tint m = sc.nextInt();\n\t\t\tint[] shuffle = new int[m];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tshuffle[i] = sc.nextInt();\n\t\t\t}\n\t\t\tsc.nextLine();\n\n\t\t\tString ans = doShuffle(start, shuffle);\n\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true) {\n\t\t\tString start = sc.nextLine();\n\t\t\tif(start.equals(\"-\")) break;\n\n\t\t\tint m = sc.nextInt();\n\t\t\tint[] shuffle = new int[m];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tshuffle[i] = sc.nextInt();\n\t\t\t}\n\t\t\tsc.nextLine();\n\n\t\t\tString ans = doShuffle(start, shuffle);\n\n\t\t\tSystem.out.println(ans);\n\t\t}", "true", "{\n\t\t\tString start = sc.nextLine();\n\t\t\tif(start.equals(\"-\")) break;\n\n\t\t\tint m = sc.nextInt();\n\t\t\tint[] shuffle = new int[m];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tshuffle[i] = sc.nextInt();\n\t\t\t}\n\t\t\tsc.nextLine();\n\n\t\t\tString ans = doShuffle(start, shuffle);\n\n\t\t\tSystem.out.println(ans);\n\t\t}", "String start = sc.nextLine();", "start", "sc.nextLine()", "sc.nextLine", "sc", "if(start.equals(\"-\")) break;", "start.equals(\"-\")", "start.equals", "start", "\"-\"", "break;", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "int[] shuffle = new int[m];", "shuffle", "new int[m]", "m", "for (int i = 0; i < m; i++) {\n\t\t\t\tshuffle[i] = sc.nextInt();\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n\t\t\t\tshuffle[i] = sc.nextInt();\n\t\t\t}", "{\n\t\t\t\tshuffle[i] = sc.nextInt();\n\t\t\t}", "shuffle[i] = sc.nextInt()", "shuffle[i]", "shuffle", "i", "sc.nextInt()", "sc.nextInt", "sc", "sc.nextLine()", "sc.nextLine", "sc", "String ans = doShuffle(start, shuffle);", "ans", "doShuffle(start, shuffle)", "doShuffle", "start", "shuffle", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "private static String doShuffle(String text, int[] shuffle) {\n\n\t\tfor(int num : shuffle) {\n\t\t\ttext = text.substring(num) + text.substring(0, num);\n\t\t}\n\t\treturn text;\n\t}", "doShuffle", "{\n\n\t\tfor(int num : shuffle) {\n\t\t\ttext = text.substring(num) + text.substring(0, num);\n\t\t}\n\t\treturn text;\n\t}", "for(int num : shuffle) {\n\t\t\ttext = text.substring(num) + text.substring(0, num);\n\t\t}", "int num", "shuffle", "{\n\t\t\ttext = text.substring(num) + text.substring(0, num);\n\t\t}", "{\n\t\t\ttext = text.substring(num) + text.substring(0, num);\n\t\t}", "text = text.substring(num) + text.substring(0, num)", "text", "text.substring(num) + text.substring(0, num)", "text.substring(num)", "text.substring", "text", "num", "text.substring(0, num)", "text.substring", "text", "0", "num", "return text;", "text", "String text", "text", "int[] shuffle", "shuffle", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tString start = sc.nextLine();\n\t\t\tif(start.equals(\"-\")) break;\n\n\t\t\tint m = sc.nextInt();\n\t\t\tint[] shuffle = new int[m];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tshuffle[i] = sc.nextInt();\n\t\t\t}\n\t\t\tsc.nextLine();\n\n\t\t\tString ans = doShuffle(start, shuffle);\n\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n\n\tprivate static String doShuffle(String text, int[] shuffle) {\n\n\t\tfor(int num : shuffle) {\n\t\t\ttext = text.substring(num) + text.substring(0, num);\n\t\t}\n\t\treturn text;\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tString start = sc.nextLine();\n\t\t\tif(start.equals(\"-\")) break;\n\n\t\t\tint m = sc.nextInt();\n\t\t\tint[] shuffle = new int[m];\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tshuffle[i] = sc.nextInt();\n\t\t\t}\n\t\t\tsc.nextLine();\n\n\t\t\tString ans = doShuffle(start, shuffle);\n\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n\n\tprivate static String doShuffle(String text, int[] shuffle) {\n\n\t\tfor(int num : shuffle) {\n\t\t\ttext = text.substring(num) + text.substring(0, num);\n\t\t}\n\t\treturn text;\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(true) { String start = sc.nextLine(); if(start.equals("-")) break; int m = sc.nextInt(); int[] shuffle = new int[m]; for (int i = 0; i < m; i++) { shuffle[i] = sc.nextInt(); } sc.nextLine(); String ans = doShuffle(start, shuffle); System.out.println(ans); } } private static String doShuffle(String text, int[] shuffle) { for(int num : shuffle) { text = text.substring(num) + text.substring(0, num); } return text; } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 30, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 13, 2, 4, 18, 13, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 18, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 18, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 24, 29 ], [ 18, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 18, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 47, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 55, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 60, 64 ], [ 18, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 9, 71 ], [ 71, 72 ] ]
[ "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 for(;;){\n String w = sc.next();\n if(w.equals(\"-\")) break;\n int m = sc.nextInt();\n for(int i = 0; i < m; i++) {\n int h = sc.nextInt();\n w = w.substring(h) + w.substring(0, h);\n }\n System.out.println(w);\n }\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 for(;;){\n String w = sc.next();\n if(w.equals(\"-\")) break;\n int m = sc.nextInt();\n for(int i = 0; i < m; i++) {\n int h = sc.nextInt();\n w = w.substring(h) + w.substring(0, h);\n }\n System.out.println(w);\n }\n }\n}", "Main", "public static void main(String[]args)throws Exception {\n Scanner sc = new Scanner(System.in);\n for(;;){\n String w = sc.next();\n if(w.equals(\"-\")) break;\n int m = sc.nextInt();\n for(int i = 0; i < m; i++) {\n int h = sc.nextInt();\n w = w.substring(h) + w.substring(0, h);\n }\n System.out.println(w);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n for(;;){\n String w = sc.next();\n if(w.equals(\"-\")) break;\n int m = sc.nextInt();\n for(int i = 0; i < m; i++) {\n int h = sc.nextInt();\n w = w.substring(h) + w.substring(0, h);\n }\n System.out.println(w);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "for(;;){\n String w = sc.next();\n if(w.equals(\"-\")) break;\n int m = sc.nextInt();\n for(int i = 0; i < m; i++) {\n int h = sc.nextInt();\n w = w.substring(h) + w.substring(0, h);\n }\n System.out.println(w);\n }", ";", "{\n String w = sc.next();\n if(w.equals(\"-\")) break;\n int m = sc.nextInt();\n for(int i = 0; i < m; i++) {\n int h = sc.nextInt();\n w = w.substring(h) + w.substring(0, h);\n }\n System.out.println(w);\n }", "{\n String w = sc.next();\n if(w.equals(\"-\")) break;\n int m = sc.nextInt();\n for(int i = 0; i < m; i++) {\n int h = sc.nextInt();\n w = w.substring(h) + w.substring(0, h);\n }\n System.out.println(w);\n }", "String w = sc.next();", "w", "sc.next()", "sc.next", "sc", "if(w.equals(\"-\")) break;", "w.equals(\"-\")", "w.equals", "w", "\"-\"", "break;", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "for(int i = 0; i < m; i++) {\n int h = sc.nextInt();\n w = w.substring(h) + w.substring(0, h);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n int h = sc.nextInt();\n w = w.substring(h) + w.substring(0, h);\n }", "{\n int h = sc.nextInt();\n w = w.substring(h) + w.substring(0, h);\n }", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "w = w.substring(h) + w.substring(0, h)", "w", "w.substring(h) + w.substring(0, h)", "w.substring(h)", "w.substring", "w", "h", "w.substring(0, h)", "w.substring", "w", "0", "h", "System.out.println(w)", "System.out.println", "System.out", "System", "System.out", "w", "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); for(;;){ String w = sc.next(); if(w.equals("-")) break; int m = sc.nextInt(); for(int i = 0; i < m; i++) { int h = sc.nextInt(); w = w.substring(h) + w.substring(0, h); } System.out.println(w); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 17, 41, 13, 20, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 4, 13, 28, 13, 13, 30, 4, 13, 13, 14, 4, 18, 4, 18, 13, 18, 13, 17, 17, 3, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 13, 4, 13, 11, 1, 41, 13, 13, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 12, 13, 30, 0, 13, 0, 13, 17, 12, 13, 30, 29, 2, 13, 13, 12, 13, 30, 29, 2, 13, 2, 2, 13, 17, 13, 12, 13, 30, 14, 4, 13, 30, 37, 20, 0, 18, 13, 13, 13, 0, 13, 2, 2, 13, 17, 13, 23, 13, 12, 13, 30, 14, 4, 13, 30, 37, 20, 41, 13, 18, 13, 13, 0, 13, 2, 2, 13, 17, 13, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 194, 5 ], [ 194, 6 ], [ 6, 7 ], [ 194, 8 ], [ 8, 9 ], [ 194, 10 ], [ 10, 11 ], [ 10, 12 ], [ 194, 13 ], [ 13, 14 ], [ 13, 15 ], [ 194, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 19, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 25, 33 ], [ 33, 34 ], [ 25, 35 ], [ 35, 36 ], [ 35, 37 ], [ 35, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 25, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 48, 49 ], [ 48, 50 ], [ 43, 51 ], [ 42, 52 ], [ 25, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 25, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 58, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 70, 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 ], [ 25, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 98, 99 ], [ 98, 100 ], [ 93, 101 ], [ 101, 102 ], [ 102, 103 ], [ 93, 104 ], [ 105, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 111, 112 ], [ 111, 113 ], [ 25, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 17, 119 ], [ 119, 120 ], [ 194, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 126, 128 ], [ 194, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 194, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 142, 146 ], [ 194, 147 ], [ 147, 148 ], [ 147, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 150, 153 ], [ 153, 154 ], [ 154, 155 ], [ 149, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 156, 160 ], [ 149, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 163, 167 ], [ 147, 168 ], [ 168, 169 ], [ 194, 170 ], [ 170, 171 ], [ 170, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 173, 176 ], [ 176, 177 ], [ 177, 178 ], [ 172, 179 ], [ 179, 180 ], [ 179, 181 ], [ 181, 182 ], [ 181, 183 ], [ 172, 184 ], [ 184, 185 ], [ 184, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 186, 190 ], [ 172, 191 ], [ 191, 192 ], [ 0, 193 ], [ 193, 194 ], [ 193, 195 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static int head, tail;\n private final static int MAX = 100000;\n private static char[] Queue = new char[MAX];\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n while (true) {\n char[] S = sc.next().toCharArray();\n initialize();\n for (char s : S)\n enqueue(s);\n if (Character.toString(S[0]).equals(\"-\"))\n break;\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int m = sc.nextInt();\n for (int j = 0; j < m; j++) {\n enqueue(dequeue());\n }\n }\n for (int i = head; i < tail; i++) {\n System.out.print(Queue[i]);\n }\n System.out.println();\n }\n }\n\n private static void initialize() {\n head = tail = 0;\n }\n\n private static boolean isEmpty() {\n return head == tail;\n }\n\n private static boolean isFull() {\n return head == (tail + 1) % MAX;\n }\n\n private static void enqueue(char x) {\n if (isFull()) {\n throw new Error(\"Queue Over Flow\");\n }\n Queue[tail] = x;\n tail = (tail + 1) % MAX;\n }\n\n private static char dequeue() {\n if (isEmpty()) {\n throw new Error(\"Queue Under Flow\");\n }\n char x = Queue[head];\n head = (head + 1) % MAX;\n return x;\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static int head, tail;\n private final static int MAX = 100000;\n private static char[] Queue = new char[MAX];\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n while (true) {\n char[] S = sc.next().toCharArray();\n initialize();\n for (char s : S)\n enqueue(s);\n if (Character.toString(S[0]).equals(\"-\"))\n break;\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int m = sc.nextInt();\n for (int j = 0; j < m; j++) {\n enqueue(dequeue());\n }\n }\n for (int i = head; i < tail; i++) {\n System.out.print(Queue[i]);\n }\n System.out.println();\n }\n }\n\n private static void initialize() {\n head = tail = 0;\n }\n\n private static boolean isEmpty() {\n return head == tail;\n }\n\n private static boolean isFull() {\n return head == (tail + 1) % MAX;\n }\n\n private static void enqueue(char x) {\n if (isFull()) {\n throw new Error(\"Queue Over Flow\");\n }\n Queue[tail] = x;\n tail = (tail + 1) % MAX;\n }\n\n private static char dequeue() {\n if (isEmpty()) {\n throw new Error(\"Queue Under Flow\");\n }\n char x = Queue[head];\n head = (head + 1) % MAX;\n return x;\n }\n\n}", "Main", "public static int head", "head", "tail;", "tail", "private final static int MAX = 100000;", "MAX", "100000", "private static char[] Queue = new char[MAX];", "Queue", "new char[MAX]", "MAX", "public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n while (true) {\n char[] S = sc.next().toCharArray();\n initialize();\n for (char s : S)\n enqueue(s);\n if (Character.toString(S[0]).equals(\"-\"))\n break;\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int m = sc.nextInt();\n for (int j = 0; j < m; j++) {\n enqueue(dequeue());\n }\n }\n for (int i = head; i < tail; i++) {\n System.out.print(Queue[i]);\n }\n System.out.println();\n }\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n while (true) {\n char[] S = sc.next().toCharArray();\n initialize();\n for (char s : S)\n enqueue(s);\n if (Character.toString(S[0]).equals(\"-\"))\n break;\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int m = sc.nextInt();\n for (int j = 0; j < m; j++) {\n enqueue(dequeue());\n }\n }\n for (int i = head; i < tail; i++) {\n System.out.print(Queue[i]);\n }\n System.out.println();\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true) {\n char[] S = sc.next().toCharArray();\n initialize();\n for (char s : S)\n enqueue(s);\n if (Character.toString(S[0]).equals(\"-\"))\n break;\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int m = sc.nextInt();\n for (int j = 0; j < m; j++) {\n enqueue(dequeue());\n }\n }\n for (int i = head; i < tail; i++) {\n System.out.print(Queue[i]);\n }\n System.out.println();\n }", "true", "{\n char[] S = sc.next().toCharArray();\n initialize();\n for (char s : S)\n enqueue(s);\n if (Character.toString(S[0]).equals(\"-\"))\n break;\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int m = sc.nextInt();\n for (int j = 0; j < m; j++) {\n enqueue(dequeue());\n }\n }\n for (int i = head; i < tail; i++) {\n System.out.print(Queue[i]);\n }\n System.out.println();\n }", "char[] S = sc.next().toCharArray();", "S", "sc.next().toCharArray()", "sc.next().toCharArray", "sc.next()", "sc.next", "sc", "initialize()", "initialize", "for (char s : S)\n enqueue(s);", "char s", "S", "enqueue(s);", "enqueue(s)", "enqueue", "s", "if (Character.toString(S[0]).equals(\"-\"))\n break;", "Character.toString(S[0]).equals(\"-\")", "Character.toString(S[0]).equals", "Character.toString(S[0])", "Character.toString", "Character", "S[0]", "S", "0", "\"-\"", "break;", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "for (int i = 0; i < n; i++) {\n int m = sc.nextInt();\n for (int j = 0; j < m; j++) {\n enqueue(dequeue());\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int m = sc.nextInt();\n for (int j = 0; j < m; j++) {\n enqueue(dequeue());\n }\n }", "{\n int m = sc.nextInt();\n for (int j = 0; j < m; j++) {\n enqueue(dequeue());\n }\n }", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "for (int j = 0; j < m; j++) {\n enqueue(dequeue());\n }", "int j = 0;", "int j = 0;", "j", "0", "j < m", "j", "m", "j++", "j++", "j", "{\n enqueue(dequeue());\n }", "{\n enqueue(dequeue());\n }", "enqueue(dequeue())", "enqueue", "dequeue()", "dequeue", "for (int i = head; i < tail; i++) {\n System.out.print(Queue[i]);\n }", "int i = head;", "int i = head;", "i", "head", "i < tail", "i", "tail", "i++", "i++", "i", "{\n System.out.print(Queue[i]);\n }", "{\n System.out.print(Queue[i]);\n }", "System.out.print(Queue[i])", "System.out.print", "System.out", "System", "System.out", "Queue[i]", "Queue", "i", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "private static void initialize() {\n head = tail = 0;\n }", "initialize", "{\n head = tail = 0;\n }", "head = tail = 0", "head", "tail = 0", "tail", "0", "private static boolean isEmpty() {\n return head == tail;\n }", "isEmpty", "{\n return head == tail;\n }", "return head == tail;", "head == tail", "head", "tail", "private static boolean isFull() {\n return head == (tail + 1) % MAX;\n }", "isFull", "{\n return head == (tail + 1) % MAX;\n }", "return head == (tail + 1) % MAX;", "head == (tail + 1) % MAX", "head", "(tail + 1) % MAX", "(tail + 1)", "tail", "1", "MAX", "private static void enqueue(char x) {\n if (isFull()) {\n throw new Error(\"Queue Over Flow\");\n }\n Queue[tail] = x;\n tail = (tail + 1) % MAX;\n }", "enqueue", "{\n if (isFull()) {\n throw new Error(\"Queue Over Flow\");\n }\n Queue[tail] = x;\n tail = (tail + 1) % MAX;\n }", "if (isFull()) {\n throw new Error(\"Queue Over Flow\");\n }", "isFull()", "isFull", "{\n throw new Error(\"Queue Over Flow\");\n }", "throw new Error(\"Queue Over Flow\");", "new Error(\"Queue Over Flow\")", "Queue[tail] = x", "Queue[tail]", "Queue", "tail", "x", "tail = (tail + 1) % MAX", "tail", "(tail + 1) % MAX", "(tail + 1)", "tail", "1", "MAX", "char x", "x", "private static char dequeue() {\n if (isEmpty()) {\n throw new Error(\"Queue Under Flow\");\n }\n char x = Queue[head];\n head = (head + 1) % MAX;\n return x;\n }", "dequeue", "{\n if (isEmpty()) {\n throw new Error(\"Queue Under Flow\");\n }\n char x = Queue[head];\n head = (head + 1) % MAX;\n return x;\n }", "if (isEmpty()) {\n throw new Error(\"Queue Under Flow\");\n }", "isEmpty()", "isEmpty", "{\n throw new Error(\"Queue Under Flow\");\n }", "throw new Error(\"Queue Under Flow\");", "new Error(\"Queue Under Flow\")", "char x = Queue[head];", "x", "Queue[head]", "Queue", "head", "head = (head + 1) % MAX", "head", "(head + 1) % MAX", "(head + 1)", "head", "1", "MAX", "return x;", "x", "public class Main {\n public static int head, tail;\n private final static int MAX = 100000;\n private static char[] Queue = new char[MAX];\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n while (true) {\n char[] S = sc.next().toCharArray();\n initialize();\n for (char s : S)\n enqueue(s);\n if (Character.toString(S[0]).equals(\"-\"))\n break;\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int m = sc.nextInt();\n for (int j = 0; j < m; j++) {\n enqueue(dequeue());\n }\n }\n for (int i = head; i < tail; i++) {\n System.out.print(Queue[i]);\n }\n System.out.println();\n }\n }\n\n private static void initialize() {\n head = tail = 0;\n }\n\n private static boolean isEmpty() {\n return head == tail;\n }\n\n private static boolean isFull() {\n return head == (tail + 1) % MAX;\n }\n\n private static void enqueue(char x) {\n if (isFull()) {\n throw new Error(\"Queue Over Flow\");\n }\n Queue[tail] = x;\n tail = (tail + 1) % MAX;\n }\n\n private static char dequeue() {\n if (isEmpty()) {\n throw new Error(\"Queue Under Flow\");\n }\n char x = Queue[head];\n head = (head + 1) % MAX;\n return x;\n }\n\n}", "public class Main {\n public static int head, tail;\n private final static int MAX = 100000;\n private static char[] Queue = new char[MAX];\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n while (true) {\n char[] S = sc.next().toCharArray();\n initialize();\n for (char s : S)\n enqueue(s);\n if (Character.toString(S[0]).equals(\"-\"))\n break;\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int m = sc.nextInt();\n for (int j = 0; j < m; j++) {\n enqueue(dequeue());\n }\n }\n for (int i = head; i < tail; i++) {\n System.out.print(Queue[i]);\n }\n System.out.println();\n }\n }\n\n private static void initialize() {\n head = tail = 0;\n }\n\n private static boolean isEmpty() {\n return head == tail;\n }\n\n private static boolean isFull() {\n return head == (tail + 1) % MAX;\n }\n\n private static void enqueue(char x) {\n if (isFull()) {\n throw new Error(\"Queue Over Flow\");\n }\n Queue[tail] = x;\n tail = (tail + 1) % MAX;\n }\n\n private static char dequeue() {\n if (isEmpty()) {\n throw new Error(\"Queue Under Flow\");\n }\n char x = Queue[head];\n head = (head + 1) % MAX;\n return x;\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static int head, tail; private final static int MAX = 100000; private static char[] Queue = new char[MAX]; public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (true) { char[] S = sc.next().toCharArray(); initialize(); for (char s : S) enqueue(s); if (Character.toString(S[0]).equals("-")) break; int n = sc.nextInt(); for (int i = 0; i < n; i++) { int m = sc.nextInt(); for (int j = 0; j < m; j++) { enqueue(dequeue()); } } for (int i = head; i < tail; i++) { System.out.print(Queue[i]); } System.out.println(); } } private static void initialize() { head = tail = 0; } private static boolean isEmpty() { return head == tail; } private static boolean isFull() { return head == (tail + 1) % MAX; } private static void enqueue(char x) { if (isFull()) { throw new Error("Queue Over Flow"); } Queue[tail] = x; tail = (tail + 1) % MAX; } private static char dequeue() { if (isEmpty()) { throw new Error("Queue Under Flow"); } char x = Queue[head]; head = (head + 1) % MAX; return x; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 40, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 13, 41, 13, 4, 18, 13, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 0, 13, 4, 18, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 85, 5 ], [ 85, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 20, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 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 ], [ 47, 48 ], [ 48, 49 ], [ 44, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 52, 56 ], [ 44, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 44, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 26, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 26, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 8, 79 ], [ 79, 80 ], [ 80, 81 ], [ 6, 82 ], [ 82, 83 ], [ 0, 84 ], [ 84, 85 ], [ 84, 86 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String a = sc.next();\n int i=0;\n while(!(a.equals(\"-\"))){\n int num = sc.nextInt();\n for(i=0;i<num;i++){\n int n = sc.nextInt();\n String l = a.substring(0,n);\n String r = a.substring(n);\n a = r + l;\n }\n System.out.println(a);\n a = sc.next();\n }\n sc.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String a = sc.next();\n int i=0;\n while(!(a.equals(\"-\"))){\n int num = sc.nextInt();\n for(i=0;i<num;i++){\n int n = sc.nextInt();\n String l = a.substring(0,n);\n String r = a.substring(n);\n a = r + l;\n }\n System.out.println(a);\n a = sc.next();\n }\n sc.close();\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String a = sc.next();\n int i=0;\n while(!(a.equals(\"-\"))){\n int num = sc.nextInt();\n for(i=0;i<num;i++){\n int n = sc.nextInt();\n String l = a.substring(0,n);\n String r = a.substring(n);\n a = r + l;\n }\n System.out.println(a);\n a = sc.next();\n }\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String a = sc.next();\n int i=0;\n while(!(a.equals(\"-\"))){\n int num = sc.nextInt();\n for(i=0;i<num;i++){\n int n = sc.nextInt();\n String l = a.substring(0,n);\n String r = a.substring(n);\n a = r + l;\n }\n System.out.println(a);\n a = sc.next();\n }\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String a = sc.next();", "a", "sc.next()", "sc.next", "sc", "int i=0;", "i", "0", "while(!(a.equals(\"-\"))){\n int num = sc.nextInt();\n for(i=0;i<num;i++){\n int n = sc.nextInt();\n String l = a.substring(0,n);\n String r = a.substring(n);\n a = r + l;\n }\n System.out.println(a);\n a = sc.next();\n }", "!(a.equals(\"-\"))", "(a.equals(\"-\"))", "a.equals", "a", "\"-\"", "{\n int num = sc.nextInt();\n for(i=0;i<num;i++){\n int n = sc.nextInt();\n String l = a.substring(0,n);\n String r = a.substring(n);\n a = r + l;\n }\n System.out.println(a);\n a = sc.next();\n }", "int num = sc.nextInt();", "num", "sc.nextInt()", "sc.nextInt", "sc", "for(i=0;i<num;i++){\n int n = sc.nextInt();\n String l = a.substring(0,n);\n String r = a.substring(n);\n a = r + l;\n }", "i=0;", "i=0", "i", "0", "i<num", "i", "num", "i++", "i++", "i", "{\n int n = sc.nextInt();\n String l = a.substring(0,n);\n String r = a.substring(n);\n a = r + l;\n }", "{\n int n = sc.nextInt();\n String l = a.substring(0,n);\n String r = a.substring(n);\n a = r + l;\n }", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "String l = a.substring(0,n);", "l", "a.substring(0,n)", "a.substring", "a", "0", "n", "String r = a.substring(n);", "r", "a.substring(n)", "a.substring", "a", "n", "a = r + l", "a", "r + l", "r", "l", "System.out.println(a)", "System.out.println", "System.out", "System", "System.out", "a", "a = sc.next()", "a", "sc.next()", "sc.next", "sc", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String a = sc.next();\n int i=0;\n while(!(a.equals(\"-\"))){\n int num = sc.nextInt();\n for(i=0;i<num;i++){\n int n = sc.nextInt();\n String l = a.substring(0,n);\n String r = a.substring(n);\n a = r + l;\n }\n System.out.println(a);\n a = sc.next();\n }\n sc.close();\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String a = sc.next();\n int i=0;\n while(!(a.equals(\"-\"))){\n int num = sc.nextInt();\n for(i=0;i<num;i++){\n int n = sc.nextInt();\n String l = a.substring(0,n);\n String r = a.substring(n);\n a = r + l;\n }\n System.out.println(a);\n a = sc.next();\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 a = sc.next(); int i=0; while(!(a.equals("-"))){ int num = sc.nextInt(); for(i=0;i<num;i++){ int n = sc.nextInt(); String l = a.substring(0,n); String r = a.substring(n); a = r + l; } System.out.println(a); a = sc.next(); } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 0, 13, 4, 18, 13, 42, 40, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 13, 13, 4, 18, 13, 0, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 0, 13, 4, 18, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 8, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 27, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 33, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 39, 47 ], [ 47, 48 ], [ 48, 49 ], [ 39, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 51, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 59, 63 ], [ 51, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 66, 70 ], [ 70, 71 ], [ 71, 72 ], [ 51, 73 ], [ 73, 74 ], [ 73, 75 ], [ 51, 76 ], [ 76, 77 ], [ 76, 78 ], [ 33, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 33, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 6, 90 ], [ 90, 91 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n int m, h;\n String deck, temp1, temp2;\n Scanner sc = new Scanner(System.in);\n deck = sc.next();\n \n while (!deck.equals(\"-\")) {\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n h = sc.nextInt();\n temp1 = deck.substring(0, h);\n temp2 = deck.substring(h, deck.length());\n temp2 += temp1;\n deck = temp2;\n }\n System.out.println(deck);\n deck = sc.next();\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String[] args) {\n int m, h;\n String deck, temp1, temp2;\n Scanner sc = new Scanner(System.in);\n deck = sc.next();\n \n while (!deck.equals(\"-\")) {\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n h = sc.nextInt();\n temp1 = deck.substring(0, h);\n temp2 = deck.substring(h, deck.length());\n temp2 += temp1;\n deck = temp2;\n }\n System.out.println(deck);\n deck = sc.next();\n }\n }\n}", "Main", "public static void main(String[] args) {\n int m, h;\n String deck, temp1, temp2;\n Scanner sc = new Scanner(System.in);\n deck = sc.next();\n \n while (!deck.equals(\"-\")) {\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n h = sc.nextInt();\n temp1 = deck.substring(0, h);\n temp2 = deck.substring(h, deck.length());\n temp2 += temp1;\n deck = temp2;\n }\n System.out.println(deck);\n deck = sc.next();\n }\n }", "main", "{\n int m, h;\n String deck, temp1, temp2;\n Scanner sc = new Scanner(System.in);\n deck = sc.next();\n \n while (!deck.equals(\"-\")) {\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n h = sc.nextInt();\n temp1 = deck.substring(0, h);\n temp2 = deck.substring(h, deck.length());\n temp2 += temp1;\n deck = temp2;\n }\n System.out.println(deck);\n deck = sc.next();\n }\n }", "int m", "m", "h;", "h", "String deck", "deck", "temp1", "temp1", "temp2;", "temp2", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "deck = sc.next()", "deck", "sc.next()", "sc.next", "sc", "while (!deck.equals(\"-\")) {\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n h = sc.nextInt();\n temp1 = deck.substring(0, h);\n temp2 = deck.substring(h, deck.length());\n temp2 += temp1;\n deck = temp2;\n }\n System.out.println(deck);\n deck = sc.next();\n }", "!deck.equals(\"-\")", "deck.equals(\"-\")", "deck.equals", "deck", "\"-\"", "{\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n h = sc.nextInt();\n temp1 = deck.substring(0, h);\n temp2 = deck.substring(h, deck.length());\n temp2 += temp1;\n deck = temp2;\n }\n System.out.println(deck);\n deck = sc.next();\n }", "m = sc.nextInt()", "m", "sc.nextInt()", "sc.nextInt", "sc", "for (int i = 0; i < m; i++) {\n h = sc.nextInt();\n temp1 = deck.substring(0, h);\n temp2 = deck.substring(h, deck.length());\n temp2 += temp1;\n deck = temp2;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n h = sc.nextInt();\n temp1 = deck.substring(0, h);\n temp2 = deck.substring(h, deck.length());\n temp2 += temp1;\n deck = temp2;\n }", "{\n h = sc.nextInt();\n temp1 = deck.substring(0, h);\n temp2 = deck.substring(h, deck.length());\n temp2 += temp1;\n deck = temp2;\n }", "h = sc.nextInt()", "h", "sc.nextInt()", "sc.nextInt", "sc", "temp1 = deck.substring(0, h)", "temp1", "deck.substring(0, h)", "deck.substring", "deck", "0", "h", "temp2 = deck.substring(h, deck.length())", "temp2", "deck.substring(h, deck.length())", "deck.substring", "deck", "h", "deck.length()", "deck.length", "deck", "temp2 += temp1", "temp2", "temp1", "deck = temp2", "deck", "temp2", "System.out.println(deck)", "System.out.println", "System.out", "System", "System.out", "deck", "deck = sc.next()", "deck", "sc.next()", "sc.next", "sc", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { int m, h; String deck, temp1, temp2; Scanner sc = new Scanner(System.in); deck = sc.next(); while (!deck.equals("-")) { m = sc.nextInt(); for (int i = 0; i < m; i++) { h = sc.nextInt(); temp1 = deck.substring(0, h); temp2 = deck.substring(h, deck.length()); temp2 += temp1; deck = temp2; } System.out.println(deck); deck = sc.next(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 13, 2, 4, 18, 13, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 73, 5 ], [ 73, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 22, 27 ], [ 27, 28 ], [ 16, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 16, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 46, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 54, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 59, 63 ], [ 16, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 6, 70 ], [ 70, 71 ], [ 0, 72 ], [ 72, 73 ], [ 72, 74 ] ]
[ "import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n try(Scanner sc = new Scanner(System.in)){\n while(true){\n String a = sc.next();\n if(a.equals(\"-\")){break;}\n int n = sc.nextInt();\n for(int j=0;j<n;j++){\n int h = sc.nextInt();\n a = a.substring(h) + a.substring(0,h);\n }\n System.out.println(a);\n}\n }\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n try(Scanner sc = new Scanner(System.in)){\n while(true){\n String a = sc.next();\n if(a.equals(\"-\")){break;}\n int n = sc.nextInt();\n for(int j=0;j<n;j++){\n int h = sc.nextInt();\n a = a.substring(h) + a.substring(0,h);\n }\n System.out.println(a);\n}\n }\n }\n}", "Main", "public static void main(String[] args){\n try(Scanner sc = new Scanner(System.in)){\n while(true){\n String a = sc.next();\n if(a.equals(\"-\")){break;}\n int n = sc.nextInt();\n for(int j=0;j<n;j++){\n int h = sc.nextInt();\n a = a.substring(h) + a.substring(0,h);\n }\n System.out.println(a);\n}\n }\n }", "main", "{\n try(Scanner sc = new Scanner(System.in)){\n while(true){\n String a = sc.next();\n if(a.equals(\"-\")){break;}\n int n = sc.nextInt();\n for(int j=0;j<n;j++){\n int h = sc.nextInt();\n a = a.substring(h) + a.substring(0,h);\n }\n System.out.println(a);\n}\n }\n }", "try(Scanner sc = new Scanner(System.in)){\n while(true){\n String a = sc.next();\n if(a.equals(\"-\")){break;}\n int n = sc.nextInt();\n for(int j=0;j<n;j++){\n int h = sc.nextInt();\n a = a.substring(h) + a.substring(0,h);\n }\n System.out.println(a);\n}\n }", "{\n while(true){\n String a = sc.next();\n if(a.equals(\"-\")){break;}\n int n = sc.nextInt();\n for(int j=0;j<n;j++){\n int h = sc.nextInt();\n a = a.substring(h) + a.substring(0,h);\n }\n System.out.println(a);\n}\n }", "Scanner sc = new Scanner(System.in)", "Scanner sc = new Scanner(System.in)", "new Scanner(System.in)", "while(true){\n String a = sc.next();\n if(a.equals(\"-\")){break;}\n int n = sc.nextInt();\n for(int j=0;j<n;j++){\n int h = sc.nextInt();\n a = a.substring(h) + a.substring(0,h);\n }\n System.out.println(a);\n}", "true", "{\n String a = sc.next();\n if(a.equals(\"-\")){break;}\n int n = sc.nextInt();\n for(int j=0;j<n;j++){\n int h = sc.nextInt();\n a = a.substring(h) + a.substring(0,h);\n }\n System.out.println(a);\n}", "String a = sc.next();", "a", "sc.next()", "sc.next", "sc", "if(a.equals(\"-\")){break;}", "a.equals(\"-\")", "a.equals", "a", "\"-\"", "{break;}", "break;", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "for(int j=0;j<n;j++){\n int h = sc.nextInt();\n a = a.substring(h) + a.substring(0,h);\n }", "int j=0;", "int j=0;", "j", "0", "j<n", "j", "n", "j++", "j++", "j", "{\n int h = sc.nextInt();\n a = a.substring(h) + a.substring(0,h);\n }", "{\n int h = sc.nextInt();\n a = a.substring(h) + a.substring(0,h);\n }", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "a = a.substring(h) + a.substring(0,h)", "a", "a.substring(h) + a.substring(0,h)", "a.substring(h)", "a.substring", "a", "h", "a.substring(0,h)", "a.substring", "a", "0", "h", "System.out.println(a)", "System.out.println", "System.out", "System", "System.out", "a", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n try(Scanner sc = new Scanner(System.in)){\n while(true){\n String a = sc.next();\n if(a.equals(\"-\")){break;}\n int n = sc.nextInt();\n for(int j=0;j<n;j++){\n int h = sc.nextInt();\n a = a.substring(h) + a.substring(0,h);\n }\n System.out.println(a);\n}\n }\n }\n}", "public class Main{\n public static void main(String[] args){\n try(Scanner sc = new Scanner(System.in)){\n while(true){\n String a = sc.next();\n if(a.equals(\"-\")){break;}\n int n = sc.nextInt();\n for(int j=0;j<n;j++){\n int h = sc.nextInt();\n a = a.substring(h) + a.substring(0,h);\n }\n System.out.println(a);\n}\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ try(Scanner sc = new Scanner(System.in)){ while(true){ String a = sc.next(); if(a.equals("-")){break;} int n = sc.nextInt(); for(int j=0;j<n;j++){ int h = sc.nextInt(); a = a.substring(h) + a.substring(0,h); } System.out.println(a); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 42, 40, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 13, 41, 13, 4, 18, 13, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 0, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 79, 5 ], [ 79, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 19, 22 ], [ 17, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 49, 53 ], [ 41, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 41, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 23, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 23, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 6, 76 ], [ 76, 77 ], [ 0, 78 ], [ 78, 79 ], [ 78, 80 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String s = scanner.next();\n while (!s.equals(\"-\")) {\n int m = scanner.nextInt();\n for (int i = 0; i < m; i++) {\n int h = scanner.nextInt();\n String s1 = s.substring(0, h);\n String s2 = s.substring(h);\n s = s2 + s1;\n }\n System.out.println(s);\n s = scanner.next();\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String s = scanner.next();\n while (!s.equals(\"-\")) {\n int m = scanner.nextInt();\n for (int i = 0; i < m; i++) {\n int h = scanner.nextInt();\n String s1 = s.substring(0, h);\n String s2 = s.substring(h);\n s = s2 + s1;\n }\n System.out.println(s);\n s = scanner.next();\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String s = scanner.next();\n while (!s.equals(\"-\")) {\n int m = scanner.nextInt();\n for (int i = 0; i < m; i++) {\n int h = scanner.nextInt();\n String s1 = s.substring(0, h);\n String s2 = s.substring(h);\n s = s2 + s1;\n }\n System.out.println(s);\n s = scanner.next();\n }\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n String s = scanner.next();\n while (!s.equals(\"-\")) {\n int m = scanner.nextInt();\n for (int i = 0; i < m; i++) {\n int h = scanner.nextInt();\n String s1 = s.substring(0, h);\n String s2 = s.substring(h);\n s = s2 + s1;\n }\n System.out.println(s);\n s = scanner.next();\n }\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String s = scanner.next();", "s", "scanner.next()", "scanner.next", "scanner", "while (!s.equals(\"-\")) {\n int m = scanner.nextInt();\n for (int i = 0; i < m; i++) {\n int h = scanner.nextInt();\n String s1 = s.substring(0, h);\n String s2 = s.substring(h);\n s = s2 + s1;\n }\n System.out.println(s);\n s = scanner.next();\n }", "!s.equals(\"-\")", "s.equals(\"-\")", "s.equals", "s", "\"-\"", "{\n int m = scanner.nextInt();\n for (int i = 0; i < m; i++) {\n int h = scanner.nextInt();\n String s1 = s.substring(0, h);\n String s2 = s.substring(h);\n s = s2 + s1;\n }\n System.out.println(s);\n s = scanner.next();\n }", "int m = scanner.nextInt();", "m", "scanner.nextInt()", "scanner.nextInt", "scanner", "for (int i = 0; i < m; i++) {\n int h = scanner.nextInt();\n String s1 = s.substring(0, h);\n String s2 = s.substring(h);\n s = s2 + s1;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n int h = scanner.nextInt();\n String s1 = s.substring(0, h);\n String s2 = s.substring(h);\n s = s2 + s1;\n }", "{\n int h = scanner.nextInt();\n String s1 = s.substring(0, h);\n String s2 = s.substring(h);\n s = s2 + s1;\n }", "int h = scanner.nextInt();", "h", "scanner.nextInt()", "scanner.nextInt", "scanner", "String s1 = s.substring(0, h);", "s1", "s.substring(0, h)", "s.substring", "s", "0", "h", "String s2 = s.substring(h);", "s2", "s.substring(h)", "s.substring", "s", "h", "s = s2 + s1", "s", "s2 + s1", "s2", "s1", "System.out.println(s)", "System.out.println", "System.out", "System", "System.out", "s", "s = scanner.next()", "s", "scanner.next()", "scanner.next", "scanner", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String s = scanner.next();\n while (!s.equals(\"-\")) {\n int m = scanner.nextInt();\n for (int i = 0; i < m; i++) {\n int h = scanner.nextInt();\n String s1 = s.substring(0, h);\n String s2 = s.substring(h);\n s = s2 + s1;\n }\n System.out.println(s);\n s = scanner.next();\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String s = scanner.next();\n while (!s.equals(\"-\")) {\n int m = scanner.nextInt();\n for (int i = 0; i < m; i++) {\n int h = scanner.nextInt();\n String s1 = s.substring(0, h);\n String s2 = s.substring(h);\n s = s2 + s1;\n }\n System.out.println(s);\n s = scanner.next();\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String s = scanner.next(); while (!s.equals("-")) { int m = scanner.nextInt(); for (int i = 0; i < m; i++) { int h = scanner.nextInt(); String s1 = s.substring(0, h); String s2 = s.substring(h); s = s2 + s1; } System.out.println(s); s = scanner.next(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 5, 13, 30, 4, 18, 13, 30, 42, 2, 4, 18, 0, 13, 4, 18, 13, 17, 17, 30, 41, 13, 13, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 0, 13, 2, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 103, 11 ], [ 103, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 21, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 21, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 37, 44 ], [ 36, 45 ], [ 35, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 56, 57 ], [ 46, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 58, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 76, 77 ], [ 77, 78 ], [ 70, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 82, 86 ], [ 86, 87 ], [ 87, 88 ], [ 81, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 89, 93 ], [ 46, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 12, 100 ], [ 100, 101 ], [ 0, 102 ], [ 102, 103 ], [ 102, 104 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString x = \"\";\n\t\ttry {\n\t\t\twhile ((x = in.readLine()).equals(\"-\") == false) {\n\t\t\t\tString word = x;\n\t\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tint w = Integer.parseInt(in.readLine());\n\t\t\t\t\tword = word.substring(w, (word.length())) + word.substring(0, w);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(word);\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString x = \"\";\n\t\ttry {\n\t\t\twhile ((x = in.readLine()).equals(\"-\") == false) {\n\t\t\t\tString word = x;\n\t\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tint w = Integer.parseInt(in.readLine());\n\t\t\t\t\tword = word.substring(w, (word.length())) + word.substring(0, w);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(word);\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString x = \"\";\n\t\ttry {\n\t\t\twhile ((x = in.readLine()).equals(\"-\") == false) {\n\t\t\t\tString word = x;\n\t\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tint w = Integer.parseInt(in.readLine());\n\t\t\t\t\tword = word.substring(w, (word.length())) + word.substring(0, w);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(word);\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString x = \"\";\n\t\ttry {\n\t\t\twhile ((x = in.readLine()).equals(\"-\") == false) {\n\t\t\t\tString word = x;\n\t\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tint w = Integer.parseInt(in.readLine());\n\t\t\t\t\tword = word.substring(w, (word.length())) + word.substring(0, w);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(word);\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "String x = \"\";", "x", "\"\"", "try {\n\t\t\twhile ((x = in.readLine()).equals(\"-\") == false) {\n\t\t\t\tString word = x;\n\t\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tint w = Integer.parseInt(in.readLine());\n\t\t\t\t\tword = word.substring(w, (word.length())) + word.substring(0, w);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(word);\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "NumberFormatException e", "{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\twhile ((x = in.readLine()).equals(\"-\") == false) {\n\t\t\t\tString word = x;\n\t\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tint w = Integer.parseInt(in.readLine());\n\t\t\t\t\tword = word.substring(w, (word.length())) + word.substring(0, w);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(word);\n\t\t\t}\n\t\t}", "while ((x = in.readLine()).equals(\"-\") == false) {\n\t\t\t\tString word = x;\n\t\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tint w = Integer.parseInt(in.readLine());\n\t\t\t\t\tword = word.substring(w, (word.length())) + word.substring(0, w);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(word);\n\t\t\t}", "(x = in.readLine()).equals(\"-\") == false", "(x = in.readLine()).equals(\"-\")", "(x = in.readLine()).equals", "(x = in.readLine())", "x", "in.readLine()", "in.readLine", "in", "\"-\"", "false", "{\n\t\t\t\tString word = x;\n\t\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tint w = Integer.parseInt(in.readLine());\n\t\t\t\t\tword = word.substring(w, (word.length())) + word.substring(0, w);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(word);\n\t\t\t}", "String word = x;", "word", "x", "int n = Integer.parseInt(in.readLine());", "n", "Integer.parseInt(in.readLine())", "Integer.parseInt", "Integer", "in.readLine()", "in.readLine", "in", "for (int i = 0; i < n; i++) {\n\t\t\t\t\tint w = Integer.parseInt(in.readLine());\n\t\t\t\t\tword = word.substring(w, (word.length())) + word.substring(0, w);\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\t\tint w = Integer.parseInt(in.readLine());\n\t\t\t\t\tword = word.substring(w, (word.length())) + word.substring(0, w);\n\t\t\t\t}", "{\n\t\t\t\t\tint w = Integer.parseInt(in.readLine());\n\t\t\t\t\tword = word.substring(w, (word.length())) + word.substring(0, w);\n\t\t\t\t}", "int w = Integer.parseInt(in.readLine());", "w", "Integer.parseInt(in.readLine())", "Integer.parseInt", "Integer", "in.readLine()", "in.readLine", "in", "word = word.substring(w, (word.length())) + word.substring(0, w)", "word", "word.substring(w, (word.length())) + word.substring(0, w)", "word.substring(w, (word.length()))", "word.substring", "word", "w", "(word.length())", "word.length", "word", "word.substring(0, w)", "word.substring", "word", "0", "w", "System.out.println(word)", "System.out.println", "System.out", "System", "System.out", "word", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString x = \"\";\n\t\ttry {\n\t\t\twhile ((x = in.readLine()).equals(\"-\") == false) {\n\t\t\t\tString word = x;\n\t\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tint w = Integer.parseInt(in.readLine());\n\t\t\t\t\tword = word.substring(w, (word.length())) + word.substring(0, w);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(word);\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tString x = \"\";\n\t\ttry {\n\t\t\twhile ((x = in.readLine()).equals(\"-\") == false) {\n\t\t\t\tString word = x;\n\t\t\t\tint n = Integer.parseInt(in.readLine());\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\t\tint w = Integer.parseInt(in.readLine());\n\t\t\t\t\tword = word.substring(w, (word.length())) + word.substring(0, w);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(word);\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String x = ""; try { while ((x = in.readLine()).equals("-") == false) { String word = x; int n = Integer.parseInt(in.readLine()); for (int i = 0; i < n; i++) { int w = Integer.parseInt(in.readLine()); word = word.substring(w, (word.length())) + word.substring(0, w); } System.out.println(word); } } catch (NumberFormatException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 14, 2, 18, 13, 17, 17, 30, 29, 41, 13, 20, 18, 13, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 18, 13, 2, 2, 13, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 118, 5 ], [ 118, 6 ], [ 6, 7 ], [ 6, 8 ], [ 118, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 14, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 22, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 33, 34 ], [ 33, 35 ], [ 14, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 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 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 53, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 59, 69 ], [ 69, 70 ], [ 70, 71 ], [ 59, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 84, 86 ], [ 53, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 87, 97 ], [ 97, 98 ], [ 98, 99 ], [ 87, 100 ], [ 101, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 106, 107 ], [ 106, 108 ], [ 14, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 9, 115 ], [ 115, 116 ], [ 0, 117 ], [ 117, 118 ], [ 117, 119 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tprivate static Scanner s = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\twhile(true){\n\t\t\tchar[] cards = s.next().toCharArray();\n\n\t\t\tif(cards[0] == '-'){\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tchar[] temp = new char[cards.length];\n\t\t\tint m = s.nextInt();\n\n\t\t\tfor(int i=1; i<=m; i++){\n\t\t\t\tint h = s.nextInt();\n\n\t\t\t\tfor(int j=0; j<cards.length; j++){\n\t\t\t\t\ttemp[j] = cards[(j+h)%cards.length];\n\t\t\t\t}\n\n\t\t\t\tfor(int j=0; j<cards.length; j++){\n\t\t\t\t\tcards[j] = temp[j];\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.println(cards);\n\t\t}\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tprivate static Scanner s = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\twhile(true){\n\t\t\tchar[] cards = s.next().toCharArray();\n\n\t\t\tif(cards[0] == '-'){\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tchar[] temp = new char[cards.length];\n\t\t\tint m = s.nextInt();\n\n\t\t\tfor(int i=1; i<=m; i++){\n\t\t\t\tint h = s.nextInt();\n\n\t\t\t\tfor(int j=0; j<cards.length; j++){\n\t\t\t\t\ttemp[j] = cards[(j+h)%cards.length];\n\t\t\t\t}\n\n\t\t\t\tfor(int j=0; j<cards.length; j++){\n\t\t\t\t\tcards[j] = temp[j];\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.println(cards);\n\t\t}\n\t}\n\n}", "Main", "private static Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "public static void main(String[] args) {\n\n\t\twhile(true){\n\t\t\tchar[] cards = s.next().toCharArray();\n\n\t\t\tif(cards[0] == '-'){\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tchar[] temp = new char[cards.length];\n\t\t\tint m = s.nextInt();\n\n\t\t\tfor(int i=1; i<=m; i++){\n\t\t\t\tint h = s.nextInt();\n\n\t\t\t\tfor(int j=0; j<cards.length; j++){\n\t\t\t\t\ttemp[j] = cards[(j+h)%cards.length];\n\t\t\t\t}\n\n\t\t\t\tfor(int j=0; j<cards.length; j++){\n\t\t\t\t\tcards[j] = temp[j];\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.println(cards);\n\t\t}\n\t}", "main", "{\n\n\t\twhile(true){\n\t\t\tchar[] cards = s.next().toCharArray();\n\n\t\t\tif(cards[0] == '-'){\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tchar[] temp = new char[cards.length];\n\t\t\tint m = s.nextInt();\n\n\t\t\tfor(int i=1; i<=m; i++){\n\t\t\t\tint h = s.nextInt();\n\n\t\t\t\tfor(int j=0; j<cards.length; j++){\n\t\t\t\t\ttemp[j] = cards[(j+h)%cards.length];\n\t\t\t\t}\n\n\t\t\t\tfor(int j=0; j<cards.length; j++){\n\t\t\t\t\tcards[j] = temp[j];\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.println(cards);\n\t\t}\n\t}", "while(true){\n\t\t\tchar[] cards = s.next().toCharArray();\n\n\t\t\tif(cards[0] == '-'){\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tchar[] temp = new char[cards.length];\n\t\t\tint m = s.nextInt();\n\n\t\t\tfor(int i=1; i<=m; i++){\n\t\t\t\tint h = s.nextInt();\n\n\t\t\t\tfor(int j=0; j<cards.length; j++){\n\t\t\t\t\ttemp[j] = cards[(j+h)%cards.length];\n\t\t\t\t}\n\n\t\t\t\tfor(int j=0; j<cards.length; j++){\n\t\t\t\t\tcards[j] = temp[j];\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.println(cards);\n\t\t}", "true", "{\n\t\t\tchar[] cards = s.next().toCharArray();\n\n\t\t\tif(cards[0] == '-'){\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tchar[] temp = new char[cards.length];\n\t\t\tint m = s.nextInt();\n\n\t\t\tfor(int i=1; i<=m; i++){\n\t\t\t\tint h = s.nextInt();\n\n\t\t\t\tfor(int j=0; j<cards.length; j++){\n\t\t\t\t\ttemp[j] = cards[(j+h)%cards.length];\n\t\t\t\t}\n\n\t\t\t\tfor(int j=0; j<cards.length; j++){\n\t\t\t\t\tcards[j] = temp[j];\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.println(cards);\n\t\t}", "char[] cards = s.next().toCharArray();", "cards", "s.next().toCharArray()", "s.next().toCharArray", "s.next()", "s.next", "s", "if(cards[0] == '-'){\n\t\t\t\treturn;\n\t\t\t}", "cards[0] == '-'", "cards[0]", "cards", "0", "'-'", "{\n\t\t\t\treturn;\n\t\t\t}", "return;", "char[] temp = new char[cards.length];", "temp", "new char[cards.length]", "cards.length", "cards", "cards.length", "int m = s.nextInt();", "m", "s.nextInt()", "s.nextInt", "s", "for(int i=1; i<=m; i++){\n\t\t\t\tint h = s.nextInt();\n\n\t\t\t\tfor(int j=0; j<cards.length; j++){\n\t\t\t\t\ttemp[j] = cards[(j+h)%cards.length];\n\t\t\t\t}\n\n\t\t\t\tfor(int j=0; j<cards.length; j++){\n\t\t\t\t\tcards[j] = temp[j];\n\t\t\t\t}\n\n\t\t\t}", "int i=1;", "int i=1;", "i", "1", "i<=m", "i", "m", "i++", "i++", "i", "{\n\t\t\t\tint h = s.nextInt();\n\n\t\t\t\tfor(int j=0; j<cards.length; j++){\n\t\t\t\t\ttemp[j] = cards[(j+h)%cards.length];\n\t\t\t\t}\n\n\t\t\t\tfor(int j=0; j<cards.length; j++){\n\t\t\t\t\tcards[j] = temp[j];\n\t\t\t\t}\n\n\t\t\t}", "{\n\t\t\t\tint h = s.nextInt();\n\n\t\t\t\tfor(int j=0; j<cards.length; j++){\n\t\t\t\t\ttemp[j] = cards[(j+h)%cards.length];\n\t\t\t\t}\n\n\t\t\t\tfor(int j=0; j<cards.length; j++){\n\t\t\t\t\tcards[j] = temp[j];\n\t\t\t\t}\n\n\t\t\t}", "int h = s.nextInt();", "h", "s.nextInt()", "s.nextInt", "s", "for(int j=0; j<cards.length; j++){\n\t\t\t\t\ttemp[j] = cards[(j+h)%cards.length];\n\t\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<cards.length", "j", "cards.length", "cards", "cards.length", "j++", "j++", "j", "{\n\t\t\t\t\ttemp[j] = cards[(j+h)%cards.length];\n\t\t\t\t}", "{\n\t\t\t\t\ttemp[j] = cards[(j+h)%cards.length];\n\t\t\t\t}", "temp[j] = cards[(j+h)%cards.length]", "temp[j]", "temp", "j", "cards[(j+h)%cards.length]", "cards", "(j+h)%cards.length", "(j+h)", "j", "h", "cards.length", "cards", "cards.length", "for(int j=0; j<cards.length; j++){\n\t\t\t\t\tcards[j] = temp[j];\n\t\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<cards.length", "j", "cards.length", "cards", "cards.length", "j++", "j++", "j", "{\n\t\t\t\t\tcards[j] = temp[j];\n\t\t\t\t}", "{\n\t\t\t\t\tcards[j] = temp[j];\n\t\t\t\t}", "cards[j] = temp[j]", "cards[j]", "cards", "j", "temp[j]", "temp", "j", "System.out.println(cards)", "System.out.println", "System.out", "System", "System.out", "cards", "String[] args", "args", "public class Main {\n\n\tprivate static Scanner s = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\twhile(true){\n\t\t\tchar[] cards = s.next().toCharArray();\n\n\t\t\tif(cards[0] == '-'){\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tchar[] temp = new char[cards.length];\n\t\t\tint m = s.nextInt();\n\n\t\t\tfor(int i=1; i<=m; i++){\n\t\t\t\tint h = s.nextInt();\n\n\t\t\t\tfor(int j=0; j<cards.length; j++){\n\t\t\t\t\ttemp[j] = cards[(j+h)%cards.length];\n\t\t\t\t}\n\n\t\t\t\tfor(int j=0; j<cards.length; j++){\n\t\t\t\t\tcards[j] = temp[j];\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.println(cards);\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tprivate static Scanner s = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\twhile(true){\n\t\t\tchar[] cards = s.next().toCharArray();\n\n\t\t\tif(cards[0] == '-'){\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tchar[] temp = new char[cards.length];\n\t\t\tint m = s.nextInt();\n\n\t\t\tfor(int i=1; i<=m; i++){\n\t\t\t\tint h = s.nextInt();\n\n\t\t\t\tfor(int j=0; j<cards.length; j++){\n\t\t\t\t\ttemp[j] = cards[(j+h)%cards.length];\n\t\t\t\t}\n\n\t\t\t\tfor(int j=0; j<cards.length; j++){\n\t\t\t\t\tcards[j] = temp[j];\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.println(cards);\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { private static Scanner s = new Scanner(System.in); public static void main(String[] args) { while(true){ char[] cards = s.next().toCharArray(); if(cards[0] == '-'){ return; } char[] temp = new char[cards.length]; int m = s.nextInt(); for(int i=1; i<=m; i++){ int h = s.nextInt(); for(int j=0; j<cards.length; j++){ temp[j] = cards[(j+h)%cards.length]; } for(int j=0; j<cards.length; j++){ cards[j] = temp[j]; } } System.out.println(cards); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 84, 5 ], [ 84, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 12, 17 ], [ 17, 18 ], [ 18, 19 ], [ 12, 20 ], [ 21, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 21, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 27, 32 ], [ 21, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 21, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 38, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 50, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 58, 62 ], [ 62, 63 ], [ 63, 64 ], [ 50, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 67, 71 ], [ 50, 72 ], [ 72, 73 ], [ 72, 74 ], [ 21, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 6, 81 ], [ 81, 82 ], [ 0, 83 ], [ 83, 84 ], [ 83, 85 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[]argc){\n Scanner sc = new Scanner(System.in);\n for(int k=0;;k++){\n String s1 = sc.next();\n if(s1.equals(\"-\")) break;\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h = sc.nextInt();\n String s2 = s1.substring(h,s1.length());\n s2 += s1.substring(0,h);\n s1 = s2;\n }\n System.out.println(s1);\n }\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[]argc){\n Scanner sc = new Scanner(System.in);\n for(int k=0;;k++){\n String s1 = sc.next();\n if(s1.equals(\"-\")) break;\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h = sc.nextInt();\n String s2 = s1.substring(h,s1.length());\n s2 += s1.substring(0,h);\n s1 = s2;\n }\n System.out.println(s1);\n }\n }\n}", "Main", "public static void main(String[]argc){\n Scanner sc = new Scanner(System.in);\n for(int k=0;;k++){\n String s1 = sc.next();\n if(s1.equals(\"-\")) break;\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h = sc.nextInt();\n String s2 = s1.substring(h,s1.length());\n s2 += s1.substring(0,h);\n s1 = s2;\n }\n System.out.println(s1);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n for(int k=0;;k++){\n String s1 = sc.next();\n if(s1.equals(\"-\")) break;\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h = sc.nextInt();\n String s2 = s1.substring(h,s1.length());\n s2 += s1.substring(0,h);\n s1 = s2;\n }\n System.out.println(s1);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "for(int k=0;;k++){\n String s1 = sc.next();\n if(s1.equals(\"-\")) break;\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h = sc.nextInt();\n String s2 = s1.substring(h,s1.length());\n s2 += s1.substring(0,h);\n s1 = s2;\n }\n System.out.println(s1);\n }", "int k=0;", "int k=0;", "k", "0", "k++", "k++", "k", "{\n String s1 = sc.next();\n if(s1.equals(\"-\")) break;\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h = sc.nextInt();\n String s2 = s1.substring(h,s1.length());\n s2 += s1.substring(0,h);\n s1 = s2;\n }\n System.out.println(s1);\n }", "{\n String s1 = sc.next();\n if(s1.equals(\"-\")) break;\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h = sc.nextInt();\n String s2 = s1.substring(h,s1.length());\n s2 += s1.substring(0,h);\n s1 = s2;\n }\n System.out.println(s1);\n }", "String s1 = sc.next();", "s1", "sc.next()", "sc.next", "sc", "if(s1.equals(\"-\")) break;", "s1.equals(\"-\")", "s1.equals", "s1", "\"-\"", "break;", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0;i<m;i++){\n int h = sc.nextInt();\n String s2 = s1.substring(h,s1.length());\n s2 += s1.substring(0,h);\n s1 = s2;\n }", "int i=0;", "int i=0;", "i", "0", "i<m", "i", "m", "i++", "i++", "i", "{\n int h = sc.nextInt();\n String s2 = s1.substring(h,s1.length());\n s2 += s1.substring(0,h);\n s1 = s2;\n }", "{\n int h = sc.nextInt();\n String s2 = s1.substring(h,s1.length());\n s2 += s1.substring(0,h);\n s1 = s2;\n }", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "String s2 = s1.substring(h,s1.length());", "s2", "s1.substring(h,s1.length())", "s1.substring", "s1", "h", "s1.length()", "s1.length", "s1", "s2 += s1.substring(0,h)", "s2", "s1.substring(0,h)", "s1.substring", "s1", "0", "h", "s1 = s2", "s1", "s2", "System.out.println(s1)", "System.out.println", "System.out", "System", "System.out", "s1", "String[]argc", "argc", "public class Main{\n public static void main(String[]argc){\n Scanner sc = new Scanner(System.in);\n for(int k=0;;k++){\n String s1 = sc.next();\n if(s1.equals(\"-\")) break;\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h = sc.nextInt();\n String s2 = s1.substring(h,s1.length());\n s2 += s1.substring(0,h);\n s1 = s2;\n }\n System.out.println(s1);\n }\n }\n}", "public class Main{\n public static void main(String[]argc){\n Scanner sc = new Scanner(System.in);\n for(int k=0;;k++){\n String s1 = sc.next();\n if(s1.equals(\"-\")) break;\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h = sc.nextInt();\n String s2 = s1.substring(h,s1.length());\n s2 += s1.substring(0,h);\n s1 = s2;\n }\n System.out.println(s1);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[]argc){ Scanner sc = new Scanner(System.in); for(int k=0;;k++){ String s1 = sc.next(); if(s1.equals("-")) break; int m = sc.nextInt(); for(int i=0;i<m;i++){ int h = sc.nextInt(); String s2 = s1.substring(h,s1.length()); s2 += s1.substring(0,h); s1 = s2; } System.out.println(s1); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 42, 40, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 17, 13, 41, 13, 4, 18, 13, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 0, 13, 4, 18, 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 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 29, 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 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 53, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 53, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 67, 71 ], [ 53, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 53, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 29, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 29, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 12, 94 ], [ 94, 95 ] ]
[ "import java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nclass Main {\n\tpublic static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\t//?????£?????????????????????????????°\n while( !(str.equals(\"-\")) ) {\n\t\t\tString repStr = br.readLine();\t//??°??????????????°\n\t\t\tint rep = Integer.parseInt(repStr);\n\t\t\tfor(int i = 0 ; i < rep ; i++ ) {\n\t\t\t\tString posStr = br.readLine();\t//?????£???????????????\n\t\t\t\tint pos = Integer.parseInt(posStr);\n\t\t\t\tString left = str.substring(0, pos);\n\t\t\t\tString right = str.substring(pos);\n\t\t\t\tstr = right + left;\n//\t\t\t\tSystem.out.println(str);\t//????????????(???????????°)\n\t\t\t}\n\t\t\tSystem.out.println(str);\t//???????????????\n\t\t\tstr = br.readLine();\n\t\t}\n\t}\n}", "import java.io.IOException;", "IOException", "java.io", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "class Main {\n\tpublic static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\t//?????£?????????????????????????????°\n while( !(str.equals(\"-\")) ) {\n\t\t\tString repStr = br.readLine();\t//??°??????????????°\n\t\t\tint rep = Integer.parseInt(repStr);\n\t\t\tfor(int i = 0 ; i < rep ; i++ ) {\n\t\t\t\tString posStr = br.readLine();\t//?????£???????????????\n\t\t\t\tint pos = Integer.parseInt(posStr);\n\t\t\t\tString left = str.substring(0, pos);\n\t\t\t\tString right = str.substring(pos);\n\t\t\t\tstr = right + left;\n//\t\t\t\tSystem.out.println(str);\t//????????????(???????????°)\n\t\t\t}\n\t\t\tSystem.out.println(str);\t//???????????????\n\t\t\tstr = br.readLine();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\t//?????£?????????????????????????????°\n while( !(str.equals(\"-\")) ) {\n\t\t\tString repStr = br.readLine();\t//??°??????????????°\n\t\t\tint rep = Integer.parseInt(repStr);\n\t\t\tfor(int i = 0 ; i < rep ; i++ ) {\n\t\t\t\tString posStr = br.readLine();\t//?????£???????????????\n\t\t\t\tint pos = Integer.parseInt(posStr);\n\t\t\t\tString left = str.substring(0, pos);\n\t\t\t\tString right = str.substring(pos);\n\t\t\t\tstr = right + left;\n//\t\t\t\tSystem.out.println(str);\t//????????????(???????????°)\n\t\t\t}\n\t\t\tSystem.out.println(str);\t//???????????????\n\t\t\tstr = br.readLine();\n\t\t}\n\t}", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\t//?????£?????????????????????????????°\n while( !(str.equals(\"-\")) ) {\n\t\t\tString repStr = br.readLine();\t//??°??????????????°\n\t\t\tint rep = Integer.parseInt(repStr);\n\t\t\tfor(int i = 0 ; i < rep ; i++ ) {\n\t\t\t\tString posStr = br.readLine();\t//?????£???????????????\n\t\t\t\tint pos = Integer.parseInt(posStr);\n\t\t\t\tString left = str.substring(0, pos);\n\t\t\t\tString right = str.substring(pos);\n\t\t\t\tstr = right + left;\n//\t\t\t\tSystem.out.println(str);\t//????????????(???????????°)\n\t\t\t}\n\t\t\tSystem.out.println(str);\t//???????????????\n\t\t\tstr = br.readLine();\n\t\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", "while( !(str.equals(\"-\")) ) {\n\t\t\tString repStr = br.readLine();\t//??°??????????????°\n\t\t\tint rep = Integer.parseInt(repStr);\n\t\t\tfor(int i = 0 ; i < rep ; i++ ) {\n\t\t\t\tString posStr = br.readLine();\t//?????£???????????????\n\t\t\t\tint pos = Integer.parseInt(posStr);\n\t\t\t\tString left = str.substring(0, pos);\n\t\t\t\tString right = str.substring(pos);\n\t\t\t\tstr = right + left;\n//\t\t\t\tSystem.out.println(str);\t//????????????(???????????°)\n\t\t\t}\n\t\t\tSystem.out.println(str);\t//???????????????\n\t\t\tstr = br.readLine();\n\t\t}", "!(str.equals(\"-\"))", "(str.equals(\"-\"))", "str.equals", "str", "\"-\"", "{\n\t\t\tString repStr = br.readLine();\t//??°??????????????°\n\t\t\tint rep = Integer.parseInt(repStr);\n\t\t\tfor(int i = 0 ; i < rep ; i++ ) {\n\t\t\t\tString posStr = br.readLine();\t//?????£???????????????\n\t\t\t\tint pos = Integer.parseInt(posStr);\n\t\t\t\tString left = str.substring(0, pos);\n\t\t\t\tString right = str.substring(pos);\n\t\t\t\tstr = right + left;\n//\t\t\t\tSystem.out.println(str);\t//????????????(???????????°)\n\t\t\t}\n\t\t\tSystem.out.println(str);\t//???????????????\n\t\t\tstr = br.readLine();\n\t\t}", "String repStr = br.readLine();", "repStr", "br.readLine()", "br.readLine", "br", "int rep = Integer.parseInt(repStr);", "rep", "Integer.parseInt(repStr)", "Integer.parseInt", "Integer", "repStr", "for(int i = 0 ; i < rep ; i++ ) {\n\t\t\t\tString posStr = br.readLine();\t//?????£???????????????\n\t\t\t\tint pos = Integer.parseInt(posStr);\n\t\t\t\tString left = str.substring(0, pos);\n\t\t\t\tString right = str.substring(pos);\n\t\t\t\tstr = right + left;\n//\t\t\t\tSystem.out.println(str);\t//????????????(???????????°)\n\t\t\t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < rep", "i", "rep", "i++", "i++", "i", "{\n\t\t\t\tString posStr = br.readLine();\t//?????£???????????????\n\t\t\t\tint pos = Integer.parseInt(posStr);\n\t\t\t\tString left = str.substring(0, pos);\n\t\t\t\tString right = str.substring(pos);\n\t\t\t\tstr = right + left;\n//\t\t\t\tSystem.out.println(str);\t//????????????(???????????°)\n\t\t\t}", "{\n\t\t\t\tString posStr = br.readLine();\t//?????£???????????????\n\t\t\t\tint pos = Integer.parseInt(posStr);\n\t\t\t\tString left = str.substring(0, pos);\n\t\t\t\tString right = str.substring(pos);\n\t\t\t\tstr = right + left;\n//\t\t\t\tSystem.out.println(str);\t//????????????(???????????°)\n\t\t\t}", "String posStr = br.readLine();", "posStr", "br.readLine()", "br.readLine", "br", "int pos = Integer.parseInt(posStr);", "pos", "Integer.parseInt(posStr)", "Integer.parseInt", "Integer", "posStr", "String left = str.substring(0, pos);", "left", "str.substring(0, pos)", "str.substring", "str", "0", "pos", "String right = str.substring(pos);", "right", "str.substring(pos)", "str.substring", "str", "pos", "str = right + left", "str", "right + left", "right", "left", "System.out.println(str)", "System.out.println", "System.out", "System", "System.out", "str", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "String[] args", "args" ]
import java.io.IOException; import java.io.BufferedReader; 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(); //?????£?????????????????????????????° while( !(str.equals("-")) ) { String repStr = br.readLine(); //??°??????????????° int rep = Integer.parseInt(repStr); for(int i = 0 ; i < rep ; i++ ) { String posStr = br.readLine(); //?????£??????????????? int pos = Integer.parseInt(posStr); String left = str.substring(0, pos); String right = str.substring(pos); str = right + left; // System.out.println(str); //????????????(???????????°) } System.out.println(str); //??????????????? str = br.readLine(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 13, 41, 13, 4, 18, 13, 13, 0, 13, 2, 13, 13, 4, 18, 13, 2, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 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 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 34, 35 ], [ 23, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 41, 42 ], [ 42, 43 ], [ 23, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 63, 64 ], [ 56, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 67, 71 ], [ 56, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 56, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 23, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 86, 87 ], [ 86, 88 ], [ 14, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 12, 95 ], [ 95, 96 ] ]
[ "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\tStringBuilder sb = new StringBuilder();\n\n\t\twhile(true){\n\n\t\t\tString str = br.readLine();\n\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tint len = Integer.parseInt(br.readLine());\n\t\t\t\tString bottom = str.substring(0, len);\n\t\t\t\tString top = str.substring(len);\n\t\t\t\tstr = top + bottom;\n\t\t\t}\n\n\t\t\tsb.append(str + \"\\n\");\n\n\t\t}\n\n\t\tSystem.out.print(sb);\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\tStringBuilder sb = new StringBuilder();\n\n\t\twhile(true){\n\n\t\t\tString str = br.readLine();\n\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tint len = Integer.parseInt(br.readLine());\n\t\t\t\tString bottom = str.substring(0, len);\n\t\t\t\tString top = str.substring(len);\n\t\t\t\tstr = top + bottom;\n\t\t\t}\n\n\t\t\tsb.append(str + \"\\n\");\n\n\t\t}\n\n\t\tSystem.out.print(sb);\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\tStringBuilder sb = new StringBuilder();\n\n\t\twhile(true){\n\n\t\t\tString str = br.readLine();\n\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tint len = Integer.parseInt(br.readLine());\n\t\t\t\tString bottom = str.substring(0, len);\n\t\t\t\tString top = str.substring(len);\n\t\t\t\tstr = top + bottom;\n\t\t\t}\n\n\t\t\tsb.append(str + \"\\n\");\n\n\t\t}\n\n\t\tSystem.out.print(sb);\n\n\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile(true){\n\n\t\t\tString str = br.readLine();\n\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tint len = Integer.parseInt(br.readLine());\n\t\t\t\tString bottom = str.substring(0, len);\n\t\t\t\tString top = str.substring(len);\n\t\t\t\tstr = top + bottom;\n\t\t\t}\n\n\t\t\tsb.append(str + \"\\n\");\n\n\t\t}\n\n\t\tSystem.out.print(sb);\n\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "while(true){\n\n\t\t\tString str = br.readLine();\n\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tint len = Integer.parseInt(br.readLine());\n\t\t\t\tString bottom = str.substring(0, len);\n\t\t\t\tString top = str.substring(len);\n\t\t\t\tstr = top + bottom;\n\t\t\t}\n\n\t\t\tsb.append(str + \"\\n\");\n\n\t\t}", "true", "{\n\n\t\t\tString str = br.readLine();\n\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tint num = Integer.parseInt(br.readLine());\n\n\t\t\tfor(int i = 0; i < num; i++){\n\t\t\t\tint len = Integer.parseInt(br.readLine());\n\t\t\t\tString bottom = str.substring(0, len);\n\t\t\t\tString top = str.substring(len);\n\t\t\t\tstr = top + bottom;\n\t\t\t}\n\n\t\t\tsb.append(str + \"\\n\");\n\n\t\t}", "String str = br.readLine();", "str", "br.readLine()", "br.readLine", "br", "if(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}", "str.equals(\"-\")", "str.equals", "str", "\"-\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int num = Integer.parseInt(br.readLine());", "num", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "for(int i = 0; i < num; i++){\n\t\t\t\tint len = Integer.parseInt(br.readLine());\n\t\t\t\tString bottom = str.substring(0, len);\n\t\t\t\tString top = str.substring(len);\n\t\t\t\tstr = top + bottom;\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < num", "i", "num", "i++", "i++", "i", "{\n\t\t\t\tint len = Integer.parseInt(br.readLine());\n\t\t\t\tString bottom = str.substring(0, len);\n\t\t\t\tString top = str.substring(len);\n\t\t\t\tstr = top + bottom;\n\t\t\t}", "{\n\t\t\t\tint len = Integer.parseInt(br.readLine());\n\t\t\t\tString bottom = str.substring(0, len);\n\t\t\t\tString top = str.substring(len);\n\t\t\t\tstr = top + bottom;\n\t\t\t}", "int len = Integer.parseInt(br.readLine());", "len", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "String bottom = str.substring(0, len);", "bottom", "str.substring(0, len)", "str.substring", "str", "0", "len", "String top = str.substring(len);", "top", "str.substring(len)", "str.substring", "str", "len", "str = top + bottom", "str", "top + bottom", "top", "bottom", "sb.append(str + \"\\n\")", "sb.append", "sb", "str + \"\\n\"", "str", "\"\\n\"", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "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)); StringBuilder sb = new StringBuilder(); while(true){ String str = br.readLine(); if(str.equals("-")){ break; } int num = Integer.parseInt(br.readLine()); for(int i = 0; i < num; i++){ int len = Integer.parseInt(br.readLine()); String bottom = str.substring(0, len); String top = str.substring(len); str = top + bottom; } sb.append(str + "\n"); } System.out.print(sb); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 0, 13, 4, 18, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 4, 18, 13, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 22, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 22, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 39, 47 ], [ 47, 48 ], [ 48, 49 ], [ 39, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 51, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 59, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 65, 69 ], [ 22, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 6, 76 ], [ 76, 77 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString t;\n\t\tint i, cnt, idx;\n\t\twhile(true){\n\t\t\tt = sc.next();\n\t\t\tif(t.equals(\"-\")) break;\n\t\t\tcnt = sc.nextInt();\n\t\t\tfor(i=0; i<cnt; i++){\n\t\t\t\tidx = sc.nextInt();\n\t\t\t\tt = t.substring(idx).concat(t.substring(0, idx));\n\t\t\t}\n\t\t\tSystem.out.println(t);\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString t;\n\t\tint i, cnt, idx;\n\t\twhile(true){\n\t\t\tt = sc.next();\n\t\t\tif(t.equals(\"-\")) break;\n\t\t\tcnt = sc.nextInt();\n\t\t\tfor(i=0; i<cnt; i++){\n\t\t\t\tidx = sc.nextInt();\n\t\t\t\tt = t.substring(idx).concat(t.substring(0, idx));\n\t\t\t}\n\t\t\tSystem.out.println(t);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString t;\n\t\tint i, cnt, idx;\n\t\twhile(true){\n\t\t\tt = sc.next();\n\t\t\tif(t.equals(\"-\")) break;\n\t\t\tcnt = sc.nextInt();\n\t\t\tfor(i=0; i<cnt; i++){\n\t\t\t\tidx = sc.nextInt();\n\t\t\t\tt = t.substring(idx).concat(t.substring(0, idx));\n\t\t\t}\n\t\t\tSystem.out.println(t);\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString t;\n\t\tint i, cnt, idx;\n\t\twhile(true){\n\t\t\tt = sc.next();\n\t\t\tif(t.equals(\"-\")) break;\n\t\t\tcnt = sc.nextInt();\n\t\t\tfor(i=0; i<cnt; i++){\n\t\t\t\tidx = sc.nextInt();\n\t\t\t\tt = t.substring(idx).concat(t.substring(0, idx));\n\t\t\t}\n\t\t\tSystem.out.println(t);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String t;", "t", "int i", "i", "cnt", "cnt", "idx;", "idx", "while(true){\n\t\t\tt = sc.next();\n\t\t\tif(t.equals(\"-\")) break;\n\t\t\tcnt = sc.nextInt();\n\t\t\tfor(i=0; i<cnt; i++){\n\t\t\t\tidx = sc.nextInt();\n\t\t\t\tt = t.substring(idx).concat(t.substring(0, idx));\n\t\t\t}\n\t\t\tSystem.out.println(t);\n\t\t}", "true", "{\n\t\t\tt = sc.next();\n\t\t\tif(t.equals(\"-\")) break;\n\t\t\tcnt = sc.nextInt();\n\t\t\tfor(i=0; i<cnt; i++){\n\t\t\t\tidx = sc.nextInt();\n\t\t\t\tt = t.substring(idx).concat(t.substring(0, idx));\n\t\t\t}\n\t\t\tSystem.out.println(t);\n\t\t}", "t = sc.next()", "t", "sc.next()", "sc.next", "sc", "if(t.equals(\"-\")) break;", "t.equals(\"-\")", "t.equals", "t", "\"-\"", "break;", "cnt = sc.nextInt()", "cnt", "sc.nextInt()", "sc.nextInt", "sc", "for(i=0; i<cnt; i++){\n\t\t\t\tidx = sc.nextInt();\n\t\t\t\tt = t.substring(idx).concat(t.substring(0, idx));\n\t\t\t}", "i=0;", "i=0", "i", "0", "i<cnt", "i", "cnt", "i++", "i++", "i", "{\n\t\t\t\tidx = sc.nextInt();\n\t\t\t\tt = t.substring(idx).concat(t.substring(0, idx));\n\t\t\t}", "{\n\t\t\t\tidx = sc.nextInt();\n\t\t\t\tt = t.substring(idx).concat(t.substring(0, idx));\n\t\t\t}", "idx = sc.nextInt()", "idx", "sc.nextInt()", "sc.nextInt", "sc", "t = t.substring(idx).concat(t.substring(0, idx))", "t", "t.substring(idx).concat(t.substring(0, idx))", "t.substring(idx).concat", "t.substring(idx)", "t.substring", "t", "idx", "t.substring(0, idx)", "t.substring", "t", "0", "idx", "System.out.println(t)", "System.out.println", "System.out", "System", "System.out", "t", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String t; int i, cnt, idx; while(true){ t = sc.next(); if(t.equals("-")) break; cnt = sc.nextInt(); for(i=0; i<cnt; i++){ idx = sc.nextInt(); t = t.substring(idx).concat(t.substring(0, idx)); } System.out.println(t); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 0, 13, 2, 4, 18, 13, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 83, 11 ], [ 83, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 26, 31 ], [ 31, 32 ], [ 20, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 38, 39 ], [ 39, 40 ], [ 20, 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 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 60, 61 ], [ 53, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 64, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 69, 73 ], [ 20, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 12, 80 ], [ 80, 81 ], [ 0, 82 ], [ 82, 83 ], [ 82, 84 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while(true){\n\n String input = br.readLine();\n\n// ???????????¶\n if(input.equals(\"-\")){\n break;\n }\n// ?????£??????????????°shuffle\n int shuffle = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < shuffle; i++){\n int h = Integer.parseInt(br.readLine());\n input = input.substring(h) + input.substring(0, h);\n }\n System.out.println(input);\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while(true){\n\n String input = br.readLine();\n\n// ???????????¶\n if(input.equals(\"-\")){\n break;\n }\n// ?????£??????????????°shuffle\n int shuffle = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < shuffle; i++){\n int h = Integer.parseInt(br.readLine());\n input = input.substring(h) + input.substring(0, h);\n }\n System.out.println(input);\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while(true){\n\n String input = br.readLine();\n\n// ???????????¶\n if(input.equals(\"-\")){\n break;\n }\n// ?????£??????????????°shuffle\n int shuffle = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < shuffle; i++){\n int h = Integer.parseInt(br.readLine());\n input = input.substring(h) + input.substring(0, h);\n }\n System.out.println(input);\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while(true){\n\n String input = br.readLine();\n\n// ???????????¶\n if(input.equals(\"-\")){\n break;\n }\n// ?????£??????????????°shuffle\n int shuffle = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < shuffle; i++){\n int h = Integer.parseInt(br.readLine());\n input = input.substring(h) + input.substring(0, h);\n }\n System.out.println(input);\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n\n String input = br.readLine();\n\n// ???????????¶\n if(input.equals(\"-\")){\n break;\n }\n// ?????£??????????????°shuffle\n int shuffle = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < shuffle; i++){\n int h = Integer.parseInt(br.readLine());\n input = input.substring(h) + input.substring(0, h);\n }\n System.out.println(input);\n }", "true", "{\n\n String input = br.readLine();\n\n// ???????????¶\n if(input.equals(\"-\")){\n break;\n }\n// ?????£??????????????°shuffle\n int shuffle = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < shuffle; i++){\n int h = Integer.parseInt(br.readLine());\n input = input.substring(h) + input.substring(0, h);\n }\n System.out.println(input);\n }", "String input = br.readLine();", "input", "br.readLine()", "br.readLine", "br", "if(input.equals(\"-\")){\n break;\n }", "input.equals(\"-\")", "input.equals", "input", "\"-\"", "{\n break;\n }", "break;", "int shuffle = Integer.parseInt(br.readLine());", "shuffle", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "for(int i = 0; i < shuffle; i++){\n int h = Integer.parseInt(br.readLine());\n input = input.substring(h) + input.substring(0, h);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < shuffle", "i", "shuffle", "i++", "i++", "i", "{\n int h = Integer.parseInt(br.readLine());\n input = input.substring(h) + input.substring(0, h);\n }", "{\n int h = Integer.parseInt(br.readLine());\n input = input.substring(h) + input.substring(0, h);\n }", "int h = Integer.parseInt(br.readLine());", "h", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "input = input.substring(h) + input.substring(0, h)", "input", "input.substring(h) + input.substring(0, h)", "input.substring(h)", "input.substring", "input", "h", "input.substring(0, h)", "input.substring", "input", "0", "h", "System.out.println(input)", "System.out.println", "System.out", "System", "System.out", "input", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while(true){\n\n String input = br.readLine();\n\n// ???????????¶\n if(input.equals(\"-\")){\n break;\n }\n// ?????£??????????????°shuffle\n int shuffle = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < shuffle; i++){\n int h = Integer.parseInt(br.readLine());\n input = input.substring(h) + input.substring(0, h);\n }\n System.out.println(input);\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while(true){\n\n String input = br.readLine();\n\n// ???????????¶\n if(input.equals(\"-\")){\n break;\n }\n// ?????£??????????????°shuffle\n int shuffle = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < shuffle; i++){\n int h = Integer.parseInt(br.readLine());\n input = input.substring(h) + input.substring(0, h);\n }\n System.out.println(input);\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)); while(true){ String input = br.readLine(); // ???????????¶ if(input.equals("-")){ break; } // ?????£??????????????°shuffle int shuffle = Integer.parseInt(br.readLine()); for(int i = 0; i < shuffle; i++){ int h = Integer.parseInt(br.readLine()); input = input.substring(h) + input.substring(0, h); } System.out.println(input); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 42, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 13, 30, 0, 13, 17, 3, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 22, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 22, 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 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 55, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 63, 67 ], [ 55, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 70, 74 ], [ 55, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 22, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 8, 87 ], [ 87, 88 ], [ 88, 89 ], [ 6, 90 ], [ 90, 91 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n public static void main(String args[]) {\n\tScanner scanner = new Scanner(System.in);\n\tboolean Judge = true;\n \tString end = \"-\";\n \tString work;\n \t\n \t\n \twhile( Judge ){\n\t\tString deck = scanner.next();\t\t//最初の文字\n \t\t//終わる処理と変換\n \t\tif( deck.equals(end) ){\n \t\t\tJudge = false;\n \t\t\tbreak;\n \t\t}\n\t\tint shuffle = scanner.nextInt();\t//シャッフル回数\n \t\t//シャッフル\n \t\tfor( int i = 0; i < shuffle ; i ++ ) {\n\t\t\tint num = scanner.nextInt();\t//シャッフル開始位置\n\t\t\tString substr = deck.substring(0, num);\n\t\t\twork = deck.replaceFirst(substr, \"\");\n\t\t\tdeck = work.concat(substr);\n \t\t}\n \t \t//結果出力\n \t\tSystem.out.println(deck);\n \t}\n \t\n\t\n \t//後処理\n\tscanner.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String args[]) {\n\tScanner scanner = new Scanner(System.in);\n\tboolean Judge = true;\n \tString end = \"-\";\n \tString work;\n \t\n \t\n \twhile( Judge ){\n\t\tString deck = scanner.next();\t\t//最初の文字\n \t\t//終わる処理と変換\n \t\tif( deck.equals(end) ){\n \t\t\tJudge = false;\n \t\t\tbreak;\n \t\t}\n\t\tint shuffle = scanner.nextInt();\t//シャッフル回数\n \t\t//シャッフル\n \t\tfor( int i = 0; i < shuffle ; i ++ ) {\n\t\t\tint num = scanner.nextInt();\t//シャッフル開始位置\n\t\t\tString substr = deck.substring(0, num);\n\t\t\twork = deck.replaceFirst(substr, \"\");\n\t\t\tdeck = work.concat(substr);\n \t\t}\n \t \t//結果出力\n \t\tSystem.out.println(deck);\n \t}\n \t\n\t\n \t//後処理\n\tscanner.close();\n }\n}", "Main", "public static void main(String args[]) {\n\tScanner scanner = new Scanner(System.in);\n\tboolean Judge = true;\n \tString end = \"-\";\n \tString work;\n \t\n \t\n \twhile( Judge ){\n\t\tString deck = scanner.next();\t\t//最初の文字\n \t\t//終わる処理と変換\n \t\tif( deck.equals(end) ){\n \t\t\tJudge = false;\n \t\t\tbreak;\n \t\t}\n\t\tint shuffle = scanner.nextInt();\t//シャッフル回数\n \t\t//シャッフル\n \t\tfor( int i = 0; i < shuffle ; i ++ ) {\n\t\t\tint num = scanner.nextInt();\t//シャッフル開始位置\n\t\t\tString substr = deck.substring(0, num);\n\t\t\twork = deck.replaceFirst(substr, \"\");\n\t\t\tdeck = work.concat(substr);\n \t\t}\n \t \t//結果出力\n \t\tSystem.out.println(deck);\n \t}\n \t\n\t\n \t//後処理\n\tscanner.close();\n }", "main", "{\n\tScanner scanner = new Scanner(System.in);\n\tboolean Judge = true;\n \tString end = \"-\";\n \tString work;\n \t\n \t\n \twhile( Judge ){\n\t\tString deck = scanner.next();\t\t//最初の文字\n \t\t//終わる処理と変換\n \t\tif( deck.equals(end) ){\n \t\t\tJudge = false;\n \t\t\tbreak;\n \t\t}\n\t\tint shuffle = scanner.nextInt();\t//シャッフル回数\n \t\t//シャッフル\n \t\tfor( int i = 0; i < shuffle ; i ++ ) {\n\t\t\tint num = scanner.nextInt();\t//シャッフル開始位置\n\t\t\tString substr = deck.substring(0, num);\n\t\t\twork = deck.replaceFirst(substr, \"\");\n\t\t\tdeck = work.concat(substr);\n \t\t}\n \t \t//結果出力\n \t\tSystem.out.println(deck);\n \t}\n \t\n\t\n \t//後処理\n\tscanner.close();\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "boolean Judge = true;", "Judge", "true", "String end = \"-\";", "end", "\"-\"", "String work;", "work", "while( Judge ){\n\t\tString deck = scanner.next();\t\t//最初の文字\n \t\t//終わる処理と変換\n \t\tif( deck.equals(end) ){\n \t\t\tJudge = false;\n \t\t\tbreak;\n \t\t}\n\t\tint shuffle = scanner.nextInt();\t//シャッフル回数\n \t\t//シャッフル\n \t\tfor( int i = 0; i < shuffle ; i ++ ) {\n\t\t\tint num = scanner.nextInt();\t//シャッフル開始位置\n\t\t\tString substr = deck.substring(0, num);\n\t\t\twork = deck.replaceFirst(substr, \"\");\n\t\t\tdeck = work.concat(substr);\n \t\t}\n \t \t//結果出力\n \t\tSystem.out.println(deck);\n \t}", "Judge", "{\n\t\tString deck = scanner.next();\t\t//最初の文字\n \t\t//終わる処理と変換\n \t\tif( deck.equals(end) ){\n \t\t\tJudge = false;\n \t\t\tbreak;\n \t\t}\n\t\tint shuffle = scanner.nextInt();\t//シャッフル回数\n \t\t//シャッフル\n \t\tfor( int i = 0; i < shuffle ; i ++ ) {\n\t\t\tint num = scanner.nextInt();\t//シャッフル開始位置\n\t\t\tString substr = deck.substring(0, num);\n\t\t\twork = deck.replaceFirst(substr, \"\");\n\t\t\tdeck = work.concat(substr);\n \t\t}\n \t \t//結果出力\n \t\tSystem.out.println(deck);\n \t}", "String deck = scanner.next();", "deck", "scanner.next()", "scanner.next", "scanner", "if( deck.equals(end) ){\n \t\t\tJudge = false;\n \t\t\tbreak;\n \t\t}", "deck.equals(end)", "deck.equals", "deck", "end", "{\n \t\t\tJudge = false;\n \t\t\tbreak;\n \t\t}", "Judge = false", "Judge", "false", "break;", "int shuffle = scanner.nextInt();", "shuffle", "scanner.nextInt()", "scanner.nextInt", "scanner", "for( int i = 0; i < shuffle ; i ++ ) {\n\t\t\tint num = scanner.nextInt();\t//シャッフル開始位置\n\t\t\tString substr = deck.substring(0, num);\n\t\t\twork = deck.replaceFirst(substr, \"\");\n\t\t\tdeck = work.concat(substr);\n \t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < shuffle", "i", "shuffle", "i ++", "i ++", "i", "{\n\t\t\tint num = scanner.nextInt();\t//シャッフル開始位置\n\t\t\tString substr = deck.substring(0, num);\n\t\t\twork = deck.replaceFirst(substr, \"\");\n\t\t\tdeck = work.concat(substr);\n \t\t}", "{\n\t\t\tint num = scanner.nextInt();\t//シャッフル開始位置\n\t\t\tString substr = deck.substring(0, num);\n\t\t\twork = deck.replaceFirst(substr, \"\");\n\t\t\tdeck = work.concat(substr);\n \t\t}", "int num = scanner.nextInt();", "num", "scanner.nextInt()", "scanner.nextInt", "scanner", "String substr = deck.substring(0, num);", "substr", "deck.substring(0, num)", "deck.substring", "deck", "0", "num", "work = deck.replaceFirst(substr, \"\")", "work", "deck.replaceFirst(substr, \"\")", "deck.replaceFirst", "deck", "substr", "\"\"", "deck = work.concat(substr)", "deck", "work.concat(substr)", "work.concat", "work", "substr", "System.out.println(deck)", "System.out.println", "System.out", "System", "System.out", "deck", "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); boolean Judge = true; String end = "-"; String work; while( Judge ){ String deck = scanner.next(); //最初の文字 //終わる処理と変換 if( deck.equals(end) ){ Judge = false; break; } int shuffle = scanner.nextInt(); //シャッフル回数 //シャッフル for( int i = 0; i < shuffle ; i ++ ) { int num = scanner.nextInt(); //シャッフル開始位置 String substr = deck.substring(0, num); work = deck.replaceFirst(substr, ""); deck = work.concat(substr); } //結果出力 System.out.println(deck); } //後処理 scanner.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 42, 2, 13, 13, 30, 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, 4, 18, 13, 41, 13, 4, 18, 13, 17, 13, 41, 13, 4, 18, 13, 13, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 93, 8 ], [ 93, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 24, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 47, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 55, 59 ], [ 47, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 62, 66 ], [ 47, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 24, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 24, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 24, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 83, 88 ], [ 88, 89 ], [ 9, 90 ], [ 90, 91 ], [ 0, 92 ], [ 92, 93 ], [ 92, 94 ] ]
[ "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\twhile(a==a){\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tint c = a.length();\n\t\t\t\tfor(int d=0;d<b;++d){\n\t\t\t\t\tint e = sc.nextInt();\n\t\t\t\t\tString f = a.substring(0,e);\n\t\t\t\t\tString g = a.substring(e,c);\n\t\t\t\t\ta = g+f;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(a);\n\t\t\t\ta = sc.next();\n\t\t\t\tif(a.equals(\"-\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\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\twhile(a==a){\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tint c = a.length();\n\t\t\t\tfor(int d=0;d<b;++d){\n\t\t\t\t\tint e = sc.nextInt();\n\t\t\t\t\tString f = a.substring(0,e);\n\t\t\t\t\tString g = a.substring(e,c);\n\t\t\t\t\ta = g+f;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(a);\n\t\t\t\ta = sc.next();\n\t\t\t\tif(a.equals(\"-\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\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\twhile(a==a){\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tint c = a.length();\n\t\t\t\tfor(int d=0;d<b;++d){\n\t\t\t\t\tint e = sc.nextInt();\n\t\t\t\t\tString f = a.substring(0,e);\n\t\t\t\t\tString g = a.substring(e,c);\n\t\t\t\t\ta = g+f;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(a);\n\t\t\t\ta = sc.next();\n\t\t\t\tif(a.equals(\"-\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\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\twhile(a==a){\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tint c = a.length();\n\t\t\t\tfor(int d=0;d<b;++d){\n\t\t\t\t\tint e = sc.nextInt();\n\t\t\t\t\tString f = a.substring(0,e);\n\t\t\t\t\tString g = a.substring(e,c);\n\t\t\t\t\ta = g+f;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(a);\n\t\t\t\ta = sc.next();\n\t\t\t\tif(a.equals(\"-\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\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", "while(a==a){\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tint c = a.length();\n\t\t\t\tfor(int d=0;d<b;++d){\n\t\t\t\t\tint e = sc.nextInt();\n\t\t\t\t\tString f = a.substring(0,e);\n\t\t\t\t\tString g = a.substring(e,c);\n\t\t\t\t\ta = g+f;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(a);\n\t\t\t\ta = sc.next();\n\t\t\t\tif(a.equals(\"-\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "a==a", "a", "a", "{\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tint c = a.length();\n\t\t\t\tfor(int d=0;d<b;++d){\n\t\t\t\t\tint e = sc.nextInt();\n\t\t\t\t\tString f = a.substring(0,e);\n\t\t\t\t\tString g = a.substring(e,c);\n\t\t\t\t\ta = g+f;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(a);\n\t\t\t\ta = sc.next();\n\t\t\t\tif(a.equals(\"-\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int c = a.length();", "c", "a.length()", "a.length", "a", "for(int d=0;d<b;++d){\n\t\t\t\t\tint e = sc.nextInt();\n\t\t\t\t\tString f = a.substring(0,e);\n\t\t\t\t\tString g = a.substring(e,c);\n\t\t\t\t\ta = g+f;\n\t\t\t\t}", "int d=0;", "int d=0;", "d", "0", "d<b", "d", "b", "++d", "++d", "d", "{\n\t\t\t\t\tint e = sc.nextInt();\n\t\t\t\t\tString f = a.substring(0,e);\n\t\t\t\t\tString g = a.substring(e,c);\n\t\t\t\t\ta = g+f;\n\t\t\t\t}", "{\n\t\t\t\t\tint e = sc.nextInt();\n\t\t\t\t\tString f = a.substring(0,e);\n\t\t\t\t\tString g = a.substring(e,c);\n\t\t\t\t\ta = g+f;\n\t\t\t\t}", "int e = sc.nextInt();", "e", "sc.nextInt()", "sc.nextInt", "sc", "String f = a.substring(0,e);", "f", "a.substring(0,e)", "a.substring", "a", "0", "e", "String g = a.substring(e,c);", "g", "a.substring(e,c)", "a.substring", "a", "e", "c", "a = g+f", "a", "g+f", "g", "f", "System.out.println(a)", "System.out.println", "System.out", "System", "System.out", "a", "a = sc.next()", "a", "sc.next()", "sc.next", "sc", "if(a.equals(\"-\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}", "a.equals(\"-\")", "a.equals", "a", "\"-\"", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "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\twhile(a==a){\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tint c = a.length();\n\t\t\t\tfor(int d=0;d<b;++d){\n\t\t\t\t\tint e = sc.nextInt();\n\t\t\t\t\tString f = a.substring(0,e);\n\t\t\t\t\tString g = a.substring(e,c);\n\t\t\t\t\ta = g+f;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(a);\n\t\t\t\ta = sc.next();\n\t\t\t\tif(a.equals(\"-\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\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\twhile(a==a){\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tint c = a.length();\n\t\t\t\tfor(int d=0;d<b;++d){\n\t\t\t\t\tint e = sc.nextInt();\n\t\t\t\t\tString f = a.substring(0,e);\n\t\t\t\t\tString g = a.substring(e,c);\n\t\t\t\t\ta = g+f;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(a);\n\t\t\t\ta = sc.next();\n\t\t\t\tif(a.equals(\"-\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\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(); while(a==a){ int b = sc.nextInt(); int c = a.length(); for(int d=0;d<b;++d){ int e = sc.nextInt(); String f = a.substring(0,e); String g = a.substring(e,c); a = g+f; } System.out.println(a); a = sc.next(); if(a.equals("-")){ break; } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 41, 13, 20, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 13, 13, 0, 13, 2, 13, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 4, 18, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 123, 8 ], [ 123, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 11, 21 ], [ 21, 22 ], [ 21, 23 ], [ 11, 24 ], [ 24, 25 ], [ 24, 26 ], [ 11, 27 ], [ 27, 28 ], [ 27, 29 ], [ 11, 30 ], [ 30, 31 ], [ 30, 32 ], [ 11, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 35, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 41, 46 ], [ 46, 47 ], [ 35, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 35, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 53, 61 ], [ 61, 62 ], [ 62, 63 ], [ 53, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 65, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 73, 77 ], [ 65, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 65, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 35, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 11, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 93, 103 ], [ 103, 104 ], [ 104, 105 ], [ 93, 106 ], [ 107, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 11, 117 ], [ 117, 118 ], [ 118, 119 ], [ 9, 120 ], [ 120, 121 ], [ 0, 122 ], [ 122, 123 ], [ 122, 124 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint n = 0;\n\t\tint tr = 0;\n\t\tString str = null;\n\t\tString strTmp1 = null;\n\t\tString strTmp2 = null;\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<String> ans = new ArrayList<String>();\n\t\twhile (true) {\n\t\t\tstr = sc.next();\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t n = sc.nextInt();//?????£??????????????°\n\t\t\t for(int i = 0; i < n; ++i){\n\t\t\t\t tr = sc.nextInt();\n\t\t\t\tstrTmp1 = str.substring(0, tr);\n\t\t\t\tstrTmp2 = str.substring(tr);\n\t\t\t\tstr = (strTmp2+strTmp1);\n\t\t\t }\n\t\t\t\tans.add(str);\n\t\t}\n\t\tfor(int i = 0; i < ans.size(); ++i){\n\t\tSystem.out.println(ans.get(i));\n\t\t}\n\t\tsc.close();\n\t}\n\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint n = 0;\n\t\tint tr = 0;\n\t\tString str = null;\n\t\tString strTmp1 = null;\n\t\tString strTmp2 = null;\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<String> ans = new ArrayList<String>();\n\t\twhile (true) {\n\t\t\tstr = sc.next();\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t n = sc.nextInt();//?????£??????????????°\n\t\t\t for(int i = 0; i < n; ++i){\n\t\t\t\t tr = sc.nextInt();\n\t\t\t\tstrTmp1 = str.substring(0, tr);\n\t\t\t\tstrTmp2 = str.substring(tr);\n\t\t\t\tstr = (strTmp2+strTmp1);\n\t\t\t }\n\t\t\t\tans.add(str);\n\t\t}\n\t\tfor(int i = 0; i < ans.size(); ++i){\n\t\tSystem.out.println(ans.get(i));\n\t\t}\n\t\tsc.close();\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tint n = 0;\n\t\tint tr = 0;\n\t\tString str = null;\n\t\tString strTmp1 = null;\n\t\tString strTmp2 = null;\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<String> ans = new ArrayList<String>();\n\t\twhile (true) {\n\t\t\tstr = sc.next();\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t n = sc.nextInt();//?????£??????????????°\n\t\t\t for(int i = 0; i < n; ++i){\n\t\t\t\t tr = sc.nextInt();\n\t\t\t\tstrTmp1 = str.substring(0, tr);\n\t\t\t\tstrTmp2 = str.substring(tr);\n\t\t\t\tstr = (strTmp2+strTmp1);\n\t\t\t }\n\t\t\t\tans.add(str);\n\t\t}\n\t\tfor(int i = 0; i < ans.size(); ++i){\n\t\tSystem.out.println(ans.get(i));\n\t\t}\n\t\tsc.close();\n\t}", "main", "{\n\t\tint n = 0;\n\t\tint tr = 0;\n\t\tString str = null;\n\t\tString strTmp1 = null;\n\t\tString strTmp2 = null;\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<String> ans = new ArrayList<String>();\n\t\twhile (true) {\n\t\t\tstr = sc.next();\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t n = sc.nextInt();//?????£??????????????°\n\t\t\t for(int i = 0; i < n; ++i){\n\t\t\t\t tr = sc.nextInt();\n\t\t\t\tstrTmp1 = str.substring(0, tr);\n\t\t\t\tstrTmp2 = str.substring(tr);\n\t\t\t\tstr = (strTmp2+strTmp1);\n\t\t\t }\n\t\t\t\tans.add(str);\n\t\t}\n\t\tfor(int i = 0; i < ans.size(); ++i){\n\t\tSystem.out.println(ans.get(i));\n\t\t}\n\t\tsc.close();\n\t}", "int n = 0;", "n", "0", "int tr = 0;", "tr", "0", "String str = null;", "str", "null", "String strTmp1 = null;", "strTmp1", "null", "String strTmp2 = null;", "strTmp2", "null", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "ArrayList<String> ans = new ArrayList<String>();", "ans", "new ArrayList<String>()", "while (true) {\n\t\t\tstr = sc.next();\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t n = sc.nextInt();//?????£??????????????°\n\t\t\t for(int i = 0; i < n; ++i){\n\t\t\t\t tr = sc.nextInt();\n\t\t\t\tstrTmp1 = str.substring(0, tr);\n\t\t\t\tstrTmp2 = str.substring(tr);\n\t\t\t\tstr = (strTmp2+strTmp1);\n\t\t\t }\n\t\t\t\tans.add(str);\n\t\t}", "true", "{\n\t\t\tstr = sc.next();\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t n = sc.nextInt();//?????£??????????????°\n\t\t\t for(int i = 0; i < n; ++i){\n\t\t\t\t tr = sc.nextInt();\n\t\t\t\tstrTmp1 = str.substring(0, tr);\n\t\t\t\tstrTmp2 = str.substring(tr);\n\t\t\t\tstr = (strTmp2+strTmp1);\n\t\t\t }\n\t\t\t\tans.add(str);\n\t\t}", "str = sc.next()", "str", "sc.next()", "sc.next", "sc", "if(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}", "str.equals(\"-\")", "str.equals", "str", "\"-\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "for(int i = 0; i < n; ++i){\n\t\t\t\t tr = sc.nextInt();\n\t\t\t\tstrTmp1 = str.substring(0, tr);\n\t\t\t\tstrTmp2 = str.substring(tr);\n\t\t\t\tstr = (strTmp2+strTmp1);\n\t\t\t }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "++i", "++i", "i", "{\n\t\t\t\t tr = sc.nextInt();\n\t\t\t\tstrTmp1 = str.substring(0, tr);\n\t\t\t\tstrTmp2 = str.substring(tr);\n\t\t\t\tstr = (strTmp2+strTmp1);\n\t\t\t }", "{\n\t\t\t\t tr = sc.nextInt();\n\t\t\t\tstrTmp1 = str.substring(0, tr);\n\t\t\t\tstrTmp2 = str.substring(tr);\n\t\t\t\tstr = (strTmp2+strTmp1);\n\t\t\t }", "tr = sc.nextInt()", "tr", "sc.nextInt()", "sc.nextInt", "sc", "strTmp1 = str.substring(0, tr)", "strTmp1", "str.substring(0, tr)", "str.substring", "str", "0", "tr", "strTmp2 = str.substring(tr)", "strTmp2", "str.substring(tr)", "str.substring", "str", "tr", "str = (strTmp2+strTmp1)", "str", "(strTmp2+strTmp1)", "strTmp2", "strTmp1", "ans.add(str)", "ans.add", "ans", "str", "for(int i = 0; i < ans.size(); ++i){\n\t\tSystem.out.println(ans.get(i));\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < ans.size()", "i", "ans.size()", "ans.size", "ans", "++i", "++i", "i", "{\n\t\tSystem.out.println(ans.get(i));\n\t\t}", "{\n\t\tSystem.out.println(ans.get(i));\n\t\t}", "System.out.println(ans.get(i))", "System.out.println", "System.out", "System", "System.out", "ans.get(i)", "ans.get", "ans", "i", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint n = 0;\n\t\tint tr = 0;\n\t\tString str = null;\n\t\tString strTmp1 = null;\n\t\tString strTmp2 = null;\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<String> ans = new ArrayList<String>();\n\t\twhile (true) {\n\t\t\tstr = sc.next();\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t n = sc.nextInt();//?????£??????????????°\n\t\t\t for(int i = 0; i < n; ++i){\n\t\t\t\t tr = sc.nextInt();\n\t\t\t\tstrTmp1 = str.substring(0, tr);\n\t\t\t\tstrTmp2 = str.substring(tr);\n\t\t\t\tstr = (strTmp2+strTmp1);\n\t\t\t }\n\t\t\t\tans.add(str);\n\t\t}\n\t\tfor(int i = 0; i < ans.size(); ++i){\n\t\tSystem.out.println(ans.get(i));\n\t\t}\n\t\tsc.close();\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint n = 0;\n\t\tint tr = 0;\n\t\tString str = null;\n\t\tString strTmp1 = null;\n\t\tString strTmp2 = null;\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<String> ans = new ArrayList<String>();\n\t\twhile (true) {\n\t\t\tstr = sc.next();\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t n = sc.nextInt();//?????£??????????????°\n\t\t\t for(int i = 0; i < n; ++i){\n\t\t\t\t tr = sc.nextInt();\n\t\t\t\tstrTmp1 = str.substring(0, tr);\n\t\t\t\tstrTmp2 = str.substring(tr);\n\t\t\t\tstr = (strTmp2+strTmp1);\n\t\t\t }\n\t\t\t\tans.add(str);\n\t\t}\n\t\tfor(int i = 0; i < ans.size(); ++i){\n\t\tSystem.out.println(ans.get(i));\n\t\t}\n\t\tsc.close();\n\t}\n\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { int n = 0; int tr = 0; String str = null; String strTmp1 = null; String strTmp2 = null; Scanner sc = new Scanner(System.in); ArrayList<String> ans = new ArrayList<String>(); while (true) { str = sc.next(); if(str.equals("-")){ break; } n = sc.nextInt();//?????£??????????????° for(int i = 0; i < n; ++i){ tr = sc.nextInt(); strTmp1 = str.substring(0, tr); strTmp2 = str.substring(tr); str = (strTmp2+strTmp1); } ans.add(str); } for(int i = 0; i < ans.size(); ++i){ System.out.println(ans.get(i)); } sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 20, 42, 40, 4, 18, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 13, 13, 4, 18, 13, 2, 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 ], [ 91, 11 ], [ 91, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 14, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 25, 32 ], [ 23, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 40, 41 ], [ 33, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 47, 48 ], [ 47, 49 ], [ 42, 50 ], [ 50, 51 ], [ 51, 52 ], [ 42, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 60, 61 ], [ 61, 62 ], [ 54, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 65, 69 ], [ 54, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 33, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 79, 81 ], [ 14, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 12, 88 ], [ 88, 89 ], [ 0, 90 ], [ 90, 91 ], [ 90, 92 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.lang.StringBuffer;\n\n/*Question\n/1????????¢????????????????????????????????? n ???????????????????±±????????£?????????????????????\n/1???????????£???????????§??????????????? h ???????????????????????¨???????????????????????????????????£????????????????±±??????????????????????????????\n/?????????????±±?????\\???????????????1?????????????????§?????????????????????\n/abcdeefab\n/?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????\n/????????°???????????? h ??? 4 ??§?????£?????????????????¨????????????4?????? abcd ????????????????????? eefab ???????°??????£?????????????????§??\\???????????????????????????\n/eefababcd\n/???????????£???????????????????????°??????????????????\n/?????????????±±??????????????????(?????????)??¨ h ??????????????????????????????????????????(?????????)???????????????????????°?????????????????????????????????\n*/\n/*Input\n/????????????????????¨????????????\n/?????£??????????????° m\n/h1\n/h2\n/..\n/hm\n/????????????????????¨??????????????? \"-\" ?????¨?????\\?????????????????¨????????????\n*/\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t//??\\????????????\n\t\tString st;\n\t\t//????????¨\n\t\tStringBuffer sb = new StringBuffer();\n\t\t//??\\???????????????\"-\"??§?????????????????????(\"-\"????????????)\n\t\twhile (!(st = sc.readLine()).equals(\"-\")){\n\t\t\t//???????????£????????????????????\\???\n\t\t\tint m = Integer.parseInt(sc.readLine());\n\t\t\t//?????£?????????\n\t\t\tfor(int i = 0;i < m;i++){\n\t\t\t\t//??????????????????????????£????????????????????\\???\n\t\t\t\tint h = Integer.parseInt(sc.readLine());\n\t\t\t\t//??????????°?????????£?????????????????????????????£????????????\n\t\t\t\tst += st.substring(0,h);\n\t\t\t\t//?¬????????????????h?????§?????????????????????\n\t\t\t\tst = st.substring(h);\n\t\t\t}\n\t\t\t//???????????????????????¨?????????????????¨(sb)?????£???\n\t\t\tsb.append(st+\"\\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.StringBuffer;", "StringBuffer", "java.lang", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(System.in));\n\t\t//??\\????????????\n\t\tString st;\n\t\t//????????¨\n\t\tStringBuffer sb = new StringBuffer();\n\t\t//??\\???????????????\"-\"??§?????????????????????(\"-\"????????????)\n\t\twhile (!(st = sc.readLine()).equals(\"-\")){\n\t\t\t//???????????£????????????????????\\???\n\t\t\tint m = Integer.parseInt(sc.readLine());\n\t\t\t//?????£?????????\n\t\t\tfor(int i = 0;i < m;i++){\n\t\t\t\t//??????????????????????????£????????????????????\\???\n\t\t\t\tint h = Integer.parseInt(sc.readLine());\n\t\t\t\t//??????????°?????????£?????????????????????????????£????????????\n\t\t\t\tst += st.substring(0,h);\n\t\t\t\t//?¬????????????????h?????§?????????????????????\n\t\t\t\tst = st.substring(h);\n\t\t\t}\n\t\t\t//???????????????????????¨?????????????????¨(sb)?????£???\n\t\t\tsb.append(st+\"\\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\t//??\\????????????\n\t\tString st;\n\t\t//????????¨\n\t\tStringBuffer sb = new StringBuffer();\n\t\t//??\\???????????????\"-\"??§?????????????????????(\"-\"????????????)\n\t\twhile (!(st = sc.readLine()).equals(\"-\")){\n\t\t\t//???????????£????????????????????\\???\n\t\t\tint m = Integer.parseInt(sc.readLine());\n\t\t\t//?????£?????????\n\t\t\tfor(int i = 0;i < m;i++){\n\t\t\t\t//??????????????????????????£????????????????????\\???\n\t\t\t\tint h = Integer.parseInt(sc.readLine());\n\t\t\t\t//??????????°?????????£?????????????????????????????£????????????\n\t\t\t\tst += st.substring(0,h);\n\t\t\t\t//?¬????????????????h?????§?????????????????????\n\t\t\t\tst = st.substring(h);\n\t\t\t}\n\t\t\t//???????????????????????¨?????????????????¨(sb)?????£???\n\t\t\tsb.append(st+\"\\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\t//??\\????????????\n\t\tString st;\n\t\t//????????¨\n\t\tStringBuffer sb = new StringBuffer();\n\t\t//??\\???????????????\"-\"??§?????????????????????(\"-\"????????????)\n\t\twhile (!(st = sc.readLine()).equals(\"-\")){\n\t\t\t//???????????£????????????????????\\???\n\t\t\tint m = Integer.parseInt(sc.readLine());\n\t\t\t//?????£?????????\n\t\t\tfor(int i = 0;i < m;i++){\n\t\t\t\t//??????????????????????????£????????????????????\\???\n\t\t\t\tint h = Integer.parseInt(sc.readLine());\n\t\t\t\t//??????????°?????????£?????????????????????????????£????????????\n\t\t\t\tst += st.substring(0,h);\n\t\t\t\t//?¬????????????????h?????§?????????????????????\n\t\t\t\tst = st.substring(h);\n\t\t\t}\n\t\t\t//???????????????????????¨?????????????????¨(sb)?????£???\n\t\t\tsb.append(st+\"\\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))", "String st;", "st", "StringBuffer sb = new StringBuffer();", "sb", "new StringBuffer()", "while (!(st = sc.readLine()).equals(\"-\")){\n\t\t\t//???????????£????????????????????\\???\n\t\t\tint m = Integer.parseInt(sc.readLine());\n\t\t\t//?????£?????????\n\t\t\tfor(int i = 0;i < m;i++){\n\t\t\t\t//??????????????????????????£????????????????????\\???\n\t\t\t\tint h = Integer.parseInt(sc.readLine());\n\t\t\t\t//??????????°?????????£?????????????????????????????£????????????\n\t\t\t\tst += st.substring(0,h);\n\t\t\t\t//?¬????????????????h?????§?????????????????????\n\t\t\t\tst = st.substring(h);\n\t\t\t}\n\t\t\t//???????????????????????¨?????????????????¨(sb)?????£???\n\t\t\tsb.append(st+\"\\n\");\n\t\t}", "!(st = sc.readLine()).equals(\"-\")", "(st = sc.readLine()).equals(\"-\")", "(st = sc.readLine()).equals", "(st = sc.readLine())", "st", "sc.readLine()", "sc.readLine", "sc", "\"-\"", "{\n\t\t\t//???????????£????????????????????\\???\n\t\t\tint m = Integer.parseInt(sc.readLine());\n\t\t\t//?????£?????????\n\t\t\tfor(int i = 0;i < m;i++){\n\t\t\t\t//??????????????????????????£????????????????????\\???\n\t\t\t\tint h = Integer.parseInt(sc.readLine());\n\t\t\t\t//??????????°?????????£?????????????????????????????£????????????\n\t\t\t\tst += st.substring(0,h);\n\t\t\t\t//?¬????????????????h?????§?????????????????????\n\t\t\t\tst = st.substring(h);\n\t\t\t}\n\t\t\t//???????????????????????¨?????????????????¨(sb)?????£???\n\t\t\tsb.append(st+\"\\n\");\n\t\t}", "int m = Integer.parseInt(sc.readLine());", "m", "Integer.parseInt(sc.readLine())", "Integer.parseInt", "Integer", "sc.readLine()", "sc.readLine", "sc", "for(int i = 0;i < m;i++){\n\t\t\t\t//??????????????????????????£????????????????????\\???\n\t\t\t\tint h = Integer.parseInt(sc.readLine());\n\t\t\t\t//??????????°?????????£?????????????????????????????£????????????\n\t\t\t\tst += st.substring(0,h);\n\t\t\t\t//?¬????????????????h?????§?????????????????????\n\t\t\t\tst = st.substring(h);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n\t\t\t\t//??????????????????????????£????????????????????\\???\n\t\t\t\tint h = Integer.parseInt(sc.readLine());\n\t\t\t\t//??????????°?????????£?????????????????????????????£????????????\n\t\t\t\tst += st.substring(0,h);\n\t\t\t\t//?¬????????????????h?????§?????????????????????\n\t\t\t\tst = st.substring(h);\n\t\t\t}", "{\n\t\t\t\t//??????????????????????????£????????????????????\\???\n\t\t\t\tint h = Integer.parseInt(sc.readLine());\n\t\t\t\t//??????????°?????????£?????????????????????????????£????????????\n\t\t\t\tst += st.substring(0,h);\n\t\t\t\t//?¬????????????????h?????§?????????????????????\n\t\t\t\tst = st.substring(h);\n\t\t\t}", "int h = Integer.parseInt(sc.readLine());", "h", "Integer.parseInt(sc.readLine())", "Integer.parseInt", "Integer", "sc.readLine()", "sc.readLine", "sc", "st += st.substring(0,h)", "st", "st.substring(0,h)", "st.substring", "st", "0", "h", "st = st.substring(h)", "st", "st.substring(h)", "st.substring", "st", "h", "sb.append(st+\"\\n\")", "sb.append", "sb", "st+\"\\n\"", "st", "\"\\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\t//??\\????????????\n\t\tString st;\n\t\t//????????¨\n\t\tStringBuffer sb = new StringBuffer();\n\t\t//??\\???????????????\"-\"??§?????????????????????(\"-\"????????????)\n\t\twhile (!(st = sc.readLine()).equals(\"-\")){\n\t\t\t//???????????£????????????????????\\???\n\t\t\tint m = Integer.parseInt(sc.readLine());\n\t\t\t//?????£?????????\n\t\t\tfor(int i = 0;i < m;i++){\n\t\t\t\t//??????????????????????????£????????????????????\\???\n\t\t\t\tint h = Integer.parseInt(sc.readLine());\n\t\t\t\t//??????????°?????????£?????????????????????????????£????????????\n\t\t\t\tst += st.substring(0,h);\n\t\t\t\t//?¬????????????????h?????§?????????????????????\n\t\t\t\tst = st.substring(h);\n\t\t\t}\n\t\t\t//???????????????????????¨?????????????????¨(sb)?????£???\n\t\t\tsb.append(st+\"\\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\t//??\\????????????\n\t\tString st;\n\t\t//????????¨\n\t\tStringBuffer sb = new StringBuffer();\n\t\t//??\\???????????????\"-\"??§?????????????????????(\"-\"????????????)\n\t\twhile (!(st = sc.readLine()).equals(\"-\")){\n\t\t\t//???????????£????????????????????\\???\n\t\t\tint m = Integer.parseInt(sc.readLine());\n\t\t\t//?????£?????????\n\t\t\tfor(int i = 0;i < m;i++){\n\t\t\t\t//??????????????????????????£????????????????????\\???\n\t\t\t\tint h = Integer.parseInt(sc.readLine());\n\t\t\t\t//??????????°?????????£?????????????????????????????£????????????\n\t\t\t\tst += st.substring(0,h);\n\t\t\t\t//?¬????????????????h?????§?????????????????????\n\t\t\t\tst = st.substring(h);\n\t\t\t}\n\t\t\t//???????????????????????¨?????????????????¨(sb)?????£???\n\t\t\tsb.append(st+\"\\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.StringBuffer; /*Question /1????????¢????????????????????????????????? n ???????????????????±±????????£????????????????????? /1???????????£???????????§??????????????? h ???????????????????????¨???????????????????????????????????£????????????????±±?????????????????????????????? /?????????????±±?????\???????????????1?????????????????§????????????????????? /abcdeefab /????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? /????????°???????????? h ??? 4 ??§?????£?????????????????¨????????????4?????? abcd ????????????????????? eefab ???????°??????£?????????????????§??\??????????????????????????? /eefababcd /???????????£???????????????????????°?????????????????? /?????????????±±??????????????????(?????????)??¨ h ??????????????????????????????????????????(?????????)???????????????????????°????????????????????????????????? */ /*Input /????????????????????¨???????????? /?????£??????????????° m /h1 /h2 /.. /hm /????????????????????¨??????????????? "-" ?????¨?????\?????????????????¨???????????? */ public class Main { public static void main(String[] args) throws Exception{ BufferedReader sc = new BufferedReader(new InputStreamReader(System.in)); //??\???????????? String st; //????????¨ StringBuffer sb = new StringBuffer(); //??\???????????????"-"??§?????????????????????("-"????????????) while (!(st = sc.readLine()).equals("-")){ //???????????£????????????????????\??? int m = Integer.parseInt(sc.readLine()); //?????£????????? for(int i = 0;i < m;i++){ //??????????????????????????£????????????????????\??? int h = Integer.parseInt(sc.readLine()); //??????????°?????????£?????????????????????????????£???????????? st += st.substring(0,h); //?¬????????????????h?????§????????????????????? st = st.substring(h); } //???????????????????????¨?????????????????¨(sb)?????£??? sb.append(st+"\n"); } System.out.print(sb); } }
[ 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, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 13, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 98, 8 ], [ 98, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 19, 24 ], [ 15, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 39, 40 ], [ 28, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 28, 46 ], [ 46, 47 ], [ 28, 48 ], [ 48, 49 ], [ 28, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 50, 58 ], [ 58, 59 ], [ 59, 60 ], [ 50, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 62, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 70, 74 ], [ 62, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 62, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 28, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 25, 92 ], [ 92, 93 ], [ 93, 94 ], [ 9, 95 ], [ 95, 96 ], [ 0, 97 ], [ 97, 98 ], [ 97, 99 ] ]
[ "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(true) {\n\t\t\t\tString str=scan.next();\n\t\t\t\tif(str.equals(\"-\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tint x=scan.nextInt();\n\t\t\t\tString str1;\n\t\t\t\tString str2;\n\t\t\t\tfor(int i=0;i<x;i++) {\n\t\t\t\t\tint a=scan.nextInt();\n\t\t\t\t\tstr1=str.substring(0,a);\n\t\t\t\t\tstr2=str.substring(a);\n\t\t\t\t\tstr=str2+str1;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\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(true) {\n\t\t\t\tString str=scan.next();\n\t\t\t\tif(str.equals(\"-\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tint x=scan.nextInt();\n\t\t\t\tString str1;\n\t\t\t\tString str2;\n\t\t\t\tfor(int i=0;i<x;i++) {\n\t\t\t\t\tint a=scan.nextInt();\n\t\t\t\t\tstr1=str.substring(0,a);\n\t\t\t\t\tstr2=str.substring(a);\n\t\t\t\t\tstr=str2+str1;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\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(true) {\n\t\t\t\tString str=scan.next();\n\t\t\t\tif(str.equals(\"-\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tint x=scan.nextInt();\n\t\t\t\tString str1;\n\t\t\t\tString str2;\n\t\t\t\tfor(int i=0;i<x;i++) {\n\t\t\t\t\tint a=scan.nextInt();\n\t\t\t\t\tstr1=str.substring(0,a);\n\t\t\t\t\tstr2=str.substring(a);\n\t\t\t\t\tstr=str2+str1;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\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(true) {\n\t\t\t\tString str=scan.next();\n\t\t\t\tif(str.equals(\"-\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tint x=scan.nextInt();\n\t\t\t\tString str1;\n\t\t\t\tString str2;\n\t\t\t\tfor(int i=0;i<x;i++) {\n\t\t\t\t\tint a=scan.nextInt();\n\t\t\t\t\tstr1=str.substring(0,a);\n\t\t\t\t\tstr2=str.substring(a);\n\t\t\t\t\tstr=str2+str1;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\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(true) {\n\t\t\t\tString str=scan.next();\n\t\t\t\tif(str.equals(\"-\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tint x=scan.nextInt();\n\t\t\t\tString str1;\n\t\t\t\tString str2;\n\t\t\t\tfor(int i=0;i<x;i++) {\n\t\t\t\t\tint a=scan.nextInt();\n\t\t\t\t\tstr1=str.substring(0,a);\n\t\t\t\t\tstr2=str.substring(a);\n\t\t\t\t\tstr=str2+str1;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\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(true) {\n\t\t\t\tString str=scan.next();\n\t\t\t\tif(str.equals(\"-\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tint x=scan.nextInt();\n\t\t\t\tString str1;\n\t\t\t\tString str2;\n\t\t\t\tfor(int i=0;i<x;i++) {\n\t\t\t\t\tint a=scan.nextInt();\n\t\t\t\t\tstr1=str.substring(0,a);\n\t\t\t\t\tstr2=str.substring(a);\n\t\t\t\t\tstr=str2+str1;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t\tscan.close();\n\t\t}", "while(true) {\n\t\t\t\tString str=scan.next();\n\t\t\t\tif(str.equals(\"-\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tint x=scan.nextInt();\n\t\t\t\tString str1;\n\t\t\t\tString str2;\n\t\t\t\tfor(int i=0;i<x;i++) {\n\t\t\t\t\tint a=scan.nextInt();\n\t\t\t\t\tstr1=str.substring(0,a);\n\t\t\t\t\tstr2=str.substring(a);\n\t\t\t\t\tstr=str2+str1;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}", "true", "{\n\t\t\t\tString str=scan.next();\n\t\t\t\tif(str.equals(\"-\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tint x=scan.nextInt();\n\t\t\t\tString str1;\n\t\t\t\tString str2;\n\t\t\t\tfor(int i=0;i<x;i++) {\n\t\t\t\t\tint a=scan.nextInt();\n\t\t\t\t\tstr1=str.substring(0,a);\n\t\t\t\t\tstr2=str.substring(a);\n\t\t\t\t\tstr=str2+str1;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}", "String str=scan.next();", "str", "scan.next()", "scan.next", "scan", "if(str.equals(\"-\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}", "str.equals(\"-\")", "str.equals", "str", "\"-\"", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "int x=scan.nextInt();", "x", "scan.nextInt()", "scan.nextInt", "scan", "String str1;", "str1", "String str2;", "str2", "for(int i=0;i<x;i++) {\n\t\t\t\t\tint a=scan.nextInt();\n\t\t\t\t\tstr1=str.substring(0,a);\n\t\t\t\t\tstr2=str.substring(a);\n\t\t\t\t\tstr=str2+str1;\n\t\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<x", "i", "x", "i++", "i++", "i", "{\n\t\t\t\t\tint a=scan.nextInt();\n\t\t\t\t\tstr1=str.substring(0,a);\n\t\t\t\t\tstr2=str.substring(a);\n\t\t\t\t\tstr=str2+str1;\n\t\t\t\t}", "{\n\t\t\t\t\tint a=scan.nextInt();\n\t\t\t\t\tstr1=str.substring(0,a);\n\t\t\t\t\tstr2=str.substring(a);\n\t\t\t\t\tstr=str2+str1;\n\t\t\t\t}", "int a=scan.nextInt();", "a", "scan.nextInt()", "scan.nextInt", "scan", "str1=str.substring(0,a)", "str1", "str.substring(0,a)", "str.substring", "str", "0", "a", "str2=str.substring(a)", "str2", "str.substring(a)", "str.substring", "str", "a", "str=str2+str1", "str", "str2+str1", "str2", "str1", "System.out.println(str)", "System.out.println", "System.out", "System", "System.out", "str", "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(true) {\n\t\t\t\tString str=scan.next();\n\t\t\t\tif(str.equals(\"-\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tint x=scan.nextInt();\n\t\t\t\tString str1;\n\t\t\t\tString str2;\n\t\t\t\tfor(int i=0;i<x;i++) {\n\t\t\t\t\tint a=scan.nextInt();\n\t\t\t\t\tstr1=str.substring(0,a);\n\t\t\t\t\tstr2=str.substring(a);\n\t\t\t\t\tstr=str2+str1;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\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(true) {\n\t\t\t\tString str=scan.next();\n\t\t\t\tif(str.equals(\"-\")){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tint x=scan.nextInt();\n\t\t\t\tString str1;\n\t\t\t\tString str2;\n\t\t\t\tfor(int i=0;i<x;i++) {\n\t\t\t\t\tint a=scan.nextInt();\n\t\t\t\t\tstr1=str.substring(0,a);\n\t\t\t\t\tstr2=str.substring(a);\n\t\t\t\t\tstr=str2+str1;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\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(true) { String str=scan.next(); if(str.equals("-")){ break; } int x=scan.nextInt(); String str1; String str2; for(int i=0;i<x;i++) { int a=scan.nextInt(); str1=str.substring(0,a); str2=str.substring(a); str=str2+str1; } System.out.println(str); } scan.close(); }catch(InputMismatchException e){ System.out.println("入力しなおしてください"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 42, 40, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 0, 13, 2, 13, 13, 0, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 13, 0, 13, 4, 18, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 25, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 31, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 37, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 49, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 49, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 49, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 49, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 73, 77 ], [ 31, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 31, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 6, 89 ], [ 89, 90 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str,tmp;\n int j,strnum;\n str = sc.next();\n while(!str.equals(\"-\")){\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h = sc.nextInt();\n tmp = str.substring(h);\n strnum = str.length();\n str = tmp + str;\n str = str.substring(0,strnum);\n }\n System.out.println(str);\n str = sc.next();\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 str,tmp;\n int j,strnum;\n str = sc.next();\n while(!str.equals(\"-\")){\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h = sc.nextInt();\n tmp = str.substring(h);\n strnum = str.length();\n str = tmp + str;\n str = str.substring(0,strnum);\n }\n System.out.println(str);\n str = sc.next();\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str,tmp;\n int j,strnum;\n str = sc.next();\n while(!str.equals(\"-\")){\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h = sc.nextInt();\n tmp = str.substring(h);\n strnum = str.length();\n str = tmp + str;\n str = str.substring(0,strnum);\n }\n System.out.println(str);\n str = sc.next();\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String str,tmp;\n int j,strnum;\n str = sc.next();\n while(!str.equals(\"-\")){\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h = sc.nextInt();\n tmp = str.substring(h);\n strnum = str.length();\n str = tmp + str;\n str = str.substring(0,strnum);\n }\n System.out.println(str);\n str = sc.next();\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String str", "str", "tmp;", "tmp", "int j", "j", "strnum;", "strnum", "str = sc.next()", "str", "sc.next()", "sc.next", "sc", "while(!str.equals(\"-\")){\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h = sc.nextInt();\n tmp = str.substring(h);\n strnum = str.length();\n str = tmp + str;\n str = str.substring(0,strnum);\n }\n System.out.println(str);\n str = sc.next();\n }", "!str.equals(\"-\")", "str.equals(\"-\")", "str.equals", "str", "\"-\"", "{\n int m = sc.nextInt();\n for(int i=0;i<m;i++){\n int h = sc.nextInt();\n tmp = str.substring(h);\n strnum = str.length();\n str = tmp + str;\n str = str.substring(0,strnum);\n }\n System.out.println(str);\n str = sc.next();\n }", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0;i<m;i++){\n int h = sc.nextInt();\n tmp = str.substring(h);\n strnum = str.length();\n str = tmp + str;\n str = str.substring(0,strnum);\n }", "int i=0;", "int i=0;", "i", "0", "i<m", "i", "m", "i++", "i++", "i", "{\n int h = sc.nextInt();\n tmp = str.substring(h);\n strnum = str.length();\n str = tmp + str;\n str = str.substring(0,strnum);\n }", "{\n int h = sc.nextInt();\n tmp = str.substring(h);\n strnum = str.length();\n str = tmp + str;\n str = str.substring(0,strnum);\n }", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "tmp = str.substring(h)", "tmp", "str.substring(h)", "str.substring", "str", "h", "strnum = str.length()", "strnum", "str.length()", "str.length", "str", "str = tmp + str", "str", "tmp + str", "tmp", "str", "str = str.substring(0,strnum)", "str", "str.substring(0,strnum)", "str.substring", "str", "0", "strnum", "System.out.println(str)", "System.out.println", "System.out", "System", "System.out", "str", "str = sc.next()", "str", "sc.next()", "sc.next", "sc", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str,tmp; int j,strnum; str = sc.next(); while(!str.equals("-")){ int m = sc.nextInt(); for(int i=0;i<m;i++){ int h = sc.nextInt(); tmp = str.substring(h); strnum = str.length(); str = tmp + str; str = str.substring(0,strnum); } System.out.println(str); str = sc.next(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 30, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 13, 13, 17, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 85, 5 ], [ 85, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 28, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 35, 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 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 53, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 61, 65 ], [ 53, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 68, 72 ], [ 53, 73 ], [ 73, 74 ], [ 73, 75 ], [ 35, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 6, 82 ], [ 82, 83 ], [ 0, 84 ], [ 84, 85 ], [ 84, 86 ] ]
[ "import java.util.*;\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tString str,move;\n\t\tint shuffle,cards;\n\t\twhile(true){\n\t\t\tstr=sc.next();\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tshuffle=sc.nextInt();\n\t\t\t\tfor(int i=0;i<shuffle;i++){\n\t\t\t\t\tcards=sc.nextInt();\n\t\t\t\t\tmove=str.substring(0,cards);\n\t\t\t\t\tstr=str.replaceFirst(move,\"\");\n\t\t\t\t\tstr+=move;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\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 sc=new Scanner(System.in);\n\t\tString str,move;\n\t\tint shuffle,cards;\n\t\twhile(true){\n\t\t\tstr=sc.next();\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tshuffle=sc.nextInt();\n\t\t\t\tfor(int i=0;i<shuffle;i++){\n\t\t\t\t\tcards=sc.nextInt();\n\t\t\t\t\tmove=str.substring(0,cards);\n\t\t\t\t\tstr=str.replaceFirst(move,\"\");\n\t\t\t\t\tstr+=move;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tString str,move;\n\t\tint shuffle,cards;\n\t\twhile(true){\n\t\t\tstr=sc.next();\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tshuffle=sc.nextInt();\n\t\t\t\tfor(int i=0;i<shuffle;i++){\n\t\t\t\t\tcards=sc.nextInt();\n\t\t\t\t\tmove=str.substring(0,cards);\n\t\t\t\t\tstr=str.replaceFirst(move,\"\");\n\t\t\t\t\tstr+=move;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tScanner sc=new Scanner(System.in);\n\t\tString str,move;\n\t\tint shuffle,cards;\n\t\twhile(true){\n\t\t\tstr=sc.next();\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tshuffle=sc.nextInt();\n\t\t\t\tfor(int i=0;i<shuffle;i++){\n\t\t\t\t\tcards=sc.nextInt();\n\t\t\t\t\tmove=str.substring(0,cards);\n\t\t\t\t\tstr=str.replaceFirst(move,\"\");\n\t\t\t\t\tstr+=move;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t}\n\t}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "String str", "str", "move;", "move", "int shuffle", "shuffle", "cards;", "cards", "while(true){\n\t\t\tstr=sc.next();\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tshuffle=sc.nextInt();\n\t\t\t\tfor(int i=0;i<shuffle;i++){\n\t\t\t\t\tcards=sc.nextInt();\n\t\t\t\t\tmove=str.substring(0,cards);\n\t\t\t\t\tstr=str.replaceFirst(move,\"\");\n\t\t\t\t\tstr+=move;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tstr=sc.next();\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tshuffle=sc.nextInt();\n\t\t\t\tfor(int i=0;i<shuffle;i++){\n\t\t\t\t\tcards=sc.nextInt();\n\t\t\t\t\tmove=str.substring(0,cards);\n\t\t\t\t\tstr=str.replaceFirst(move,\"\");\n\t\t\t\t\tstr+=move;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t}", "str=sc.next()", "str", "sc.next()", "sc.next", "sc", "if(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tshuffle=sc.nextInt();\n\t\t\t\tfor(int i=0;i<shuffle;i++){\n\t\t\t\t\tcards=sc.nextInt();\n\t\t\t\t\tmove=str.substring(0,cards);\n\t\t\t\t\tstr=str.replaceFirst(move,\"\");\n\t\t\t\t\tstr+=move;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}", "str.equals(\"-\")", "str.equals", "str", "\"-\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "{\n\t\t\t\tshuffle=sc.nextInt();\n\t\t\t\tfor(int i=0;i<shuffle;i++){\n\t\t\t\t\tcards=sc.nextInt();\n\t\t\t\t\tmove=str.substring(0,cards);\n\t\t\t\t\tstr=str.replaceFirst(move,\"\");\n\t\t\t\t\tstr+=move;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}", "shuffle=sc.nextInt()", "shuffle", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0;i<shuffle;i++){\n\t\t\t\t\tcards=sc.nextInt();\n\t\t\t\t\tmove=str.substring(0,cards);\n\t\t\t\t\tstr=str.replaceFirst(move,\"\");\n\t\t\t\t\tstr+=move;\n\t\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<shuffle", "i", "shuffle", "i++", "i++", "i", "{\n\t\t\t\t\tcards=sc.nextInt();\n\t\t\t\t\tmove=str.substring(0,cards);\n\t\t\t\t\tstr=str.replaceFirst(move,\"\");\n\t\t\t\t\tstr+=move;\n\t\t\t\t}", "{\n\t\t\t\t\tcards=sc.nextInt();\n\t\t\t\t\tmove=str.substring(0,cards);\n\t\t\t\t\tstr=str.replaceFirst(move,\"\");\n\t\t\t\t\tstr+=move;\n\t\t\t\t}", "cards=sc.nextInt()", "cards", "sc.nextInt()", "sc.nextInt", "sc", "move=str.substring(0,cards)", "move", "str.substring(0,cards)", "str.substring", "str", "0", "cards", "str=str.replaceFirst(move,\"\")", "str", "str.replaceFirst(move,\"\")", "str.replaceFirst", "str", "move", "\"\"", "str+=move", "str", "move", "System.out.println(str)", "System.out.println", "System.out", "System", "System.out", "str", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tString str,move;\n\t\tint shuffle,cards;\n\t\twhile(true){\n\t\t\tstr=sc.next();\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tshuffle=sc.nextInt();\n\t\t\t\tfor(int i=0;i<shuffle;i++){\n\t\t\t\t\tcards=sc.nextInt();\n\t\t\t\t\tmove=str.substring(0,cards);\n\t\t\t\t\tstr=str.replaceFirst(move,\"\");\n\t\t\t\t\tstr+=move;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tString str,move;\n\t\tint shuffle,cards;\n\t\twhile(true){\n\t\t\tstr=sc.next();\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tshuffle=sc.nextInt();\n\t\t\t\tfor(int i=0;i<shuffle;i++){\n\t\t\t\t\tcards=sc.nextInt();\n\t\t\t\t\tmove=str.substring(0,cards);\n\t\t\t\t\tstr=str.replaceFirst(move,\"\");\n\t\t\t\t\tstr+=move;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); String str,move; int shuffle,cards; while(true){ str=sc.next(); if(str.equals("-")){ break; } else{ shuffle=sc.nextInt(); for(int i=0;i<shuffle;i++){ cards=sc.nextInt(); move=str.substring(0,cards); str=str.replaceFirst(move,""); str+=move; } System.out.println(str); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 20, 13, 4, 18, 13, 13, 17, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 18, 13, 2, 2, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 146, 5 ], [ 146, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 14, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 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 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 14, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 14, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 62, 70 ], [ 70, 71 ], [ 71, 72 ], [ 62, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 74, 80 ], [ 80, 81 ], [ 80, 82 ], [ 74, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 84, 88 ], [ 84, 89 ], [ 84, 90 ], [ 84, 91 ], [ 74, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 97, 98 ], [ 97, 99 ], [ 92, 100 ], [ 100, 101 ], [ 101, 102 ], [ 92, 103 ], [ 104, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 14, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 121, 122 ], [ 121, 123 ], [ 116, 124 ], [ 124, 125 ], [ 125, 126 ], [ 116, 127 ], [ 128, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 134, 135 ], [ 134, 136 ], [ 14, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 137, 142 ], [ 6, 143 ], [ 143, 144 ], [ 0, 145 ], [ 145, 146 ], [ 145, 147 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc =new Scanner(System.in);\n while (true) {\n \n String line = sc.next();\n if(line.equals(\"-\")) {\n break;\n };\n int n = line.length();\n char[] str = new char[n];\n for(int i=0;i<n;i++){\n str[i] = line.charAt(i);\n\n }\n int m=sc.nextInt();\n for(int i=0;i<m;i++){\n int h=sc.nextInt();\n char hoge[]=new char[n];\n\n System.arraycopy(str, 0, hoge,0, n);\n for(int j=0;j<n;j++){\n\n str[j]=hoge[(j+h)%n];\n\n }\n \n }\n for(int k=0;k<n;k++){\n System.out.print(str[k]);\n\n }\n System.out.println(\"\");\n\n\n\n }\n\n\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc =new Scanner(System.in);\n while (true) {\n \n String line = sc.next();\n if(line.equals(\"-\")) {\n break;\n };\n int n = line.length();\n char[] str = new char[n];\n for(int i=0;i<n;i++){\n str[i] = line.charAt(i);\n\n }\n int m=sc.nextInt();\n for(int i=0;i<m;i++){\n int h=sc.nextInt();\n char hoge[]=new char[n];\n\n System.arraycopy(str, 0, hoge,0, n);\n for(int j=0;j<n;j++){\n\n str[j]=hoge[(j+h)%n];\n\n }\n \n }\n for(int k=0;k<n;k++){\n System.out.print(str[k]);\n\n }\n System.out.println(\"\");\n\n\n\n }\n\n\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc =new Scanner(System.in);\n while (true) {\n \n String line = sc.next();\n if(line.equals(\"-\")) {\n break;\n };\n int n = line.length();\n char[] str = new char[n];\n for(int i=0;i<n;i++){\n str[i] = line.charAt(i);\n\n }\n int m=sc.nextInt();\n for(int i=0;i<m;i++){\n int h=sc.nextInt();\n char hoge[]=new char[n];\n\n System.arraycopy(str, 0, hoge,0, n);\n for(int j=0;j<n;j++){\n\n str[j]=hoge[(j+h)%n];\n\n }\n \n }\n for(int k=0;k<n;k++){\n System.out.print(str[k]);\n\n }\n System.out.println(\"\");\n\n\n\n }\n\n\n }", "main", "{\n Scanner sc =new Scanner(System.in);\n while (true) {\n \n String line = sc.next();\n if(line.equals(\"-\")) {\n break;\n };\n int n = line.length();\n char[] str = new char[n];\n for(int i=0;i<n;i++){\n str[i] = line.charAt(i);\n\n }\n int m=sc.nextInt();\n for(int i=0;i<m;i++){\n int h=sc.nextInt();\n char hoge[]=new char[n];\n\n System.arraycopy(str, 0, hoge,0, n);\n for(int j=0;j<n;j++){\n\n str[j]=hoge[(j+h)%n];\n\n }\n \n }\n for(int k=0;k<n;k++){\n System.out.print(str[k]);\n\n }\n System.out.println(\"\");\n\n\n\n }\n\n\n }", "Scanner sc =new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true) {\n \n String line = sc.next();\n if(line.equals(\"-\")) {\n break;\n };\n int n = line.length();\n char[] str = new char[n];\n for(int i=0;i<n;i++){\n str[i] = line.charAt(i);\n\n }\n int m=sc.nextInt();\n for(int i=0;i<m;i++){\n int h=sc.nextInt();\n char hoge[]=new char[n];\n\n System.arraycopy(str, 0, hoge,0, n);\n for(int j=0;j<n;j++){\n\n str[j]=hoge[(j+h)%n];\n\n }\n \n }\n for(int k=0;k<n;k++){\n System.out.print(str[k]);\n\n }\n System.out.println(\"\");\n\n\n\n }", "true", "{\n \n String line = sc.next();\n if(line.equals(\"-\")) {\n break;\n };\n int n = line.length();\n char[] str = new char[n];\n for(int i=0;i<n;i++){\n str[i] = line.charAt(i);\n\n }\n int m=sc.nextInt();\n for(int i=0;i<m;i++){\n int h=sc.nextInt();\n char hoge[]=new char[n];\n\n System.arraycopy(str, 0, hoge,0, n);\n for(int j=0;j<n;j++){\n\n str[j]=hoge[(j+h)%n];\n\n }\n \n }\n for(int k=0;k<n;k++){\n System.out.print(str[k]);\n\n }\n System.out.println(\"\");\n\n\n\n }", "String line = sc.next();", "line", "sc.next()", "sc.next", "sc", "if(line.equals(\"-\")) {\n break;\n }", "line.equals(\"-\")", "line.equals", "line", "\"-\"", "{\n break;\n }", "break;", "int n = line.length();", "n", "line.length()", "line.length", "line", "char[] str = new char[n];", "str", "new char[n]", "n", "for(int i=0;i<n;i++){\n str[i] = line.charAt(i);\n\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n str[i] = line.charAt(i);\n\n }", "{\n str[i] = line.charAt(i);\n\n }", "str[i] = line.charAt(i)", "str[i]", "str", "i", "line.charAt(i)", "line.charAt", "line", "i", "int m=sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0;i<m;i++){\n int h=sc.nextInt();\n char hoge[]=new char[n];\n\n System.arraycopy(str, 0, hoge,0, n);\n for(int j=0;j<n;j++){\n\n str[j]=hoge[(j+h)%n];\n\n }\n \n }", "int i=0;", "int i=0;", "i", "0", "i<m", "i", "m", "i++", "i++", "i", "{\n int h=sc.nextInt();\n char hoge[]=new char[n];\n\n System.arraycopy(str, 0, hoge,0, n);\n for(int j=0;j<n;j++){\n\n str[j]=hoge[(j+h)%n];\n\n }\n \n }", "{\n int h=sc.nextInt();\n char hoge[]=new char[n];\n\n System.arraycopy(str, 0, hoge,0, n);\n for(int j=0;j<n;j++){\n\n str[j]=hoge[(j+h)%n];\n\n }\n \n }", "int h=sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "char hoge[]=new char[n];", "hoge", "new char[n]", "n", "System.arraycopy(str, 0, hoge,0, n)", "System.arraycopy", "System", "str", "0", "hoge", "0", "n", "for(int j=0;j<n;j++){\n\n str[j]=hoge[(j+h)%n];\n\n }", "int j=0;", "int j=0;", "j", "0", "j<n", "j", "n", "j++", "j++", "j", "{\n\n str[j]=hoge[(j+h)%n];\n\n }", "{\n\n str[j]=hoge[(j+h)%n];\n\n }", "str[j]=hoge[(j+h)%n]", "str[j]", "str", "j", "hoge[(j+h)%n]", "hoge", "(j+h)%n", "(j+h)", "j", "h", "n", "for(int k=0;k<n;k++){\n System.out.print(str[k]);\n\n }", "int k=0;", "int k=0;", "k", "0", "k<n", "k", "n", "k++", "k++", "k", "{\n System.out.print(str[k]);\n\n }", "{\n System.out.print(str[k]);\n\n }", "System.out.print(str[k])", "System.out.print", "System.out", "System", "System.out", "str[k]", "str", "k", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc =new Scanner(System.in);\n while (true) {\n \n String line = sc.next();\n if(line.equals(\"-\")) {\n break;\n };\n int n = line.length();\n char[] str = new char[n];\n for(int i=0;i<n;i++){\n str[i] = line.charAt(i);\n\n }\n int m=sc.nextInt();\n for(int i=0;i<m;i++){\n int h=sc.nextInt();\n char hoge[]=new char[n];\n\n System.arraycopy(str, 0, hoge,0, n);\n for(int j=0;j<n;j++){\n\n str[j]=hoge[(j+h)%n];\n\n }\n \n }\n for(int k=0;k<n;k++){\n System.out.print(str[k]);\n\n }\n System.out.println(\"\");\n\n\n\n }\n\n\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc =new Scanner(System.in);\n while (true) {\n \n String line = sc.next();\n if(line.equals(\"-\")) {\n break;\n };\n int n = line.length();\n char[] str = new char[n];\n for(int i=0;i<n;i++){\n str[i] = line.charAt(i);\n\n }\n int m=sc.nextInt();\n for(int i=0;i<m;i++){\n int h=sc.nextInt();\n char hoge[]=new char[n];\n\n System.arraycopy(str, 0, hoge,0, n);\n for(int j=0;j<n;j++){\n\n str[j]=hoge[(j+h)%n];\n\n }\n \n }\n for(int k=0;k<n;k++){\n System.out.print(str[k]);\n\n }\n System.out.println(\"\");\n\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); while (true) { String line = sc.next(); if(line.equals("-")) { break; }; int n = line.length(); char[] str = new char[n]; for(int i=0;i<n;i++){ str[i] = line.charAt(i); } int m=sc.nextInt(); for(int i=0;i<m;i++){ int h=sc.nextInt(); char hoge[]=new char[n]; System.arraycopy(str, 0, hoge,0, n); for(int j=0;j<n;j++){ str[j]=hoge[(j+h)%n]; } } for(int k=0;k<n;k++){ System.out.print(str[k]); } System.out.println(""); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 13, 41, 13, 4, 18, 13, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 78, 5 ], [ 78, 6 ], [ 6, 7 ], [ 6, 8 ], [ 78, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 22, 27 ], [ 16, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 16, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 45, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 53, 57 ], [ 45, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 45, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 16, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 9, 75 ], [ 75, 76 ], [ 0, 77 ], [ 77, 78 ], [ 77, 79 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n static Scanner sc = new Scanner(System.in);\n\n public static void main(String[] args) {\n while (sc.hasNext()){\n String alf = sc.next();\n if (alf.equals(\"-\"))\n break;\n int m = sc.nextInt();\n for (int i = 0; i < m; i++){\n int subNum = sc.nextInt();\n String tmpSub = alf.substring(0,subNum);\n String tmp = alf.substring(subNum);\n alf = tmp + tmpSub;\n }\n System.out.println(alf);\n\n }\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n static Scanner sc = new Scanner(System.in);\n\n public static void main(String[] args) {\n while (sc.hasNext()){\n String alf = sc.next();\n if (alf.equals(\"-\"))\n break;\n int m = sc.nextInt();\n for (int i = 0; i < m; i++){\n int subNum = sc.nextInt();\n String tmpSub = alf.substring(0,subNum);\n String tmp = alf.substring(subNum);\n alf = tmp + tmpSub;\n }\n System.out.println(alf);\n\n }\n }\n}", "Main", "static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] args) {\n while (sc.hasNext()){\n String alf = sc.next();\n if (alf.equals(\"-\"))\n break;\n int m = sc.nextInt();\n for (int i = 0; i < m; i++){\n int subNum = sc.nextInt();\n String tmpSub = alf.substring(0,subNum);\n String tmp = alf.substring(subNum);\n alf = tmp + tmpSub;\n }\n System.out.println(alf);\n\n }\n }", "main", "{\n while (sc.hasNext()){\n String alf = sc.next();\n if (alf.equals(\"-\"))\n break;\n int m = sc.nextInt();\n for (int i = 0; i < m; i++){\n int subNum = sc.nextInt();\n String tmpSub = alf.substring(0,subNum);\n String tmp = alf.substring(subNum);\n alf = tmp + tmpSub;\n }\n System.out.println(alf);\n\n }\n }", "while (sc.hasNext()){\n String alf = sc.next();\n if (alf.equals(\"-\"))\n break;\n int m = sc.nextInt();\n for (int i = 0; i < m; i++){\n int subNum = sc.nextInt();\n String tmpSub = alf.substring(0,subNum);\n String tmp = alf.substring(subNum);\n alf = tmp + tmpSub;\n }\n System.out.println(alf);\n\n }", "sc.hasNext()", "sc.hasNext", "sc", "{\n String alf = sc.next();\n if (alf.equals(\"-\"))\n break;\n int m = sc.nextInt();\n for (int i = 0; i < m; i++){\n int subNum = sc.nextInt();\n String tmpSub = alf.substring(0,subNum);\n String tmp = alf.substring(subNum);\n alf = tmp + tmpSub;\n }\n System.out.println(alf);\n\n }", "String alf = sc.next();", "alf", "sc.next()", "sc.next", "sc", "if (alf.equals(\"-\"))\n break;", "alf.equals(\"-\")", "alf.equals", "alf", "\"-\"", "break;", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "for (int i = 0; i < m; i++){\n int subNum = sc.nextInt();\n String tmpSub = alf.substring(0,subNum);\n String tmp = alf.substring(subNum);\n alf = tmp + tmpSub;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n int subNum = sc.nextInt();\n String tmpSub = alf.substring(0,subNum);\n String tmp = alf.substring(subNum);\n alf = tmp + tmpSub;\n }", "{\n int subNum = sc.nextInt();\n String tmpSub = alf.substring(0,subNum);\n String tmp = alf.substring(subNum);\n alf = tmp + tmpSub;\n }", "int subNum = sc.nextInt();", "subNum", "sc.nextInt()", "sc.nextInt", "sc", "String tmpSub = alf.substring(0,subNum);", "tmpSub", "alf.substring(0,subNum)", "alf.substring", "alf", "0", "subNum", "String tmp = alf.substring(subNum);", "tmp", "alf.substring(subNum)", "alf.substring", "alf", "subNum", "alf = tmp + tmpSub", "alf", "tmp + tmpSub", "tmp", "tmpSub", "System.out.println(alf)", "System.out.println", "System.out", "System", "System.out", "alf", "String[] args", "args", "public class Main {\n static Scanner sc = new Scanner(System.in);\n\n public static void main(String[] args) {\n while (sc.hasNext()){\n String alf = sc.next();\n if (alf.equals(\"-\"))\n break;\n int m = sc.nextInt();\n for (int i = 0; i < m; i++){\n int subNum = sc.nextInt();\n String tmpSub = alf.substring(0,subNum);\n String tmp = alf.substring(subNum);\n alf = tmp + tmpSub;\n }\n System.out.println(alf);\n\n }\n }\n}", "public class Main {\n static Scanner sc = new Scanner(System.in);\n\n public static void main(String[] args) {\n while (sc.hasNext()){\n String alf = sc.next();\n if (alf.equals(\"-\"))\n break;\n int m = sc.nextInt();\n for (int i = 0; i < m; i++){\n int subNum = sc.nextInt();\n String tmpSub = alf.substring(0,subNum);\n String tmp = alf.substring(subNum);\n alf = tmp + tmpSub;\n }\n System.out.println(alf);\n\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { while (sc.hasNext()){ String alf = sc.next(); if (alf.equals("-")) break; int m = sc.nextInt(); for (int i = 0; i < m; i++){ int subNum = sc.nextInt(); String tmpSub = alf.substring(0,subNum); String tmp = alf.substring(subNum); alf = tmp + tmpSub; } System.out.println(alf); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 17, 18, 13, 13, 0, 13, 13, 0, 13, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 108, 11 ], [ 108, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 31, 36 ], [ 36, 37 ], [ 25, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 25, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 25, 49 ], [ 49, 50 ], [ 49, 51 ], [ 25, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 53, 61 ], [ 61, 62 ], [ 62, 63 ], [ 53, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 65, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 65, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 81, 85 ], [ 85, 86 ], [ 85, 87 ], [ 65, 88 ], [ 88, 89 ], [ 88, 90 ], [ 65, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 96, 97 ], [ 96, 98 ], [ 25, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 12, 105 ], [ 105, 106 ], [ 0, 107 ], [ 107, 108 ], [ 107, 109 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString result ;\n\t\tint count = 0;\n\n\t\twhile (true) {\n\t\t\tString str = br.readLine();\n\t\t\tif (str.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString res = br.readLine();\n\t\t\tcount = Integer.parseInt(res);\n\t\t\tint[] shuffle = new int[count];\n\t\t\tfor(int i =0; i < count; i++){\n\t\t\t\tString shuffler = br.readLine();\n\t\t\t\tshuffle[i] = Integer.parseInt(shuffler);\n\t\t\t\tresult = str.substring(0,shuffle[i]);\n\t\t\t\t\n\t\t\t\tstr += result;\n\t\t\t\tstr = str.substring(shuffle[i]);\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString result ;\n\t\tint count = 0;\n\n\t\twhile (true) {\n\t\t\tString str = br.readLine();\n\t\t\tif (str.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString res = br.readLine();\n\t\t\tcount = Integer.parseInt(res);\n\t\t\tint[] shuffle = new int[count];\n\t\t\tfor(int i =0; i < count; i++){\n\t\t\t\tString shuffler = br.readLine();\n\t\t\t\tshuffle[i] = Integer.parseInt(shuffler);\n\t\t\t\tresult = str.substring(0,shuffle[i]);\n\t\t\t\t\n\t\t\t\tstr += result;\n\t\t\t\tstr = str.substring(shuffle[i]);\n\t\t\t}\n\t\t\tSystem.out.println(str);\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\n\t\tString result ;\n\t\tint count = 0;\n\n\t\twhile (true) {\n\t\t\tString str = br.readLine();\n\t\t\tif (str.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString res = br.readLine();\n\t\t\tcount = Integer.parseInt(res);\n\t\t\tint[] shuffle = new int[count];\n\t\t\tfor(int i =0; i < count; i++){\n\t\t\t\tString shuffler = br.readLine();\n\t\t\t\tshuffle[i] = Integer.parseInt(shuffler);\n\t\t\t\tresult = str.substring(0,shuffle[i]);\n\t\t\t\t\n\t\t\t\tstr += result;\n\t\t\t\tstr = str.substring(shuffle[i]);\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString result ;\n\t\tint count = 0;\n\n\t\twhile (true) {\n\t\t\tString str = br.readLine();\n\t\t\tif (str.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString res = br.readLine();\n\t\t\tcount = Integer.parseInt(res);\n\t\t\tint[] shuffle = new int[count];\n\t\t\tfor(int i =0; i < count; i++){\n\t\t\t\tString shuffler = br.readLine();\n\t\t\t\tshuffle[i] = Integer.parseInt(shuffler);\n\t\t\t\tresult = str.substring(0,shuffle[i]);\n\t\t\t\t\n\t\t\t\tstr += result;\n\t\t\t\tstr = str.substring(shuffle[i]);\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String result ;", "result", "int count = 0;", "count", "0", "while (true) {\n\t\t\tString str = br.readLine();\n\t\t\tif (str.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString res = br.readLine();\n\t\t\tcount = Integer.parseInt(res);\n\t\t\tint[] shuffle = new int[count];\n\t\t\tfor(int i =0; i < count; i++){\n\t\t\t\tString shuffler = br.readLine();\n\t\t\t\tshuffle[i] = Integer.parseInt(shuffler);\n\t\t\t\tresult = str.substring(0,shuffle[i]);\n\t\t\t\t\n\t\t\t\tstr += result;\n\t\t\t\tstr = str.substring(shuffle[i]);\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}", "true", "{\n\t\t\tString str = br.readLine();\n\t\t\tif (str.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString res = br.readLine();\n\t\t\tcount = Integer.parseInt(res);\n\t\t\tint[] shuffle = new int[count];\n\t\t\tfor(int i =0; i < count; i++){\n\t\t\t\tString shuffler = br.readLine();\n\t\t\t\tshuffle[i] = Integer.parseInt(shuffler);\n\t\t\t\tresult = str.substring(0,shuffle[i]);\n\t\t\t\t\n\t\t\t\tstr += result;\n\t\t\t\tstr = str.substring(shuffle[i]);\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}", "String str = br.readLine();", "str", "br.readLine()", "br.readLine", "br", "if (str.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}", "str.equals(\"-\")", "str.equals", "str", "\"-\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "String res = br.readLine();", "res", "br.readLine()", "br.readLine", "br", "count = Integer.parseInt(res)", "count", "Integer.parseInt(res)", "Integer.parseInt", "Integer", "res", "int[] shuffle = new int[count];", "shuffle", "new int[count]", "count", "for(int i =0; i < count; i++){\n\t\t\t\tString shuffler = br.readLine();\n\t\t\t\tshuffle[i] = Integer.parseInt(shuffler);\n\t\t\t\tresult = str.substring(0,shuffle[i]);\n\t\t\t\t\n\t\t\t\tstr += result;\n\t\t\t\tstr = str.substring(shuffle[i]);\n\t\t\t}", "int i =0;", "int i =0;", "i", "0", "i < count", "i", "count", "i++", "i++", "i", "{\n\t\t\t\tString shuffler = br.readLine();\n\t\t\t\tshuffle[i] = Integer.parseInt(shuffler);\n\t\t\t\tresult = str.substring(0,shuffle[i]);\n\t\t\t\t\n\t\t\t\tstr += result;\n\t\t\t\tstr = str.substring(shuffle[i]);\n\t\t\t}", "{\n\t\t\t\tString shuffler = br.readLine();\n\t\t\t\tshuffle[i] = Integer.parseInt(shuffler);\n\t\t\t\tresult = str.substring(0,shuffle[i]);\n\t\t\t\t\n\t\t\t\tstr += result;\n\t\t\t\tstr = str.substring(shuffle[i]);\n\t\t\t}", "String shuffler = br.readLine();", "shuffler", "br.readLine()", "br.readLine", "br", "shuffle[i] = Integer.parseInt(shuffler)", "shuffle[i]", "shuffle", "i", "Integer.parseInt(shuffler)", "Integer.parseInt", "Integer", "shuffler", "result = str.substring(0,shuffle[i])", "result", "str.substring(0,shuffle[i])", "str.substring", "str", "0", "shuffle[i]", "shuffle", "i", "str += result", "str", "result", "str = str.substring(shuffle[i])", "str", "str.substring(shuffle[i])", "str.substring", "str", "shuffle[i]", "shuffle", "i", "System.out.println(str)", "System.out.println", "System.out", "System", "System.out", "str", "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\n\t\tString result ;\n\t\tint count = 0;\n\n\t\twhile (true) {\n\t\t\tString str = br.readLine();\n\t\t\tif (str.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString res = br.readLine();\n\t\t\tcount = Integer.parseInt(res);\n\t\t\tint[] shuffle = new int[count];\n\t\t\tfor(int i =0; i < count; i++){\n\t\t\t\tString shuffler = br.readLine();\n\t\t\t\tshuffle[i] = Integer.parseInt(shuffler);\n\t\t\t\tresult = str.substring(0,shuffle[i]);\n\t\t\t\t\n\t\t\t\tstr += result;\n\t\t\t\tstr = str.substring(shuffle[i]);\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}\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\n\t\tString result ;\n\t\tint count = 0;\n\n\t\twhile (true) {\n\t\t\tString str = br.readLine();\n\t\t\tif (str.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString res = br.readLine();\n\t\t\tcount = Integer.parseInt(res);\n\t\t\tint[] shuffle = new int[count];\n\t\t\tfor(int i =0; i < count; i++){\n\t\t\t\tString shuffler = br.readLine();\n\t\t\t\tshuffle[i] = Integer.parseInt(shuffler);\n\t\t\t\tresult = str.substring(0,shuffle[i]);\n\t\t\t\t\n\t\t\t\tstr += result;\n\t\t\t\tstr = str.substring(shuffle[i]);\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String result ; int count = 0; while (true) { String str = br.readLine(); if (str.equals("-")) { break; } String res = br.readLine(); count = Integer.parseInt(res); int[] shuffle = new int[count]; for(int i =0; i < count; i++){ String shuffler = br.readLine(); shuffle[i] = Integer.parseInt(shuffler); result = str.substring(0,shuffle[i]); str += result; str = str.substring(shuffle[i]); } System.out.println(str); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 0, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 13, 0, 13, 2, 4, 18, 13, 13, 4, 18, 13, 13, 4, 18, 4, 18, 13, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 31, 36 ], [ 36, 37 ], [ 25, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 43, 44 ], [ 44, 45 ], [ 25, 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 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 65, 66 ], [ 58, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 69, 73 ], [ 58, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 77, 81 ], [ 81, 82 ], [ 82, 83 ], [ 76, 84 ], [ 25, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 85, 91 ], [ 8, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 6, 98 ], [ 98, 99 ] ]
[ "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 StringBuilder sb = new StringBuilder();\n String line, str;\n int m, h;\n while(true){\n line = br.readLine();\n if (line.equals(\"-\")) {break;}\n m = Integer.parseInt(br.readLine());\n for (int i = 0; i < m; i++){\n h = Integer.parseInt(br.readLine());\n str = line.substring(0,h);\n line = line.substring(h, line.length()) + str;\n }\n sb.append(line).append(\"\\n\");\n }\n System.out.print(sb);\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 StringBuilder sb = new StringBuilder();\n String line, str;\n int m, h;\n while(true){\n line = br.readLine();\n if (line.equals(\"-\")) {break;}\n m = Integer.parseInt(br.readLine());\n for (int i = 0; i < m; i++){\n h = Integer.parseInt(br.readLine());\n str = line.substring(0,h);\n line = line.substring(h, line.length()) + str;\n }\n sb.append(line).append(\"\\n\");\n }\n System.out.print(sb);\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 line, str;\n int m, h;\n while(true){\n line = br.readLine();\n if (line.equals(\"-\")) {break;}\n m = Integer.parseInt(br.readLine());\n for (int i = 0; i < m; i++){\n h = Integer.parseInt(br.readLine());\n str = line.substring(0,h);\n line = line.substring(h, line.length()) + str;\n }\n sb.append(line).append(\"\\n\");\n }\n System.out.print(sb);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n String line, str;\n int m, h;\n while(true){\n line = br.readLine();\n if (line.equals(\"-\")) {break;}\n m = Integer.parseInt(br.readLine());\n for (int i = 0; i < m; i++){\n h = Integer.parseInt(br.readLine());\n str = line.substring(0,h);\n line = line.substring(h, line.length()) + str;\n }\n sb.append(line).append(\"\\n\");\n }\n System.out.print(sb);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "String line", "line", "str;", "str", "int m", "m", "h;", "h", "while(true){\n line = br.readLine();\n if (line.equals(\"-\")) {break;}\n m = Integer.parseInt(br.readLine());\n for (int i = 0; i < m; i++){\n h = Integer.parseInt(br.readLine());\n str = line.substring(0,h);\n line = line.substring(h, line.length()) + str;\n }\n sb.append(line).append(\"\\n\");\n }", "true", "{\n line = br.readLine();\n if (line.equals(\"-\")) {break;}\n m = Integer.parseInt(br.readLine());\n for (int i = 0; i < m; i++){\n h = Integer.parseInt(br.readLine());\n str = line.substring(0,h);\n line = line.substring(h, line.length()) + str;\n }\n sb.append(line).append(\"\\n\");\n }", "line = br.readLine()", "line", "br.readLine()", "br.readLine", "br", "if (line.equals(\"-\")) {break;}", "line.equals(\"-\")", "line.equals", "line", "\"-\"", "{break;}", "break;", "m = Integer.parseInt(br.readLine())", "m", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "for (int i = 0; i < m; i++){\n h = Integer.parseInt(br.readLine());\n str = line.substring(0,h);\n line = line.substring(h, line.length()) + str;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n h = Integer.parseInt(br.readLine());\n str = line.substring(0,h);\n line = line.substring(h, line.length()) + str;\n }", "{\n h = Integer.parseInt(br.readLine());\n str = line.substring(0,h);\n line = line.substring(h, line.length()) + str;\n }", "h = Integer.parseInt(br.readLine())", "h", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "str = line.substring(0,h)", "str", "line.substring(0,h)", "line.substring", "line", "0", "h", "line = line.substring(h, line.length()) + str", "line", "line.substring(h, line.length()) + str", "line.substring(h, line.length())", "line.substring", "line", "h", "line.length()", "line.length", "line", "str", "sb.append(line).append(\"\\n\")", "sb.append(line).append", "sb.append(line)", "sb.append", "sb", "line", "\"\\n\"", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[] args", "args" ]
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 line, str; int m, h; while(true){ line = br.readLine(); if (line.equals("-")) {break;} m = Integer.parseInt(br.readLine()); for (int i = 0; i < m; i++){ h = Integer.parseInt(br.readLine()); str = line.substring(0,h); line = line.substring(h, line.length()) + str; } sb.append(line).append("\n"); } System.out.print(sb); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 42, 2, 0, 13, 4, 18, 13, 17, 30, 14, 4, 18, 17, 13, 30, 3, 41, 13, 13, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 0, 13, 2, 4, 18, 13, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 18, 24 ], [ 17, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 26, 31 ], [ 31, 32 ], [ 25, 33 ], [ 33, 34 ], [ 33, 35 ], [ 25, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 41, 42 ], [ 42, 43 ], [ 25, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 63, 64 ], [ 56, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 67, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 72, 76 ], [ 25, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 9, 83 ], [ 83, 84 ] ]
[ "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 String n;\n while((n=br.readLine())!=null){\n if(\"-\".equals(n)){\n break; // - が入力されたらwhileを抜ける\n }\n String str = n; // n で読み取ったものをstrに入れる\n int shuffle = Integer.parseInt(br.readLine()); //shuffleにシャッフル回数を入れる\n for(int i=0; i<shuffle; i++){ //shuffleの回数分for文が行われる\n int h = Integer.parseInt(br.readLine()); //h にカードの移動位置が入れられる\n str = str.substring(h) + str.substring(0,h); \n //substringでhの位置から文字を取り出して\n //次のsubstringで移動される文字を取り出して\n //二つのsubstringで取り出した文字をstrに入れている\n }\n System.out.println(str);\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 String n;\n while((n=br.readLine())!=null){\n if(\"-\".equals(n)){\n break; // - が入力されたらwhileを抜ける\n }\n String str = n; // n で読み取ったものをstrに入れる\n int shuffle = Integer.parseInt(br.readLine()); //shuffleにシャッフル回数を入れる\n for(int i=0; i<shuffle; i++){ //shuffleの回数分for文が行われる\n int h = Integer.parseInt(br.readLine()); //h にカードの移動位置が入れられる\n str = str.substring(h) + str.substring(0,h); \n //substringでhの位置から文字を取り出して\n //次のsubstringで移動される文字を取り出して\n //二つのsubstringで取り出した文字をstrに入れている\n }\n System.out.println(str);\n }\n }\n}", "Main", "public static void main(String args[])throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String n;\n while((n=br.readLine())!=null){\n if(\"-\".equals(n)){\n break; // - が入力されたらwhileを抜ける\n }\n String str = n; // n で読み取ったものをstrに入れる\n int shuffle = Integer.parseInt(br.readLine()); //shuffleにシャッフル回数を入れる\n for(int i=0; i<shuffle; i++){ //shuffleの回数分for文が行われる\n int h = Integer.parseInt(br.readLine()); //h にカードの移動位置が入れられる\n str = str.substring(h) + str.substring(0,h); \n //substringでhの位置から文字を取り出して\n //次のsubstringで移動される文字を取り出して\n //二つのsubstringで取り出した文字をstrに入れている\n }\n System.out.println(str);\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String n;\n while((n=br.readLine())!=null){\n if(\"-\".equals(n)){\n break; // - が入力されたらwhileを抜ける\n }\n String str = n; // n で読み取ったものをstrに入れる\n int shuffle = Integer.parseInt(br.readLine()); //shuffleにシャッフル回数を入れる\n for(int i=0; i<shuffle; i++){ //shuffleの回数分for文が行われる\n int h = Integer.parseInt(br.readLine()); //h にカードの移動位置が入れられる\n str = str.substring(h) + str.substring(0,h); \n //substringでhの位置から文字を取り出して\n //次のsubstringで移動される文字を取り出して\n //二つのsubstringで取り出した文字をstrに入れている\n }\n System.out.println(str);\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String n;", "n", "while((n=br.readLine())!=null){\n if(\"-\".equals(n)){\n break; // - が入力されたらwhileを抜ける\n }\n String str = n; // n で読み取ったものをstrに入れる\n int shuffle = Integer.parseInt(br.readLine()); //shuffleにシャッフル回数を入れる\n for(int i=0; i<shuffle; i++){ //shuffleの回数分for文が行われる\n int h = Integer.parseInt(br.readLine()); //h にカードの移動位置が入れられる\n str = str.substring(h) + str.substring(0,h); \n //substringでhの位置から文字を取り出して\n //次のsubstringで移動される文字を取り出して\n //二つのsubstringで取り出した文字をstrに入れている\n }\n System.out.println(str);\n }", "(n=br.readLine())!=null", "(n=br.readLine())", "n", "br.readLine()", "br.readLine", "br", "null", "{\n if(\"-\".equals(n)){\n break; // - が入力されたらwhileを抜ける\n }\n String str = n; // n で読み取ったものをstrに入れる\n int shuffle = Integer.parseInt(br.readLine()); //shuffleにシャッフル回数を入れる\n for(int i=0; i<shuffle; i++){ //shuffleの回数分for文が行われる\n int h = Integer.parseInt(br.readLine()); //h にカードの移動位置が入れられる\n str = str.substring(h) + str.substring(0,h); \n //substringでhの位置から文字を取り出して\n //次のsubstringで移動される文字を取り出して\n //二つのsubstringで取り出した文字をstrに入れている\n }\n System.out.println(str);\n }", "if(\"-\".equals(n)){\n break; // - が入力されたらwhileを抜ける\n }", "\"-\".equals(n)", "\"-\".equals", "\"-\"", "n", "{\n break; // - が入力されたらwhileを抜ける\n }", "break; // - が入力されたらwhileを抜ける", "String str = n;", "str", "n", "int shuffle = Integer.parseInt(br.readLine());", "shuffle", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "for(int i=0; i<shuffle; i++){ //shuffleの回数分for文が行われる\n int h = Integer.parseInt(br.readLine()); //h にカードの移動位置が入れられる\n str = str.substring(h) + str.substring(0,h); \n //substringでhの位置から文字を取り出して\n //次のsubstringで移動される文字を取り出して\n //二つのsubstringで取り出した文字をstrに入れている\n }", "int i=0;", "int i=0;", "i", "0", "i<shuffle", "i", "shuffle", "i++", "i++", "i", "{ //shuffleの回数分for文が行われる\n int h = Integer.parseInt(br.readLine()); //h にカードの移動位置が入れられる\n str = str.substring(h) + str.substring(0,h); \n //substringでhの位置から文字を取り出して\n //次のsubstringで移動される文字を取り出して\n //二つのsubstringで取り出した文字をstrに入れている\n }", "{ //shuffleの回数分for文が行われる\n int h = Integer.parseInt(br.readLine()); //h にカードの移動位置が入れられる\n str = str.substring(h) + str.substring(0,h); \n //substringでhの位置から文字を取り出して\n //次のsubstringで移動される文字を取り出して\n //二つのsubstringで取り出した文字をstrに入れている\n }", "int h = Integer.parseInt(br.readLine());", "h", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "str = str.substring(h) + str.substring(0,h)", "str", "str.substring(h) + str.substring(0,h)", "str.substring(h)", "str.substring", "str", "h", "str.substring(0,h)", "str.substring", "str", "0", "h", "System.out.println(str)", "System.out.println", "System.out", "System", "System.out", "str", "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)); String n; while((n=br.readLine())!=null){ if("-".equals(n)){ break; // - が入力されたらwhileを抜ける } String str = n; // n で読み取ったものをstrに入れる int shuffle = Integer.parseInt(br.readLine()); //shuffleにシャッフル回数を入れる for(int i=0; i<shuffle; i++){ //shuffleの回数分for文が行われる int h = Integer.parseInt(br.readLine()); //h にカードの移動位置が入れられる str = str.substring(h) + str.substring(0,h); //substringでhの位置から文字を取り出して //次のsubstringで移動される文字を取り出して //二つのsubstringで取り出した文字をstrに入れている } System.out.println(str); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 20, 4, 18, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 2, 2, 4, 18, 13, 13, 13, 18, 13, 13, 11, 1, 41, 13, 13, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 18, 13, 2, 13, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 141, 5 ], [ 141, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 25, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 34, 35 ], [ 35, 36 ], [ 14, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 14, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 47, 48 ], [ 47, 49 ], [ 42, 50 ], [ 50, 51 ], [ 51, 52 ], [ 42, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 54, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 60, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 77, 81 ], [ 76, 82 ], [ 73, 83 ], [ 83, 84 ], [ 83, 85 ], [ 54, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 86, 96 ], [ 96, 97 ], [ 97, 98 ], [ 86, 99 ], [ 100, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 101, 107 ], [ 107, 108 ], [ 107, 109 ], [ 54, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 118, 119 ], [ 110, 120 ], [ 120, 121 ], [ 121, 122 ], [ 110, 123 ], [ 124, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 129, 130 ], [ 129, 131 ], [ 14, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 6, 138 ], [ 138, 139 ], [ 0, 140 ], [ 140, 141 ], [ 140, 142 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\tString data = sc.next();\n\t\t\tchar[] card = data.toCharArray();\n\n\t\t\tif(data.equals(\"-\")) break;\n\n\t\t\tchar[] temp = new char[data.length()];\n\n\t\t\tint n = sc.nextInt();\n\t\t\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\tint num = sc.nextInt();\n\n\t\t\t\tfor(int m = 0;m < num;m++){\n\t\t\t\t\ttemp[data.length() - num + m] = card[m];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int m = num;m < data.length();m++){\n\t\t\t\t\ttemp[m - num] = card[m];\n\t\t\t\t}\n\n\t\t\t\tfor(int m = 0;m < data.length();m++){\n\t\t\t\t\tcard[m] = temp[m];\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(card);\n\t\t}\n\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\tString data = sc.next();\n\t\t\tchar[] card = data.toCharArray();\n\n\t\t\tif(data.equals(\"-\")) break;\n\n\t\t\tchar[] temp = new char[data.length()];\n\n\t\t\tint n = sc.nextInt();\n\t\t\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\tint num = sc.nextInt();\n\n\t\t\t\tfor(int m = 0;m < num;m++){\n\t\t\t\t\ttemp[data.length() - num + m] = card[m];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int m = num;m < data.length();m++){\n\t\t\t\t\ttemp[m - num] = card[m];\n\t\t\t\t}\n\n\t\t\t\tfor(int m = 0;m < data.length();m++){\n\t\t\t\t\tcard[m] = temp[m];\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(card);\n\t\t}\n\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\tString data = sc.next();\n\t\t\tchar[] card = data.toCharArray();\n\n\t\t\tif(data.equals(\"-\")) break;\n\n\t\t\tchar[] temp = new char[data.length()];\n\n\t\t\tint n = sc.nextInt();\n\t\t\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\tint num = sc.nextInt();\n\n\t\t\t\tfor(int m = 0;m < num;m++){\n\t\t\t\t\ttemp[data.length() - num + m] = card[m];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int m = num;m < data.length();m++){\n\t\t\t\t\ttemp[m - num] = card[m];\n\t\t\t\t}\n\n\t\t\t\tfor(int m = 0;m < data.length();m++){\n\t\t\t\t\tcard[m] = temp[m];\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(card);\n\t\t}\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\tString data = sc.next();\n\t\t\tchar[] card = data.toCharArray();\n\n\t\t\tif(data.equals(\"-\")) break;\n\n\t\t\tchar[] temp = new char[data.length()];\n\n\t\t\tint n = sc.nextInt();\n\t\t\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\tint num = sc.nextInt();\n\n\t\t\t\tfor(int m = 0;m < num;m++){\n\t\t\t\t\ttemp[data.length() - num + m] = card[m];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int m = num;m < data.length();m++){\n\t\t\t\t\ttemp[m - num] = card[m];\n\t\t\t\t}\n\n\t\t\t\tfor(int m = 0;m < data.length();m++){\n\t\t\t\t\tcard[m] = temp[m];\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(card);\n\t\t}\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n\t\t\tString data = sc.next();\n\t\t\tchar[] card = data.toCharArray();\n\n\t\t\tif(data.equals(\"-\")) break;\n\n\t\t\tchar[] temp = new char[data.length()];\n\n\t\t\tint n = sc.nextInt();\n\t\t\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\tint num = sc.nextInt();\n\n\t\t\t\tfor(int m = 0;m < num;m++){\n\t\t\t\t\ttemp[data.length() - num + m] = card[m];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int m = num;m < data.length();m++){\n\t\t\t\t\ttemp[m - num] = card[m];\n\t\t\t\t}\n\n\t\t\t\tfor(int m = 0;m < data.length();m++){\n\t\t\t\t\tcard[m] = temp[m];\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(card);\n\t\t}", "true", "{\n\t\t\tString data = sc.next();\n\t\t\tchar[] card = data.toCharArray();\n\n\t\t\tif(data.equals(\"-\")) break;\n\n\t\t\tchar[] temp = new char[data.length()];\n\n\t\t\tint n = sc.nextInt();\n\t\t\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\tint num = sc.nextInt();\n\n\t\t\t\tfor(int m = 0;m < num;m++){\n\t\t\t\t\ttemp[data.length() - num + m] = card[m];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int m = num;m < data.length();m++){\n\t\t\t\t\ttemp[m - num] = card[m];\n\t\t\t\t}\n\n\t\t\t\tfor(int m = 0;m < data.length();m++){\n\t\t\t\t\tcard[m] = temp[m];\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(card);\n\t\t}", "String data = sc.next();", "data", "sc.next()", "sc.next", "sc", "char[] card = data.toCharArray();", "card", "data.toCharArray()", "data.toCharArray", "data", "if(data.equals(\"-\")) break;", "data.equals(\"-\")", "data.equals", "data", "\"-\"", "break;", "char[] temp = new char[data.length()];", "temp", "new char[data.length()]", "data.length()", "data.length", "data", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "for(int i = 0;i < n;i++){\n\t\t\t\tint num = sc.nextInt();\n\n\t\t\t\tfor(int m = 0;m < num;m++){\n\t\t\t\t\ttemp[data.length() - num + m] = card[m];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int m = num;m < data.length();m++){\n\t\t\t\t\ttemp[m - num] = card[m];\n\t\t\t\t}\n\n\t\t\t\tfor(int m = 0;m < data.length();m++){\n\t\t\t\t\tcard[m] = temp[m];\n\t\t\t\t}\t\t\t\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tint num = sc.nextInt();\n\n\t\t\t\tfor(int m = 0;m < num;m++){\n\t\t\t\t\ttemp[data.length() - num + m] = card[m];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int m = num;m < data.length();m++){\n\t\t\t\t\ttemp[m - num] = card[m];\n\t\t\t\t}\n\n\t\t\t\tfor(int m = 0;m < data.length();m++){\n\t\t\t\t\tcard[m] = temp[m];\n\t\t\t\t}\t\t\t\n\t\t\t}", "{\n\t\t\t\tint num = sc.nextInt();\n\n\t\t\t\tfor(int m = 0;m < num;m++){\n\t\t\t\t\ttemp[data.length() - num + m] = card[m];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int m = num;m < data.length();m++){\n\t\t\t\t\ttemp[m - num] = card[m];\n\t\t\t\t}\n\n\t\t\t\tfor(int m = 0;m < data.length();m++){\n\t\t\t\t\tcard[m] = temp[m];\n\t\t\t\t}\t\t\t\n\t\t\t}", "int num = sc.nextInt();", "num", "sc.nextInt()", "sc.nextInt", "sc", "for(int m = 0;m < num;m++){\n\t\t\t\t\ttemp[data.length() - num + m] = card[m];\n\t\t\t\t}", "int m = 0;", "int m = 0;", "m", "0", "m < num", "m", "num", "m++", "m++", "m", "{\n\t\t\t\t\ttemp[data.length() - num + m] = card[m];\n\t\t\t\t}", "{\n\t\t\t\t\ttemp[data.length() - num + m] = card[m];\n\t\t\t\t}", "temp[data.length() - num + m] = card[m]", "temp[data.length() - num + m]", "temp", "data.length() - num + m", "data.length() - num", "data.length()", "data.length", "data", "num", "m", "card[m]", "card", "m", "for(int m = num;m < data.length();m++){\n\t\t\t\t\ttemp[m - num] = card[m];\n\t\t\t\t}", "int m = num;", "int m = num;", "m", "num", "m < data.length()", "m", "data.length()", "data.length", "data", "m++", "m++", "m", "{\n\t\t\t\t\ttemp[m - num] = card[m];\n\t\t\t\t}", "{\n\t\t\t\t\ttemp[m - num] = card[m];\n\t\t\t\t}", "temp[m - num] = card[m]", "temp[m - num]", "temp", "m - num", "m", "num", "card[m]", "card", "m", "for(int m = 0;m < data.length();m++){\n\t\t\t\t\tcard[m] = temp[m];\n\t\t\t\t}", "int m = 0;", "int m = 0;", "m", "0", "m < data.length()", "m", "data.length()", "data.length", "data", "m++", "m++", "m", "{\n\t\t\t\t\tcard[m] = temp[m];\n\t\t\t\t}", "{\n\t\t\t\t\tcard[m] = temp[m];\n\t\t\t\t}", "card[m] = temp[m]", "card[m]", "card", "m", "temp[m]", "temp", "m", "System.out.println(card)", "System.out.println", "System.out", "System", "System.out", "card", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\tString data = sc.next();\n\t\t\tchar[] card = data.toCharArray();\n\n\t\t\tif(data.equals(\"-\")) break;\n\n\t\t\tchar[] temp = new char[data.length()];\n\n\t\t\tint n = sc.nextInt();\n\t\t\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\tint num = sc.nextInt();\n\n\t\t\t\tfor(int m = 0;m < num;m++){\n\t\t\t\t\ttemp[data.length() - num + m] = card[m];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int m = num;m < data.length();m++){\n\t\t\t\t\ttemp[m - num] = card[m];\n\t\t\t\t}\n\n\t\t\t\tfor(int m = 0;m < data.length();m++){\n\t\t\t\t\tcard[m] = temp[m];\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(card);\n\t\t}\n\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\tString data = sc.next();\n\t\t\tchar[] card = data.toCharArray();\n\n\t\t\tif(data.equals(\"-\")) break;\n\n\t\t\tchar[] temp = new char[data.length()];\n\n\t\t\tint n = sc.nextInt();\n\t\t\n\t\t\tfor(int i = 0;i < n;i++){\n\t\t\t\tint num = sc.nextInt();\n\n\t\t\t\tfor(int m = 0;m < num;m++){\n\t\t\t\t\ttemp[data.length() - num + m] = card[m];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int m = num;m < data.length();m++){\n\t\t\t\t\ttemp[m - num] = card[m];\n\t\t\t\t}\n\n\t\t\t\tfor(int m = 0;m < data.length();m++){\n\t\t\t\t\tcard[m] = temp[m];\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(card);\n\t\t}\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(true){ String data = sc.next(); char[] card = data.toCharArray(); if(data.equals("-")) break; char[] temp = new char[data.length()]; int n = sc.nextInt(); for(int i = 0;i < n;i++){ int num = sc.nextInt(); for(int m = 0;m < num;m++){ temp[data.length() - num + m] = card[m]; } for(int m = num;m < data.length();m++){ temp[m - num] = card[m]; } for(int m = 0;m < data.length();m++){ card[m] = temp[m]; } } System.out.println(card); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 41, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 13, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 87, 5 ], [ 87, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 14, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 35 ], [ 35, 36 ], [ 14, 37 ], [ 37, 38 ], [ 14, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 39, 47 ], [ 47, 48 ], [ 48, 49 ], [ 39, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 51, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 59, 63 ], [ 51, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 51, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 14, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 8, 81 ], [ 81, 82 ], [ 82, 83 ], [ 6, 84 ], [ 84, 85 ], [ 0, 86 ], [ 86, 87 ], [ 86, 88 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while(true){\n String a = sc.next();\n if(a.equals(\"-\")){\n break;\n }\n int b = sc.nextInt();\n int i = 0;\n String a1, a2;\n \n \n for (i = 0; i < b; i++) {\n int c= sc.nextInt();\n\n \n \n a1=a.substring(0,c);\n a2=a.substring(c);\n a=a2+a1;\n }\n \n System.out.println(a);\n }\n sc.close();\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while(true){\n String a = sc.next();\n if(a.equals(\"-\")){\n break;\n }\n int b = sc.nextInt();\n int i = 0;\n String a1, a2;\n \n \n for (i = 0; i < b; i++) {\n int c= sc.nextInt();\n\n \n \n a1=a.substring(0,c);\n a2=a.substring(c);\n a=a2+a1;\n }\n \n System.out.println(a);\n }\n sc.close();\n }\n\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while(true){\n String a = sc.next();\n if(a.equals(\"-\")){\n break;\n }\n int b = sc.nextInt();\n int i = 0;\n String a1, a2;\n \n \n for (i = 0; i < b; i++) {\n int c= sc.nextInt();\n\n \n \n a1=a.substring(0,c);\n a2=a.substring(c);\n a=a2+a1;\n }\n \n System.out.println(a);\n }\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n while(true){\n String a = sc.next();\n if(a.equals(\"-\")){\n break;\n }\n int b = sc.nextInt();\n int i = 0;\n String a1, a2;\n \n \n for (i = 0; i < b; i++) {\n int c= sc.nextInt();\n\n \n \n a1=a.substring(0,c);\n a2=a.substring(c);\n a=a2+a1;\n }\n \n System.out.println(a);\n }\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n String a = sc.next();\n if(a.equals(\"-\")){\n break;\n }\n int b = sc.nextInt();\n int i = 0;\n String a1, a2;\n \n \n for (i = 0; i < b; i++) {\n int c= sc.nextInt();\n\n \n \n a1=a.substring(0,c);\n a2=a.substring(c);\n a=a2+a1;\n }\n \n System.out.println(a);\n }", "true", "{\n String a = sc.next();\n if(a.equals(\"-\")){\n break;\n }\n int b = sc.nextInt();\n int i = 0;\n String a1, a2;\n \n \n for (i = 0; i < b; i++) {\n int c= sc.nextInt();\n\n \n \n a1=a.substring(0,c);\n a2=a.substring(c);\n a=a2+a1;\n }\n \n System.out.println(a);\n }", "String a = sc.next();", "a", "sc.next()", "sc.next", "sc", "if(a.equals(\"-\")){\n break;\n }", "a.equals(\"-\")", "a.equals", "a", "\"-\"", "{\n break;\n }", "break;", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int i = 0;", "i", "0", "String a1", "a1", "a2;", "a2", "for (i = 0; i < b; i++) {\n int c= sc.nextInt();\n\n \n \n a1=a.substring(0,c);\n a2=a.substring(c);\n a=a2+a1;\n }", "i = 0;", "i = 0", "i", "0", "i < b", "i", "b", "i++", "i++", "i", "{\n int c= sc.nextInt();\n\n \n \n a1=a.substring(0,c);\n a2=a.substring(c);\n a=a2+a1;\n }", "{\n int c= sc.nextInt();\n\n \n \n a1=a.substring(0,c);\n a2=a.substring(c);\n a=a2+a1;\n }", "int c= sc.nextInt();", "c", "sc.nextInt()", "sc.nextInt", "sc", "a1=a.substring(0,c)", "a1", "a.substring(0,c)", "a.substring", "a", "0", "c", "a2=a.substring(c)", "a2", "a.substring(c)", "a.substring", "a", "c", "a=a2+a1", "a", "a2+a1", "a2", "a1", "System.out.println(a)", "System.out.println", "System.out", "System", "System.out", "a", "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 while(true){\n String a = sc.next();\n if(a.equals(\"-\")){\n break;\n }\n int b = sc.nextInt();\n int i = 0;\n String a1, a2;\n \n \n for (i = 0; i < b; i++) {\n int c= sc.nextInt();\n\n \n \n a1=a.substring(0,c);\n a2=a.substring(c);\n a=a2+a1;\n }\n \n System.out.println(a);\n }\n sc.close();\n }\n\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while(true){\n String a = sc.next();\n if(a.equals(\"-\")){\n break;\n }\n int b = sc.nextInt();\n int i = 0;\n String a1, a2;\n \n \n for (i = 0; i < b; i++) {\n int c= sc.nextInt();\n\n \n \n a1=a.substring(0,c);\n a2=a.substring(c);\n a=a2+a1;\n }\n \n System.out.println(a);\n }\n sc.close();\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(true){ String a = sc.next(); if(a.equals("-")){ break; } int b = sc.nextInt(); int i = 0; String a1, a2; for (i = 0; i < b; i++) { int c= sc.nextInt(); a1=a.substring(0,c); a2=a.substring(c); a=a2+a1; } System.out.println(a); } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 40, 4, 18, 13, 17, 30, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 42, 2, 13, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 13, 41, 13, 4, 18, 13, 13, 4, 18, 13, 0, 13, 2, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 84, 5 ], [ 84, 6 ], [ 6, 7 ], [ 6, 8 ], [ 84, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 9, 32 ], [ 32, 33 ], [ 84, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 36, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 46, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 54, 58 ], [ 46, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 61, 65 ], [ 65, 66 ], [ 66, 67 ], [ 46, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 46, 73 ], [ 73, 74 ], [ 36, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 34, 81 ], [ 81, 82 ], [ 0, 83 ], [ 83, 84 ], [ 83, 85 ] ]
[ "import java.util.*;\npublic class Main{\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args){\n while(kbd.hasNext()){\n String cards = kbd.next();\n if(!cards.equals(\"-\")){\n solve(cards);\n }\n }\n }\n \n static void solve(String cards){\n int m = kbd.nextInt();\n while(m > 0){\n int a = kbd.nextInt();\n String fore = cards.substring(0, a);\n String back = cards.substring(a, cards.length());\n cards = back+fore;\n m--;\n }\n System.out.println(cards);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args){\n while(kbd.hasNext()){\n String cards = kbd.next();\n if(!cards.equals(\"-\")){\n solve(cards);\n }\n }\n }\n \n static void solve(String cards){\n int m = kbd.nextInt();\n while(m > 0){\n int a = kbd.nextInt();\n String fore = cards.substring(0, a);\n String back = cards.substring(a, cards.length());\n cards = back+fore;\n m--;\n }\n System.out.println(cards);\n }\n}", "Main", "static Scanner kbd = new Scanner(System.in);", "kbd", "new Scanner(System.in)", "public static void main(String[] args){\n while(kbd.hasNext()){\n String cards = kbd.next();\n if(!cards.equals(\"-\")){\n solve(cards);\n }\n }\n }", "main", "{\n while(kbd.hasNext()){\n String cards = kbd.next();\n if(!cards.equals(\"-\")){\n solve(cards);\n }\n }\n }", "while(kbd.hasNext()){\n String cards = kbd.next();\n if(!cards.equals(\"-\")){\n solve(cards);\n }\n }", "kbd.hasNext()", "kbd.hasNext", "kbd", "{\n String cards = kbd.next();\n if(!cards.equals(\"-\")){\n solve(cards);\n }\n }", "String cards = kbd.next();", "cards", "kbd.next()", "kbd.next", "kbd", "if(!cards.equals(\"-\")){\n solve(cards);\n }", "!cards.equals(\"-\")", "cards.equals(\"-\")", "cards.equals", "cards", "\"-\"", "{\n solve(cards);\n }", "solve(cards)", "solve", "cards", "String[] args", "args", "static void solve(String cards){\n int m = kbd.nextInt();\n while(m > 0){\n int a = kbd.nextInt();\n String fore = cards.substring(0, a);\n String back = cards.substring(a, cards.length());\n cards = back+fore;\n m--;\n }\n System.out.println(cards);\n }", "solve", "{\n int m = kbd.nextInt();\n while(m > 0){\n int a = kbd.nextInt();\n String fore = cards.substring(0, a);\n String back = cards.substring(a, cards.length());\n cards = back+fore;\n m--;\n }\n System.out.println(cards);\n }", "int m = kbd.nextInt();", "m", "kbd.nextInt()", "kbd.nextInt", "kbd", "while(m > 0){\n int a = kbd.nextInt();\n String fore = cards.substring(0, a);\n String back = cards.substring(a, cards.length());\n cards = back+fore;\n m--;\n }", "m > 0", "m", "0", "{\n int a = kbd.nextInt();\n String fore = cards.substring(0, a);\n String back = cards.substring(a, cards.length());\n cards = back+fore;\n m--;\n }", "int a = kbd.nextInt();", "a", "kbd.nextInt()", "kbd.nextInt", "kbd", "String fore = cards.substring(0, a);", "fore", "cards.substring(0, a)", "cards.substring", "cards", "0", "a", "String back = cards.substring(a, cards.length());", "back", "cards.substring(a, cards.length())", "cards.substring", "cards", "a", "cards.length()", "cards.length", "cards", "cards = back+fore", "cards", "back+fore", "back", "fore", "m--", "m", "System.out.println(cards)", "System.out.println", "System.out", "System", "System.out", "cards", "String cards", "cards", "public class Main{\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args){\n while(kbd.hasNext()){\n String cards = kbd.next();\n if(!cards.equals(\"-\")){\n solve(cards);\n }\n }\n }\n \n static void solve(String cards){\n int m = kbd.nextInt();\n while(m > 0){\n int a = kbd.nextInt();\n String fore = cards.substring(0, a);\n String back = cards.substring(a, cards.length());\n cards = back+fore;\n m--;\n }\n System.out.println(cards);\n }\n}", "public class Main{\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args){\n while(kbd.hasNext()){\n String cards = kbd.next();\n if(!cards.equals(\"-\")){\n solve(cards);\n }\n }\n }\n \n static void solve(String cards){\n int m = kbd.nextInt();\n while(m > 0){\n int a = kbd.nextInt();\n String fore = cards.substring(0, a);\n String back = cards.substring(a, cards.length());\n cards = back+fore;\n m--;\n }\n System.out.println(cards);\n }\n}", "Main" ]
import java.util.*; public class Main{ static Scanner kbd = new Scanner(System.in); public static void main(String[] args){ while(kbd.hasNext()){ String cards = kbd.next(); if(!cards.equals("-")){ solve(cards); } } } static void solve(String cards){ int m = kbd.nextInt(); while(m > 0){ int a = kbd.nextInt(); String fore = cards.substring(0, a); String back = cards.substring(a, cards.length()); cards = back+fore; m--; } System.out.println(cards); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 17, 13, 41, 13, 4, 18, 13, 13, 4, 18, 13, 0, 13, 4, 18, 4, 18, 4, 18, 13, 13, 13, 29, 13, 23, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 18, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 22, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 22, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 39, 47 ], [ 47, 48 ], [ 48, 49 ], [ 39, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 51, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 59, 62 ], [ 22, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 6, 69 ], [ 69, 70 ], [ 4, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 79, 83 ], [ 73, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 86, 90 ], [ 90, 91 ], [ 91, 92 ], [ 73, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 97, 103 ], [ 73, 104 ], [ 104, 105 ], [ 71, 106 ], [ 106, 107 ], [ 71, 108 ], [ 108, 109 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String cards;\n int count, shuffle;\n \n while (in.hasNext()) {\n cards = in.next();\n if (cards.equals(\"-\")) break;\n count = in.nextInt();\n \n for (int i = 0; i < count; i++) {\n shuffle = in.nextInt();\n cards = shuffle(cards, shuffle);\n }\n System.out.println(cards);\n }\n }\n public static String shuffle(String cards, int shuffle) {\n StringBuilder output = new StringBuilder();\n String first = cards.substring(0, shuffle);\n String last = cards.substring(shuffle, cards.length());\n cards = output.append(last).append(first).toString();\n return cards;\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String cards;\n int count, shuffle;\n \n while (in.hasNext()) {\n cards = in.next();\n if (cards.equals(\"-\")) break;\n count = in.nextInt();\n \n for (int i = 0; i < count; i++) {\n shuffle = in.nextInt();\n cards = shuffle(cards, shuffle);\n }\n System.out.println(cards);\n }\n }\n public static String shuffle(String cards, int shuffle) {\n StringBuilder output = new StringBuilder();\n String first = cards.substring(0, shuffle);\n String last = cards.substring(shuffle, cards.length());\n cards = output.append(last).append(first).toString();\n return cards;\n }\n}", "Main", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String cards;\n int count, shuffle;\n \n while (in.hasNext()) {\n cards = in.next();\n if (cards.equals(\"-\")) break;\n count = in.nextInt();\n \n for (int i = 0; i < count; i++) {\n shuffle = in.nextInt();\n cards = shuffle(cards, shuffle);\n }\n System.out.println(cards);\n }\n }", "main", "{\n Scanner in = new Scanner(System.in);\n String cards;\n int count, shuffle;\n \n while (in.hasNext()) {\n cards = in.next();\n if (cards.equals(\"-\")) break;\n count = in.nextInt();\n \n for (int i = 0; i < count; i++) {\n shuffle = in.nextInt();\n cards = shuffle(cards, shuffle);\n }\n System.out.println(cards);\n }\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "String cards;", "cards", "int count", "count", "shuffle;", "shuffle", "while (in.hasNext()) {\n cards = in.next();\n if (cards.equals(\"-\")) break;\n count = in.nextInt();\n \n for (int i = 0; i < count; i++) {\n shuffle = in.nextInt();\n cards = shuffle(cards, shuffle);\n }\n System.out.println(cards);\n }", "in.hasNext()", "in.hasNext", "in", "{\n cards = in.next();\n if (cards.equals(\"-\")) break;\n count = in.nextInt();\n \n for (int i = 0; i < count; i++) {\n shuffle = in.nextInt();\n cards = shuffle(cards, shuffle);\n }\n System.out.println(cards);\n }", "cards = in.next()", "cards", "in.next()", "in.next", "in", "if (cards.equals(\"-\")) break;", "cards.equals(\"-\")", "cards.equals", "cards", "\"-\"", "break;", "count = in.nextInt()", "count", "in.nextInt()", "in.nextInt", "in", "for (int i = 0; i < count; i++) {\n shuffle = in.nextInt();\n cards = shuffle(cards, shuffle);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < count", "i", "count", "i++", "i++", "i", "{\n shuffle = in.nextInt();\n cards = shuffle(cards, shuffle);\n }", "{\n shuffle = in.nextInt();\n cards = shuffle(cards, shuffle);\n }", "shuffle = in.nextInt()", "shuffle", "in.nextInt()", "in.nextInt", "in", "cards = shuffle(cards, shuffle)", "cards", "shuffle(cards, shuffle)", "shuffle", "cards", "shuffle", "System.out.println(cards)", "System.out.println", "System.out", "System", "System.out", "cards", "String[] args", "args", "public static String shuffle(String cards, int shuffle) {\n StringBuilder output = new StringBuilder();\n String first = cards.substring(0, shuffle);\n String last = cards.substring(shuffle, cards.length());\n cards = output.append(last).append(first).toString();\n return cards;\n }", "shuffle", "{\n StringBuilder output = new StringBuilder();\n String first = cards.substring(0, shuffle);\n String last = cards.substring(shuffle, cards.length());\n cards = output.append(last).append(first).toString();\n return cards;\n }", "StringBuilder output = new StringBuilder();", "output", "new StringBuilder()", "String first = cards.substring(0, shuffle);", "first", "cards.substring(0, shuffle)", "cards.substring", "cards", "0", "shuffle", "String last = cards.substring(shuffle, cards.length());", "last", "cards.substring(shuffle, cards.length())", "cards.substring", "cards", "shuffle", "cards.length()", "cards.length", "cards", "cards = output.append(last).append(first).toString()", "cards", "output.append(last).append(first).toString()", "output.append(last).append(first).toString", "output.append(last).append(first)", "output.append(last).append", "output.append(last)", "output.append", "output", "last", "first", "return cards;", "cards", "String cards", "cards", "int shuffle", "shuffle" ]
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String cards; int count, shuffle; while (in.hasNext()) { cards = in.next(); if (cards.equals("-")) break; count = in.nextInt(); for (int i = 0; i < count; i++) { shuffle = in.nextInt(); cards = shuffle(cards, shuffle); } System.out.println(cards); } } public static String shuffle(String cards, int shuffle) { StringBuilder output = new StringBuilder(); String first = cards.substring(0, shuffle); String last = cards.substring(shuffle, cards.length()); cards = output.append(last).append(first).toString(); return cards; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 2, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 17, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 78, 5 ], [ 78, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 22, 27 ], [ 16, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 16, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 45, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 53, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 61, 65 ], [ 45, 66 ], [ 66, 67 ], [ 66, 68 ], [ 16, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 6, 75 ], [ 75, 76 ], [ 0, 77 ], [ 77, 78 ], [ 77, 79 ] ]
[ "import java.util.Scanner;\n\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\twhile(true) {\n\t\t\t\tString str = sc.next();\n\t\t\t\tif (str.equals(\"-\"))\tbreak;\n\t\t\t\t\n\t\t\t\tint m = sc.nextInt();\n\t\t\t\tfor(int i=0; i<m; i++) {\n\t\t\t\t\tint h = sc.nextInt();\n\t\t\t\t\t\n\t\t\t\t\tString s = str.substring(h,str.length()) + str.substring(0,h);\n\t\t\t\t\tstr = s;\n\t\t\t//\t\tSystem.out.println(str);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\twhile(true) {\n\t\t\t\tString str = sc.next();\n\t\t\t\tif (str.equals(\"-\"))\tbreak;\n\t\t\t\t\n\t\t\t\tint m = sc.nextInt();\n\t\t\t\tfor(int i=0; i<m; i++) {\n\t\t\t\t\tint h = sc.nextInt();\n\t\t\t\t\t\n\t\t\t\t\tString s = str.substring(h,str.length()) + str.substring(0,h);\n\t\t\t\t\tstr = s;\n\t\t\t//\t\tSystem.out.println(str);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\twhile(true) {\n\t\t\t\tString str = sc.next();\n\t\t\t\tif (str.equals(\"-\"))\tbreak;\n\t\t\t\t\n\t\t\t\tint m = sc.nextInt();\n\t\t\t\tfor(int i=0; i<m; i++) {\n\t\t\t\t\tint h = sc.nextInt();\n\t\t\t\t\t\n\t\t\t\t\tString s = str.substring(h,str.length()) + str.substring(0,h);\n\t\t\t\t\tstr = s;\n\t\t\t//\t\tSystem.out.println(str);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t}", "main", "{\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\twhile(true) {\n\t\t\t\tString str = sc.next();\n\t\t\t\tif (str.equals(\"-\"))\tbreak;\n\t\t\t\t\n\t\t\t\tint m = sc.nextInt();\n\t\t\t\tfor(int i=0; i<m; i++) {\n\t\t\t\t\tint h = sc.nextInt();\n\t\t\t\t\t\n\t\t\t\t\tString s = str.substring(h,str.length()) + str.substring(0,h);\n\t\t\t\t\tstr = s;\n\t\t\t//\t\tSystem.out.println(str);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t}", "try(Scanner sc = new Scanner(System.in)) {\n\t\t\twhile(true) {\n\t\t\t\tString str = sc.next();\n\t\t\t\tif (str.equals(\"-\"))\tbreak;\n\t\t\t\t\n\t\t\t\tint m = sc.nextInt();\n\t\t\t\tfor(int i=0; i<m; i++) {\n\t\t\t\t\tint h = sc.nextInt();\n\t\t\t\t\t\n\t\t\t\t\tString s = str.substring(h,str.length()) + str.substring(0,h);\n\t\t\t\t\tstr = s;\n\t\t\t//\t\tSystem.out.println(str);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "{\n\t\t\twhile(true) {\n\t\t\t\tString str = sc.next();\n\t\t\t\tif (str.equals(\"-\"))\tbreak;\n\t\t\t\t\n\t\t\t\tint m = sc.nextInt();\n\t\t\t\tfor(int i=0; i<m; i++) {\n\t\t\t\t\tint h = sc.nextInt();\n\t\t\t\t\t\n\t\t\t\t\tString s = str.substring(h,str.length()) + str.substring(0,h);\n\t\t\t\t\tstr = s;\n\t\t\t//\t\tSystem.out.println(str);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "Scanner sc = new Scanner(System.in)", "Scanner sc = new Scanner(System.in)", "new Scanner(System.in)", "while(true) {\n\t\t\t\tString str = sc.next();\n\t\t\t\tif (str.equals(\"-\"))\tbreak;\n\t\t\t\t\n\t\t\t\tint m = sc.nextInt();\n\t\t\t\tfor(int i=0; i<m; i++) {\n\t\t\t\t\tint h = sc.nextInt();\n\t\t\t\t\t\n\t\t\t\t\tString s = str.substring(h,str.length()) + str.substring(0,h);\n\t\t\t\t\tstr = s;\n\t\t\t//\t\tSystem.out.println(str);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}", "true", "{\n\t\t\t\tString str = sc.next();\n\t\t\t\tif (str.equals(\"-\"))\tbreak;\n\t\t\t\t\n\t\t\t\tint m = sc.nextInt();\n\t\t\t\tfor(int i=0; i<m; i++) {\n\t\t\t\t\tint h = sc.nextInt();\n\t\t\t\t\t\n\t\t\t\t\tString s = str.substring(h,str.length()) + str.substring(0,h);\n\t\t\t\t\tstr = s;\n\t\t\t//\t\tSystem.out.println(str);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}", "String str = sc.next();", "str", "sc.next()", "sc.next", "sc", "if (str.equals(\"-\"))\tbreak;", "str.equals(\"-\")", "str.equals", "str", "\"-\"", "break;", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0; i<m; i++) {\n\t\t\t\t\tint h = sc.nextInt();\n\t\t\t\t\t\n\t\t\t\t\tString s = str.substring(h,str.length()) + str.substring(0,h);\n\t\t\t\t\tstr = s;\n\t\t\t//\t\tSystem.out.println(str);\n\t\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<m", "i", "m", "i++", "i++", "i", "{\n\t\t\t\t\tint h = sc.nextInt();\n\t\t\t\t\t\n\t\t\t\t\tString s = str.substring(h,str.length()) + str.substring(0,h);\n\t\t\t\t\tstr = s;\n\t\t\t//\t\tSystem.out.println(str);\n\t\t\t\t}", "{\n\t\t\t\t\tint h = sc.nextInt();\n\t\t\t\t\t\n\t\t\t\t\tString s = str.substring(h,str.length()) + str.substring(0,h);\n\t\t\t\t\tstr = s;\n\t\t\t//\t\tSystem.out.println(str);\n\t\t\t\t}", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "String s = str.substring(h,str.length()) + str.substring(0,h);", "s", "str.substring(h,str.length()) + str.substring(0,h)", "str.substring(h,str.length())", "str.substring", "str", "h", "str.length()", "str.length", "str", "str.substring(0,h)", "str.substring", "str", "0", "h", "str = s", "str", "s", "System.out.println(str)", "System.out.println", "System.out", "System", "System.out", "str", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\twhile(true) {\n\t\t\t\tString str = sc.next();\n\t\t\t\tif (str.equals(\"-\"))\tbreak;\n\t\t\t\t\n\t\t\t\tint m = sc.nextInt();\n\t\t\t\tfor(int i=0; i<m; i++) {\n\t\t\t\t\tint h = sc.nextInt();\n\t\t\t\t\t\n\t\t\t\t\tString s = str.substring(h,str.length()) + str.substring(0,h);\n\t\t\t\t\tstr = s;\n\t\t\t//\t\tSystem.out.println(str);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\t\t\twhile(true) {\n\t\t\t\tString str = sc.next();\n\t\t\t\tif (str.equals(\"-\"))\tbreak;\n\t\t\t\t\n\t\t\t\tint m = sc.nextInt();\n\t\t\t\tfor(int i=0; i<m; i++) {\n\t\t\t\t\tint h = sc.nextInt();\n\t\t\t\t\t\n\t\t\t\t\tString s = str.substring(h,str.length()) + str.substring(0,h);\n\t\t\t\t\tstr = s;\n\t\t\t//\t\tSystem.out.println(str);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { try(Scanner sc = new Scanner(System.in)) { while(true) { String str = sc.next(); if (str.equals("-")) break; int m = sc.nextInt(); for(int i=0; i<m; i++) { int h = sc.nextInt(); String s = str.substring(h,str.length()) + str.substring(0,h); str = s; // System.out.println(str); } System.out.println(str); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 13, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 96, 5 ], [ 96, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 39, 40 ], [ 28, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 28, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 28, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 51, 59 ], [ 59, 60 ], [ 60, 61 ], [ 51, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 63, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 71, 75 ], [ 63, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 63, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 28, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 6, 93 ], [ 93, 94 ], [ 0, 95 ], [ 95, 96 ], [ 95, 97 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int i,n,h,len;\n String s,sa,sb;\n while(true) {\n \ts=scan.next();\n \tif(s.equals(\"-\")) {\n \t\tbreak;\n \t}\n \tlen=s.length();\n \tn=scan.nextInt();\n \tfor(i=0;i<n;i++) {\n \t\th=scan.nextInt();\n \t\tsa=s.substring(0,h);\n \t\tsb=s.substring(h);\n \t\ts=sb+sa;\n \t}\n \tSystem.out.println(s);\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 i,n,h,len;\n String s,sa,sb;\n while(true) {\n \ts=scan.next();\n \tif(s.equals(\"-\")) {\n \t\tbreak;\n \t}\n \tlen=s.length();\n \tn=scan.nextInt();\n \tfor(i=0;i<n;i++) {\n \t\th=scan.nextInt();\n \t\tsa=s.substring(0,h);\n \t\tsb=s.substring(h);\n \t\ts=sb+sa;\n \t}\n \tSystem.out.println(s);\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int i,n,h,len;\n String s,sa,sb;\n while(true) {\n \ts=scan.next();\n \tif(s.equals(\"-\")) {\n \t\tbreak;\n \t}\n \tlen=s.length();\n \tn=scan.nextInt();\n \tfor(i=0;i<n;i++) {\n \t\th=scan.nextInt();\n \t\tsa=s.substring(0,h);\n \t\tsb=s.substring(h);\n \t\ts=sb+sa;\n \t}\n \tSystem.out.println(s);\n }\n }", "main", "{\n Scanner scan=new Scanner(System.in);\n int i,n,h,len;\n String s,sa,sb;\n while(true) {\n \ts=scan.next();\n \tif(s.equals(\"-\")) {\n \t\tbreak;\n \t}\n \tlen=s.length();\n \tn=scan.nextInt();\n \tfor(i=0;i<n;i++) {\n \t\th=scan.nextInt();\n \t\tsa=s.substring(0,h);\n \t\tsb=s.substring(h);\n \t\ts=sb+sa;\n \t}\n \tSystem.out.println(s);\n }\n }", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "int i", "i", "n", "n", "h", "h", "len;", "len", "String s", "s", "sa", "sa", "sb;", "sb", "while(true) {\n \ts=scan.next();\n \tif(s.equals(\"-\")) {\n \t\tbreak;\n \t}\n \tlen=s.length();\n \tn=scan.nextInt();\n \tfor(i=0;i<n;i++) {\n \t\th=scan.nextInt();\n \t\tsa=s.substring(0,h);\n \t\tsb=s.substring(h);\n \t\ts=sb+sa;\n \t}\n \tSystem.out.println(s);\n }", "true", "{\n \ts=scan.next();\n \tif(s.equals(\"-\")) {\n \t\tbreak;\n \t}\n \tlen=s.length();\n \tn=scan.nextInt();\n \tfor(i=0;i<n;i++) {\n \t\th=scan.nextInt();\n \t\tsa=s.substring(0,h);\n \t\tsb=s.substring(h);\n \t\ts=sb+sa;\n \t}\n \tSystem.out.println(s);\n }", "s=scan.next()", "s", "scan.next()", "scan.next", "scan", "if(s.equals(\"-\")) {\n \t\tbreak;\n \t}", "s.equals(\"-\")", "s.equals", "s", "\"-\"", "{\n \t\tbreak;\n \t}", "break;", "len=s.length()", "len", "s.length()", "s.length", "s", "n=scan.nextInt()", "n", "scan.nextInt()", "scan.nextInt", "scan", "for(i=0;i<n;i++) {\n \t\th=scan.nextInt();\n \t\tsa=s.substring(0,h);\n \t\tsb=s.substring(h);\n \t\ts=sb+sa;\n \t}", "i=0;", "i=0", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n \t\th=scan.nextInt();\n \t\tsa=s.substring(0,h);\n \t\tsb=s.substring(h);\n \t\ts=sb+sa;\n \t}", "{\n \t\th=scan.nextInt();\n \t\tsa=s.substring(0,h);\n \t\tsb=s.substring(h);\n \t\ts=sb+sa;\n \t}", "h=scan.nextInt()", "h", "scan.nextInt()", "scan.nextInt", "scan", "sa=s.substring(0,h)", "sa", "s.substring(0,h)", "s.substring", "s", "0", "h", "sb=s.substring(h)", "sb", "s.substring(h)", "s.substring", "s", "h", "s=sb+sa", "s", "sb+sa", "sb", "sa", "System.out.println(s)", "System.out.println", "System.out", "System", "System.out", "s", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int i,n,h,len;\n String s,sa,sb;\n while(true) {\n \ts=scan.next();\n \tif(s.equals(\"-\")) {\n \t\tbreak;\n \t}\n \tlen=s.length();\n \tn=scan.nextInt();\n \tfor(i=0;i<n;i++) {\n \t\th=scan.nextInt();\n \t\tsa=s.substring(0,h);\n \t\tsb=s.substring(h);\n \t\ts=sb+sa;\n \t}\n \tSystem.out.println(s);\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int i,n,h,len;\n String s,sa,sb;\n while(true) {\n \ts=scan.next();\n \tif(s.equals(\"-\")) {\n \t\tbreak;\n \t}\n \tlen=s.length();\n \tn=scan.nextInt();\n \tfor(i=0;i<n;i++) {\n \t\th=scan.nextInt();\n \t\tsa=s.substring(0,h);\n \t\tsb=s.substring(h);\n \t\ts=sb+sa;\n \t}\n \tSystem.out.println(s);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan=new Scanner(System.in); int i,n,h,len; String s,sa,sb; while(true) { s=scan.next(); if(s.equals("-")) { break; } len=s.length(); n=scan.nextInt(); for(i=0;i<n;i++) { h=scan.nextInt(); sa=s.substring(0,h); sb=s.substring(h); s=sb+sa; } System.out.println(s); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 42, 40, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 28, 13, 4, 18, 13, 30, 30, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 28, 13, 13, 30, 30, 4, 18, 18, 13, 13, 13, 4, 18, 18, 13, 13, 0, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 113, 8 ], [ 113, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 20, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 32, 33 ], [ 33, 34 ], [ 26, 35 ], [ 35, 36 ], [ 35, 37 ], [ 26, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 38, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 26, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 49, 57 ], [ 57, 58 ], [ 58, 59 ], [ 49, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 68, 69 ], [ 61, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 79, 80 ], [ 70, 81 ], [ 82, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 86, 87 ], [ 87, 88 ], [ 26, 89 ], [ 89, 90 ], [ 89, 91 ], [ 89, 92 ], [ 93, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 26, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 26, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 9, 110 ], [ 110, 111 ], [ 0, 112 ], [ 112, 113 ], [ 112, 114 ] ]
[ "import java.util.Scanner;\nimport java.util.*;\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 n = sc.nextLine();\n\n\t\twhile(!n.equals(\"-\")){\n\t\t int shuffle_count = Integer.parseInt(sc.nextLine());\n\t\t Queue<Character> cards = new ArrayDeque<>();\n\t\t \n\t\t for(char card: n.toCharArray()){\n\t\t cards.add(card);\n\t\t }\n\t\t \n\t\t for (int i = 0; i < shuffle_count; i++){\n\t\t int shuffle_cards = Integer.parseInt(sc.nextLine());\n\t\t \n\t\t for (int l = 0; l < shuffle_cards; l++){\n\t\t cards.add(cards.poll());\n\t\t }\n\t\t }\n\t\t \n\t\t for (Character card: cards){\n\t\t System.out.print(card);\n\t\t } \n\t\t \n\t\t System.out.println();\n\t\t \n\t\t n = sc.nextLine();\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.*;", "util.*", "java", "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 n = sc.nextLine();\n\n\t\twhile(!n.equals(\"-\")){\n\t\t int shuffle_count = Integer.parseInt(sc.nextLine());\n\t\t Queue<Character> cards = new ArrayDeque<>();\n\t\t \n\t\t for(char card: n.toCharArray()){\n\t\t cards.add(card);\n\t\t }\n\t\t \n\t\t for (int i = 0; i < shuffle_count; i++){\n\t\t int shuffle_cards = Integer.parseInt(sc.nextLine());\n\t\t \n\t\t for (int l = 0; l < shuffle_cards; l++){\n\t\t cards.add(cards.poll());\n\t\t }\n\t\t }\n\t\t \n\t\t for (Character card: cards){\n\t\t System.out.print(card);\n\t\t } \n\t\t \n\t\t System.out.println();\n\t\t \n\t\t n = sc.nextLine();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.nextLine();\n\n\t\twhile(!n.equals(\"-\")){\n\t\t int shuffle_count = Integer.parseInt(sc.nextLine());\n\t\t Queue<Character> cards = new ArrayDeque<>();\n\t\t \n\t\t for(char card: n.toCharArray()){\n\t\t cards.add(card);\n\t\t }\n\t\t \n\t\t for (int i = 0; i < shuffle_count; i++){\n\t\t int shuffle_cards = Integer.parseInt(sc.nextLine());\n\t\t \n\t\t for (int l = 0; l < shuffle_cards; l++){\n\t\t cards.add(cards.poll());\n\t\t }\n\t\t }\n\t\t \n\t\t for (Character card: cards){\n\t\t System.out.print(card);\n\t\t } \n\t\t \n\t\t System.out.println();\n\t\t \n\t\t n = sc.nextLine();\n\t\t}\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.nextLine();\n\n\t\twhile(!n.equals(\"-\")){\n\t\t int shuffle_count = Integer.parseInt(sc.nextLine());\n\t\t Queue<Character> cards = new ArrayDeque<>();\n\t\t \n\t\t for(char card: n.toCharArray()){\n\t\t cards.add(card);\n\t\t }\n\t\t \n\t\t for (int i = 0; i < shuffle_count; i++){\n\t\t int shuffle_cards = Integer.parseInt(sc.nextLine());\n\t\t \n\t\t for (int l = 0; l < shuffle_cards; l++){\n\t\t cards.add(cards.poll());\n\t\t }\n\t\t }\n\t\t \n\t\t for (Character card: cards){\n\t\t System.out.print(card);\n\t\t } \n\t\t \n\t\t System.out.println();\n\t\t \n\t\t n = sc.nextLine();\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String n = sc.nextLine();", "n", "sc.nextLine()", "sc.nextLine", "sc", "while(!n.equals(\"-\")){\n\t\t int shuffle_count = Integer.parseInt(sc.nextLine());\n\t\t Queue<Character> cards = new ArrayDeque<>();\n\t\t \n\t\t for(char card: n.toCharArray()){\n\t\t cards.add(card);\n\t\t }\n\t\t \n\t\t for (int i = 0; i < shuffle_count; i++){\n\t\t int shuffle_cards = Integer.parseInt(sc.nextLine());\n\t\t \n\t\t for (int l = 0; l < shuffle_cards; l++){\n\t\t cards.add(cards.poll());\n\t\t }\n\t\t }\n\t\t \n\t\t for (Character card: cards){\n\t\t System.out.print(card);\n\t\t } \n\t\t \n\t\t System.out.println();\n\t\t \n\t\t n = sc.nextLine();\n\t\t}", "!n.equals(\"-\")", "n.equals(\"-\")", "n.equals", "n", "\"-\"", "{\n\t\t int shuffle_count = Integer.parseInt(sc.nextLine());\n\t\t Queue<Character> cards = new ArrayDeque<>();\n\t\t \n\t\t for(char card: n.toCharArray()){\n\t\t cards.add(card);\n\t\t }\n\t\t \n\t\t for (int i = 0; i < shuffle_count; i++){\n\t\t int shuffle_cards = Integer.parseInt(sc.nextLine());\n\t\t \n\t\t for (int l = 0; l < shuffle_cards; l++){\n\t\t cards.add(cards.poll());\n\t\t }\n\t\t }\n\t\t \n\t\t for (Character card: cards){\n\t\t System.out.print(card);\n\t\t } \n\t\t \n\t\t System.out.println();\n\t\t \n\t\t n = sc.nextLine();\n\t\t}", "int shuffle_count = Integer.parseInt(sc.nextLine());", "shuffle_count", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "Queue<Character> cards = new ArrayDeque<>();", "cards", "new ArrayDeque<>()", "for(char card: n.toCharArray()){\n\t\t cards.add(card);\n\t\t }", "char card", "n.toCharArray()", "n.toCharArray", "n", "{\n\t\t cards.add(card);\n\t\t }", "{\n\t\t cards.add(card);\n\t\t }", "cards.add(card)", "cards.add", "cards", "card", "for (int i = 0; i < shuffle_count; i++){\n\t\t int shuffle_cards = Integer.parseInt(sc.nextLine());\n\t\t \n\t\t for (int l = 0; l < shuffle_cards; l++){\n\t\t cards.add(cards.poll());\n\t\t }\n\t\t }", "int i = 0;", "int i = 0;", "i", "0", "i < shuffle_count", "i", "shuffle_count", "i++", "i++", "i", "{\n\t\t int shuffle_cards = Integer.parseInt(sc.nextLine());\n\t\t \n\t\t for (int l = 0; l < shuffle_cards; l++){\n\t\t cards.add(cards.poll());\n\t\t }\n\t\t }", "{\n\t\t int shuffle_cards = Integer.parseInt(sc.nextLine());\n\t\t \n\t\t for (int l = 0; l < shuffle_cards; l++){\n\t\t cards.add(cards.poll());\n\t\t }\n\t\t }", "int shuffle_cards = Integer.parseInt(sc.nextLine());", "shuffle_cards", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "for (int l = 0; l < shuffle_cards; l++){\n\t\t cards.add(cards.poll());\n\t\t }", "int l = 0;", "int l = 0;", "l", "0", "l < shuffle_cards", "l", "shuffle_cards", "l++", "l++", "l", "{\n\t\t cards.add(cards.poll());\n\t\t }", "{\n\t\t cards.add(cards.poll());\n\t\t }", "cards.add(cards.poll())", "cards.add", "cards", "cards.poll()", "cards.poll", "cards", "for (Character card: cards){\n\t\t System.out.print(card);\n\t\t }", "Character card", "cards", "{\n\t\t System.out.print(card);\n\t\t }", "{\n\t\t System.out.print(card);\n\t\t }", "System.out.print(card)", "System.out.print", "System.out", "System", "System.out", "card", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "n = sc.nextLine()", "n", "sc.nextLine()", "sc.nextLine", "sc", "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 n = sc.nextLine();\n\n\t\twhile(!n.equals(\"-\")){\n\t\t int shuffle_count = Integer.parseInt(sc.nextLine());\n\t\t Queue<Character> cards = new ArrayDeque<>();\n\t\t \n\t\t for(char card: n.toCharArray()){\n\t\t cards.add(card);\n\t\t }\n\t\t \n\t\t for (int i = 0; i < shuffle_count; i++){\n\t\t int shuffle_cards = Integer.parseInt(sc.nextLine());\n\t\t \n\t\t for (int l = 0; l < shuffle_cards; l++){\n\t\t cards.add(cards.poll());\n\t\t }\n\t\t }\n\t\t \n\t\t for (Character card: cards){\n\t\t System.out.print(card);\n\t\t } \n\t\t \n\t\t System.out.println();\n\t\t \n\t\t n = sc.nextLine();\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.nextLine();\n\n\t\twhile(!n.equals(\"-\")){\n\t\t int shuffle_count = Integer.parseInt(sc.nextLine());\n\t\t Queue<Character> cards = new ArrayDeque<>();\n\t\t \n\t\t for(char card: n.toCharArray()){\n\t\t cards.add(card);\n\t\t }\n\t\t \n\t\t for (int i = 0; i < shuffle_count; i++){\n\t\t int shuffle_cards = Integer.parseInt(sc.nextLine());\n\t\t \n\t\t for (int l = 0; l < shuffle_cards; l++){\n\t\t cards.add(cards.poll());\n\t\t }\n\t\t }\n\t\t \n\t\t for (Character card: cards){\n\t\t System.out.print(card);\n\t\t } \n\t\t \n\t\t System.out.println();\n\t\t \n\t\t n = sc.nextLine();\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; import java.util.*; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); String n = sc.nextLine(); while(!n.equals("-")){ int shuffle_count = Integer.parseInt(sc.nextLine()); Queue<Character> cards = new ArrayDeque<>(); for(char card: n.toCharArray()){ cards.add(card); } for (int i = 0; i < shuffle_count; i++){ int shuffle_cards = Integer.parseInt(sc.nextLine()); for (int l = 0; l < shuffle_cards; l++){ cards.add(cards.poll()); } } for (Character card: cards){ System.out.print(card); } System.out.println(); n = sc.nextLine(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 2, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 79, 5 ], [ 79, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 16, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 26, 31 ], [ 20, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 20, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 37, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 49, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 58, 62 ], [ 62, 63 ], [ 63, 64 ], [ 57, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 65, 69 ], [ 20, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 6, 76 ], [ 76, 77 ], [ 0, 78 ], [ 78, 79 ], [ 78, 80 ] ]
[ "import java.util.*;\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner (System.in);\n int times, time_count;\n while(sc.hasNext()){\n String word = sc.next();\n if(word.equals(\"-\")) break;\n times = sc.nextInt();\n for(int i = 0; i < times; i++){\n time_count = sc.nextInt();\n word = word.substring(time_count, word.length()) + word.substring(0, time_count);\n }\n System.out.println(word);\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 int times, time_count;\n while(sc.hasNext()){\n String word = sc.next();\n if(word.equals(\"-\")) break;\n times = sc.nextInt();\n for(int i = 0; i < times; i++){\n time_count = sc.nextInt();\n word = word.substring(time_count, word.length()) + word.substring(0, time_count);\n }\n System.out.println(word);\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner (System.in);\n int times, time_count;\n while(sc.hasNext()){\n String word = sc.next();\n if(word.equals(\"-\")) break;\n times = sc.nextInt();\n for(int i = 0; i < times; i++){\n time_count = sc.nextInt();\n word = word.substring(time_count, word.length()) + word.substring(0, time_count);\n }\n System.out.println(word);\n }\n }", "main", "{\n Scanner sc = new Scanner (System.in);\n int times, time_count;\n while(sc.hasNext()){\n String word = sc.next();\n if(word.equals(\"-\")) break;\n times = sc.nextInt();\n for(int i = 0; i < times; i++){\n time_count = sc.nextInt();\n word = word.substring(time_count, word.length()) + word.substring(0, time_count);\n }\n System.out.println(word);\n }\n }", "Scanner sc = new Scanner (System.in);", "sc", "new Scanner (System.in)", "int times", "times", "time_count;", "time_count", "while(sc.hasNext()){\n String word = sc.next();\n if(word.equals(\"-\")) break;\n times = sc.nextInt();\n for(int i = 0; i < times; i++){\n time_count = sc.nextInt();\n word = word.substring(time_count, word.length()) + word.substring(0, time_count);\n }\n System.out.println(word);\n }", "sc.hasNext()", "sc.hasNext", "sc", "{\n String word = sc.next();\n if(word.equals(\"-\")) break;\n times = sc.nextInt();\n for(int i = 0; i < times; i++){\n time_count = sc.nextInt();\n word = word.substring(time_count, word.length()) + word.substring(0, time_count);\n }\n System.out.println(word);\n }", "String word = sc.next();", "word", "sc.next()", "sc.next", "sc", "if(word.equals(\"-\")) break;", "word.equals(\"-\")", "word.equals", "word", "\"-\"", "break;", "times = sc.nextInt()", "times", "sc.nextInt()", "sc.nextInt", "sc", "for(int i = 0; i < times; i++){\n time_count = sc.nextInt();\n word = word.substring(time_count, word.length()) + word.substring(0, time_count);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < times", "i", "times", "i++", "i++", "i", "{\n time_count = sc.nextInt();\n word = word.substring(time_count, word.length()) + word.substring(0, time_count);\n }", "{\n time_count = sc.nextInt();\n word = word.substring(time_count, word.length()) + word.substring(0, time_count);\n }", "time_count = sc.nextInt()", "time_count", "sc.nextInt()", "sc.nextInt", "sc", "word = word.substring(time_count, word.length()) + word.substring(0, time_count)", "word", "word.substring(time_count, word.length()) + word.substring(0, time_count)", "word.substring(time_count, word.length())", "word.substring", "word", "time_count", "word.length()", "word.length", "word", "word.substring(0, time_count)", "word.substring", "word", "0", "time_count", "System.out.println(word)", "System.out.println", "System.out", "System", "System.out", "word", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner (System.in);\n int times, time_count;\n while(sc.hasNext()){\n String word = sc.next();\n if(word.equals(\"-\")) break;\n times = sc.nextInt();\n for(int i = 0; i < times; i++){\n time_count = sc.nextInt();\n word = word.substring(time_count, word.length()) + word.substring(0, time_count);\n }\n System.out.println(word);\n }\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner (System.in);\n int times, time_count;\n while(sc.hasNext()){\n String word = sc.next();\n if(word.equals(\"-\")) break;\n times = sc.nextInt();\n for(int i = 0; i < times; i++){\n time_count = sc.nextInt();\n word = word.substring(time_count, word.length()) + word.substring(0, time_count);\n }\n System.out.println(word);\n }\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner (System.in); int times, time_count; while(sc.hasNext()){ String word = sc.next(); if(word.equals("-")) break; times = sc.nextInt(); for(int i = 0; i < times; i++){ time_count = sc.nextInt(); word = word.substring(time_count, word.length()) + word.substring(0, time_count); } System.out.println(word); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 29, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 13, 41, 13, 4, 18, 13, 13, 0, 13, 2, 13, 13, 4, 18, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 81, 5 ], [ 81, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 22, 27 ], [ 16, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 16, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 45, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 53, 57 ], [ 45, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 45, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 16, 69 ], [ 69, 70 ], [ 70, 71 ], [ 16, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 6, 78 ], [ 78, 79 ], [ 0, 80 ], [ 80, 81 ], [ 80, 82 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNext()) {\n\t\t\tString pile = in.nextLine();\n\t\t\tif(pile.equals(\"-\")) return;\n\t\t\tint m = in.nextInt();\n\t\t\tfor(int i=0;i<m;i++) {\n\t\t\t\tint p = in.nextInt();\n\t\t\t\tString l = pile.substring(0, p);\n\t\t\t\tString r = pile.substring(p);\n\t\t\t\tpile = r + l;\n\t\t\t}\n\t\t\tin.nextLine();\n\t\t\tSystem.out.println(pile);\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 in = new Scanner(System.in);\n\t\twhile(in.hasNext()) {\n\t\t\tString pile = in.nextLine();\n\t\t\tif(pile.equals(\"-\")) return;\n\t\t\tint m = in.nextInt();\n\t\t\tfor(int i=0;i<m;i++) {\n\t\t\t\tint p = in.nextInt();\n\t\t\t\tString l = pile.substring(0, p);\n\t\t\t\tString r = pile.substring(p);\n\t\t\t\tpile = r + l;\n\t\t\t}\n\t\t\tin.nextLine();\n\t\t\tSystem.out.println(pile);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNext()) {\n\t\t\tString pile = in.nextLine();\n\t\t\tif(pile.equals(\"-\")) return;\n\t\t\tint m = in.nextInt();\n\t\t\tfor(int i=0;i<m;i++) {\n\t\t\t\tint p = in.nextInt();\n\t\t\t\tString l = pile.substring(0, p);\n\t\t\t\tString r = pile.substring(p);\n\t\t\t\tpile = r + l;\n\t\t\t}\n\t\t\tin.nextLine();\n\t\t\tSystem.out.println(pile);\n\t\t}\n\t}", "main", "{\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNext()) {\n\t\t\tString pile = in.nextLine();\n\t\t\tif(pile.equals(\"-\")) return;\n\t\t\tint m = in.nextInt();\n\t\t\tfor(int i=0;i<m;i++) {\n\t\t\t\tint p = in.nextInt();\n\t\t\t\tString l = pile.substring(0, p);\n\t\t\t\tString r = pile.substring(p);\n\t\t\t\tpile = r + l;\n\t\t\t}\n\t\t\tin.nextLine();\n\t\t\tSystem.out.println(pile);\n\t\t}\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "while(in.hasNext()) {\n\t\t\tString pile = in.nextLine();\n\t\t\tif(pile.equals(\"-\")) return;\n\t\t\tint m = in.nextInt();\n\t\t\tfor(int i=0;i<m;i++) {\n\t\t\t\tint p = in.nextInt();\n\t\t\t\tString l = pile.substring(0, p);\n\t\t\t\tString r = pile.substring(p);\n\t\t\t\tpile = r + l;\n\t\t\t}\n\t\t\tin.nextLine();\n\t\t\tSystem.out.println(pile);\n\t\t}", "in.hasNext()", "in.hasNext", "in", "{\n\t\t\tString pile = in.nextLine();\n\t\t\tif(pile.equals(\"-\")) return;\n\t\t\tint m = in.nextInt();\n\t\t\tfor(int i=0;i<m;i++) {\n\t\t\t\tint p = in.nextInt();\n\t\t\t\tString l = pile.substring(0, p);\n\t\t\t\tString r = pile.substring(p);\n\t\t\t\tpile = r + l;\n\t\t\t}\n\t\t\tin.nextLine();\n\t\t\tSystem.out.println(pile);\n\t\t}", "String pile = in.nextLine();", "pile", "in.nextLine()", "in.nextLine", "in", "if(pile.equals(\"-\")) return;", "pile.equals(\"-\")", "pile.equals", "pile", "\"-\"", "return;", "int m = in.nextInt();", "m", "in.nextInt()", "in.nextInt", "in", "for(int i=0;i<m;i++) {\n\t\t\t\tint p = in.nextInt();\n\t\t\t\tString l = pile.substring(0, p);\n\t\t\t\tString r = pile.substring(p);\n\t\t\t\tpile = r + l;\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<m", "i", "m", "i++", "i++", "i", "{\n\t\t\t\tint p = in.nextInt();\n\t\t\t\tString l = pile.substring(0, p);\n\t\t\t\tString r = pile.substring(p);\n\t\t\t\tpile = r + l;\n\t\t\t}", "{\n\t\t\t\tint p = in.nextInt();\n\t\t\t\tString l = pile.substring(0, p);\n\t\t\t\tString r = pile.substring(p);\n\t\t\t\tpile = r + l;\n\t\t\t}", "int p = in.nextInt();", "p", "in.nextInt()", "in.nextInt", "in", "String l = pile.substring(0, p);", "l", "pile.substring(0, p)", "pile.substring", "pile", "0", "p", "String r = pile.substring(p);", "r", "pile.substring(p)", "pile.substring", "pile", "p", "pile = r + l", "pile", "r + l", "r", "l", "in.nextLine()", "in.nextLine", "in", "System.out.println(pile)", "System.out.println", "System.out", "System", "System.out", "pile", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNext()) {\n\t\t\tString pile = in.nextLine();\n\t\t\tif(pile.equals(\"-\")) return;\n\t\t\tint m = in.nextInt();\n\t\t\tfor(int i=0;i<m;i++) {\n\t\t\t\tint p = in.nextInt();\n\t\t\t\tString l = pile.substring(0, p);\n\t\t\t\tString r = pile.substring(p);\n\t\t\t\tpile = r + l;\n\t\t\t}\n\t\t\tin.nextLine();\n\t\t\tSystem.out.println(pile);\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNext()) {\n\t\t\tString pile = in.nextLine();\n\t\t\tif(pile.equals(\"-\")) return;\n\t\t\tint m = in.nextInt();\n\t\t\tfor(int i=0;i<m;i++) {\n\t\t\t\tint p = in.nextInt();\n\t\t\t\tString l = pile.substring(0, p);\n\t\t\t\tString r = pile.substring(p);\n\t\t\t\tpile = r + l;\n\t\t\t}\n\t\t\tin.nextLine();\n\t\t\tSystem.out.println(pile);\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); while(in.hasNext()) { String pile = in.nextLine(); if(pile.equals("-")) return; int m = in.nextInt(); for(int i=0;i<m;i++) { int p = in.nextInt(); String l = pile.substring(0, p); String r = pile.substring(p); pile = r + l; } in.nextLine(); System.out.println(pile); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 0, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 4, 18, 4, 18, 13, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 96, 5 ], [ 96, 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 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 26, 31 ], [ 31, 32 ], [ 20, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 38, 39 ], [ 39, 40 ], [ 20, 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 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 60, 61 ], [ 53, 62 ], [ 62, 63 ], [ 62, 64 ], [ 53, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 65, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 77, 81 ], [ 53, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 20, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 6, 93 ], [ 93, 94 ], [ 0, 95 ], [ 95, 96 ], [ 95, 97 ] ]
[ "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 str;\n int n, h;\n\n while(true){\n str = br.readLine();\n if(str.equals(\"-\")){\n break;\n }\n n = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < n; i++){\n h = Integer.parseInt(br.readLine());\n StringBuilder sb = new StringBuilder();\n sb.append(str.substring(h, str.length())).append(str.substring(0, h));\n str = sb.toString();\n }\n System.out.println(str);\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 str;\n int n, h;\n\n while(true){\n str = br.readLine();\n if(str.equals(\"-\")){\n break;\n }\n n = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < n; i++){\n h = Integer.parseInt(br.readLine());\n StringBuilder sb = new StringBuilder();\n sb.append(str.substring(h, str.length())).append(str.substring(0, h));\n str = sb.toString();\n }\n System.out.println(str);\n }\n }\n}", "Main", "public static void main(String[]args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n int n, h;\n\n while(true){\n str = br.readLine();\n if(str.equals(\"-\")){\n break;\n }\n n = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < n; i++){\n h = Integer.parseInt(br.readLine());\n StringBuilder sb = new StringBuilder();\n sb.append(str.substring(h, str.length())).append(str.substring(0, h));\n str = sb.toString();\n }\n System.out.println(str);\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n int n, h;\n\n while(true){\n str = br.readLine();\n if(str.equals(\"-\")){\n break;\n }\n n = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < n; i++){\n h = Integer.parseInt(br.readLine());\n StringBuilder sb = new StringBuilder();\n sb.append(str.substring(h, str.length())).append(str.substring(0, h));\n str = sb.toString();\n }\n System.out.println(str);\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String str;", "str", "int n", "n", "h;", "h", "while(true){\n str = br.readLine();\n if(str.equals(\"-\")){\n break;\n }\n n = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < n; i++){\n h = Integer.parseInt(br.readLine());\n StringBuilder sb = new StringBuilder();\n sb.append(str.substring(h, str.length())).append(str.substring(0, h));\n str = sb.toString();\n }\n System.out.println(str);\n }", "true", "{\n str = br.readLine();\n if(str.equals(\"-\")){\n break;\n }\n n = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < n; i++){\n h = Integer.parseInt(br.readLine());\n StringBuilder sb = new StringBuilder();\n sb.append(str.substring(h, str.length())).append(str.substring(0, h));\n str = sb.toString();\n }\n System.out.println(str);\n }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "if(str.equals(\"-\")){\n break;\n }", "str.equals(\"-\")", "str.equals", "str", "\"-\"", "{\n break;\n }", "break;", "n = Integer.parseInt(br.readLine())", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "for(int i = 0; i < n; i++){\n h = Integer.parseInt(br.readLine());\n StringBuilder sb = new StringBuilder();\n sb.append(str.substring(h, str.length())).append(str.substring(0, h));\n str = sb.toString();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n h = Integer.parseInt(br.readLine());\n StringBuilder sb = new StringBuilder();\n sb.append(str.substring(h, str.length())).append(str.substring(0, h));\n str = sb.toString();\n }", "{\n h = Integer.parseInt(br.readLine());\n StringBuilder sb = new StringBuilder();\n sb.append(str.substring(h, str.length())).append(str.substring(0, h));\n str = sb.toString();\n }", "h = Integer.parseInt(br.readLine())", "h", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "sb.append(str.substring(h, str.length())).append(str.substring(0, h))", "sb.append(str.substring(h, str.length())).append", "sb.append(str.substring(h, str.length()))", "sb.append", "sb", "str.substring(h, str.length())", "str.substring", "str", "h", "str.length()", "str.length", "str", "str.substring(0, h)", "str.substring", "str", "0", "h", "str = sb.toString()", "str", "sb.toString()", "sb.toString", "sb", "System.out.println(str)", "System.out.println", "System.out", "System", "System.out", "str", "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 str;\n int n, h;\n\n while(true){\n str = br.readLine();\n if(str.equals(\"-\")){\n break;\n }\n n = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < n; i++){\n h = Integer.parseInt(br.readLine());\n StringBuilder sb = new StringBuilder();\n sb.append(str.substring(h, str.length())).append(str.substring(0, h));\n str = sb.toString();\n }\n System.out.println(str);\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 str;\n int n, h;\n\n while(true){\n str = br.readLine();\n if(str.equals(\"-\")){\n break;\n }\n n = Integer.parseInt(br.readLine());\n\n for(int i = 0; i < n; i++){\n h = Integer.parseInt(br.readLine());\n StringBuilder sb = new StringBuilder();\n sb.append(str.substring(h, str.length())).append(str.substring(0, h));\n str = sb.toString();\n }\n System.out.println(str);\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 str; int n, h; while(true){ str = br.readLine(); if(str.equals("-")){ break; } n = Integer.parseInt(br.readLine()); for(int i = 0; i < n; i++){ h = Integer.parseInt(br.readLine()); StringBuilder sb = new StringBuilder(); sb.append(str.substring(h, str.length())).append(str.substring(0, h)); str = sb.toString(); } System.out.println(str); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 13, 2, 4, 18, 13, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 79, 5 ], [ 79, 6 ], [ 6, 7 ], [ 6, 8 ], [ 79, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ], [ 14, 15 ], [ 11, 16 ], [ 16, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 11, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 23, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 23, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 40, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 52, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 60, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 65, 69 ], [ 23, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 9, 76 ], [ 76, 77 ], [ 0, 78 ], [ 78, 79 ], [ 78, 80 ] ]
[ "import java.util.*;\npublic class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \tint sum = 0;\n \twhile(true) {\n \tString moji = sc.next();\n \t\tif(moji.equals(\"-\")) break;\n \t\tint m = sc.nextInt();\n \t\tfor(i = 0; i < m; i++) {\n \t\t\tint h = sc.nextInt();\n \t\t\tmoji = moji.substring(h) + moji.substring(0, h);\n \t\t}\n \t\tSystem.out.println(moji);\n \t}\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \tint sum = 0;\n \twhile(true) {\n \tString moji = sc.next();\n \t\tif(moji.equals(\"-\")) break;\n \t\tint m = sc.nextInt();\n \t\tfor(i = 0; i < m; i++) {\n \t\t\tint h = sc.nextInt();\n \t\t\tmoji = moji.substring(h) + moji.substring(0, h);\n \t\t}\n \t\tSystem.out.println(moji);\n \t}\n }\n}", "Main", "public static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \tint sum = 0;\n \twhile(true) {\n \tString moji = sc.next();\n \t\tif(moji.equals(\"-\")) break;\n \t\tint m = sc.nextInt();\n \t\tfor(i = 0; i < m; i++) {\n \t\t\tint h = sc.nextInt();\n \t\t\tmoji = moji.substring(h) + moji.substring(0, h);\n \t\t}\n \t\tSystem.out.println(moji);\n \t}\n }", "main", "{\n \tint i, j, k;\n \tint sum = 0;\n \twhile(true) {\n \tString moji = sc.next();\n \t\tif(moji.equals(\"-\")) break;\n \t\tint m = sc.nextInt();\n \t\tfor(i = 0; i < m; i++) {\n \t\t\tint h = sc.nextInt();\n \t\t\tmoji = moji.substring(h) + moji.substring(0, h);\n \t\t}\n \t\tSystem.out.println(moji);\n \t}\n }", "int i", "i", "j", "j", "k;", "k", "int sum = 0;", "sum", "0", "while(true) {\n \tString moji = sc.next();\n \t\tif(moji.equals(\"-\")) break;\n \t\tint m = sc.nextInt();\n \t\tfor(i = 0; i < m; i++) {\n \t\t\tint h = sc.nextInt();\n \t\t\tmoji = moji.substring(h) + moji.substring(0, h);\n \t\t}\n \t\tSystem.out.println(moji);\n \t}", "true", "{\n \tString moji = sc.next();\n \t\tif(moji.equals(\"-\")) break;\n \t\tint m = sc.nextInt();\n \t\tfor(i = 0; i < m; i++) {\n \t\t\tint h = sc.nextInt();\n \t\t\tmoji = moji.substring(h) + moji.substring(0, h);\n \t\t}\n \t\tSystem.out.println(moji);\n \t}", "String moji = sc.next();", "moji", "sc.next()", "sc.next", "sc", "if(moji.equals(\"-\")) break;", "moji.equals(\"-\")", "moji.equals", "moji", "\"-\"", "break;", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "for(i = 0; i < m; i++) {\n \t\t\tint h = sc.nextInt();\n \t\t\tmoji = moji.substring(h) + moji.substring(0, h);\n \t\t}", "i = 0;", "i = 0", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n \t\t\tint h = sc.nextInt();\n \t\t\tmoji = moji.substring(h) + moji.substring(0, h);\n \t\t}", "{\n \t\t\tint h = sc.nextInt();\n \t\t\tmoji = moji.substring(h) + moji.substring(0, h);\n \t\t}", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "moji = moji.substring(h) + moji.substring(0, h)", "moji", "moji.substring(h) + moji.substring(0, h)", "moji.substring(h)", "moji.substring", "moji", "h", "moji.substring(0, h)", "moji.substring", "moji", "0", "h", "System.out.println(moji)", "System.out.println", "System.out", "System", "System.out", "moji", "String[] args", "args", "public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \tint sum = 0;\n \twhile(true) {\n \tString moji = sc.next();\n \t\tif(moji.equals(\"-\")) break;\n \t\tint m = sc.nextInt();\n \t\tfor(i = 0; i < m; i++) {\n \t\t\tint h = sc.nextInt();\n \t\t\tmoji = moji.substring(h) + moji.substring(0, h);\n \t\t}\n \t\tSystem.out.println(moji);\n \t}\n }\n}", "public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n \tint i, j, k;\n \tint sum = 0;\n \twhile(true) {\n \tString moji = sc.next();\n \t\tif(moji.equals(\"-\")) break;\n \t\tint m = sc.nextInt();\n \t\tfor(i = 0; i < m; i++) {\n \t\t\tint h = sc.nextInt();\n \t\t\tmoji = moji.substring(h) + moji.substring(0, h);\n \t\t}\n \t\tSystem.out.println(moji);\n \t}\n }\n}", "Main" ]
import java.util.*; public class Main { public static Scanner sc = new Scanner(System.in); public static void main(String[] args) throws Exception { int i, j, k; int sum = 0; while(true) { String moji = sc.next(); if(moji.equals("-")) break; int m = sc.nextInt(); for(i = 0; i < m; i++) { int h = sc.nextInt(); moji = moji.substring(h) + moji.substring(0, h); } System.out.println(moji); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 0, 13, 20, 41, 13, 20, 4, 18, 13, 4, 18, 13, 23, 13, 6, 13, 12, 13, 30, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 4, 18, 13, 18, 13, 13, 13, 4, 18, 13, 17, 18, 13, 13, 4, 18, 13, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 4, 18, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 22, 23 ], [ 22, 24 ], [ 0, 25 ], [ 25, 26 ], [ 25, 27 ], [ 0, 28 ], [ 28, 29 ], [ 28, 30 ], [ 0, 31 ], [ 31, 32 ], [ 31, 33 ], [ 0, 34 ], [ 34, 35 ], [ 34, 36 ], [ 0, 37 ], [ 37, 38 ], [ 37, 39 ], [ 0, 40 ], [ 40, 41 ], [ 40, 42 ], [ 0, 43 ], [ 43, 44 ], [ 43, 45 ], [ 0, 46 ], [ 46, 47 ], [ 46, 48 ], [ 0, 49 ], [ 270, 50 ], [ 270, 51 ], [ 51, 52 ], [ 270, 53 ], [ 53, 54 ], [ 270, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 57, 64 ], [ 64, 65 ], [ 64, 66 ], [ 57, 67 ], [ 67, 68 ], [ 68, 69 ], [ 57, 70 ], [ 70, 71 ], [ 71, 72 ], [ 55, 73 ], [ 73, 74 ], [ 270, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 82, 88 ], [ 88, 89 ], [ 88, 90 ], [ 82, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 91, 96 ], [ 96, 97 ], [ 82, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 82, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 82, 108 ], [ 108, 109 ], [ 108, 110 ], [ 82, 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 ], [ 126, 128 ], [ 125, 129 ], [ 129, 130 ], [ 130, 131 ], [ 82, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 137, 138 ], [ 137, 139 ], [ 132, 140 ], [ 140, 141 ], [ 141, 142 ], [ 132, 143 ], [ 144, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 148, 151 ], [ 151, 152 ], [ 151, 153 ], [ 148, 154 ], [ 147, 155 ], [ 155, 156 ], [ 156, 157 ], [ 155, 158 ], [ 155, 159 ], [ 159, 160 ], [ 159, 161 ], [ 82, 162 ], [ 162, 163 ], [ 163, 164 ], [ 162, 165 ], [ 270, 166 ], [ 166, 167 ], [ 166, 168 ], [ 168, 169 ], [ 166, 170 ], [ 170, 171 ], [ 166, 172 ], [ 172, 173 ], [ 172, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 172, 178 ], [ 178, 179 ], [ 166, 180 ], [ 180, 181 ], [ 180, 182 ], [ 182, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 185, 187 ], [ 184, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 183, 192 ], [ 192, 193 ], [ 193, 194 ], [ 193, 195 ], [ 182, 196 ], [ 196, 197 ], [ 197, 198 ], [ 198, 199 ], [ 197, 200 ], [ 200, 201 ], [ 201, 202 ], [ 166, 203 ], [ 203, 204 ], [ 203, 205 ], [ 205, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 208, 210 ], [ 207, 211 ], [ 211, 212 ], [ 212, 213 ], [ 213, 214 ], [ 206, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 205, 219 ], [ 219, 220 ], [ 220, 221 ], [ 221, 222 ], [ 220, 223 ], [ 223, 224 ], [ 224, 225 ], [ 166, 226 ], [ 226, 227 ], [ 226, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 231, 232 ], [ 231, 233 ], [ 230, 234 ], [ 234, 235 ], [ 235, 236 ], [ 236, 237 ], [ 229, 238 ], [ 238, 239 ], [ 239, 240 ], [ 239, 241 ], [ 228, 242 ], [ 242, 243 ], [ 243, 244 ], [ 244, 245 ], [ 166, 246 ], [ 246, 247 ], [ 246, 248 ], [ 248, 249 ], [ 249, 250 ], [ 250, 251 ], [ 251, 252 ], [ 251, 253 ], [ 250, 254 ], [ 254, 255 ], [ 255, 256 ], [ 256, 257 ], [ 249, 258 ], [ 258, 259 ], [ 259, 260 ], [ 259, 261 ], [ 248, 262 ], [ 262, 263 ], [ 263, 264 ], [ 264, 265 ], [ 263, 266 ], [ 266, 267 ], [ 267, 268 ], [ 0, 269 ], [ 269, 270 ], [ 269, 271 ] ]
[ "import java.awt.Frame;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.util.Arrays;\nimport java.util.StringTokenizer;\nimport javax.sql.rowset.FilteredRowSet;\nimport javax.swing.BorderFactory;\nimport javax.xml.parsers.DocumentBuilder;\nimport javax.xml.stream.events.EndDocument;\nimport java.math.BigInteger;\nimport java.time.chrono.MinguoChronology;\nimport java.util.Scanner;\n\npublic class Main {\n static InputReader in;\n static PrintWriter out;\n \n static class Solution {\n void solve() throws IOException {\n while (true) { \n String firstorder = in.next();\n String order = firstorder;\n if (firstorder.equals(\"-\")) {\n break;\n }\n int n = firstorder.length();\n int m = in.nextInt();\n int h[] = new int[m];\n for (int i = 0; i < m; i++) {\n h[i] = in.nextInt();\n }\n \n for (int i = 0; i < m; i++) { \n order = order.substring(h[i], n) + order.substring(0, h[i]);\n }\n \n out.println(order);\n }\n \n \n \n \n// End solve()\n }\n \n// End solution\n } \n \n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n \n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n \n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n \n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken()); \n }\n \n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n \n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n \n }\n \n}", "import java.awt.Frame;", "Frame", "java.awt", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.OutputStream;", "OutputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "import javax.sql.rowset.FilteredRowSet;", "FilteredRowSet", "javax.sql.rowset", "import javax.swing.BorderFactory;", "BorderFactory", "javax.swing", "import javax.xml.parsers.DocumentBuilder;", "DocumentBuilder", "javax.xml.parsers", "import javax.xml.stream.events.EndDocument;", "EndDocument", "javax.xml.stream.events", "import java.math.BigInteger;", "BigInteger", "java.math", "import java.time.chrono.MinguoChronology;", "MinguoChronology", "java.time.chrono", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n static InputReader in;\n static PrintWriter out;\n \n static class Solution {\n void solve() throws IOException {\n while (true) { \n String firstorder = in.next();\n String order = firstorder;\n if (firstorder.equals(\"-\")) {\n break;\n }\n int n = firstorder.length();\n int m = in.nextInt();\n int h[] = new int[m];\n for (int i = 0; i < m; i++) {\n h[i] = in.nextInt();\n }\n \n for (int i = 0; i < m; i++) { \n order = order.substring(h[i], n) + order.substring(0, h[i]);\n }\n \n out.println(order);\n }\n \n \n \n \n// End solve()\n }\n \n// End solution\n } \n \n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n \n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n \n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n \n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken()); \n }\n \n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n \n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n \n }\n \n}", "Main", "static InputReader in;", "in", "static PrintWriter out;", "out", "public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}", "main", "{\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}", "in = new InputReader(System.in)", "in", "new InputReader(System.in)", "out = new PrintWriter(System.out)", "out", "new PrintWriter(System.out)", "Solution solver = new Solution();", "solver", "new Solution()", "solver.solve()", "solver.solve", "solver", "out.close()", "out.close", "out", "String[] args", "args", "static class Solution {\n void solve() throws IOException {\n while (true) { \n String firstorder = in.next();\n String order = firstorder;\n if (firstorder.equals(\"-\")) {\n break;\n }\n int n = firstorder.length();\n int m = in.nextInt();\n int h[] = new int[m];\n for (int i = 0; i < m; i++) {\n h[i] = in.nextInt();\n }\n \n for (int i = 0; i < m; i++) { \n order = order.substring(h[i], n) + order.substring(0, h[i]);\n }\n \n out.println(order);\n }\n \n \n \n \n// End solve()\n }\n \n// End solution\n }", "Solution", "void solve() throws IOException {\n while (true) { \n String firstorder = in.next();\n String order = firstorder;\n if (firstorder.equals(\"-\")) {\n break;\n }\n int n = firstorder.length();\n int m = in.nextInt();\n int h[] = new int[m];\n for (int i = 0; i < m; i++) {\n h[i] = in.nextInt();\n }\n \n for (int i = 0; i < m; i++) { \n order = order.substring(h[i], n) + order.substring(0, h[i]);\n }\n \n out.println(order);\n }\n \n \n \n \n// End solve()\n }", "solve", "{\n while (true) { \n String firstorder = in.next();\n String order = firstorder;\n if (firstorder.equals(\"-\")) {\n break;\n }\n int n = firstorder.length();\n int m = in.nextInt();\n int h[] = new int[m];\n for (int i = 0; i < m; i++) {\n h[i] = in.nextInt();\n }\n \n for (int i = 0; i < m; i++) { \n order = order.substring(h[i], n) + order.substring(0, h[i]);\n }\n \n out.println(order);\n }\n \n \n \n \n// End solve()\n }", "while (true) { \n String firstorder = in.next();\n String order = firstorder;\n if (firstorder.equals(\"-\")) {\n break;\n }\n int n = firstorder.length();\n int m = in.nextInt();\n int h[] = new int[m];\n for (int i = 0; i < m; i++) {\n h[i] = in.nextInt();\n }\n \n for (int i = 0; i < m; i++) { \n order = order.substring(h[i], n) + order.substring(0, h[i]);\n }\n \n out.println(order);\n }", "true", "{ \n String firstorder = in.next();\n String order = firstorder;\n if (firstorder.equals(\"-\")) {\n break;\n }\n int n = firstorder.length();\n int m = in.nextInt();\n int h[] = new int[m];\n for (int i = 0; i < m; i++) {\n h[i] = in.nextInt();\n }\n \n for (int i = 0; i < m; i++) { \n order = order.substring(h[i], n) + order.substring(0, h[i]);\n }\n \n out.println(order);\n }", "String firstorder = in.next();", "firstorder", "in.next()", "in.next", "in", "String order = firstorder;", "order", "firstorder", "if (firstorder.equals(\"-\")) {\n break;\n }", "firstorder.equals(\"-\")", "firstorder.equals", "firstorder", "\"-\"", "{\n break;\n }", "break;", "int n = firstorder.length();", "n", "firstorder.length()", "firstorder.length", "firstorder", "int m = in.nextInt();", "m", "in.nextInt()", "in.nextInt", "in", "int h[] = new int[m];", "h", "new int[m]", "m", "for (int i = 0; i < m; i++) {\n h[i] = in.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n h[i] = in.nextInt();\n }", "{\n h[i] = in.nextInt();\n }", "h[i] = in.nextInt()", "h[i]", "h", "i", "in.nextInt()", "in.nextInt", "in", "for (int i = 0; i < m; i++) { \n order = order.substring(h[i], n) + order.substring(0, h[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{ \n order = order.substring(h[i], n) + order.substring(0, h[i]);\n }", "{ \n order = order.substring(h[i], n) + order.substring(0, h[i]);\n }", "order = order.substring(h[i], n) + order.substring(0, h[i])", "order", "order.substring(h[i], n) + order.substring(0, h[i])", "order.substring(h[i], n)", "order.substring", "order", "h[i]", "h", "i", "n", "order.substring(0, h[i])", "order.substring", "order", "0", "h[i]", "h", "i", "out.println(order)", "out.println", "out", "order", "static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n \n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n \n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n \n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken()); \n }\n \n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n \n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n \n }", "InputReader", "public BufferedReader br;", "br", "public StringTokenizer st;", "st", "public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }", "InputReader", "{\n br = new BufferedReader(new InputStreamReader(stream));\n }", "br = new BufferedReader(new InputStreamReader(stream))", "br", "new BufferedReader(new InputStreamReader(stream))", "InputStream stream", "stream", "public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }", "nextInt", "{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }", "while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return Integer.parseInt(st.nextToken());", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken()); \n }", "nextLong", "{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken()); \n }", "while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return Long.parseLong(st.nextToken());", "Long.parseLong(st.nextToken())", "Long.parseLong", "Long", "st.nextToken()", "st.nextToken", "st", "public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }", "nextDouble", "{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }", "while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return Double.parseDouble(st.nextToken());", "Double.parseDouble(st.nextToken())", "Double.parseDouble", "Double", "st.nextToken()", "st.nextToken", "st", "public class Main {\n static InputReader in;\n static PrintWriter out;\n \n static class Solution {\n void solve() throws IOException {\n while (true) { \n String firstorder = in.next();\n String order = firstorder;\n if (firstorder.equals(\"-\")) {\n break;\n }\n int n = firstorder.length();\n int m = in.nextInt();\n int h[] = new int[m];\n for (int i = 0; i < m; i++) {\n h[i] = in.nextInt();\n }\n \n for (int i = 0; i < m; i++) { \n order = order.substring(h[i], n) + order.substring(0, h[i]);\n }\n \n out.println(order);\n }\n \n \n \n \n// End solve()\n }\n \n// End solution\n } \n \n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n \n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n \n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n \n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken()); \n }\n \n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n \n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n \n }\n \n}", "public class Main {\n static InputReader in;\n static PrintWriter out;\n \n static class Solution {\n void solve() throws IOException {\n while (true) { \n String firstorder = in.next();\n String order = firstorder;\n if (firstorder.equals(\"-\")) {\n break;\n }\n int n = firstorder.length();\n int m = in.nextInt();\n int h[] = new int[m];\n for (int i = 0; i < m; i++) {\n h[i] = in.nextInt();\n }\n \n for (int i = 0; i < m; i++) { \n order = order.substring(h[i], n) + order.substring(0, h[i]);\n }\n \n out.println(order);\n }\n \n \n \n \n// End solve()\n }\n \n// End solution\n } \n \n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n \n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n \n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n \n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken()); \n }\n \n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n \n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n \n }\n \n}", "Main" ]
import java.awt.Frame; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.StringTokenizer; import javax.sql.rowset.FilteredRowSet; import javax.swing.BorderFactory; import javax.xml.parsers.DocumentBuilder; import javax.xml.stream.events.EndDocument; import java.math.BigInteger; import java.time.chrono.MinguoChronology; import java.util.Scanner; public class Main { static InputReader in; static PrintWriter out; static class Solution { void solve() throws IOException { while (true) { String firstorder = in.next(); String order = firstorder; if (firstorder.equals("-")) { break; } int n = firstorder.length(); int m = in.nextInt(); int h[] = new int[m]; for (int i = 0; i < m; i++) { h[i] = in.nextInt(); } for (int i = 0; i < m; i++) { order = order.substring(h[i], n) + order.substring(0, h[i]); } out.println(order); } // End solve() } // End solution } public static void main(String[] args) throws IOException { in = new InputReader(System.in); out = new PrintWriter(System.out); Solution solver = new Solution(); solver.solve(); out.close(); } static class InputReader { public BufferedReader br; public StringTokenizer st; public InputReader(InputStream stream) { br = new BufferedReader(new InputStreamReader(stream)); } public int nextInt() throws IOException { while (st == null || !st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return Integer.parseInt(st.nextToken()); } public long nextLong() throws IOException { while (st == null || !st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return Long.parseLong(st.nextToken()); } public String next() throws IOException { while (st == null || !st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return st.nextToken(); } public double nextDouble() throws IOException { while (st == null || !st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return Double.parseDouble(st.nextToken()); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 13, 41, 13, 4, 18, 13, 13, 4, 18, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 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 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 26, 31 ], [ 31, 32 ], [ 20, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 38, 39 ], [ 39, 40 ], [ 20, 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 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 60, 61 ], [ 53, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 64, 68 ], [ 53, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 53, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 20, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 9, 89 ], [ 89, 90 ] ]
[ "import java.util.Scanner;\nimport java.io.*;\n\nclass Main {\n public static void main(String[] args)throws IOException{ \n \tInputStreamReader in = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(in);\n \t \t \n \twhile(true){\n String trump = reader.readLine();\n if(trump.equals(\"-\")){\n break;\n }\n\n int m = Integer.parseInt(reader.readLine());\n\n for(int H = 0; H < m; H++){\n int h = Integer.parseInt(reader.readLine());\n String left = trump.substring(0, h);\n String right = trump.substring(h, trump.length());\n trump = right + left;\n }\n System.out.println(trump);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.io.*;", "io.*", "java", "class Main {\n public static void main(String[] args)throws IOException{ \n \tInputStreamReader in = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(in);\n \t \t \n \twhile(true){\n String trump = reader.readLine();\n if(trump.equals(\"-\")){\n break;\n }\n\n int m = Integer.parseInt(reader.readLine());\n\n for(int H = 0; H < m; H++){\n int h = Integer.parseInt(reader.readLine());\n String left = trump.substring(0, h);\n String right = trump.substring(h, trump.length());\n trump = right + left;\n }\n System.out.println(trump);\n }\n }\n}", "Main", "public static void main(String[] args)throws IOException{ \n \tInputStreamReader in = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(in);\n \t \t \n \twhile(true){\n String trump = reader.readLine();\n if(trump.equals(\"-\")){\n break;\n }\n\n int m = Integer.parseInt(reader.readLine());\n\n for(int H = 0; H < m; H++){\n int h = Integer.parseInt(reader.readLine());\n String left = trump.substring(0, h);\n String right = trump.substring(h, trump.length());\n trump = right + left;\n }\n System.out.println(trump);\n }\n }", "main", "{ \n \tInputStreamReader in = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(in);\n \t \t \n \twhile(true){\n String trump = reader.readLine();\n if(trump.equals(\"-\")){\n break;\n }\n\n int m = Integer.parseInt(reader.readLine());\n\n for(int H = 0; H < m; H++){\n int h = Integer.parseInt(reader.readLine());\n String left = trump.substring(0, h);\n String right = trump.substring(h, trump.length());\n trump = right + left;\n }\n System.out.println(trump);\n }\n }", "InputStreamReader in = new InputStreamReader(System.in);", "in", "new InputStreamReader(System.in)", "BufferedReader reader = new BufferedReader(in);", "reader", "new BufferedReader(in)", "while(true){\n String trump = reader.readLine();\n if(trump.equals(\"-\")){\n break;\n }\n\n int m = Integer.parseInt(reader.readLine());\n\n for(int H = 0; H < m; H++){\n int h = Integer.parseInt(reader.readLine());\n String left = trump.substring(0, h);\n String right = trump.substring(h, trump.length());\n trump = right + left;\n }\n System.out.println(trump);\n }", "true", "{\n String trump = reader.readLine();\n if(trump.equals(\"-\")){\n break;\n }\n\n int m = Integer.parseInt(reader.readLine());\n\n for(int H = 0; H < m; H++){\n int h = Integer.parseInt(reader.readLine());\n String left = trump.substring(0, h);\n String right = trump.substring(h, trump.length());\n trump = right + left;\n }\n System.out.println(trump);\n }", "String trump = reader.readLine();", "trump", "reader.readLine()", "reader.readLine", "reader", "if(trump.equals(\"-\")){\n break;\n }", "trump.equals(\"-\")", "trump.equals", "trump", "\"-\"", "{\n break;\n }", "break;", "int m = Integer.parseInt(reader.readLine());", "m", "Integer.parseInt(reader.readLine())", "Integer.parseInt", "Integer", "reader.readLine()", "reader.readLine", "reader", "for(int H = 0; H < m; H++){\n int h = Integer.parseInt(reader.readLine());\n String left = trump.substring(0, h);\n String right = trump.substring(h, trump.length());\n trump = right + left;\n }", "int H = 0;", "int H = 0;", "H", "0", "H < m", "H", "m", "H++", "H++", "H", "{\n int h = Integer.parseInt(reader.readLine());\n String left = trump.substring(0, h);\n String right = trump.substring(h, trump.length());\n trump = right + left;\n }", "{\n int h = Integer.parseInt(reader.readLine());\n String left = trump.substring(0, h);\n String right = trump.substring(h, trump.length());\n trump = right + left;\n }", "int h = Integer.parseInt(reader.readLine());", "h", "Integer.parseInt(reader.readLine())", "Integer.parseInt", "Integer", "reader.readLine()", "reader.readLine", "reader", "String left = trump.substring(0, h);", "left", "trump.substring(0, h)", "trump.substring", "trump", "0", "h", "String right = trump.substring(h, trump.length());", "right", "trump.substring(h, trump.length())", "trump.substring", "trump", "h", "trump.length()", "trump.length", "trump", "trump = right + left", "trump", "right + left", "right", "left", "System.out.println(trump)", "System.out.println", "System.out", "System", "System.out", "trump", "String[] args", "args" ]
import java.util.Scanner; import java.io.*; class Main { public static void main(String[] args)throws IOException{ InputStreamReader in = new InputStreamReader(System.in); BufferedReader reader = new BufferedReader(in); while(true){ String trump = reader.readLine(); if(trump.equals("-")){ break; } int m = Integer.parseInt(reader.readLine()); for(int H = 0; H < m; H++){ int h = Integer.parseInt(reader.readLine()); String left = trump.substring(0, h); String right = trump.substring(h, trump.length()); trump = right + left; } System.out.println(trump); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 41, 13, 20, 42, 40, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 13, 4, 18, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 18, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 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 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 14, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 34, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 40, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 46, 57 ], [ 57, 58 ], [ 58, 59 ], [ 46, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 68, 69 ], [ 61, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 61, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 83, 87 ], [ 61, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 61, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 40, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 40, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 14, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 12, 113 ], [ 113, 114 ] ]
[ "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\tString str = br.readLine();\n\n\t\tString str2 = \"\";\n\n\t\tString num = \"\";\n\n\t\tint num2;\n\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\twhile (!(str.equals(\"-\"))) {\n\n\t\t\tnum = br.readLine();\n\n\n\t\t\tfor (int i = 0; i < Integer.parseInt(num); i++) {\n\n\t\t\t\tnum2 = Integer.parseInt(br.readLine());\n\n\t\t\t\tbuilder.append(str.substring(num2, str.length()));\n\t\t\t\tbuilder.append(str.substring(0, num2));\n\n\t\t\t\tstr = builder.toString();\n\t\t\t\tbuilder.setLength(0);\n\t\t\t}\n\t\t\tstr2 += str + \"\\n\";\n\t\t\tstr = br.readLine();\n\n\t\t}\n\n\t\tSystem.out.print(str2);\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\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str = br.readLine();\n\n\t\tString str2 = \"\";\n\n\t\tString num = \"\";\n\n\t\tint num2;\n\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\twhile (!(str.equals(\"-\"))) {\n\n\t\t\tnum = br.readLine();\n\n\n\t\t\tfor (int i = 0; i < Integer.parseInt(num); i++) {\n\n\t\t\t\tnum2 = Integer.parseInt(br.readLine());\n\n\t\t\t\tbuilder.append(str.substring(num2, str.length()));\n\t\t\t\tbuilder.append(str.substring(0, num2));\n\n\t\t\t\tstr = builder.toString();\n\t\t\t\tbuilder.setLength(0);\n\t\t\t}\n\t\t\tstr2 += str + \"\\n\";\n\t\t\tstr = br.readLine();\n\n\t\t}\n\n\t\tSystem.out.print(str2);\n\t}\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\tString str = br.readLine();\n\n\t\tString str2 = \"\";\n\n\t\tString num = \"\";\n\n\t\tint num2;\n\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\twhile (!(str.equals(\"-\"))) {\n\n\t\t\tnum = br.readLine();\n\n\n\t\t\tfor (int i = 0; i < Integer.parseInt(num); i++) {\n\n\t\t\t\tnum2 = Integer.parseInt(br.readLine());\n\n\t\t\t\tbuilder.append(str.substring(num2, str.length()));\n\t\t\t\tbuilder.append(str.substring(0, num2));\n\n\t\t\t\tstr = builder.toString();\n\t\t\t\tbuilder.setLength(0);\n\t\t\t}\n\t\t\tstr2 += str + \"\\n\";\n\t\t\tstr = br.readLine();\n\n\t\t}\n\n\t\tSystem.out.print(str2);\n\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str = br.readLine();\n\n\t\tString str2 = \"\";\n\n\t\tString num = \"\";\n\n\t\tint num2;\n\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\twhile (!(str.equals(\"-\"))) {\n\n\t\t\tnum = br.readLine();\n\n\n\t\t\tfor (int i = 0; i < Integer.parseInt(num); i++) {\n\n\t\t\t\tnum2 = Integer.parseInt(br.readLine());\n\n\t\t\t\tbuilder.append(str.substring(num2, str.length()));\n\t\t\t\tbuilder.append(str.substring(0, num2));\n\n\t\t\t\tstr = builder.toString();\n\t\t\t\tbuilder.setLength(0);\n\t\t\t}\n\t\t\tstr2 += str + \"\\n\";\n\t\t\tstr = br.readLine();\n\n\t\t}\n\n\t\tSystem.out.print(str2);\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 str2 = \"\";", "str2", "\"\"", "String num = \"\";", "num", "\"\"", "int num2;", "num2", "StringBuilder builder = new StringBuilder();", "builder", "new StringBuilder()", "while (!(str.equals(\"-\"))) {\n\n\t\t\tnum = br.readLine();\n\n\n\t\t\tfor (int i = 0; i < Integer.parseInt(num); i++) {\n\n\t\t\t\tnum2 = Integer.parseInt(br.readLine());\n\n\t\t\t\tbuilder.append(str.substring(num2, str.length()));\n\t\t\t\tbuilder.append(str.substring(0, num2));\n\n\t\t\t\tstr = builder.toString();\n\t\t\t\tbuilder.setLength(0);\n\t\t\t}\n\t\t\tstr2 += str + \"\\n\";\n\t\t\tstr = br.readLine();\n\n\t\t}", "!(str.equals(\"-\"))", "(str.equals(\"-\"))", "str.equals", "str", "\"-\"", "{\n\n\t\t\tnum = br.readLine();\n\n\n\t\t\tfor (int i = 0; i < Integer.parseInt(num); i++) {\n\n\t\t\t\tnum2 = Integer.parseInt(br.readLine());\n\n\t\t\t\tbuilder.append(str.substring(num2, str.length()));\n\t\t\t\tbuilder.append(str.substring(0, num2));\n\n\t\t\t\tstr = builder.toString();\n\t\t\t\tbuilder.setLength(0);\n\t\t\t}\n\t\t\tstr2 += str + \"\\n\";\n\t\t\tstr = br.readLine();\n\n\t\t}", "num = br.readLine()", "num", "br.readLine()", "br.readLine", "br", "for (int i = 0; i < Integer.parseInt(num); i++) {\n\n\t\t\t\tnum2 = Integer.parseInt(br.readLine());\n\n\t\t\t\tbuilder.append(str.substring(num2, str.length()));\n\t\t\t\tbuilder.append(str.substring(0, num2));\n\n\t\t\t\tstr = builder.toString();\n\t\t\t\tbuilder.setLength(0);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < Integer.parseInt(num)", "i", "Integer.parseInt(num)", "Integer.parseInt", "Integer", "num", "i++", "i++", "i", "{\n\n\t\t\t\tnum2 = Integer.parseInt(br.readLine());\n\n\t\t\t\tbuilder.append(str.substring(num2, str.length()));\n\t\t\t\tbuilder.append(str.substring(0, num2));\n\n\t\t\t\tstr = builder.toString();\n\t\t\t\tbuilder.setLength(0);\n\t\t\t}", "{\n\n\t\t\t\tnum2 = Integer.parseInt(br.readLine());\n\n\t\t\t\tbuilder.append(str.substring(num2, str.length()));\n\t\t\t\tbuilder.append(str.substring(0, num2));\n\n\t\t\t\tstr = builder.toString();\n\t\t\t\tbuilder.setLength(0);\n\t\t\t}", "num2 = Integer.parseInt(br.readLine())", "num2", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "builder.append(str.substring(num2, str.length()))", "builder.append", "builder", "str.substring(num2, str.length())", "str.substring", "str", "num2", "str.length()", "str.length", "str", "builder.append(str.substring(0, num2))", "builder.append", "builder", "str.substring(0, num2)", "str.substring", "str", "0", "num2", "str = builder.toString()", "str", "builder.toString()", "builder.toString", "builder", "builder.setLength(0)", "builder.setLength", "builder", "0", "str2 += str + \"\\n\"", "str2", "str + \"\\n\"", "str", "\"\\n\"", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "System.out.print(str2)", "System.out.print", "System.out", "System", "System.out", "str2", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); String str2 = ""; String num = ""; int num2; StringBuilder builder = new StringBuilder(); while (!(str.equals("-"))) { num = br.readLine(); for (int i = 0; i < Integer.parseInt(num); i++) { num2 = Integer.parseInt(br.readLine()); builder.append(str.substring(num2, str.length())); builder.append(str.substring(0, num2)); str = builder.toString(); builder.setLength(0); } str2 += str + "\n"; str = br.readLine(); } System.out.print(str2); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 13, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 83, 5 ], [ 83, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 26, 31 ], [ 31, 32 ], [ 20, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 20, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 38, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 50, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 58, 62 ], [ 50, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 50, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 20, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 6, 80 ], [ 80, 81 ], [ 0, 82 ], [ 82, 83 ], [ 82, 84 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n public static void main (String[] args) {\n Scanner scan = new Scanner(System.in);\n String result_a = null;\n String result_b = null;\n\n while (true) {\n String s = scan.next();\n\n if (s.equals(\"-\")) {\n break;\n }\n\n int m = scan.nextInt();\n\n for (int i = 0; i < m; i++) {\n int h = scan.nextInt();\n result_a = s.substring(0,h);\n result_b = s.substring(h);\n \n s = result_b + result_a;\n\n\n }\n\n System.out.println(s);\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 result_a = null;\n String result_b = null;\n\n while (true) {\n String s = scan.next();\n\n if (s.equals(\"-\")) {\n break;\n }\n\n int m = scan.nextInt();\n\n for (int i = 0; i < m; i++) {\n int h = scan.nextInt();\n result_a = s.substring(0,h);\n result_b = s.substring(h);\n \n s = result_b + result_a;\n\n\n }\n\n System.out.println(s);\n }\n\n }\n}", "Main", "public static void main (String[] args) {\n Scanner scan = new Scanner(System.in);\n String result_a = null;\n String result_b = null;\n\n while (true) {\n String s = scan.next();\n\n if (s.equals(\"-\")) {\n break;\n }\n\n int m = scan.nextInt();\n\n for (int i = 0; i < m; i++) {\n int h = scan.nextInt();\n result_a = s.substring(0,h);\n result_b = s.substring(h);\n \n s = result_b + result_a;\n\n\n }\n\n System.out.println(s);\n }\n\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n String result_a = null;\n String result_b = null;\n\n while (true) {\n String s = scan.next();\n\n if (s.equals(\"-\")) {\n break;\n }\n\n int m = scan.nextInt();\n\n for (int i = 0; i < m; i++) {\n int h = scan.nextInt();\n result_a = s.substring(0,h);\n result_b = s.substring(h);\n \n s = result_b + result_a;\n\n\n }\n\n System.out.println(s);\n }\n\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String result_a = null;", "result_a", "null", "String result_b = null;", "result_b", "null", "while (true) {\n String s = scan.next();\n\n if (s.equals(\"-\")) {\n break;\n }\n\n int m = scan.nextInt();\n\n for (int i = 0; i < m; i++) {\n int h = scan.nextInt();\n result_a = s.substring(0,h);\n result_b = s.substring(h);\n \n s = result_b + result_a;\n\n\n }\n\n System.out.println(s);\n }", "true", "{\n String s = scan.next();\n\n if (s.equals(\"-\")) {\n break;\n }\n\n int m = scan.nextInt();\n\n for (int i = 0; i < m; i++) {\n int h = scan.nextInt();\n result_a = s.substring(0,h);\n result_b = s.substring(h);\n \n s = result_b + result_a;\n\n\n }\n\n System.out.println(s);\n }", "String s = scan.next();", "s", "scan.next()", "scan.next", "scan", "if (s.equals(\"-\")) {\n break;\n }", "s.equals(\"-\")", "s.equals", "s", "\"-\"", "{\n break;\n }", "break;", "int m = scan.nextInt();", "m", "scan.nextInt()", "scan.nextInt", "scan", "for (int i = 0; i < m; i++) {\n int h = scan.nextInt();\n result_a = s.substring(0,h);\n result_b = s.substring(h);\n \n s = result_b + result_a;\n\n\n }", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n int h = scan.nextInt();\n result_a = s.substring(0,h);\n result_b = s.substring(h);\n \n s = result_b + result_a;\n\n\n }", "{\n int h = scan.nextInt();\n result_a = s.substring(0,h);\n result_b = s.substring(h);\n \n s = result_b + result_a;\n\n\n }", "int h = scan.nextInt();", "h", "scan.nextInt()", "scan.nextInt", "scan", "result_a = s.substring(0,h)", "result_a", "s.substring(0,h)", "s.substring", "s", "0", "h", "result_b = s.substring(h)", "result_b", "s.substring(h)", "s.substring", "s", "h", "s = result_b + result_a", "s", "result_b + result_a", "result_b", "result_a", "System.out.println(s)", "System.out.println", "System.out", "System", "System.out", "s", "String[] args", "args", "public class Main {\n public static void main (String[] args) {\n Scanner scan = new Scanner(System.in);\n String result_a = null;\n String result_b = null;\n\n while (true) {\n String s = scan.next();\n\n if (s.equals(\"-\")) {\n break;\n }\n\n int m = scan.nextInt();\n\n for (int i = 0; i < m; i++) {\n int h = scan.nextInt();\n result_a = s.substring(0,h);\n result_b = s.substring(h);\n \n s = result_b + result_a;\n\n\n }\n\n System.out.println(s);\n }\n\n }\n}", "public class Main {\n public static void main (String[] args) {\n Scanner scan = new Scanner(System.in);\n String result_a = null;\n String result_b = null;\n\n while (true) {\n String s = scan.next();\n\n if (s.equals(\"-\")) {\n break;\n }\n\n int m = scan.nextInt();\n\n for (int i = 0; i < m; i++) {\n int h = scan.nextInt();\n result_a = s.substring(0,h);\n result_b = s.substring(h);\n \n s = result_b + result_a;\n\n\n }\n\n System.out.println(s);\n }\n\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner scan = new Scanner(System.in); String result_a = null; String result_b = null; while (true) { String s = scan.next(); if (s.equals("-")) { break; } int m = scan.nextInt(); for (int i = 0; i < m; i++) { int h = scan.nextInt(); result_a = s.substring(0,h); result_b = s.substring(h); s = result_b + result_a; } System.out.println(s); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 13, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 89, 8 ], [ 89, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 11, 19 ], [ 19, 20 ], [ 11, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 27, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 27, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 56, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 64, 68 ], [ 56, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 56, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 27, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 9, 86 ], [ 86, 87 ], [ 0, 88 ], [ 88, 89 ], [ 88, 90 ] ]
[ "import java.io.*;\nimport java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int m;\n int h;\n String s;\n String card;\n String card2;\n while(true){\n card=sc.next();\n if(card.startsWith(\"-\")) break;\n m=sc.nextInt();\n for(int i=0;i<m;i++){\n h=sc.nextInt();\n card2=card.substring(0,h);\n card=card.substring(h);\n card=card+card2;\n }\n System.out.println(card);\n }\n }\n}\n", "import java.io.*;", "io.*", "java", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int m;\n int h;\n String s;\n String card;\n String card2;\n while(true){\n card=sc.next();\n if(card.startsWith(\"-\")) break;\n m=sc.nextInt();\n for(int i=0;i<m;i++){\n h=sc.nextInt();\n card2=card.substring(0,h);\n card=card.substring(h);\n card=card+card2;\n }\n System.out.println(card);\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int m;\n int h;\n String s;\n String card;\n String card2;\n while(true){\n card=sc.next();\n if(card.startsWith(\"-\")) break;\n m=sc.nextInt();\n for(int i=0;i<m;i++){\n h=sc.nextInt();\n card2=card.substring(0,h);\n card=card.substring(h);\n card=card+card2;\n }\n System.out.println(card);\n }\n }", "main", "{\n Scanner sc=new Scanner(System.in);\n int m;\n int h;\n String s;\n String card;\n String card2;\n while(true){\n card=sc.next();\n if(card.startsWith(\"-\")) break;\n m=sc.nextInt();\n for(int i=0;i<m;i++){\n h=sc.nextInt();\n card2=card.substring(0,h);\n card=card.substring(h);\n card=card+card2;\n }\n System.out.println(card);\n }\n }", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "int m;", "m", "int h;", "h", "String s;", "s", "String card;", "card", "String card2;", "card2", "while(true){\n card=sc.next();\n if(card.startsWith(\"-\")) break;\n m=sc.nextInt();\n for(int i=0;i<m;i++){\n h=sc.nextInt();\n card2=card.substring(0,h);\n card=card.substring(h);\n card=card+card2;\n }\n System.out.println(card);\n }", "true", "{\n card=sc.next();\n if(card.startsWith(\"-\")) break;\n m=sc.nextInt();\n for(int i=0;i<m;i++){\n h=sc.nextInt();\n card2=card.substring(0,h);\n card=card.substring(h);\n card=card+card2;\n }\n System.out.println(card);\n }", "card=sc.next()", "card", "sc.next()", "sc.next", "sc", "if(card.startsWith(\"-\")) break;", "card.startsWith(\"-\")", "card.startsWith", "card", "\"-\"", "break;", "m=sc.nextInt()", "m", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0;i<m;i++){\n h=sc.nextInt();\n card2=card.substring(0,h);\n card=card.substring(h);\n card=card+card2;\n }", "int i=0;", "int i=0;", "i", "0", "i<m", "i", "m", "i++", "i++", "i", "{\n h=sc.nextInt();\n card2=card.substring(0,h);\n card=card.substring(h);\n card=card+card2;\n }", "{\n h=sc.nextInt();\n card2=card.substring(0,h);\n card=card.substring(h);\n card=card+card2;\n }", "h=sc.nextInt()", "h", "sc.nextInt()", "sc.nextInt", "sc", "card2=card.substring(0,h)", "card2", "card.substring(0,h)", "card.substring", "card", "0", "h", "card=card.substring(h)", "card", "card.substring(h)", "card.substring", "card", "h", "card=card+card2", "card", "card+card2", "card", "card2", "System.out.println(card)", "System.out.println", "System.out", "System", "System.out", "card", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int m;\n int h;\n String s;\n String card;\n String card2;\n while(true){\n card=sc.next();\n if(card.startsWith(\"-\")) break;\n m=sc.nextInt();\n for(int i=0;i<m;i++){\n h=sc.nextInt();\n card2=card.substring(0,h);\n card=card.substring(h);\n card=card+card2;\n }\n System.out.println(card);\n }\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int m;\n int h;\n String s;\n String card;\n String card2;\n while(true){\n card=sc.next();\n if(card.startsWith(\"-\")) break;\n m=sc.nextInt();\n for(int i=0;i<m;i++){\n h=sc.nextInt();\n card2=card.substring(0,h);\n card=card.substring(h);\n card=card+card2;\n }\n System.out.println(card);\n }\n }\n}", "Main" ]
import java.io.*; import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int m; int h; String s; String card; String card2; while(true){ card=sc.next(); if(card.startsWith("-")) break; m=sc.nextInt(); for(int i=0;i<m;i++){ h=sc.nextInt(); card2=card.substring(0,h); card=card.substring(h); card=card+card2; } System.out.println(card); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 0, 13, 2, 4, 18, 13, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 77, 5 ], [ 77, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 32, 33 ], [ 33, 34 ], [ 14, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 54, 55 ], [ 47, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 58, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 63, 67 ], [ 14, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 6, 74 ], [ 74, 75 ], [ 0, 76 ], [ 76, 77 ], [ 76, 78 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while(true) {\n \tString cards = sc.nextLine();\n \tif(cards.equals(\"-\")) {\n \t\tbreak;\n \t}\n\n int count = Integer.parseInt(sc.nextLine());;\n for(int i = 0; i < count; i++) {\n \tint shuffleNum = Integer.parseInt(sc.nextLine());\n \tcards = cards.substring(shuffleNum) + cards.substring(0, shuffleNum);\n }\n System.out.println(cards);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while(true) {\n \tString cards = sc.nextLine();\n \tif(cards.equals(\"-\")) {\n \t\tbreak;\n \t}\n\n int count = Integer.parseInt(sc.nextLine());;\n for(int i = 0; i < count; i++) {\n \tint shuffleNum = Integer.parseInt(sc.nextLine());\n \tcards = cards.substring(shuffleNum) + cards.substring(0, shuffleNum);\n }\n System.out.println(cards);\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while(true) {\n \tString cards = sc.nextLine();\n \tif(cards.equals(\"-\")) {\n \t\tbreak;\n \t}\n\n int count = Integer.parseInt(sc.nextLine());;\n for(int i = 0; i < count; i++) {\n \tint shuffleNum = Integer.parseInt(sc.nextLine());\n \tcards = cards.substring(shuffleNum) + cards.substring(0, shuffleNum);\n }\n System.out.println(cards);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n while(true) {\n \tString cards = sc.nextLine();\n \tif(cards.equals(\"-\")) {\n \t\tbreak;\n \t}\n\n int count = Integer.parseInt(sc.nextLine());;\n for(int i = 0; i < count; i++) {\n \tint shuffleNum = Integer.parseInt(sc.nextLine());\n \tcards = cards.substring(shuffleNum) + cards.substring(0, shuffleNum);\n }\n System.out.println(cards);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true) {\n \tString cards = sc.nextLine();\n \tif(cards.equals(\"-\")) {\n \t\tbreak;\n \t}\n\n int count = Integer.parseInt(sc.nextLine());;\n for(int i = 0; i < count; i++) {\n \tint shuffleNum = Integer.parseInt(sc.nextLine());\n \tcards = cards.substring(shuffleNum) + cards.substring(0, shuffleNum);\n }\n System.out.println(cards);\n }", "true", "{\n \tString cards = sc.nextLine();\n \tif(cards.equals(\"-\")) {\n \t\tbreak;\n \t}\n\n int count = Integer.parseInt(sc.nextLine());;\n for(int i = 0; i < count; i++) {\n \tint shuffleNum = Integer.parseInt(sc.nextLine());\n \tcards = cards.substring(shuffleNum) + cards.substring(0, shuffleNum);\n }\n System.out.println(cards);\n }", "String cards = sc.nextLine();", "cards", "sc.nextLine()", "sc.nextLine", "sc", "if(cards.equals(\"-\")) {\n \t\tbreak;\n \t}", "cards.equals(\"-\")", "cards.equals", "cards", "\"-\"", "{\n \t\tbreak;\n \t}", "break;", "int count = Integer.parseInt(sc.nextLine());", "count", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "for(int i = 0; i < count; i++) {\n \tint shuffleNum = Integer.parseInt(sc.nextLine());\n \tcards = cards.substring(shuffleNum) + cards.substring(0, shuffleNum);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < count", "i", "count", "i++", "i++", "i", "{\n \tint shuffleNum = Integer.parseInt(sc.nextLine());\n \tcards = cards.substring(shuffleNum) + cards.substring(0, shuffleNum);\n }", "{\n \tint shuffleNum = Integer.parseInt(sc.nextLine());\n \tcards = cards.substring(shuffleNum) + cards.substring(0, shuffleNum);\n }", "int shuffleNum = Integer.parseInt(sc.nextLine());", "shuffleNum", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "cards = cards.substring(shuffleNum) + cards.substring(0, shuffleNum)", "cards", "cards.substring(shuffleNum) + cards.substring(0, shuffleNum)", "cards.substring(shuffleNum)", "cards.substring", "cards", "shuffleNum", "cards.substring(0, shuffleNum)", "cards.substring", "cards", "0", "shuffleNum", "System.out.println(cards)", "System.out.println", "System.out", "System", "System.out", "cards", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while(true) {\n \tString cards = sc.nextLine();\n \tif(cards.equals(\"-\")) {\n \t\tbreak;\n \t}\n\n int count = Integer.parseInt(sc.nextLine());;\n for(int i = 0; i < count; i++) {\n \tint shuffleNum = Integer.parseInt(sc.nextLine());\n \tcards = cards.substring(shuffleNum) + cards.substring(0, shuffleNum);\n }\n System.out.println(cards);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while(true) {\n \tString cards = sc.nextLine();\n \tif(cards.equals(\"-\")) {\n \t\tbreak;\n \t}\n\n int count = Integer.parseInt(sc.nextLine());;\n for(int i = 0; i < count; i++) {\n \tint shuffleNum = Integer.parseInt(sc.nextLine());\n \tcards = cards.substring(shuffleNum) + cards.substring(0, shuffleNum);\n }\n System.out.println(cards);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(true) { String cards = sc.nextLine(); if(cards.equals("-")) { break; } int count = Integer.parseInt(sc.nextLine());; for(int i = 0; i < count; i++) { int shuffleNum = Integer.parseInt(sc.nextLine()); cards = cards.substring(shuffleNum) + cards.substring(0, shuffleNum); } System.out.println(cards); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 13, 2, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 73, 5 ], [ 73, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 14, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 31, 39 ], [ 39, 40 ], [ 40, 41 ], [ 31, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 43, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 51, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 59, 63 ], [ 14, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 6, 70 ], [ 70, 71 ], [ 0, 72 ], [ 72, 73 ], [ 72, 74 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n // write your code here\n Scanner scanner=new Scanner(System.in);\n while(true){\n String w= scanner.next();\n if(w.equals(\"-\")) break;\n long m=scanner.nextLong();\n for(int i=0;i<m;i++){\n int h=scanner.nextInt();\n w=w.substring(h,w.length())+w.subSequence(0,h);\n }\n System.out.println(w);\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 // write your code here\n Scanner scanner=new Scanner(System.in);\n while(true){\n String w= scanner.next();\n if(w.equals(\"-\")) break;\n long m=scanner.nextLong();\n for(int i=0;i<m;i++){\n int h=scanner.nextInt();\n w=w.substring(h,w.length())+w.subSequence(0,h);\n }\n System.out.println(w);\n }\n\n }\n\n}", "Main", "public static void main(String[] args) {\n // write your code here\n Scanner scanner=new Scanner(System.in);\n while(true){\n String w= scanner.next();\n if(w.equals(\"-\")) break;\n long m=scanner.nextLong();\n for(int i=0;i<m;i++){\n int h=scanner.nextInt();\n w=w.substring(h,w.length())+w.subSequence(0,h);\n }\n System.out.println(w);\n }\n\n }", "main", "{\n // write your code here\n Scanner scanner=new Scanner(System.in);\n while(true){\n String w= scanner.next();\n if(w.equals(\"-\")) break;\n long m=scanner.nextLong();\n for(int i=0;i<m;i++){\n int h=scanner.nextInt();\n w=w.substring(h,w.length())+w.subSequence(0,h);\n }\n System.out.println(w);\n }\n\n }", "Scanner scanner=new Scanner(System.in);", "scanner", "new Scanner(System.in)", "while(true){\n String w= scanner.next();\n if(w.equals(\"-\")) break;\n long m=scanner.nextLong();\n for(int i=0;i<m;i++){\n int h=scanner.nextInt();\n w=w.substring(h,w.length())+w.subSequence(0,h);\n }\n System.out.println(w);\n }", "true", "{\n String w= scanner.next();\n if(w.equals(\"-\")) break;\n long m=scanner.nextLong();\n for(int i=0;i<m;i++){\n int h=scanner.nextInt();\n w=w.substring(h,w.length())+w.subSequence(0,h);\n }\n System.out.println(w);\n }", "String w= scanner.next();", "w", "scanner.next()", "scanner.next", "scanner", "if(w.equals(\"-\")) break;", "w.equals(\"-\")", "w.equals", "w", "\"-\"", "break;", "long m=scanner.nextLong();", "m", "scanner.nextLong()", "scanner.nextLong", "scanner", "for(int i=0;i<m;i++){\n int h=scanner.nextInt();\n w=w.substring(h,w.length())+w.subSequence(0,h);\n }", "int i=0;", "int i=0;", "i", "0", "i<m", "i", "m", "i++", "i++", "i", "{\n int h=scanner.nextInt();\n w=w.substring(h,w.length())+w.subSequence(0,h);\n }", "{\n int h=scanner.nextInt();\n w=w.substring(h,w.length())+w.subSequence(0,h);\n }", "int h=scanner.nextInt();", "h", "scanner.nextInt()", "scanner.nextInt", "scanner", "w=w.substring(h,w.length())+w.subSequence(0,h)", "w", "w.substring(h,w.length())+w.subSequence(0,h)", "w.substring(h,w.length())", "w.substring", "w", "h", "w.length()", "w.length", "w", "w.subSequence(0,h)", "w.subSequence", "w", "0", "h", "System.out.println(w)", "System.out.println", "System.out", "System", "System.out", "w", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n // write your code here\n Scanner scanner=new Scanner(System.in);\n while(true){\n String w= scanner.next();\n if(w.equals(\"-\")) break;\n long m=scanner.nextLong();\n for(int i=0;i<m;i++){\n int h=scanner.nextInt();\n w=w.substring(h,w.length())+w.subSequence(0,h);\n }\n System.out.println(w);\n }\n\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n // write your code here\n Scanner scanner=new Scanner(System.in);\n while(true){\n String w= scanner.next();\n if(w.equals(\"-\")) break;\n long m=scanner.nextLong();\n for(int i=0;i<m;i++){\n int h=scanner.nextInt();\n w=w.substring(h,w.length())+w.subSequence(0,h);\n }\n System.out.println(w);\n }\n\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // write your code here Scanner scanner=new Scanner(System.in); while(true){ String w= scanner.next(); if(w.equals("-")) break; long m=scanner.nextLong(); for(int i=0;i<m;i++){ int h=scanner.nextInt(); w=w.substring(h,w.length())+w.subSequence(0,h); } System.out.println(w); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 13, 41, 13, 4, 18, 13, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 85, 5 ], [ 85, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 22, 27 ], [ 16, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 33, 34 ], [ 34, 35 ], [ 16, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 36, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 55, 56 ], [ 48, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 59, 63 ], [ 48, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 48, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 16, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 75, 81 ], [ 6, 82 ], [ 82, 83 ], [ 0, 84 ], [ 84, 85 ], [ 84, 86 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNextLine()) {\n\t\t\tString s = sc.nextLine();\n\t\t\tif(s.equals(\"-\"))\tbreak;\n\t\t\tint m = Integer.parseInt(sc.nextLine());\n\t\t\tfor(int i=0; i < m; i++) {\n\t\t\t\tint h = Integer.parseInt(sc.nextLine());\n\t\t\t\tString head = s.substring(0, h);\n\t\t\t\tString tail = s.substring(h);\n\t\t\t\ts = tail + head;\n\t\t\t}\n\t\t\tSystem.out.printf(\"%s\\n\", s);\n\t\t}\n\t}\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNextLine()) {\n\t\t\tString s = sc.nextLine();\n\t\t\tif(s.equals(\"-\"))\tbreak;\n\t\t\tint m = Integer.parseInt(sc.nextLine());\n\t\t\tfor(int i=0; i < m; i++) {\n\t\t\t\tint h = Integer.parseInt(sc.nextLine());\n\t\t\t\tString head = s.substring(0, h);\n\t\t\t\tString tail = s.substring(h);\n\t\t\t\ts = tail + head;\n\t\t\t}\n\t\t\tSystem.out.printf(\"%s\\n\", s);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNextLine()) {\n\t\t\tString s = sc.nextLine();\n\t\t\tif(s.equals(\"-\"))\tbreak;\n\t\t\tint m = Integer.parseInt(sc.nextLine());\n\t\t\tfor(int i=0; i < m; i++) {\n\t\t\t\tint h = Integer.parseInt(sc.nextLine());\n\t\t\t\tString head = s.substring(0, h);\n\t\t\t\tString tail = s.substring(h);\n\t\t\t\ts = tail + head;\n\t\t\t}\n\t\t\tSystem.out.printf(\"%s\\n\", s);\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNextLine()) {\n\t\t\tString s = sc.nextLine();\n\t\t\tif(s.equals(\"-\"))\tbreak;\n\t\t\tint m = Integer.parseInt(sc.nextLine());\n\t\t\tfor(int i=0; i < m; i++) {\n\t\t\t\tint h = Integer.parseInt(sc.nextLine());\n\t\t\t\tString head = s.substring(0, h);\n\t\t\t\tString tail = s.substring(h);\n\t\t\t\ts = tail + head;\n\t\t\t}\n\t\t\tSystem.out.printf(\"%s\\n\", s);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(sc.hasNextLine()) {\n\t\t\tString s = sc.nextLine();\n\t\t\tif(s.equals(\"-\"))\tbreak;\n\t\t\tint m = Integer.parseInt(sc.nextLine());\n\t\t\tfor(int i=0; i < m; i++) {\n\t\t\t\tint h = Integer.parseInt(sc.nextLine());\n\t\t\t\tString head = s.substring(0, h);\n\t\t\t\tString tail = s.substring(h);\n\t\t\t\ts = tail + head;\n\t\t\t}\n\t\t\tSystem.out.printf(\"%s\\n\", s);\n\t\t}", "sc.hasNextLine()", "sc.hasNextLine", "sc", "{\n\t\t\tString s = sc.nextLine();\n\t\t\tif(s.equals(\"-\"))\tbreak;\n\t\t\tint m = Integer.parseInt(sc.nextLine());\n\t\t\tfor(int i=0; i < m; i++) {\n\t\t\t\tint h = Integer.parseInt(sc.nextLine());\n\t\t\t\tString head = s.substring(0, h);\n\t\t\t\tString tail = s.substring(h);\n\t\t\t\ts = tail + head;\n\t\t\t}\n\t\t\tSystem.out.printf(\"%s\\n\", s);\n\t\t}", "String s = sc.nextLine();", "s", "sc.nextLine()", "sc.nextLine", "sc", "if(s.equals(\"-\"))\tbreak;", "s.equals(\"-\")", "s.equals", "s", "\"-\"", "break;", "int m = Integer.parseInt(sc.nextLine());", "m", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "for(int i=0; i < m; i++) {\n\t\t\t\tint h = Integer.parseInt(sc.nextLine());\n\t\t\t\tString head = s.substring(0, h);\n\t\t\t\tString tail = s.substring(h);\n\t\t\t\ts = tail + head;\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n\t\t\t\tint h = Integer.parseInt(sc.nextLine());\n\t\t\t\tString head = s.substring(0, h);\n\t\t\t\tString tail = s.substring(h);\n\t\t\t\ts = tail + head;\n\t\t\t}", "{\n\t\t\t\tint h = Integer.parseInt(sc.nextLine());\n\t\t\t\tString head = s.substring(0, h);\n\t\t\t\tString tail = s.substring(h);\n\t\t\t\ts = tail + head;\n\t\t\t}", "int h = Integer.parseInt(sc.nextLine());", "h", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "String head = s.substring(0, h);", "head", "s.substring(0, h)", "s.substring", "s", "0", "h", "String tail = s.substring(h);", "tail", "s.substring(h)", "s.substring", "s", "h", "s = tail + head", "s", "tail + head", "tail", "head", "System.out.printf(\"%s\\n\", s)", "System.out.printf", "System.out", "System", "System.out", "\"%s\\n\"", "s", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNextLine()) {\n\t\t\tString s = sc.nextLine();\n\t\t\tif(s.equals(\"-\"))\tbreak;\n\t\t\tint m = Integer.parseInt(sc.nextLine());\n\t\t\tfor(int i=0; i < m; i++) {\n\t\t\t\tint h = Integer.parseInt(sc.nextLine());\n\t\t\t\tString head = s.substring(0, h);\n\t\t\t\tString tail = s.substring(h);\n\t\t\t\ts = tail + head;\n\t\t\t}\n\t\t\tSystem.out.printf(\"%s\\n\", s);\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\twhile(sc.hasNextLine()) {\n\t\t\tString s = sc.nextLine();\n\t\t\tif(s.equals(\"-\"))\tbreak;\n\t\t\tint m = Integer.parseInt(sc.nextLine());\n\t\t\tfor(int i=0; i < m; i++) {\n\t\t\t\tint h = Integer.parseInt(sc.nextLine());\n\t\t\t\tString head = s.substring(0, h);\n\t\t\t\tString tail = s.substring(h);\n\t\t\t\ts = tail + head;\n\t\t\t}\n\t\t\tSystem.out.printf(\"%s\\n\", s);\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); while(sc.hasNextLine()) { String s = sc.nextLine(); if(s.equals("-")) break; int m = Integer.parseInt(sc.nextLine()); for(int i=0; i < m; i++) { int h = Integer.parseInt(sc.nextLine()); String head = s.substring(0, h); String tail = s.substring(h); s = tail + head; } System.out.printf("%s\n", s); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 0, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 17, 13, 4, 18, 13, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 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 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 26, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 26, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 26, 49 ], [ 49, 50 ], [ 49, 51 ], [ 26, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 64, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 64, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 78, 82 ], [ 64, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 64, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 87, 91 ], [ 26, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 6, 98 ], [ 98, 99 ] ]
[ "import java.util.*;\n\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n //変数定義\n int h,m;\n String str,str1,tmp;\n StringBuffer sb;\n\n while(true){\n //カードの山文字列受取\n str = sc.nextLine();\n\n //終了条件定義\n if(str.equals(\"-\")) break;\n \n //シャッフル回数受取\n str1 = sc.nextLine();\n m = Integer.parseInt(str1);\n\n //Stringクラス→StringBufferクラス\n sb = new StringBuffer(str);\n\n for(int i = 0;i < m;i++){\n //h受取\n str1 = sc.nextLine();\n h = Integer.parseInt(str1);\n //文字列分割\n tmp = sb.substring(0,h);\n //末尾に文字列追加\n sb.append(tmp);\n //頭の文字列削除\n sb.delete(0,h);\n }\n System.out.println(sb);\n }\n }\n}", "import java.util.*;", "util.*", "java", "class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n //変数定義\n int h,m;\n String str,str1,tmp;\n StringBuffer sb;\n\n while(true){\n //カードの山文字列受取\n str = sc.nextLine();\n\n //終了条件定義\n if(str.equals(\"-\")) break;\n \n //シャッフル回数受取\n str1 = sc.nextLine();\n m = Integer.parseInt(str1);\n\n //Stringクラス→StringBufferクラス\n sb = new StringBuffer(str);\n\n for(int i = 0;i < m;i++){\n //h受取\n str1 = sc.nextLine();\n h = Integer.parseInt(str1);\n //文字列分割\n tmp = sb.substring(0,h);\n //末尾に文字列追加\n sb.append(tmp);\n //頭の文字列削除\n sb.delete(0,h);\n }\n System.out.println(sb);\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n //変数定義\n int h,m;\n String str,str1,tmp;\n StringBuffer sb;\n\n while(true){\n //カードの山文字列受取\n str = sc.nextLine();\n\n //終了条件定義\n if(str.equals(\"-\")) break;\n \n //シャッフル回数受取\n str1 = sc.nextLine();\n m = Integer.parseInt(str1);\n\n //Stringクラス→StringBufferクラス\n sb = new StringBuffer(str);\n\n for(int i = 0;i < m;i++){\n //h受取\n str1 = sc.nextLine();\n h = Integer.parseInt(str1);\n //文字列分割\n tmp = sb.substring(0,h);\n //末尾に文字列追加\n sb.append(tmp);\n //頭の文字列削除\n sb.delete(0,h);\n }\n System.out.println(sb);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n //変数定義\n int h,m;\n String str,str1,tmp;\n StringBuffer sb;\n\n while(true){\n //カードの山文字列受取\n str = sc.nextLine();\n\n //終了条件定義\n if(str.equals(\"-\")) break;\n \n //シャッフル回数受取\n str1 = sc.nextLine();\n m = Integer.parseInt(str1);\n\n //Stringクラス→StringBufferクラス\n sb = new StringBuffer(str);\n\n for(int i = 0;i < m;i++){\n //h受取\n str1 = sc.nextLine();\n h = Integer.parseInt(str1);\n //文字列分割\n tmp = sb.substring(0,h);\n //末尾に文字列追加\n sb.append(tmp);\n //頭の文字列削除\n sb.delete(0,h);\n }\n System.out.println(sb);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int h", "h", "m;", "m", "String str", "str", "str1", "str1", "tmp;", "tmp", "StringBuffer sb;", "sb", "while(true){\n //カードの山文字列受取\n str = sc.nextLine();\n\n //終了条件定義\n if(str.equals(\"-\")) break;\n \n //シャッフル回数受取\n str1 = sc.nextLine();\n m = Integer.parseInt(str1);\n\n //Stringクラス→StringBufferクラス\n sb = new StringBuffer(str);\n\n for(int i = 0;i < m;i++){\n //h受取\n str1 = sc.nextLine();\n h = Integer.parseInt(str1);\n //文字列分割\n tmp = sb.substring(0,h);\n //末尾に文字列追加\n sb.append(tmp);\n //頭の文字列削除\n sb.delete(0,h);\n }\n System.out.println(sb);\n }", "true", "{\n //カードの山文字列受取\n str = sc.nextLine();\n\n //終了条件定義\n if(str.equals(\"-\")) break;\n \n //シャッフル回数受取\n str1 = sc.nextLine();\n m = Integer.parseInt(str1);\n\n //Stringクラス→StringBufferクラス\n sb = new StringBuffer(str);\n\n for(int i = 0;i < m;i++){\n //h受取\n str1 = sc.nextLine();\n h = Integer.parseInt(str1);\n //文字列分割\n tmp = sb.substring(0,h);\n //末尾に文字列追加\n sb.append(tmp);\n //頭の文字列削除\n sb.delete(0,h);\n }\n System.out.println(sb);\n }", "str = sc.nextLine()", "str", "sc.nextLine()", "sc.nextLine", "sc", "if(str.equals(\"-\")) break;", "str.equals(\"-\")", "str.equals", "str", "\"-\"", "break;", "str1 = sc.nextLine()", "str1", "sc.nextLine()", "sc.nextLine", "sc", "m = Integer.parseInt(str1)", "m", "Integer.parseInt(str1)", "Integer.parseInt", "Integer", "str1", "sb = new StringBuffer(str)", "sb", "new StringBuffer(str)", "for(int i = 0;i < m;i++){\n //h受取\n str1 = sc.nextLine();\n h = Integer.parseInt(str1);\n //文字列分割\n tmp = sb.substring(0,h);\n //末尾に文字列追加\n sb.append(tmp);\n //頭の文字列削除\n sb.delete(0,h);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n //h受取\n str1 = sc.nextLine();\n h = Integer.parseInt(str1);\n //文字列分割\n tmp = sb.substring(0,h);\n //末尾に文字列追加\n sb.append(tmp);\n //頭の文字列削除\n sb.delete(0,h);\n }", "{\n //h受取\n str1 = sc.nextLine();\n h = Integer.parseInt(str1);\n //文字列分割\n tmp = sb.substring(0,h);\n //末尾に文字列追加\n sb.append(tmp);\n //頭の文字列削除\n sb.delete(0,h);\n }", "str1 = sc.nextLine()", "str1", "sc.nextLine()", "sc.nextLine", "sc", "h = Integer.parseInt(str1)", "h", "Integer.parseInt(str1)", "Integer.parseInt", "Integer", "str1", "tmp = sb.substring(0,h)", "tmp", "sb.substring(0,h)", "sb.substring", "sb", "0", "h", "sb.append(tmp)", "sb.append", "sb", "tmp", "sb.delete(0,h)", "sb.delete", "sb", "0", "h", "System.out.println(sb)", "System.out.println", "System.out", "System", "System.out", "sb", "String[] args", "args" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); //変数定義 int h,m; String str,str1,tmp; StringBuffer sb; while(true){ //カードの山文字列受取 str = sc.nextLine(); //終了条件定義 if(str.equals("-")) break; //シャッフル回数受取 str1 = sc.nextLine(); m = Integer.parseInt(str1); //Stringクラス→StringBufferクラス sb = new StringBuffer(str); for(int i = 0;i < m;i++){ //h受取 str1 = sc.nextLine(); h = Integer.parseInt(str1); //文字列分割 tmp = sb.substring(0,h); //末尾に文字列追加 sb.append(tmp); //頭の文字列削除 sb.delete(0,h); } System.out.println(sb); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 3, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 13, 41, 13, 4, 18, 13, 13, 0, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 22, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 22, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 22, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 56, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 64, 68 ], [ 56, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 56, 75 ], [ 75, 76 ], [ 75, 77 ], [ 56, 78 ], [ 78, 79 ], [ 78, 80 ], [ 22, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 6, 87 ], [ 87, 88 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String args[]){\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\t\t\n\t\tint m, n, h;\n\t\tString str;\n\t\t\n\t\twhile(true){\n\t\t\tstr = scan.next();\n\t\t\tif(str.equals(\"-\"))break;\n\t\t\t\n\t\t\tn = str.length(); //??????????????°???????????°???\n\t\t\t\n\t\t\tm = scan.nextInt(); //?????£??????????????°\n\t\t\t\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\th = scan.nextInt(); //????????? h ????????????\n\n\t\t\t\tString sub = str.substring(0, h); //\n\t\t\t\tString sub2 = str.substring(h);\n\t\t\t\tstr = sub2;\n\t\t\t\tstr += sub;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic static void main(String args[]){\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\t\t\n\t\tint m, n, h;\n\t\tString str;\n\t\t\n\t\twhile(true){\n\t\t\tstr = scan.next();\n\t\t\tif(str.equals(\"-\"))break;\n\t\t\t\n\t\t\tn = str.length(); //??????????????°???????????°???\n\t\t\t\n\t\t\tm = scan.nextInt(); //?????£??????????????°\n\t\t\t\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\th = scan.nextInt(); //????????? h ????????????\n\n\t\t\t\tString sub = str.substring(0, h); //\n\t\t\t\tString sub2 = str.substring(h);\n\t\t\t\tstr = sub2;\n\t\t\t\tstr += sub;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}\n}", "Main", "public static void main(String args[]){\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\t\t\n\t\tint m, n, h;\n\t\tString str;\n\t\t\n\t\twhile(true){\n\t\t\tstr = scan.next();\n\t\t\tif(str.equals(\"-\"))break;\n\t\t\t\n\t\t\tn = str.length(); //??????????????°???????????°???\n\t\t\t\n\t\t\tm = scan.nextInt(); //?????£??????????????°\n\t\t\t\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\th = scan.nextInt(); //????????? h ????????????\n\n\t\t\t\tString sub = str.substring(0, h); //\n\t\t\t\tString sub2 = str.substring(h);\n\t\t\t\tstr = sub2;\n\t\t\t\tstr += sub;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}", "main", "{\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\t\t\n\t\tint m, n, h;\n\t\tString str;\n\t\t\n\t\twhile(true){\n\t\t\tstr = scan.next();\n\t\t\tif(str.equals(\"-\"))break;\n\t\t\t\n\t\t\tn = str.length(); //??????????????°???????????°???\n\t\t\t\n\t\t\tm = scan.nextInt(); //?????£??????????????°\n\t\t\t\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\th = scan.nextInt(); //????????? h ????????????\n\n\t\t\t\tString sub = str.substring(0, h); //\n\t\t\t\tString sub2 = str.substring(h);\n\t\t\t\tstr = sub2;\n\t\t\t\tstr += sub;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int m", "m", "n", "n", "h;", "h", "String str;", "str", "while(true){\n\t\t\tstr = scan.next();\n\t\t\tif(str.equals(\"-\"))break;\n\t\t\t\n\t\t\tn = str.length(); //??????????????°???????????°???\n\t\t\t\n\t\t\tm = scan.nextInt(); //?????£??????????????°\n\t\t\t\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\th = scan.nextInt(); //????????? h ????????????\n\n\t\t\t\tString sub = str.substring(0, h); //\n\t\t\t\tString sub2 = str.substring(h);\n\t\t\t\tstr = sub2;\n\t\t\t\tstr += sub;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(str);\n\t\t}", "true", "{\n\t\t\tstr = scan.next();\n\t\t\tif(str.equals(\"-\"))break;\n\t\t\t\n\t\t\tn = str.length(); //??????????????°???????????°???\n\t\t\t\n\t\t\tm = scan.nextInt(); //?????£??????????????°\n\t\t\t\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\th = scan.nextInt(); //????????? h ????????????\n\n\t\t\t\tString sub = str.substring(0, h); //\n\t\t\t\tString sub2 = str.substring(h);\n\t\t\t\tstr = sub2;\n\t\t\t\tstr += sub;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(str);\n\t\t}", "str = scan.next()", "str", "scan.next()", "scan.next", "scan", "if(str.equals(\"-\"))break;", "str.equals(\"-\")", "str.equals", "str", "\"-\"", "break;", "n = str.length()", "n", "str.length()", "str.length", "str", "m = scan.nextInt()", "m", "scan.nextInt()", "scan.nextInt", "scan", "for(int i = 0; i < m; i++){\n\t\t\t\th = scan.nextInt(); //????????? h ????????????\n\n\t\t\t\tString sub = str.substring(0, h); //\n\t\t\t\tString sub2 = str.substring(h);\n\t\t\t\tstr = sub2;\n\t\t\t\tstr += sub;\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n\t\t\t\th = scan.nextInt(); //????????? h ????????????\n\n\t\t\t\tString sub = str.substring(0, h); //\n\t\t\t\tString sub2 = str.substring(h);\n\t\t\t\tstr = sub2;\n\t\t\t\tstr += sub;\n\t\t\t}", "{\n\t\t\t\th = scan.nextInt(); //????????? h ????????????\n\n\t\t\t\tString sub = str.substring(0, h); //\n\t\t\t\tString sub2 = str.substring(h);\n\t\t\t\tstr = sub2;\n\t\t\t\tstr += sub;\n\t\t\t}", "h = scan.nextInt()", "h", "scan.nextInt()", "scan.nextInt", "scan", "String sub = str.substring(0, h);", "sub", "str.substring(0, h)", "str.substring", "str", "0", "h", "String sub2 = str.substring(h);", "sub2", "str.substring(h)", "str.substring", "str", "h", "str = sub2", "str", "sub2", "str += sub", "str", "sub", "System.out.println(str)", "System.out.println", "System.out", "System", "System.out", "str", "String args[]", "args" ]
import java.util.Scanner; class Main { public static void main(String args[]){ Scanner scan = new Scanner(System.in); int m, n, h; String str; while(true){ str = scan.next(); if(str.equals("-"))break; n = str.length(); //??????????????°???????????°??? m = scan.nextInt(); //?????£??????????????° for(int i = 0; i < m; i++){ h = scan.nextInt(); //????????? h ???????????? String sub = str.substring(0, h); // String sub2 = str.substring(h); str = sub2; str += sub; } System.out.println(str); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 30, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 11, 1, 41, 13, 4, 18, 13, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 13, 2, 4, 18, 13, 13, 4, 18, 13, 17, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 72, 5 ], [ 72, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 15, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 15, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 21, 26 ], [ 26, 27 ], [ 15, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 28, 35 ], [ 35, 36 ], [ 35, 37 ], [ 28, 38 ], [ 38, 39 ], [ 39, 40 ], [ 28, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 42, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 50, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 55, 59 ], [ 15, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 8, 66 ], [ 66, 67 ], [ 67, 68 ], [ 6, 69 ], [ 69, 70 ], [ 0, 71 ], [ 71, 72 ], [ 71, 73 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] arg){\n Scanner sc = new Scanner(System.in);\n for( ; ; ){\n String x = sc.next();\n if(x.equals(\"-\")){\n break;\n }\n for(int n = sc.nextInt() ; n > 0; n--){\n int a = sc.nextInt();\n x = x.substring(a) + x.substring(0,a);\n }\n System.out.println(x);\n }\n sc.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] arg){\n Scanner sc = new Scanner(System.in);\n for( ; ; ){\n String x = sc.next();\n if(x.equals(\"-\")){\n break;\n }\n for(int n = sc.nextInt() ; n > 0; n--){\n int a = sc.nextInt();\n x = x.substring(a) + x.substring(0,a);\n }\n System.out.println(x);\n }\n sc.close();\n }\n}", "Main", "public static void main(String[] arg){\n Scanner sc = new Scanner(System.in);\n for( ; ; ){\n String x = sc.next();\n if(x.equals(\"-\")){\n break;\n }\n for(int n = sc.nextInt() ; n > 0; n--){\n int a = sc.nextInt();\n x = x.substring(a) + x.substring(0,a);\n }\n System.out.println(x);\n }\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n for( ; ; ){\n String x = sc.next();\n if(x.equals(\"-\")){\n break;\n }\n for(int n = sc.nextInt() ; n > 0; n--){\n int a = sc.nextInt();\n x = x.substring(a) + x.substring(0,a);\n }\n System.out.println(x);\n }\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "for( ; ; ){\n String x = sc.next();\n if(x.equals(\"-\")){\n break;\n }\n for(int n = sc.nextInt() ; n > 0; n--){\n int a = sc.nextInt();\n x = x.substring(a) + x.substring(0,a);\n }\n System.out.println(x);\n }", ";", "{\n String x = sc.next();\n if(x.equals(\"-\")){\n break;\n }\n for(int n = sc.nextInt() ; n > 0; n--){\n int a = sc.nextInt();\n x = x.substring(a) + x.substring(0,a);\n }\n System.out.println(x);\n }", "{\n String x = sc.next();\n if(x.equals(\"-\")){\n break;\n }\n for(int n = sc.nextInt() ; n > 0; n--){\n int a = sc.nextInt();\n x = x.substring(a) + x.substring(0,a);\n }\n System.out.println(x);\n }", "String x = sc.next();", "x", "sc.next()", "sc.next", "sc", "if(x.equals(\"-\")){\n break;\n }", "x.equals(\"-\")", "x.equals", "x", "\"-\"", "{\n break;\n }", "break;", "for(int n = sc.nextInt() ; n > 0; n--){\n int a = sc.nextInt();\n x = x.substring(a) + x.substring(0,a);\n }", "int n = sc.nextInt() ;", "int n = sc.nextInt() ;", "n", "sc.nextInt()", "sc.nextInt", "sc", "n > 0", "n", "0", "n--", "n--", "n", "{\n int a = sc.nextInt();\n x = x.substring(a) + x.substring(0,a);\n }", "{\n int a = sc.nextInt();\n x = x.substring(a) + x.substring(0,a);\n }", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "x = x.substring(a) + x.substring(0,a)", "x", "x.substring(a) + x.substring(0,a)", "x.substring(a)", "x.substring", "x", "a", "x.substring(0,a)", "x.substring", "x", "0", "a", "System.out.println(x)", "System.out.println", "System.out", "System", "System.out", "x", "sc.close()", "sc.close", "sc", "String[] arg", "arg", "public class Main {\n public static void main(String[] arg){\n Scanner sc = new Scanner(System.in);\n for( ; ; ){\n String x = sc.next();\n if(x.equals(\"-\")){\n break;\n }\n for(int n = sc.nextInt() ; n > 0; n--){\n int a = sc.nextInt();\n x = x.substring(a) + x.substring(0,a);\n }\n System.out.println(x);\n }\n sc.close();\n }\n}", "public class Main {\n public static void main(String[] arg){\n Scanner sc = new Scanner(System.in);\n for( ; ; ){\n String x = sc.next();\n if(x.equals(\"-\")){\n break;\n }\n for(int n = sc.nextInt() ; n > 0; n--){\n int a = sc.nextInt();\n x = x.substring(a) + x.substring(0,a);\n }\n System.out.println(x);\n }\n sc.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] arg){ Scanner sc = new Scanner(System.in); for( ; ; ){ String x = sc.next(); if(x.equals("-")){ break; } for(int n = sc.nextInt() ; n > 0; n--){ int a = sc.nextInt(); x = x.substring(a) + x.substring(0,a); } System.out.println(x); } sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 17, 4, 18, 13, 17, 28, 13, 13, 30, 30, 4, 18, 18, 13, 13, 13, 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 ], [ 125, 11 ], [ 125, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 26, 31 ], [ 31, 32 ], [ 20, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 20, 38 ], [ 38, 39 ], [ 38, 40 ], [ 20, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 41, 51 ], [ 51, 52 ], [ 52, 53 ], [ 41, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 20, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 68, 69 ], [ 68, 70 ], [ 63, 71 ], [ 71, 72 ], [ 72, 73 ], [ 63, 74 ], [ 75, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 75, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 86, 87 ], [ 86, 88 ], [ 81, 89 ], [ 89, 90 ], [ 90, 91 ], [ 81, 92 ], [ 93, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 93, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 20, 105 ], [ 105, 106 ], [ 105, 107 ], [ 105, 108 ], [ 109, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 20, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 12, 122 ], [ 122, 123 ], [ 0, 124 ], [ 124, 125 ], [ 124, 126 ] ]
[ "import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true){\n String s = sc.next();\n if(s.equals(\"-\")){\n break;\n }\n int m = sc.nextInt();\n List<Character> str = new ArrayList<>();\n for(int i = 0; i < s.length(); i++){\n str.add(s.charAt(i));\n } \n for(int i = 0; i < m; i++){\n int h = sc.nextInt();\n for(int j = 0; j < h; j++){\n str.add(str.get(0));\n str.remove(0);\n }\n }\n for(char c : str){\n System.out.print(c);\n }\n System.out.println(\"\");\n }\n }\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true){\n String s = sc.next();\n if(s.equals(\"-\")){\n break;\n }\n int m = sc.nextInt();\n List<Character> str = new ArrayList<>();\n for(int i = 0; i < s.length(); i++){\n str.add(s.charAt(i));\n } \n for(int i = 0; i < m; i++){\n int h = sc.nextInt();\n for(int j = 0; j < h; j++){\n str.add(str.get(0));\n str.remove(0);\n }\n }\n for(char c : str){\n System.out.print(c);\n }\n System.out.println(\"\");\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true){\n String s = sc.next();\n if(s.equals(\"-\")){\n break;\n }\n int m = sc.nextInt();\n List<Character> str = new ArrayList<>();\n for(int i = 0; i < s.length(); i++){\n str.add(s.charAt(i));\n } \n for(int i = 0; i < m; i++){\n int h = sc.nextInt();\n for(int j = 0; j < h; j++){\n str.add(str.get(0));\n str.remove(0);\n }\n }\n for(char c : str){\n System.out.print(c);\n }\n System.out.println(\"\");\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while(true){\n String s = sc.next();\n if(s.equals(\"-\")){\n break;\n }\n int m = sc.nextInt();\n List<Character> str = new ArrayList<>();\n for(int i = 0; i < s.length(); i++){\n str.add(s.charAt(i));\n } \n for(int i = 0; i < m; i++){\n int h = sc.nextInt();\n for(int j = 0; j < h; j++){\n str.add(str.get(0));\n str.remove(0);\n }\n }\n for(char c : str){\n System.out.print(c);\n }\n System.out.println(\"\");\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n String s = sc.next();\n if(s.equals(\"-\")){\n break;\n }\n int m = sc.nextInt();\n List<Character> str = new ArrayList<>();\n for(int i = 0; i < s.length(); i++){\n str.add(s.charAt(i));\n } \n for(int i = 0; i < m; i++){\n int h = sc.nextInt();\n for(int j = 0; j < h; j++){\n str.add(str.get(0));\n str.remove(0);\n }\n }\n for(char c : str){\n System.out.print(c);\n }\n System.out.println(\"\");\n }", "true", "{\n String s = sc.next();\n if(s.equals(\"-\")){\n break;\n }\n int m = sc.nextInt();\n List<Character> str = new ArrayList<>();\n for(int i = 0; i < s.length(); i++){\n str.add(s.charAt(i));\n } \n for(int i = 0; i < m; i++){\n int h = sc.nextInt();\n for(int j = 0; j < h; j++){\n str.add(str.get(0));\n str.remove(0);\n }\n }\n for(char c : str){\n System.out.print(c);\n }\n System.out.println(\"\");\n }", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "if(s.equals(\"-\")){\n break;\n }", "s.equals(\"-\")", "s.equals", "s", "\"-\"", "{\n break;\n }", "break;", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "List<Character> str = new ArrayList<>();", "str", "new ArrayList<>()", "for(int i = 0; i < s.length(); i++){\n str.add(s.charAt(i));\n }", "int i = 0;", "int i = 0;", "i", "0", "i < s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n str.add(s.charAt(i));\n }", "{\n str.add(s.charAt(i));\n }", "str.add(s.charAt(i))", "str.add", "str", "s.charAt(i)", "s.charAt", "s", "i", "for(int i = 0; i < m; i++){\n int h = sc.nextInt();\n for(int j = 0; j < h; j++){\n str.add(str.get(0));\n str.remove(0);\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < m", "i", "m", "i++", "i++", "i", "{\n int h = sc.nextInt();\n for(int j = 0; j < h; j++){\n str.add(str.get(0));\n str.remove(0);\n }\n }", "{\n int h = sc.nextInt();\n for(int j = 0; j < h; j++){\n str.add(str.get(0));\n str.remove(0);\n }\n }", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "for(int j = 0; j < h; j++){\n str.add(str.get(0));\n str.remove(0);\n }", "int j = 0;", "int j = 0;", "j", "0", "j < h", "j", "h", "j++", "j++", "j", "{\n str.add(str.get(0));\n str.remove(0);\n }", "{\n str.add(str.get(0));\n str.remove(0);\n }", "str.add(str.get(0))", "str.add", "str", "str.get(0)", "str.get", "str", "0", "str.remove(0)", "str.remove", "str", "0", "for(char c : str){\n System.out.print(c);\n }", "char c", "str", "{\n System.out.print(c);\n }", "{\n System.out.print(c);\n }", "System.out.print(c)", "System.out.print", "System.out", "System", "System.out", "c", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true){\n String s = sc.next();\n if(s.equals(\"-\")){\n break;\n }\n int m = sc.nextInt();\n List<Character> str = new ArrayList<>();\n for(int i = 0; i < s.length(); i++){\n str.add(s.charAt(i));\n } \n for(int i = 0; i < m; i++){\n int h = sc.nextInt();\n for(int j = 0; j < h; j++){\n str.add(str.get(0));\n str.remove(0);\n }\n }\n for(char c : str){\n System.out.print(c);\n }\n System.out.println(\"\");\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true){\n String s = sc.next();\n if(s.equals(\"-\")){\n break;\n }\n int m = sc.nextInt();\n List<Character> str = new ArrayList<>();\n for(int i = 0; i < s.length(); i++){\n str.add(s.charAt(i));\n } \n for(int i = 0; i < m; i++){\n int h = sc.nextInt();\n for(int j = 0; j < h; j++){\n str.add(str.get(0));\n str.remove(0);\n }\n }\n for(char c : str){\n System.out.print(c);\n }\n System.out.println(\"\");\n }\n }\n}", "Main" ]
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(true){ String s = sc.next(); if(s.equals("-")){ break; } int m = sc.nextInt(); List<Character> str = new ArrayList<>(); for(int i = 0; i < s.length(); i++){ str.add(s.charAt(i)); } for(int i = 0; i < m; i++){ int h = sc.nextInt(); for(int j = 0; j < h; j++){ str.add(str.get(0)); str.remove(0); } } for(char c : str){ System.out.print(c); } System.out.println(""); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 41, 13, 17, 0, 13, 4, 18, 13, 42, 2, 13, 13, 30, 41, 13, 41, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 13, 13, 13, 0, 13, 17, 0, 13, 2, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 91, 5 ], [ 91, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 18, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 24, 29 ], [ 29, 30 ], [ 18, 31 ], [ 31, 32 ], [ 31, 33 ], [ 18, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 18, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 46, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 43, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 43, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 60, 64 ], [ 43, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 67, 71 ], [ 43, 72 ], [ 72, 73 ], [ 72, 74 ], [ 43, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 43, 80 ], [ 80, 81 ], [ 18, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 6, 88 ], [ 88, 89 ], [ 0, 90 ], [ 90, 91 ], [ 90, 92 ] ]
[ "import java.util.*;\n\n\npublic class Main{\n public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n int a,b ;\n \n while (true) {\n String str = sc.next();\n if (str.equals(\"-\")) {\n break; \n }\n int i = 0;\n b = sc.nextInt();\n while(i!=b){\n String str1,str2;\n a = sc.nextInt();\n int ln =str.length();\n str1 = str.substring(0,a);\n str2 = str.substring(a,ln);\n str = \"\";\n str = str2 + str1;\n i++;\n }\n System.out.println(str);\n }\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 int a,b ;\n \n while (true) {\n String str = sc.next();\n if (str.equals(\"-\")) {\n break; \n }\n int i = 0;\n b = sc.nextInt();\n while(i!=b){\n String str1,str2;\n a = sc.nextInt();\n int ln =str.length();\n str1 = str.substring(0,a);\n str2 = str.substring(a,ln);\n str = \"\";\n str = str2 + str1;\n i++;\n }\n System.out.println(str);\n }\n\n }\n}", "Main", "public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n int a,b ;\n \n while (true) {\n String str = sc.next();\n if (str.equals(\"-\")) {\n break; \n }\n int i = 0;\n b = sc.nextInt();\n while(i!=b){\n String str1,str2;\n a = sc.nextInt();\n int ln =str.length();\n str1 = str.substring(0,a);\n str2 = str.substring(a,ln);\n str = \"\";\n str = str2 + str1;\n i++;\n }\n System.out.println(str);\n }\n\n }", "main", "{\n \n Scanner sc = new Scanner(System.in);\n int a,b ;\n \n while (true) {\n String str = sc.next();\n if (str.equals(\"-\")) {\n break; \n }\n int i = 0;\n b = sc.nextInt();\n while(i!=b){\n String str1,str2;\n a = sc.nextInt();\n int ln =str.length();\n str1 = str.substring(0,a);\n str2 = str.substring(a,ln);\n str = \"\";\n str = str2 + str1;\n i++;\n }\n System.out.println(str);\n }\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a", "a", "b ;", "b", "while (true) {\n String str = sc.next();\n if (str.equals(\"-\")) {\n break; \n }\n int i = 0;\n b = sc.nextInt();\n while(i!=b){\n String str1,str2;\n a = sc.nextInt();\n int ln =str.length();\n str1 = str.substring(0,a);\n str2 = str.substring(a,ln);\n str = \"\";\n str = str2 + str1;\n i++;\n }\n System.out.println(str);\n }", "true", "{\n String str = sc.next();\n if (str.equals(\"-\")) {\n break; \n }\n int i = 0;\n b = sc.nextInt();\n while(i!=b){\n String str1,str2;\n a = sc.nextInt();\n int ln =str.length();\n str1 = str.substring(0,a);\n str2 = str.substring(a,ln);\n str = \"\";\n str = str2 + str1;\n i++;\n }\n System.out.println(str);\n }", "String str = sc.next();", "str", "sc.next()", "sc.next", "sc", "if (str.equals(\"-\")) {\n break; \n }", "str.equals(\"-\")", "str.equals", "str", "\"-\"", "{\n break; \n }", "break;", "int i = 0;", "i", "0", "b = sc.nextInt()", "b", "sc.nextInt()", "sc.nextInt", "sc", "while(i!=b){\n String str1,str2;\n a = sc.nextInt();\n int ln =str.length();\n str1 = str.substring(0,a);\n str2 = str.substring(a,ln);\n str = \"\";\n str = str2 + str1;\n i++;\n }", "i!=b", "i", "b", "{\n String str1,str2;\n a = sc.nextInt();\n int ln =str.length();\n str1 = str.substring(0,a);\n str2 = str.substring(a,ln);\n str = \"\";\n str = str2 + str1;\n i++;\n }", "String str1", "str1", "str2;", "str2", "a = sc.nextInt()", "a", "sc.nextInt()", "sc.nextInt", "sc", "int ln =str.length();", "ln", "str.length()", "str.length", "str", "str1 = str.substring(0,a)", "str1", "str.substring(0,a)", "str.substring", "str", "0", "a", "str2 = str.substring(a,ln)", "str2", "str.substring(a,ln)", "str.substring", "str", "a", "ln", "str = \"\"", "str", "\"\"", "str = str2 + str1", "str", "str2 + str1", "str2", "str1", "i++", "i", "System.out.println(str)", "System.out.println", "System.out", "System", "System.out", "str", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n int a,b ;\n \n while (true) {\n String str = sc.next();\n if (str.equals(\"-\")) {\n break; \n }\n int i = 0;\n b = sc.nextInt();\n while(i!=b){\n String str1,str2;\n a = sc.nextInt();\n int ln =str.length();\n str1 = str.substring(0,a);\n str2 = str.substring(a,ln);\n str = \"\";\n str = str2 + str1;\n i++;\n }\n System.out.println(str);\n }\n\n }\n}", "public class Main{\n public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n int a,b ;\n \n while (true) {\n String str = sc.next();\n if (str.equals(\"-\")) {\n break; \n }\n int i = 0;\n b = sc.nextInt();\n while(i!=b){\n String str1,str2;\n a = sc.nextInt();\n int ln =str.length();\n str1 = str.substring(0,a);\n str2 = str.substring(a,ln);\n str = \"\";\n str = str2 + str1;\n i++;\n }\n System.out.println(str);\n }\n\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a,b ; while (true) { String str = sc.next(); if (str.equals("-")) { break; } int i = 0; b = sc.nextInt(); while(i!=b){ String str1,str2; a = sc.nextInt(); int ln =str.length(); str1 = str.substring(0,a); str2 = str.substring(a,ln); str = ""; str = str2 + str1; i++; } System.out.println(str); } } }