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,
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,
17,
13,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
80,
14
],
[
80,
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
],
[
23,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
23,
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
],
[
63,
64
],
[
62,
65
],
[
61,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
66,
70
],
[
23,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
15,
77
],
[
77,
78
],
[
0,
79
],
[
79,
80
],
[
79,
81
]
]
| [
"import java.util.Arrays;\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tString input = sc.next();\n\t\t\tif(\"-\".equals(input)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfinal int m = sc.nextInt();\n\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tfinal int h = sc.nextInt();\n\t\t\t\t\n\t\t\t\tinput = input.substring(h) + input.substring(0, h);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(input);\n\t\t}\n\t}\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.Map;",
"Map",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tString input = sc.next();\n\t\t\tif(\"-\".equals(input)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfinal int m = sc.nextInt();\n\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tfinal int h = sc.nextInt();\n\t\t\t\t\n\t\t\t\tinput = input.substring(h) + input.substring(0, h);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(input);\n\t\t}\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 input = sc.next();\n\t\t\tif(\"-\".equals(input)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfinal int m = sc.nextInt();\n\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tfinal int h = sc.nextInt();\n\t\t\t\t\n\t\t\t\tinput = input.substring(h) + input.substring(0, h);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(input);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tString input = sc.next();\n\t\t\tif(\"-\".equals(input)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfinal int m = sc.nextInt();\n\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tfinal int h = sc.nextInt();\n\t\t\t\t\n\t\t\t\tinput = input.substring(h) + input.substring(0, h);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(input);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while (true) {\n\t\t\tString input = sc.next();\n\t\t\tif(\"-\".equals(input)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfinal int m = sc.nextInt();\n\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tfinal int h = sc.nextInt();\n\t\t\t\t\n\t\t\t\tinput = input.substring(h) + input.substring(0, h);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(input);\n\t\t}",
"true",
"{\n\t\t\tString input = sc.next();\n\t\t\tif(\"-\".equals(input)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfinal int m = sc.nextInt();\n\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tfinal int h = sc.nextInt();\n\t\t\t\t\n\t\t\t\tinput = input.substring(h) + input.substring(0, h);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(input);\n\t\t}",
"String input = sc.next();",
"input",
"sc.next()",
"sc.next",
"sc",
"if(\"-\".equals(input)){\n\t\t\t\tbreak;\n\t\t\t}",
"\"-\".equals(input)",
"\"-\".equals",
"\"-\"",
"input",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"final int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < m; i++) {\n\t\t\t\tfinal int h = sc.nextInt();\n\t\t\t\t\n\t\t\t\tinput = input.substring(h) + input.substring(0, h);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\t\tfinal int h = sc.nextInt();\n\t\t\t\t\n\t\t\t\tinput = input.substring(h) + input.substring(0, h);\n\t\t\t}",
"{\n\t\t\t\tfinal int h = sc.nextInt();\n\t\t\t\t\n\t\t\t\tinput = input.substring(h) + input.substring(0, h);\n\t\t\t}",
"final int h = sc.nextInt();",
"h",
"sc.nextInt()",
"sc.nextInt",
"sc",
"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\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tString input = sc.next();\n\t\t\tif(\"-\".equals(input)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfinal int m = sc.nextInt();\n\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tfinal int h = sc.nextInt();\n\t\t\t\t\n\t\t\t\tinput = input.substring(h) + input.substring(0, h);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(input);\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\n\t\twhile (true) {\n\t\t\tString input = sc.next();\n\t\t\tif(\"-\".equals(input)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfinal int m = sc.nextInt();\n\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tfinal int h = sc.nextInt();\n\t\t\t\t\n\t\t\t\tinput = input.substring(h) + input.substring(0, h);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(input);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
while (true) {
String input = sc.next();
if("-".equals(input)){
break;
}
final int m = sc.nextInt();
for (int i = 0; i < m; i++) {
final int h = sc.nextInt();
input = input.substring(h) + input.substring(0, h);
}
System.out.println(input);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
17,
41,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
41,
13,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
0,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
17,
42,
17,
30,
0,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
11,
1,
0,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
0,
13,
17,
11,
1,
0,
13,
13,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
18,
13,
13,
40,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
18,
13,
13,
40,
13,
11,
1,
0,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
18,
18,
13,
13,
13,
40,
13,
40,
13,
0,
13,
17,
42,
2,
13,
13,
30,
11,
1,
0,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
40,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
264,
5
],
[
264,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
13,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
32,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
51
],
[
51,
52
],
[
51,
53
],
[
42,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
58,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
58,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
71,
76
],
[
76,
77
],
[
58,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
78,
88
],
[
88,
89
],
[
89,
90
],
[
78,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
58,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
58,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
58,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
120,
121
],
[
120,
122
],
[
115,
123
],
[
123,
124
],
[
124,
125
],
[
115,
126
],
[
127,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
127,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
127,
139
],
[
139,
140
],
[
139,
141
],
[
127,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
142,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
149,
151
],
[
142,
152
],
[
152,
153
],
[
153,
154
],
[
142,
155
],
[
156,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
157,
163
],
[
163,
164
],
[
163,
165
],
[
156,
166
],
[
166,
167
],
[
127,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
173,
174
],
[
173,
175
],
[
168,
176
],
[
176,
177
],
[
177,
178
],
[
168,
179
],
[
180,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
182,
186
],
[
181,
187
],
[
187,
188
],
[
187,
189
],
[
180,
190
],
[
190,
191
],
[
127,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
192,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
199,
201
],
[
192,
202
],
[
202,
203
],
[
203,
204
],
[
192,
205
],
[
206,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
207,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
211,
215
],
[
58,
216
],
[
216,
217
],
[
58,
218
],
[
218,
219
],
[
42,
220
],
[
220,
221
],
[
220,
222
],
[
42,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
223,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
228,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
235,
237
],
[
228,
238
],
[
238,
239
],
[
239,
240
],
[
228,
241
],
[
242,
242
],
[
242,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
243,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
248,
252
],
[
227,
253
],
[
253,
254
],
[
254,
255
],
[
255,
256
],
[
255,
257
],
[
253,
258
],
[
227,
259
],
[
259,
260
],
[
6,
261
],
[
261,
262
],
[
0,
263
],
[
263,
264
],
[
263,
265
]
]
| [
"import java.io.*;\n\npublic class Main{ \n public static void main(String[] args){\n int i,m,j=0,kazu,k,a,count=0;\n int b[];\n String kard;\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{ b = new int[400];\n String[] kard1=new String[500];\n String[][] temp=new String[20][500];\n while(true){\n kard=reader.readLine();\n b[j]=kard.length();\n if(kard.equals(\"-\")){\n break;\n }\n for(i=0;i<b[j];i++){\n kard1[i]=String.valueOf(kard.charAt(i));\n }\n String kazul=reader.readLine();\n kazu = Integer.parseInt(kazul);\n for(m=0;m<kazu;m++){\n String al=reader.readLine();\n a = Integer.parseInt(al);\n k=0;\n for(i=a;i<b[j];i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<a;i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<b[j];i++){\n kard1[i]=temp[count][i];\n }\n }\n j++;\n count++;\n }\n i=0;\n while(count>i){\n for(j=0;j<b[i];j++){\n System.out.print(temp[i][j]);\n }\n System.out.printf(\"\\n\");\n i++;\n }\n } catch (IOException e){\n System.out.println(e);\n }\n }\n }",
"import java.io.*;",
"io.*",
"java",
"public class Main{ \n public static void main(String[] args){\n int i,m,j=0,kazu,k,a,count=0;\n int b[];\n String kard;\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{ b = new int[400];\n String[] kard1=new String[500];\n String[][] temp=new String[20][500];\n while(true){\n kard=reader.readLine();\n b[j]=kard.length();\n if(kard.equals(\"-\")){\n break;\n }\n for(i=0;i<b[j];i++){\n kard1[i]=String.valueOf(kard.charAt(i));\n }\n String kazul=reader.readLine();\n kazu = Integer.parseInt(kazul);\n for(m=0;m<kazu;m++){\n String al=reader.readLine();\n a = Integer.parseInt(al);\n k=0;\n for(i=a;i<b[j];i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<a;i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<b[j];i++){\n kard1[i]=temp[count][i];\n }\n }\n j++;\n count++;\n }\n i=0;\n while(count>i){\n for(j=0;j<b[i];j++){\n System.out.print(temp[i][j]);\n }\n System.out.printf(\"\\n\");\n i++;\n }\n } catch (IOException e){\n System.out.println(e);\n }\n }\n }",
"Main",
"public static void main(String[] args){\n int i,m,j=0,kazu,k,a,count=0;\n int b[];\n String kard;\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{ b = new int[400];\n String[] kard1=new String[500];\n String[][] temp=new String[20][500];\n while(true){\n kard=reader.readLine();\n b[j]=kard.length();\n if(kard.equals(\"-\")){\n break;\n }\n for(i=0;i<b[j];i++){\n kard1[i]=String.valueOf(kard.charAt(i));\n }\n String kazul=reader.readLine();\n kazu = Integer.parseInt(kazul);\n for(m=0;m<kazu;m++){\n String al=reader.readLine();\n a = Integer.parseInt(al);\n k=0;\n for(i=a;i<b[j];i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<a;i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<b[j];i++){\n kard1[i]=temp[count][i];\n }\n }\n j++;\n count++;\n }\n i=0;\n while(count>i){\n for(j=0;j<b[i];j++){\n System.out.print(temp[i][j]);\n }\n System.out.printf(\"\\n\");\n i++;\n }\n } catch (IOException e){\n System.out.println(e);\n }\n }",
"main",
"{\n int i,m,j=0,kazu,k,a,count=0;\n int b[];\n String kard;\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{ b = new int[400];\n String[] kard1=new String[500];\n String[][] temp=new String[20][500];\n while(true){\n kard=reader.readLine();\n b[j]=kard.length();\n if(kard.equals(\"-\")){\n break;\n }\n for(i=0;i<b[j];i++){\n kard1[i]=String.valueOf(kard.charAt(i));\n }\n String kazul=reader.readLine();\n kazu = Integer.parseInt(kazul);\n for(m=0;m<kazu;m++){\n String al=reader.readLine();\n a = Integer.parseInt(al);\n k=0;\n for(i=a;i<b[j];i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<a;i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<b[j];i++){\n kard1[i]=temp[count][i];\n }\n }\n j++;\n count++;\n }\n i=0;\n while(count>i){\n for(j=0;j<b[i];j++){\n System.out.print(temp[i][j]);\n }\n System.out.printf(\"\\n\");\n i++;\n }\n } catch (IOException e){\n System.out.println(e);\n }\n }",
"int i",
"i",
"m",
"m",
"j=0",
"j",
"0",
"kazu",
"kazu",
"k",
"k",
"a",
"a",
"count=0;",
"count",
"0",
"int b[];",
"b",
"String kard;",
"kard",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"try{ b = new int[400];\n String[] kard1=new String[500];\n String[][] temp=new String[20][500];\n while(true){\n kard=reader.readLine();\n b[j]=kard.length();\n if(kard.equals(\"-\")){\n break;\n }\n for(i=0;i<b[j];i++){\n kard1[i]=String.valueOf(kard.charAt(i));\n }\n String kazul=reader.readLine();\n kazu = Integer.parseInt(kazul);\n for(m=0;m<kazu;m++){\n String al=reader.readLine();\n a = Integer.parseInt(al);\n k=0;\n for(i=a;i<b[j];i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<a;i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<b[j];i++){\n kard1[i]=temp[count][i];\n }\n }\n j++;\n count++;\n }\n i=0;\n while(count>i){\n for(j=0;j<b[i];j++){\n System.out.print(temp[i][j]);\n }\n System.out.printf(\"\\n\");\n i++;\n }\n } catch (IOException e){\n System.out.println(e);\n }",
"catch (IOException e){\n System.out.println(e);\n }",
"IOException e",
"{\n System.out.println(e);\n }",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{ b = new int[400];\n String[] kard1=new String[500];\n String[][] temp=new String[20][500];\n while(true){\n kard=reader.readLine();\n b[j]=kard.length();\n if(kard.equals(\"-\")){\n break;\n }\n for(i=0;i<b[j];i++){\n kard1[i]=String.valueOf(kard.charAt(i));\n }\n String kazul=reader.readLine();\n kazu = Integer.parseInt(kazul);\n for(m=0;m<kazu;m++){\n String al=reader.readLine();\n a = Integer.parseInt(al);\n k=0;\n for(i=a;i<b[j];i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<a;i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<b[j];i++){\n kard1[i]=temp[count][i];\n }\n }\n j++;\n count++;\n }\n i=0;\n while(count>i){\n for(j=0;j<b[i];j++){\n System.out.print(temp[i][j]);\n }\n System.out.printf(\"\\n\");\n i++;\n }\n }",
"b = new int[400]",
"b",
"new int[400]",
"400",
"String[] kard1=new String[500];",
"kard1",
"new String[500]",
"500",
"String[][] temp=new String[20][500];",
"temp",
"new String[20][500]",
"20",
"500",
"while(true){\n kard=reader.readLine();\n b[j]=kard.length();\n if(kard.equals(\"-\")){\n break;\n }\n for(i=0;i<b[j];i++){\n kard1[i]=String.valueOf(kard.charAt(i));\n }\n String kazul=reader.readLine();\n kazu = Integer.parseInt(kazul);\n for(m=0;m<kazu;m++){\n String al=reader.readLine();\n a = Integer.parseInt(al);\n k=0;\n for(i=a;i<b[j];i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<a;i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<b[j];i++){\n kard1[i]=temp[count][i];\n }\n }\n j++;\n count++;\n }",
"true",
"{\n kard=reader.readLine();\n b[j]=kard.length();\n if(kard.equals(\"-\")){\n break;\n }\n for(i=0;i<b[j];i++){\n kard1[i]=String.valueOf(kard.charAt(i));\n }\n String kazul=reader.readLine();\n kazu = Integer.parseInt(kazul);\n for(m=0;m<kazu;m++){\n String al=reader.readLine();\n a = Integer.parseInt(al);\n k=0;\n for(i=a;i<b[j];i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<a;i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<b[j];i++){\n kard1[i]=temp[count][i];\n }\n }\n j++;\n count++;\n }",
"kard=reader.readLine()",
"kard",
"reader.readLine()",
"reader.readLine",
"reader",
"b[j]=kard.length()",
"b[j]",
"b",
"j",
"kard.length()",
"kard.length",
"kard",
"if(kard.equals(\"-\")){\n break;\n }",
"kard.equals(\"-\")",
"kard.equals",
"kard",
"\"-\"",
"{\n break;\n }",
"break;",
"for(i=0;i<b[j];i++){\n kard1[i]=String.valueOf(kard.charAt(i));\n }",
"i=0;",
"i=0",
"i",
"0",
"i<b[j]",
"i",
"b[j]",
"b",
"j",
"i++",
"i++",
"i",
"{\n kard1[i]=String.valueOf(kard.charAt(i));\n }",
"{\n kard1[i]=String.valueOf(kard.charAt(i));\n }",
"kard1[i]=String.valueOf(kard.charAt(i))",
"kard1[i]",
"kard1",
"i",
"String.valueOf(kard.charAt(i))",
"String.valueOf",
"String",
"kard.charAt(i)",
"kard.charAt",
"kard",
"i",
"String kazul=reader.readLine();",
"kazul",
"reader.readLine()",
"reader.readLine",
"reader",
"kazu = Integer.parseInt(kazul)",
"kazu",
"Integer.parseInt(kazul)",
"Integer.parseInt",
"Integer",
"kazul",
"for(m=0;m<kazu;m++){\n String al=reader.readLine();\n a = Integer.parseInt(al);\n k=0;\n for(i=a;i<b[j];i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<a;i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<b[j];i++){\n kard1[i]=temp[count][i];\n }\n }",
"m=0;",
"m=0",
"m",
"0",
"m<kazu",
"m",
"kazu",
"m++",
"m++",
"m",
"{\n String al=reader.readLine();\n a = Integer.parseInt(al);\n k=0;\n for(i=a;i<b[j];i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<a;i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<b[j];i++){\n kard1[i]=temp[count][i];\n }\n }",
"{\n String al=reader.readLine();\n a = Integer.parseInt(al);\n k=0;\n for(i=a;i<b[j];i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<a;i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<b[j];i++){\n kard1[i]=temp[count][i];\n }\n }",
"String al=reader.readLine();",
"al",
"reader.readLine()",
"reader.readLine",
"reader",
"a = Integer.parseInt(al)",
"a",
"Integer.parseInt(al)",
"Integer.parseInt",
"Integer",
"al",
"k=0",
"k",
"0",
"for(i=a;i<b[j];i++){\n temp[count][k]=kard1[i];\n k++;\n }",
"i=a;",
"i=a",
"i",
"a",
"i<b[j]",
"i",
"b[j]",
"b",
"j",
"i++",
"i++",
"i",
"{\n temp[count][k]=kard1[i];\n k++;\n }",
"{\n temp[count][k]=kard1[i];\n k++;\n }",
"temp[count][k]=kard1[i]",
"temp[count][k]",
"temp[count]",
"temp",
"count",
"k",
"kard1[i]",
"kard1",
"i",
"k++",
"k",
"for(i=0;i<a;i++){\n temp[count][k]=kard1[i];\n k++;\n }",
"i=0;",
"i=0",
"i",
"0",
"i<a",
"i",
"a",
"i++",
"i++",
"i",
"{\n temp[count][k]=kard1[i];\n k++;\n }",
"{\n temp[count][k]=kard1[i];\n k++;\n }",
"temp[count][k]=kard1[i]",
"temp[count][k]",
"temp[count]",
"temp",
"count",
"k",
"kard1[i]",
"kard1",
"i",
"k++",
"k",
"for(i=0;i<b[j];i++){\n kard1[i]=temp[count][i];\n }",
"i=0;",
"i=0",
"i",
"0",
"i<b[j]",
"i",
"b[j]",
"b",
"j",
"i++",
"i++",
"i",
"{\n kard1[i]=temp[count][i];\n }",
"{\n kard1[i]=temp[count][i];\n }",
"kard1[i]=temp[count][i]",
"kard1[i]",
"kard1",
"i",
"temp[count][i]",
"temp[count]",
"temp",
"count",
"i",
"j++",
"j",
"count++",
"count",
"i=0",
"i",
"0",
"while(count>i){\n for(j=0;j<b[i];j++){\n System.out.print(temp[i][j]);\n }\n System.out.printf(\"\\n\");\n i++;\n }",
"count>i",
"count",
"i",
"{\n for(j=0;j<b[i];j++){\n System.out.print(temp[i][j]);\n }\n System.out.printf(\"\\n\");\n i++;\n }",
"for(j=0;j<b[i];j++){\n System.out.print(temp[i][j]);\n }",
"j=0;",
"j=0",
"j",
"0",
"j<b[i]",
"j",
"b[i]",
"b",
"i",
"j++",
"j++",
"j",
"{\n System.out.print(temp[i][j]);\n }",
"{\n System.out.print(temp[i][j]);\n }",
"System.out.print(temp[i][j])",
"System.out.print",
"System.out",
"System",
"System.out",
"temp[i][j]",
"temp[i]",
"temp",
"i",
"j",
"System.out.printf(\"\\n\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"\\n\"",
"i++",
"i",
"String[] args",
"args",
"public class Main{ \n public static void main(String[] args){\n int i,m,j=0,kazu,k,a,count=0;\n int b[];\n String kard;\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{ b = new int[400];\n String[] kard1=new String[500];\n String[][] temp=new String[20][500];\n while(true){\n kard=reader.readLine();\n b[j]=kard.length();\n if(kard.equals(\"-\")){\n break;\n }\n for(i=0;i<b[j];i++){\n kard1[i]=String.valueOf(kard.charAt(i));\n }\n String kazul=reader.readLine();\n kazu = Integer.parseInt(kazul);\n for(m=0;m<kazu;m++){\n String al=reader.readLine();\n a = Integer.parseInt(al);\n k=0;\n for(i=a;i<b[j];i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<a;i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<b[j];i++){\n kard1[i]=temp[count][i];\n }\n }\n j++;\n count++;\n }\n i=0;\n while(count>i){\n for(j=0;j<b[i];j++){\n System.out.print(temp[i][j]);\n }\n System.out.printf(\"\\n\");\n i++;\n }\n } catch (IOException e){\n System.out.println(e);\n }\n }\n }",
"public class Main{ \n public static void main(String[] args){\n int i,m,j=0,kazu,k,a,count=0;\n int b[];\n String kard;\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{ b = new int[400];\n String[] kard1=new String[500];\n String[][] temp=new String[20][500];\n while(true){\n kard=reader.readLine();\n b[j]=kard.length();\n if(kard.equals(\"-\")){\n break;\n }\n for(i=0;i<b[j];i++){\n kard1[i]=String.valueOf(kard.charAt(i));\n }\n String kazul=reader.readLine();\n kazu = Integer.parseInt(kazul);\n for(m=0;m<kazu;m++){\n String al=reader.readLine();\n a = Integer.parseInt(al);\n k=0;\n for(i=a;i<b[j];i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<a;i++){\n temp[count][k]=kard1[i];\n k++;\n }\n for(i=0;i<b[j];i++){\n kard1[i]=temp[count][i];\n }\n }\n j++;\n count++;\n }\n i=0;\n while(count>i){\n for(j=0;j<b[i];j++){\n System.out.print(temp[i][j]);\n }\n System.out.printf(\"\\n\");\n i++;\n }\n } catch (IOException e){\n System.out.println(e);\n }\n }\n }",
"Main"
]
| import java.io.*;
public class Main{
public static void main(String[] args){
int i,m,j=0,kazu,k,a,count=0;
int b[];
String kard;
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
try{ b = new int[400];
String[] kard1=new String[500];
String[][] temp=new String[20][500];
while(true){
kard=reader.readLine();
b[j]=kard.length();
if(kard.equals("-")){
break;
}
for(i=0;i<b[j];i++){
kard1[i]=String.valueOf(kard.charAt(i));
}
String kazul=reader.readLine();
kazu = Integer.parseInt(kazul);
for(m=0;m<kazu;m++){
String al=reader.readLine();
a = Integer.parseInt(al);
k=0;
for(i=a;i<b[j];i++){
temp[count][k]=kard1[i];
k++;
}
for(i=0;i<a;i++){
temp[count][k]=kard1[i];
k++;
}
for(i=0;i<b[j];i++){
kard1[i]=temp[count][i];
}
}
j++;
count++;
}
i=0;
while(count>i){
for(j=0;j<b[i];j++){
System.out.print(temp[i][j]);
}
System.out.printf("\n");
i++;
}
} catch (IOException e){
System.out.println(e);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
42,
17,
30,
41,
13,
20,
14,
4,
18,
4,
18,
13,
17,
17,
30,
3,
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,
4,
18,
13,
17,
13,
4,
18,
13,
13,
4,
18,
13,
4,
18,
13,
28,
13,
13,
30,
30,
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
],
[
94,
8
],
[
94,
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
],
[
20,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
25,
31
],
[
24,
32
],
[
32,
33
],
[
24,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
34,
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
],
[
60,
63
],
[
60,
64
],
[
52,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
65,
69
],
[
52,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
20,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
78,
79
],
[
11,
80
],
[
80,
81
],
[
80,
82
],
[
80,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
9,
91
],
[
91,
92
],
[
0,
93
],
[
93,
94
],
[
93,
95
]
]
| [
"\n\nimport java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\t\tArrayList<String> list = new ArrayList<>();\n\n\t\twhile(true){\n\n\t\t\tStringBuilder str = new StringBuilder(in.next());\n\n\t\t\tif(str.substring(0).equals(\"-\")){\n\n\t\t\t\tbreak;\n\n\t\t\t}else{\n\n\t\t\tint shuffle_num = in.nextInt();\n\n\t\t\t\tfor(int i = 0; i < shuffle_num; i++){\n\n\t\t\t\t\tint card_num = in.nextInt();\n\n\t\t\t\t\tString shuffle_word = str.substring(0, card_num);\n\n\t\t\t\t\tstr.delete(0, card_num);\n\n\t\t\t\t\tstr.append(shuffle_word);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlist.add(str.toString());\n\n\t\t}\n\n\t\tfor(String result: list){\n\n\t\t\tSystem.out.println(result);\n\n\t\t}\n\t}\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\n\t\tScanner in = new Scanner(System.in);\n\t\tArrayList<String> list = new ArrayList<>();\n\n\t\twhile(true){\n\n\t\t\tStringBuilder str = new StringBuilder(in.next());\n\n\t\t\tif(str.substring(0).equals(\"-\")){\n\n\t\t\t\tbreak;\n\n\t\t\t}else{\n\n\t\t\tint shuffle_num = in.nextInt();\n\n\t\t\t\tfor(int i = 0; i < shuffle_num; i++){\n\n\t\t\t\t\tint card_num = in.nextInt();\n\n\t\t\t\t\tString shuffle_word = str.substring(0, card_num);\n\n\t\t\t\t\tstr.delete(0, card_num);\n\n\t\t\t\t\tstr.append(shuffle_word);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlist.add(str.toString());\n\n\t\t}\n\n\t\tfor(String result: list){\n\n\t\t\tSystem.out.println(result);\n\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\t\tArrayList<String> list = new ArrayList<>();\n\n\t\twhile(true){\n\n\t\t\tStringBuilder str = new StringBuilder(in.next());\n\n\t\t\tif(str.substring(0).equals(\"-\")){\n\n\t\t\t\tbreak;\n\n\t\t\t}else{\n\n\t\t\tint shuffle_num = in.nextInt();\n\n\t\t\t\tfor(int i = 0; i < shuffle_num; i++){\n\n\t\t\t\t\tint card_num = in.nextInt();\n\n\t\t\t\t\tString shuffle_word = str.substring(0, card_num);\n\n\t\t\t\t\tstr.delete(0, card_num);\n\n\t\t\t\t\tstr.append(shuffle_word);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlist.add(str.toString());\n\n\t\t}\n\n\t\tfor(String result: list){\n\n\t\t\tSystem.out.println(result);\n\n\t\t}\n\t}",
"main",
"{\n\n\t\tScanner in = new Scanner(System.in);\n\t\tArrayList<String> list = new ArrayList<>();\n\n\t\twhile(true){\n\n\t\t\tStringBuilder str = new StringBuilder(in.next());\n\n\t\t\tif(str.substring(0).equals(\"-\")){\n\n\t\t\t\tbreak;\n\n\t\t\t}else{\n\n\t\t\tint shuffle_num = in.nextInt();\n\n\t\t\t\tfor(int i = 0; i < shuffle_num; i++){\n\n\t\t\t\t\tint card_num = in.nextInt();\n\n\t\t\t\t\tString shuffle_word = str.substring(0, card_num);\n\n\t\t\t\t\tstr.delete(0, card_num);\n\n\t\t\t\t\tstr.append(shuffle_word);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlist.add(str.toString());\n\n\t\t}\n\n\t\tfor(String result: list){\n\n\t\t\tSystem.out.println(result);\n\n\t\t}\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"ArrayList<String> list = new ArrayList<>();",
"list",
"new ArrayList<>()",
"while(true){\n\n\t\t\tStringBuilder str = new StringBuilder(in.next());\n\n\t\t\tif(str.substring(0).equals(\"-\")){\n\n\t\t\t\tbreak;\n\n\t\t\t}else{\n\n\t\t\tint shuffle_num = in.nextInt();\n\n\t\t\t\tfor(int i = 0; i < shuffle_num; i++){\n\n\t\t\t\t\tint card_num = in.nextInt();\n\n\t\t\t\t\tString shuffle_word = str.substring(0, card_num);\n\n\t\t\t\t\tstr.delete(0, card_num);\n\n\t\t\t\t\tstr.append(shuffle_word);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlist.add(str.toString());\n\n\t\t}",
"true",
"{\n\n\t\t\tStringBuilder str = new StringBuilder(in.next());\n\n\t\t\tif(str.substring(0).equals(\"-\")){\n\n\t\t\t\tbreak;\n\n\t\t\t}else{\n\n\t\t\tint shuffle_num = in.nextInt();\n\n\t\t\t\tfor(int i = 0; i < shuffle_num; i++){\n\n\t\t\t\t\tint card_num = in.nextInt();\n\n\t\t\t\t\tString shuffle_word = str.substring(0, card_num);\n\n\t\t\t\t\tstr.delete(0, card_num);\n\n\t\t\t\t\tstr.append(shuffle_word);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlist.add(str.toString());\n\n\t\t}",
"StringBuilder str = new StringBuilder(in.next());",
"str",
"new StringBuilder(in.next())",
"if(str.substring(0).equals(\"-\")){\n\n\t\t\t\tbreak;\n\n\t\t\t}else{\n\n\t\t\tint shuffle_num = in.nextInt();\n\n\t\t\t\tfor(int i = 0; i < shuffle_num; i++){\n\n\t\t\t\t\tint card_num = in.nextInt();\n\n\t\t\t\t\tString shuffle_word = str.substring(0, card_num);\n\n\t\t\t\t\tstr.delete(0, card_num);\n\n\t\t\t\t\tstr.append(shuffle_word);\n\n\t\t\t\t}\n\t\t\t}",
"str.substring(0).equals(\"-\")",
"str.substring(0).equals",
"str.substring(0)",
"str.substring",
"str",
"0",
"\"-\"",
"{\n\n\t\t\t\tbreak;\n\n\t\t\t}",
"break;",
"{\n\n\t\t\tint shuffle_num = in.nextInt();\n\n\t\t\t\tfor(int i = 0; i < shuffle_num; i++){\n\n\t\t\t\t\tint card_num = in.nextInt();\n\n\t\t\t\t\tString shuffle_word = str.substring(0, card_num);\n\n\t\t\t\t\tstr.delete(0, card_num);\n\n\t\t\t\t\tstr.append(shuffle_word);\n\n\t\t\t\t}\n\t\t\t}",
"int shuffle_num = in.nextInt();",
"shuffle_num",
"in.nextInt()",
"in.nextInt",
"in",
"for(int i = 0; i < shuffle_num; i++){\n\n\t\t\t\t\tint card_num = in.nextInt();\n\n\t\t\t\t\tString shuffle_word = str.substring(0, card_num);\n\n\t\t\t\t\tstr.delete(0, card_num);\n\n\t\t\t\t\tstr.append(shuffle_word);\n\n\t\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < shuffle_num",
"i",
"shuffle_num",
"i++",
"i++",
"i",
"{\n\n\t\t\t\t\tint card_num = in.nextInt();\n\n\t\t\t\t\tString shuffle_word = str.substring(0, card_num);\n\n\t\t\t\t\tstr.delete(0, card_num);\n\n\t\t\t\t\tstr.append(shuffle_word);\n\n\t\t\t\t}",
"{\n\n\t\t\t\t\tint card_num = in.nextInt();\n\n\t\t\t\t\tString shuffle_word = str.substring(0, card_num);\n\n\t\t\t\t\tstr.delete(0, card_num);\n\n\t\t\t\t\tstr.append(shuffle_word);\n\n\t\t\t\t}",
"int card_num = in.nextInt();",
"card_num",
"in.nextInt()",
"in.nextInt",
"in",
"String shuffle_word = str.substring(0, card_num);",
"shuffle_word",
"str.substring(0, card_num)",
"str.substring",
"str",
"0",
"card_num",
"str.delete(0, card_num)",
"str.delete",
"str",
"0",
"card_num",
"str.append(shuffle_word)",
"str.append",
"str",
"shuffle_word",
"list.add(str.toString())",
"list.add",
"list",
"str.toString()",
"str.toString",
"str",
"for(String result: list){\n\n\t\t\tSystem.out.println(result);\n\n\t\t}",
"String result",
"list",
"{\n\n\t\t\tSystem.out.println(result);\n\n\t\t}",
"{\n\n\t\t\tSystem.out.println(result);\n\n\t\t}",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\t\tArrayList<String> list = new ArrayList<>();\n\n\t\twhile(true){\n\n\t\t\tStringBuilder str = new StringBuilder(in.next());\n\n\t\t\tif(str.substring(0).equals(\"-\")){\n\n\t\t\t\tbreak;\n\n\t\t\t}else{\n\n\t\t\tint shuffle_num = in.nextInt();\n\n\t\t\t\tfor(int i = 0; i < shuffle_num; i++){\n\n\t\t\t\t\tint card_num = in.nextInt();\n\n\t\t\t\t\tString shuffle_word = str.substring(0, card_num);\n\n\t\t\t\t\tstr.delete(0, card_num);\n\n\t\t\t\t\tstr.append(shuffle_word);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlist.add(str.toString());\n\n\t\t}\n\n\t\tfor(String result: list){\n\n\t\t\tSystem.out.println(result);\n\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\t\tArrayList<String> list = new ArrayList<>();\n\n\t\twhile(true){\n\n\t\t\tStringBuilder str = new StringBuilder(in.next());\n\n\t\t\tif(str.substring(0).equals(\"-\")){\n\n\t\t\t\tbreak;\n\n\t\t\t}else{\n\n\t\t\tint shuffle_num = in.nextInt();\n\n\t\t\t\tfor(int i = 0; i < shuffle_num; i++){\n\n\t\t\t\t\tint card_num = in.nextInt();\n\n\t\t\t\t\tString shuffle_word = str.substring(0, card_num);\n\n\t\t\t\t\tstr.delete(0, card_num);\n\n\t\t\t\t\tstr.append(shuffle_word);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlist.add(str.toString());\n\n\t\t}\n\n\t\tfor(String result: list){\n\n\t\t\tSystem.out.println(result);\n\n\t\t}\n\t}\n}",
"Main"
]
|
import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
ArrayList<String> list = new ArrayList<>();
while(true){
StringBuilder str = new StringBuilder(in.next());
if(str.substring(0).equals("-")){
break;
}else{
int shuffle_num = in.nextInt();
for(int i = 0; i < shuffle_num; i++){
int card_num = in.nextInt();
String shuffle_word = str.substring(0, card_num);
str.delete(0, card_num);
str.append(shuffle_word);
}
}
list.add(str.toString());
}
for(String result: list){
System.out.println(result);
}
}
} |
[
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,
17,
13,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
17,
4,
18,
13,
13,
4,
18,
13,
4,
18,
13,
17,
13,
4,
18,
13,
17,
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
],
[
114,
11
],
[
114,
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
],
[
23,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
45,
46
],
[
23,
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
],
[
62,
65
],
[
65,
66
],
[
66,
67
],
[
59,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
80,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
23,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
94,
98
],
[
23,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
14,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
109,
110
],
[
12,
111
],
[
111,
112
],
[
0,
113
],
[
113,
114
],
[
113,
115
]
]
| [
"import java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (true) {\n\t\t\tString line = sc.nextLine();\n\n\t\t\tif (\"-\".equals(line)) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tArrayList<String> cards = new ArrayList<String>( Arrays.asList(line.split(\"\")) );\n\n\t\t\tint shuffleCount = Integer.parseInt(sc.nextLine());\n\t\t\tfor (int i = 0; i < shuffleCount; i++) {\n\n\t\t\t\tint maisu = Integer.parseInt(sc.nextLine());\n\n\n\t\t\t\tfor (int j = 0; j < maisu; j++) {\n\n\t\t\t\t\tString card = cards.remove(0);\t// remove first element\n\t\t\t\t\tcards.add(card); // add first element\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tsb.append(String.join(\"\", cards));sb.append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb.toString());\n\t}\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"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\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (true) {\n\t\t\tString line = sc.nextLine();\n\n\t\t\tif (\"-\".equals(line)) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tArrayList<String> cards = new ArrayList<String>( Arrays.asList(line.split(\"\")) );\n\n\t\t\tint shuffleCount = Integer.parseInt(sc.nextLine());\n\t\t\tfor (int i = 0; i < shuffleCount; i++) {\n\n\t\t\t\tint maisu = Integer.parseInt(sc.nextLine());\n\n\n\t\t\t\tfor (int j = 0; j < maisu; j++) {\n\n\t\t\t\t\tString card = cards.remove(0);\t// remove first element\n\t\t\t\t\tcards.add(card); // add first element\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tsb.append(String.join(\"\", cards));sb.append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb.toString());\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (true) {\n\t\t\tString line = sc.nextLine();\n\n\t\t\tif (\"-\".equals(line)) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tArrayList<String> cards = new ArrayList<String>( Arrays.asList(line.split(\"\")) );\n\n\t\t\tint shuffleCount = Integer.parseInt(sc.nextLine());\n\t\t\tfor (int i = 0; i < shuffleCount; i++) {\n\n\t\t\t\tint maisu = Integer.parseInt(sc.nextLine());\n\n\n\t\t\t\tfor (int j = 0; j < maisu; j++) {\n\n\t\t\t\t\tString card = cards.remove(0);\t// remove first element\n\t\t\t\t\tcards.add(card); // add first element\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tsb.append(String.join(\"\", cards));sb.append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb.toString());\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (true) {\n\t\t\tString line = sc.nextLine();\n\n\t\t\tif (\"-\".equals(line)) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tArrayList<String> cards = new ArrayList<String>( Arrays.asList(line.split(\"\")) );\n\n\t\t\tint shuffleCount = Integer.parseInt(sc.nextLine());\n\t\t\tfor (int i = 0; i < shuffleCount; i++) {\n\n\t\t\t\tint maisu = Integer.parseInt(sc.nextLine());\n\n\n\t\t\t\tfor (int j = 0; j < maisu; j++) {\n\n\t\t\t\t\tString card = cards.remove(0);\t// remove first element\n\t\t\t\t\tcards.add(card); // add first element\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tsb.append(String.join(\"\", cards));sb.append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb.toString());\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"while (true) {\n\t\t\tString line = sc.nextLine();\n\n\t\t\tif (\"-\".equals(line)) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tArrayList<String> cards = new ArrayList<String>( Arrays.asList(line.split(\"\")) );\n\n\t\t\tint shuffleCount = Integer.parseInt(sc.nextLine());\n\t\t\tfor (int i = 0; i < shuffleCount; i++) {\n\n\t\t\t\tint maisu = Integer.parseInt(sc.nextLine());\n\n\n\t\t\t\tfor (int j = 0; j < maisu; j++) {\n\n\t\t\t\t\tString card = cards.remove(0);\t// remove first element\n\t\t\t\t\tcards.add(card); // add first element\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tsb.append(String.join(\"\", cards));sb.append(\"\\n\");\n\t\t}",
"true",
"{\n\t\t\tString line = sc.nextLine();\n\n\t\t\tif (\"-\".equals(line)) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tArrayList<String> cards = new ArrayList<String>( Arrays.asList(line.split(\"\")) );\n\n\t\t\tint shuffleCount = Integer.parseInt(sc.nextLine());\n\t\t\tfor (int i = 0; i < shuffleCount; i++) {\n\n\t\t\t\tint maisu = Integer.parseInt(sc.nextLine());\n\n\n\t\t\t\tfor (int j = 0; j < maisu; j++) {\n\n\t\t\t\t\tString card = cards.remove(0);\t// remove first element\n\t\t\t\t\tcards.add(card); // add first element\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tsb.append(String.join(\"\", cards));sb.append(\"\\n\");\n\t\t}",
"String line = sc.nextLine();",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if (\"-\".equals(line)) {\n\t\t\t\tbreak;\n\t\t\t}",
"\"-\".equals(line)",
"\"-\".equals",
"\"-\"",
"line",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"ArrayList<String> cards = new ArrayList<String>( Arrays.asList(line.split(\"\")) );",
"cards",
"new ArrayList<String>( Arrays.asList(line.split(\"\")) )",
"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\n\t\t\t\tint maisu = Integer.parseInt(sc.nextLine());\n\n\n\t\t\t\tfor (int j = 0; j < maisu; j++) {\n\n\t\t\t\t\tString card = cards.remove(0);\t// remove first element\n\t\t\t\t\tcards.add(card); // add first element\n\n\t\t\t\t}\n\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < shuffleCount",
"i",
"shuffleCount",
"i++",
"i++",
"i",
"{\n\n\t\t\t\tint maisu = Integer.parseInt(sc.nextLine());\n\n\n\t\t\t\tfor (int j = 0; j < maisu; j++) {\n\n\t\t\t\t\tString card = cards.remove(0);\t// remove first element\n\t\t\t\t\tcards.add(card); // add first element\n\n\t\t\t\t}\n\n\t\t\t}",
"{\n\n\t\t\t\tint maisu = Integer.parseInt(sc.nextLine());\n\n\n\t\t\t\tfor (int j = 0; j < maisu; j++) {\n\n\t\t\t\t\tString card = cards.remove(0);\t// remove first element\n\t\t\t\t\tcards.add(card); // add first element\n\n\t\t\t\t}\n\n\t\t\t}",
"int maisu = Integer.parseInt(sc.nextLine());",
"maisu",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for (int j = 0; j < maisu; j++) {\n\n\t\t\t\t\tString card = cards.remove(0);\t// remove first element\n\t\t\t\t\tcards.add(card); // add first element\n\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < maisu",
"j",
"maisu",
"j++",
"j++",
"j",
"{\n\n\t\t\t\t\tString card = cards.remove(0);\t// remove first element\n\t\t\t\t\tcards.add(card); // add first element\n\n\t\t\t\t}",
"{\n\n\t\t\t\t\tString card = cards.remove(0);\t// remove first element\n\t\t\t\t\tcards.add(card); // add first element\n\n\t\t\t\t}",
"String card = cards.remove(0);",
"card",
"cards.remove(0)",
"cards.remove",
"cards",
"0",
"cards.add(card)",
"cards.add",
"cards",
"card",
"sb.append(String.join(\"\", cards))",
"sb.append",
"sb",
"String.join(\"\", cards)",
"String.join",
"String",
"\"\"",
"cards",
"sb.append(\"\\n\")",
"sb.append",
"sb",
"\"\\n\"",
"System.out.print(sb.toString())",
"System.out.print",
"System.out",
"System",
"System.out",
"sb.toString()",
"sb.toString",
"sb",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (true) {\n\t\t\tString line = sc.nextLine();\n\n\t\t\tif (\"-\".equals(line)) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tArrayList<String> cards = new ArrayList<String>( Arrays.asList(line.split(\"\")) );\n\n\t\t\tint shuffleCount = Integer.parseInt(sc.nextLine());\n\t\t\tfor (int i = 0; i < shuffleCount; i++) {\n\n\t\t\t\tint maisu = Integer.parseInt(sc.nextLine());\n\n\n\t\t\t\tfor (int j = 0; j < maisu; j++) {\n\n\t\t\t\t\tString card = cards.remove(0);\t// remove first element\n\t\t\t\t\tcards.add(card); // add first element\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tsb.append(String.join(\"\", cards));sb.append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb.toString());\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (true) {\n\t\t\tString line = sc.nextLine();\n\n\t\t\tif (\"-\".equals(line)) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tArrayList<String> cards = new ArrayList<String>( Arrays.asList(line.split(\"\")) );\n\n\t\t\tint shuffleCount = Integer.parseInt(sc.nextLine());\n\t\t\tfor (int i = 0; i < shuffleCount; i++) {\n\n\t\t\t\tint maisu = Integer.parseInt(sc.nextLine());\n\n\n\t\t\t\tfor (int j = 0; j < maisu; j++) {\n\n\t\t\t\t\tString card = cards.remove(0);\t// remove first element\n\t\t\t\t\tcards.add(card); // add first element\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tsb.append(String.join(\"\", cards));sb.append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb.toString());\n\t}\n}",
"Main"
]
| import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
StringBuilder sb = new StringBuilder();
while (true) {
String line = sc.nextLine();
if ("-".equals(line)) {
break;
}
ArrayList<String> cards = new ArrayList<String>( Arrays.asList(line.split("")) );
int shuffleCount = Integer.parseInt(sc.nextLine());
for (int i = 0; i < shuffleCount; i++) {
int maisu = Integer.parseInt(sc.nextLine());
for (int j = 0; j < maisu; j++) {
String card = cards.remove(0); // remove first element
cards.add(card); // add first element
}
}
sb.append(String.join("", cards));sb.append("\n");
}
System.out.print(sb.toString());
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
41,
13,
17,
14,
4,
18,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
3,
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,
42,
2,
13,
4,
18,
13,
30,
0,
13,
4,
18,
13,
11,
1,
41,
13,
13,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
2,
13,
17,
4,
18,
13,
13,
41,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
153,
5
],
[
153,
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
],
[
23,
25
],
[
17,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
26,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
32,
42
],
[
42,
43
],
[
43,
44
],
[
32,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
31,
56
],
[
17,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
17,
62
],
[
62,
63
],
[
62,
64
],
[
17,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
65,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
17,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
83,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
17,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
95,
105
],
[
105,
106
],
[
106,
107
],
[
95,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
112,
116
],
[
116,
117
],
[
116,
118
],
[
17,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
119,
127
],
[
127,
128
],
[
128,
129
],
[
119,
130
],
[
131,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
134,
138
],
[
138,
139
],
[
138,
140
],
[
17,
141
],
[
141,
142
],
[
142,
143
],
[
141,
144
],
[
17,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
148,
149
],
[
6,
150
],
[
150,
151
],
[
0,
152
],
[
152,
153
],
[
152,
154
]
]
| [
"import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //StringBuilder bd = new StringBuilder();\n ArrayList<String> A = new ArrayList<String>();\n //int[] A = new int[26];\n //Arrays.fill(A, 0);\n //String str;\n\n while (true) {\n String str = sc.nextLine();\n String newstr = \"\";\n if (str.equals(\"-\")) {\n for (int i=0; i<A.size(); i++) {\n System.out.println(A.get(i));\n }\n break;\n }\n int m = sc.nextInt();\n int h = 0;\n for (int i=0; i<m; i++) {\n h += sc.nextInt();\n }\n while (h > str.length()) {\n h -= str.length();\n }\n for (int i=h; i<str.length(); i++) {\n newstr += str.substring(i, i+1);\n }\n for (int i=0; i<h; i++) {\n newstr += str.substring(i, i+1);\n }\n A.add(newstr);\n String dummy = sc.nextLine();\n }\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //StringBuilder bd = new StringBuilder();\n ArrayList<String> A = new ArrayList<String>();\n //int[] A = new int[26];\n //Arrays.fill(A, 0);\n //String str;\n\n while (true) {\n String str = sc.nextLine();\n String newstr = \"\";\n if (str.equals(\"-\")) {\n for (int i=0; i<A.size(); i++) {\n System.out.println(A.get(i));\n }\n break;\n }\n int m = sc.nextInt();\n int h = 0;\n for (int i=0; i<m; i++) {\n h += sc.nextInt();\n }\n while (h > str.length()) {\n h -= str.length();\n }\n for (int i=h; i<str.length(); i++) {\n newstr += str.substring(i, i+1);\n }\n for (int i=0; i<h; i++) {\n newstr += str.substring(i, i+1);\n }\n A.add(newstr);\n String dummy = sc.nextLine();\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //StringBuilder bd = new StringBuilder();\n ArrayList<String> A = new ArrayList<String>();\n //int[] A = new int[26];\n //Arrays.fill(A, 0);\n //String str;\n\n while (true) {\n String str = sc.nextLine();\n String newstr = \"\";\n if (str.equals(\"-\")) {\n for (int i=0; i<A.size(); i++) {\n System.out.println(A.get(i));\n }\n break;\n }\n int m = sc.nextInt();\n int h = 0;\n for (int i=0; i<m; i++) {\n h += sc.nextInt();\n }\n while (h > str.length()) {\n h -= str.length();\n }\n for (int i=h; i<str.length(); i++) {\n newstr += str.substring(i, i+1);\n }\n for (int i=0; i<h; i++) {\n newstr += str.substring(i, i+1);\n }\n A.add(newstr);\n String dummy = sc.nextLine();\n }\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n //StringBuilder bd = new StringBuilder();\n ArrayList<String> A = new ArrayList<String>();\n //int[] A = new int[26];\n //Arrays.fill(A, 0);\n //String str;\n\n while (true) {\n String str = sc.nextLine();\n String newstr = \"\";\n if (str.equals(\"-\")) {\n for (int i=0; i<A.size(); i++) {\n System.out.println(A.get(i));\n }\n break;\n }\n int m = sc.nextInt();\n int h = 0;\n for (int i=0; i<m; i++) {\n h += sc.nextInt();\n }\n while (h > str.length()) {\n h -= str.length();\n }\n for (int i=h; i<str.length(); i++) {\n newstr += str.substring(i, i+1);\n }\n for (int i=0; i<h; i++) {\n newstr += str.substring(i, i+1);\n }\n A.add(newstr);\n String dummy = sc.nextLine();\n }\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"ArrayList<String> A = new ArrayList<String>();",
"A",
"new ArrayList<String>()",
"while (true) {\n String str = sc.nextLine();\n String newstr = \"\";\n if (str.equals(\"-\")) {\n for (int i=0; i<A.size(); i++) {\n System.out.println(A.get(i));\n }\n break;\n }\n int m = sc.nextInt();\n int h = 0;\n for (int i=0; i<m; i++) {\n h += sc.nextInt();\n }\n while (h > str.length()) {\n h -= str.length();\n }\n for (int i=h; i<str.length(); i++) {\n newstr += str.substring(i, i+1);\n }\n for (int i=0; i<h; i++) {\n newstr += str.substring(i, i+1);\n }\n A.add(newstr);\n String dummy = sc.nextLine();\n }",
"true",
"{\n String str = sc.nextLine();\n String newstr = \"\";\n if (str.equals(\"-\")) {\n for (int i=0; i<A.size(); i++) {\n System.out.println(A.get(i));\n }\n break;\n }\n int m = sc.nextInt();\n int h = 0;\n for (int i=0; i<m; i++) {\n h += sc.nextInt();\n }\n while (h > str.length()) {\n h -= str.length();\n }\n for (int i=h; i<str.length(); i++) {\n newstr += str.substring(i, i+1);\n }\n for (int i=0; i<h; i++) {\n newstr += str.substring(i, i+1);\n }\n A.add(newstr);\n String dummy = sc.nextLine();\n }",
"String str = sc.nextLine();",
"str",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String newstr = \"\";",
"newstr",
"\"\"",
"if (str.equals(\"-\")) {\n for (int i=0; i<A.size(); i++) {\n System.out.println(A.get(i));\n }\n break;\n }",
"str.equals(\"-\")",
"str.equals",
"str",
"\"-\"",
"{\n for (int i=0; i<A.size(); i++) {\n System.out.println(A.get(i));\n }\n break;\n }",
"for (int i=0; i<A.size(); i++) {\n System.out.println(A.get(i));\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<A.size()",
"i",
"A.size()",
"A.size",
"A",
"i++",
"i++",
"i",
"{\n System.out.println(A.get(i));\n }",
"{\n System.out.println(A.get(i));\n }",
"System.out.println(A.get(i))",
"System.out.println",
"System.out",
"System",
"System.out",
"A.get(i)",
"A.get",
"A",
"i",
"break;",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int h = 0;",
"h",
"0",
"for (int i=0; i<m; i++) {\n h += sc.nextInt();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n h += sc.nextInt();\n }",
"{\n h += sc.nextInt();\n }",
"h += sc.nextInt()",
"h",
"sc.nextInt()",
"sc.nextInt",
"sc",
"while (h > str.length()) {\n h -= str.length();\n }",
"h > str.length()",
"h",
"str.length()",
"str.length",
"str",
"{\n h -= str.length();\n }",
"h -= str.length()",
"h",
"str.length()",
"str.length",
"str",
"for (int i=h; i<str.length(); i++) {\n newstr += str.substring(i, i+1);\n }",
"int i=h;",
"int i=h;",
"i",
"h",
"i<str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n newstr += str.substring(i, i+1);\n }",
"{\n newstr += str.substring(i, i+1);\n }",
"newstr += str.substring(i, i+1)",
"newstr",
"str.substring(i, i+1)",
"str.substring",
"str",
"i",
"i+1",
"i",
"1",
"for (int i=0; i<h; i++) {\n newstr += str.substring(i, i+1);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<h",
"i",
"h",
"i++",
"i++",
"i",
"{\n newstr += str.substring(i, i+1);\n }",
"{\n newstr += str.substring(i, i+1);\n }",
"newstr += str.substring(i, i+1)",
"newstr",
"str.substring(i, i+1)",
"str.substring",
"str",
"i",
"i+1",
"i",
"1",
"A.add(newstr)",
"A.add",
"A",
"newstr",
"String dummy = sc.nextLine();",
"dummy",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //StringBuilder bd = new StringBuilder();\n ArrayList<String> A = new ArrayList<String>();\n //int[] A = new int[26];\n //Arrays.fill(A, 0);\n //String str;\n\n while (true) {\n String str = sc.nextLine();\n String newstr = \"\";\n if (str.equals(\"-\")) {\n for (int i=0; i<A.size(); i++) {\n System.out.println(A.get(i));\n }\n break;\n }\n int m = sc.nextInt();\n int h = 0;\n for (int i=0; i<m; i++) {\n h += sc.nextInt();\n }\n while (h > str.length()) {\n h -= str.length();\n }\n for (int i=h; i<str.length(); i++) {\n newstr += str.substring(i, i+1);\n }\n for (int i=0; i<h; i++) {\n newstr += str.substring(i, i+1);\n }\n A.add(newstr);\n String dummy = sc.nextLine();\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //StringBuilder bd = new StringBuilder();\n ArrayList<String> A = new ArrayList<String>();\n //int[] A = new int[26];\n //Arrays.fill(A, 0);\n //String str;\n\n while (true) {\n String str = sc.nextLine();\n String newstr = \"\";\n if (str.equals(\"-\")) {\n for (int i=0; i<A.size(); i++) {\n System.out.println(A.get(i));\n }\n break;\n }\n int m = sc.nextInt();\n int h = 0;\n for (int i=0; i<m; i++) {\n h += sc.nextInt();\n }\n while (h > str.length()) {\n h -= str.length();\n }\n for (int i=h; i<str.length(); i++) {\n newstr += str.substring(i, i+1);\n }\n for (int i=0; i<h; i++) {\n newstr += str.substring(i, i+1);\n }\n A.add(newstr);\n String dummy = sc.nextLine();\n }\n\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
//StringBuilder bd = new StringBuilder();
ArrayList<String> A = new ArrayList<String>();
//int[] A = new int[26];
//Arrays.fill(A, 0);
//String str;
while (true) {
String str = sc.nextLine();
String newstr = "";
if (str.equals("-")) {
for (int i=0; i<A.size(); i++) {
System.out.println(A.get(i));
}
break;
}
int m = sc.nextInt();
int h = 0;
for (int i=0; i<m; i++) {
h += sc.nextInt();
}
while (h > str.length()) {
h -= str.length();
}
for (int i=h; i<str.length(); i++) {
newstr += str.substring(i, i+1);
}
for (int i=0; i<h; i++) {
newstr += str.substring(i, i+1);
}
A.add(newstr);
String dummy = sc.nextLine();
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
41,
13,
20,
41,
13,
41,
13,
42,
2,
17,
0,
13,
4,
18,
13,
30,
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,
4,
18,
13,
4,
18,
13,
13,
4,
18,
13,
4,
18,
13,
17,
13,
0,
13,
4,
18,
13,
4,
18,
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
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
12,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
25,
27
],
[
22,
28
],
[
28,
29
],
[
22,
30
],
[
30,
31
],
[
22,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
41,
46
],
[
46,
47
],
[
40,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
54,
55
],
[
40,
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
],
[
68,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
87,
91
],
[
68,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
68,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
40,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
6,
107
],
[
107,
108
]
]
| [
"import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tString str;\n\t\t\tStringBuilder cards = new StringBuilder( 200+1 );\n\t\t\tint m, shuffle;\n\t while( null != ( str = kb.readLine() ) ) {\n\t \tif( str.equals( \"-\" ) ) { break; }\n\t \t\n\t \tm = Integer.parseInt( kb.readLine() );\n\t \tfor( int i=0; i<m; i++ ) {\n\t \t\tshuffle = Integer.parseInt( kb.readLine() );\n\t \t\tcards.append( str.substring( shuffle ) );\n\t \t\tcards.append( str.substring( 0, shuffle ) );\n\t \t\tstr = cards.toString();\n\t \t\tcards.setLength( 0 );\n\t \t}\n\t \tSystem.out.println( str );\t\n\t }\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tString str;\n\t\t\tStringBuilder cards = new StringBuilder( 200+1 );\n\t\t\tint m, shuffle;\n\t while( null != ( str = kb.readLine() ) ) {\n\t \tif( str.equals( \"-\" ) ) { break; }\n\t \t\n\t \tm = Integer.parseInt( kb.readLine() );\n\t \tfor( int i=0; i<m; i++ ) {\n\t \t\tshuffle = Integer.parseInt( kb.readLine() );\n\t \t\tcards.append( str.substring( shuffle ) );\n\t \t\tcards.append( str.substring( 0, shuffle ) );\n\t \t\tstr = cards.toString();\n\t \t\tcards.setLength( 0 );\n\t \t}\n\t \tSystem.out.println( str );\t\n\t }\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tString str;\n\t\t\tStringBuilder cards = new StringBuilder( 200+1 );\n\t\t\tint m, shuffle;\n\t while( null != ( str = kb.readLine() ) ) {\n\t \tif( str.equals( \"-\" ) ) { break; }\n\t \t\n\t \tm = Integer.parseInt( kb.readLine() );\n\t \tfor( int i=0; i<m; i++ ) {\n\t \t\tshuffle = Integer.parseInt( kb.readLine() );\n\t \t\tcards.append( str.substring( shuffle ) );\n\t \t\tcards.append( str.substring( 0, shuffle ) );\n\t \t\tstr = cards.toString();\n\t \t\tcards.setLength( 0 );\n\t \t}\n\t \tSystem.out.println( str );\t\n\t }\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tString str;\n\t\t\tStringBuilder cards = new StringBuilder( 200+1 );\n\t\t\tint m, shuffle;\n\t while( null != ( str = kb.readLine() ) ) {\n\t \tif( str.equals( \"-\" ) ) { break; }\n\t \t\n\t \tm = Integer.parseInt( kb.readLine() );\n\t \tfor( int i=0; i<m; i++ ) {\n\t \t\tshuffle = Integer.parseInt( kb.readLine() );\n\t \t\tcards.append( str.substring( shuffle ) );\n\t \t\tcards.append( str.substring( 0, shuffle ) );\n\t \t\tstr = cards.toString();\n\t \t\tcards.setLength( 0 );\n\t \t}\n\t \tSystem.out.println( str );\t\n\t }\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}",
"BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );",
"kb",
"new BufferedReader( new InputStreamReader( System.in ) )",
"try {\n\t\t\tString str;\n\t\t\tStringBuilder cards = new StringBuilder( 200+1 );\n\t\t\tint m, shuffle;\n\t while( null != ( str = kb.readLine() ) ) {\n\t \tif( str.equals( \"-\" ) ) { break; }\n\t \t\n\t \tm = Integer.parseInt( kb.readLine() );\n\t \tfor( int i=0; i<m; i++ ) {\n\t \t\tshuffle = Integer.parseInt( kb.readLine() );\n\t \t\tcards.append( str.substring( shuffle ) );\n\t \t\tcards.append( str.substring( 0, shuffle ) );\n\t \t\tstr = cards.toString();\n\t \t\tcards.setLength( 0 );\n\t \t}\n\t \tSystem.out.println( str );\t\n\t }\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}",
"catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}",
"IOException e",
"{\n\t\t\tSystem.err.println( e );\n\t\t}",
"System.err.println( e )",
"System.err.println",
"System.err",
"System",
"System.err",
"e",
"{\n\t\t\tString str;\n\t\t\tStringBuilder cards = new StringBuilder( 200+1 );\n\t\t\tint m, shuffle;\n\t while( null != ( str = kb.readLine() ) ) {\n\t \tif( str.equals( \"-\" ) ) { break; }\n\t \t\n\t \tm = Integer.parseInt( kb.readLine() );\n\t \tfor( int i=0; i<m; i++ ) {\n\t \t\tshuffle = Integer.parseInt( kb.readLine() );\n\t \t\tcards.append( str.substring( shuffle ) );\n\t \t\tcards.append( str.substring( 0, shuffle ) );\n\t \t\tstr = cards.toString();\n\t \t\tcards.setLength( 0 );\n\t \t}\n\t \tSystem.out.println( str );\t\n\t }\n\t\t\t\n\t\t}",
"String str;",
"str",
"StringBuilder cards = new StringBuilder( 200+1 );",
"cards",
"new StringBuilder( 200+1 )",
"int m",
"m",
"shuffle;",
"shuffle",
"while( null != ( str = kb.readLine() ) ) {\n\t \tif( str.equals( \"-\" ) ) { break; }\n\t \t\n\t \tm = Integer.parseInt( kb.readLine() );\n\t \tfor( int i=0; i<m; i++ ) {\n\t \t\tshuffle = Integer.parseInt( kb.readLine() );\n\t \t\tcards.append( str.substring( shuffle ) );\n\t \t\tcards.append( str.substring( 0, shuffle ) );\n\t \t\tstr = cards.toString();\n\t \t\tcards.setLength( 0 );\n\t \t}\n\t \tSystem.out.println( str );\t\n\t }",
"null != ( str = kb.readLine() )",
"null",
"( str = kb.readLine() )",
"str",
"kb.readLine()",
"kb.readLine",
"kb",
"{\n\t \tif( str.equals( \"-\" ) ) { break; }\n\t \t\n\t \tm = Integer.parseInt( kb.readLine() );\n\t \tfor( int i=0; i<m; i++ ) {\n\t \t\tshuffle = Integer.parseInt( kb.readLine() );\n\t \t\tcards.append( str.substring( shuffle ) );\n\t \t\tcards.append( str.substring( 0, shuffle ) );\n\t \t\tstr = cards.toString();\n\t \t\tcards.setLength( 0 );\n\t \t}\n\t \tSystem.out.println( str );\t\n\t }",
"if( str.equals( \"-\" ) ) { break; }",
"str.equals( \"-\" )",
"str.equals",
"str",
"\"-\"",
"{ break; }",
"break;",
"m = Integer.parseInt( kb.readLine() )",
"m",
"Integer.parseInt( kb.readLine() )",
"Integer.parseInt",
"Integer",
"kb.readLine()",
"kb.readLine",
"kb",
"for( int i=0; i<m; i++ ) {\n\t \t\tshuffle = Integer.parseInt( kb.readLine() );\n\t \t\tcards.append( str.substring( shuffle ) );\n\t \t\tcards.append( str.substring( 0, shuffle ) );\n\t \t\tstr = cards.toString();\n\t \t\tcards.setLength( 0 );\n\t \t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t \t\tshuffle = Integer.parseInt( kb.readLine() );\n\t \t\tcards.append( str.substring( shuffle ) );\n\t \t\tcards.append( str.substring( 0, shuffle ) );\n\t \t\tstr = cards.toString();\n\t \t\tcards.setLength( 0 );\n\t \t}",
"{\n\t \t\tshuffle = Integer.parseInt( kb.readLine() );\n\t \t\tcards.append( str.substring( shuffle ) );\n\t \t\tcards.append( str.substring( 0, shuffle ) );\n\t \t\tstr = cards.toString();\n\t \t\tcards.setLength( 0 );\n\t \t}",
"shuffle = Integer.parseInt( kb.readLine() )",
"shuffle",
"Integer.parseInt( kb.readLine() )",
"Integer.parseInt",
"Integer",
"kb.readLine()",
"kb.readLine",
"kb",
"cards.append( str.substring( shuffle ) )",
"cards.append",
"cards",
"str.substring( shuffle )",
"str.substring",
"str",
"shuffle",
"cards.append( str.substring( 0, shuffle ) )",
"cards.append",
"cards",
"str.substring( 0, shuffle )",
"str.substring",
"str",
"0",
"shuffle",
"str = cards.toString()",
"str",
"cards.toString()",
"cards.toString",
"cards",
"cards.setLength( 0 )",
"cards.setLength",
"cards",
"0",
"System.out.println( str )",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"String[] args",
"args"
]
| import java.io.*;
class Main {
public static void main(String[] args) {
BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );
try {
String str;
StringBuilder cards = new StringBuilder( 200+1 );
int m, shuffle;
while( null != ( str = kb.readLine() ) ) {
if( str.equals( "-" ) ) { break; }
m = Integer.parseInt( kb.readLine() );
for( int i=0; i<m; i++ ) {
shuffle = Integer.parseInt( kb.readLine() );
cards.append( str.substring( shuffle ) );
cards.append( str.substring( 0, shuffle ) );
str = cards.toString();
cards.setLength( 0 );
}
System.out.println( str );
}
} catch( IOException e ) {
System.err.println( e );
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
41,
13,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
17,
11,
1,
0,
13,
17,
17,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
0,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
18,
13,
13,
11,
1,
0,
13,
18,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
2,
13,
18,
13,
13,
18,
13,
13,
11,
1,
0,
13,
2,
13,
18,
13,
13,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
18,
13,
2,
2,
13,
13,
18,
13,
13,
0,
18,
13,
13,
20,
4,
18,
13,
41,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
262,
5
],
[
262,
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
],
[
19,
22
],
[
22,
23
],
[
19,
24
],
[
24,
25
],
[
19,
26
],
[
26,
27
],
[
19,
28
],
[
28,
29
],
[
19,
30
],
[
30,
31
],
[
30,
32
],
[
19,
33
],
[
33,
34
],
[
19,
35
],
[
35,
36
],
[
35,
37
],
[
19,
39
],
[
39,
40
],
[
39,
41
],
[
19,
43
],
[
43,
44
],
[
43,
45
],
[
19,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
47,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
63,
68
],
[
57,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
57,
74
],
[
74,
75
],
[
74,
76
],
[
57,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
78,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
57,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
57,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
57,
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
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
122,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
133,
134
],
[
132,
135
],
[
57,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
141,
142
],
[
141,
143
],
[
136,
144
],
[
144,
145
],
[
145,
146
],
[
136,
147
],
[
148,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
149,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
156,
158
],
[
149,
159
],
[
159,
160
],
[
160,
161
],
[
149,
162
],
[
163,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
168,
169
],
[
168,
170
],
[
148,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
175,
177
],
[
171,
178
],
[
178,
179
],
[
178,
180
],
[
171,
181
],
[
181,
182
],
[
182,
183
],
[
171,
184
],
[
185,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
191,
193
],
[
186,
194
],
[
194,
195
],
[
194,
196
],
[
148,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
201,
202
],
[
201,
203
],
[
203,
204
],
[
203,
205
],
[
197,
206
],
[
206,
207
],
[
206,
208
],
[
197,
209
],
[
209,
210
],
[
210,
211
],
[
197,
212
],
[
213,
213
],
[
213,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
214,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
220,
224
],
[
224,
225
],
[
224,
226
],
[
57,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
227,
231
],
[
19,
232
],
[
232,
233
],
[
233,
234
],
[
19,
235
],
[
235,
236
],
[
235,
237
],
[
19,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
240,
242
],
[
238,
243
],
[
243,
244
],
[
243,
245
],
[
238,
246
],
[
246,
247
],
[
247,
248
],
[
238,
249
],
[
250,
250
],
[
250,
251
],
[
251,
252
],
[
252,
253
],
[
253,
254
],
[
253,
255
],
[
251,
256
],
[
256,
257
],
[
256,
258
],
[
6,
259
],
[
259,
260
],
[
0,
261
],
[
261,
262
],
[
261,
263
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main (String[] args) {\n try {\n int m, i, j, k, wl;\n Scanner sc = new Scanner(System.in);\n String s;\n String[] r = new String[10];\n char[] t = new char[200];\n int[] h = new int[100];\n\n for (i = 0; true; i++) {\n s = sc.nextLine();\n if (s.equals(\"-\")) break;\n\n wl = s.length();\n\n char[] w = new char[wl];\n\n for (j = 0; j < wl; j++) {\n w[j] = s.charAt(j);\n }\n\n s = sc.nextLine();\n m = Integer.parseInt(s);\n\n for (j = 0; j < m; j++) {\n s = sc.nextLine();\n h[j] = Integer.parseInt(s);\n }\n\n for (j = 0; j < m; j++) {\n for (k = 0; k < h[j]; k++) {\n t[k] = w[k];\n }\n for (k = h[j]; k < wl; k++) {\n w[k-h[j]] = w[k];\n }\n for (k = wl-h[j]; k < wl; k++) {\n w[k] = t[k-wl+h[j]];\n }\n }\n r[i] = new String(w);\n }\n sc.close();\n\n int I = i;\n\n for (i = 0; i < I; i++) {\n System.out.println(r[i]);\n }\n }\n catch (NumberFormatException e) {\n System.out.println(e);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main (String[] args) {\n try {\n int m, i, j, k, wl;\n Scanner sc = new Scanner(System.in);\n String s;\n String[] r = new String[10];\n char[] t = new char[200];\n int[] h = new int[100];\n\n for (i = 0; true; i++) {\n s = sc.nextLine();\n if (s.equals(\"-\")) break;\n\n wl = s.length();\n\n char[] w = new char[wl];\n\n for (j = 0; j < wl; j++) {\n w[j] = s.charAt(j);\n }\n\n s = sc.nextLine();\n m = Integer.parseInt(s);\n\n for (j = 0; j < m; j++) {\n s = sc.nextLine();\n h[j] = Integer.parseInt(s);\n }\n\n for (j = 0; j < m; j++) {\n for (k = 0; k < h[j]; k++) {\n t[k] = w[k];\n }\n for (k = h[j]; k < wl; k++) {\n w[k-h[j]] = w[k];\n }\n for (k = wl-h[j]; k < wl; k++) {\n w[k] = t[k-wl+h[j]];\n }\n }\n r[i] = new String(w);\n }\n sc.close();\n\n int I = i;\n\n for (i = 0; i < I; i++) {\n System.out.println(r[i]);\n }\n }\n catch (NumberFormatException e) {\n System.out.println(e);\n }\n }\n}",
"Main",
"public static void main (String[] args) {\n try {\n int m, i, j, k, wl;\n Scanner sc = new Scanner(System.in);\n String s;\n String[] r = new String[10];\n char[] t = new char[200];\n int[] h = new int[100];\n\n for (i = 0; true; i++) {\n s = sc.nextLine();\n if (s.equals(\"-\")) break;\n\n wl = s.length();\n\n char[] w = new char[wl];\n\n for (j = 0; j < wl; j++) {\n w[j] = s.charAt(j);\n }\n\n s = sc.nextLine();\n m = Integer.parseInt(s);\n\n for (j = 0; j < m; j++) {\n s = sc.nextLine();\n h[j] = Integer.parseInt(s);\n }\n\n for (j = 0; j < m; j++) {\n for (k = 0; k < h[j]; k++) {\n t[k] = w[k];\n }\n for (k = h[j]; k < wl; k++) {\n w[k-h[j]] = w[k];\n }\n for (k = wl-h[j]; k < wl; k++) {\n w[k] = t[k-wl+h[j]];\n }\n }\n r[i] = new String(w);\n }\n sc.close();\n\n int I = i;\n\n for (i = 0; i < I; i++) {\n System.out.println(r[i]);\n }\n }\n catch (NumberFormatException e) {\n System.out.println(e);\n }\n }",
"main",
"{\n try {\n int m, i, j, k, wl;\n Scanner sc = new Scanner(System.in);\n String s;\n String[] r = new String[10];\n char[] t = new char[200];\n int[] h = new int[100];\n\n for (i = 0; true; i++) {\n s = sc.nextLine();\n if (s.equals(\"-\")) break;\n\n wl = s.length();\n\n char[] w = new char[wl];\n\n for (j = 0; j < wl; j++) {\n w[j] = s.charAt(j);\n }\n\n s = sc.nextLine();\n m = Integer.parseInt(s);\n\n for (j = 0; j < m; j++) {\n s = sc.nextLine();\n h[j] = Integer.parseInt(s);\n }\n\n for (j = 0; j < m; j++) {\n for (k = 0; k < h[j]; k++) {\n t[k] = w[k];\n }\n for (k = h[j]; k < wl; k++) {\n w[k-h[j]] = w[k];\n }\n for (k = wl-h[j]; k < wl; k++) {\n w[k] = t[k-wl+h[j]];\n }\n }\n r[i] = new String(w);\n }\n sc.close();\n\n int I = i;\n\n for (i = 0; i < I; i++) {\n System.out.println(r[i]);\n }\n }\n catch (NumberFormatException e) {\n System.out.println(e);\n }\n }",
"try {\n int m, i, j, k, wl;\n Scanner sc = new Scanner(System.in);\n String s;\n String[] r = new String[10];\n char[] t = new char[200];\n int[] h = new int[100];\n\n for (i = 0; true; i++) {\n s = sc.nextLine();\n if (s.equals(\"-\")) break;\n\n wl = s.length();\n\n char[] w = new char[wl];\n\n for (j = 0; j < wl; j++) {\n w[j] = s.charAt(j);\n }\n\n s = sc.nextLine();\n m = Integer.parseInt(s);\n\n for (j = 0; j < m; j++) {\n s = sc.nextLine();\n h[j] = Integer.parseInt(s);\n }\n\n for (j = 0; j < m; j++) {\n for (k = 0; k < h[j]; k++) {\n t[k] = w[k];\n }\n for (k = h[j]; k < wl; k++) {\n w[k-h[j]] = w[k];\n }\n for (k = wl-h[j]; k < wl; k++) {\n w[k] = t[k-wl+h[j]];\n }\n }\n r[i] = new String(w);\n }\n sc.close();\n\n int I = i;\n\n for (i = 0; i < I; i++) {\n System.out.println(r[i]);\n }\n }\n catch (NumberFormatException e) {\n System.out.println(e);\n }",
"catch (NumberFormatException e) {\n System.out.println(e);\n }",
"NumberFormatException e",
"{\n System.out.println(e);\n }",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n int m, i, j, k, wl;\n Scanner sc = new Scanner(System.in);\n String s;\n String[] r = new String[10];\n char[] t = new char[200];\n int[] h = new int[100];\n\n for (i = 0; true; i++) {\n s = sc.nextLine();\n if (s.equals(\"-\")) break;\n\n wl = s.length();\n\n char[] w = new char[wl];\n\n for (j = 0; j < wl; j++) {\n w[j] = s.charAt(j);\n }\n\n s = sc.nextLine();\n m = Integer.parseInt(s);\n\n for (j = 0; j < m; j++) {\n s = sc.nextLine();\n h[j] = Integer.parseInt(s);\n }\n\n for (j = 0; j < m; j++) {\n for (k = 0; k < h[j]; k++) {\n t[k] = w[k];\n }\n for (k = h[j]; k < wl; k++) {\n w[k-h[j]] = w[k];\n }\n for (k = wl-h[j]; k < wl; k++) {\n w[k] = t[k-wl+h[j]];\n }\n }\n r[i] = new String(w);\n }\n sc.close();\n\n int I = i;\n\n for (i = 0; i < I; i++) {\n System.out.println(r[i]);\n }\n }",
"int m",
"m",
"i",
"i",
"j",
"j",
"k",
"k",
"wl;",
"wl",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s;",
"s",
"String[] r = new String[10];",
"r",
"new String[10]",
"10",
"char[] t = new char[200];",
"t",
"new char[200]",
"200",
"int[] h = new int[100];",
"h",
"new int[100]",
"100",
"for (i = 0; true; i++) {\n s = sc.nextLine();\n if (s.equals(\"-\")) break;\n\n wl = s.length();\n\n char[] w = new char[wl];\n\n for (j = 0; j < wl; j++) {\n w[j] = s.charAt(j);\n }\n\n s = sc.nextLine();\n m = Integer.parseInt(s);\n\n for (j = 0; j < m; j++) {\n s = sc.nextLine();\n h[j] = Integer.parseInt(s);\n }\n\n for (j = 0; j < m; j++) {\n for (k = 0; k < h[j]; k++) {\n t[k] = w[k];\n }\n for (k = h[j]; k < wl; k++) {\n w[k-h[j]] = w[k];\n }\n for (k = wl-h[j]; k < wl; k++) {\n w[k] = t[k-wl+h[j]];\n }\n }\n r[i] = new String(w);\n }",
"i = 0;",
"i = 0",
"i",
"0",
"true",
"i++",
"i++",
"i",
"{\n s = sc.nextLine();\n if (s.equals(\"-\")) break;\n\n wl = s.length();\n\n char[] w = new char[wl];\n\n for (j = 0; j < wl; j++) {\n w[j] = s.charAt(j);\n }\n\n s = sc.nextLine();\n m = Integer.parseInt(s);\n\n for (j = 0; j < m; j++) {\n s = sc.nextLine();\n h[j] = Integer.parseInt(s);\n }\n\n for (j = 0; j < m; j++) {\n for (k = 0; k < h[j]; k++) {\n t[k] = w[k];\n }\n for (k = h[j]; k < wl; k++) {\n w[k-h[j]] = w[k];\n }\n for (k = wl-h[j]; k < wl; k++) {\n w[k] = t[k-wl+h[j]];\n }\n }\n r[i] = new String(w);\n }",
"{\n s = sc.nextLine();\n if (s.equals(\"-\")) break;\n\n wl = s.length();\n\n char[] w = new char[wl];\n\n for (j = 0; j < wl; j++) {\n w[j] = s.charAt(j);\n }\n\n s = sc.nextLine();\n m = Integer.parseInt(s);\n\n for (j = 0; j < m; j++) {\n s = sc.nextLine();\n h[j] = Integer.parseInt(s);\n }\n\n for (j = 0; j < m; j++) {\n for (k = 0; k < h[j]; k++) {\n t[k] = w[k];\n }\n for (k = h[j]; k < wl; k++) {\n w[k-h[j]] = w[k];\n }\n for (k = wl-h[j]; k < wl; k++) {\n w[k] = t[k-wl+h[j]];\n }\n }\n r[i] = new String(w);\n }",
"s = sc.nextLine()",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if (s.equals(\"-\")) break;",
"s.equals(\"-\")",
"s.equals",
"s",
"\"-\"",
"break;",
"wl = s.length()",
"wl",
"s.length()",
"s.length",
"s",
"char[] w = new char[wl];",
"w",
"new char[wl]",
"wl",
"for (j = 0; j < wl; j++) {\n w[j] = s.charAt(j);\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < wl",
"j",
"wl",
"j++",
"j++",
"j",
"{\n w[j] = s.charAt(j);\n }",
"{\n w[j] = s.charAt(j);\n }",
"w[j] = s.charAt(j)",
"w[j]",
"w",
"j",
"s.charAt(j)",
"s.charAt",
"s",
"j",
"s = sc.nextLine()",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"m = Integer.parseInt(s)",
"m",
"Integer.parseInt(s)",
"Integer.parseInt",
"Integer",
"s",
"for (j = 0; j < m; j++) {\n s = sc.nextLine();\n h[j] = Integer.parseInt(s);\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n s = sc.nextLine();\n h[j] = Integer.parseInt(s);\n }",
"{\n s = sc.nextLine();\n h[j] = Integer.parseInt(s);\n }",
"s = sc.nextLine()",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"h[j] = Integer.parseInt(s)",
"h[j]",
"h",
"j",
"Integer.parseInt(s)",
"Integer.parseInt",
"Integer",
"s",
"for (j = 0; j < m; j++) {\n for (k = 0; k < h[j]; k++) {\n t[k] = w[k];\n }\n for (k = h[j]; k < wl; k++) {\n w[k-h[j]] = w[k];\n }\n for (k = wl-h[j]; k < wl; k++) {\n w[k] = t[k-wl+h[j]];\n }\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n for (k = 0; k < h[j]; k++) {\n t[k] = w[k];\n }\n for (k = h[j]; k < wl; k++) {\n w[k-h[j]] = w[k];\n }\n for (k = wl-h[j]; k < wl; k++) {\n w[k] = t[k-wl+h[j]];\n }\n }",
"{\n for (k = 0; k < h[j]; k++) {\n t[k] = w[k];\n }\n for (k = h[j]; k < wl; k++) {\n w[k-h[j]] = w[k];\n }\n for (k = wl-h[j]; k < wl; k++) {\n w[k] = t[k-wl+h[j]];\n }\n }",
"for (k = 0; k < h[j]; k++) {\n t[k] = w[k];\n }",
"k = 0;",
"k = 0",
"k",
"0",
"k < h[j]",
"k",
"h[j]",
"h",
"j",
"k++",
"k++",
"k",
"{\n t[k] = w[k];\n }",
"{\n t[k] = w[k];\n }",
"t[k] = w[k]",
"t[k]",
"t",
"k",
"w[k]",
"w",
"k",
"for (k = h[j]; k < wl; k++) {\n w[k-h[j]] = w[k];\n }",
"k = h[j];",
"k = h[j]",
"k",
"h[j]",
"h",
"j",
"k < wl",
"k",
"wl",
"k++",
"k++",
"k",
"{\n w[k-h[j]] = w[k];\n }",
"{\n w[k-h[j]] = w[k];\n }",
"w[k-h[j]] = w[k]",
"w[k-h[j]]",
"w",
"k-h[j]",
"k",
"h[j]",
"h",
"j",
"w[k]",
"w",
"k",
"for (k = wl-h[j]; k < wl; k++) {\n w[k] = t[k-wl+h[j]];\n }",
"k = wl-h[j];",
"k = wl-h[j]",
"k",
"wl-h[j]",
"wl",
"h[j]",
"h",
"j",
"k < wl",
"k",
"wl",
"k++",
"k++",
"k",
"{\n w[k] = t[k-wl+h[j]];\n }",
"{\n w[k] = t[k-wl+h[j]];\n }",
"w[k] = t[k-wl+h[j]]",
"w[k]",
"w",
"k",
"t[k-wl+h[j]]",
"t",
"k-wl+h[j]",
"k-wl",
"k",
"wl",
"h[j]",
"h",
"j",
"r[i] = new String(w)",
"r[i]",
"r",
"i",
"new String(w)",
"sc.close()",
"sc.close",
"sc",
"int I = i;",
"I",
"i",
"for (i = 0; i < I; i++) {\n System.out.println(r[i]);\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < I",
"i",
"I",
"i++",
"i++",
"i",
"{\n System.out.println(r[i]);\n }",
"{\n System.out.println(r[i]);\n }",
"System.out.println(r[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"r[i]",
"r",
"i",
"String[] args",
"args",
"public class Main {\n public static void main (String[] args) {\n try {\n int m, i, j, k, wl;\n Scanner sc = new Scanner(System.in);\n String s;\n String[] r = new String[10];\n char[] t = new char[200];\n int[] h = new int[100];\n\n for (i = 0; true; i++) {\n s = sc.nextLine();\n if (s.equals(\"-\")) break;\n\n wl = s.length();\n\n char[] w = new char[wl];\n\n for (j = 0; j < wl; j++) {\n w[j] = s.charAt(j);\n }\n\n s = sc.nextLine();\n m = Integer.parseInt(s);\n\n for (j = 0; j < m; j++) {\n s = sc.nextLine();\n h[j] = Integer.parseInt(s);\n }\n\n for (j = 0; j < m; j++) {\n for (k = 0; k < h[j]; k++) {\n t[k] = w[k];\n }\n for (k = h[j]; k < wl; k++) {\n w[k-h[j]] = w[k];\n }\n for (k = wl-h[j]; k < wl; k++) {\n w[k] = t[k-wl+h[j]];\n }\n }\n r[i] = new String(w);\n }\n sc.close();\n\n int I = i;\n\n for (i = 0; i < I; i++) {\n System.out.println(r[i]);\n }\n }\n catch (NumberFormatException e) {\n System.out.println(e);\n }\n }\n}",
"public class Main {\n public static void main (String[] args) {\n try {\n int m, i, j, k, wl;\n Scanner sc = new Scanner(System.in);\n String s;\n String[] r = new String[10];\n char[] t = new char[200];\n int[] h = new int[100];\n\n for (i = 0; true; i++) {\n s = sc.nextLine();\n if (s.equals(\"-\")) break;\n\n wl = s.length();\n\n char[] w = new char[wl];\n\n for (j = 0; j < wl; j++) {\n w[j] = s.charAt(j);\n }\n\n s = sc.nextLine();\n m = Integer.parseInt(s);\n\n for (j = 0; j < m; j++) {\n s = sc.nextLine();\n h[j] = Integer.parseInt(s);\n }\n\n for (j = 0; j < m; j++) {\n for (k = 0; k < h[j]; k++) {\n t[k] = w[k];\n }\n for (k = h[j]; k < wl; k++) {\n w[k-h[j]] = w[k];\n }\n for (k = wl-h[j]; k < wl; k++) {\n w[k] = t[k-wl+h[j]];\n }\n }\n r[i] = new String(w);\n }\n sc.close();\n\n int I = i;\n\n for (i = 0; i < I; i++) {\n System.out.println(r[i]);\n }\n }\n catch (NumberFormatException e) {\n System.out.println(e);\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main (String[] args) {
try {
int m, i, j, k, wl;
Scanner sc = new Scanner(System.in);
String s;
String[] r = new String[10];
char[] t = new char[200];
int[] h = new int[100];
for (i = 0; true; i++) {
s = sc.nextLine();
if (s.equals("-")) break;
wl = s.length();
char[] w = new char[wl];
for (j = 0; j < wl; j++) {
w[j] = s.charAt(j);
}
s = sc.nextLine();
m = Integer.parseInt(s);
for (j = 0; j < m; j++) {
s = sc.nextLine();
h[j] = Integer.parseInt(s);
}
for (j = 0; j < m; j++) {
for (k = 0; k < h[j]; k++) {
t[k] = w[k];
}
for (k = h[j]; k < wl; k++) {
w[k-h[j]] = w[k];
}
for (k = wl-h[j]; k < wl; k++) {
w[k] = t[k-wl+h[j]];
}
}
r[i] = new String(w);
}
sc.close();
int I = i;
for (i = 0; i < I; i++) {
System.out.println(r[i]);
}
}
catch (NumberFormatException e) {
System.out.println(e);
}
}
}
|
[
7,
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,
42,
40,
4,
18,
13,
17,
30,
41,
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,
0,
13,
4,
18,
13,
17,
40,
13,
0,
13,
4,
18,
13,
2,
13,
17,
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
],
[
99,
5
],
[
99,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
29,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
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
],
[
58,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
66,
70
],
[
70,
71
],
[
58,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
77,
79
],
[
58,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
35,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
35,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
6,
96
],
[
96,
97
],
[
0,
98
],
[
98,
99
],
[
98,
100
]
]
| [
"import java.util.Scanner;\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str=scan.next();\n\t\tint len = 0;\n\t\tint point =0;\n\t\tString a =\"\";\n\t\tString b =\"\";\n\t\twhile(!str.equals(\"-\")){\n\t\t\tint m = scan.nextInt();\n\t\t\tlen =str.length();\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tpoint = scan.nextInt();\n\t\t\t\ta=str.substring(0,point++);\n\t\t\t\tb=str.substring(point-1);\n\t\t\t\tstr=b+a;\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t\tstr=scan.next();\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str=scan.next();\n\t\tint len = 0;\n\t\tint point =0;\n\t\tString a =\"\";\n\t\tString b =\"\";\n\t\twhile(!str.equals(\"-\")){\n\t\t\tint m = scan.nextInt();\n\t\t\tlen =str.length();\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tpoint = scan.nextInt();\n\t\t\t\ta=str.substring(0,point++);\n\t\t\t\tb=str.substring(point-1);\n\t\t\t\tstr=b+a;\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t\tstr=scan.next();\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str=scan.next();\n\t\tint len = 0;\n\t\tint point =0;\n\t\tString a =\"\";\n\t\tString b =\"\";\n\t\twhile(!str.equals(\"-\")){\n\t\t\tint m = scan.nextInt();\n\t\t\tlen =str.length();\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tpoint = scan.nextInt();\n\t\t\t\ta=str.substring(0,point++);\n\t\t\t\tb=str.substring(point-1);\n\t\t\t\tstr=b+a;\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t\tstr=scan.next();\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str=scan.next();\n\t\tint len = 0;\n\t\tint point =0;\n\t\tString a =\"\";\n\t\tString b =\"\";\n\t\twhile(!str.equals(\"-\")){\n\t\t\tint m = scan.nextInt();\n\t\t\tlen =str.length();\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tpoint = scan.nextInt();\n\t\t\t\ta=str.substring(0,point++);\n\t\t\t\tb=str.substring(point-1);\n\t\t\t\tstr=b+a;\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t\tstr=scan.next();\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String str=scan.next();",
"str",
"scan.next()",
"scan.next",
"scan",
"int len = 0;",
"len",
"0",
"int point =0;",
"point",
"0",
"String a =\"\";",
"a",
"\"\"",
"String b =\"\";",
"b",
"\"\"",
"while(!str.equals(\"-\")){\n\t\t\tint m = scan.nextInt();\n\t\t\tlen =str.length();\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tpoint = scan.nextInt();\n\t\t\t\ta=str.substring(0,point++);\n\t\t\t\tb=str.substring(point-1);\n\t\t\t\tstr=b+a;\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t\tstr=scan.next();\n\t\t}",
"!str.equals(\"-\")",
"str.equals(\"-\")",
"str.equals",
"str",
"\"-\"",
"{\n\t\t\tint m = scan.nextInt();\n\t\t\tlen =str.length();\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tpoint = scan.nextInt();\n\t\t\t\ta=str.substring(0,point++);\n\t\t\t\tb=str.substring(point-1);\n\t\t\t\tstr=b+a;\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t\tstr=scan.next();\n\t\t}",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"len =str.length()",
"len",
"str.length()",
"str.length",
"str",
"for(int i=0;i<m;i++){\n\t\t\t\tpoint = scan.nextInt();\n\t\t\t\ta=str.substring(0,point++);\n\t\t\t\tb=str.substring(point-1);\n\t\t\t\tstr=b+a;\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\t\tpoint = scan.nextInt();\n\t\t\t\ta=str.substring(0,point++);\n\t\t\t\tb=str.substring(point-1);\n\t\t\t\tstr=b+a;\n\t\t\t}",
"{\n\t\t\t\tpoint = scan.nextInt();\n\t\t\t\ta=str.substring(0,point++);\n\t\t\t\tb=str.substring(point-1);\n\t\t\t\tstr=b+a;\n\t\t\t}",
"point = scan.nextInt()",
"point",
"scan.nextInt()",
"scan.nextInt",
"scan",
"a=str.substring(0,point++)",
"a",
"str.substring(0,point++)",
"str.substring",
"str",
"0",
"point++",
"point",
"b=str.substring(point-1)",
"b",
"str.substring(point-1)",
"str.substring",
"str",
"point-1",
"point",
"1",
"str=b+a",
"str",
"b+a",
"b",
"a",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"str=scan.next()",
"str",
"scan.next()",
"scan.next",
"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 str=scan.next();\n\t\tint len = 0;\n\t\tint point =0;\n\t\tString a =\"\";\n\t\tString b =\"\";\n\t\twhile(!str.equals(\"-\")){\n\t\t\tint m = scan.nextInt();\n\t\t\tlen =str.length();\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tpoint = scan.nextInt();\n\t\t\t\ta=str.substring(0,point++);\n\t\t\t\tb=str.substring(point-1);\n\t\t\t\tstr=b+a;\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t\tstr=scan.next();\n\t\t}\n\t}\n\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str=scan.next();\n\t\tint len = 0;\n\t\tint point =0;\n\t\tString a =\"\";\n\t\tString b =\"\";\n\t\twhile(!str.equals(\"-\")){\n\t\t\tint m = scan.nextInt();\n\t\t\tlen =str.length();\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tpoint = scan.nextInt();\n\t\t\t\ta=str.substring(0,point++);\n\t\t\t\tb=str.substring(point-1);\n\t\t\t\tstr=b+a;\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t\tstr=scan.next();\n\t\t}\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String str=scan.next();
int len = 0;
int point =0;
String a ="";
String b ="";
while(!str.equals("-")){
int m = scan.nextInt();
len =str.length();
for(int i=0;i<m;i++){
point = scan.nextInt();
a=str.substring(0,point++);
b=str.substring(point-1);
str=b+a;
}
System.out.println(str);
str=scan.next();
}
}
} |
[
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,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
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,
41,
13,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
13,
13,
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
],
[
132,
5
],
[
132,
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
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
15,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
15,
38
],
[
38,
39
],
[
38,
40
],
[
15,
41
],
[
41,
42
],
[
41,
43
],
[
15,
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
],
[
56,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
15,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
79,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
85,
96
],
[
97,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
97,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
97,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
15,
112
],
[
112,
113
],
[
112,
114
],
[
112,
115
],
[
116,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
15,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
123,
128
],
[
6,
129
],
[
129,
130
],
[
0,
131
],
[
131,
132
],
[
131,
133
]
]
| [
"import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tString input = scan.next();\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tint len = input.length();\n\t\t\tString output = input;\n\t\t\tList<Character> listC = new ArrayList<Character>();\n\t\t\tfor(int i = 0; i < len; i++){\n\t\t\t\tchar c = output.charAt(i);\n\t\t\t\tlistC.add(c);\n\t\t\t}\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tfor(int j = 0; j < h; j++){\n\t\t\t\t\tchar c = listC.get(0);\n\t\t\t\t\tlistC.remove(0);\n\t\t\t\t\tlistC.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(char c : listC){\n\t\t\t\tSystem.out.print(c);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n\n\t\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tString input = scan.next();\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tint len = input.length();\n\t\t\tString output = input;\n\t\t\tList<Character> listC = new ArrayList<Character>();\n\t\t\tfor(int i = 0; i < len; i++){\n\t\t\t\tchar c = output.charAt(i);\n\t\t\t\tlistC.add(c);\n\t\t\t}\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tfor(int j = 0; j < h; j++){\n\t\t\t\t\tchar c = listC.get(0);\n\t\t\t\t\tlistC.remove(0);\n\t\t\t\t\tlistC.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(char c : listC){\n\t\t\t\tSystem.out.print(c);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n\n\t\n}",
"Main",
"public static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tString input = scan.next();\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tint len = input.length();\n\t\t\tString output = input;\n\t\t\tList<Character> listC = new ArrayList<Character>();\n\t\t\tfor(int i = 0; i < len; i++){\n\t\t\t\tchar c = output.charAt(i);\n\t\t\t\tlistC.add(c);\n\t\t\t}\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tfor(int j = 0; j < h; j++){\n\t\t\t\t\tchar c = listC.get(0);\n\t\t\t\t\tlistC.remove(0);\n\t\t\t\t\tlistC.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(char c : listC){\n\t\t\t\tSystem.out.print(c);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"main",
"{\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tString input = scan.next();\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tint len = input.length();\n\t\t\tString output = input;\n\t\t\tList<Character> listC = new ArrayList<Character>();\n\t\t\tfor(int i = 0; i < len; i++){\n\t\t\t\tchar c = output.charAt(i);\n\t\t\t\tlistC.add(c);\n\t\t\t}\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tfor(int j = 0; j < h; j++){\n\t\t\t\t\tchar c = listC.get(0);\n\t\t\t\t\tlistC.remove(0);\n\t\t\t\t\tlistC.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(char c : listC){\n\t\t\t\tSystem.out.print(c);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"for(;;){\n\t\t\tString input = scan.next();\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tint len = input.length();\n\t\t\tString output = input;\n\t\t\tList<Character> listC = new ArrayList<Character>();\n\t\t\tfor(int i = 0; i < len; i++){\n\t\t\t\tchar c = output.charAt(i);\n\t\t\t\tlistC.add(c);\n\t\t\t}\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tfor(int j = 0; j < h; j++){\n\t\t\t\t\tchar c = listC.get(0);\n\t\t\t\t\tlistC.remove(0);\n\t\t\t\t\tlistC.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(char c : listC){\n\t\t\t\tSystem.out.print(c);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
";",
"{\n\t\t\tString input = scan.next();\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tint len = input.length();\n\t\t\tString output = input;\n\t\t\tList<Character> listC = new ArrayList<Character>();\n\t\t\tfor(int i = 0; i < len; i++){\n\t\t\t\tchar c = output.charAt(i);\n\t\t\t\tlistC.add(c);\n\t\t\t}\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tfor(int j = 0; j < h; j++){\n\t\t\t\t\tchar c = listC.get(0);\n\t\t\t\t\tlistC.remove(0);\n\t\t\t\t\tlistC.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(char c : listC){\n\t\t\t\tSystem.out.print(c);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"{\n\t\t\tString input = scan.next();\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tint len = input.length();\n\t\t\tString output = input;\n\t\t\tList<Character> listC = new ArrayList<Character>();\n\t\t\tfor(int i = 0; i < len; i++){\n\t\t\t\tchar c = output.charAt(i);\n\t\t\t\tlistC.add(c);\n\t\t\t}\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tfor(int j = 0; j < h; j++){\n\t\t\t\t\tchar c = listC.get(0);\n\t\t\t\t\tlistC.remove(0);\n\t\t\t\t\tlistC.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(char c : listC){\n\t\t\t\tSystem.out.print(c);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}",
"String input = scan.next();",
"input",
"scan.next()",
"scan.next",
"scan",
"if(input.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}",
"input.equals(\"-\")",
"input.equals",
"input",
"\"-\"",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int len = input.length();",
"len",
"input.length()",
"input.length",
"input",
"String output = input;",
"output",
"input",
"List<Character> listC = new ArrayList<Character>();",
"listC",
"new ArrayList<Character>()",
"for(int i = 0; i < len; i++){\n\t\t\t\tchar c = output.charAt(i);\n\t\t\t\tlistC.add(c);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < len",
"i",
"len",
"i++",
"i++",
"i",
"{\n\t\t\t\tchar c = output.charAt(i);\n\t\t\t\tlistC.add(c);\n\t\t\t}",
"{\n\t\t\t\tchar c = output.charAt(i);\n\t\t\t\tlistC.add(c);\n\t\t\t}",
"char c = output.charAt(i);",
"c",
"output.charAt(i)",
"output.charAt",
"output",
"i",
"listC.add(c)",
"listC.add",
"listC",
"c",
"for(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tfor(int j = 0; j < h; j++){\n\t\t\t\t\tchar c = listC.get(0);\n\t\t\t\t\tlistC.remove(0);\n\t\t\t\t\tlistC.add(c);\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 = scan.nextInt();\n\t\t\t\tfor(int j = 0; j < h; j++){\n\t\t\t\t\tchar c = listC.get(0);\n\t\t\t\t\tlistC.remove(0);\n\t\t\t\t\tlistC.add(c);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tfor(int j = 0; j < h; j++){\n\t\t\t\t\tchar c = listC.get(0);\n\t\t\t\t\tlistC.remove(0);\n\t\t\t\t\tlistC.add(c);\n\t\t\t\t}\n\t\t\t}",
"int h = scan.nextInt();",
"h",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int j = 0; j < h; j++){\n\t\t\t\t\tchar c = listC.get(0);\n\t\t\t\t\tlistC.remove(0);\n\t\t\t\t\tlistC.add(c);\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < h",
"j",
"h",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tchar c = listC.get(0);\n\t\t\t\t\tlistC.remove(0);\n\t\t\t\t\tlistC.add(c);\n\t\t\t\t}",
"{\n\t\t\t\t\tchar c = listC.get(0);\n\t\t\t\t\tlistC.remove(0);\n\t\t\t\t\tlistC.add(c);\n\t\t\t\t}",
"char c = listC.get(0);",
"c",
"listC.get(0)",
"listC.get",
"listC",
"0",
"listC.remove(0)",
"listC.remove",
"listC",
"0",
"listC.add(c)",
"listC.add",
"listC",
"c",
"for(char c : listC){\n\t\t\t\tSystem.out.print(c);\n\t\t\t}",
"char c",
"listC",
"{\n\t\t\t\tSystem.out.print(c);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(c);\n\t\t\t}",
"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\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tString input = scan.next();\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tint len = input.length();\n\t\t\tString output = input;\n\t\t\tList<Character> listC = new ArrayList<Character>();\n\t\t\tfor(int i = 0; i < len; i++){\n\t\t\t\tchar c = output.charAt(i);\n\t\t\t\tlistC.add(c);\n\t\t\t}\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tfor(int j = 0; j < h; j++){\n\t\t\t\t\tchar c = listC.get(0);\n\t\t\t\t\tlistC.remove(0);\n\t\t\t\t\tlistC.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(char c : listC){\n\t\t\t\tSystem.out.print(c);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n\n\t\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tString input = scan.next();\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tint len = input.length();\n\t\t\tString output = input;\n\t\t\tList<Character> listC = new ArrayList<Character>();\n\t\t\tfor(int i = 0; i < len; i++){\n\t\t\t\tchar c = output.charAt(i);\n\t\t\t\tlistC.add(c);\n\t\t\t}\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tfor(int j = 0; j < h; j++){\n\t\t\t\t\tchar c = listC.get(0);\n\t\t\t\t\tlistC.remove(0);\n\t\t\t\t\tlistC.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(char c : listC){\n\t\t\t\tSystem.out.print(c);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n\n\t\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
for(;;){
String input = scan.next();
if(input.equals("-")){
break;
}
int m = scan.nextInt();
int len = input.length();
String output = input;
List<Character> listC = new ArrayList<Character>();
for(int i = 0; i < len; i++){
char c = output.charAt(i);
listC.add(c);
}
for(int i = 0; i < m; i++){
int h = scan.nextInt();
for(int j = 0; j < h; j++){
char c = listC.get(0);
listC.remove(0);
listC.add(c);
}
}
for(char c : listC){
System.out.print(c);
}
System.out.println("");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
17,
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
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
8,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
37,
42
],
[
31,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
31,
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
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
68,
71
],
[
31,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
6,
78
],
[
78,
79
],
[
4,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
88,
92
],
[
82,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
95,
99
],
[
99,
100
],
[
100,
101
],
[
82,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
106,
112
],
[
82,
113
],
[
113,
114
],
[
80,
115
],
[
115,
116
],
[
80,
117
],
[
117,
118
]
]
| [
"import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n StringBuilder output = new StringBuilder();\n String crlf = System.getProperty(\"line.separator\");\n \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 StringBuilder output = new StringBuilder();\n String crlf = System.getProperty(\"line.separator\");\n \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 StringBuilder output = new StringBuilder();\n String crlf = System.getProperty(\"line.separator\");\n \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 StringBuilder output = new StringBuilder();\n String crlf = System.getProperty(\"line.separator\");\n \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)",
"StringBuilder output = new StringBuilder();",
"output",
"new StringBuilder()",
"String crlf = System.getProperty(\"line.separator\");",
"crlf",
"System.getProperty(\"line.separator\")",
"System.getProperty",
"System",
"\"line.separator\"",
"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);
StringBuilder output = new StringBuilder();
String crlf = System.getProperty("line.separator");
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,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
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,
13,
41,
13,
20,
2,
17,
13,
0,
18,
13,
17,
13,
0,
18,
13,
17,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
2,
17,
13,
4,
18,
13,
4,
18,
13,
13,
40,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
41,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
18,
13,
2,
13,
17,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
176,
8
],
[
176,
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
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
26,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
32,
37
],
[
37,
38
],
[
26,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
26,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
26,
50
],
[
50,
51
],
[
50,
52
],
[
53,
54
],
[
53,
55
],
[
26,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
26,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
26,
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
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
79,
85
],
[
85,
86
],
[
86,
87
],
[
26,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
26,
92
],
[
92,
93
],
[
11,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
94,
102
],
[
102,
103
],
[
103,
104
],
[
94,
105
],
[
106,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
106,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
115,
117
],
[
106,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
123,
124
],
[
123,
125
],
[
106,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
126,
134
],
[
134,
135
],
[
135,
136
],
[
126,
137
],
[
138,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
141,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
146,
148
],
[
138,
149
],
[
149,
150
],
[
149,
151
],
[
151,
152
],
[
152,
153
],
[
151,
154
],
[
151,
155
],
[
138,
156
],
[
156,
157
],
[
156,
158
],
[
158,
159
],
[
159,
160
],
[
158,
161
],
[
138,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
164,
166
],
[
106,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
9,
173
],
[
173,
174
],
[
0,
175
],
[
175,
176
],
[
175,
177
]
]
| [
"import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<String[]> all = new ArrayList<String[]>();\n\n\t\tString line = \"\";\n\n\t\tint pat = 0;\n\n\t\twhile (true) {\n\t\t\tline = sc.nextLine();\n\t\t\tif (line.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString shuffle = sc.nextLine();\n\t\t\tint shuffle_int = Integer.parseInt(shuffle);\n\n\t\t\tString[] kari = new String[2 + shuffle_int];\n\t\t\tkari[0] = line;\n\t\t\tkari[1] = shuffle;\n\n\t\t\tfor (int j = 0; j < shuffle_int; j++) {\n\t\t\t\tkari[2 + j] = sc.nextLine();\n\t\t\t}\n\t\t\tall.add(kari);\n\t\t\tpat++;\n\t\t}\n\n\t\tfor (int i = 0; i < pat; i++) {\n\t\t\tString[] s = all.get(i);\n\t\t\tString str = s[0];\n\t\t\tint repeat = Integer.parseInt(s[1]);\n\t\t\tfor (int j = 0; j < repeat; j++) {\n\t\t\t\tint sh = Integer.parseInt(s[j + 2]);\n\t\t\t\tString a = str.substring(0, sh);\n\t\t\t\tString b = str.substring(sh);\n\t\t\t\tstr = b + a;\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}\n\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\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<String[]> all = new ArrayList<String[]>();\n\n\t\tString line = \"\";\n\n\t\tint pat = 0;\n\n\t\twhile (true) {\n\t\t\tline = sc.nextLine();\n\t\t\tif (line.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString shuffle = sc.nextLine();\n\t\t\tint shuffle_int = Integer.parseInt(shuffle);\n\n\t\t\tString[] kari = new String[2 + shuffle_int];\n\t\t\tkari[0] = line;\n\t\t\tkari[1] = shuffle;\n\n\t\t\tfor (int j = 0; j < shuffle_int; j++) {\n\t\t\t\tkari[2 + j] = sc.nextLine();\n\t\t\t}\n\t\t\tall.add(kari);\n\t\t\tpat++;\n\t\t}\n\n\t\tfor (int i = 0; i < pat; i++) {\n\t\t\tString[] s = all.get(i);\n\t\t\tString str = s[0];\n\t\t\tint repeat = Integer.parseInt(s[1]);\n\t\t\tfor (int j = 0; j < repeat; j++) {\n\t\t\t\tint sh = Integer.parseInt(s[j + 2]);\n\t\t\t\tString a = str.substring(0, sh);\n\t\t\t\tString b = str.substring(sh);\n\t\t\t\tstr = b + a;\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<String[]> all = new ArrayList<String[]>();\n\n\t\tString line = \"\";\n\n\t\tint pat = 0;\n\n\t\twhile (true) {\n\t\t\tline = sc.nextLine();\n\t\t\tif (line.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString shuffle = sc.nextLine();\n\t\t\tint shuffle_int = Integer.parseInt(shuffle);\n\n\t\t\tString[] kari = new String[2 + shuffle_int];\n\t\t\tkari[0] = line;\n\t\t\tkari[1] = shuffle;\n\n\t\t\tfor (int j = 0; j < shuffle_int; j++) {\n\t\t\t\tkari[2 + j] = sc.nextLine();\n\t\t\t}\n\t\t\tall.add(kari);\n\t\t\tpat++;\n\t\t}\n\n\t\tfor (int i = 0; i < pat; i++) {\n\t\t\tString[] s = all.get(i);\n\t\t\tString str = s[0];\n\t\t\tint repeat = Integer.parseInt(s[1]);\n\t\t\tfor (int j = 0; j < repeat; j++) {\n\t\t\t\tint sh = Integer.parseInt(s[j + 2]);\n\t\t\t\tString a = str.substring(0, sh);\n\t\t\t\tString b = str.substring(sh);\n\t\t\t\tstr = b + a;\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}\n\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<String[]> all = new ArrayList<String[]>();\n\n\t\tString line = \"\";\n\n\t\tint pat = 0;\n\n\t\twhile (true) {\n\t\t\tline = sc.nextLine();\n\t\t\tif (line.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString shuffle = sc.nextLine();\n\t\t\tint shuffle_int = Integer.parseInt(shuffle);\n\n\t\t\tString[] kari = new String[2 + shuffle_int];\n\t\t\tkari[0] = line;\n\t\t\tkari[1] = shuffle;\n\n\t\t\tfor (int j = 0; j < shuffle_int; j++) {\n\t\t\t\tkari[2 + j] = sc.nextLine();\n\t\t\t}\n\t\t\tall.add(kari);\n\t\t\tpat++;\n\t\t}\n\n\t\tfor (int i = 0; i < pat; i++) {\n\t\t\tString[] s = all.get(i);\n\t\t\tString str = s[0];\n\t\t\tint repeat = Integer.parseInt(s[1]);\n\t\t\tfor (int j = 0; j < repeat; j++) {\n\t\t\t\tint sh = Integer.parseInt(s[j + 2]);\n\t\t\t\tString a = str.substring(0, sh);\n\t\t\t\tString b = str.substring(sh);\n\t\t\t\tstr = b + a;\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"ArrayList<String[]> all = new ArrayList<String[]>();",
"all",
"new ArrayList<String[]>()",
"String line = \"\";",
"line",
"\"\"",
"int pat = 0;",
"pat",
"0",
"while (true) {\n\t\t\tline = sc.nextLine();\n\t\t\tif (line.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString shuffle = sc.nextLine();\n\t\t\tint shuffle_int = Integer.parseInt(shuffle);\n\n\t\t\tString[] kari = new String[2 + shuffle_int];\n\t\t\tkari[0] = line;\n\t\t\tkari[1] = shuffle;\n\n\t\t\tfor (int j = 0; j < shuffle_int; j++) {\n\t\t\t\tkari[2 + j] = sc.nextLine();\n\t\t\t}\n\t\t\tall.add(kari);\n\t\t\tpat++;\n\t\t}",
"true",
"{\n\t\t\tline = sc.nextLine();\n\t\t\tif (line.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString shuffle = sc.nextLine();\n\t\t\tint shuffle_int = Integer.parseInt(shuffle);\n\n\t\t\tString[] kari = new String[2 + shuffle_int];\n\t\t\tkari[0] = line;\n\t\t\tkari[1] = shuffle;\n\n\t\t\tfor (int j = 0; j < shuffle_int; j++) {\n\t\t\t\tkari[2 + j] = sc.nextLine();\n\t\t\t}\n\t\t\tall.add(kari);\n\t\t\tpat++;\n\t\t}",
"line = sc.nextLine()",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if (line.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}",
"line.equals(\"-\")",
"line.equals",
"line",
"\"-\"",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"String shuffle = sc.nextLine();",
"shuffle",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int shuffle_int = Integer.parseInt(shuffle);",
"shuffle_int",
"Integer.parseInt(shuffle)",
"Integer.parseInt",
"Integer",
"shuffle",
"String[] kari = new String[2 + shuffle_int];",
"kari",
"new String[2 + shuffle_int]",
"2 + shuffle_int",
"2",
"shuffle_int",
"kari[0] = line",
"kari[0]",
"kari",
"0",
"line",
"kari[1] = shuffle",
"kari[1]",
"kari",
"1",
"shuffle",
"for (int j = 0; j < shuffle_int; j++) {\n\t\t\t\tkari[2 + j] = sc.nextLine();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < shuffle_int",
"j",
"shuffle_int",
"j++",
"j++",
"j",
"{\n\t\t\t\tkari[2 + j] = sc.nextLine();\n\t\t\t}",
"{\n\t\t\t\tkari[2 + j] = sc.nextLine();\n\t\t\t}",
"kari[2 + j] = sc.nextLine()",
"kari[2 + j]",
"kari",
"2 + j",
"2",
"j",
"sc.nextLine()",
"sc.nextLine",
"sc",
"all.add(kari)",
"all.add",
"all",
"kari",
"pat++",
"pat",
"for (int i = 0; i < pat; i++) {\n\t\t\tString[] s = all.get(i);\n\t\t\tString str = s[0];\n\t\t\tint repeat = Integer.parseInt(s[1]);\n\t\t\tfor (int j = 0; j < repeat; j++) {\n\t\t\t\tint sh = Integer.parseInt(s[j + 2]);\n\t\t\t\tString a = str.substring(0, sh);\n\t\t\t\tString b = str.substring(sh);\n\t\t\t\tstr = b + a;\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < pat",
"i",
"pat",
"i++",
"i++",
"i",
"{\n\t\t\tString[] s = all.get(i);\n\t\t\tString str = s[0];\n\t\t\tint repeat = Integer.parseInt(s[1]);\n\t\t\tfor (int j = 0; j < repeat; j++) {\n\t\t\t\tint sh = Integer.parseInt(s[j + 2]);\n\t\t\t\tString a = str.substring(0, sh);\n\t\t\t\tString b = str.substring(sh);\n\t\t\t\tstr = b + a;\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}",
"{\n\t\t\tString[] s = all.get(i);\n\t\t\tString str = s[0];\n\t\t\tint repeat = Integer.parseInt(s[1]);\n\t\t\tfor (int j = 0; j < repeat; j++) {\n\t\t\t\tint sh = Integer.parseInt(s[j + 2]);\n\t\t\t\tString a = str.substring(0, sh);\n\t\t\t\tString b = str.substring(sh);\n\t\t\t\tstr = b + a;\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}",
"String[] s = all.get(i);",
"s",
"all.get(i)",
"all.get",
"all",
"i",
"String str = s[0];",
"str",
"s[0]",
"s",
"0",
"int repeat = Integer.parseInt(s[1]);",
"repeat",
"Integer.parseInt(s[1])",
"Integer.parseInt",
"Integer",
"s[1]",
"s",
"1",
"for (int j = 0; j < repeat; j++) {\n\t\t\t\tint sh = Integer.parseInt(s[j + 2]);\n\t\t\t\tString a = str.substring(0, sh);\n\t\t\t\tString b = str.substring(sh);\n\t\t\t\tstr = b + a;\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < repeat",
"j",
"repeat",
"j++",
"j++",
"j",
"{\n\t\t\t\tint sh = Integer.parseInt(s[j + 2]);\n\t\t\t\tString a = str.substring(0, sh);\n\t\t\t\tString b = str.substring(sh);\n\t\t\t\tstr = b + a;\n\t\t\t}",
"{\n\t\t\t\tint sh = Integer.parseInt(s[j + 2]);\n\t\t\t\tString a = str.substring(0, sh);\n\t\t\t\tString b = str.substring(sh);\n\t\t\t\tstr = b + a;\n\t\t\t}",
"int sh = Integer.parseInt(s[j + 2]);",
"sh",
"Integer.parseInt(s[j + 2])",
"Integer.parseInt",
"Integer",
"s[j + 2]",
"s",
"j + 2",
"j",
"2",
"String a = str.substring(0, sh);",
"a",
"str.substring(0, sh)",
"str.substring",
"str",
"0",
"sh",
"String b = str.substring(sh);",
"b",
"str.substring(sh)",
"str.substring",
"str",
"sh",
"str = b + a",
"str",
"b + a",
"b",
"a",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"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\tArrayList<String[]> all = new ArrayList<String[]>();\n\n\t\tString line = \"\";\n\n\t\tint pat = 0;\n\n\t\twhile (true) {\n\t\t\tline = sc.nextLine();\n\t\t\tif (line.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString shuffle = sc.nextLine();\n\t\t\tint shuffle_int = Integer.parseInt(shuffle);\n\n\t\t\tString[] kari = new String[2 + shuffle_int];\n\t\t\tkari[0] = line;\n\t\t\tkari[1] = shuffle;\n\n\t\t\tfor (int j = 0; j < shuffle_int; j++) {\n\t\t\t\tkari[2 + j] = sc.nextLine();\n\t\t\t}\n\t\t\tall.add(kari);\n\t\t\tpat++;\n\t\t}\n\n\t\tfor (int i = 0; i < pat; i++) {\n\t\t\tString[] s = all.get(i);\n\t\t\tString str = s[0];\n\t\t\tint repeat = Integer.parseInt(s[1]);\n\t\t\tfor (int j = 0; j < repeat; j++) {\n\t\t\t\tint sh = Integer.parseInt(s[j + 2]);\n\t\t\t\tString a = str.substring(0, sh);\n\t\t\t\tString b = str.substring(sh);\n\t\t\t\tstr = b + a;\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<String[]> all = new ArrayList<String[]>();\n\n\t\tString line = \"\";\n\n\t\tint pat = 0;\n\n\t\twhile (true) {\n\t\t\tline = sc.nextLine();\n\t\t\tif (line.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString shuffle = sc.nextLine();\n\t\t\tint shuffle_int = Integer.parseInt(shuffle);\n\n\t\t\tString[] kari = new String[2 + shuffle_int];\n\t\t\tkari[0] = line;\n\t\t\tkari[1] = shuffle;\n\n\t\t\tfor (int j = 0; j < shuffle_int; j++) {\n\t\t\t\tkari[2 + j] = sc.nextLine();\n\t\t\t}\n\t\t\tall.add(kari);\n\t\t\tpat++;\n\t\t}\n\n\t\tfor (int i = 0; i < pat; i++) {\n\t\t\tString[] s = all.get(i);\n\t\t\tString str = s[0];\n\t\t\tint repeat = Integer.parseInt(s[1]);\n\t\t\tfor (int j = 0; j < repeat; j++) {\n\t\t\t\tint sh = Integer.parseInt(s[j + 2]);\n\t\t\t\tString a = str.substring(0, sh);\n\t\t\t\tString b = str.substring(sh);\n\t\t\t\tstr = b + a;\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}\n\n\t}\n\n}",
"Main"
]
| import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
ArrayList<String[]> all = new ArrayList<String[]>();
String line = "";
int pat = 0;
while (true) {
line = sc.nextLine();
if (line.equals("-")) {
break;
}
String shuffle = sc.nextLine();
int shuffle_int = Integer.parseInt(shuffle);
String[] kari = new String[2 + shuffle_int];
kari[0] = line;
kari[1] = shuffle;
for (int j = 0; j < shuffle_int; j++) {
kari[2 + j] = sc.nextLine();
}
all.add(kari);
pat++;
}
for (int i = 0; i < pat; i++) {
String[] s = all.get(i);
String str = s[0];
int repeat = Integer.parseInt(s[1]);
for (int j = 0; j < repeat; j++) {
int sh = Integer.parseInt(s[j + 2]);
String a = str.substring(0, sh);
String b = str.substring(sh);
str = b + a;
}
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,
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,
4,
18,
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
],
[
86,
5
],
[
86,
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
],
[
44,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
58,
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
],
[
14,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
8,
80
],
[
80,
81
],
[
81,
82
],
[
6,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
]
| [
"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 String deck = sc.nextLine();\n if (deck.equals(\"-\")) {\n break;\n }\n int m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n int h = sc.nextInt();\n String part1 = deck.substring(h);\n String part2 = deck.substring(0, h);\n deck = part1.concat(part2);\n }\n System.out.println(deck);\n deck = sc.nextLine();\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 String deck = sc.nextLine();\n if (deck.equals(\"-\")) {\n break;\n }\n int m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n int h = sc.nextInt();\n String part1 = deck.substring(h);\n String part2 = deck.substring(0, h);\n deck = part1.concat(part2);\n }\n System.out.println(deck);\n deck = sc.nextLine();\n }\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (true) {\n String deck = sc.nextLine();\n if (deck.equals(\"-\")) {\n break;\n }\n int m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n int h = sc.nextInt();\n String part1 = deck.substring(h);\n String part2 = deck.substring(0, h);\n deck = part1.concat(part2);\n }\n System.out.println(deck);\n deck = sc.nextLine();\n }\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n while (true) {\n String deck = sc.nextLine();\n if (deck.equals(\"-\")) {\n break;\n }\n int m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n int h = sc.nextInt();\n String part1 = deck.substring(h);\n String part2 = deck.substring(0, h);\n deck = part1.concat(part2);\n }\n System.out.println(deck);\n deck = sc.nextLine();\n }\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while (true) {\n String deck = sc.nextLine();\n if (deck.equals(\"-\")) {\n break;\n }\n int m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n int h = sc.nextInt();\n String part1 = deck.substring(h);\n String part2 = deck.substring(0, h);\n deck = part1.concat(part2);\n }\n System.out.println(deck);\n deck = sc.nextLine();\n }",
"true",
"{\n String deck = sc.nextLine();\n if (deck.equals(\"-\")) {\n break;\n }\n int m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n int h = sc.nextInt();\n String part1 = deck.substring(h);\n String part2 = deck.substring(0, h);\n deck = part1.concat(part2);\n }\n System.out.println(deck);\n deck = sc.nextLine();\n }",
"String deck = sc.nextLine();",
"deck",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if (deck.equals(\"-\")) {\n break;\n }",
"deck.equals(\"-\")",
"deck.equals",
"deck",
"\"-\"",
"{\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 part1 = deck.substring(h);\n String part2 = deck.substring(0, h);\n deck = part1.concat(part2);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n int h = sc.nextInt();\n String part1 = deck.substring(h);\n String part2 = deck.substring(0, h);\n deck = part1.concat(part2);\n }",
"{\n int h = sc.nextInt();\n String part1 = deck.substring(h);\n String part2 = deck.substring(0, h);\n deck = part1.concat(part2);\n }",
"int h = sc.nextInt();",
"h",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String part1 = deck.substring(h);",
"part1",
"deck.substring(h)",
"deck.substring",
"deck",
"h",
"String part2 = deck.substring(0, h);",
"part2",
"deck.substring(0, h)",
"deck.substring",
"deck",
"0",
"h",
"deck = part1.concat(part2)",
"deck",
"part1.concat(part2)",
"part1.concat",
"part1",
"part2",
"System.out.println(deck)",
"System.out.println",
"System.out",
"System",
"System.out",
"deck",
"deck = sc.nextLine()",
"deck",
"sc.nextLine()",
"sc.nextLine",
"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 while (true) {\n String deck = sc.nextLine();\n if (deck.equals(\"-\")) {\n break;\n }\n int m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n int h = sc.nextInt();\n String part1 = deck.substring(h);\n String part2 = deck.substring(0, h);\n deck = part1.concat(part2);\n }\n System.out.println(deck);\n deck = sc.nextLine();\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 String deck = sc.nextLine();\n if (deck.equals(\"-\")) {\n break;\n }\n int m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n int h = sc.nextInt();\n String part1 = deck.substring(h);\n String part2 = deck.substring(0, h);\n deck = part1.concat(part2);\n }\n System.out.println(deck);\n deck = sc.nextLine();\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) {
String deck = sc.nextLine();
if (deck.equals("-")) {
break;
}
int m = sc.nextInt();
for (int i = 0; i < m; i++) {
int h = sc.nextInt();
String part1 = deck.substring(h);
String part2 = deck.substring(0, h);
deck = part1.concat(part2);
}
System.out.println(deck);
deck = sc.nextLine();
}
sc.close();
}
}
|
[
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,
17,
13,
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,
4,
18,
13,
17,
13,
4,
18,
4,
18,
13,
13,
17,
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
],
[
94,
8
],
[
94,
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
],
[
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
],
[
65,
66
],
[
64,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
71,
75
],
[
20,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
76,
82
],
[
11,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
89,
90
],
[
9,
91
],
[
91,
92
],
[
0,
93
],
[
93,
94
],
[
93,
95
]
]
| [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t StringBuilder result = new StringBuilder();\n\t while (true) {\n\t\t String line = br.readLine();\n\n\t\t if (\"-\".equals(line)) break;\n\n\t\t int shuffleCount = Integer.parseInt(br.readLine());\n\n\t\t for (int i = 0; i < shuffleCount; i++) {\n\t\t \tint h = Integer.parseInt(br.readLine());\n\t\t \t// shuffle\n\t\t \tline = line.substring(h, line.length()) + line.substring(0, h);\n\n\t\t }\n\t\t result.append(line).append(\"\\n\");\n\t }\n\t System.out.print(result.toString());\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) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t StringBuilder result = new StringBuilder();\n\t while (true) {\n\t\t String line = br.readLine();\n\n\t\t if (\"-\".equals(line)) break;\n\n\t\t int shuffleCount = Integer.parseInt(br.readLine());\n\n\t\t for (int i = 0; i < shuffleCount; i++) {\n\t\t \tint h = Integer.parseInt(br.readLine());\n\t\t \t// shuffle\n\t\t \tline = line.substring(h, line.length()) + line.substring(0, h);\n\n\t\t }\n\t\t result.append(line).append(\"\\n\");\n\t }\n\t System.out.print(result.toString());\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t StringBuilder result = new StringBuilder();\n\t while (true) {\n\t\t String line = br.readLine();\n\n\t\t if (\"-\".equals(line)) break;\n\n\t\t int shuffleCount = Integer.parseInt(br.readLine());\n\n\t\t for (int i = 0; i < shuffleCount; i++) {\n\t\t \tint h = Integer.parseInt(br.readLine());\n\t\t \t// shuffle\n\t\t \tline = line.substring(h, line.length()) + line.substring(0, h);\n\n\t\t }\n\t\t result.append(line).append(\"\\n\");\n\t }\n\t System.out.print(result.toString());\n\t}",
"main",
"{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t StringBuilder result = new StringBuilder();\n\t while (true) {\n\t\t String line = br.readLine();\n\n\t\t if (\"-\".equals(line)) break;\n\n\t\t int shuffleCount = Integer.parseInt(br.readLine());\n\n\t\t for (int i = 0; i < shuffleCount; i++) {\n\t\t \tint h = Integer.parseInt(br.readLine());\n\t\t \t// shuffle\n\t\t \tline = line.substring(h, line.length()) + line.substring(0, h);\n\n\t\t }\n\t\t result.append(line).append(\"\\n\");\n\t }\n\t System.out.print(result.toString());\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder result = new StringBuilder();",
"result",
"new StringBuilder()",
"while (true) {\n\t\t String line = br.readLine();\n\n\t\t if (\"-\".equals(line)) break;\n\n\t\t int shuffleCount = Integer.parseInt(br.readLine());\n\n\t\t for (int i = 0; i < shuffleCount; i++) {\n\t\t \tint h = Integer.parseInt(br.readLine());\n\t\t \t// shuffle\n\t\t \tline = line.substring(h, line.length()) + line.substring(0, h);\n\n\t\t }\n\t\t result.append(line).append(\"\\n\");\n\t }",
"true",
"{\n\t\t String line = br.readLine();\n\n\t\t if (\"-\".equals(line)) break;\n\n\t\t int shuffleCount = Integer.parseInt(br.readLine());\n\n\t\t for (int i = 0; i < shuffleCount; i++) {\n\t\t \tint h = Integer.parseInt(br.readLine());\n\t\t \t// shuffle\n\t\t \tline = line.substring(h, line.length()) + line.substring(0, h);\n\n\t\t }\n\t\t result.append(line).append(\"\\n\");\n\t }",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"if (\"-\".equals(line)) break;",
"\"-\".equals(line)",
"\"-\".equals",
"\"-\"",
"line",
"break;",
"int shuffleCount = Integer.parseInt(br.readLine());",
"shuffleCount",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for (int i = 0; i < shuffleCount; i++) {\n\t\t \tint h = Integer.parseInt(br.readLine());\n\t\t \t// shuffle\n\t\t \tline = line.substring(h, line.length()) + line.substring(0, h);\n\n\t\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < shuffleCount",
"i",
"shuffleCount",
"i++",
"i++",
"i",
"{\n\t\t \tint h = Integer.parseInt(br.readLine());\n\t\t \t// shuffle\n\t\t \tline = line.substring(h, line.length()) + line.substring(0, h);\n\n\t\t }",
"{\n\t\t \tint h = Integer.parseInt(br.readLine());\n\t\t \t// shuffle\n\t\t \tline = line.substring(h, line.length()) + line.substring(0, h);\n\n\t\t }",
"int h = Integer.parseInt(br.readLine());",
"h",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"line = line.substring(h, line.length()) + line.substring(0, h)",
"line",
"line.substring(h, line.length()) + line.substring(0, h)",
"line.substring(h, line.length())",
"line.substring",
"line",
"h",
"line.length()",
"line.length",
"line",
"line.substring(0, h)",
"line.substring",
"line",
"0",
"h",
"result.append(line).append(\"\\n\")",
"result.append(line).append",
"result.append(line)",
"result.append",
"result",
"line",
"\"\\n\"",
"System.out.print(result.toString())",
"System.out.print",
"System.out",
"System",
"System.out",
"result.toString()",
"result.toString",
"result",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t StringBuilder result = new StringBuilder();\n\t while (true) {\n\t\t String line = br.readLine();\n\n\t\t if (\"-\".equals(line)) break;\n\n\t\t int shuffleCount = Integer.parseInt(br.readLine());\n\n\t\t for (int i = 0; i < shuffleCount; i++) {\n\t\t \tint h = Integer.parseInt(br.readLine());\n\t\t \t// shuffle\n\t\t \tline = line.substring(h, line.length()) + line.substring(0, h);\n\n\t\t }\n\t\t result.append(line).append(\"\\n\");\n\t }\n\t System.out.print(result.toString());\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t StringBuilder result = new StringBuilder();\n\t while (true) {\n\t\t String line = br.readLine();\n\n\t\t if (\"-\".equals(line)) break;\n\n\t\t int shuffleCount = Integer.parseInt(br.readLine());\n\n\t\t for (int i = 0; i < shuffleCount; i++) {\n\t\t \tint h = Integer.parseInt(br.readLine());\n\t\t \t// shuffle\n\t\t \tline = line.substring(h, line.length()) + line.substring(0, h);\n\n\t\t }\n\t\t result.append(line).append(\"\\n\");\n\t }\n\t System.out.print(result.toString());\n\t}\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));
StringBuilder result = new StringBuilder();
while (true) {
String line = br.readLine();
if ("-".equals(line)) break;
int shuffleCount = Integer.parseInt(br.readLine());
for (int i = 0; i < shuffleCount; i++) {
int h = Integer.parseInt(br.readLine());
// shuffle
line = line.substring(h, line.length()) + line.substring(0, h);
}
result.append(line).append("\n");
}
System.out.print(result.toString());
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
20,
41,
13,
42,
40,
4,
18,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
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,
4,
13,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
17,
18,
13,
13,
4,
18,
13,
17,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
136,
11
],
[
136,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
15,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
30,
37
],
[
28,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
45,
46
],
[
38,
47
],
[
47,
48
],
[
47,
49
],
[
38,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
51,
62
],
[
63,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
72,
73
],
[
38,
74
],
[
74,
75
],
[
74,
76
],
[
74,
77
],
[
74,
78
],
[
12,
79
],
[
79,
80
],
[
136,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
83,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
91,
99
],
[
99,
100
],
[
100,
101
],
[
91,
102
],
[
103,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
107,
111
],
[
111,
112
],
[
111,
113
],
[
103,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
114,
118
],
[
118,
119
],
[
118,
120
],
[
83,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
126,
127
],
[
127,
128
],
[
81,
129
],
[
129,
130
],
[
81,
131
],
[
131,
132
],
[
81,
133
],
[
133,
134
],
[
0,
135
],
[
135,
136
],
[
135,
137
]
]
| [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\n\npublic class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\t\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str;\n\t\t\twhile(!((str = br.readLine()).equals(\"-\"))){\n\t\t\t\tint M = Integer.parseInt(br.readLine());\n\t\t\t\tint[] arrH = new int[M];\n\t\t\t\tfor(int i = 0; i< M ; i++)\n\t\t\t\t{\n\t\t\t\t\tarrH[i] = Integer.parseInt(br.readLine());\n\t\t\t\t}\n\t\t\t\tshuff(str,arrH,M);\n\t\t\t}\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\tpublic static void shuff(String s , int[] h , int l)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(s);\n\t\tfor(int i = 0 ; i < l ; i++)\n\t\t{\n\t\t\tsb.append(sb.substring(0,h[i]));\n\t\t\tsb.delete(0,h[i]);\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\t\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str;\n\t\t\twhile(!((str = br.readLine()).equals(\"-\"))){\n\t\t\t\tint M = Integer.parseInt(br.readLine());\n\t\t\t\tint[] arrH = new int[M];\n\t\t\t\tfor(int i = 0; i< M ; i++)\n\t\t\t\t{\n\t\t\t\t\tarrH[i] = Integer.parseInt(br.readLine());\n\t\t\t\t}\n\t\t\t\tshuff(str,arrH,M);\n\t\t\t}\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\tpublic static void shuff(String s , int[] h , int l)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(s);\n\t\tfor(int i = 0 ; i < l ; i++)\n\t\t{\n\t\t\tsb.append(sb.substring(0,h[i]));\n\t\t\tsb.delete(0,h[i]);\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\t\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str;\n\t\t\twhile(!((str = br.readLine()).equals(\"-\"))){\n\t\t\t\tint M = Integer.parseInt(br.readLine());\n\t\t\t\tint[] arrH = new int[M];\n\t\t\t\tfor(int i = 0; i< M ; i++)\n\t\t\t\t{\n\t\t\t\t\tarrH[i] = Integer.parseInt(br.readLine());\n\t\t\t\t}\n\t\t\t\tshuff(str,arrH,M);\n\t\t\t}\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"main",
"{\n\t\t\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str;\n\t\t\twhile(!((str = br.readLine()).equals(\"-\"))){\n\t\t\t\tint M = Integer.parseInt(br.readLine());\n\t\t\t\tint[] arrH = new int[M];\n\t\t\t\tfor(int i = 0; i< M ; i++)\n\t\t\t\t{\n\t\t\t\t\tarrH[i] = Integer.parseInt(br.readLine());\n\t\t\t\t}\n\t\t\t\tshuff(str,arrH,M);\n\t\t\t}\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"try{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str;\n\t\t\twhile(!((str = br.readLine()).equals(\"-\"))){\n\t\t\t\tint M = Integer.parseInt(br.readLine());\n\t\t\t\tint[] arrH = new int[M];\n\t\t\t\tfor(int i = 0; i< M ; i++)\n\t\t\t\t{\n\t\t\t\t\tarrH[i] = Integer.parseInt(br.readLine());\n\t\t\t\t}\n\t\t\t\tshuff(str,arrH,M);\n\t\t\t}\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}",
"catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}",
"IOException e",
"{\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str;\n\t\t\twhile(!((str = br.readLine()).equals(\"-\"))){\n\t\t\t\tint M = Integer.parseInt(br.readLine());\n\t\t\t\tint[] arrH = new int[M];\n\t\t\t\tfor(int i = 0; i< M ; i++)\n\t\t\t\t{\n\t\t\t\t\tarrH[i] = Integer.parseInt(br.readLine());\n\t\t\t\t}\n\t\t\t\tshuff(str,arrH,M);\n\t\t\t}\n\t\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str;",
"str",
"while(!((str = br.readLine()).equals(\"-\"))){\n\t\t\t\tint M = Integer.parseInt(br.readLine());\n\t\t\t\tint[] arrH = new int[M];\n\t\t\t\tfor(int i = 0; i< M ; i++)\n\t\t\t\t{\n\t\t\t\t\tarrH[i] = Integer.parseInt(br.readLine());\n\t\t\t\t}\n\t\t\t\tshuff(str,arrH,M);\n\t\t\t}",
"!((str = br.readLine()).equals(\"-\"))",
"((str = br.readLine()).equals(\"-\"))",
"(str = br.readLine()).equals",
"(str = br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"\"-\"",
"{\n\t\t\t\tint M = Integer.parseInt(br.readLine());\n\t\t\t\tint[] arrH = new int[M];\n\t\t\t\tfor(int i = 0; i< M ; i++)\n\t\t\t\t{\n\t\t\t\t\tarrH[i] = Integer.parseInt(br.readLine());\n\t\t\t\t}\n\t\t\t\tshuff(str,arrH,M);\n\t\t\t}",
"int M = Integer.parseInt(br.readLine());",
"M",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int[] arrH = new int[M];",
"arrH",
"new int[M]",
"M",
"for(int i = 0; i< M ; i++)\n\t\t\t\t{\n\t\t\t\t\tarrH[i] = Integer.parseInt(br.readLine());\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\tarrH[i] = Integer.parseInt(br.readLine());\n\t\t\t\t}",
"{\n\t\t\t\t\tarrH[i] = Integer.parseInt(br.readLine());\n\t\t\t\t}",
"arrH[i] = Integer.parseInt(br.readLine())",
"arrH[i]",
"arrH",
"i",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"shuff(str,arrH,M)",
"shuff",
"str",
"arrH",
"M",
"String[] args",
"args",
"public static void shuff(String s , int[] h , int l)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(s);\n\t\tfor(int i = 0 ; i < l ; i++)\n\t\t{\n\t\t\tsb.append(sb.substring(0,h[i]));\n\t\t\tsb.delete(0,h[i]);\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}",
"shuff",
"{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(s);\n\t\tfor(int i = 0 ; i < l ; i++)\n\t\t{\n\t\t\tsb.append(sb.substring(0,h[i]));\n\t\t\tsb.delete(0,h[i]);\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"sb.append(s)",
"sb.append",
"sb",
"s",
"for(int i = 0 ; i < l ; i++)\n\t\t{\n\t\t\tsb.append(sb.substring(0,h[i]));\n\t\t\tsb.delete(0,h[i]);\n\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < l",
"i",
"l",
"i++",
"i++",
"i",
"{\n\t\t\tsb.append(sb.substring(0,h[i]));\n\t\t\tsb.delete(0,h[i]);\n\t\t}",
"{\n\t\t\tsb.append(sb.substring(0,h[i]));\n\t\t\tsb.delete(0,h[i]);\n\t\t}",
"sb.append(sb.substring(0,h[i]))",
"sb.append",
"sb",
"sb.substring(0,h[i])",
"sb.substring",
"sb",
"0",
"h[i]",
"h",
"i",
"sb.delete(0,h[i])",
"sb.delete",
"sb",
"0",
"h[i]",
"h",
"i",
"System.out.println(sb.toString())",
"System.out.println",
"System.out",
"System",
"System.out",
"sb.toString()",
"sb.toString",
"sb",
"String s",
"s",
"int[] h",
"h",
"int l",
"l",
"public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\t\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str;\n\t\t\twhile(!((str = br.readLine()).equals(\"-\"))){\n\t\t\t\tint M = Integer.parseInt(br.readLine());\n\t\t\t\tint[] arrH = new int[M];\n\t\t\t\tfor(int i = 0; i< M ; i++)\n\t\t\t\t{\n\t\t\t\t\tarrH[i] = Integer.parseInt(br.readLine());\n\t\t\t\t}\n\t\t\t\tshuff(str,arrH,M);\n\t\t\t}\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\tpublic static void shuff(String s , int[] h , int l)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(s);\n\t\tfor(int i = 0 ; i < l ; i++)\n\t\t{\n\t\t\tsb.append(sb.substring(0,h[i]));\n\t\t\tsb.delete(0,h[i]);\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}\n}",
"public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\t\n\t\ttry{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString str;\n\t\t\twhile(!((str = br.readLine()).equals(\"-\"))){\n\t\t\t\tint M = Integer.parseInt(br.readLine());\n\t\t\t\tint[] arrH = new int[M];\n\t\t\t\tfor(int i = 0; i< M ; i++)\n\t\t\t\t{\n\t\t\t\t\tarrH[i] = Integer.parseInt(br.readLine());\n\t\t\t\t}\n\t\t\t\tshuff(str,arrH,M);\n\t\t\t}\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\tpublic static void shuff(String s , int[] h , int l)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(s);\n\t\tfor(int i = 0 ; i < l ; i++)\n\t\t{\n\t\t\tsb.append(sb.substring(0,h[i]));\n\t\t\tsb.delete(0,h[i]);\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class Main
{
public static void main(String[] args)
{
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str;
while(!((str = br.readLine()).equals("-"))){
int M = Integer.parseInt(br.readLine());
int[] arrH = new int[M];
for(int i = 0; i< M ; i++)
{
arrH[i] = Integer.parseInt(br.readLine());
}
shuff(str,arrH,M);
}
}catch(IOException e){
e.printStackTrace();
}
}
public static void shuff(String s , int[] h , int l)
{
StringBuilder sb = new StringBuilder();
sb.append(s);
for(int i = 0 ; i < l ; i++)
{
sb.append(sb.substring(0,h[i]));
sb.delete(0,h[i]);
}
System.out.println(sb.toString());
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
0,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
17,
41,
13,
20,
17,
17,
41,
13,
20,
17,
11,
1,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
4,
18,
18,
13,
13,
17,
30,
3,
0,
18,
13,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
40,
13,
40,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
18,
13,
13,
17,
18,
18,
13,
13,
13,
41,
13,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
0,
18,
13,
13,
2,
13,
13,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
162,
5
],
[
162,
6
],
[
6,
7
],
[
162,
8
],
[
8,
9
],
[
8,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
10,
17
],
[
17,
18
],
[
17,
19
],
[
10,
20
],
[
20,
21
],
[
20,
22
],
[
10,
23
],
[
23,
24
],
[
23,
25
],
[
10,
27
],
[
27,
28
],
[
27,
29
],
[
10,
32
],
[
32,
33
],
[
32,
34
],
[
10,
36
],
[
36,
37
],
[
36,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
47,
54
],
[
54,
55
],
[
39,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
39,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
63,
73
],
[
73,
74
],
[
74,
75
],
[
63,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
78,
84
],
[
84,
85
],
[
85,
86
],
[
39,
87
],
[
87,
88
],
[
39,
89
],
[
89,
90
],
[
10,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
91,
99
],
[
99,
100
],
[
100,
101
],
[
91,
102
],
[
103,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
111,
113
],
[
104,
114
],
[
114,
115
],
[
115,
116
],
[
104,
117
],
[
118,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
121,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
118,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
118,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
148,
150
],
[
103,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
156,
157
],
[
156,
158
],
[
8,
159
],
[
159,
160
],
[
0,
161
],
[
161,
162
],
[
161,
163
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static Scanner sc;\n\tpublic static void main(String[] args) {\n\t\tsc= new Scanner(System.in);\n\t\tint i=0,j=0;\n\t\tint count=0;\n\t\tint m[]=new int[300];\n\t\tint h[][]=new int[10][300];\n\t\tString card[] =new String[300];\n\t\tfor(;;) {\n\t\t\tcard[i]=sc.next();\n\t\t\tif(card[i].equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tm[i]=sc.nextInt();\n\t\t\tfor(j=0;j<m[i];j++) {\n\t\t\t\th[i][j]=sc.nextInt();\n\t\t\t}\n\t\t\ti++;\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t\n\t\tfor(i=0;i<count;i++) {\n\t\t\tfor(j=0;j<m[i];j++) {\n\t\t\tString s1 = card[i].substring(0,h[i][j]);\n\t\t\tString s2 = card[i].substring(h[i][j]);\n\t\t\tcard[i]=s2+s1;\n\t\t\t}\n\t\t\tSystem.out.println(card[i]);\n\t\t}\t\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static Scanner sc;\n\tpublic static void main(String[] args) {\n\t\tsc= new Scanner(System.in);\n\t\tint i=0,j=0;\n\t\tint count=0;\n\t\tint m[]=new int[300];\n\t\tint h[][]=new int[10][300];\n\t\tString card[] =new String[300];\n\t\tfor(;;) {\n\t\t\tcard[i]=sc.next();\n\t\t\tif(card[i].equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tm[i]=sc.nextInt();\n\t\t\tfor(j=0;j<m[i];j++) {\n\t\t\t\th[i][j]=sc.nextInt();\n\t\t\t}\n\t\t\ti++;\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t\n\t\tfor(i=0;i<count;i++) {\n\t\t\tfor(j=0;j<m[i];j++) {\n\t\t\tString s1 = card[i].substring(0,h[i][j]);\n\t\t\tString s2 = card[i].substring(h[i][j]);\n\t\t\tcard[i]=s2+s1;\n\t\t\t}\n\t\t\tSystem.out.println(card[i]);\n\t\t}\t\n\t}\n}",
"Main",
"public static Scanner sc;",
"sc",
"public static void main(String[] args) {\n\t\tsc= new Scanner(System.in);\n\t\tint i=0,j=0;\n\t\tint count=0;\n\t\tint m[]=new int[300];\n\t\tint h[][]=new int[10][300];\n\t\tString card[] =new String[300];\n\t\tfor(;;) {\n\t\t\tcard[i]=sc.next();\n\t\t\tif(card[i].equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tm[i]=sc.nextInt();\n\t\t\tfor(j=0;j<m[i];j++) {\n\t\t\t\th[i][j]=sc.nextInt();\n\t\t\t}\n\t\t\ti++;\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t\n\t\tfor(i=0;i<count;i++) {\n\t\t\tfor(j=0;j<m[i];j++) {\n\t\t\tString s1 = card[i].substring(0,h[i][j]);\n\t\t\tString s2 = card[i].substring(h[i][j]);\n\t\t\tcard[i]=s2+s1;\n\t\t\t}\n\t\t\tSystem.out.println(card[i]);\n\t\t}\t\n\t}",
"main",
"{\n\t\tsc= new Scanner(System.in);\n\t\tint i=0,j=0;\n\t\tint count=0;\n\t\tint m[]=new int[300];\n\t\tint h[][]=new int[10][300];\n\t\tString card[] =new String[300];\n\t\tfor(;;) {\n\t\t\tcard[i]=sc.next();\n\t\t\tif(card[i].equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tm[i]=sc.nextInt();\n\t\t\tfor(j=0;j<m[i];j++) {\n\t\t\t\th[i][j]=sc.nextInt();\n\t\t\t}\n\t\t\ti++;\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t\n\t\tfor(i=0;i<count;i++) {\n\t\t\tfor(j=0;j<m[i];j++) {\n\t\t\tString s1 = card[i].substring(0,h[i][j]);\n\t\t\tString s2 = card[i].substring(h[i][j]);\n\t\t\tcard[i]=s2+s1;\n\t\t\t}\n\t\t\tSystem.out.println(card[i]);\n\t\t}\t\n\t}",
"sc= new Scanner(System.in)",
"sc",
"new Scanner(System.in)",
"int i=0",
"i",
"0",
"j=0;",
"j",
"0",
"int count=0;",
"count",
"0",
"int m[]=new int[300];",
"m",
"new int[300]",
"300",
"int h[][]=new int[10][300];",
"h",
"new int[10][300]",
"10",
"300",
"String card[] =new String[300];",
"card",
"new String[300]",
"300",
"for(;;) {\n\t\t\tcard[i]=sc.next();\n\t\t\tif(card[i].equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tm[i]=sc.nextInt();\n\t\t\tfor(j=0;j<m[i];j++) {\n\t\t\t\th[i][j]=sc.nextInt();\n\t\t\t}\n\t\t\ti++;\n\t\t\tcount++;\n\t\t}",
";",
"{\n\t\t\tcard[i]=sc.next();\n\t\t\tif(card[i].equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tm[i]=sc.nextInt();\n\t\t\tfor(j=0;j<m[i];j++) {\n\t\t\t\th[i][j]=sc.nextInt();\n\t\t\t}\n\t\t\ti++;\n\t\t\tcount++;\n\t\t}",
"{\n\t\t\tcard[i]=sc.next();\n\t\t\tif(card[i].equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tm[i]=sc.nextInt();\n\t\t\tfor(j=0;j<m[i];j++) {\n\t\t\t\th[i][j]=sc.nextInt();\n\t\t\t}\n\t\t\ti++;\n\t\t\tcount++;\n\t\t}",
"card[i]=sc.next()",
"card[i]",
"card",
"i",
"sc.next()",
"sc.next",
"sc",
"if(card[i].equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}",
"card[i].equals(\"-\")",
"card[i].equals",
"card[i]",
"card",
"i",
"\"-\"",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"m[i]=sc.nextInt()",
"m[i]",
"m",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(j=0;j<m[i];j++) {\n\t\t\t\th[i][j]=sc.nextInt();\n\t\t\t}",
"j=0;",
"j=0",
"j",
"0",
"j<m[i]",
"j",
"m[i]",
"m",
"i",
"j++",
"j++",
"j",
"{\n\t\t\t\th[i][j]=sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\th[i][j]=sc.nextInt();\n\t\t\t}",
"h[i][j]=sc.nextInt()",
"h[i][j]",
"h[i]",
"h",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"i++",
"i",
"count++",
"count",
"for(i=0;i<count;i++) {\n\t\t\tfor(j=0;j<m[i];j++) {\n\t\t\tString s1 = card[i].substring(0,h[i][j]);\n\t\t\tString s2 = card[i].substring(h[i][j]);\n\t\t\tcard[i]=s2+s1;\n\t\t\t}\n\t\t\tSystem.out.println(card[i]);\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<count",
"i",
"count",
"i++",
"i++",
"i",
"{\n\t\t\tfor(j=0;j<m[i];j++) {\n\t\t\tString s1 = card[i].substring(0,h[i][j]);\n\t\t\tString s2 = card[i].substring(h[i][j]);\n\t\t\tcard[i]=s2+s1;\n\t\t\t}\n\t\t\tSystem.out.println(card[i]);\n\t\t}",
"{\n\t\t\tfor(j=0;j<m[i];j++) {\n\t\t\tString s1 = card[i].substring(0,h[i][j]);\n\t\t\tString s2 = card[i].substring(h[i][j]);\n\t\t\tcard[i]=s2+s1;\n\t\t\t}\n\t\t\tSystem.out.println(card[i]);\n\t\t}",
"for(j=0;j<m[i];j++) {\n\t\t\tString s1 = card[i].substring(0,h[i][j]);\n\t\t\tString s2 = card[i].substring(h[i][j]);\n\t\t\tcard[i]=s2+s1;\n\t\t\t}",
"j=0;",
"j=0",
"j",
"0",
"j<m[i]",
"j",
"m[i]",
"m",
"i",
"j++",
"j++",
"j",
"{\n\t\t\tString s1 = card[i].substring(0,h[i][j]);\n\t\t\tString s2 = card[i].substring(h[i][j]);\n\t\t\tcard[i]=s2+s1;\n\t\t\t}",
"{\n\t\t\tString s1 = card[i].substring(0,h[i][j]);\n\t\t\tString s2 = card[i].substring(h[i][j]);\n\t\t\tcard[i]=s2+s1;\n\t\t\t}",
"String s1 = card[i].substring(0,h[i][j]);",
"s1",
"card[i].substring(0,h[i][j])",
"card[i].substring",
"card[i]",
"card",
"i",
"0",
"h[i][j]",
"h[i]",
"h",
"i",
"j",
"String s2 = card[i].substring(h[i][j]);",
"s2",
"card[i].substring(h[i][j])",
"card[i].substring",
"card[i]",
"card",
"i",
"h[i][j]",
"h[i]",
"h",
"i",
"j",
"card[i]=s2+s1",
"card[i]",
"card",
"i",
"s2+s1",
"s2",
"s1",
"System.out.println(card[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"card[i]",
"card",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static Scanner sc;\n\tpublic static void main(String[] args) {\n\t\tsc= new Scanner(System.in);\n\t\tint i=0,j=0;\n\t\tint count=0;\n\t\tint m[]=new int[300];\n\t\tint h[][]=new int[10][300];\n\t\tString card[] =new String[300];\n\t\tfor(;;) {\n\t\t\tcard[i]=sc.next();\n\t\t\tif(card[i].equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tm[i]=sc.nextInt();\n\t\t\tfor(j=0;j<m[i];j++) {\n\t\t\t\th[i][j]=sc.nextInt();\n\t\t\t}\n\t\t\ti++;\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t\n\t\tfor(i=0;i<count;i++) {\n\t\t\tfor(j=0;j<m[i];j++) {\n\t\t\tString s1 = card[i].substring(0,h[i][j]);\n\t\t\tString s2 = card[i].substring(h[i][j]);\n\t\t\tcard[i]=s2+s1;\n\t\t\t}\n\t\t\tSystem.out.println(card[i]);\n\t\t}\t\n\t}\n}",
"public class Main {\n\tpublic static Scanner sc;\n\tpublic static void main(String[] args) {\n\t\tsc= new Scanner(System.in);\n\t\tint i=0,j=0;\n\t\tint count=0;\n\t\tint m[]=new int[300];\n\t\tint h[][]=new int[10][300];\n\t\tString card[] =new String[300];\n\t\tfor(;;) {\n\t\t\tcard[i]=sc.next();\n\t\t\tif(card[i].equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tm[i]=sc.nextInt();\n\t\t\tfor(j=0;j<m[i];j++) {\n\t\t\t\th[i][j]=sc.nextInt();\n\t\t\t}\n\t\t\ti++;\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t\n\t\tfor(i=0;i<count;i++) {\n\t\t\tfor(j=0;j<m[i];j++) {\n\t\t\tString s1 = card[i].substring(0,h[i][j]);\n\t\t\tString s2 = card[i].substring(h[i][j]);\n\t\t\tcard[i]=s2+s1;\n\t\t\t}\n\t\t\tSystem.out.println(card[i]);\n\t\t}\t\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static Scanner sc;
public static void main(String[] args) {
sc= new Scanner(System.in);
int i=0,j=0;
int count=0;
int m[]=new int[300];
int h[][]=new int[10][300];
String card[] =new String[300];
for(;;) {
card[i]=sc.next();
if(card[i].equals("-")) {
break;
}
m[i]=sc.nextInt();
for(j=0;j<m[i];j++) {
h[i][j]=sc.nextInt();
}
i++;
count++;
}
for(i=0;i<count;i++) {
for(j=0;j<m[i];j++) {
String s1 = card[i].substring(0,h[i][j]);
String s2 = card[i].substring(h[i][j]);
card[i]=s2+s1;
}
System.out.println(card[i]);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
20,
42,
40,
4,
18,
0,
13,
4,
18,
13,
17,
30,
4,
18,
13,
13,
0,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
13,
23,
13,
6,
13,
41,
13,
12,
13,
30,
12,
13,
30,
0,
18,
36,
13,
13,
23,
13,
12,
13,
30,
0,
18,
36,
13,
2,
4,
18,
18,
36,
13,
13,
4,
18,
18,
36,
13,
4,
18,
18,
36,
13,
17,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
18,
36,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
122,
5
],
[
122,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
23,
30
],
[
21,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
31,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
31,
60
],
[
60,
61
],
[
61,
62
],
[
6,
63
],
[
63,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
65,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
72,
80
],
[
80,
81
],
[
65,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
90,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
89,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
101,
107
],
[
82,
108
],
[
108,
109
],
[
65,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
0,
121
],
[
121,
122
],
[
121,
123
]
]
| [
"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 i;\n Deck d=new Deck();\n while(!(s=sc.next()).equals(\"-\")){\n d.setDeck(s);\n m=sc.nextInt();\n for(i=0;i<m;i++){\n d.shuffle(sc.nextInt());\n }\n d.printDeck();\n }\n }\n}\n\nclass Deck{\n private String str;\n Deck(){\n }\n void setDeck(String s){\n this.str=s;\n }\n void shuffle(int h){\n this.str=this.str.substring(h,this.str.length())+this.str.substring(0,h);\n }\n void printDeck(){\n System.out.println(this.str);\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 i;\n Deck d=new Deck();\n while(!(s=sc.next()).equals(\"-\")){\n d.setDeck(s);\n m=sc.nextInt();\n for(i=0;i<m;i++){\n d.shuffle(sc.nextInt());\n }\n d.printDeck();\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 i;\n Deck d=new Deck();\n while(!(s=sc.next()).equals(\"-\")){\n d.setDeck(s);\n m=sc.nextInt();\n for(i=0;i<m;i++){\n d.shuffle(sc.nextInt());\n }\n d.printDeck();\n }\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n String s;\n int m;\n int i;\n Deck d=new Deck();\n while(!(s=sc.next()).equals(\"-\")){\n d.setDeck(s);\n m=sc.nextInt();\n for(i=0;i<m;i++){\n d.shuffle(sc.nextInt());\n }\n d.printDeck();\n }\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s;",
"s",
"int m;",
"m",
"int i;",
"i",
"Deck d=new Deck();",
"d",
"new Deck()",
"while(!(s=sc.next()).equals(\"-\")){\n d.setDeck(s);\n m=sc.nextInt();\n for(i=0;i<m;i++){\n d.shuffle(sc.nextInt());\n }\n d.printDeck();\n }",
"!(s=sc.next()).equals(\"-\")",
"(s=sc.next()).equals(\"-\")",
"(s=sc.next()).equals",
"(s=sc.next())",
"s",
"sc.next()",
"sc.next",
"sc",
"\"-\"",
"{\n d.setDeck(s);\n m=sc.nextInt();\n for(i=0;i<m;i++){\n d.shuffle(sc.nextInt());\n }\n d.printDeck();\n }",
"d.setDeck(s)",
"d.setDeck",
"d",
"s",
"m=sc.nextInt()",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(i=0;i<m;i++){\n d.shuffle(sc.nextInt());\n }",
"i=0;",
"i=0",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n d.shuffle(sc.nextInt());\n }",
"{\n d.shuffle(sc.nextInt());\n }",
"d.shuffle(sc.nextInt())",
"d.shuffle",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"d.printDeck()",
"d.printDeck",
"d",
"String[] args",
"args",
"class Deck{\n private String str;\n Deck(){\n }\n void setDeck(String s){\n this.str=s;\n }\n void shuffle(int h){\n this.str=this.str.substring(h,this.str.length())+this.str.substring(0,h);\n }\n void printDeck(){\n System.out.println(this.str);\n }\n}",
"Deck",
"private String str;",
"str",
"Deck(){\n }",
"Deck",
"{\n }",
"void setDeck(String s){\n this.str=s;\n }",
"setDeck",
"{\n this.str=s;\n }",
"this.str=s",
"this.str",
"this",
"this.str",
"s",
"String s",
"s",
"void shuffle(int h){\n this.str=this.str.substring(h,this.str.length())+this.str.substring(0,h);\n }",
"shuffle",
"{\n this.str=this.str.substring(h,this.str.length())+this.str.substring(0,h);\n }",
"this.str=this.str.substring(h,this.str.length())+this.str.substring(0,h)",
"this.str",
"this",
"this.str",
"this.str.substring(h,this.str.length())+this.str.substring(0,h)",
"this.str.substring(h,this.str.length())",
"this.str.substring",
"this.str",
"this",
"this.str",
"h",
"this.str.length()",
"this.str.length",
"this.str",
"this",
"this.str",
"this.str.substring(0,h)",
"this.str.substring",
"this.str",
"this",
"this.str",
"0",
"h",
"int h",
"h",
"void printDeck(){\n System.out.println(this.str);\n }",
"printDeck",
"{\n System.out.println(this.str);\n }",
"System.out.println(this.str)",
"System.out.println",
"System.out",
"System",
"System.out",
"this.str",
"this",
"this.str",
"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 i;\n Deck d=new Deck();\n while(!(s=sc.next()).equals(\"-\")){\n d.setDeck(s);\n m=sc.nextInt();\n for(i=0;i<m;i++){\n d.shuffle(sc.nextInt());\n }\n d.printDeck();\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 i;\n Deck d=new Deck();\n while(!(s=sc.next()).equals(\"-\")){\n d.setDeck(s);\n m=sc.nextInt();\n for(i=0;i<m;i++){\n d.shuffle(sc.nextInt());\n }\n d.printDeck();\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 i;
Deck d=new Deck();
while(!(s=sc.next()).equals("-")){
d.setDeck(s);
m=sc.nextInt();
for(i=0;i<m;i++){
d.shuffle(sc.nextInt());
}
d.printDeck();
}
}
}
class Deck{
private String str;
Deck(){
}
void setDeck(String s){
this.str=s;
}
void shuffle(int h){
this.str=this.str.substring(h,this.str.length())+this.str.substring(0,h);
}
void printDeck(){
System.out.println(this.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,
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,
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
],
[
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
],
[
43,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
14,
67
],
[
67,
68
],
[
68,
69
],
[
14,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
6,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner input=new Scanner(System.in);\n\t\twhile(true)\n\t\t{\n\t\t\tString word=input.nextLine();\n\t\t\tif(word.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tint wrapTime=input.nextInt();\n\t\t\tfor(int i=0;i<wrapTime;i++)\n\t\t\t{\n\t\t\t\tint index=input.nextInt();\n\t\t\t\tString move=word.substring(0,index);\n\t\t\t\tString left=word.substring(index);\n\t\t\t\tword=left+move;\n\t\t\t\t\n\t\t\t}\n\t\t\tinput.nextLine();\n\t\t\tSystem.out.println(word);\n\t\t}\n\t}\n\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner input=new Scanner(System.in);\n\t\twhile(true)\n\t\t{\n\t\t\tString word=input.nextLine();\n\t\t\tif(word.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tint wrapTime=input.nextInt();\n\t\t\tfor(int i=0;i<wrapTime;i++)\n\t\t\t{\n\t\t\t\tint index=input.nextInt();\n\t\t\t\tString move=word.substring(0,index);\n\t\t\t\tString left=word.substring(index);\n\t\t\t\tword=left+move;\n\t\t\t\t\n\t\t\t}\n\t\t\tinput.nextLine();\n\t\t\tSystem.out.println(word);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner input=new Scanner(System.in);\n\t\twhile(true)\n\t\t{\n\t\t\tString word=input.nextLine();\n\t\t\tif(word.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tint wrapTime=input.nextInt();\n\t\t\tfor(int i=0;i<wrapTime;i++)\n\t\t\t{\n\t\t\t\tint index=input.nextInt();\n\t\t\t\tString move=word.substring(0,index);\n\t\t\t\tString left=word.substring(index);\n\t\t\t\tword=left+move;\n\t\t\t\t\n\t\t\t}\n\t\t\tinput.nextLine();\n\t\t\tSystem.out.println(word);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner input=new Scanner(System.in);\n\t\twhile(true)\n\t\t{\n\t\t\tString word=input.nextLine();\n\t\t\tif(word.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tint wrapTime=input.nextInt();\n\t\t\tfor(int i=0;i<wrapTime;i++)\n\t\t\t{\n\t\t\t\tint index=input.nextInt();\n\t\t\t\tString move=word.substring(0,index);\n\t\t\t\tString left=word.substring(index);\n\t\t\t\tword=left+move;\n\t\t\t\t\n\t\t\t}\n\t\t\tinput.nextLine();\n\t\t\tSystem.out.println(word);\n\t\t}\n\t}",
"Scanner input=new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"while(true)\n\t\t{\n\t\t\tString word=input.nextLine();\n\t\t\tif(word.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tint wrapTime=input.nextInt();\n\t\t\tfor(int i=0;i<wrapTime;i++)\n\t\t\t{\n\t\t\t\tint index=input.nextInt();\n\t\t\t\tString move=word.substring(0,index);\n\t\t\t\tString left=word.substring(index);\n\t\t\t\tword=left+move;\n\t\t\t\t\n\t\t\t}\n\t\t\tinput.nextLine();\n\t\t\tSystem.out.println(word);\n\t\t}",
"true",
"{\n\t\t\tString word=input.nextLine();\n\t\t\tif(word.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tint wrapTime=input.nextInt();\n\t\t\tfor(int i=0;i<wrapTime;i++)\n\t\t\t{\n\t\t\t\tint index=input.nextInt();\n\t\t\t\tString move=word.substring(0,index);\n\t\t\t\tString left=word.substring(index);\n\t\t\t\tword=left+move;\n\t\t\t\t\n\t\t\t}\n\t\t\tinput.nextLine();\n\t\t\tSystem.out.println(word);\n\t\t}",
"String word=input.nextLine();",
"word",
"input.nextLine()",
"input.nextLine",
"input",
"if(word.equals(\"-\"))\n\t\t\t\tbreak;",
"word.equals(\"-\")",
"word.equals",
"word",
"\"-\"",
"break;",
"int wrapTime=input.nextInt();",
"wrapTime",
"input.nextInt()",
"input.nextInt",
"input",
"for(int i=0;i<wrapTime;i++)\n\t\t\t{\n\t\t\t\tint index=input.nextInt();\n\t\t\t\tString move=word.substring(0,index);\n\t\t\t\tString left=word.substring(index);\n\t\t\t\tword=left+move;\n\t\t\t\t\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<wrapTime",
"i",
"wrapTime",
"i++",
"i++",
"i",
"{\n\t\t\t\tint index=input.nextInt();\n\t\t\t\tString move=word.substring(0,index);\n\t\t\t\tString left=word.substring(index);\n\t\t\t\tword=left+move;\n\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\tint index=input.nextInt();\n\t\t\t\tString move=word.substring(0,index);\n\t\t\t\tString left=word.substring(index);\n\t\t\t\tword=left+move;\n\t\t\t\t\n\t\t\t}",
"int index=input.nextInt();",
"index",
"input.nextInt()",
"input.nextInt",
"input",
"String move=word.substring(0,index);",
"move",
"word.substring(0,index)",
"word.substring",
"word",
"0",
"index",
"String left=word.substring(index);",
"left",
"word.substring(index)",
"word.substring",
"word",
"index",
"word=left+move",
"word",
"left+move",
"left",
"move",
"input.nextLine()",
"input.nextLine",
"input",
"System.out.println(word)",
"System.out.println",
"System.out",
"System",
"System.out",
"word",
"String[] args",
"args",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner input=new Scanner(System.in);\n\t\twhile(true)\n\t\t{\n\t\t\tString word=input.nextLine();\n\t\t\tif(word.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tint wrapTime=input.nextInt();\n\t\t\tfor(int i=0;i<wrapTime;i++)\n\t\t\t{\n\t\t\t\tint index=input.nextInt();\n\t\t\t\tString move=word.substring(0,index);\n\t\t\t\tString left=word.substring(index);\n\t\t\t\tword=left+move;\n\t\t\t\t\n\t\t\t}\n\t\t\tinput.nextLine();\n\t\t\tSystem.out.println(word);\n\t\t}\n\t}\n\n}",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner input=new Scanner(System.in);\n\t\twhile(true)\n\t\t{\n\t\t\tString word=input.nextLine();\n\t\t\tif(word.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tint wrapTime=input.nextInt();\n\t\t\tfor(int i=0;i<wrapTime;i++)\n\t\t\t{\n\t\t\t\tint index=input.nextInt();\n\t\t\t\tString move=word.substring(0,index);\n\t\t\t\tString left=word.substring(index);\n\t\t\t\tword=left+move;\n\t\t\t\t\n\t\t\t}\n\t\t\tinput.nextLine();\n\t\t\tSystem.out.println(word);\n\t\t}\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
while(true)
{
String word=input.nextLine();
if(word.equals("-"))
break;
int wrapTime=input.nextInt();
for(int i=0;i<wrapTime;i++)
{
int index=input.nextInt();
String move=word.substring(0,index);
String left=word.substring(index);
word=left+move;
}
input.nextLine();
System.out.println(word);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
42,
17,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
41,
13,
20,
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,
4,
18,
13,
17,
13,
4,
18,
13,
13,
4,
18,
13,
4,
18,
13,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
100,
5
],
[
100,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
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
],
[
25,
41
],
[
41,
42
],
[
41,
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
],
[
58,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
66,
70
],
[
58,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
71,
75
],
[
58,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
25,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
84,
85
],
[
8,
86
],
[
86,
87
],
[
86,
88
],
[
86,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
6,
97
],
[
97,
98
],
[
0,
99
],
[
99,
100
],
[
99,
101
]
]
| [
"import java.util.*;\n\npublic class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str, sub;\n\t\tint m, h;\n\t\tArrayList<String> ans = new ArrayList<String>();\n\t\t\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\t\t\tStringBuilder sb = new StringBuilder(str);\n\t\t\t\n\t\t\tm = sc.nextInt();\n\t\t\t\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\th = sc.nextInt();\n\t\t\t\t\n\t\t\t\tsub = sb.substring(0, h);\n\t\t\t\tsb.delete(0, h);\n\t\t\t\tsb.append(sub);\n\t\t\t}\n\t\t\t\n\t\t\tans.add(sb.toString());\n\t\t}\n\t\t\n\t\tfor(String s : ans){\n\t\t\tSystem.out.println(s);\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, sub;\n\t\tint m, h;\n\t\tArrayList<String> ans = new ArrayList<String>();\n\t\t\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\t\t\tStringBuilder sb = new StringBuilder(str);\n\t\t\t\n\t\t\tm = sc.nextInt();\n\t\t\t\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\th = sc.nextInt();\n\t\t\t\t\n\t\t\t\tsub = sb.substring(0, h);\n\t\t\t\tsb.delete(0, h);\n\t\t\t\tsb.append(sub);\n\t\t\t}\n\t\t\t\n\t\t\tans.add(sb.toString());\n\t\t}\n\t\t\n\t\tfor(String s : ans){\n\t\t\tSystem.out.println(s);\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, sub;\n\t\tint m, h;\n\t\tArrayList<String> ans = new ArrayList<String>();\n\t\t\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\t\t\tStringBuilder sb = new StringBuilder(str);\n\t\t\t\n\t\t\tm = sc.nextInt();\n\t\t\t\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\th = sc.nextInt();\n\t\t\t\t\n\t\t\t\tsub = sb.substring(0, h);\n\t\t\t\tsb.delete(0, h);\n\t\t\t\tsb.append(sub);\n\t\t\t}\n\t\t\t\n\t\t\tans.add(sb.toString());\n\t\t}\n\t\t\n\t\tfor(String s : ans){\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str, sub;\n\t\tint m, h;\n\t\tArrayList<String> ans = new ArrayList<String>();\n\t\t\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\t\t\tStringBuilder sb = new StringBuilder(str);\n\t\t\t\n\t\t\tm = sc.nextInt();\n\t\t\t\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\th = sc.nextInt();\n\t\t\t\t\n\t\t\t\tsub = sb.substring(0, h);\n\t\t\t\tsb.delete(0, h);\n\t\t\t\tsb.append(sub);\n\t\t\t}\n\t\t\t\n\t\t\tans.add(sb.toString());\n\t\t}\n\t\t\n\t\tfor(String s : ans){\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String str",
"str",
"sub;",
"sub",
"int m",
"m",
"h;",
"h",
"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\t\t\tStringBuilder sb = new StringBuilder(str);\n\t\t\t\n\t\t\tm = sc.nextInt();\n\t\t\t\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\th = sc.nextInt();\n\t\t\t\t\n\t\t\t\tsub = sb.substring(0, h);\n\t\t\t\tsb.delete(0, h);\n\t\t\t\tsb.append(sub);\n\t\t\t}\n\t\t\t\n\t\t\tans.add(sb.toString());\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\t\t\tStringBuilder sb = new StringBuilder(str);\n\t\t\t\n\t\t\tm = sc.nextInt();\n\t\t\t\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\th = sc.nextInt();\n\t\t\t\t\n\t\t\t\tsub = sb.substring(0, h);\n\t\t\t\tsb.delete(0, h);\n\t\t\t\tsb.append(sub);\n\t\t\t}\n\t\t\t\n\t\t\tans.add(sb.toString());\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;",
"StringBuilder sb = new StringBuilder(str);",
"sb",
"new StringBuilder(str)",
"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\t\n\t\t\t\tsub = sb.substring(0, h);\n\t\t\t\tsb.delete(0, h);\n\t\t\t\tsb.append(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 = sc.nextInt();\n\t\t\t\t\n\t\t\t\tsub = sb.substring(0, h);\n\t\t\t\tsb.delete(0, h);\n\t\t\t\tsb.append(sub);\n\t\t\t}",
"{\n\t\t\t\th = sc.nextInt();\n\t\t\t\t\n\t\t\t\tsub = sb.substring(0, h);\n\t\t\t\tsb.delete(0, h);\n\t\t\t\tsb.append(sub);\n\t\t\t}",
"h = sc.nextInt()",
"h",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sub = sb.substring(0, h)",
"sub",
"sb.substring(0, h)",
"sb.substring",
"sb",
"0",
"h",
"sb.delete(0, h)",
"sb.delete",
"sb",
"0",
"h",
"sb.append(sub)",
"sb.append",
"sb",
"sub",
"ans.add(sb.toString())",
"ans.add",
"ans",
"sb.toString()",
"sb.toString",
"sb",
"for(String s : ans){\n\t\t\tSystem.out.println(s);\n\t\t}",
"String s",
"ans",
"{\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",
"public class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str, sub;\n\t\tint m, h;\n\t\tArrayList<String> ans = new ArrayList<String>();\n\t\t\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\t\t\tStringBuilder sb = new StringBuilder(str);\n\t\t\t\n\t\t\tm = sc.nextInt();\n\t\t\t\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\th = sc.nextInt();\n\t\t\t\t\n\t\t\t\tsub = sb.substring(0, h);\n\t\t\t\tsb.delete(0, h);\n\t\t\t\tsb.append(sub);\n\t\t\t}\n\t\t\t\n\t\t\tans.add(sb.toString());\n\t\t}\n\t\t\n\t\tfor(String s : ans){\n\t\t\tSystem.out.println(s);\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, sub;\n\t\tint m, h;\n\t\tArrayList<String> ans = new ArrayList<String>();\n\t\t\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\t\t\tStringBuilder sb = new StringBuilder(str);\n\t\t\t\n\t\t\tm = sc.nextInt();\n\t\t\t\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\th = sc.nextInt();\n\t\t\t\t\n\t\t\t\tsub = sb.substring(0, h);\n\t\t\t\tsb.delete(0, h);\n\t\t\t\tsb.append(sub);\n\t\t\t}\n\t\t\t\n\t\t\tans.add(sb.toString());\n\t\t}\n\t\t\n\t\tfor(String s : ans){\n\t\t\tSystem.out.println(s);\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, sub;
int m, h;
ArrayList<String> ans = new ArrayList<String>();
while(true){
str = sc.next();
if(str.equals("-")){
break;
}
StringBuilder sb = new StringBuilder(str);
m = sc.nextInt();
for(int i = 0; i < m; i++){
h = sc.nextInt();
sub = sb.substring(0, h);
sb.delete(0, h);
sb.append(sub);
}
ans.add(sb.toString());
}
for(String s : ans){
System.out.println(s);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
20,
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,
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,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
18,
13,
2,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
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,
22
],
[
22,
23
],
[
22,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
33,
38
],
[
38,
39
],
[
27,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
27,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
27,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
27,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
27,
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
],
[
87,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
91,
103
],
[
103,
104
],
[
104,
105
],
[
91,
106
],
[
107,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
116,
118
],
[
87,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
126,
128
],
[
119,
129
],
[
129,
130
],
[
130,
131
],
[
119,
132
],
[
133,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
138,
140
],
[
87,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
144,
145
],
[
27,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
146,
151
],
[
9,
152
],
[
152,
153
]
]
| [
"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 word = \"\";\t\t//???????????????string\n\t\tint[] shuffleBegin = new int[100]; //?????£?????????????§????\n\t\tString temp = \"\";\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\t\n\t\t\tint shuffleTimes = scan.nextInt();\n\t\t\tfor(int i=0; i<shuffleTimes; i++){\n\t\t\t\tshuffleBegin[i] = scan.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i =0;i<shuffleTimes; i++){\n\t\t\tword = \"\";\n\t\t\t\tfor(int j=0; j<(targetLength - shuffleBegin[i]) ; j++){\n\t\t\t\t\tword = word + targetChar[j + shuffleBegin[i]];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<shuffleBegin[i]; j++){\n\t\t\t\t\tword = word + targetChar[j];\n\t\t\t\t}\n\t\t\t\t\n\t\t\ttargetChar = word.toCharArray();\n\n\t\t\t}\n\t\t\tSystem.out.println(word);\t\t\n\t\t\t\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 word = \"\";\t\t//???????????????string\n\t\tint[] shuffleBegin = new int[100]; //?????£?????????????§????\n\t\tString temp = \"\";\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\t\n\t\t\tint shuffleTimes = scan.nextInt();\n\t\t\tfor(int i=0; i<shuffleTimes; i++){\n\t\t\t\tshuffleBegin[i] = scan.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i =0;i<shuffleTimes; i++){\n\t\t\tword = \"\";\n\t\t\t\tfor(int j=0; j<(targetLength - shuffleBegin[i]) ; j++){\n\t\t\t\t\tword = word + targetChar[j + shuffleBegin[i]];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<shuffleBegin[i]; j++){\n\t\t\t\t\tword = word + targetChar[j];\n\t\t\t\t}\n\t\t\t\t\n\t\t\ttargetChar = word.toCharArray();\n\n\t\t\t}\n\t\t\tSystem.out.println(word);\t\t\n\t\t\t\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 word = \"\";\t\t//???????????????string\n\t\tint[] shuffleBegin = new int[100]; //?????£?????????????§????\n\t\tString temp = \"\";\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\t\n\t\t\tint shuffleTimes = scan.nextInt();\n\t\t\tfor(int i=0; i<shuffleTimes; i++){\n\t\t\t\tshuffleBegin[i] = scan.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i =0;i<shuffleTimes; i++){\n\t\t\tword = \"\";\n\t\t\t\tfor(int j=0; j<(targetLength - shuffleBegin[i]) ; j++){\n\t\t\t\t\tword = word + targetChar[j + shuffleBegin[i]];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<shuffleBegin[i]; j++){\n\t\t\t\t\tword = word + targetChar[j];\n\t\t\t\t}\n\t\t\t\t\n\t\t\ttargetChar = word.toCharArray();\n\n\t\t\t}\n\t\t\tSystem.out.println(word);\t\t\n\t\t\t\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString word = \"\";\t\t//???????????????string\n\t\tint[] shuffleBegin = new int[100]; //?????£?????????????§????\n\t\tString temp = \"\";\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\t\n\t\t\tint shuffleTimes = scan.nextInt();\n\t\t\tfor(int i=0; i<shuffleTimes; i++){\n\t\t\t\tshuffleBegin[i] = scan.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i =0;i<shuffleTimes; i++){\n\t\t\tword = \"\";\n\t\t\t\tfor(int j=0; j<(targetLength - shuffleBegin[i]) ; j++){\n\t\t\t\t\tword = word + targetChar[j + shuffleBegin[i]];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<shuffleBegin[i]; j++){\n\t\t\t\t\tword = word + targetChar[j];\n\t\t\t\t}\n\t\t\t\t\n\t\t\ttargetChar = word.toCharArray();\n\n\t\t\t}\n\t\t\tSystem.out.println(word);\t\t\n\t\t\t\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String word = \"\";",
"word",
"\"\"",
"int[] shuffleBegin = new int[100];",
"shuffleBegin",
"new int[100]",
"100",
"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\t\n\t\t\tint shuffleTimes = scan.nextInt();\n\t\t\tfor(int i=0; i<shuffleTimes; i++){\n\t\t\t\tshuffleBegin[i] = scan.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i =0;i<shuffleTimes; i++){\n\t\t\tword = \"\";\n\t\t\t\tfor(int j=0; j<(targetLength - shuffleBegin[i]) ; j++){\n\t\t\t\t\tword = word + targetChar[j + shuffleBegin[i]];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<shuffleBegin[i]; j++){\n\t\t\t\t\tword = word + targetChar[j];\n\t\t\t\t}\n\t\t\t\t\n\t\t\ttargetChar = word.toCharArray();\n\n\t\t\t}\n\t\t\tSystem.out.println(word);\t\t\n\t\t\t\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\t\n\t\t\tint shuffleTimes = scan.nextInt();\n\t\t\tfor(int i=0; i<shuffleTimes; i++){\n\t\t\t\tshuffleBegin[i] = scan.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i =0;i<shuffleTimes; i++){\n\t\t\tword = \"\";\n\t\t\t\tfor(int j=0; j<(targetLength - shuffleBegin[i]) ; j++){\n\t\t\t\t\tword = word + targetChar[j + shuffleBegin[i]];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<shuffleBegin[i]; j++){\n\t\t\t\t\tword = word + targetChar[j];\n\t\t\t\t}\n\t\t\t\t\n\t\t\ttargetChar = word.toCharArray();\n\n\t\t\t}\n\t\t\tSystem.out.println(word);\t\t\n\t\t\t\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",
"for(int i=0; i<shuffleTimes; i++){\n\t\t\t\tshuffleBegin[i] = scan.nextInt();\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<shuffleTimes",
"i",
"shuffleTimes",
"i++",
"i++",
"i",
"{\n\t\t\t\tshuffleBegin[i] = scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\tshuffleBegin[i] = scan.nextInt();\n\t\t\t}",
"shuffleBegin[i] = scan.nextInt()",
"shuffleBegin[i]",
"shuffleBegin",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i =0;i<shuffleTimes; i++){\n\t\t\tword = \"\";\n\t\t\t\tfor(int j=0; j<(targetLength - shuffleBegin[i]) ; j++){\n\t\t\t\t\tword = word + targetChar[j + shuffleBegin[i]];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<shuffleBegin[i]; j++){\n\t\t\t\t\tword = word + targetChar[j];\n\t\t\t\t}\n\t\t\t\t\n\t\t\ttargetChar = word.toCharArray();\n\n\t\t\t}",
"int i =0;",
"int i =0;",
"i",
"0",
"i<shuffleTimes",
"i",
"shuffleTimes",
"i++",
"i++",
"i",
"{\n\t\t\tword = \"\";\n\t\t\t\tfor(int j=0; j<(targetLength - shuffleBegin[i]) ; j++){\n\t\t\t\t\tword = word + targetChar[j + shuffleBegin[i]];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<shuffleBegin[i]; j++){\n\t\t\t\t\tword = word + targetChar[j];\n\t\t\t\t}\n\t\t\t\t\n\t\t\ttargetChar = word.toCharArray();\n\n\t\t\t}",
"{\n\t\t\tword = \"\";\n\t\t\t\tfor(int j=0; j<(targetLength - shuffleBegin[i]) ; j++){\n\t\t\t\t\tword = word + targetChar[j + shuffleBegin[i]];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<shuffleBegin[i]; j++){\n\t\t\t\t\tword = word + targetChar[j];\n\t\t\t\t}\n\t\t\t\t\n\t\t\ttargetChar = word.toCharArray();\n\n\t\t\t}",
"word = \"\"",
"word",
"\"\"",
"for(int j=0; j<(targetLength - shuffleBegin[i]) ; j++){\n\t\t\t\t\tword = word + targetChar[j + shuffleBegin[i]];\n\t\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<(targetLength - shuffleBegin[i])",
"j",
"(targetLength - shuffleBegin[i])",
"targetLength",
"shuffleBegin[i]",
"shuffleBegin",
"i",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tword = word + targetChar[j + shuffleBegin[i]];\n\t\t\t\t}",
"{\n\t\t\t\t\tword = word + targetChar[j + shuffleBegin[i]];\n\t\t\t\t}",
"word = word + targetChar[j + shuffleBegin[i]]",
"word",
"word + targetChar[j + shuffleBegin[i]]",
"word",
"targetChar[j + shuffleBegin[i]]",
"targetChar",
"j + shuffleBegin[i]",
"j",
"shuffleBegin[i]",
"shuffleBegin",
"i",
"for(int j=0; j<shuffleBegin[i]; j++){\n\t\t\t\t\tword = word + targetChar[j];\n\t\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<shuffleBegin[i]",
"j",
"shuffleBegin[i]",
"shuffleBegin",
"i",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tword = word + targetChar[j];\n\t\t\t\t}",
"{\n\t\t\t\t\tword = word + targetChar[j];\n\t\t\t\t}",
"word = word + targetChar[j]",
"word",
"word + targetChar[j]",
"word",
"targetChar[j]",
"targetChar",
"j",
"targetChar = word.toCharArray()",
"targetChar",
"word.toCharArray()",
"word.toCharArray",
"word",
"System.out.println(word)",
"System.out.println",
"System.out",
"System",
"System.out",
"word",
"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 word = ""; //???????????????string
int[] shuffleBegin = new int[100]; //?????£?????????????§????
String temp = "";
while(true){
temp = scan.next();
if(temp.equals("-")){
break;
}
char[] targetChar = temp.toCharArray();
int targetLength = temp.length();
int shuffleTimes = scan.nextInt();
for(int i=0; i<shuffleTimes; i++){
shuffleBegin[i] = scan.nextInt();
}
for(int i =0;i<shuffleTimes; i++){
word = "";
for(int j=0; j<(targetLength - shuffleBegin[i]) ; j++){
word = word + targetChar[j + shuffleBegin[i]];
}
for(int j=0; j<shuffleBegin[i]; j++){
word = word + targetChar[j];
}
targetChar = word.toCharArray();
}
System.out.println(word);
}
}
} |
[
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,
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
],
[
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
],
[
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
],
[
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;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n while (true) {\n String W = stdIn.next();\n if(W.equals(\"-\")) {\n break;\n }\n int m = stdIn.nextInt();\n for(int i = 0; i < m; i++) {\n int h = stdIn.nextInt();\n String s1 = W.substring(0, h);\n String s2 = W.substring(h);\n W = s2 + s1;\n }\n System.out.println(W);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n while (true) {\n String W = stdIn.next();\n if(W.equals(\"-\")) {\n break;\n }\n int m = stdIn.nextInt();\n for(int i = 0; i < m; i++) {\n int h = stdIn.nextInt();\n String s1 = W.substring(0, h);\n String s2 = W.substring(h);\n W = s2 + s1;\n }\n System.out.println(W);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n while (true) {\n String W = stdIn.next();\n if(W.equals(\"-\")) {\n break;\n }\n int m = stdIn.nextInt();\n for(int i = 0; i < m; i++) {\n int h = stdIn.nextInt();\n String s1 = W.substring(0, h);\n String s2 = W.substring(h);\n W = s2 + s1;\n }\n System.out.println(W);\n }\n }",
"main",
"{\n\t\tScanner stdIn = new Scanner(System.in);\n while (true) {\n String W = stdIn.next();\n if(W.equals(\"-\")) {\n break;\n }\n int m = stdIn.nextInt();\n for(int i = 0; i < m; i++) {\n int h = stdIn.nextInt();\n String s1 = W.substring(0, h);\n String s2 = W.substring(h);\n W = s2 + s1;\n }\n System.out.println(W);\n }\n }",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"while (true) {\n String W = stdIn.next();\n if(W.equals(\"-\")) {\n break;\n }\n int m = stdIn.nextInt();\n for(int i = 0; i < m; i++) {\n int h = stdIn.nextInt();\n String s1 = W.substring(0, h);\n String s2 = W.substring(h);\n W = s2 + s1;\n }\n System.out.println(W);\n }",
"true",
"{\n String W = stdIn.next();\n if(W.equals(\"-\")) {\n break;\n }\n int m = stdIn.nextInt();\n for(int i = 0; i < m; i++) {\n int h = stdIn.nextInt();\n String s1 = W.substring(0, h);\n String s2 = W.substring(h);\n W = s2 + s1;\n }\n System.out.println(W);\n }",
"String W = stdIn.next();",
"W",
"stdIn.next()",
"stdIn.next",
"stdIn",
"if(W.equals(\"-\")) {\n break;\n }",
"W.equals(\"-\")",
"W.equals",
"W",
"\"-\"",
"{\n break;\n }",
"break;",
"int m = stdIn.nextInt();",
"m",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"for(int i = 0; i < m; i++) {\n int h = stdIn.nextInt();\n String s1 = W.substring(0, h);\n String s2 = W.substring(h);\n W = s2 + s1;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n int h = stdIn.nextInt();\n String s1 = W.substring(0, h);\n String s2 = W.substring(h);\n W = s2 + s1;\n }",
"{\n int h = stdIn.nextInt();\n String s1 = W.substring(0, h);\n String s2 = W.substring(h);\n W = s2 + s1;\n }",
"int h = stdIn.nextInt();",
"h",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"String s1 = W.substring(0, h);",
"s1",
"W.substring(0, h)",
"W.substring",
"W",
"0",
"h",
"String s2 = W.substring(h);",
"s2",
"W.substring(h)",
"W.substring",
"W",
"h",
"W = s2 + s1",
"W",
"s2 + s1",
"s2",
"s1",
"System.out.println(W)",
"System.out.println",
"System.out",
"System",
"System.out",
"W",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n while (true) {\n String W = stdIn.next();\n if(W.equals(\"-\")) {\n break;\n }\n int m = stdIn.nextInt();\n for(int i = 0; i < m; i++) {\n int h = stdIn.nextInt();\n String s1 = W.substring(0, h);\n String s2 = W.substring(h);\n W = s2 + s1;\n }\n System.out.println(W);\n }\n }\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n while (true) {\n String W = stdIn.next();\n if(W.equals(\"-\")) {\n break;\n }\n int m = stdIn.nextInt();\n for(int i = 0; i < m; i++) {\n int h = stdIn.nextInt();\n String s1 = W.substring(0, h);\n String s2 = W.substring(h);\n W = s2 + s1;\n }\n System.out.println(W);\n }\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
while (true) {
String W = stdIn.next();
if(W.equals("-")) {
break;
}
int m = stdIn.nextInt();
for(int i = 0; i < m; i++) {
int h = stdIn.nextInt();
String s1 = W.substring(0, h);
String s2 = W.substring(h);
W = s2 + s1;
}
System.out.println(W);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
41,
13,
42,
40,
4,
18,
4,
18,
4,
18,
13,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
13,
4,
18,
13,
17,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
17,
4,
18,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
30,
31
],
[
31,
32
],
[
23,
33
],
[
21,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
41,
42
],
[
34,
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
],
[
58,
61
],
[
61,
62
],
[
62,
63
],
[
55,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
66,
70
],
[
55,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
71,
75
],
[
55,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
34,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
34,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
86,
90
],
[
90,
91
],
[
91,
92
],
[
6,
93
],
[
93,
94
]
]
| [
"import java.io.*;\n\nclass Main {\n public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder cards = new StringBuilder();\n int count;\n int i;\n int h;\n while (!cards.append(br.readLine()).toString().equals(\"-\")) {\n count = Integer.parseInt(br.readLine());\n for (i = 0; i < count; i++) {\n h = Integer.parseInt(br.readLine());\n String subStr = cards.substring(0, h);\n cards.delete(0, h);\n cards.append(subStr);\n }\n System.out.println(cards);\n cards.delete(0, cards.length());\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"class Main {\n public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder cards = new StringBuilder();\n int count;\n int i;\n int h;\n while (!cards.append(br.readLine()).toString().equals(\"-\")) {\n count = Integer.parseInt(br.readLine());\n for (i = 0; i < count; i++) {\n h = Integer.parseInt(br.readLine());\n String subStr = cards.substring(0, h);\n cards.delete(0, h);\n cards.append(subStr);\n }\n System.out.println(cards);\n cards.delete(0, cards.length());\n }\n }\n}",
"Main",
"public static void main (String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder cards = new StringBuilder();\n int count;\n int i;\n int h;\n while (!cards.append(br.readLine()).toString().equals(\"-\")) {\n count = Integer.parseInt(br.readLine());\n for (i = 0; i < count; i++) {\n h = Integer.parseInt(br.readLine());\n String subStr = cards.substring(0, h);\n cards.delete(0, h);\n cards.append(subStr);\n }\n System.out.println(cards);\n cards.delete(0, cards.length());\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder cards = new StringBuilder();\n int count;\n int i;\n int h;\n while (!cards.append(br.readLine()).toString().equals(\"-\")) {\n count = Integer.parseInt(br.readLine());\n for (i = 0; i < count; i++) {\n h = Integer.parseInt(br.readLine());\n String subStr = cards.substring(0, h);\n cards.delete(0, h);\n cards.append(subStr);\n }\n System.out.println(cards);\n cards.delete(0, cards.length());\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder cards = new StringBuilder();",
"cards",
"new StringBuilder()",
"int count;",
"count",
"int i;",
"i",
"int h;",
"h",
"while (!cards.append(br.readLine()).toString().equals(\"-\")) {\n count = Integer.parseInt(br.readLine());\n for (i = 0; i < count; i++) {\n h = Integer.parseInt(br.readLine());\n String subStr = cards.substring(0, h);\n cards.delete(0, h);\n cards.append(subStr);\n }\n System.out.println(cards);\n cards.delete(0, cards.length());\n }",
"!cards.append(br.readLine()).toString().equals(\"-\")",
"cards.append(br.readLine()).toString().equals(\"-\")",
"cards.append(br.readLine()).toString().equals",
"cards.append(br.readLine()).toString()",
"cards.append(br.readLine()).toString",
"cards.append(br.readLine())",
"cards.append",
"cards",
"br.readLine()",
"br.readLine",
"br",
"\"-\"",
"{\n count = Integer.parseInt(br.readLine());\n for (i = 0; i < count; i++) {\n h = Integer.parseInt(br.readLine());\n String subStr = cards.substring(0, h);\n cards.delete(0, h);\n cards.append(subStr);\n }\n System.out.println(cards);\n cards.delete(0, cards.length());\n }",
"count = Integer.parseInt(br.readLine())",
"count",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for (i = 0; i < count; i++) {\n h = Integer.parseInt(br.readLine());\n String subStr = cards.substring(0, h);\n cards.delete(0, h);\n cards.append(subStr);\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < count",
"i",
"count",
"i++",
"i++",
"i",
"{\n h = Integer.parseInt(br.readLine());\n String subStr = cards.substring(0, h);\n cards.delete(0, h);\n cards.append(subStr);\n }",
"{\n h = Integer.parseInt(br.readLine());\n String subStr = cards.substring(0, h);\n cards.delete(0, h);\n cards.append(subStr);\n }",
"h = Integer.parseInt(br.readLine())",
"h",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String subStr = cards.substring(0, h);",
"subStr",
"cards.substring(0, h)",
"cards.substring",
"cards",
"0",
"h",
"cards.delete(0, h)",
"cards.delete",
"cards",
"0",
"h",
"cards.append(subStr)",
"cards.append",
"cards",
"subStr",
"System.out.println(cards)",
"System.out.println",
"System.out",
"System",
"System.out",
"cards",
"cards.delete(0, cards.length())",
"cards.delete",
"cards",
"0",
"cards.length()",
"cards.length",
"cards",
"String[] args",
"args"
]
| import java.io.*;
class Main {
public static void main (String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder cards = new StringBuilder();
int count;
int i;
int h;
while (!cards.append(br.readLine()).toString().equals("-")) {
count = Integer.parseInt(br.readLine());
for (i = 0; i < count; i++) {
h = Integer.parseInt(br.readLine());
String subStr = cards.substring(0, h);
cards.delete(0, h);
cards.append(subStr);
}
System.out.println(cards);
cards.delete(0, cards.length());
}
}
} |
[
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,
17,
13,
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,
14,
2,
13,
17,
30,
4,
18,
13,
0,
13,
17,
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
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
17,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
23,
28
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
17,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
38,
39
],
[
17,
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
],
[
65,
66
],
[
64,
67
],
[
63,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
68,
72
],
[
17,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
11,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
83,
87
],
[
87,
88
],
[
87,
89
],
[
9,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
]
| [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString line = br.readLine();\n\t\t\tif (\"-\".equals(line))\n\t\t\t\tbreak;\n\n\t\t\tString str = line;\n\t\t\tInteger cnt = Integer.parseInt(br.readLine());\n\t\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\tstr = str.substring(h) + str.substring(0, h);\n\t\t\t}\n\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\tif (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\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) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString line = br.readLine();\n\t\t\tif (\"-\".equals(line))\n\t\t\t\tbreak;\n\n\t\t\tString str = line;\n\t\t\tInteger cnt = Integer.parseInt(br.readLine());\n\t\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\tstr = str.substring(h) + str.substring(0, h);\n\t\t\t}\n\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\tif (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString line = br.readLine();\n\t\t\tif (\"-\".equals(line))\n\t\t\t\tbreak;\n\n\t\t\tString str = line;\n\t\t\tInteger cnt = Integer.parseInt(br.readLine());\n\t\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\tstr = str.substring(h) + str.substring(0, h);\n\t\t\t}\n\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\tif (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString line = br.readLine();\n\t\t\tif (\"-\".equals(line))\n\t\t\t\tbreak;\n\n\t\t\tString str = line;\n\t\t\tInteger cnt = Integer.parseInt(br.readLine());\n\t\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\tstr = str.substring(h) + str.substring(0, h);\n\t\t\t}\n\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\tif (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\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 line = br.readLine();\n\t\t\tif (\"-\".equals(line))\n\t\t\t\tbreak;\n\n\t\t\tString str = line;\n\t\t\tInteger cnt = Integer.parseInt(br.readLine());\n\t\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\tstr = str.substring(h) + str.substring(0, h);\n\t\t\t}\n\n\t\t\tSystem.out.println(str);\n\t\t}",
"true",
"{\n\t\t\tString line = br.readLine();\n\t\t\tif (\"-\".equals(line))\n\t\t\t\tbreak;\n\n\t\t\tString str = line;\n\t\t\tInteger cnt = Integer.parseInt(br.readLine());\n\t\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\tstr = str.substring(h) + str.substring(0, h);\n\t\t\t}\n\n\t\t\tSystem.out.println(str);\n\t\t}",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"if (\"-\".equals(line))\n\t\t\t\tbreak;",
"\"-\".equals(line)",
"\"-\".equals",
"\"-\"",
"line",
"break;",
"String str = line;",
"str",
"line",
"Integer cnt = Integer.parseInt(br.readLine());",
"cnt",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for (int i = 0; i < cnt; i++) {\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\tstr = str.substring(h) + str.substring(0, h);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < cnt",
"i",
"cnt",
"i++",
"i++",
"i",
"{\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\tstr = str.substring(h) + str.substring(0, h);\n\t\t\t}",
"{\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\tstr = str.substring(h) + str.substring(0, h);\n\t\t\t}",
"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",
"if (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}",
"br != null",
"br",
"null",
"{\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}",
"br.close()",
"br.close",
"br",
"br = null",
"br",
"null",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString line = br.readLine();\n\t\t\tif (\"-\".equals(line))\n\t\t\t\tbreak;\n\n\t\t\tString str = line;\n\t\t\tInteger cnt = Integer.parseInt(br.readLine());\n\t\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\tstr = str.substring(h) + str.substring(0, h);\n\t\t\t}\n\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\tif (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString line = br.readLine();\n\t\t\tif (\"-\".equals(line))\n\t\t\t\tbreak;\n\n\t\t\tString str = line;\n\t\t\tInteger cnt = Integer.parseInt(br.readLine());\n\t\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\tstr = str.substring(h) + str.substring(0, h);\n\t\t\t}\n\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\tif (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}\n\t}\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));
while (true) {
String line = br.readLine();
if ("-".equals(line))
break;
String str = line;
Integer cnt = Integer.parseInt(br.readLine());
for (int i = 0; i < cnt; i++) {
int h = Integer.parseInt(br.readLine());
str = str.substring(h) + str.substring(0, h);
}
System.out.println(str);
}
if (br != null) {
br.close();
br = null;
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
17,
42,
2,
4,
18,
0,
13,
4,
18,
13,
17,
17,
30,
41,
13,
20,
4,
18,
13,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
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,
13,
2,
13,
17,
41,
13,
4,
18,
13,
17,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
113,
5
],
[
113,
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
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
22,
29
],
[
21,
30
],
[
20,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
31,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
31,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
50,
51
],
[
31,
52
],
[
52,
53
],
[
31,
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
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
78,
82
],
[
66,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
83,
87
],
[
31,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
91,
92
],
[
91,
93
],
[
8,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
8,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
8,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
6,
110
],
[
110,
111
],
[
0,
112
],
[
112,
113
],
[
112,
114
]
]
| [
"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 StringBuilder out=new StringBuilder();\n String str;\n int q=0;\n while((str=br.readLine()).equals(\"-\")==false){\n StringBuilder sb=new StringBuilder();\n sb.append(str);\n q=str.length();\n int n=Integer.parseInt(br.readLine());\n int p;\n for(int i=0;i<n;i++){\n p=Integer.parseInt(br.readLine());\n sb.append(sb.substring(0,p));\n sb.delete(0,p);\n }\n out.append(sb+\"\\n\");\n }\n\n int index = out.lastIndexOf(\"\\n\");\n\n out.deleteCharAt(index);\n System.out.println(out);\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 StringBuilder out=new StringBuilder();\n String str;\n int q=0;\n while((str=br.readLine()).equals(\"-\")==false){\n StringBuilder sb=new StringBuilder();\n sb.append(str);\n q=str.length();\n int n=Integer.parseInt(br.readLine());\n int p;\n for(int i=0;i<n;i++){\n p=Integer.parseInt(br.readLine());\n sb.append(sb.substring(0,p));\n sb.delete(0,p);\n }\n out.append(sb+\"\\n\");\n }\n\n int index = out.lastIndexOf(\"\\n\");\n\n out.deleteCharAt(index);\n System.out.println(out);\n }\n}",
"Main",
"public static void main(String[] args)throws IOException {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringBuilder out=new StringBuilder();\n String str;\n int q=0;\n while((str=br.readLine()).equals(\"-\")==false){\n StringBuilder sb=new StringBuilder();\n sb.append(str);\n q=str.length();\n int n=Integer.parseInt(br.readLine());\n int p;\n for(int i=0;i<n;i++){\n p=Integer.parseInt(br.readLine());\n sb.append(sb.substring(0,p));\n sb.delete(0,p);\n }\n out.append(sb+\"\\n\");\n }\n\n int index = out.lastIndexOf(\"\\n\");\n\n out.deleteCharAt(index);\n System.out.println(out);\n }",
"main",
"{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringBuilder out=new StringBuilder();\n String str;\n int q=0;\n while((str=br.readLine()).equals(\"-\")==false){\n StringBuilder sb=new StringBuilder();\n sb.append(str);\n q=str.length();\n int n=Integer.parseInt(br.readLine());\n int p;\n for(int i=0;i<n;i++){\n p=Integer.parseInt(br.readLine());\n sb.append(sb.substring(0,p));\n sb.delete(0,p);\n }\n out.append(sb+\"\\n\");\n }\n\n int index = out.lastIndexOf(\"\\n\");\n\n out.deleteCharAt(index);\n System.out.println(out);\n }",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder out=new StringBuilder();",
"out",
"new StringBuilder()",
"String str;",
"str",
"int q=0;",
"q",
"0",
"while((str=br.readLine()).equals(\"-\")==false){\n StringBuilder sb=new StringBuilder();\n sb.append(str);\n q=str.length();\n int n=Integer.parseInt(br.readLine());\n int p;\n for(int i=0;i<n;i++){\n p=Integer.parseInt(br.readLine());\n sb.append(sb.substring(0,p));\n sb.delete(0,p);\n }\n out.append(sb+\"\\n\");\n }",
"(str=br.readLine()).equals(\"-\")==false",
"(str=br.readLine()).equals(\"-\")",
"(str=br.readLine()).equals",
"(str=br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"\"-\"",
"false",
"{\n StringBuilder sb=new StringBuilder();\n sb.append(str);\n q=str.length();\n int n=Integer.parseInt(br.readLine());\n int p;\n for(int i=0;i<n;i++){\n p=Integer.parseInt(br.readLine());\n sb.append(sb.substring(0,p));\n sb.delete(0,p);\n }\n out.append(sb+\"\\n\");\n }",
"StringBuilder sb=new StringBuilder();",
"sb",
"new StringBuilder()",
"sb.append(str)",
"sb.append",
"sb",
"str",
"q=str.length()",
"q",
"str.length()",
"str.length",
"str",
"int n=Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int p;",
"p",
"for(int i=0;i<n;i++){\n p=Integer.parseInt(br.readLine());\n sb.append(sb.substring(0,p));\n sb.delete(0,p);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n p=Integer.parseInt(br.readLine());\n sb.append(sb.substring(0,p));\n sb.delete(0,p);\n }",
"{\n p=Integer.parseInt(br.readLine());\n sb.append(sb.substring(0,p));\n sb.delete(0,p);\n }",
"p=Integer.parseInt(br.readLine())",
"p",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"sb.append(sb.substring(0,p))",
"sb.append",
"sb",
"sb.substring(0,p)",
"sb.substring",
"sb",
"0",
"p",
"sb.delete(0,p)",
"sb.delete",
"sb",
"0",
"p",
"out.append(sb+\"\\n\")",
"out.append",
"out",
"sb+\"\\n\"",
"sb",
"\"\\n\"",
"int index = out.lastIndexOf(\"\\n\");",
"index",
"out.lastIndexOf(\"\\n\")",
"out.lastIndexOf",
"out",
"\"\\n\"",
"out.deleteCharAt(index)",
"out.deleteCharAt",
"out",
"index",
"System.out.println(out)",
"System.out.println",
"System.out",
"System",
"System.out",
"out",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args)throws IOException {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringBuilder out=new StringBuilder();\n String str;\n int q=0;\n while((str=br.readLine()).equals(\"-\")==false){\n StringBuilder sb=new StringBuilder();\n sb.append(str);\n q=str.length();\n int n=Integer.parseInt(br.readLine());\n int p;\n for(int i=0;i<n;i++){\n p=Integer.parseInt(br.readLine());\n sb.append(sb.substring(0,p));\n sb.delete(0,p);\n }\n out.append(sb+\"\\n\");\n }\n\n int index = out.lastIndexOf(\"\\n\");\n\n out.deleteCharAt(index);\n System.out.println(out);\n }\n}",
"public class Main {\n public static void main(String[] args)throws IOException {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringBuilder out=new StringBuilder();\n String str;\n int q=0;\n while((str=br.readLine()).equals(\"-\")==false){\n StringBuilder sb=new StringBuilder();\n sb.append(str);\n q=str.length();\n int n=Integer.parseInt(br.readLine());\n int p;\n for(int i=0;i<n;i++){\n p=Integer.parseInt(br.readLine());\n sb.append(sb.substring(0,p));\n sb.delete(0,p);\n }\n out.append(sb+\"\\n\");\n }\n\n int index = out.lastIndexOf(\"\\n\");\n\n out.deleteCharAt(index);\n System.out.println(out);\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));
StringBuilder out=new StringBuilder();
String str;
int q=0;
while((str=br.readLine()).equals("-")==false){
StringBuilder sb=new StringBuilder();
sb.append(str);
q=str.length();
int n=Integer.parseInt(br.readLine());
int p;
for(int i=0;i<n;i++){
p=Integer.parseInt(br.readLine());
sb.append(sb.substring(0,p));
sb.delete(0,p);
}
out.append(sb+"\n");
}
int index = out.lastIndexOf("\n");
out.deleteCharAt(index);
System.out.println(out);
}
} |
[
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,
17,
13,
4,
18,
18,
13,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
71,
5
],
[
71,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
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
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
61,
67
],
[
6,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
]
| [
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while(true){\n String str = sc.next();\n if(str.equals(\"-\")) break;\n\n int m=sc.nextInt();\n\n for (int i=0; i<m; i++) {\n int l = sc.nextInt();\n str = str.substring(l) + str.substring(0, l);\n }\n System.out.printf(\"%s\\n\", str);\n }\n\n }\n}\n",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while(true){\n String str = sc.next();\n if(str.equals(\"-\")) break;\n\n int m=sc.nextInt();\n\n for (int i=0; i<m; i++) {\n int l = sc.nextInt();\n str = str.substring(l) + str.substring(0, l);\n }\n System.out.printf(\"%s\\n\", str);\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while(true){\n String str = sc.next();\n if(str.equals(\"-\")) break;\n\n int m=sc.nextInt();\n\n for (int i=0; i<m; i++) {\n int l = sc.nextInt();\n str = str.substring(l) + str.substring(0, l);\n }\n System.out.printf(\"%s\\n\", str);\n }\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n while(true){\n String str = sc.next();\n if(str.equals(\"-\")) break;\n\n int m=sc.nextInt();\n\n for (int i=0; i<m; i++) {\n int l = sc.nextInt();\n str = str.substring(l) + str.substring(0, l);\n }\n System.out.printf(\"%s\\n\", str);\n }\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while(true){\n String str = sc.next();\n if(str.equals(\"-\")) break;\n\n int m=sc.nextInt();\n\n for (int i=0; i<m; i++) {\n int l = sc.nextInt();\n str = str.substring(l) + str.substring(0, l);\n }\n System.out.printf(\"%s\\n\", str);\n }",
"true",
"{\n String str = sc.next();\n if(str.equals(\"-\")) break;\n\n int m=sc.nextInt();\n\n for (int i=0; i<m; i++) {\n int l = sc.nextInt();\n str = str.substring(l) + str.substring(0, l);\n }\n System.out.printf(\"%s\\n\", str);\n }",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"if(str.equals(\"-\")) break;",
"str.equals(\"-\")",
"str.equals",
"str",
"\"-\"",
"break;",
"int m=sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i=0; i<m; i++) {\n int l = sc.nextInt();\n str = str.substring(l) + str.substring(0, l);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n int l = sc.nextInt();\n str = str.substring(l) + str.substring(0, l);\n }",
"{\n int l = sc.nextInt();\n str = str.substring(l) + str.substring(0, l);\n }",
"int l = sc.nextInt();",
"l",
"sc.nextInt()",
"sc.nextInt",
"sc",
"str = str.substring(l) + str.substring(0, l)",
"str",
"str.substring(l) + str.substring(0, l)",
"str.substring(l)",
"str.substring",
"str",
"l",
"str.substring(0, l)",
"str.substring",
"str",
"0",
"l",
"System.out.printf(\"%s\\n\", str)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%s\\n\"",
"str",
"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 str = sc.next();\n if(str.equals(\"-\")) break;\n\n int m=sc.nextInt();\n\n for (int i=0; i<m; i++) {\n int l = sc.nextInt();\n str = str.substring(l) + str.substring(0, l);\n }\n System.out.printf(\"%s\\n\", str);\n }\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 str = sc.next();\n if(str.equals(\"-\")) break;\n\n int m=sc.nextInt();\n\n for (int i=0; i<m; i++) {\n int l = sc.nextInt();\n str = str.substring(l) + str.substring(0, l);\n }\n System.out.printf(\"%s\\n\", str);\n }\n\n }\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args) {
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 l = sc.nextInt();
str = str.substring(l) + str.substring(0, l);
}
System.out.printf("%s\n", str);
}
}
}
|
[
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,
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
]
| [
[
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
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
17,
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
],
[
54,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
46,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
63,
67
],
[
46,
68
],
[
68,
69
],
[
68,
70
],
[
17,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
9,
77
],
[
77,
78
]
]
| [
"import java.util.*;\nimport java.lang.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\t\t\n\t\twhile (true) {\n\t\t\tString s = sc.next();\n\t\t\tif(s.equals(\"-\")) break;\n\t\t\tint shuffles = sc.nextInt();\n\t\t\tfor (int i=0; i<shuffles; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString tmp = s.substring(h, s.length());\n\t\t\t\ttmp+=s.substring(0, h);\n\t\t\t\ts =tmp;\n\t\t\t}\n\t\t\n\t\tSystem.out.println(s);\n\t\t\n\t\t}\n\t\t\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\t\t\n\t\twhile (true) {\n\t\t\tString s = sc.next();\n\t\t\tif(s.equals(\"-\")) break;\n\t\t\tint shuffles = sc.nextInt();\n\t\t\tfor (int i=0; i<shuffles; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString tmp = s.substring(h, s.length());\n\t\t\t\ttmp+=s.substring(0, h);\n\t\t\t\ts =tmp;\n\t\t\t}\n\t\t\n\t\tSystem.out.println(s);\n\t\t\n\t\t}\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\t\t\n\t\twhile (true) {\n\t\t\tString s = sc.next();\n\t\t\tif(s.equals(\"-\")) break;\n\t\t\tint shuffles = sc.nextInt();\n\t\t\tfor (int i=0; i<shuffles; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString tmp = s.substring(h, s.length());\n\t\t\t\ttmp+=s.substring(0, h);\n\t\t\t\ts =tmp;\n\t\t\t}\n\t\t\n\t\tSystem.out.println(s);\n\t\t\n\t\t}\n\t\t\n\t}",
"main",
"{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\t\t\n\t\twhile (true) {\n\t\t\tString s = sc.next();\n\t\t\tif(s.equals(\"-\")) break;\n\t\t\tint shuffles = sc.nextInt();\n\t\t\tfor (int i=0; i<shuffles; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString tmp = s.substring(h, s.length());\n\t\t\t\ttmp+=s.substring(0, h);\n\t\t\t\ts =tmp;\n\t\t\t}\n\t\t\n\t\tSystem.out.println(s);\n\t\t\n\t\t}\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 shuffles = sc.nextInt();\n\t\t\tfor (int i=0; i<shuffles; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString tmp = s.substring(h, s.length());\n\t\t\t\ttmp+=s.substring(0, h);\n\t\t\t\ts =tmp;\n\t\t\t}\n\t\t\n\t\tSystem.out.println(s);\n\t\t\n\t\t}",
"true",
"{\n\t\t\tString s = sc.next();\n\t\t\tif(s.equals(\"-\")) break;\n\t\t\tint shuffles = sc.nextInt();\n\t\t\tfor (int i=0; i<shuffles; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString tmp = s.substring(h, s.length());\n\t\t\t\ttmp+=s.substring(0, h);\n\t\t\t\ts =tmp;\n\t\t\t}\n\t\t\n\t\tSystem.out.println(s);\n\t\t\n\t\t}",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if(s.equals(\"-\")) break;",
"s.equals(\"-\")",
"s.equals",
"s",
"\"-\"",
"break;",
"int shuffles = sc.nextInt();",
"shuffles",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i=0; i<shuffles; i++){\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString tmp = s.substring(h, s.length());\n\t\t\t\ttmp+=s.substring(0, h);\n\t\t\t\ts =tmp;\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<shuffles",
"i",
"shuffles",
"i++",
"i++",
"i",
"{\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString tmp = s.substring(h, s.length());\n\t\t\t\ttmp+=s.substring(0, h);\n\t\t\t\ts =tmp;\n\t\t\t}",
"{\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString tmp = s.substring(h, s.length());\n\t\t\t\ttmp+=s.substring(0, h);\n\t\t\t\ts =tmp;\n\t\t\t}",
"int h = sc.nextInt();",
"h",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String tmp = s.substring(h, s.length());",
"tmp",
"s.substring(h, s.length())",
"s.substring",
"s",
"h",
"s.length()",
"s.length",
"s",
"tmp+=s.substring(0, h)",
"tmp",
"s.substring(0, h)",
"s.substring",
"s",
"0",
"h",
"s =tmp",
"s",
"tmp",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String[] args",
"args"
]
| import java.util.*;
import java.lang.*;
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 shuffles = sc.nextInt();
for (int i=0; i<shuffles; i++){
int h = sc.nextInt();
String tmp = s.substring(h, s.length());
tmp+=s.substring(0, h);
s =tmp;
}
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,
17,
13,
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,
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
],
[
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
],
[
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
],
[
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.*;\n\n\npublic class Main {\n public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t String text = sc.next();\n\t\t if (\"-\".equals(text)) {\n\t\t break;\n\t\t }\n\t\t //行数\n\t\t int n = sc.nextInt();\n\t\t for (int i = 0; i < n; i++) {\n\t\t int x = sc.nextInt();\n\t\t String s1 = text.substring(0, x);\n\t\t String s2 = text.substring(x);\n\t\t text = s2 + s1;\n\t\t }\n System.out.println(text);\n\t\t}\n\t\t\n \n\t\t\n\t\t\n }\n}\n",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t String text = sc.next();\n\t\t if (\"-\".equals(text)) {\n\t\t break;\n\t\t }\n\t\t //行数\n\t\t int n = sc.nextInt();\n\t\t for (int i = 0; i < n; i++) {\n\t\t int x = sc.nextInt();\n\t\t String s1 = text.substring(0, x);\n\t\t String s2 = text.substring(x);\n\t\t text = s2 + s1;\n\t\t }\n System.out.println(text);\n\t\t}\n\t\t\n \n\t\t\n\t\t\n }\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t String text = sc.next();\n\t\t if (\"-\".equals(text)) {\n\t\t break;\n\t\t }\n\t\t //行数\n\t\t int n = sc.nextInt();\n\t\t for (int i = 0; i < n; i++) {\n\t\t int x = sc.nextInt();\n\t\t String s1 = text.substring(0, x);\n\t\t String s2 = text.substring(x);\n\t\t text = s2 + s1;\n\t\t }\n System.out.println(text);\n\t\t}\n\t\t\n \n\t\t\n\t\t\n }",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t String text = sc.next();\n\t\t if (\"-\".equals(text)) {\n\t\t break;\n\t\t }\n\t\t //行数\n\t\t int n = sc.nextInt();\n\t\t for (int i = 0; i < n; i++) {\n\t\t int x = sc.nextInt();\n\t\t String s1 = text.substring(0, x);\n\t\t String s2 = text.substring(x);\n\t\t text = s2 + s1;\n\t\t }\n System.out.println(text);\n\t\t}\n\t\t\n \n\t\t\n\t\t\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while (true) {\n\t\t String text = sc.next();\n\t\t if (\"-\".equals(text)) {\n\t\t break;\n\t\t }\n\t\t //行数\n\t\t int n = sc.nextInt();\n\t\t for (int i = 0; i < n; i++) {\n\t\t int x = sc.nextInt();\n\t\t String s1 = text.substring(0, x);\n\t\t String s2 = text.substring(x);\n\t\t text = s2 + s1;\n\t\t }\n System.out.println(text);\n\t\t}",
"true",
"{\n\t\t String text = sc.next();\n\t\t if (\"-\".equals(text)) {\n\t\t break;\n\t\t }\n\t\t //行数\n\t\t int n = sc.nextInt();\n\t\t for (int i = 0; i < n; i++) {\n\t\t int x = sc.nextInt();\n\t\t String s1 = text.substring(0, x);\n\t\t String s2 = text.substring(x);\n\t\t text = s2 + s1;\n\t\t }\n System.out.println(text);\n\t\t}",
"String text = sc.next();",
"text",
"sc.next()",
"sc.next",
"sc",
"if (\"-\".equals(text)) {\n\t\t break;\n\t\t }",
"\"-\".equals(text)",
"\"-\".equals",
"\"-\"",
"text",
"{\n\t\t break;\n\t\t }",
"break;",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < n; i++) {\n\t\t int x = sc.nextInt();\n\t\t String s1 = text.substring(0, x);\n\t\t String s2 = text.substring(x);\n\t\t text = s2 + s1;\n\t\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t int x = sc.nextInt();\n\t\t String s1 = text.substring(0, x);\n\t\t String s2 = text.substring(x);\n\t\t text = s2 + s1;\n\t\t }",
"{\n\t\t int x = sc.nextInt();\n\t\t String s1 = text.substring(0, x);\n\t\t String s2 = text.substring(x);\n\t\t text = s2 + s1;\n\t\t }",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s1 = text.substring(0, x);",
"s1",
"text.substring(0, x)",
"text.substring",
"text",
"0",
"x",
"String s2 = text.substring(x);",
"s2",
"text.substring(x)",
"text.substring",
"text",
"x",
"text = s2 + s1",
"text",
"s2 + s1",
"s2",
"s1",
"System.out.println(text)",
"System.out.println",
"System.out",
"System",
"System.out",
"text",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t String text = sc.next();\n\t\t if (\"-\".equals(text)) {\n\t\t break;\n\t\t }\n\t\t //行数\n\t\t int n = sc.nextInt();\n\t\t for (int i = 0; i < n; i++) {\n\t\t int x = sc.nextInt();\n\t\t String s1 = text.substring(0, x);\n\t\t String s2 = text.substring(x);\n\t\t text = s2 + s1;\n\t\t }\n System.out.println(text);\n\t\t}\n\t\t\n \n\t\t\n\t\t\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t String text = sc.next();\n\t\t if (\"-\".equals(text)) {\n\t\t break;\n\t\t }\n\t\t //行数\n\t\t int n = sc.nextInt();\n\t\t for (int i = 0; i < n; i++) {\n\t\t int x = sc.nextInt();\n\t\t String s1 = text.substring(0, x);\n\t\t String s2 = text.substring(x);\n\t\t text = s2 + s1;\n\t\t }\n System.out.println(text);\n\t\t}\n\t\t\n \n\t\t\n\t\t\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (true) {
String text = sc.next();
if ("-".equals(text)) {
break;
}
//行数
int n = sc.nextInt();
for (int i = 0; i < n; i++) {
int x = sc.nextInt();
String s1 = text.substring(0, x);
String s2 = text.substring(x);
text = s2 + s1;
}
System.out.println(text);
}
}
}
|
[
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,
4,
18,
13,
13,
4,
18,
13,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
4,
18,
13,
17,
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
],
[
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
],
[
54,
55
],
[
53,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
51,
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
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
6,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tString cards = scan.next();\n\t\t\tif (cards.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tint n = scan.nextInt();\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tcards = cards.substring(h, cards.length()).concat(cards.substring(0, h));\n\t\t\t}\n\t\t\tSystem.out.println(cards);\n\t\t}\n\t\tscan.close();\n\t\tSystem.exit(0);\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tString cards = scan.next();\n\t\t\tif (cards.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tint n = scan.nextInt();\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tcards = cards.substring(h, cards.length()).concat(cards.substring(0, h));\n\t\t\t}\n\t\t\tSystem.out.println(cards);\n\t\t}\n\t\tscan.close();\n\t\tSystem.exit(0);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tString cards = scan.next();\n\t\t\tif (cards.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tint n = scan.nextInt();\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tcards = cards.substring(h, cards.length()).concat(cards.substring(0, h));\n\t\t\t}\n\t\t\tSystem.out.println(cards);\n\t\t}\n\t\tscan.close();\n\t\tSystem.exit(0);\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tString cards = scan.next();\n\t\t\tif (cards.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tint n = scan.nextInt();\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tcards = cards.substring(h, cards.length()).concat(cards.substring(0, h));\n\t\t\t}\n\t\t\tSystem.out.println(cards);\n\t\t}\n\t\tscan.close();\n\t\tSystem.exit(0);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"while (true) {\n\t\t\tString cards = scan.next();\n\t\t\tif (cards.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tint n = scan.nextInt();\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tcards = cards.substring(h, cards.length()).concat(cards.substring(0, h));\n\t\t\t}\n\t\t\tSystem.out.println(cards);\n\t\t}",
"true",
"{\n\t\t\tString cards = scan.next();\n\t\t\tif (cards.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tint n = scan.nextInt();\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tcards = cards.substring(h, cards.length()).concat(cards.substring(0, h));\n\t\t\t}\n\t\t\tSystem.out.println(cards);\n\t\t}",
"String cards = scan.next();",
"cards",
"scan.next()",
"scan.next",
"scan",
"if (cards.equals(\"-\"))\n\t\t\t\tbreak;",
"cards.equals(\"-\")",
"cards.equals",
"cards",
"\"-\"",
"break;",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int i = 0; i < n; i++) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tcards = cards.substring(h, cards.length()).concat(cards.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 = scan.nextInt();\n\t\t\t\tcards = cards.substring(h, cards.length()).concat(cards.substring(0, h));\n\t\t\t}",
"{\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tcards = cards.substring(h, cards.length()).concat(cards.substring(0, h));\n\t\t\t}",
"int h = scan.nextInt();",
"h",
"scan.nextInt()",
"scan.nextInt",
"scan",
"cards = cards.substring(h, cards.length()).concat(cards.substring(0, h))",
"cards",
"cards.substring(h, cards.length()).concat(cards.substring(0, h))",
"cards.substring(h, cards.length()).concat",
"cards.substring(h, cards.length())",
"cards.substring",
"cards",
"h",
"cards.length()",
"cards.length",
"cards",
"cards.substring(0, h)",
"cards.substring",
"cards",
"0",
"h",
"System.out.println(cards)",
"System.out.println",
"System.out",
"System",
"System.out",
"cards",
"scan.close()",
"scan.close",
"scan",
"System.exit(0)",
"System.exit",
"System",
"0",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tString cards = scan.next();\n\t\t\tif (cards.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tint n = scan.nextInt();\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tcards = cards.substring(h, cards.length()).concat(cards.substring(0, h));\n\t\t\t}\n\t\t\tSystem.out.println(cards);\n\t\t}\n\t\tscan.close();\n\t\tSystem.exit(0);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tString cards = scan.next();\n\t\t\tif (cards.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tint n = scan.nextInt();\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tcards = cards.substring(h, cards.length()).concat(cards.substring(0, h));\n\t\t\t}\n\t\t\tSystem.out.println(cards);\n\t\t}\n\t\tscan.close();\n\t\tSystem.exit(0);\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
while (true) {
String cards = scan.next();
if (cards.equals("-"))
break;
int n = scan.nextInt();
for (int i = 0; i < n; i++) {
int h = scan.nextInt();
cards = cards.substring(h, cards.length()).concat(cards.substring(0, h));
}
System.out.println(cards);
}
scan.close();
System.exit(0);
}
} |
[
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,
17,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
71,
5
],
[
71,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
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
],
[
52,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
57,
61
],
[
14,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
6,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n while (true) {\n String str = stdin.next();\n if (str.equals(\"-\")) {\n break;\n }\n\n int m = stdin.nextInt();\n for (int i = 0; i < m; i++) {\n int h = stdin.nextInt();\n str = str.substring(h) + str.substring(0, h);\n }\n System.out.println(str);\n }\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n while (true) {\n String str = stdin.next();\n if (str.equals(\"-\")) {\n break;\n }\n\n int m = stdin.nextInt();\n for (int i = 0; i < m; i++) {\n int h = stdin.nextInt();\n str = str.substring(h) + str.substring(0, h);\n }\n System.out.println(str);\n }\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n while (true) {\n String str = stdin.next();\n if (str.equals(\"-\")) {\n break;\n }\n\n int m = stdin.nextInt();\n for (int i = 0; i < m; i++) {\n int h = stdin.nextInt();\n str = str.substring(h) + str.substring(0, h);\n }\n System.out.println(str);\n }\n }",
"main",
"{\n Scanner stdin = new Scanner(System.in);\n while (true) {\n String str = stdin.next();\n if (str.equals(\"-\")) {\n break;\n }\n\n int m = stdin.nextInt();\n for (int i = 0; i < m; i++) {\n int h = stdin.nextInt();\n str = str.substring(h) + str.substring(0, h);\n }\n System.out.println(str);\n }\n }",
"Scanner stdin = new Scanner(System.in);",
"stdin",
"new Scanner(System.in)",
"while (true) {\n String str = stdin.next();\n if (str.equals(\"-\")) {\n break;\n }\n\n int m = stdin.nextInt();\n for (int i = 0; i < m; i++) {\n int h = stdin.nextInt();\n str = str.substring(h) + str.substring(0, h);\n }\n System.out.println(str);\n }",
"true",
"{\n String str = stdin.next();\n if (str.equals(\"-\")) {\n break;\n }\n\n int m = stdin.nextInt();\n for (int i = 0; i < m; i++) {\n int h = stdin.nextInt();\n str = str.substring(h) + str.substring(0, h);\n }\n System.out.println(str);\n }",
"String str = stdin.next();",
"str",
"stdin.next()",
"stdin.next",
"stdin",
"if (str.equals(\"-\")) {\n break;\n }",
"str.equals(\"-\")",
"str.equals",
"str",
"\"-\"",
"{\n break;\n }",
"break;",
"int m = stdin.nextInt();",
"m",
"stdin.nextInt()",
"stdin.nextInt",
"stdin",
"for (int i = 0; i < m; i++) {\n int h = stdin.nextInt();\n str = str.substring(h) + str.substring(0, h);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n int h = stdin.nextInt();\n str = str.substring(h) + str.substring(0, h);\n }",
"{\n int h = stdin.nextInt();\n str = str.substring(h) + str.substring(0, h);\n }",
"int h = stdin.nextInt();",
"h",
"stdin.nextInt()",
"stdin.nextInt",
"stdin",
"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",
"public class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n while (true) {\n String str = stdin.next();\n if (str.equals(\"-\")) {\n break;\n }\n\n int m = stdin.nextInt();\n for (int i = 0; i < m; i++) {\n int h = stdin.nextInt();\n str = str.substring(h) + str.substring(0, h);\n }\n System.out.println(str);\n }\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n while (true) {\n String str = stdin.next();\n if (str.equals(\"-\")) {\n break;\n }\n\n int m = stdin.nextInt();\n for (int i = 0; i < m; i++) {\n int h = stdin.nextInt();\n str = str.substring(h) + str.substring(0, h);\n }\n System.out.println(str);\n }\n }\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdin = new Scanner(System.in);
while (true) {
String str = stdin.next();
if (str.equals("-")) {
break;
}
int m = stdin.nextInt();
for (int i = 0; i < m; i++) {
int h = stdin.nextInt();
str = str.substring(h) + str.substring(0, h);
}
System.out.println(str);
}
}
} |
[
7,
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,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
17,
4,
18,
13,
0,
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,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
91,
2
],
[
91,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
18,
21
],
[
17,
22
],
[
22,
23
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
11,
29
],
[
29,
30
],
[
11,
31
],
[
31,
32
],
[
31,
33
],
[
11,
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
],
[
48,
49
],
[
47,
50
],
[
47,
51
],
[
51,
52
],
[
52,
53
],
[
46,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
46,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
62,
66
],
[
66,
67
],
[
67,
68
],
[
46,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
72,
76
],
[
46,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
11,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
3,
88
],
[
88,
89
],
[
0,
90
],
[
90,
91
],
[
90,
92
]
]
| [
"public class Main {\n public static void main(String[] args) {\n\n java.util.Scanner sc = new java.util.Scanner(System.in);\n\n while (true) {\n String first = sc.next();\n if (first.equals(\"-\")) { break; }\n int m = sc.nextInt();\n int h;\n\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < m; i ++) {\n sb.delete(0, first.length());\n h = sc.nextInt();\n sb.append(first.substring(h, first.length()));\n sb.append(first.substring(0, h));\n first = sb.toString();\n }\n System.out.println(first);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\n java.util.Scanner sc = new java.util.Scanner(System.in);\n\n while (true) {\n String first = sc.next();\n if (first.equals(\"-\")) { break; }\n int m = sc.nextInt();\n int h;\n\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < m; i ++) {\n sb.delete(0, first.length());\n h = sc.nextInt();\n sb.append(first.substring(h, first.length()));\n sb.append(first.substring(0, h));\n first = sb.toString();\n }\n System.out.println(first);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n\n java.util.Scanner sc = new java.util.Scanner(System.in);\n\n while (true) {\n String first = sc.next();\n if (first.equals(\"-\")) { break; }\n int m = sc.nextInt();\n int h;\n\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < m; i ++) {\n sb.delete(0, first.length());\n h = sc.nextInt();\n sb.append(first.substring(h, first.length()));\n sb.append(first.substring(0, h));\n first = sb.toString();\n }\n System.out.println(first);\n }\n }",
"main",
"{\n\n java.util.Scanner sc = new java.util.Scanner(System.in);\n\n while (true) {\n String first = sc.next();\n if (first.equals(\"-\")) { break; }\n int m = sc.nextInt();\n int h;\n\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < m; i ++) {\n sb.delete(0, first.length());\n h = sc.nextInt();\n sb.append(first.substring(h, first.length()));\n sb.append(first.substring(0, h));\n first = sb.toString();\n }\n System.out.println(first);\n }\n }",
"java.util.Scanner sc = new java.util.Scanner(System.in);",
"sc",
"new java.util.Scanner(System.in)",
"while (true) {\n String first = sc.next();\n if (first.equals(\"-\")) { break; }\n int m = sc.nextInt();\n int h;\n\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < m; i ++) {\n sb.delete(0, first.length());\n h = sc.nextInt();\n sb.append(first.substring(h, first.length()));\n sb.append(first.substring(0, h));\n first = sb.toString();\n }\n System.out.println(first);\n }",
"true",
"{\n String first = sc.next();\n if (first.equals(\"-\")) { break; }\n int m = sc.nextInt();\n int h;\n\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < m; i ++) {\n sb.delete(0, first.length());\n h = sc.nextInt();\n sb.append(first.substring(h, first.length()));\n sb.append(first.substring(0, h));\n first = sb.toString();\n }\n System.out.println(first);\n }",
"String first = sc.next();",
"first",
"sc.next()",
"sc.next",
"sc",
"if (first.equals(\"-\")) { break; }",
"first.equals(\"-\")",
"first.equals",
"first",
"\"-\"",
"{ break; }",
"break;",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int h;",
"h",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"for (int i = 0; i < m; i ++) {\n sb.delete(0, first.length());\n h = sc.nextInt();\n sb.append(first.substring(h, first.length()));\n sb.append(first.substring(0, h));\n first = sb.toString();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i ++",
"i ++",
"i",
"{\n sb.delete(0, first.length());\n h = sc.nextInt();\n sb.append(first.substring(h, first.length()));\n sb.append(first.substring(0, h));\n first = sb.toString();\n }",
"{\n sb.delete(0, first.length());\n h = sc.nextInt();\n sb.append(first.substring(h, first.length()));\n sb.append(first.substring(0, h));\n first = sb.toString();\n }",
"sb.delete(0, first.length())",
"sb.delete",
"sb",
"0",
"first.length()",
"first.length",
"first",
"h = sc.nextInt()",
"h",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sb.append(first.substring(h, first.length()))",
"sb.append",
"sb",
"first.substring(h, first.length())",
"first.substring",
"first",
"h",
"first.length()",
"first.length",
"first",
"sb.append(first.substring(0, h))",
"sb.append",
"sb",
"first.substring(0, h)",
"first.substring",
"first",
"0",
"h",
"first = sb.toString()",
"first",
"sb.toString()",
"sb.toString",
"sb",
"System.out.println(first)",
"System.out.println",
"System.out",
"System",
"System.out",
"first",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n\n java.util.Scanner sc = new java.util.Scanner(System.in);\n\n while (true) {\n String first = sc.next();\n if (first.equals(\"-\")) { break; }\n int m = sc.nextInt();\n int h;\n\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < m; i ++) {\n sb.delete(0, first.length());\n h = sc.nextInt();\n sb.append(first.substring(h, first.length()));\n sb.append(first.substring(0, h));\n first = sb.toString();\n }\n System.out.println(first);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\n java.util.Scanner sc = new java.util.Scanner(System.in);\n\n while (true) {\n String first = sc.next();\n if (first.equals(\"-\")) { break; }\n int m = sc.nextInt();\n int h;\n\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < m; i ++) {\n sb.delete(0, first.length());\n h = sc.nextInt();\n sb.append(first.substring(h, first.length()));\n sb.append(first.substring(0, h));\n first = sb.toString();\n }\n System.out.println(first);\n }\n }\n}",
"Main"
]
| public class Main {
public static void main(String[] args) {
java.util.Scanner sc = new java.util.Scanner(System.in);
while (true) {
String first = sc.next();
if (first.equals("-")) { break; }
int m = sc.nextInt();
int h;
StringBuilder sb = new StringBuilder();
for (int i = 0; i < m; i ++) {
sb.delete(0, first.length());
h = sc.nextInt();
sb.append(first.substring(h, first.length()));
sb.append(first.substring(0, h));
first = sb.toString();
}
System.out.println(first);
}
}
} |
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
17,
13,
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
],
[
68,
2
],
[
68,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
18,
21
],
[
17,
22
],
[
22,
23
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
11,
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
],
[
51,
52
],
[
50,
53
],
[
49,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
54,
58
],
[
11,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
3,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
]
]
| [
"public class Main {\n\tpublic static void main(String[] args){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\twhile(true){\n\t\t\tString str = scan.next();\n\t\t\tif(\"-\".equals(str)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint n = scan.nextInt();\n\t\t\tfor(int i = 0; i < n;i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tstr = str.substring(h)+str.substring(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\n\t\t}\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\twhile(true){\n\t\t\tString str = scan.next();\n\t\t\tif(\"-\".equals(str)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint n = scan.nextInt();\n\t\t\tfor(int i = 0; i < n;i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tstr = str.substring(h)+str.substring(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\twhile(true){\n\t\t\tString str = scan.next();\n\t\t\tif(\"-\".equals(str)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint n = scan.nextInt();\n\t\t\tfor(int i = 0; i < n;i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tstr = str.substring(h)+str.substring(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\n\t\t}\n\t}",
"main",
"{\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\twhile(true){\n\t\t\tString str = scan.next();\n\t\t\tif(\"-\".equals(str)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint n = scan.nextInt();\n\t\t\tfor(int i = 0; i < n;i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tstr = str.substring(h)+str.substring(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\n\t\t}\n\t}",
"java.util.Scanner scan = new java.util.Scanner(System.in);",
"scan",
"new java.util.Scanner(System.in)",
"while(true){\n\t\t\tString str = scan.next();\n\t\t\tif(\"-\".equals(str)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint n = scan.nextInt();\n\t\t\tfor(int i = 0; i < n;i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tstr = str.substring(h)+str.substring(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\n\t\t}",
"true",
"{\n\t\t\tString str = scan.next();\n\t\t\tif(\"-\".equals(str)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint n = scan.nextInt();\n\t\t\tfor(int i = 0; i < n;i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tstr = str.substring(h)+str.substring(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\n\t\t}",
"String str = scan.next();",
"str",
"scan.next()",
"scan.next",
"scan",
"if(\"-\".equals(str)){\n\t\t\t\tbreak;\n\t\t\t}",
"\"-\".equals(str)",
"\"-\".equals",
"\"-\"",
"str",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 0; i < n;i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tstr = str.substring(h)+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 = scan.nextInt();\n\t\t\t\tstr = str.substring(h)+str.substring(0, h);\n\t\t\t}",
"{\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tstr = str.substring(h)+str.substring(0, h);\n\t\t\t}",
"int h = scan.nextInt();",
"h",
"scan.nextInt()",
"scan.nextInt",
"scan",
"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",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\twhile(true){\n\t\t\tString str = scan.next();\n\t\t\tif(\"-\".equals(str)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint n = scan.nextInt();\n\t\t\tfor(int i = 0; i < n;i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tstr = str.substring(h)+str.substring(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\n\t\t}\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\twhile(true){\n\t\t\tString str = scan.next();\n\t\t\tif(\"-\".equals(str)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint n = scan.nextInt();\n\t\t\tfor(int i = 0; i < n;i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tstr = str.substring(h)+str.substring(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\n\t\t}\n\t}\n\n}",
"Main"
]
| public class Main {
public static void main(String[] args){
java.util.Scanner scan = new java.util.Scanner(System.in);
while(true){
String str = scan.next();
if("-".equals(str)){
break;
}
int n = scan.nextInt();
for(int i = 0; i < n;i++){
int h = scan.nextInt();
str = str.substring(h)+str.substring(0, h);
}
System.out.println(str);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
20,
42,
17,
30,
0,
13,
20,
14,
2,
4,
18,
13,
17,
13,
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,
41,
13,
4,
18,
13,
17,
13,
4,
18,
13,
17,
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
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
28,
33
],
[
27,
34
],
[
34,
35
],
[
23,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
23,
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
],
[
67,
68
],
[
66,
69
],
[
66,
70
],
[
53,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
23,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
8,
81
],
[
81,
82
],
[
82,
83
],
[
6,
84
],
[
84,
85
]
]
| [
"import java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tStringBuilder cardset;\n\t\tint shufflecount;\n\t\tint h;\n\t\tfinal char END = '-';\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tcardset = new StringBuilder(stdIn.next());\n\t\t\tif(cardset.charAt(0) == END) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tshufflecount = stdIn.nextInt();\n\n\t\t\tfor(int i = 0; i < shufflecount; i++) {\n\t\t\t\th = stdIn.nextInt();\n\t\t\t\tString s = cardset.substring(0, h);\n\t\t\t\tcardset.delete(0, h);\n\t\t\t\tcardset.append(s);\n\t\t\t}\n\t\t\tSystem.out.println(cardset);\n\t\t}\n\t\tstdIn.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tStringBuilder cardset;\n\t\tint shufflecount;\n\t\tint h;\n\t\tfinal char END = '-';\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tcardset = new StringBuilder(stdIn.next());\n\t\t\tif(cardset.charAt(0) == END) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tshufflecount = stdIn.nextInt();\n\n\t\t\tfor(int i = 0; i < shufflecount; i++) {\n\t\t\t\th = stdIn.nextInt();\n\t\t\t\tString s = cardset.substring(0, h);\n\t\t\t\tcardset.delete(0, h);\n\t\t\t\tcardset.append(s);\n\t\t\t}\n\t\t\tSystem.out.println(cardset);\n\t\t}\n\t\tstdIn.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tStringBuilder cardset;\n\t\tint shufflecount;\n\t\tint h;\n\t\tfinal char END = '-';\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tcardset = new StringBuilder(stdIn.next());\n\t\t\tif(cardset.charAt(0) == END) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tshufflecount = stdIn.nextInt();\n\n\t\t\tfor(int i = 0; i < shufflecount; i++) {\n\t\t\t\th = stdIn.nextInt();\n\t\t\t\tString s = cardset.substring(0, h);\n\t\t\t\tcardset.delete(0, h);\n\t\t\t\tcardset.append(s);\n\t\t\t}\n\t\t\tSystem.out.println(cardset);\n\t\t}\n\t\tstdIn.close();\n\t}",
"main",
"{\n\n\t\tStringBuilder cardset;\n\t\tint shufflecount;\n\t\tint h;\n\t\tfinal char END = '-';\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tcardset = new StringBuilder(stdIn.next());\n\t\t\tif(cardset.charAt(0) == END) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tshufflecount = stdIn.nextInt();\n\n\t\t\tfor(int i = 0; i < shufflecount; i++) {\n\t\t\t\th = stdIn.nextInt();\n\t\t\t\tString s = cardset.substring(0, h);\n\t\t\t\tcardset.delete(0, h);\n\t\t\t\tcardset.append(s);\n\t\t\t}\n\t\t\tSystem.out.println(cardset);\n\t\t}\n\t\tstdIn.close();\n\t}",
"StringBuilder cardset;",
"cardset",
"int shufflecount;",
"shufflecount",
"int h;",
"h",
"final char END = '-';",
"END",
"'-'",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"while(true) {\n\t\t\tcardset = new StringBuilder(stdIn.next());\n\t\t\tif(cardset.charAt(0) == END) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tshufflecount = stdIn.nextInt();\n\n\t\t\tfor(int i = 0; i < shufflecount; i++) {\n\t\t\t\th = stdIn.nextInt();\n\t\t\t\tString s = cardset.substring(0, h);\n\t\t\t\tcardset.delete(0, h);\n\t\t\t\tcardset.append(s);\n\t\t\t}\n\t\t\tSystem.out.println(cardset);\n\t\t}",
"true",
"{\n\t\t\tcardset = new StringBuilder(stdIn.next());\n\t\t\tif(cardset.charAt(0) == END) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tshufflecount = stdIn.nextInt();\n\n\t\t\tfor(int i = 0; i < shufflecount; i++) {\n\t\t\t\th = stdIn.nextInt();\n\t\t\t\tString s = cardset.substring(0, h);\n\t\t\t\tcardset.delete(0, h);\n\t\t\t\tcardset.append(s);\n\t\t\t}\n\t\t\tSystem.out.println(cardset);\n\t\t}",
"cardset = new StringBuilder(stdIn.next())",
"cardset",
"new StringBuilder(stdIn.next())",
"if(cardset.charAt(0) == END) {\n\t\t\t\tbreak;\n\t\t\t}",
"cardset.charAt(0) == END",
"cardset.charAt(0)",
"cardset.charAt",
"cardset",
"0",
"END",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"shufflecount = stdIn.nextInt()",
"shufflecount",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"for(int i = 0; i < shufflecount; i++) {\n\t\t\t\th = stdIn.nextInt();\n\t\t\t\tString s = cardset.substring(0, h);\n\t\t\t\tcardset.delete(0, h);\n\t\t\t\tcardset.append(s);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < shufflecount",
"i",
"shufflecount",
"i++",
"i++",
"i",
"{\n\t\t\t\th = stdIn.nextInt();\n\t\t\t\tString s = cardset.substring(0, h);\n\t\t\t\tcardset.delete(0, h);\n\t\t\t\tcardset.append(s);\n\t\t\t}",
"{\n\t\t\t\th = stdIn.nextInt();\n\t\t\t\tString s = cardset.substring(0, h);\n\t\t\t\tcardset.delete(0, h);\n\t\t\t\tcardset.append(s);\n\t\t\t}",
"h = stdIn.nextInt()",
"h",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"String s = cardset.substring(0, h);",
"s",
"cardset.substring(0, h)",
"cardset.substring",
"cardset",
"0",
"h",
"cardset.delete(0, h)",
"cardset.delete",
"cardset",
"0",
"h",
"cardset.append(s)",
"cardset.append",
"cardset",
"s",
"System.out.println(cardset)",
"System.out.println",
"System.out",
"System",
"System.out",
"cardset",
"stdIn.close()",
"stdIn.close",
"stdIn",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main {
public static void main(String[] args) {
StringBuilder cardset;
int shufflecount;
int h;
final char END = '-';
Scanner stdIn = new Scanner(System.in);
while(true) {
cardset = new StringBuilder(stdIn.next());
if(cardset.charAt(0) == END) {
break;
}
shufflecount = stdIn.nextInt();
for(int i = 0; i < shufflecount; i++) {
h = stdIn.nextInt();
String s = cardset.substring(0, h);
cardset.delete(0, h);
cardset.append(s);
}
System.out.println(cardset);
}
stdIn.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
41,
13,
41,
13,
20,
41,
13,
17,
42,
40,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
41,
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,
41,
13,
20,
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,
2,
18,
13,
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,
18,
13,
13,
13,
13,
18,
13,
13,
40,
13,
4,
18,
13,
4,
18,
13,
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
],
[
183,
5
],
[
183,
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
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
22,
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
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
42,
47
],
[
47,
48
],
[
42,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
67,
73
],
[
73,
74
],
[
73,
75
],
[
67,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
94,
96
],
[
67,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
97,
109
],
[
109,
110
],
[
110,
111
],
[
97,
112
],
[
113,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
120,
122
],
[
67,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
123,
128
],
[
128,
129
],
[
128,
130
],
[
123,
131
],
[
131,
132
],
[
132,
133
],
[
123,
134
],
[
135,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
139,
145
],
[
136,
146
],
[
146,
147
],
[
146,
148
],
[
31,
149
],
[
149,
150
],
[
31,
151
],
[
151,
152
],
[
152,
153
],
[
151,
154
],
[
154,
155
],
[
155,
156
],
[
154,
157
],
[
8,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
158,
163
],
[
163,
164
],
[
163,
165
],
[
158,
166
],
[
166,
167
],
[
167,
168
],
[
158,
169
],
[
170,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
171,
176
],
[
176,
177
],
[
177,
178
],
[
176,
179
],
[
6,
180
],
[
180,
181
],
[
0,
182
],
[
182,
183
],
[
182,
184
]
]
| [
"import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString card = \"\";\n\t\tint h;\n\t\tint m;\n\t\tArrayList<String> al = new ArrayList<>();\n\t\tint cnt = 0;\n\t\twhile(!(card.equals(\"-\"))) {\n\t\t\tcard = sc.next();\n\t\t\tchar[] cardArray = card.toCharArray();\n\t\t\tif(card.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\t\th = sc.nextInt();\n\t\t\t\t\tchar[] tmp = new char[h];\n\t\t\t\t\tfor(int j = 0; j < h; j++) {\n\t\t\t\t\t\ttmp[j] = cardArray[j];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int k = 0; k < cardArray.length - h; k++) {\n\t\t\t\t\t\tcardArray[k] = cardArray[k + h];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int l = 0; l < h; l++) {\n\t\t\t\t\t\tcardArray[cardArray.length - h + l] = tmp[l];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcnt++;\n\t\t\tal.add(String.valueOf(cardArray));\n\t\t}\n\t\tfor(int i = 0; i < cnt; i++) {\n\t\t\tSystem.out.println(al.get(i));\n\t\t}\n\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString card = \"\";\n\t\tint h;\n\t\tint m;\n\t\tArrayList<String> al = new ArrayList<>();\n\t\tint cnt = 0;\n\t\twhile(!(card.equals(\"-\"))) {\n\t\t\tcard = sc.next();\n\t\t\tchar[] cardArray = card.toCharArray();\n\t\t\tif(card.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\t\th = sc.nextInt();\n\t\t\t\t\tchar[] tmp = new char[h];\n\t\t\t\t\tfor(int j = 0; j < h; j++) {\n\t\t\t\t\t\ttmp[j] = cardArray[j];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int k = 0; k < cardArray.length - h; k++) {\n\t\t\t\t\t\tcardArray[k] = cardArray[k + h];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int l = 0; l < h; l++) {\n\t\t\t\t\t\tcardArray[cardArray.length - h + l] = tmp[l];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcnt++;\n\t\t\tal.add(String.valueOf(cardArray));\n\t\t}\n\t\tfor(int i = 0; i < cnt; i++) {\n\t\t\tSystem.out.println(al.get(i));\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString card = \"\";\n\t\tint h;\n\t\tint m;\n\t\tArrayList<String> al = new ArrayList<>();\n\t\tint cnt = 0;\n\t\twhile(!(card.equals(\"-\"))) {\n\t\t\tcard = sc.next();\n\t\t\tchar[] cardArray = card.toCharArray();\n\t\t\tif(card.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\t\th = sc.nextInt();\n\t\t\t\t\tchar[] tmp = new char[h];\n\t\t\t\t\tfor(int j = 0; j < h; j++) {\n\t\t\t\t\t\ttmp[j] = cardArray[j];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int k = 0; k < cardArray.length - h; k++) {\n\t\t\t\t\t\tcardArray[k] = cardArray[k + h];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int l = 0; l < h; l++) {\n\t\t\t\t\t\tcardArray[cardArray.length - h + l] = tmp[l];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcnt++;\n\t\t\tal.add(String.valueOf(cardArray));\n\t\t}\n\t\tfor(int i = 0; i < cnt; i++) {\n\t\t\tSystem.out.println(al.get(i));\n\t\t}\n\n\t}",
"main",
"{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString card = \"\";\n\t\tint h;\n\t\tint m;\n\t\tArrayList<String> al = new ArrayList<>();\n\t\tint cnt = 0;\n\t\twhile(!(card.equals(\"-\"))) {\n\t\t\tcard = sc.next();\n\t\t\tchar[] cardArray = card.toCharArray();\n\t\t\tif(card.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\t\th = sc.nextInt();\n\t\t\t\t\tchar[] tmp = new char[h];\n\t\t\t\t\tfor(int j = 0; j < h; j++) {\n\t\t\t\t\t\ttmp[j] = cardArray[j];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int k = 0; k < cardArray.length - h; k++) {\n\t\t\t\t\t\tcardArray[k] = cardArray[k + h];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int l = 0; l < h; l++) {\n\t\t\t\t\t\tcardArray[cardArray.length - h + l] = tmp[l];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcnt++;\n\t\t\tal.add(String.valueOf(cardArray));\n\t\t}\n\t\tfor(int i = 0; i < cnt; i++) {\n\t\t\tSystem.out.println(al.get(i));\n\t\t}\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String card = \"\";",
"card",
"\"\"",
"int h;",
"h",
"int m;",
"m",
"ArrayList<String> al = new ArrayList<>();",
"al",
"new ArrayList<>()",
"int cnt = 0;",
"cnt",
"0",
"while(!(card.equals(\"-\"))) {\n\t\t\tcard = sc.next();\n\t\t\tchar[] cardArray = card.toCharArray();\n\t\t\tif(card.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\t\th = sc.nextInt();\n\t\t\t\t\tchar[] tmp = new char[h];\n\t\t\t\t\tfor(int j = 0; j < h; j++) {\n\t\t\t\t\t\ttmp[j] = cardArray[j];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int k = 0; k < cardArray.length - h; k++) {\n\t\t\t\t\t\tcardArray[k] = cardArray[k + h];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int l = 0; l < h; l++) {\n\t\t\t\t\t\tcardArray[cardArray.length - h + l] = tmp[l];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcnt++;\n\t\t\tal.add(String.valueOf(cardArray));\n\t\t}",
"!(card.equals(\"-\"))",
"(card.equals(\"-\"))",
"card.equals",
"card",
"\"-\"",
"{\n\t\t\tcard = sc.next();\n\t\t\tchar[] cardArray = card.toCharArray();\n\t\t\tif(card.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\t\th = sc.nextInt();\n\t\t\t\t\tchar[] tmp = new char[h];\n\t\t\t\t\tfor(int j = 0; j < h; j++) {\n\t\t\t\t\t\ttmp[j] = cardArray[j];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int k = 0; k < cardArray.length - h; k++) {\n\t\t\t\t\t\tcardArray[k] = cardArray[k + h];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int l = 0; l < h; l++) {\n\t\t\t\t\t\tcardArray[cardArray.length - h + l] = tmp[l];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcnt++;\n\t\t\tal.add(String.valueOf(cardArray));\n\t\t}",
"card = sc.next()",
"card",
"sc.next()",
"sc.next",
"sc",
"char[] cardArray = card.toCharArray();",
"cardArray",
"card.toCharArray()",
"card.toCharArray",
"card",
"if(card.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\t\th = sc.nextInt();\n\t\t\t\t\tchar[] tmp = new char[h];\n\t\t\t\t\tfor(int j = 0; j < h; j++) {\n\t\t\t\t\t\ttmp[j] = cardArray[j];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int k = 0; k < cardArray.length - h; k++) {\n\t\t\t\t\t\tcardArray[k] = cardArray[k + h];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int l = 0; l < h; l++) {\n\t\t\t\t\t\tcardArray[cardArray.length - h + l] = tmp[l];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"card.equals(\"-\")",
"card.equals",
"card",
"\"-\"",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"{\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\t\th = sc.nextInt();\n\t\t\t\t\tchar[] tmp = new char[h];\n\t\t\t\t\tfor(int j = 0; j < h; j++) {\n\t\t\t\t\t\ttmp[j] = cardArray[j];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int k = 0; k < cardArray.length - h; k++) {\n\t\t\t\t\t\tcardArray[k] = cardArray[k + h];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int l = 0; l < h; l++) {\n\t\t\t\t\t\tcardArray[cardArray.length - h + l] = tmp[l];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"m = sc.nextInt()",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < m; i++) {\n\t\t\t\t\th = sc.nextInt();\n\t\t\t\t\tchar[] tmp = new char[h];\n\t\t\t\t\tfor(int j = 0; j < h; j++) {\n\t\t\t\t\t\ttmp[j] = cardArray[j];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int k = 0; k < cardArray.length - h; k++) {\n\t\t\t\t\t\tcardArray[k] = cardArray[k + h];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int l = 0; l < h; l++) {\n\t\t\t\t\t\tcardArray[cardArray.length - h + l] = tmp[l];\n\t\t\t\t\t}\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 = sc.nextInt();\n\t\t\t\t\tchar[] tmp = new char[h];\n\t\t\t\t\tfor(int j = 0; j < h; j++) {\n\t\t\t\t\t\ttmp[j] = cardArray[j];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int k = 0; k < cardArray.length - h; k++) {\n\t\t\t\t\t\tcardArray[k] = cardArray[k + h];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int l = 0; l < h; l++) {\n\t\t\t\t\t\tcardArray[cardArray.length - h + l] = tmp[l];\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\th = sc.nextInt();\n\t\t\t\t\tchar[] tmp = new char[h];\n\t\t\t\t\tfor(int j = 0; j < h; j++) {\n\t\t\t\t\t\ttmp[j] = cardArray[j];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int k = 0; k < cardArray.length - h; k++) {\n\t\t\t\t\t\tcardArray[k] = cardArray[k + h];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int l = 0; l < h; l++) {\n\t\t\t\t\t\tcardArray[cardArray.length - h + l] = tmp[l];\n\t\t\t\t\t}\n\t\t\t\t}",
"h = sc.nextInt()",
"h",
"sc.nextInt()",
"sc.nextInt",
"sc",
"char[] tmp = new char[h];",
"tmp",
"new char[h]",
"h",
"for(int j = 0; j < h; j++) {\n\t\t\t\t\t\ttmp[j] = cardArray[j];\n\t\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < h",
"j",
"h",
"j++",
"j++",
"j",
"{\n\t\t\t\t\t\ttmp[j] = cardArray[j];\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\ttmp[j] = cardArray[j];\n\t\t\t\t\t}",
"tmp[j] = cardArray[j]",
"tmp[j]",
"tmp",
"j",
"cardArray[j]",
"cardArray",
"j",
"for(int k = 0; k < cardArray.length - h; k++) {\n\t\t\t\t\t\tcardArray[k] = cardArray[k + h];\n\t\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < cardArray.length - h",
"k",
"cardArray.length - h",
"cardArray.length",
"cardArray",
"cardArray.length",
"h",
"k++",
"k++",
"k",
"{\n\t\t\t\t\t\tcardArray[k] = cardArray[k + h];\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tcardArray[k] = cardArray[k + h];\n\t\t\t\t\t}",
"cardArray[k] = cardArray[k + h]",
"cardArray[k]",
"cardArray",
"k",
"cardArray[k + h]",
"cardArray",
"k + h",
"k",
"h",
"for(int l = 0; l < h; l++) {\n\t\t\t\t\t\tcardArray[cardArray.length - h + l] = tmp[l];\n\t\t\t\t\t}",
"int l = 0;",
"int l = 0;",
"l",
"0",
"l < h",
"l",
"h",
"l++",
"l++",
"l",
"{\n\t\t\t\t\t\tcardArray[cardArray.length - h + l] = tmp[l];\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tcardArray[cardArray.length - h + l] = tmp[l];\n\t\t\t\t\t}",
"cardArray[cardArray.length - h + l] = tmp[l]",
"cardArray[cardArray.length - h + l]",
"cardArray",
"cardArray.length - h + l",
"cardArray.length - h",
"cardArray.length",
"cardArray",
"cardArray.length",
"h",
"l",
"tmp[l]",
"tmp",
"l",
"cnt++",
"cnt",
"al.add(String.valueOf(cardArray))",
"al.add",
"al",
"String.valueOf(cardArray)",
"String.valueOf",
"String",
"cardArray",
"for(int i = 0; i < cnt; i++) {\n\t\t\tSystem.out.println(al.get(i));\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < cnt",
"i",
"cnt",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(al.get(i));\n\t\t}",
"{\n\t\t\tSystem.out.println(al.get(i));\n\t\t}",
"System.out.println(al.get(i))",
"System.out.println",
"System.out",
"System",
"System.out",
"al.get(i)",
"al.get",
"al",
"i",
"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\t\t\n\t\tString card = \"\";\n\t\tint h;\n\t\tint m;\n\t\tArrayList<String> al = new ArrayList<>();\n\t\tint cnt = 0;\n\t\twhile(!(card.equals(\"-\"))) {\n\t\t\tcard = sc.next();\n\t\t\tchar[] cardArray = card.toCharArray();\n\t\t\tif(card.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\t\th = sc.nextInt();\n\t\t\t\t\tchar[] tmp = new char[h];\n\t\t\t\t\tfor(int j = 0; j < h; j++) {\n\t\t\t\t\t\ttmp[j] = cardArray[j];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int k = 0; k < cardArray.length - h; k++) {\n\t\t\t\t\t\tcardArray[k] = cardArray[k + h];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int l = 0; l < h; l++) {\n\t\t\t\t\t\tcardArray[cardArray.length - h + l] = tmp[l];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcnt++;\n\t\t\tal.add(String.valueOf(cardArray));\n\t\t}\n\t\tfor(int i = 0; i < cnt; i++) {\n\t\t\tSystem.out.println(al.get(i));\n\t\t}\n\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\t\t\n\t\tString card = \"\";\n\t\tint h;\n\t\tint m;\n\t\tArrayList<String> al = new ArrayList<>();\n\t\tint cnt = 0;\n\t\twhile(!(card.equals(\"-\"))) {\n\t\t\tcard = sc.next();\n\t\t\tchar[] cardArray = card.toCharArray();\n\t\t\tif(card.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\t\th = sc.nextInt();\n\t\t\t\t\tchar[] tmp = new char[h];\n\t\t\t\t\tfor(int j = 0; j < h; j++) {\n\t\t\t\t\t\ttmp[j] = cardArray[j];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int k = 0; k < cardArray.length - h; k++) {\n\t\t\t\t\t\tcardArray[k] = cardArray[k + h];\n\t\t\t\t\t}\n\t\t\t\t\tfor(int l = 0; l < h; l++) {\n\t\t\t\t\t\tcardArray[cardArray.length - h + l] = tmp[l];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcnt++;\n\t\t\tal.add(String.valueOf(cardArray));\n\t\t}\n\t\tfor(int i = 0; i < cnt; i++) {\n\t\t\tSystem.out.println(al.get(i));\n\t\t}\n\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String card = "";
int h;
int m;
ArrayList<String> al = new ArrayList<>();
int cnt = 0;
while(!(card.equals("-"))) {
card = sc.next();
char[] cardArray = card.toCharArray();
if(card.equals("-")) {
break;
} else {
m = sc.nextInt();
for(int i = 0; i < m; i++) {
h = sc.nextInt();
char[] tmp = new char[h];
for(int j = 0; j < h; j++) {
tmp[j] = cardArray[j];
}
for(int k = 0; k < cardArray.length - h; k++) {
cardArray[k] = cardArray[k + h];
}
for(int l = 0; l < h; l++) {
cardArray[cardArray.length - h + l] = tmp[l];
}
}
}
cnt++;
al.add(String.valueOf(cardArray));
}
for(int i = 0; i < cnt; i++) {
System.out.println(al.get(i));
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
42,
17,
30,
0,
18,
13,
13,
4,
18,
13,
14,
4,
18,
18,
13,
13,
17,
3,
0,
13,
4,
18,
13,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
18,
13,
13,
0,
13,
4,
18,
18,
13,
13,
17,
13,
0,
13,
4,
18,
18,
13,
13,
13,
0,
18,
13,
40,
13,
2,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
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
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
37,
44
],
[
29,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
29,
50
],
[
50,
51
],
[
50,
52
],
[
29,
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
],
[
29,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
29,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
80,
86
],
[
29,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
29,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
8,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
103,
111
],
[
111,
112
],
[
112,
113
],
[
103,
114
],
[
115,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
121,
122
],
[
121,
123
],
[
6,
124
],
[
124,
125
]
]
| [
"import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n String[] array = new String[10];\n String s1, s2;\n int m, h, counter = 0;\n while(true){\n array[counter] = scanner.next();\n if(array[counter].equals(\"-\"))break;\n m = scanner.nextInt();\n h = 0;\n for(int i = 0; i < m; i++){\n h += scanner.nextInt();\n }\n h %= array[counter].length();\n s1 = array[counter].substring(0, h);\n s2 = array[counter].substring(h);\n array[counter++] = s2 + s1;\n }\n for(int i = 0; i < counter; i++){\n System.out.println(array[i]);\n }\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n String[] array = new String[10];\n String s1, s2;\n int m, h, counter = 0;\n while(true){\n array[counter] = scanner.next();\n if(array[counter].equals(\"-\"))break;\n m = scanner.nextInt();\n h = 0;\n for(int i = 0; i < m; i++){\n h += scanner.nextInt();\n }\n h %= array[counter].length();\n s1 = array[counter].substring(0, h);\n s2 = array[counter].substring(h);\n array[counter++] = s2 + s1;\n }\n for(int i = 0; i < counter; i++){\n System.out.println(array[i]);\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n String[] array = new String[10];\n String s1, s2;\n int m, h, counter = 0;\n while(true){\n array[counter] = scanner.next();\n if(array[counter].equals(\"-\"))break;\n m = scanner.nextInt();\n h = 0;\n for(int i = 0; i < m; i++){\n h += scanner.nextInt();\n }\n h %= array[counter].length();\n s1 = array[counter].substring(0, h);\n s2 = array[counter].substring(h);\n array[counter++] = s2 + s1;\n }\n for(int i = 0; i < counter; i++){\n System.out.println(array[i]);\n }\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n String[] array = new String[10];\n String s1, s2;\n int m, h, counter = 0;\n while(true){\n array[counter] = scanner.next();\n if(array[counter].equals(\"-\"))break;\n m = scanner.nextInt();\n h = 0;\n for(int i = 0; i < m; i++){\n h += scanner.nextInt();\n }\n h %= array[counter].length();\n s1 = array[counter].substring(0, h);\n s2 = array[counter].substring(h);\n array[counter++] = s2 + s1;\n }\n for(int i = 0; i < counter; i++){\n System.out.println(array[i]);\n }\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"String[] array = new String[10];",
"array",
"new String[10]",
"10",
"String s1",
"s1",
"s2;",
"s2",
"int m",
"m",
"h",
"h",
"counter = 0;",
"counter",
"0",
"while(true){\n array[counter] = scanner.next();\n if(array[counter].equals(\"-\"))break;\n m = scanner.nextInt();\n h = 0;\n for(int i = 0; i < m; i++){\n h += scanner.nextInt();\n }\n h %= array[counter].length();\n s1 = array[counter].substring(0, h);\n s2 = array[counter].substring(h);\n array[counter++] = s2 + s1;\n }",
"true",
"{\n array[counter] = scanner.next();\n if(array[counter].equals(\"-\"))break;\n m = scanner.nextInt();\n h = 0;\n for(int i = 0; i < m; i++){\n h += scanner.nextInt();\n }\n h %= array[counter].length();\n s1 = array[counter].substring(0, h);\n s2 = array[counter].substring(h);\n array[counter++] = s2 + s1;\n }",
"array[counter] = scanner.next()",
"array[counter]",
"array",
"counter",
"scanner.next()",
"scanner.next",
"scanner",
"if(array[counter].equals(\"-\"))break;",
"array[counter].equals(\"-\")",
"array[counter].equals",
"array[counter]",
"array",
"counter",
"\"-\"",
"break;",
"m = scanner.nextInt()",
"m",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"h = 0",
"h",
"0",
"for(int i = 0; i < m; i++){\n h += scanner.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n h += scanner.nextInt();\n }",
"{\n h += scanner.nextInt();\n }",
"h += scanner.nextInt()",
"h",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"h %= array[counter].length()",
"h",
"array[counter].length()",
"array[counter].length",
"array[counter]",
"array",
"counter",
"s1 = array[counter].substring(0, h)",
"s1",
"array[counter].substring(0, h)",
"array[counter].substring",
"array[counter]",
"array",
"counter",
"0",
"h",
"s2 = array[counter].substring(h)",
"s2",
"array[counter].substring(h)",
"array[counter].substring",
"array[counter]",
"array",
"counter",
"h",
"array[counter++] = s2 + s1",
"array[counter++]",
"array",
"counter++",
"counter",
"s2 + s1",
"s2",
"s1",
"for(int i = 0; i < counter; i++){\n System.out.println(array[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < counter",
"i",
"counter",
"i++",
"i++",
"i",
"{\n System.out.println(array[i]);\n }",
"{\n System.out.println(array[i]);\n }",
"System.out.println(array[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"array[i]",
"array",
"i",
"String[] args",
"args"
]
| import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
String[] array = new String[10];
String s1, s2;
int m, h, counter = 0;
while(true){
array[counter] = scanner.next();
if(array[counter].equals("-"))break;
m = scanner.nextInt();
h = 0;
for(int i = 0; i < m; i++){
h += scanner.nextInt();
}
h %= array[counter].length();
s1 = array[counter].substring(0, h);
s2 = array[counter].substring(h);
array[counter++] = s2 + s1;
}
for(int i = 0; i < counter; i++){
System.out.println(array[i]);
}
}
}
|
[
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,
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
],
[
83,
5
],
[
83,
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
],
[
58,
61
],
[
58,
62
],
[
47,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
47,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
14,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
6,
80
],
[
80,
81
],
[
0,
82
],
[
82,
83
],
[
82,
84
]
]
| [
"import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc =new Scanner(System.in);\n\t\twhile(true){\n\t\t\tString w = sc.nextLine();\n\t\t//break\t\n\t\t\tif(w.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\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 store1 = w.substring(0,h);\n\t\t\t\tString store2 = w.substring(h);\n\t\t\t\tw=store2+store1;\n\t\t\t}\n\t\t\tSystem.out.println(w);\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\twhile(true){\n\t\t\tString w = sc.nextLine();\n\t\t//break\t\n\t\t\tif(w.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\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 store1 = w.substring(0,h);\n\t\t\t\tString store2 = w.substring(h);\n\t\t\t\tw=store2+store1;\n\t\t\t}\n\t\t\tSystem.out.println(w);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc =new Scanner(System.in);\n\t\twhile(true){\n\t\t\tString w = sc.nextLine();\n\t\t//break\t\n\t\t\tif(w.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\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 store1 = w.substring(0,h);\n\t\t\t\tString store2 = w.substring(h);\n\t\t\t\tw=store2+store1;\n\t\t\t}\n\t\t\tSystem.out.println(w);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc =new Scanner(System.in);\n\t\twhile(true){\n\t\t\tString w = sc.nextLine();\n\t\t//break\t\n\t\t\tif(w.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\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 store1 = w.substring(0,h);\n\t\t\t\tString store2 = w.substring(h);\n\t\t\t\tw=store2+store1;\n\t\t\t}\n\t\t\tSystem.out.println(w);\n\t\t}\n\t}",
"Scanner sc =new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while(true){\n\t\t\tString w = sc.nextLine();\n\t\t//break\t\n\t\t\tif(w.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\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 store1 = w.substring(0,h);\n\t\t\t\tString store2 = w.substring(h);\n\t\t\t\tw=store2+store1;\n\t\t\t}\n\t\t\tSystem.out.println(w);\n\t\t}",
"true",
"{\n\t\t\tString w = sc.nextLine();\n\t\t//break\t\n\t\t\tif(w.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\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 store1 = w.substring(0,h);\n\t\t\t\tString store2 = w.substring(h);\n\t\t\t\tw=store2+store1;\n\t\t\t}\n\t\t\tSystem.out.println(w);\n\t\t}",
"String w = sc.nextLine();",
"w",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(w.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}",
"w.equals(\"-\")",
"w.equals",
"w",
"\"-\"",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"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 store1 = w.substring(0,h);\n\t\t\t\tString store2 = w.substring(h);\n\t\t\t\tw=store2+store1;\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 store1 = w.substring(0,h);\n\t\t\t\tString store2 = w.substring(h);\n\t\t\t\tw=store2+store1;\n\t\t\t}",
"{\n\t\t\t\tint h = Integer.parseInt(sc.nextLine());\n\t\t\t\tString store1 = w.substring(0,h);\n\t\t\t\tString store2 = w.substring(h);\n\t\t\t\tw=store2+store1;\n\t\t\t}",
"int h = Integer.parseInt(sc.nextLine());",
"h",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String store1 = w.substring(0,h);",
"store1",
"w.substring(0,h)",
"w.substring",
"w",
"0",
"h",
"String store2 = w.substring(h);",
"store2",
"w.substring(h)",
"w.substring",
"w",
"h",
"w=store2+store1",
"w",
"store2+store1",
"store2",
"store1",
"System.out.println(w)",
"System.out.println",
"System.out",
"System",
"System.out",
"w",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc =new Scanner(System.in);\n\t\twhile(true){\n\t\t\tString w = sc.nextLine();\n\t\t//break\t\n\t\t\tif(w.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\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 store1 = w.substring(0,h);\n\t\t\t\tString store2 = w.substring(h);\n\t\t\t\tw=store2+store1;\n\t\t\t}\n\t\t\tSystem.out.println(w);\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\twhile(true){\n\t\t\tString w = sc.nextLine();\n\t\t//break\t\n\t\t\tif(w.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\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 store1 = w.substring(0,h);\n\t\t\t\tString store2 = w.substring(h);\n\t\t\t\tw=store2+store1;\n\t\t\t}\n\t\t\tSystem.out.println(w);\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);
while(true){
String w = sc.nextLine();
//break
if(w.equals("-")){
break;
}
int m = Integer.parseInt(sc.nextLine());
for(int i=0;i<m;i++){
int h = Integer.parseInt(sc.nextLine());
String store1 = w.substring(0,h);
String store2 = w.substring(h);
w=store2+store1;
}
System.out.println(w);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
42,
17,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
41,
13,
4,
18,
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,
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
],
[
101,
11
],
[
101,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
14,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
30,
35
],
[
35,
36
],
[
24,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
43,
44
],
[
24,
45
],
[
45,
46
],
[
45,
47
],
[
24,
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
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
70,
71
],
[
61,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
74,
78
],
[
78,
79
],
[
78,
80
],
[
61,
81
],
[
81,
82
],
[
81,
83
],
[
61,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
89,
90
],
[
89,
91
],
[
24,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
12,
98
],
[
98,
99
],
[
0,
100
],
[
100,
101
],
[
100,
102
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader( new InputStreamReader(System.in));\n\t\tString n,sub;\n\n\t\twhile(true){\n\t\t\tn= br.readLine();\n\t\t\tif(n.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint num = Integer.parseInt(br.readLine());\n\t\t\tint h[] = new int[num];\n\t\t\tfor(int i = 0 ; i < num ; i++){\n\t\t\t\th[i]= Integer.parseInt(br.readLine());\n\t\t\t\tsub = n.substring(0, h[i]);\n\t\t\t\tn +=sub;\n\t\t\t\tn = n.substring(h[i]);\n\t\t\t}\n\t\t\tSystem.out.println(n);\n\t\t}\n\n\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader( new InputStreamReader(System.in));\n\t\tString n,sub;\n\n\t\twhile(true){\n\t\t\tn= br.readLine();\n\t\t\tif(n.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint num = Integer.parseInt(br.readLine());\n\t\t\tint h[] = new int[num];\n\t\t\tfor(int i = 0 ; i < num ; i++){\n\t\t\t\th[i]= Integer.parseInt(br.readLine());\n\t\t\t\tsub = n.substring(0, h[i]);\n\t\t\t\tn +=sub;\n\t\t\t\tn = n.substring(h[i]);\n\t\t\t}\n\t\t\tSystem.out.println(n);\n\t\t}\n\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader( new InputStreamReader(System.in));\n\t\tString n,sub;\n\n\t\twhile(true){\n\t\t\tn= br.readLine();\n\t\t\tif(n.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint num = Integer.parseInt(br.readLine());\n\t\t\tint h[] = new int[num];\n\t\t\tfor(int i = 0 ; i < num ; i++){\n\t\t\t\th[i]= Integer.parseInt(br.readLine());\n\t\t\t\tsub = n.substring(0, h[i]);\n\t\t\t\tn +=sub;\n\t\t\t\tn = n.substring(h[i]);\n\t\t\t}\n\t\t\tSystem.out.println(n);\n\t\t}\n\n\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader( new InputStreamReader(System.in));\n\t\tString n,sub;\n\n\t\twhile(true){\n\t\t\tn= br.readLine();\n\t\t\tif(n.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint num = Integer.parseInt(br.readLine());\n\t\t\tint h[] = new int[num];\n\t\t\tfor(int i = 0 ; i < num ; i++){\n\t\t\t\th[i]= Integer.parseInt(br.readLine());\n\t\t\t\tsub = n.substring(0, h[i]);\n\t\t\t\tn +=sub;\n\t\t\t\tn = n.substring(h[i]);\n\t\t\t}\n\t\t\tSystem.out.println(n);\n\t\t}\n\n\n\t}",
"BufferedReader br = new BufferedReader( new InputStreamReader(System.in));",
"br",
"new BufferedReader( new InputStreamReader(System.in))",
"String n",
"n",
"sub;",
"sub",
"while(true){\n\t\t\tn= br.readLine();\n\t\t\tif(n.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint num = Integer.parseInt(br.readLine());\n\t\t\tint h[] = new int[num];\n\t\t\tfor(int i = 0 ; i < num ; i++){\n\t\t\t\th[i]= Integer.parseInt(br.readLine());\n\t\t\t\tsub = n.substring(0, h[i]);\n\t\t\t\tn +=sub;\n\t\t\t\tn = n.substring(h[i]);\n\t\t\t}\n\t\t\tSystem.out.println(n);\n\t\t}",
"true",
"{\n\t\t\tn= br.readLine();\n\t\t\tif(n.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint num = Integer.parseInt(br.readLine());\n\t\t\tint h[] = new int[num];\n\t\t\tfor(int i = 0 ; i < num ; i++){\n\t\t\t\th[i]= Integer.parseInt(br.readLine());\n\t\t\t\tsub = n.substring(0, h[i]);\n\t\t\t\tn +=sub;\n\t\t\t\tn = n.substring(h[i]);\n\t\t\t}\n\t\t\tSystem.out.println(n);\n\t\t}",
"n= br.readLine()",
"n",
"br.readLine()",
"br.readLine",
"br",
"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 num = Integer.parseInt(br.readLine());",
"num",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int h[] = new int[num];",
"h",
"new int[num]",
"num",
"for(int i = 0 ; i < num ; i++){\n\t\t\t\th[i]= Integer.parseInt(br.readLine());\n\t\t\t\tsub = n.substring(0, h[i]);\n\t\t\t\tn +=sub;\n\t\t\t\tn = n.substring(h[i]);\n\t\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\t\th[i]= Integer.parseInt(br.readLine());\n\t\t\t\tsub = n.substring(0, h[i]);\n\t\t\t\tn +=sub;\n\t\t\t\tn = n.substring(h[i]);\n\t\t\t}",
"{\n\t\t\t\th[i]= Integer.parseInt(br.readLine());\n\t\t\t\tsub = n.substring(0, h[i]);\n\t\t\t\tn +=sub;\n\t\t\t\tn = n.substring(h[i]);\n\t\t\t}",
"h[i]= Integer.parseInt(br.readLine())",
"h[i]",
"h",
"i",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"sub = n.substring(0, h[i])",
"sub",
"n.substring(0, h[i])",
"n.substring",
"n",
"0",
"h[i]",
"h",
"i",
"n +=sub",
"n",
"sub",
"n = n.substring(h[i])",
"n",
"n.substring(h[i])",
"n.substring",
"n",
"h[i]",
"h",
"i",
"System.out.println(n)",
"System.out.println",
"System.out",
"System",
"System.out",
"n",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader( new InputStreamReader(System.in));\n\t\tString n,sub;\n\n\t\twhile(true){\n\t\t\tn= br.readLine();\n\t\t\tif(n.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint num = Integer.parseInt(br.readLine());\n\t\t\tint h[] = new int[num];\n\t\t\tfor(int i = 0 ; i < num ; i++){\n\t\t\t\th[i]= Integer.parseInt(br.readLine());\n\t\t\t\tsub = n.substring(0, h[i]);\n\t\t\t\tn +=sub;\n\t\t\t\tn = n.substring(h[i]);\n\t\t\t}\n\t\t\tSystem.out.println(n);\n\t\t}\n\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader( new InputStreamReader(System.in));\n\t\tString n,sub;\n\n\t\twhile(true){\n\t\t\tn= br.readLine();\n\t\t\tif(n.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint num = Integer.parseInt(br.readLine());\n\t\t\tint h[] = new int[num];\n\t\t\tfor(int i = 0 ; i < num ; i++){\n\t\t\t\th[i]= Integer.parseInt(br.readLine());\n\t\t\t\tsub = n.substring(0, h[i]);\n\t\t\t\tn +=sub;\n\t\t\t\tn = n.substring(h[i]);\n\t\t\t}\n\t\t\tSystem.out.println(n);\n\t\t}\n\n\n\t}\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader( new InputStreamReader(System.in));
String n,sub;
while(true){
n= br.readLine();
if(n.equals("-")){
break;
}
int num = Integer.parseInt(br.readLine());
int h[] = new int[num];
for(int i = 0 ; i < num ; i++){
h[i]= Integer.parseInt(br.readLine());
sub = n.substring(0, h[i]);
n +=sub;
n = n.substring(h[i]);
}
System.out.println(n);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
29,
2,
4,
18,
13,
13,
4,
18,
13,
4,
18,
13,
17,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
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,
0,
13,
4,
13,
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
],
[
93,
11
],
[
93,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
17,
21
],
[
21,
22
],
[
22,
23
],
[
16,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
24,
28
],
[
12,
29
],
[
29,
30
],
[
12,
31
],
[
31,
32
],
[
93,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
43,
50
],
[
41,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
51,
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
],
[
75,
77
],
[
75,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
82,
83
],
[
51,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
33,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
]
| [
"import java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.BufferedReader;\n \npublic class Main{\n static String shuffle(String origin , int h){\n return origin.substring(h , origin.length()) + origin.substring(0 , h);\n }\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line;\n \n while(!(line=br.readLine()).equals(\"-\")){\n int times = Integer.parseInt(br.readLine());\n for(int i = 0; i < times; i++){\n line = shuffle(line , Integer.parseInt(br.readLine()));\n }\n System.out.println(line);\n }\n \n }\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"public class Main{\n static String shuffle(String origin , int h){\n return origin.substring(h , origin.length()) + origin.substring(0 , h);\n }\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line;\n \n while(!(line=br.readLine()).equals(\"-\")){\n int times = Integer.parseInt(br.readLine());\n for(int i = 0; i < times; i++){\n line = shuffle(line , Integer.parseInt(br.readLine()));\n }\n System.out.println(line);\n }\n \n }\n}",
"Main",
"static String shuffle(String origin , int h){\n return origin.substring(h , origin.length()) + origin.substring(0 , h);\n }",
"shuffle",
"{\n return origin.substring(h , origin.length()) + origin.substring(0 , h);\n }",
"return origin.substring(h , origin.length()) + origin.substring(0 , h);",
"origin.substring(h , origin.length()) + origin.substring(0 , h)",
"origin.substring(h , origin.length())",
"origin.substring",
"origin",
"h",
"origin.length()",
"origin.length",
"origin",
"origin.substring(0 , h)",
"origin.substring",
"origin",
"0",
"h",
"String origin",
"origin",
"int h",
"h",
"public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line;\n \n while(!(line=br.readLine()).equals(\"-\")){\n int times = Integer.parseInt(br.readLine());\n for(int i = 0; i < times; i++){\n line = shuffle(line , Integer.parseInt(br.readLine()));\n }\n System.out.println(line);\n }\n \n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line;\n \n while(!(line=br.readLine()).equals(\"-\")){\n int times = Integer.parseInt(br.readLine());\n for(int i = 0; i < times; i++){\n line = shuffle(line , Integer.parseInt(br.readLine()));\n }\n System.out.println(line);\n }\n \n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String line;",
"line",
"while(!(line=br.readLine()).equals(\"-\")){\n int times = Integer.parseInt(br.readLine());\n for(int i = 0; i < times; i++){\n line = shuffle(line , Integer.parseInt(br.readLine()));\n }\n System.out.println(line);\n }",
"!(line=br.readLine()).equals(\"-\")",
"(line=br.readLine()).equals(\"-\")",
"(line=br.readLine()).equals",
"(line=br.readLine())",
"line",
"br.readLine()",
"br.readLine",
"br",
"\"-\"",
"{\n int times = Integer.parseInt(br.readLine());\n for(int i = 0; i < times; i++){\n line = shuffle(line , Integer.parseInt(br.readLine()));\n }\n System.out.println(line);\n }",
"int times = Integer.parseInt(br.readLine());",
"times",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int i = 0; i < times; i++){\n line = shuffle(line , Integer.parseInt(br.readLine()));\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < times",
"i",
"times",
"i++",
"i++",
"i",
"{\n line = shuffle(line , Integer.parseInt(br.readLine()));\n }",
"{\n line = shuffle(line , Integer.parseInt(br.readLine()));\n }",
"line = shuffle(line , Integer.parseInt(br.readLine()))",
"line",
"shuffle(line , Integer.parseInt(br.readLine()))",
"shuffle",
"line",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"System.out.println(line)",
"System.out.println",
"System.out",
"System",
"System.out",
"line",
"String[] args",
"args",
"public class Main{\n static String shuffle(String origin , int h){\n return origin.substring(h , origin.length()) + origin.substring(0 , h);\n }\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line;\n \n while(!(line=br.readLine()).equals(\"-\")){\n int times = Integer.parseInt(br.readLine());\n for(int i = 0; i < times; i++){\n line = shuffle(line , Integer.parseInt(br.readLine()));\n }\n System.out.println(line);\n }\n \n }\n}",
"public class Main{\n static String shuffle(String origin , int h){\n return origin.substring(h , origin.length()) + origin.substring(0 , h);\n }\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line;\n \n while(!(line=br.readLine()).equals(\"-\")){\n int times = Integer.parseInt(br.readLine());\n for(int i = 0; i < times; i++){\n line = shuffle(line , Integer.parseInt(br.readLine()));\n }\n System.out.println(line);\n }\n \n }\n}",
"Main"
]
| import java.io.IOException;
import java.io.InputStreamReader;
import java.io.BufferedReader;
public class Main{
static String shuffle(String origin , int h){
return origin.substring(h , origin.length()) + origin.substring(0 , h);
}
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line;
while(!(line=br.readLine()).equals("-")){
int times = Integer.parseInt(br.readLine());
for(int i = 0; i < times; i++){
line = shuffle(line , Integer.parseInt(br.readLine()));
}
System.out.println(line);
}
}
}
|
[
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,
3,
41,
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,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
86,
8
],
[
86,
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
],
[
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
],
[
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
],
[
20,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
11,
80
],
[
80,
81
],
[
81,
82
],
[
9,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
]
| [
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\twhile(true) {\n\t\t\tString str=in.next();\n\t\t\tif(str.equals(\"-\"))break;\n\t\t\tint m=in.nextInt();\n\t\t\t\n\t\t\tfor(int i=0;i<m;i++) {\n\t\t\t\tint h=Integer.parseInt(in.next());\n\t\t\t\tString str1=str.substring(0, h),str2=str.substring(h);\n\t\t\t\t//out.println(str1+\" \"+str2);\n\t\t\t\tstr=str2+str1;\n\t\t\t}\n\t\t\tout.println(str);\n\t\t}\n\t\tout.flush();\n\t}\n\n}\n",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\twhile(true) {\n\t\t\tString str=in.next();\n\t\t\tif(str.equals(\"-\"))break;\n\t\t\tint m=in.nextInt();\n\t\t\t\n\t\t\tfor(int i=0;i<m;i++) {\n\t\t\t\tint h=Integer.parseInt(in.next());\n\t\t\t\tString str1=str.substring(0, h),str2=str.substring(h);\n\t\t\t\t//out.println(str1+\" \"+str2);\n\t\t\t\tstr=str2+str1;\n\t\t\t}\n\t\t\tout.println(str);\n\t\t}\n\t\tout.flush();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\twhile(true) {\n\t\t\tString str=in.next();\n\t\t\tif(str.equals(\"-\"))break;\n\t\t\tint m=in.nextInt();\n\t\t\t\n\t\t\tfor(int i=0;i<m;i++) {\n\t\t\t\tint h=Integer.parseInt(in.next());\n\t\t\t\tString str1=str.substring(0, h),str2=str.substring(h);\n\t\t\t\t//out.println(str1+\" \"+str2);\n\t\t\t\tstr=str2+str1;\n\t\t\t}\n\t\t\tout.println(str);\n\t\t}\n\t\tout.flush();\n\t}",
"main",
"{\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\twhile(true) {\n\t\t\tString str=in.next();\n\t\t\tif(str.equals(\"-\"))break;\n\t\t\tint m=in.nextInt();\n\t\t\t\n\t\t\tfor(int i=0;i<m;i++) {\n\t\t\t\tint h=Integer.parseInt(in.next());\n\t\t\t\tString str1=str.substring(0, h),str2=str.substring(h);\n\t\t\t\t//out.println(str1+\" \"+str2);\n\t\t\t\tstr=str2+str1;\n\t\t\t}\n\t\t\tout.println(str);\n\t\t}\n\t\tout.flush();\n\t}",
"Scanner in=new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"PrintWriter out=new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"while(true) {\n\t\t\tString str=in.next();\n\t\t\tif(str.equals(\"-\"))break;\n\t\t\tint m=in.nextInt();\n\t\t\t\n\t\t\tfor(int i=0;i<m;i++) {\n\t\t\t\tint h=Integer.parseInt(in.next());\n\t\t\t\tString str1=str.substring(0, h),str2=str.substring(h);\n\t\t\t\t//out.println(str1+\" \"+str2);\n\t\t\t\tstr=str2+str1;\n\t\t\t}\n\t\t\tout.println(str);\n\t\t}",
"true",
"{\n\t\t\tString str=in.next();\n\t\t\tif(str.equals(\"-\"))break;\n\t\t\tint m=in.nextInt();\n\t\t\t\n\t\t\tfor(int i=0;i<m;i++) {\n\t\t\t\tint h=Integer.parseInt(in.next());\n\t\t\t\tString str1=str.substring(0, h),str2=str.substring(h);\n\t\t\t\t//out.println(str1+\" \"+str2);\n\t\t\t\tstr=str2+str1;\n\t\t\t}\n\t\t\tout.println(str);\n\t\t}",
"String str=in.next();",
"str",
"in.next()",
"in.next",
"in",
"if(str.equals(\"-\"))break;",
"str.equals(\"-\")",
"str.equals",
"str",
"\"-\"",
"break;",
"int m=in.nextInt();",
"m",
"in.nextInt()",
"in.nextInt",
"in",
"for(int i=0;i<m;i++) {\n\t\t\t\tint h=Integer.parseInt(in.next());\n\t\t\t\tString str1=str.substring(0, h),str2=str.substring(h);\n\t\t\t\t//out.println(str1+\" \"+str2);\n\t\t\t\tstr=str2+str1;\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(in.next());\n\t\t\t\tString str1=str.substring(0, h),str2=str.substring(h);\n\t\t\t\t//out.println(str1+\" \"+str2);\n\t\t\t\tstr=str2+str1;\n\t\t\t}",
"{\n\t\t\t\tint h=Integer.parseInt(in.next());\n\t\t\t\tString str1=str.substring(0, h),str2=str.substring(h);\n\t\t\t\t//out.println(str1+\" \"+str2);\n\t\t\t\tstr=str2+str1;\n\t\t\t}",
"int h=Integer.parseInt(in.next());",
"h",
"Integer.parseInt(in.next())",
"Integer.parseInt",
"Integer",
"in.next()",
"in.next",
"in",
"String str1=str.substring(0, h)",
"str1",
"str.substring(0, h)",
"str.substring",
"str",
"0",
"h",
"str2=str.substring(h);",
"str2",
"str.substring(h)",
"str.substring",
"str",
"h",
"str=str2+str1",
"str",
"str2+str1",
"str2",
"str1",
"out.println(str)",
"out.println",
"out",
"str",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\twhile(true) {\n\t\t\tString str=in.next();\n\t\t\tif(str.equals(\"-\"))break;\n\t\t\tint m=in.nextInt();\n\t\t\t\n\t\t\tfor(int i=0;i<m;i++) {\n\t\t\t\tint h=Integer.parseInt(in.next());\n\t\t\t\tString str1=str.substring(0, h),str2=str.substring(h);\n\t\t\t\t//out.println(str1+\" \"+str2);\n\t\t\t\tstr=str2+str1;\n\t\t\t}\n\t\t\tout.println(str);\n\t\t}\n\t\tout.flush();\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\twhile(true) {\n\t\t\tString str=in.next();\n\t\t\tif(str.equals(\"-\"))break;\n\t\t\tint m=in.nextInt();\n\t\t\t\n\t\t\tfor(int i=0;i<m;i++) {\n\t\t\t\tint h=Integer.parseInt(in.next());\n\t\t\t\tString str1=str.substring(0, h),str2=str.substring(h);\n\t\t\t\t//out.println(str1+\" \"+str2);\n\t\t\t\tstr=str2+str1;\n\t\t\t}\n\t\t\tout.println(str);\n\t\t}\n\t\tout.flush();\n\t}\n\n}",
"Main"
]
| import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
PrintWriter out=new PrintWriter(System.out);
while(true) {
String str=in.next();
if(str.equals("-"))break;
int m=in.nextInt();
for(int i=0;i<m;i++) {
int h=Integer.parseInt(in.next());
String str1=str.substring(0, h),str2=str.substring(h);
//out.println(str1+" "+str2);
str=str2+str1;
}
out.println(str);
}
out.flush();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
13,
4,
18,
13,
4,
18,
13,
0,
13,
4,
18,
13,
4,
18,
13,
2,
4,
18,
13,
13,
4,
18,
13,
17,
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
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
15,
17
],
[
13,
18
],
[
18,
19
],
[
18,
20
],
[
13,
21
],
[
21,
22
],
[
21,
23
],
[
23,
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
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
67,
68
],
[
26,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
26,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
77,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
82,
86
],
[
23,
87
],
[
87,
88
],
[
88,
89
],
[
21,
90
],
[
90,
91
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\n\nclass Main{\n private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n private static final PrintWriter out = new PrintWriter(System.out);\n public static void main(String[] Args) throws IOException{\n while(true){\n final String str = br.readLine();\n if(str.equals(\"-\")) break;\n final int m = Integer.parseInt(br.readLine());\n int h = 0;\n for(int i = 0; i<m; i++)\n h += Integer.parseInt(br.readLine());\n h %= str.length();\n out.println(str.substring(h)+str.substring(0, h));\n }\n out.flush();\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",
"class Main{\n private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n private static final PrintWriter out = new PrintWriter(System.out);\n public static void main(String[] Args) throws IOException{\n while(true){\n final String str = br.readLine();\n if(str.equals(\"-\")) break;\n final int m = Integer.parseInt(br.readLine());\n int h = 0;\n for(int i = 0; i<m; i++)\n h += Integer.parseInt(br.readLine());\n h %= str.length();\n out.println(str.substring(h)+str.substring(0, h));\n }\n out.flush();\n }\n}",
"Main",
"private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"private static final PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"public static void main(String[] Args) throws IOException{\n while(true){\n final String str = br.readLine();\n if(str.equals(\"-\")) break;\n final int m = Integer.parseInt(br.readLine());\n int h = 0;\n for(int i = 0; i<m; i++)\n h += Integer.parseInt(br.readLine());\n h %= str.length();\n out.println(str.substring(h)+str.substring(0, h));\n }\n out.flush();\n }",
"main",
"{\n while(true){\n final String str = br.readLine();\n if(str.equals(\"-\")) break;\n final int m = Integer.parseInt(br.readLine());\n int h = 0;\n for(int i = 0; i<m; i++)\n h += Integer.parseInt(br.readLine());\n h %= str.length();\n out.println(str.substring(h)+str.substring(0, h));\n }\n out.flush();\n }",
"while(true){\n final String str = br.readLine();\n if(str.equals(\"-\")) break;\n final int m = Integer.parseInt(br.readLine());\n int h = 0;\n for(int i = 0; i<m; i++)\n h += Integer.parseInt(br.readLine());\n h %= str.length();\n out.println(str.substring(h)+str.substring(0, h));\n }",
"true",
"{\n final String str = br.readLine();\n if(str.equals(\"-\")) break;\n final int m = Integer.parseInt(br.readLine());\n int h = 0;\n for(int i = 0; i<m; i++)\n h += Integer.parseInt(br.readLine());\n h %= str.length();\n out.println(str.substring(h)+str.substring(0, h));\n }",
"final String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"if(str.equals(\"-\")) break;",
"str.equals(\"-\")",
"str.equals",
"str",
"\"-\"",
"break;",
"final 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 h += Integer.parseInt(br.readLine());",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"h += Integer.parseInt(br.readLine());",
"h += Integer.parseInt(br.readLine())",
"h",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"h %= str.length()",
"h",
"str.length()",
"str.length",
"str",
"out.println(str.substring(h)+str.substring(0, h))",
"out.println",
"out",
"str.substring(h)+str.substring(0, h)",
"str.substring(h)",
"str.substring",
"str",
"h",
"str.substring(0, h)",
"str.substring",
"str",
"0",
"h",
"out.flush()",
"out.flush",
"out",
"String[] Args",
"Args"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
class Main{
private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
private static final PrintWriter out = new PrintWriter(System.out);
public static void main(String[] Args) throws IOException{
while(true){
final String str = br.readLine();
if(str.equals("-")) break;
final int m = Integer.parseInt(br.readLine());
int h = 0;
for(int i = 0; i<m; i++)
h += Integer.parseInt(br.readLine());
h %= str.length();
out.println(str.substring(h)+str.substring(0, h));
}
out.flush();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
17,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
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,
41,
13,
4,
18,
13,
17,
13,
41,
13,
4,
18,
13,
13,
4,
18,
13,
0,
13,
2,
13,
13,
0,
18,
13,
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
],
[
118,
11
],
[
118,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
22
],
[
22,
23
],
[
22,
24
],
[
14,
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
],
[
38,
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
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
38,
60
],
[
60,
61
],
[
61,
62
],
[
38,
63
],
[
27,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
27,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
69,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
81,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
89,
93
],
[
81,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
96,
100
],
[
100,
101
],
[
101,
102
],
[
81,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
105,
107
],
[
27,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
27,
113
],
[
113,
114
],
[
12,
115
],
[
115,
116
],
[
0,
117
],
[
117,
118
],
[
117,
119
]
]
| [
"import java.awt.print.Printable;\nimport java.util.Scanner;\nimport javax.sound.midi.SysexMessage;\n \npublic class Main{ \n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String strs[] = new String[100];\n int count2=0;\n while(true){\n String str = sc.next();\n //System.out.println(\"Str is \"+str);\n if(str.equals(\"-\"))\n {\n for(int j=0;j<count2;j++){\n System.out.println(strs[j]);\n }\n sc.close();\n break;\n }\n int num = sc.nextInt();\n //System.out.println(\"Num is \"+num);\n for(int i=0;i<num;i++)\n {\n int count=sc.nextInt();\n String str1=str.substring(0,count);\n String str2=str.substring(count,str.length());\n str = str2 + str1;\n //System.out.println(\"I is \"+i+\" str is \"+str);\n }\n strs[count2]=str;\n count2++;\n } \n } \n}",
"import java.awt.print.Printable;",
"Printable",
"java.awt.print",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import javax.sound.midi.SysexMessage;",
"SysexMessage",
"javax.sound.midi",
"public class Main{ \n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String strs[] = new String[100];\n int count2=0;\n while(true){\n String str = sc.next();\n //System.out.println(\"Str is \"+str);\n if(str.equals(\"-\"))\n {\n for(int j=0;j<count2;j++){\n System.out.println(strs[j]);\n }\n sc.close();\n break;\n }\n int num = sc.nextInt();\n //System.out.println(\"Num is \"+num);\n for(int i=0;i<num;i++)\n {\n int count=sc.nextInt();\n String str1=str.substring(0,count);\n String str2=str.substring(count,str.length());\n str = str2 + str1;\n //System.out.println(\"I is \"+i+\" str is \"+str);\n }\n strs[count2]=str;\n count2++;\n } \n } \n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String strs[] = new String[100];\n int count2=0;\n while(true){\n String str = sc.next();\n //System.out.println(\"Str is \"+str);\n if(str.equals(\"-\"))\n {\n for(int j=0;j<count2;j++){\n System.out.println(strs[j]);\n }\n sc.close();\n break;\n }\n int num = sc.nextInt();\n //System.out.println(\"Num is \"+num);\n for(int i=0;i<num;i++)\n {\n int count=sc.nextInt();\n String str1=str.substring(0,count);\n String str2=str.substring(count,str.length());\n str = str2 + str1;\n //System.out.println(\"I is \"+i+\" str is \"+str);\n }\n strs[count2]=str;\n count2++;\n } \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String strs[] = new String[100];\n int count2=0;\n while(true){\n String str = sc.next();\n //System.out.println(\"Str is \"+str);\n if(str.equals(\"-\"))\n {\n for(int j=0;j<count2;j++){\n System.out.println(strs[j]);\n }\n sc.close();\n break;\n }\n int num = sc.nextInt();\n //System.out.println(\"Num is \"+num);\n for(int i=0;i<num;i++)\n {\n int count=sc.nextInt();\n String str1=str.substring(0,count);\n String str2=str.substring(count,str.length());\n str = str2 + str1;\n //System.out.println(\"I is \"+i+\" str is \"+str);\n }\n strs[count2]=str;\n count2++;\n } \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String strs[] = new String[100];",
"strs",
"new String[100]",
"100",
"int count2=0;",
"count2",
"0",
"while(true){\n String str = sc.next();\n //System.out.println(\"Str is \"+str);\n if(str.equals(\"-\"))\n {\n for(int j=0;j<count2;j++){\n System.out.println(strs[j]);\n }\n sc.close();\n break;\n }\n int num = sc.nextInt();\n //System.out.println(\"Num is \"+num);\n for(int i=0;i<num;i++)\n {\n int count=sc.nextInt();\n String str1=str.substring(0,count);\n String str2=str.substring(count,str.length());\n str = str2 + str1;\n //System.out.println(\"I is \"+i+\" str is \"+str);\n }\n strs[count2]=str;\n count2++;\n }",
"true",
"{\n String str = sc.next();\n //System.out.println(\"Str is \"+str);\n if(str.equals(\"-\"))\n {\n for(int j=0;j<count2;j++){\n System.out.println(strs[j]);\n }\n sc.close();\n break;\n }\n int num = sc.nextInt();\n //System.out.println(\"Num is \"+num);\n for(int i=0;i<num;i++)\n {\n int count=sc.nextInt();\n String str1=str.substring(0,count);\n String str2=str.substring(count,str.length());\n str = str2 + str1;\n //System.out.println(\"I is \"+i+\" str is \"+str);\n }\n strs[count2]=str;\n count2++;\n }",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"if(str.equals(\"-\"))\n {\n for(int j=0;j<count2;j++){\n System.out.println(strs[j]);\n }\n sc.close();\n break;\n }",
"str.equals(\"-\")",
"str.equals",
"str",
"\"-\"",
"{\n for(int j=0;j<count2;j++){\n System.out.println(strs[j]);\n }\n sc.close();\n break;\n }",
"for(int j=0;j<count2;j++){\n System.out.println(strs[j]);\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<count2",
"j",
"count2",
"j++",
"j++",
"j",
"{\n System.out.println(strs[j]);\n }",
"{\n System.out.println(strs[j]);\n }",
"System.out.println(strs[j])",
"System.out.println",
"System.out",
"System",
"System.out",
"strs[j]",
"strs",
"j",
"sc.close()",
"sc.close",
"sc",
"break;",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i<num;i++)\n {\n int count=sc.nextInt();\n String str1=str.substring(0,count);\n String str2=str.substring(count,str.length());\n str = str2 + str1;\n //System.out.println(\"I is \"+i+\" str is \"+str);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<num",
"i",
"num",
"i++",
"i++",
"i",
"{\n int count=sc.nextInt();\n String str1=str.substring(0,count);\n String str2=str.substring(count,str.length());\n str = str2 + str1;\n //System.out.println(\"I is \"+i+\" str is \"+str);\n }",
"{\n int count=sc.nextInt();\n String str1=str.substring(0,count);\n String str2=str.substring(count,str.length());\n str = str2 + str1;\n //System.out.println(\"I is \"+i+\" str is \"+str);\n }",
"int count=sc.nextInt();",
"count",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String str1=str.substring(0,count);",
"str1",
"str.substring(0,count)",
"str.substring",
"str",
"0",
"count",
"String str2=str.substring(count,str.length());",
"str2",
"str.substring(count,str.length())",
"str.substring",
"str",
"count",
"str.length()",
"str.length",
"str",
"str = str2 + str1",
"str",
"str2 + str1",
"str2",
"str1",
"strs[count2]=str",
"strs[count2]",
"strs",
"count2",
"str",
"count2++",
"count2",
"String[] args",
"args",
"public class Main{ \n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String strs[] = new String[100];\n int count2=0;\n while(true){\n String str = sc.next();\n //System.out.println(\"Str is \"+str);\n if(str.equals(\"-\"))\n {\n for(int j=0;j<count2;j++){\n System.out.println(strs[j]);\n }\n sc.close();\n break;\n }\n int num = sc.nextInt();\n //System.out.println(\"Num is \"+num);\n for(int i=0;i<num;i++)\n {\n int count=sc.nextInt();\n String str1=str.substring(0,count);\n String str2=str.substring(count,str.length());\n str = str2 + str1;\n //System.out.println(\"I is \"+i+\" str is \"+str);\n }\n strs[count2]=str;\n count2++;\n } \n } \n}",
"public class Main{ \n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String strs[] = new String[100];\n int count2=0;\n while(true){\n String str = sc.next();\n //System.out.println(\"Str is \"+str);\n if(str.equals(\"-\"))\n {\n for(int j=0;j<count2;j++){\n System.out.println(strs[j]);\n }\n sc.close();\n break;\n }\n int num = sc.nextInt();\n //System.out.println(\"Num is \"+num);\n for(int i=0;i<num;i++)\n {\n int count=sc.nextInt();\n String str1=str.substring(0,count);\n String str2=str.substring(count,str.length());\n str = str2 + str1;\n //System.out.println(\"I is \"+i+\" str is \"+str);\n }\n strs[count2]=str;\n count2++;\n } \n } \n}",
"Main"
]
| import java.awt.print.Printable;
import java.util.Scanner;
import javax.sound.midi.SysexMessage;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String strs[] = new String[100];
int count2=0;
while(true){
String str = sc.next();
//System.out.println("Str is "+str);
if(str.equals("-"))
{
for(int j=0;j<count2;j++){
System.out.println(strs[j]);
}
sc.close();
break;
}
int num = sc.nextInt();
//System.out.println("Num is "+num);
for(int i=0;i<num;i++)
{
int count=sc.nextInt();
String str1=str.substring(0,count);
String str2=str.substring(count,str.length());
str = str2 + str1;
//System.out.println("I is "+i+" str is "+str);
}
strs[count2]=str;
count2++;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
41,
13,
20,
41,
13,
41,
13,
41,
13,
42,
2,
17,
0,
13,
4,
18,
13,
30,
14,
4,
18,
13,
17,
30,
3,
0,
13,
4,
18,
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,
4,
18,
13,
4,
18,
13,
4,
18,
13,
13,
13,
4,
18,
13,
4,
18,
13,
17,
13,
0,
13,
4,
18,
13,
4,
18,
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
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
12,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
25,
27
],
[
22,
28
],
[
28,
29
],
[
22,
30
],
[
30,
31
],
[
22,
32
],
[
32,
33
],
[
22,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
34,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
43,
48
],
[
48,
49
],
[
42,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
55,
56
],
[
56,
57
],
[
42,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
42,
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
],
[
78,
81
],
[
81,
82
],
[
82,
83
],
[
75,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
87,
91
],
[
75,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
95,
99
],
[
75,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
75,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
42,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
6,
115
],
[
115,
116
]
]
| [
"import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tString str;\n\t\t\tStringBuilder cards = new StringBuilder( 200+1 );\n\t\t\tint m, shuffle, len;\n\t while( null != ( str = kb.readLine() ) ) {\n\t \tif( str.equals( \"-\" ) ) { break; }\n\t \t\n\t \tm = Integer.parseInt( kb.readLine() );\n\t \tlen = str.length();\n\t \tfor( int i=0; i<m; i++ ) {\n\t \t\tshuffle = Integer.parseInt( kb.readLine() );\n\t \t\tcards.append( str.substring( shuffle, len ) );\n\t \t\tcards.append( str.substring( 0, shuffle ) );\n\t \t\tstr = cards.toString();\n\t \t\tcards.setLength( 0 );\n\t \t}\n\t \tSystem.out.println( str );\n\t \t\n\t }\n\t\t\t\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tString str;\n\t\t\tStringBuilder cards = new StringBuilder( 200+1 );\n\t\t\tint m, shuffle, len;\n\t while( null != ( str = kb.readLine() ) ) {\n\t \tif( str.equals( \"-\" ) ) { break; }\n\t \t\n\t \tm = Integer.parseInt( kb.readLine() );\n\t \tlen = str.length();\n\t \tfor( int i=0; i<m; i++ ) {\n\t \t\tshuffle = Integer.parseInt( kb.readLine() );\n\t \t\tcards.append( str.substring( shuffle, len ) );\n\t \t\tcards.append( str.substring( 0, shuffle ) );\n\t \t\tstr = cards.toString();\n\t \t\tcards.setLength( 0 );\n\t \t}\n\t \tSystem.out.println( str );\n\t \t\n\t }\n\t\t\t\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tString str;\n\t\t\tStringBuilder cards = new StringBuilder( 200+1 );\n\t\t\tint m, shuffle, len;\n\t while( null != ( str = kb.readLine() ) ) {\n\t \tif( str.equals( \"-\" ) ) { break; }\n\t \t\n\t \tm = Integer.parseInt( kb.readLine() );\n\t \tlen = str.length();\n\t \tfor( int i=0; i<m; i++ ) {\n\t \t\tshuffle = Integer.parseInt( kb.readLine() );\n\t \t\tcards.append( str.substring( shuffle, len ) );\n\t \t\tcards.append( str.substring( 0, shuffle ) );\n\t \t\tstr = cards.toString();\n\t \t\tcards.setLength( 0 );\n\t \t}\n\t \tSystem.out.println( str );\n\t \t\n\t }\n\t\t\t\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );\n\t\ttry {\n\t\t\tString str;\n\t\t\tStringBuilder cards = new StringBuilder( 200+1 );\n\t\t\tint m, shuffle, len;\n\t while( null != ( str = kb.readLine() ) ) {\n\t \tif( str.equals( \"-\" ) ) { break; }\n\t \t\n\t \tm = Integer.parseInt( kb.readLine() );\n\t \tlen = str.length();\n\t \tfor( int i=0; i<m; i++ ) {\n\t \t\tshuffle = Integer.parseInt( kb.readLine() );\n\t \t\tcards.append( str.substring( shuffle, len ) );\n\t \t\tcards.append( str.substring( 0, shuffle ) );\n\t \t\tstr = cards.toString();\n\t \t\tcards.setLength( 0 );\n\t \t}\n\t \tSystem.out.println( str );\n\t \t\n\t }\n\t\t\t\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}\n\t}",
"BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );",
"kb",
"new BufferedReader( new InputStreamReader( System.in ) )",
"try {\n\t\t\tString str;\n\t\t\tStringBuilder cards = new StringBuilder( 200+1 );\n\t\t\tint m, shuffle, len;\n\t while( null != ( str = kb.readLine() ) ) {\n\t \tif( str.equals( \"-\" ) ) { break; }\n\t \t\n\t \tm = Integer.parseInt( kb.readLine() );\n\t \tlen = str.length();\n\t \tfor( int i=0; i<m; i++ ) {\n\t \t\tshuffle = Integer.parseInt( kb.readLine() );\n\t \t\tcards.append( str.substring( shuffle, len ) );\n\t \t\tcards.append( str.substring( 0, shuffle ) );\n\t \t\tstr = cards.toString();\n\t \t\tcards.setLength( 0 );\n\t \t}\n\t \tSystem.out.println( str );\n\t \t\n\t }\n\t\t\t\n\t\t\t\n\t\t} catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}",
"catch( IOException e ) {\n\t\t\tSystem.err.println( e );\n\t\t}",
"IOException e",
"{\n\t\t\tSystem.err.println( e );\n\t\t}",
"System.err.println( e )",
"System.err.println",
"System.err",
"System",
"System.err",
"e",
"{\n\t\t\tString str;\n\t\t\tStringBuilder cards = new StringBuilder( 200+1 );\n\t\t\tint m, shuffle, len;\n\t while( null != ( str = kb.readLine() ) ) {\n\t \tif( str.equals( \"-\" ) ) { break; }\n\t \t\n\t \tm = Integer.parseInt( kb.readLine() );\n\t \tlen = str.length();\n\t \tfor( int i=0; i<m; i++ ) {\n\t \t\tshuffle = Integer.parseInt( kb.readLine() );\n\t \t\tcards.append( str.substring( shuffle, len ) );\n\t \t\tcards.append( str.substring( 0, shuffle ) );\n\t \t\tstr = cards.toString();\n\t \t\tcards.setLength( 0 );\n\t \t}\n\t \tSystem.out.println( str );\n\t \t\n\t }\n\t\t\t\n\t\t\t\n\t\t}",
"String str;",
"str",
"StringBuilder cards = new StringBuilder( 200+1 );",
"cards",
"new StringBuilder( 200+1 )",
"int m",
"m",
"shuffle",
"shuffle",
"len;",
"len",
"while( null != ( str = kb.readLine() ) ) {\n\t \tif( str.equals( \"-\" ) ) { break; }\n\t \t\n\t \tm = Integer.parseInt( kb.readLine() );\n\t \tlen = str.length();\n\t \tfor( int i=0; i<m; i++ ) {\n\t \t\tshuffle = Integer.parseInt( kb.readLine() );\n\t \t\tcards.append( str.substring( shuffle, len ) );\n\t \t\tcards.append( str.substring( 0, shuffle ) );\n\t \t\tstr = cards.toString();\n\t \t\tcards.setLength( 0 );\n\t \t}\n\t \tSystem.out.println( str );\n\t \t\n\t }",
"null != ( str = kb.readLine() )",
"null",
"( str = kb.readLine() )",
"str",
"kb.readLine()",
"kb.readLine",
"kb",
"{\n\t \tif( str.equals( \"-\" ) ) { break; }\n\t \t\n\t \tm = Integer.parseInt( kb.readLine() );\n\t \tlen = str.length();\n\t \tfor( int i=0; i<m; i++ ) {\n\t \t\tshuffle = Integer.parseInt( kb.readLine() );\n\t \t\tcards.append( str.substring( shuffle, len ) );\n\t \t\tcards.append( str.substring( 0, shuffle ) );\n\t \t\tstr = cards.toString();\n\t \t\tcards.setLength( 0 );\n\t \t}\n\t \tSystem.out.println( str );\n\t \t\n\t }",
"if( str.equals( \"-\" ) ) { break; }",
"str.equals( \"-\" )",
"str.equals",
"str",
"\"-\"",
"{ break; }",
"break;",
"m = Integer.parseInt( kb.readLine() )",
"m",
"Integer.parseInt( kb.readLine() )",
"Integer.parseInt",
"Integer",
"kb.readLine()",
"kb.readLine",
"kb",
"len = str.length()",
"len",
"str.length()",
"str.length",
"str",
"for( int i=0; i<m; i++ ) {\n\t \t\tshuffle = Integer.parseInt( kb.readLine() );\n\t \t\tcards.append( str.substring( shuffle, len ) );\n\t \t\tcards.append( str.substring( 0, shuffle ) );\n\t \t\tstr = cards.toString();\n\t \t\tcards.setLength( 0 );\n\t \t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t \t\tshuffle = Integer.parseInt( kb.readLine() );\n\t \t\tcards.append( str.substring( shuffle, len ) );\n\t \t\tcards.append( str.substring( 0, shuffle ) );\n\t \t\tstr = cards.toString();\n\t \t\tcards.setLength( 0 );\n\t \t}",
"{\n\t \t\tshuffle = Integer.parseInt( kb.readLine() );\n\t \t\tcards.append( str.substring( shuffle, len ) );\n\t \t\tcards.append( str.substring( 0, shuffle ) );\n\t \t\tstr = cards.toString();\n\t \t\tcards.setLength( 0 );\n\t \t}",
"shuffle = Integer.parseInt( kb.readLine() )",
"shuffle",
"Integer.parseInt( kb.readLine() )",
"Integer.parseInt",
"Integer",
"kb.readLine()",
"kb.readLine",
"kb",
"cards.append( str.substring( shuffle, len ) )",
"cards.append",
"cards",
"str.substring( shuffle, len )",
"str.substring",
"str",
"shuffle",
"len",
"cards.append( str.substring( 0, shuffle ) )",
"cards.append",
"cards",
"str.substring( 0, shuffle )",
"str.substring",
"str",
"0",
"shuffle",
"str = cards.toString()",
"str",
"cards.toString()",
"cards.toString",
"cards",
"cards.setLength( 0 )",
"cards.setLength",
"cards",
"0",
"System.out.println( str )",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"String[] args",
"args"
]
| import java.io.*;
class Main {
public static void main(String[] args) {
BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );
try {
String str;
StringBuilder cards = new StringBuilder( 200+1 );
int m, shuffle, len;
while( null != ( str = kb.readLine() ) ) {
if( str.equals( "-" ) ) { break; }
m = Integer.parseInt( kb.readLine() );
len = str.length();
for( int i=0; i<m; i++ ) {
shuffle = Integer.parseInt( kb.readLine() );
cards.append( str.substring( shuffle, len ) );
cards.append( str.substring( 0, shuffle ) );
str = cards.toString();
cards.setLength( 0 );
}
System.out.println( str );
}
} catch( IOException e ) {
System.err.println( e );
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
41,
13,
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,
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
],
[
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
],
[
16,
19
],
[
19,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
16,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
26,
31
],
[
16,
32
],
[
32,
33
],
[
32,
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
],
[
49,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
49,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
66,
70
],
[
49,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
16,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
6,
82
],
[
82,
83
],
[
0,
84
],
[
84,
85
],
[
84,
86
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n int m, n;\n String give = sc.next();\n if (give.equals(\"-\")) break;\n\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n n = sc.nextInt();\n String b = give.substring(n, give.length());\n String c = give.substring(0, n);\n give = b + c;\n }\n System.out.println(give);\n }\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n int m, n;\n String give = sc.next();\n if (give.equals(\"-\")) break;\n\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n n = sc.nextInt();\n String b = give.substring(n, give.length());\n String c = give.substring(0, n);\n give = b + c;\n }\n System.out.println(give);\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n int m, n;\n String give = sc.next();\n if (give.equals(\"-\")) break;\n\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n n = sc.nextInt();\n String b = give.substring(n, give.length());\n String c = give.substring(0, n);\n give = b + c;\n }\n System.out.println(give);\n }\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n int m, n;\n String give = sc.next();\n if (give.equals(\"-\")) break;\n\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n n = sc.nextInt();\n String b = give.substring(n, give.length());\n String c = give.substring(0, n);\n give = b + c;\n }\n System.out.println(give);\n }\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while (sc.hasNext()) {\n int m, n;\n String give = sc.next();\n if (give.equals(\"-\")) break;\n\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n n = sc.nextInt();\n String b = give.substring(n, give.length());\n String c = give.substring(0, n);\n give = b + c;\n }\n System.out.println(give);\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n int m, n;\n String give = sc.next();\n if (give.equals(\"-\")) break;\n\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n n = sc.nextInt();\n String b = give.substring(n, give.length());\n String c = give.substring(0, n);\n give = b + c;\n }\n System.out.println(give);\n }",
"int m",
"m",
"n;",
"n",
"String give = sc.next();",
"give",
"sc.next()",
"sc.next",
"sc",
"if (give.equals(\"-\")) break;",
"give.equals(\"-\")",
"give.equals",
"give",
"\"-\"",
"break;",
"m = sc.nextInt()",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < m; i++) {\n n = sc.nextInt();\n String b = give.substring(n, give.length());\n String c = give.substring(0, n);\n give = b + c;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n n = sc.nextInt();\n String b = give.substring(n, give.length());\n String c = give.substring(0, n);\n give = b + c;\n }",
"{\n n = sc.nextInt();\n String b = give.substring(n, give.length());\n String c = give.substring(0, n);\n give = b + c;\n }",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String b = give.substring(n, give.length());",
"b",
"give.substring(n, give.length())",
"give.substring",
"give",
"n",
"give.length()",
"give.length",
"give",
"String c = give.substring(0, n);",
"c",
"give.substring(0, n)",
"give.substring",
"give",
"0",
"n",
"give = b + c",
"give",
"b + c",
"b",
"c",
"System.out.println(give)",
"System.out.println",
"System.out",
"System",
"System.out",
"give",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n int m, n;\n String give = sc.next();\n if (give.equals(\"-\")) break;\n\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n n = sc.nextInt();\n String b = give.substring(n, give.length());\n String c = give.substring(0, n);\n give = b + c;\n }\n System.out.println(give);\n }\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n int m, n;\n String give = sc.next();\n if (give.equals(\"-\")) break;\n\n m = sc.nextInt();\n for (int i = 0; i < m; i++) {\n n = sc.nextInt();\n String b = give.substring(n, give.length());\n String c = give.substring(0, n);\n give = b + c;\n }\n System.out.println(give);\n }\n\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
int m, n;
String give = sc.next();
if (give.equals("-")) break;
m = sc.nextInt();
for (int i = 0; i < m; i++) {
n = sc.nextInt();
String b = give.substring(n, give.length());
String c = give.substring(0, n);
give = b + c;
}
System.out.println(give);
}
}
}
|
[
7,
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,
0,
13,
20,
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,
4,
18,
13,
4,
18,
13,
17,
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
],
[
90,
5
],
[
90,
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
],
[
17,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
17,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
17,
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
],
[
56,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
71,
75
],
[
56,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
76,
80
],
[
17,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
6,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
]
| [
"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\tStringBuilder sb = new StringBuilder();\n\n\t\twhile (true) {\n\t\t\tString line1 = sc.nextLine();\n\t\t\tif (line1.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsb = new StringBuilder(line1);\n\n\t\t\tString line2 = sc.nextLine();\n\t\t\tint m = Integer.parseInt(line2);\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tString line3 = sc.nextLine();\n\t\t\t\tint h = Integer.parseInt(line3);\n\t\t\t\tsb.append(sb.substring(0, h));\n\t\t\t\tsb.delete(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(sb);\n\t\t}\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile (true) {\n\t\t\tString line1 = sc.nextLine();\n\t\t\tif (line1.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsb = new StringBuilder(line1);\n\n\t\t\tString line2 = sc.nextLine();\n\t\t\tint m = Integer.parseInt(line2);\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tString line3 = sc.nextLine();\n\t\t\t\tint h = Integer.parseInt(line3);\n\t\t\t\tsb.append(sb.substring(0, h));\n\t\t\t\tsb.delete(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(sb);\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile (true) {\n\t\t\tString line1 = sc.nextLine();\n\t\t\tif (line1.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsb = new StringBuilder(line1);\n\n\t\t\tString line2 = sc.nextLine();\n\t\t\tint m = Integer.parseInt(line2);\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tString line3 = sc.nextLine();\n\t\t\t\tint h = Integer.parseInt(line3);\n\t\t\t\tsb.append(sb.substring(0, h));\n\t\t\t\tsb.delete(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(sb);\n\t\t}\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile (true) {\n\t\t\tString line1 = sc.nextLine();\n\t\t\tif (line1.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsb = new StringBuilder(line1);\n\n\t\t\tString line2 = sc.nextLine();\n\t\t\tint m = Integer.parseInt(line2);\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tString line3 = sc.nextLine();\n\t\t\t\tint h = Integer.parseInt(line3);\n\t\t\t\tsb.append(sb.substring(0, h));\n\t\t\t\tsb.delete(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(sb);\n\t\t}\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"while (true) {\n\t\t\tString line1 = sc.nextLine();\n\t\t\tif (line1.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsb = new StringBuilder(line1);\n\n\t\t\tString line2 = sc.nextLine();\n\t\t\tint m = Integer.parseInt(line2);\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tString line3 = sc.nextLine();\n\t\t\t\tint h = Integer.parseInt(line3);\n\t\t\t\tsb.append(sb.substring(0, h));\n\t\t\t\tsb.delete(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(sb);\n\t\t}",
"true",
"{\n\t\t\tString line1 = sc.nextLine();\n\t\t\tif (line1.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsb = new StringBuilder(line1);\n\n\t\t\tString line2 = sc.nextLine();\n\t\t\tint m = Integer.parseInt(line2);\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tString line3 = sc.nextLine();\n\t\t\t\tint h = Integer.parseInt(line3);\n\t\t\t\tsb.append(sb.substring(0, h));\n\t\t\t\tsb.delete(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(sb);\n\t\t}",
"String line1 = sc.nextLine();",
"line1",
"sc.nextLine()",
"sc.nextLine",
"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;",
"sb = new StringBuilder(line1)",
"sb",
"new StringBuilder(line1)",
"String line2 = sc.nextLine();",
"line2",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int m = Integer.parseInt(line2);",
"m",
"Integer.parseInt(line2)",
"Integer.parseInt",
"Integer",
"line2",
"for (int i = 0; i < m; i++) {\n\t\t\t\tString line3 = sc.nextLine();\n\t\t\t\tint h = Integer.parseInt(line3);\n\t\t\t\tsb.append(sb.substring(0, h));\n\t\t\t\tsb.delete(0, h);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\t\tString line3 = sc.nextLine();\n\t\t\t\tint h = Integer.parseInt(line3);\n\t\t\t\tsb.append(sb.substring(0, h));\n\t\t\t\tsb.delete(0, h);\n\t\t\t}",
"{\n\t\t\t\tString line3 = sc.nextLine();\n\t\t\t\tint h = Integer.parseInt(line3);\n\t\t\t\tsb.append(sb.substring(0, h));\n\t\t\t\tsb.delete(0, h);\n\t\t\t}",
"String line3 = sc.nextLine();",
"line3",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int h = Integer.parseInt(line3);",
"h",
"Integer.parseInt(line3)",
"Integer.parseInt",
"Integer",
"line3",
"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)",
"System.out.println",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile (true) {\n\t\t\tString line1 = sc.nextLine();\n\t\t\tif (line1.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsb = new StringBuilder(line1);\n\n\t\t\tString line2 = sc.nextLine();\n\t\t\tint m = Integer.parseInt(line2);\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tString line3 = sc.nextLine();\n\t\t\t\tint h = Integer.parseInt(line3);\n\t\t\t\tsb.append(sb.substring(0, h));\n\t\t\t\tsb.delete(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(sb);\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile (true) {\n\t\t\tString line1 = sc.nextLine();\n\t\t\tif (line1.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tsb = new StringBuilder(line1);\n\n\t\t\tString line2 = sc.nextLine();\n\t\t\tint m = Integer.parseInt(line2);\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tString line3 = sc.nextLine();\n\t\t\t\tint h = Integer.parseInt(line3);\n\t\t\t\tsb.append(sb.substring(0, h));\n\t\t\t\tsb.delete(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(sb);\n\t\t}\n\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
StringBuilder sb = new StringBuilder();
while (true) {
String line1 = sc.nextLine();
if (line1.equals("-")) {
break;
}
sb = new StringBuilder(line1);
String line2 = sc.nextLine();
int m = Integer.parseInt(line2);
for (int i = 0; i < m; i++) {
String line3 = sc.nextLine();
int h = Integer.parseInt(line3);
sb.append(sb.substring(0, h));
sb.delete(0, h);
}
System.out.println(sb);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
11,
1,
30,
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,
2,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
4,
18,
13,
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
],
[
107,
11
],
[
107,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
14,
25
],
[
25,
26
],
[
14,
27
],
[
27,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
38,
43
],
[
32,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
50,
51
],
[
32,
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
],
[
67,
70
],
[
70,
71
],
[
71,
72
],
[
64,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
75,
79
],
[
64,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
82,
90
],
[
32,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
91,
97
],
[
14,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
12,
104
],
[
104,
105
],
[
0,
106
],
[
106,
107
],
[
106,
108
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString line, str1;\n\t\tint m,h;\n\t\tfor(;;) {\n\t\t\tline = br.readLine();\n\t\t\tif(line.equals(\"-\")) break;\n\t\t\tm = Integer.parseInt(br.readLine());\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\th = Integer.parseInt(br.readLine());\n\t\t\t\tstr1 = line.substring(0, h);\n\t\t\t\tline = line.substring(h, line.length()) + str1;\n\t\t\t}\n\t\t\tsb.append(line).append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString line, str1;\n\t\tint m,h;\n\t\tfor(;;) {\n\t\t\tline = br.readLine();\n\t\t\tif(line.equals(\"-\")) break;\n\t\t\tm = Integer.parseInt(br.readLine());\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\th = Integer.parseInt(br.readLine());\n\t\t\t\tstr1 = line.substring(0, h);\n\t\t\t\tline = line.substring(h, line.length()) + str1;\n\t\t\t}\n\t\t\tsb.append(line).append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString line, str1;\n\t\tint m,h;\n\t\tfor(;;) {\n\t\t\tline = br.readLine();\n\t\t\tif(line.equals(\"-\")) break;\n\t\t\tm = Integer.parseInt(br.readLine());\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\th = Integer.parseInt(br.readLine());\n\t\t\t\tstr1 = line.substring(0, h);\n\t\t\t\tline = line.substring(h, line.length()) + str1;\n\t\t\t}\n\t\t\tsb.append(line).append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString line, str1;\n\t\tint m,h;\n\t\tfor(;;) {\n\t\t\tline = br.readLine();\n\t\t\tif(line.equals(\"-\")) break;\n\t\t\tm = Integer.parseInt(br.readLine());\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\th = Integer.parseInt(br.readLine());\n\t\t\t\tstr1 = line.substring(0, h);\n\t\t\t\tline = line.substring(h, line.length()) + str1;\n\t\t\t}\n\t\t\tsb.append(line).append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}",
"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",
"str1;",
"str1",
"int m",
"m",
"h;",
"h",
"for(;;) {\n\t\t\tline = br.readLine();\n\t\t\tif(line.equals(\"-\")) break;\n\t\t\tm = Integer.parseInt(br.readLine());\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\th = Integer.parseInt(br.readLine());\n\t\t\t\tstr1 = line.substring(0, h);\n\t\t\t\tline = line.substring(h, line.length()) + str1;\n\t\t\t}\n\t\t\tsb.append(line).append(\"\\n\");\n\t\t}",
";",
"{\n\t\t\tline = br.readLine();\n\t\t\tif(line.equals(\"-\")) break;\n\t\t\tm = Integer.parseInt(br.readLine());\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\th = Integer.parseInt(br.readLine());\n\t\t\t\tstr1 = line.substring(0, h);\n\t\t\t\tline = line.substring(h, line.length()) + str1;\n\t\t\t}\n\t\t\tsb.append(line).append(\"\\n\");\n\t\t}",
"{\n\t\t\tline = br.readLine();\n\t\t\tif(line.equals(\"-\")) break;\n\t\t\tm = Integer.parseInt(br.readLine());\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\th = Integer.parseInt(br.readLine());\n\t\t\t\tstr1 = line.substring(0, h);\n\t\t\t\tline = line.substring(h, line.length()) + str1;\n\t\t\t}\n\t\t\tsb.append(line).append(\"\\n\");\n\t\t}",
"line = br.readLine()",
"line",
"br.readLine()",
"br.readLine",
"br",
"if(line.equals(\"-\")) break;",
"line.equals(\"-\")",
"line.equals",
"line",
"\"-\"",
"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\t\t\t\th = Integer.parseInt(br.readLine());\n\t\t\t\tstr1 = line.substring(0, h);\n\t\t\t\tline = line.substring(h, line.length()) + str1;\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\t\th = Integer.parseInt(br.readLine());\n\t\t\t\tstr1 = line.substring(0, h);\n\t\t\t\tline = line.substring(h, line.length()) + str1;\n\t\t\t}",
"{\n\t\t\t\th = Integer.parseInt(br.readLine());\n\t\t\t\tstr1 = line.substring(0, h);\n\t\t\t\tline = line.substring(h, line.length()) + str1;\n\t\t\t}",
"h = Integer.parseInt(br.readLine())",
"h",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"str1 = line.substring(0, h)",
"str1",
"line.substring(0, h)",
"line.substring",
"line",
"0",
"h",
"line = line.substring(h, line.length()) + str1",
"line",
"line.substring(h, line.length()) + str1",
"line.substring(h, line.length())",
"line.substring",
"line",
"h",
"line.length()",
"line.length",
"line",
"str1",
"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",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString line, str1;\n\t\tint m,h;\n\t\tfor(;;) {\n\t\t\tline = br.readLine();\n\t\t\tif(line.equals(\"-\")) break;\n\t\t\tm = Integer.parseInt(br.readLine());\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\th = Integer.parseInt(br.readLine());\n\t\t\t\tstr1 = line.substring(0, h);\n\t\t\t\tline = line.substring(h, line.length()) + str1;\n\t\t\t}\n\t\t\tsb.append(line).append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString line, str1;\n\t\tint m,h;\n\t\tfor(;;) {\n\t\t\tline = br.readLine();\n\t\t\tif(line.equals(\"-\")) break;\n\t\t\tm = Integer.parseInt(br.readLine());\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\th = Integer.parseInt(br.readLine());\n\t\t\t\tstr1 = line.substring(0, h);\n\t\t\t\tline = line.substring(h, line.length()) + str1;\n\t\t\t}\n\t\t\tsb.append(line).append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
String line, str1;
int m,h;
for(;;) {
line = br.readLine();
if(line.equals("-")) break;
m = Integer.parseInt(br.readLine());
for(int i = 0; i < m; i++) {
h = Integer.parseInt(br.readLine());
str1 = line.substring(0, h);
line = line.substring(h, line.length()) + str1;
}
sb.append(line).append("\n");
}
System.out.print(sb);
}
} |
[
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,
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,
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
],
[
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
],
[
41,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
54,
58
],
[
41,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
61,
65
],
[
41,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
23,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
23,
77
],
[
77,
78
],
[
77,
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 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 n = scanner.nextInt();\n int l = s.length();\n String tmp1 = s.substring(0, n);\n String tmp2 = s.substring(n, l);\n s = tmp2 + tmp1;\n }\n System.out.println(s);\n s = scanner.next();\n }\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args ) {\n Scanner scanner = new Scanner(System.in);\n String s = scanner.next();\n while(!s.equals(\"-\")){\n int m = scanner.nextInt();\n for(int i = 0; i < m; i++){\n int n = scanner.nextInt();\n int l = s.length();\n String tmp1 = s.substring(0, n);\n String tmp2 = s.substring(n, l);\n s = tmp2 + tmp1;\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 n = scanner.nextInt();\n int l = s.length();\n String tmp1 = s.substring(0, n);\n String tmp2 = s.substring(n, l);\n s = tmp2 + tmp1;\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 n = scanner.nextInt();\n int l = s.length();\n String tmp1 = s.substring(0, n);\n String tmp2 = s.substring(n, l);\n s = tmp2 + tmp1;\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 n = scanner.nextInt();\n int l = s.length();\n String tmp1 = s.substring(0, n);\n String tmp2 = s.substring(n, l);\n s = tmp2 + tmp1;\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 n = scanner.nextInt();\n int l = s.length();\n String tmp1 = s.substring(0, n);\n String tmp2 = s.substring(n, l);\n s = tmp2 + tmp1;\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 n = scanner.nextInt();\n int l = s.length();\n String tmp1 = s.substring(0, n);\n String tmp2 = s.substring(n, l);\n s = tmp2 + tmp1;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n int n = scanner.nextInt();\n int l = s.length();\n String tmp1 = s.substring(0, n);\n String tmp2 = s.substring(n, l);\n s = tmp2 + tmp1;\n }",
"{\n int n = scanner.nextInt();\n int l = s.length();\n String tmp1 = s.substring(0, n);\n String tmp2 = s.substring(n, l);\n s = tmp2 + tmp1;\n }",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int l = s.length();",
"l",
"s.length()",
"s.length",
"s",
"String tmp1 = s.substring(0, n);",
"tmp1",
"s.substring(0, n)",
"s.substring",
"s",
"0",
"n",
"String tmp2 = s.substring(n, l);",
"tmp2",
"s.substring(n, l)",
"s.substring",
"s",
"n",
"l",
"s = tmp2 + tmp1",
"s",
"tmp2 + tmp1",
"tmp2",
"tmp1",
"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 n = scanner.nextInt();\n int l = s.length();\n String tmp1 = s.substring(0, n);\n String tmp2 = s.substring(n, l);\n s = tmp2 + tmp1;\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 n = scanner.nextInt();\n int l = s.length();\n String tmp1 = s.substring(0, n);\n String tmp2 = s.substring(n, l);\n s = tmp2 + tmp1;\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 n = scanner.nextInt();
int l = s.length();
String tmp1 = s.substring(0, n);
String tmp2 = s.substring(n, l);
s = tmp2 + tmp1;
}
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,
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,
20,
41,
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,
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
],
[
97,
11
],
[
97,
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
],
[
53,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
62,
63
],
[
63,
64
],
[
53,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
53,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
78,
82
],
[
53,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
20,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
12,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\twhile(true){\n\t\t\tString input = br.readLine();\n\t\t\t\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t\t\n\t\t\tint m = Integer.parseInt(br.readLine());\n\n\t\t\t//StringBuffer sb = new StringBuffer();\n\t\t\tfor(int i = 0; i < m ; i++){\n\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\t\n\t\t\t\tsb.append(input.substring(h, input.length()));\n\t\t\t\tsb.append(input.substring(0, h));\n\t\t\t\t\n\t\t\t\tinput = sb.toString();\n//\t\t\t\tSystem.out.println(\"i = \"+i+\" \"+input);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(input);\n\n\t\t}\n\t\t\n//\t\tSystem.out.println(count);\n\n//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\twhile(true){\n\t\t\tString input = br.readLine();\n\t\t\t\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t\t\n\t\t\tint m = Integer.parseInt(br.readLine());\n\n\t\t\t//StringBuffer sb = new StringBuffer();\n\t\t\tfor(int i = 0; i < m ; i++){\n\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\t\n\t\t\t\tsb.append(input.substring(h, input.length()));\n\t\t\t\tsb.append(input.substring(0, h));\n\t\t\t\t\n\t\t\t\tinput = sb.toString();\n//\t\t\t\tSystem.out.println(\"i = \"+i+\" \"+input);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(input);\n\n\t\t}\n\t\t\n//\t\tSystem.out.println(count);\n\n//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\twhile(true){\n\t\t\tString input = br.readLine();\n\t\t\t\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t\t\n\t\t\tint m = Integer.parseInt(br.readLine());\n\n\t\t\t//StringBuffer sb = new StringBuffer();\n\t\t\tfor(int i = 0; i < m ; i++){\n\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\t\n\t\t\t\tsb.append(input.substring(h, input.length()));\n\t\t\t\tsb.append(input.substring(0, h));\n\t\t\t\t\n\t\t\t\tinput = sb.toString();\n//\t\t\t\tSystem.out.println(\"i = \"+i+\" \"+input);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(input);\n\n\t\t}\n\t\t\n//\t\tSystem.out.println(count);\n\n//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\twhile(true){\n\t\t\tString input = br.readLine();\n\t\t\t\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t\t\n\t\t\tint m = Integer.parseInt(br.readLine());\n\n\t\t\t//StringBuffer sb = new StringBuffer();\n\t\t\tfor(int i = 0; i < m ; i++){\n\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\t\n\t\t\t\tsb.append(input.substring(h, input.length()));\n\t\t\t\tsb.append(input.substring(0, h));\n\t\t\t\t\n\t\t\t\tinput = sb.toString();\n//\t\t\t\tSystem.out.println(\"i = \"+i+\" \"+input);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(input);\n\n\t\t}\n\t\t\n//\t\tSystem.out.println(count);\n\n//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"while(true){\n\t\t\tString input = br.readLine();\n\t\t\t\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t\t\n\t\t\tint m = Integer.parseInt(br.readLine());\n\n\t\t\t//StringBuffer sb = new StringBuffer();\n\t\t\tfor(int i = 0; i < m ; i++){\n\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\t\n\t\t\t\tsb.append(input.substring(h, input.length()));\n\t\t\t\tsb.append(input.substring(0, h));\n\t\t\t\t\n\t\t\t\tinput = sb.toString();\n//\t\t\t\tSystem.out.println(\"i = \"+i+\" \"+input);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(input);\n\n\t\t}",
"true",
"{\n\t\t\tString input = br.readLine();\n\t\t\t\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t\t\n\t\t\tint m = Integer.parseInt(br.readLine());\n\n\t\t\t//StringBuffer sb = new StringBuffer();\n\t\t\tfor(int i = 0; i < m ; i++){\n\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\t\n\t\t\t\tsb.append(input.substring(h, input.length()));\n\t\t\t\tsb.append(input.substring(0, h));\n\t\t\t\t\n\t\t\t\tinput = sb.toString();\n//\t\t\t\tSystem.out.println(\"i = \"+i+\" \"+input);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(input);\n\n\t\t}",
"String input = br.readLine();",
"input",
"br.readLine()",
"br.readLine",
"br",
"if(input.equals(\"-\")){\n\t\t\t\tbreak;\n\n\t\t\t}",
"input.equals(\"-\")",
"input.equals",
"input",
"\"-\"",
"{\n\t\t\t\tbreak;\n\n\t\t\t}",
"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\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\t\n\t\t\t\tsb.append(input.substring(h, input.length()));\n\t\t\t\tsb.append(input.substring(0, h));\n\t\t\t\t\n\t\t\t\tinput = sb.toString();\n//\t\t\t\tSystem.out.println(\"i = \"+i+\" \"+input);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\t\n\t\t\t\tsb.append(input.substring(h, input.length()));\n\t\t\t\tsb.append(input.substring(0, h));\n\t\t\t\t\n\t\t\t\tinput = sb.toString();\n//\t\t\t\tSystem.out.println(\"i = \"+i+\" \"+input);\n\t\t\t}",
"{\n\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\t\n\t\t\t\tsb.append(input.substring(h, input.length()));\n\t\t\t\tsb.append(input.substring(0, h));\n\t\t\t\t\n\t\t\t\tinput = sb.toString();\n//\t\t\t\tSystem.out.println(\"i = \"+i+\" \"+input);\n\t\t\t}",
"StringBuffer sb = new StringBuffer();",
"sb",
"new StringBuffer()",
"int h = Integer.parseInt(br.readLine());",
"h",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"sb.append(input.substring(h, input.length()))",
"sb.append",
"sb",
"input.substring(h, input.length())",
"input.substring",
"input",
"h",
"input.length()",
"input.length",
"input",
"sb.append(input.substring(0, h))",
"sb.append",
"sb",
"input.substring(0, h)",
"input.substring",
"input",
"0",
"h",
"input = sb.toString()",
"input",
"sb.toString()",
"sb.toString",
"sb",
"System.out.println(input)",
"System.out.println",
"System.out",
"System",
"System.out",
"input",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\twhile(true){\n\t\t\tString input = br.readLine();\n\t\t\t\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t\t\n\t\t\tint m = Integer.parseInt(br.readLine());\n\n\t\t\t//StringBuffer sb = new StringBuffer();\n\t\t\tfor(int i = 0; i < m ; i++){\n\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\t\n\t\t\t\tsb.append(input.substring(h, input.length()));\n\t\t\t\tsb.append(input.substring(0, h));\n\t\t\t\t\n\t\t\t\tinput = sb.toString();\n//\t\t\t\tSystem.out.println(\"i = \"+i+\" \"+input);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(input);\n\n\t\t}\n\t\t\n//\t\tSystem.out.println(count);\n\n//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\twhile(true){\n\t\t\tString input = br.readLine();\n\t\t\t\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t\t\n\t\t\tint m = Integer.parseInt(br.readLine());\n\n\t\t\t//StringBuffer sb = new StringBuffer();\n\t\t\tfor(int i = 0; i < m ; i++){\n\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\t\n\t\t\t\tsb.append(input.substring(h, input.length()));\n\t\t\t\tsb.append(input.substring(0, h));\n\t\t\t\t\n\t\t\t\tinput = sb.toString();\n//\t\t\t\tSystem.out.println(\"i = \"+i+\" \"+input);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(input);\n\n\t\t}\n\t\t\n//\t\tSystem.out.println(count);\n\n//\n//\t\t\tif(Character.isLowerCase(c)){\n//\t\t\t\tSystem.out.print(Character.toUpperCase(c));\n//\t\t\t}\n//\n//\t\t\telse if(Character.isUpperCase(c)){\n//\t\t\t\tSystem.out.print(Character.toLowerCase(c));\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tSystem.out.print(c);\n//\t\t\t}\n//\t\t}\n//\t\tSystem.out.println();\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(tmpArray[0]);\n//\t\tint m = Integer.parseInt(tmpArray[1]);\n//\t\tint l = Integer.parseInt(tmpArray[2]);\n//\n//\t\tlong[][] a = new long[n][m];\n//\t\tlong[][] b = new long[m][l];\n//\t\tlong[][] c = new long[n][l];\n//\n//\t\tfor(int i = 0; i < n; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < m; j++){\n//\t\t\t\ta[i][j] = Long.parseLong(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < m; i ++){\n//\t\t\ttmpArray = br.readLine().split(\" \");\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tb[i][j] = Integer.parseInt(tmpArray[j]);\n//\t\t\t}\n//\t\t}\n//\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tfor(int j = 0; j < l; j++){\n//\t\t\t\tfor(int k = 0; k < m; k++){\n//\t\t\t\t\tc[i][j] += a[i][k]*b[k][j];\n//\t\t\t\t}\n//\n//\t\t\t\tif(j != 0 ){\n//\t\t\t\t\tSystem.out.print(\" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(c[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\n\t}\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
// TODO ?????????????????????????????????????????????
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
while(true){
String input = br.readLine();
if(input.equals("-")){
break;
}
int m = Integer.parseInt(br.readLine());
//StringBuffer sb = new StringBuffer();
for(int i = 0; i < m ; i++){
StringBuffer sb = new StringBuffer();
int h = Integer.parseInt(br.readLine());
sb.append(input.substring(h, input.length()));
sb.append(input.substring(0, h));
input = sb.toString();
// System.out.println("i = "+i+" "+input);
}
System.out.println(input);
}
// System.out.println(count);
//
// if(Character.isLowerCase(c)){
// System.out.print(Character.toUpperCase(c));
// }
//
// else if(Character.isUpperCase(c)){
// System.out.print(Character.toLowerCase(c));
// }
// else {
// System.out.print(c);
// }
// }
// System.out.println();
// String[] tmpArray = br.readLine().split(" ");
// int n = Integer.parseInt(tmpArray[0]);
// int m = Integer.parseInt(tmpArray[1]);
// int l = Integer.parseInt(tmpArray[2]);
//
// long[][] a = new long[n][m];
// long[][] b = new long[m][l];
// long[][] c = new long[n][l];
//
// for(int i = 0; i < n; i ++){
// tmpArray = br.readLine().split(" ");
// for(int j = 0; j < m; j++){
// a[i][j] = Long.parseLong(tmpArray[j]);
// }
// }
//
// for(int i = 0; i < m; i ++){
// tmpArray = br.readLine().split(" ");
// for(int j = 0; j < l; j++){
// b[i][j] = Integer.parseInt(tmpArray[j]);
// }
// }
//
// for(int i = 0; i < n; i++){
// for(int j = 0; j < l; j++){
// for(int k = 0; k < m; k++){
// c[i][j] += a[i][k]*b[k][j];
// }
//
// if(j != 0 ){
// System.out.print(" ");
// }
// System.out.print(c[i][j]);
// }
// System.out.println();
// }
}
} |
[
7,
15,
13,
17,
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,
17,
41,
13,
20,
42,
17,
30,
38,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
14,
4,
18,
17,
13,
30,
3,
0,
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,
4,
18,
13,
0,
13,
2,
4,
18,
13,
13,
4,
18,
13,
4,
18,
13,
17,
13,
4,
18,
13,
13,
13,
40,
13,
28,
13,
4,
18,
13,
30,
30,
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
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
131,
17
],
[
131,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
27
],
[
27,
28
],
[
27,
29
],
[
20,
30
],
[
30,
31
],
[
30,
32
],
[
20,
33
],
[
33,
34
],
[
33,
35
],
[
20,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
39,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
52,
57
],
[
57,
58
],
[
46,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
46,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
46,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
89,
90
],
[
82,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
94,
98
],
[
98,
99
],
[
99,
100
],
[
93,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
101,
105
],
[
46,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
106,
110
],
[
46,
111
],
[
111,
112
],
[
20,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
113,
118
],
[
119,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
125,
126
],
[
126,
127
],
[
18,
128
],
[
128,
129
],
[
0,
130
],
[
130,
131
],
[
130,
132
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.HashMap;\nimport java.util.Map;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString word = null;\n\t\tString mStr = null;\n\t\tint count = 0;\n\t\tMap<Integer, String> map = new HashMap<>();\n\t\t\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tword = br.readLine();\n\n\t\t\t\tif (\"-\".equals(word)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tmStr = br.readLine();\n\t\t\t\tint m = Integer.parseInt(mStr);\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\t\tword = word.substring(h, word.length()) + word.substring(0, h);\n\t\t\t\t}\n\t\t\t\tmap.put(count, word);\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO 自動生成された catch ブロック\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\t\t\n\t\tfor (Map.Entry<Integer, String> entry: map.entrySet()) {\n\t\t\tSystem.out.println(entry.getValue());\n\t\t}\n\n\t}\n\n}\n",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.Map;",
"Map",
"java.util",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString word = null;\n\t\tString mStr = null;\n\t\tint count = 0;\n\t\tMap<Integer, String> map = new HashMap<>();\n\t\t\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tword = br.readLine();\n\n\t\t\t\tif (\"-\".equals(word)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tmStr = br.readLine();\n\t\t\t\tint m = Integer.parseInt(mStr);\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\t\tword = word.substring(h, word.length()) + word.substring(0, h);\n\t\t\t\t}\n\t\t\t\tmap.put(count, word);\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO 自動生成された catch ブロック\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\t\t\n\t\tfor (Map.Entry<Integer, String> entry: map.entrySet()) {\n\t\t\tSystem.out.println(entry.getValue());\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString word = null;\n\t\tString mStr = null;\n\t\tint count = 0;\n\t\tMap<Integer, String> map = new HashMap<>();\n\t\t\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tword = br.readLine();\n\n\t\t\t\tif (\"-\".equals(word)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tmStr = br.readLine();\n\t\t\t\tint m = Integer.parseInt(mStr);\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\t\tword = word.substring(h, word.length()) + word.substring(0, h);\n\t\t\t\t}\n\t\t\t\tmap.put(count, word);\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO 自動生成された catch ブロック\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\t\t\n\t\tfor (Map.Entry<Integer, String> entry: map.entrySet()) {\n\t\t\tSystem.out.println(entry.getValue());\n\t\t}\n\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString word = null;\n\t\tString mStr = null;\n\t\tint count = 0;\n\t\tMap<Integer, String> map = new HashMap<>();\n\t\t\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tword = br.readLine();\n\n\t\t\t\tif (\"-\".equals(word)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tmStr = br.readLine();\n\t\t\t\tint m = Integer.parseInt(mStr);\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\t\tword = word.substring(h, word.length()) + word.substring(0, h);\n\t\t\t\t}\n\t\t\t\tmap.put(count, word);\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO 自動生成された catch ブロック\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\t\t\n\t\tfor (Map.Entry<Integer, String> entry: map.entrySet()) {\n\t\t\tSystem.out.println(entry.getValue());\n\t\t}\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String word = null;",
"word",
"null",
"String mStr = null;",
"mStr",
"null",
"int count = 0;",
"count",
"0",
"Map<Integer, String> map = new HashMap<>();",
"map",
"new HashMap<>()",
"while (true) {\n\t\t\ttry {\n\t\t\t\tword = br.readLine();\n\n\t\t\t\tif (\"-\".equals(word)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tmStr = br.readLine();\n\t\t\t\tint m = Integer.parseInt(mStr);\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\t\tword = word.substring(h, word.length()) + word.substring(0, h);\n\t\t\t\t}\n\t\t\t\tmap.put(count, word);\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO 自動生成された catch ブロック\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}",
"true",
"{\n\t\t\ttry {\n\t\t\t\tword = br.readLine();\n\n\t\t\t\tif (\"-\".equals(word)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tmStr = br.readLine();\n\t\t\t\tint m = Integer.parseInt(mStr);\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\t\tword = word.substring(h, word.length()) + word.substring(0, h);\n\t\t\t\t}\n\t\t\t\tmap.put(count, word);\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO 自動生成された catch ブロック\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}",
"try {\n\t\t\t\tword = br.readLine();\n\n\t\t\t\tif (\"-\".equals(word)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tmStr = br.readLine();\n\t\t\t\tint m = Integer.parseInt(mStr);\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\t\tword = word.substring(h, word.length()) + word.substring(0, h);\n\t\t\t\t}\n\t\t\t\tmap.put(count, word);\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO 自動生成された catch ブロック\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"catch (IOException e) {\n\t\t\t\t// TODO 自動生成された catch ブロック\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"IOException e",
"{\n\t\t\t\t// TODO 自動生成された catch ブロック\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\tword = br.readLine();\n\n\t\t\t\tif (\"-\".equals(word)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tmStr = br.readLine();\n\t\t\t\tint m = Integer.parseInt(mStr);\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\t\tword = word.substring(h, word.length()) + word.substring(0, h);\n\t\t\t\t}\n\t\t\t\tmap.put(count, word);\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t}",
"word = br.readLine()",
"word",
"br.readLine()",
"br.readLine",
"br",
"if (\"-\".equals(word)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"\"-\".equals(word)",
"\"-\".equals",
"\"-\"",
"word",
"{\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"break;",
"mStr = br.readLine()",
"mStr",
"br.readLine()",
"br.readLine",
"br",
"int m = Integer.parseInt(mStr);",
"m",
"Integer.parseInt(mStr)",
"Integer.parseInt",
"Integer",
"mStr",
"for (int i = 0; i < m; i++) {\n\t\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\t\tword = word.substring(h, word.length()) + word.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\tint h = Integer.parseInt(br.readLine());\n\t\t\t\t\tword = word.substring(h, word.length()) + word.substring(0, h);\n\t\t\t\t}",
"{\n\t\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\t\tword = word.substring(h, word.length()) + word.substring(0, h);\n\t\t\t\t}",
"int h = Integer.parseInt(br.readLine());",
"h",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"word = word.substring(h, word.length()) + word.substring(0, h)",
"word",
"word.substring(h, word.length()) + word.substring(0, h)",
"word.substring(h, word.length())",
"word.substring",
"word",
"h",
"word.length()",
"word.length",
"word",
"word.substring(0, h)",
"word.substring",
"word",
"0",
"h",
"map.put(count, word)",
"map.put",
"map",
"count",
"word",
"count++",
"count",
"for (Map.Entry<Integer, String> entry: map.entrySet()) {\n\t\t\tSystem.out.println(entry.getValue());\n\t\t}",
"Map.Entry<Integer, String> entry",
"map.entrySet()",
"map.entrySet",
"map",
"{\n\t\t\tSystem.out.println(entry.getValue());\n\t\t}",
"{\n\t\t\tSystem.out.println(entry.getValue());\n\t\t}",
"System.out.println(entry.getValue())",
"System.out.println",
"System.out",
"System",
"System.out",
"entry.getValue()",
"entry.getValue",
"entry",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString word = null;\n\t\tString mStr = null;\n\t\tint count = 0;\n\t\tMap<Integer, String> map = new HashMap<>();\n\t\t\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tword = br.readLine();\n\n\t\t\t\tif (\"-\".equals(word)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tmStr = br.readLine();\n\t\t\t\tint m = Integer.parseInt(mStr);\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\t\tword = word.substring(h, word.length()) + word.substring(0, h);\n\t\t\t\t}\n\t\t\t\tmap.put(count, word);\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO 自動生成された catch ブロック\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\t\t\n\t\tfor (Map.Entry<Integer, String> entry: map.entrySet()) {\n\t\t\tSystem.out.println(entry.getValue());\n\t\t}\n\n\t}\n\n}",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString word = null;\n\t\tString mStr = null;\n\t\tint count = 0;\n\t\tMap<Integer, String> map = new HashMap<>();\n\t\t\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tword = br.readLine();\n\n\t\t\t\tif (\"-\".equals(word)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tmStr = br.readLine();\n\t\t\t\tint m = Integer.parseInt(mStr);\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\t\tword = word.substring(h, word.length()) + word.substring(0, h);\n\t\t\t\t}\n\t\t\t\tmap.put(count, word);\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO 自動生成された catch ブロック\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\t\t\n\t\tfor (Map.Entry<Integer, String> entry: map.entrySet()) {\n\t\t\tSystem.out.println(entry.getValue());\n\t\t}\n\n\t}\n\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
public class Main{
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String word = null;
String mStr = null;
int count = 0;
Map<Integer, String> map = new HashMap<>();
while (true) {
try {
word = br.readLine();
if ("-".equals(word)) {
break;
}
mStr = br.readLine();
int m = Integer.parseInt(mStr);
for (int i = 0; i < m; i++) {
int h = Integer.parseInt(br.readLine());
word = word.substring(h, word.length()) + word.substring(0, h);
}
map.put(count, word);
count++;
} catch (IOException e) {
// TODO 自動生成された catch ブロック
e.printStackTrace();
}
}
for (Map.Entry<Integer, String> entry: map.entrySet()) {
System.out.println(entry.getValue());
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
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,
2,
13,
13,
0,
13,
4,
18,
13,
18,
13,
13,
0,
13,
17,
0,
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
],
[
114,
11
],
[
114,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
14,
19
],
[
19,
20
],
[
19,
21
],
[
14,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
30,
35
],
[
24,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
24,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
24,
47
],
[
47,
48
],
[
47,
49
],
[
24,
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
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
63,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
63,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
88,
90
],
[
63,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
96,
97
],
[
96,
98
],
[
63,
99
],
[
99,
100
],
[
99,
101
],
[
63,
102
],
[
102,
103
],
[
102,
104
],
[
24,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
12,
111
],
[
111,
112
],
[
0,
113
],
[
113,
114
],
[
113,
115
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n \npublic class Main{\n\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t\tint m;\n\t\tString strSub;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\n while(true)\n {\n \t\tString str = br.readLine();\n \t\t\n \t\tif(str.equals(\"-\") ) break;\n \t\t\n \t\tString strM = br.readLine();\n \n \t\tm = Integer.parseInt(strM);\n \t\tint[] h = new int[m];\n \t\t\n \t\tfor(int i=0; i<m; i++)\n {\n String strH = br.readLine();\n h[i] = Integer.parseInt(strH);\n \n \t\tstrSub = str.substring(0, h[i]);\n \n \t\tstr = str + strSub;\n \t\t\n \t\tstrSub = str.substring(h[i]);\n \t\tstr = null;//init string\n \t\tstr = strSub;\n \t\t//System.out.println(strSub);\n }\n System.out.println(str);\n \n }\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main{\n\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t\tint m;\n\t\tString strSub;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\n while(true)\n {\n \t\tString str = br.readLine();\n \t\t\n \t\tif(str.equals(\"-\") ) break;\n \t\t\n \t\tString strM = br.readLine();\n \n \t\tm = Integer.parseInt(strM);\n \t\tint[] h = new int[m];\n \t\t\n \t\tfor(int i=0; i<m; i++)\n {\n String strH = br.readLine();\n h[i] = Integer.parseInt(strH);\n \n \t\tstrSub = str.substring(0, h[i]);\n \n \t\tstr = str + strSub;\n \t\t\n \t\tstrSub = str.substring(h[i]);\n \t\tstr = null;//init string\n \t\tstr = strSub;\n \t\t//System.out.println(strSub);\n }\n System.out.println(str);\n \n }\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException\n\t{\n\t\tint m;\n\t\tString strSub;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\n while(true)\n {\n \t\tString str = br.readLine();\n \t\t\n \t\tif(str.equals(\"-\") ) break;\n \t\t\n \t\tString strM = br.readLine();\n \n \t\tm = Integer.parseInt(strM);\n \t\tint[] h = new int[m];\n \t\t\n \t\tfor(int i=0; i<m; i++)\n {\n String strH = br.readLine();\n h[i] = Integer.parseInt(strH);\n \n \t\tstrSub = str.substring(0, h[i]);\n \n \t\tstr = str + strSub;\n \t\t\n \t\tstrSub = str.substring(h[i]);\n \t\tstr = null;//init string\n \t\tstr = strSub;\n \t\t//System.out.println(strSub);\n }\n System.out.println(str);\n \n }\n\t}",
"main",
"{\n\t\tint m;\n\t\tString strSub;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\n while(true)\n {\n \t\tString str = br.readLine();\n \t\t\n \t\tif(str.equals(\"-\") ) break;\n \t\t\n \t\tString strM = br.readLine();\n \n \t\tm = Integer.parseInt(strM);\n \t\tint[] h = new int[m];\n \t\t\n \t\tfor(int i=0; i<m; i++)\n {\n String strH = br.readLine();\n h[i] = Integer.parseInt(strH);\n \n \t\tstrSub = str.substring(0, h[i]);\n \n \t\tstr = str + strSub;\n \t\t\n \t\tstrSub = str.substring(h[i]);\n \t\tstr = null;//init string\n \t\tstr = strSub;\n \t\t//System.out.println(strSub);\n }\n System.out.println(str);\n \n }\n\t}",
"int m;",
"m",
"String strSub;",
"strSub",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in) );",
"br",
"new BufferedReader(new InputStreamReader(System.in) )",
"while(true)\n {\n \t\tString str = br.readLine();\n \t\t\n \t\tif(str.equals(\"-\") ) break;\n \t\t\n \t\tString strM = br.readLine();\n \n \t\tm = Integer.parseInt(strM);\n \t\tint[] h = new int[m];\n \t\t\n \t\tfor(int i=0; i<m; i++)\n {\n String strH = br.readLine();\n h[i] = Integer.parseInt(strH);\n \n \t\tstrSub = str.substring(0, h[i]);\n \n \t\tstr = str + strSub;\n \t\t\n \t\tstrSub = str.substring(h[i]);\n \t\tstr = null;//init string\n \t\tstr = strSub;\n \t\t//System.out.println(strSub);\n }\n System.out.println(str);\n \n }",
"true",
"{\n \t\tString str = br.readLine();\n \t\t\n \t\tif(str.equals(\"-\") ) break;\n \t\t\n \t\tString strM = br.readLine();\n \n \t\tm = Integer.parseInt(strM);\n \t\tint[] h = new int[m];\n \t\t\n \t\tfor(int i=0; i<m; i++)\n {\n String strH = br.readLine();\n h[i] = Integer.parseInt(strH);\n \n \t\tstrSub = str.substring(0, h[i]);\n \n \t\tstr = str + strSub;\n \t\t\n \t\tstrSub = str.substring(h[i]);\n \t\tstr = null;//init string\n \t\tstr = strSub;\n \t\t//System.out.println(strSub);\n }\n System.out.println(str);\n \n }",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"if(str.equals(\"-\") ) break;",
"str.equals(\"-\")",
"str.equals",
"str",
"\"-\"",
"break;",
"String strM = br.readLine();",
"strM",
"br.readLine()",
"br.readLine",
"br",
"m = Integer.parseInt(strM)",
"m",
"Integer.parseInt(strM)",
"Integer.parseInt",
"Integer",
"strM",
"int[] h = new int[m];",
"h",
"new int[m]",
"m",
"for(int i=0; i<m; i++)\n {\n String strH = br.readLine();\n h[i] = Integer.parseInt(strH);\n \n \t\tstrSub = str.substring(0, h[i]);\n \n \t\tstr = str + strSub;\n \t\t\n \t\tstrSub = str.substring(h[i]);\n \t\tstr = null;//init string\n \t\tstr = strSub;\n \t\t//System.out.println(strSub);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n String strH = br.readLine();\n h[i] = Integer.parseInt(strH);\n \n \t\tstrSub = str.substring(0, h[i]);\n \n \t\tstr = str + strSub;\n \t\t\n \t\tstrSub = str.substring(h[i]);\n \t\tstr = null;//init string\n \t\tstr = strSub;\n \t\t//System.out.println(strSub);\n }",
"{\n String strH = br.readLine();\n h[i] = Integer.parseInt(strH);\n \n \t\tstrSub = str.substring(0, h[i]);\n \n \t\tstr = str + strSub;\n \t\t\n \t\tstrSub = str.substring(h[i]);\n \t\tstr = null;//init string\n \t\tstr = strSub;\n \t\t//System.out.println(strSub);\n }",
"String strH = br.readLine();",
"strH",
"br.readLine()",
"br.readLine",
"br",
"h[i] = Integer.parseInt(strH)",
"h[i]",
"h",
"i",
"Integer.parseInt(strH)",
"Integer.parseInt",
"Integer",
"strH",
"strSub = str.substring(0, h[i])",
"strSub",
"str.substring(0, h[i])",
"str.substring",
"str",
"0",
"h[i]",
"h",
"i",
"str = str + strSub",
"str",
"str + strSub",
"str",
"strSub",
"strSub = str.substring(h[i])",
"strSub",
"str.substring(h[i])",
"str.substring",
"str",
"h[i]",
"h",
"i",
"str = null",
"str",
"null",
"str = strSub",
"str",
"strSub",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t\tint m;\n\t\tString strSub;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\n while(true)\n {\n \t\tString str = br.readLine();\n \t\t\n \t\tif(str.equals(\"-\") ) break;\n \t\t\n \t\tString strM = br.readLine();\n \n \t\tm = Integer.parseInt(strM);\n \t\tint[] h = new int[m];\n \t\t\n \t\tfor(int i=0; i<m; i++)\n {\n String strH = br.readLine();\n h[i] = Integer.parseInt(strH);\n \n \t\tstrSub = str.substring(0, h[i]);\n \n \t\tstr = str + strSub;\n \t\t\n \t\tstrSub = str.substring(h[i]);\n \t\tstr = null;//init string\n \t\tstr = strSub;\n \t\t//System.out.println(strSub);\n }\n System.out.println(str);\n \n }\n\t}\n}",
"public class Main{\n\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t\tint m;\n\t\tString strSub;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in) );\n\n while(true)\n {\n \t\tString str = br.readLine();\n \t\t\n \t\tif(str.equals(\"-\") ) break;\n \t\t\n \t\tString strM = br.readLine();\n \n \t\tm = Integer.parseInt(strM);\n \t\tint[] h = new int[m];\n \t\t\n \t\tfor(int i=0; i<m; i++)\n {\n String strH = br.readLine();\n h[i] = Integer.parseInt(strH);\n \n \t\tstrSub = str.substring(0, h[i]);\n \n \t\tstr = str + strSub;\n \t\t\n \t\tstrSub = str.substring(h[i]);\n \t\tstr = null;//init string\n \t\tstr = strSub;\n \t\t//System.out.println(strSub);\n }\n System.out.println(str);\n \n }\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
{
int m;
String strSub;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in) );
while(true)
{
String str = br.readLine();
if(str.equals("-") ) break;
String strM = br.readLine();
m = Integer.parseInt(strM);
int[] h = new int[m];
for(int i=0; i<m; i++)
{
String strH = br.readLine();
h[i] = Integer.parseInt(strH);
strSub = str.substring(0, h[i]);
str = str + strSub;
strSub = str.substring(h[i]);
str = null;//init string
str = strSub;
//System.out.println(strSub);
}
System.out.println(str);
}
}
} |
[
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,
17,
13,
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,
0,
13,
2,
4,
18,
13,
18,
13,
13,
4,
18,
13,
17,
18,
13,
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
],
[
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
],
[
23,
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
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
57,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
71,
73
],
[
67,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
74,
78
],
[
78,
79
],
[
78,
80
],
[
23,
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
]
]
| [
"/* package whatever; // don't place package name! */\n\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\n/* Name of the class has to be \"Main\" only if the class is public. */\nclass Main\n{\npublic static void main (String[] args) throws java.lang.Exception\n{\n\tScanner scan = new Scanner(System.in);\n\tList<String> list = new ArrayList<String>();\n\t\n\twhile (true) {\n\t\tString str = scan.next();\n\t\tif (\"-\".equals(str)) {\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tint m = scan.nextInt();\n\t\tint h[] = new int[m];\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\th[i] = scan.nextInt();\n\t\t\tstr = str.substring(h[i]) + str.substring(0, h[i]);\t\t\t\t\t\t\n\t\t}\n\t\tlist.add(str);\n\t}\n\t\n\tfor (String str : list) {\n\t\tSystem.out.println(str); \n\t}\n}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main\n{\npublic static void main (String[] args) throws java.lang.Exception\n{\n\tScanner scan = new Scanner(System.in);\n\tList<String> list = new ArrayList<String>();\n\t\n\twhile (true) {\n\t\tString str = scan.next();\n\t\tif (\"-\".equals(str)) {\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tint m = scan.nextInt();\n\t\tint h[] = new int[m];\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\th[i] = scan.nextInt();\n\t\t\tstr = str.substring(h[i]) + str.substring(0, h[i]);\t\t\t\t\t\t\n\t\t}\n\t\tlist.add(str);\n\t}\n\t\n\tfor (String str : list) {\n\t\tSystem.out.println(str); \n\t}\n}\n}",
"Main",
"public static void main (String[] args) throws java.lang.Exception\n{\n\tScanner scan = new Scanner(System.in);\n\tList<String> list = new ArrayList<String>();\n\t\n\twhile (true) {\n\t\tString str = scan.next();\n\t\tif (\"-\".equals(str)) {\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tint m = scan.nextInt();\n\t\tint h[] = new int[m];\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\th[i] = scan.nextInt();\n\t\t\tstr = str.substring(h[i]) + str.substring(0, h[i]);\t\t\t\t\t\t\n\t\t}\n\t\tlist.add(str);\n\t}\n\t\n\tfor (String str : list) {\n\t\tSystem.out.println(str); \n\t}\n}",
"main",
"{\n\tScanner scan = new Scanner(System.in);\n\tList<String> list = new ArrayList<String>();\n\t\n\twhile (true) {\n\t\tString str = scan.next();\n\t\tif (\"-\".equals(str)) {\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tint m = scan.nextInt();\n\t\tint h[] = new int[m];\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\th[i] = scan.nextInt();\n\t\t\tstr = str.substring(h[i]) + str.substring(0, h[i]);\t\t\t\t\t\t\n\t\t}\n\t\tlist.add(str);\n\t}\n\t\n\tfor (String str : list) {\n\t\tSystem.out.println(str); \n\t}\n}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"List<String> list = new ArrayList<String>();",
"list",
"new ArrayList<String>()",
"while (true) {\n\t\tString str = scan.next();\n\t\tif (\"-\".equals(str)) {\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tint m = scan.nextInt();\n\t\tint h[] = new int[m];\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\th[i] = scan.nextInt();\n\t\t\tstr = str.substring(h[i]) + str.substring(0, h[i]);\t\t\t\t\t\t\n\t\t}\n\t\tlist.add(str);\n\t}",
"true",
"{\n\t\tString str = scan.next();\n\t\tif (\"-\".equals(str)) {\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tint m = scan.nextInt();\n\t\tint h[] = new int[m];\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\th[i] = scan.nextInt();\n\t\t\tstr = str.substring(h[i]) + str.substring(0, h[i]);\t\t\t\t\t\t\n\t\t}\n\t\tlist.add(str);\n\t}",
"String str = scan.next();",
"str",
"scan.next()",
"scan.next",
"scan",
"if (\"-\".equals(str)) {\n\t\t\tbreak;\n\t\t}",
"\"-\".equals(str)",
"\"-\".equals",
"\"-\"",
"str",
"{\n\t\t\tbreak;\n\t\t}",
"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\th[i] = scan.nextInt();\n\t\t\tstr = str.substring(h[i]) + str.substring(0, h[i]);\t\t\t\t\t\t\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\th[i] = scan.nextInt();\n\t\t\tstr = str.substring(h[i]) + str.substring(0, h[i]);\t\t\t\t\t\t\n\t\t}",
"{\n\t\t\th[i] = scan.nextInt();\n\t\t\tstr = str.substring(h[i]) + str.substring(0, h[i]);\t\t\t\t\t\t\n\t\t}",
"h[i] = scan.nextInt()",
"h[i]",
"h",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"str = str.substring(h[i]) + str.substring(0, h[i])",
"str",
"str.substring(h[i]) + str.substring(0, h[i])",
"str.substring(h[i])",
"str.substring",
"str",
"h[i]",
"h",
"i",
"str.substring(0, h[i])",
"str.substring",
"str",
"0",
"h[i]",
"h",
"i",
"list.add(str)",
"list.add",
"list",
"str",
"for (String str : list) {\n\t\tSystem.out.println(str); \n\t}",
"String str",
"list",
"{\n\t\tSystem.out.println(str); \n\t}",
"{\n\t\tSystem.out.println(str); \n\t}",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"String[] args",
"args"
]
| /* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner scan = new Scanner(System.in);
List<String> list = new ArrayList<String>();
while (true) {
String str = scan.next();
if ("-".equals(str)) {
break;
}
int m = scan.nextInt();
int h[] = new int[m];
for (int i = 0; i < m; i++) {
h[i] = scan.nextInt();
str = str.substring(h[i]) + str.substring(0, h[i]);
}
list.add(str);
}
for (String str : list) {
System.out.println(str);
}
}
} |
[
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,
0,
13,
4,
18,
4,
18,
4,
18,
20,
4,
18,
13,
4,
18,
13,
13,
4,
18,
13,
17,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
90,
5
],
[
90,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
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
],
[
48,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
58,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
16,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
8,
84
],
[
84,
85
],
[
85,
86
],
[
6,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNext()) {\n\t\t\tString str = sc.nextLine();\n\t\t\tif (str.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tint m = Integer.parseInt(sc.nextLine());\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tString nextStr = sc.nextLine();\n\t\t\t\tstr = new StringBuilder()\n\t\t\t\t\t\t.append(str.substring(Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.append(str.substring(0, Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.toString();\n\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t}\n\t\tsc.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNext()) {\n\t\t\tString str = sc.nextLine();\n\t\t\tif (str.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tint m = Integer.parseInt(sc.nextLine());\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tString nextStr = sc.nextLine();\n\t\t\t\tstr = new StringBuilder()\n\t\t\t\t\t\t.append(str.substring(Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.append(str.substring(0, Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.toString();\n\t\t\t}\n\t\t\t\tSystem.out.println(str);\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\twhile (sc.hasNext()) {\n\t\t\tString str = sc.nextLine();\n\t\t\tif (str.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tint m = Integer.parseInt(sc.nextLine());\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tString nextStr = sc.nextLine();\n\t\t\t\tstr = new StringBuilder()\n\t\t\t\t\t\t.append(str.substring(Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.append(str.substring(0, Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.toString();\n\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t}\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNext()) {\n\t\t\tString str = sc.nextLine();\n\t\t\tif (str.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tint m = Integer.parseInt(sc.nextLine());\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tString nextStr = sc.nextLine();\n\t\t\t\tstr = new StringBuilder()\n\t\t\t\t\t\t.append(str.substring(Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.append(str.substring(0, Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.toString();\n\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t}\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while (sc.hasNext()) {\n\t\t\tString str = sc.nextLine();\n\t\t\tif (str.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tint m = Integer.parseInt(sc.nextLine());\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tString nextStr = sc.nextLine();\n\t\t\t\tstr = new StringBuilder()\n\t\t\t\t\t\t.append(str.substring(Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.append(str.substring(0, Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.toString();\n\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\tString str = sc.nextLine();\n\t\t\tif (str.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tint m = Integer.parseInt(sc.nextLine());\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tString nextStr = sc.nextLine();\n\t\t\t\tstr = new StringBuilder()\n\t\t\t\t\t\t.append(str.substring(Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.append(str.substring(0, Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.toString();\n\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t}",
"String str = sc.nextLine();",
"str",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if (str.equals(\"-\"))\n\t\t\t\tbreak;",
"str.equals(\"-\")",
"str.equals",
"str",
"\"-\"",
"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\tString nextStr = sc.nextLine();\n\t\t\t\tstr = new StringBuilder()\n\t\t\t\t\t\t.append(str.substring(Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.append(str.substring(0, Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.toString();\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\t\tString nextStr = sc.nextLine();\n\t\t\t\tstr = new StringBuilder()\n\t\t\t\t\t\t.append(str.substring(Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.append(str.substring(0, Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.toString();\n\t\t\t}",
"{\n\t\t\t\tString nextStr = sc.nextLine();\n\t\t\t\tstr = new StringBuilder()\n\t\t\t\t\t\t.append(str.substring(Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.append(str.substring(0, Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.toString();\n\t\t\t}",
"String nextStr = sc.nextLine();",
"nextStr",
"sc.nextLine()",
"sc.nextLine",
"sc",
"str = new StringBuilder()\n\t\t\t\t\t\t.append(str.substring(Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.append(str.substring(0, Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.toString()",
"str",
"new StringBuilder()\n\t\t\t\t\t\t.append(str.substring(Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.append(str.substring(0, Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.toString()",
"new StringBuilder()\n\t\t\t\t\t\t.append(str.substring(Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.append(str.substring(0, Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.toString",
"new StringBuilder()\n\t\t\t\t\t\t.append(str.substring(Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.append(str.substring(0, Integer.parseInt(nextStr)))",
"new StringBuilder()\n\t\t\t\t\t\t.append(str.substring(Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.append",
"new StringBuilder()\n\t\t\t\t\t\t.append(str.substring(Integer.parseInt(nextStr)))",
"new StringBuilder()\n\t\t\t\t\t\t.append",
"new StringBuilder()",
"str.substring(Integer.parseInt(nextStr))",
"str.substring",
"str",
"Integer.parseInt(nextStr)",
"Integer.parseInt",
"Integer",
"nextStr",
"str.substring(0, Integer.parseInt(nextStr))",
"str.substring",
"str",
"0",
"Integer.parseInt(nextStr)",
"Integer.parseInt",
"Integer",
"nextStr",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"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\twhile (sc.hasNext()) {\n\t\t\tString str = sc.nextLine();\n\t\t\tif (str.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tint m = Integer.parseInt(sc.nextLine());\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tString nextStr = sc.nextLine();\n\t\t\t\tstr = new StringBuilder()\n\t\t\t\t\t\t.append(str.substring(Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.append(str.substring(0, Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.toString();\n\t\t\t}\n\t\t\t\tSystem.out.println(str);\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\twhile (sc.hasNext()) {\n\t\t\tString str = sc.nextLine();\n\t\t\tif (str.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tint m = Integer.parseInt(sc.nextLine());\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tString nextStr = sc.nextLine();\n\t\t\t\tstr = new StringBuilder()\n\t\t\t\t\t\t.append(str.substring(Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.append(str.substring(0, Integer.parseInt(nextStr)))\n\t\t\t\t\t\t.toString();\n\t\t\t}\n\t\t\t\tSystem.out.println(str);\n\t\t}\n\t\tsc.close();\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
String str = sc.nextLine();
if (str.equals("-"))
break;
int m = Integer.parseInt(sc.nextLine());
for (int i = 0; i < m; i++) {
String nextStr = sc.nextLine();
str = new StringBuilder()
.append(str.substring(Integer.parseInt(nextStr)))
.append(str.substring(0, Integer.parseInt(nextStr)))
.toString();
}
System.out.println(str);
}
sc.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
11,
1,
30,
30,
0,
13,
4,
18,
13,
14,
4,
18,
17,
13,
3,
0,
13,
4,
18,
13,
4,
18,
13,
11,
1,
0,
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,
4,
18,
13,
13,
4,
18,
13,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
18,
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
],
[
11,
14
],
[
14,
15
],
[
11,
16
],
[
16,
17
],
[
11,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
30,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
36,
41
],
[
30,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
48,
49
],
[
30,
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
],
[
65,
68
],
[
68,
69
],
[
69,
70
],
[
62,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
73,
77
],
[
62,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
80,
84
],
[
84,
85
],
[
85,
86
],
[
62,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
89,
91
],
[
30,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
11,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
9,
103
],
[
103,
104
]
]
| [
"import java.io.*;\nimport java.util.Arrays;\nclass Main{\n public static void main(String[] args) throws IOException {\n int i,n,m; \n String line,chr;\n String str;\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n for(;;){\n str = in.readLine();\n if(\"-\".equals(str)) break;\n n = Integer.parseInt(in.readLine());\n for(i=0;i<n;i++){\n m = Integer.parseInt(in.readLine());\n chr = str.substring(0,m);\n line = str.substring(m,str.length());\n str = line+chr;\n }\n System.out.println(str);\n }\n System.out.flush();\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.Arrays;",
"Arrays",
"java.util",
"class Main{\n public static void main(String[] args) throws IOException {\n int i,n,m; \n String line,chr;\n String str;\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n for(;;){\n str = in.readLine();\n if(\"-\".equals(str)) break;\n n = Integer.parseInt(in.readLine());\n for(i=0;i<n;i++){\n m = Integer.parseInt(in.readLine());\n chr = str.substring(0,m);\n line = str.substring(m,str.length());\n str = line+chr;\n }\n System.out.println(str);\n }\n System.out.flush();\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n int i,n,m; \n String line,chr;\n String str;\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n for(;;){\n str = in.readLine();\n if(\"-\".equals(str)) break;\n n = Integer.parseInt(in.readLine());\n for(i=0;i<n;i++){\n m = Integer.parseInt(in.readLine());\n chr = str.substring(0,m);\n line = str.substring(m,str.length());\n str = line+chr;\n }\n System.out.println(str);\n }\n System.out.flush();\n }",
"main",
"{\n int i,n,m; \n String line,chr;\n String str;\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n for(;;){\n str = in.readLine();\n if(\"-\".equals(str)) break;\n n = Integer.parseInt(in.readLine());\n for(i=0;i<n;i++){\n m = Integer.parseInt(in.readLine());\n chr = str.substring(0,m);\n line = str.substring(m,str.length());\n str = line+chr;\n }\n System.out.println(str);\n }\n System.out.flush();\n }",
"int i",
"i",
"n",
"n",
"m;",
"m",
"String line",
"line",
"chr;",
"chr",
"String str;",
"str",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"for(;;){\n str = in.readLine();\n if(\"-\".equals(str)) break;\n n = Integer.parseInt(in.readLine());\n for(i=0;i<n;i++){\n m = Integer.parseInt(in.readLine());\n chr = str.substring(0,m);\n line = str.substring(m,str.length());\n str = line+chr;\n }\n System.out.println(str);\n }",
";",
"{\n str = in.readLine();\n if(\"-\".equals(str)) break;\n n = Integer.parseInt(in.readLine());\n for(i=0;i<n;i++){\n m = Integer.parseInt(in.readLine());\n chr = str.substring(0,m);\n line = str.substring(m,str.length());\n str = line+chr;\n }\n System.out.println(str);\n }",
"{\n str = in.readLine();\n if(\"-\".equals(str)) break;\n n = Integer.parseInt(in.readLine());\n for(i=0;i<n;i++){\n m = Integer.parseInt(in.readLine());\n chr = str.substring(0,m);\n line = str.substring(m,str.length());\n str = line+chr;\n }\n System.out.println(str);\n }",
"str = in.readLine()",
"str",
"in.readLine()",
"in.readLine",
"in",
"if(\"-\".equals(str)) break;",
"\"-\".equals(str)",
"\"-\".equals",
"\"-\"",
"str",
"break;",
"n = Integer.parseInt(in.readLine())",
"n",
"Integer.parseInt(in.readLine())",
"Integer.parseInt",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"for(i=0;i<n;i++){\n m = Integer.parseInt(in.readLine());\n chr = str.substring(0,m);\n line = str.substring(m,str.length());\n str = line+chr;\n }",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n m = Integer.parseInt(in.readLine());\n chr = str.substring(0,m);\n line = str.substring(m,str.length());\n str = line+chr;\n }",
"{\n m = Integer.parseInt(in.readLine());\n chr = str.substring(0,m);\n line = str.substring(m,str.length());\n str = line+chr;\n }",
"m = Integer.parseInt(in.readLine())",
"m",
"Integer.parseInt(in.readLine())",
"Integer.parseInt",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"chr = str.substring(0,m)",
"chr",
"str.substring(0,m)",
"str.substring",
"str",
"0",
"m",
"line = str.substring(m,str.length())",
"line",
"str.substring(m,str.length())",
"str.substring",
"str",
"m",
"str.length()",
"str.length",
"str",
"str = line+chr",
"str",
"line+chr",
"line",
"chr",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"System.out.flush()",
"System.out.flush",
"System.out",
"System",
"System.out",
"String[] args",
"args"
]
| import java.io.*;
import java.util.Arrays;
class Main{
public static void main(String[] args) throws IOException {
int i,n,m;
String line,chr;
String str;
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
for(;;){
str = in.readLine();
if("-".equals(str)) break;
n = Integer.parseInt(in.readLine());
for(i=0;i<n;i++){
m = Integer.parseInt(in.readLine());
chr = str.substring(0,m);
line = str.substring(m,str.length());
str = line+chr;
}
System.out.println(str);
}
System.out.flush();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
42,
17,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
0,
13,
17,
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,
13,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
0,
13,
13,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
111,
5
],
[
111,
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
],
[
18,
30
],
[
30,
31
],
[
30,
32
],
[
18,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
18,
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
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
56,
66
],
[
66,
67
],
[
67,
68
],
[
56,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
50,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
50,
96
],
[
96,
97
],
[
96,
98
],
[
50,
99
],
[
99,
100
],
[
99,
101
],
[
18,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
6,
108
],
[
108,
109
],
[
0,
110
],
[
110,
111
],
[
110,
112
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString str, str2;\n\t\twhile (true) {\n\t\t\tstr = sc.next();\n\t\t\tif (str.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tstr2 = \"\";\n\t\t\tint shuffulNum = sc.nextInt();\n\t\t\tfor (int i = 0; i < shuffulNum; i++) {\n\t\t\t\tint n = sc.nextInt();\n\t\t\t\tfor (int j = n; j < str.length(); j++) {\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}\n\t\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}\n\t\t\t\tstr = str2;\n\t\t\t\tstr2 = \"\";\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\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString str, str2;\n\t\twhile (true) {\n\t\t\tstr = sc.next();\n\t\t\tif (str.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tstr2 = \"\";\n\t\t\tint shuffulNum = sc.nextInt();\n\t\t\tfor (int i = 0; i < shuffulNum; i++) {\n\t\t\t\tint n = sc.nextInt();\n\t\t\t\tfor (int j = n; j < str.length(); j++) {\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}\n\t\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}\n\t\t\t\tstr = str2;\n\t\t\t\tstr2 = \"\";\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 sc = new Scanner(System.in);\n\n\t\tString str, str2;\n\t\twhile (true) {\n\t\t\tstr = sc.next();\n\t\t\tif (str.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tstr2 = \"\";\n\t\t\tint shuffulNum = sc.nextInt();\n\t\t\tfor (int i = 0; i < shuffulNum; i++) {\n\t\t\t\tint n = sc.nextInt();\n\t\t\t\tfor (int j = n; j < str.length(); j++) {\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}\n\t\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}\n\t\t\t\tstr = str2;\n\t\t\t\tstr2 = \"\";\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString str, str2;\n\t\twhile (true) {\n\t\t\tstr = sc.next();\n\t\t\tif (str.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tstr2 = \"\";\n\t\t\tint shuffulNum = sc.nextInt();\n\t\t\tfor (int i = 0; i < shuffulNum; i++) {\n\t\t\t\tint n = sc.nextInt();\n\t\t\t\tfor (int j = n; j < str.length(); j++) {\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}\n\t\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}\n\t\t\t\tstr = str2;\n\t\t\t\tstr2 = \"\";\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String str",
"str",
"str2;",
"str2",
"while (true) {\n\t\t\tstr = sc.next();\n\t\t\tif (str.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tstr2 = \"\";\n\t\t\tint shuffulNum = sc.nextInt();\n\t\t\tfor (int i = 0; i < shuffulNum; i++) {\n\t\t\t\tint n = sc.nextInt();\n\t\t\t\tfor (int j = n; j < str.length(); j++) {\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}\n\t\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}\n\t\t\t\tstr = str2;\n\t\t\t\tstr2 = \"\";\n\t\t\t}\n\t\t\tSystem.out.println(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\tstr2 = \"\";\n\t\t\tint shuffulNum = sc.nextInt();\n\t\t\tfor (int i = 0; i < shuffulNum; i++) {\n\t\t\t\tint n = sc.nextInt();\n\t\t\t\tfor (int j = n; j < str.length(); j++) {\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}\n\t\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}\n\t\t\t\tstr = str2;\n\t\t\t\tstr2 = \"\";\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\t\t}",
"str = sc.next()",
"str",
"sc.next()",
"sc.next",
"sc",
"if (str.equals(\"-\"))\n\t\t\t\tbreak;",
"str.equals(\"-\")",
"str.equals",
"str",
"\"-\"",
"break;",
"str2 = \"\"",
"str2",
"\"\"",
"int shuffulNum = sc.nextInt();",
"shuffulNum",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < shuffulNum; i++) {\n\t\t\t\tint n = sc.nextInt();\n\t\t\t\tfor (int j = n; j < str.length(); j++) {\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}\n\t\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}\n\t\t\t\tstr = str2;\n\t\t\t\tstr2 = \"\";\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < shuffulNum",
"i",
"shuffulNum",
"i++",
"i++",
"i",
"{\n\t\t\t\tint n = sc.nextInt();\n\t\t\t\tfor (int j = n; j < str.length(); j++) {\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}\n\t\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}\n\t\t\t\tstr = str2;\n\t\t\t\tstr2 = \"\";\n\t\t\t}",
"{\n\t\t\t\tint n = sc.nextInt();\n\t\t\t\tfor (int j = n; j < str.length(); j++) {\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}\n\t\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}\n\t\t\t\tstr = str2;\n\t\t\t\tstr2 = \"\";\n\t\t\t}",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int j = n; j < str.length(); j++) {\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}",
"int j = n;",
"int j = n;",
"j",
"n",
"j < str.length()",
"j",
"str.length()",
"str.length",
"str",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}",
"{\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}",
"str2 += str.charAt(j)",
"str2",
"str.charAt(j)",
"str.charAt",
"str",
"j",
"for (int j = 0; j < n; j++) {\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < n",
"j",
"n",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}",
"{\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}",
"str2 += str.charAt(j)",
"str2",
"str.charAt(j)",
"str.charAt",
"str",
"j",
"str = str2",
"str",
"str2",
"str2 = \"\"",
"str2",
"\"\"",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString str, str2;\n\t\twhile (true) {\n\t\t\tstr = sc.next();\n\t\t\tif (str.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tstr2 = \"\";\n\t\t\tint shuffulNum = sc.nextInt();\n\t\t\tfor (int i = 0; i < shuffulNum; i++) {\n\t\t\t\tint n = sc.nextInt();\n\t\t\t\tfor (int j = n; j < str.length(); j++) {\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}\n\t\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}\n\t\t\t\tstr = str2;\n\t\t\t\tstr2 = \"\";\n\t\t\t}\n\t\t\tSystem.out.println(str);\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\n\t\tString str, str2;\n\t\twhile (true) {\n\t\t\tstr = sc.next();\n\t\t\tif (str.equals(\"-\"))\n\t\t\t\tbreak;\n\t\t\tstr2 = \"\";\n\t\t\tint shuffulNum = sc.nextInt();\n\t\t\tfor (int i = 0; i < shuffulNum; i++) {\n\t\t\t\tint n = sc.nextInt();\n\t\t\t\tfor (int j = n; j < str.length(); j++) {\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}\n\t\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\t\tstr2 += str.charAt(j);\n\t\t\t\t}\n\t\t\t\tstr = str2;\n\t\t\t\tstr2 = \"\";\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 sc = new Scanner(System.in);
String str, str2;
while (true) {
str = sc.next();
if (str.equals("-"))
break;
str2 = "";
int shuffulNum = sc.nextInt();
for (int i = 0; i < shuffulNum; i++) {
int n = sc.nextInt();
for (int j = n; j < str.length(); j++) {
str2 += str.charAt(j);
}
for (int j = 0; j < n; j++) {
str2 += str.charAt(j);
}
str = str2;
str2 = "";
}
System.out.println(str);
}
}
} |
[
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,
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
],
[
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
],
[
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
],
[
70,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
52,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
20,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
12,
88
],
[
88,
89
]
]
| [
"\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main{\n public static void main(String args[]) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\n while(true){\n\n\t String cards = br.readLine();\n\t if( cards.equals(\"-\") ) break;\n\n int m = Integer.parseInt(br.readLine());\n\n for(int i = 0;i < m; i++){\n \t int h = Integer.parseInt(br.readLine());\n \t String left = cards.substring(0, h);\t \n \t String right = cards.substring(h, cards.length());\t\n cards = right + left;\n\n }\n System.out.println(cards);\n\n }\n\n\n\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main{\n public static void main(String args[]) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\n while(true){\n\n\t String cards = br.readLine();\n\t if( cards.equals(\"-\") ) break;\n\n int m = Integer.parseInt(br.readLine());\n\n for(int i = 0;i < m; i++){\n \t int h = Integer.parseInt(br.readLine());\n \t String left = cards.substring(0, h);\t \n \t String right = cards.substring(h, cards.length());\t\n cards = right + left;\n\n }\n System.out.println(cards);\n\n }\n\n\n\n }\n}",
"Main",
"public static void main(String args[]) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\n while(true){\n\n\t String cards = br.readLine();\n\t if( cards.equals(\"-\") ) break;\n\n int m = Integer.parseInt(br.readLine());\n\n for(int i = 0;i < m; i++){\n \t int h = Integer.parseInt(br.readLine());\n \t String left = cards.substring(0, h);\t \n \t String right = cards.substring(h, cards.length());\t\n cards = right + left;\n\n }\n System.out.println(cards);\n\n }\n\n\n\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\n\n while(true){\n\n\t String cards = br.readLine();\n\t if( cards.equals(\"-\") ) break;\n\n int m = Integer.parseInt(br.readLine());\n\n for(int i = 0;i < m; i++){\n \t int h = Integer.parseInt(br.readLine());\n \t String left = cards.substring(0, h);\t \n \t String right = cards.substring(h, cards.length());\t\n cards = right + left;\n\n }\n System.out.println(cards);\n\n }\n\n\n\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"while(true){\n\n\t String cards = br.readLine();\n\t if( cards.equals(\"-\") ) break;\n\n int m = Integer.parseInt(br.readLine());\n\n for(int i = 0;i < m; i++){\n \t int h = Integer.parseInt(br.readLine());\n \t String left = cards.substring(0, h);\t \n \t String right = cards.substring(h, cards.length());\t\n cards = right + left;\n\n }\n System.out.println(cards);\n\n }",
"true",
"{\n\n\t String cards = br.readLine();\n\t if( cards.equals(\"-\") ) break;\n\n int m = Integer.parseInt(br.readLine());\n\n for(int i = 0;i < m; i++){\n \t int h = Integer.parseInt(br.readLine());\n \t String left = cards.substring(0, h);\t \n \t String right = cards.substring(h, cards.length());\t\n cards = right + left;\n\n }\n System.out.println(cards);\n\n }",
"String cards = br.readLine();",
"cards",
"br.readLine()",
"br.readLine",
"br",
"if( cards.equals(\"-\") ) break;",
"cards.equals(\"-\")",
"cards.equals",
"cards",
"\"-\"",
"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 \t int h = Integer.parseInt(br.readLine());\n \t String left = cards.substring(0, h);\t \n \t String right = cards.substring(h, cards.length());\t\n cards = right + left;\n\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n \t int h = Integer.parseInt(br.readLine());\n \t String left = cards.substring(0, h);\t \n \t String right = cards.substring(h, cards.length());\t\n cards = right + left;\n\n }",
"{\n \t int h = Integer.parseInt(br.readLine());\n \t String left = cards.substring(0, h);\t \n \t String right = cards.substring(h, cards.length());\t\n cards = right + left;\n\n }",
"int h = Integer.parseInt(br.readLine());",
"h",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String left = cards.substring(0, h);",
"left",
"cards.substring(0, h)",
"cards.substring",
"cards",
"0",
"h",
"String right = cards.substring(h, cards.length());",
"right",
"cards.substring(h, cards.length())",
"cards.substring",
"cards",
"h",
"cards.length()",
"cards.length",
"cards",
"cards = right + left",
"cards",
"right + left",
"right",
"left",
"System.out.println(cards)",
"System.out.println",
"System.out",
"System",
"System.out",
"cards",
"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));
while(true){
String cards = br.readLine();
if( cards.equals("-") ) break;
int m = Integer.parseInt(br.readLine());
for(int i = 0;i < m; i++){
int h = Integer.parseInt(br.readLine());
String left = cards.substring(0, h);
String right = cards.substring(h, cards.length());
cards = right + left;
}
System.out.println(cards);
}
}
} |
[
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,
4,
18,
13,
41,
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,
0,
13,
2,
4,
18,
13,
13,
4,
18,
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
],
[
88,
5
],
[
88,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
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
],
[
23,
32
],
[
32,
33
],
[
32,
34
],
[
23,
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
],
[
47,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
62,
66
],
[
66,
67
],
[
67,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
69,
73
],
[
23,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
23,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
6,
85
],
[
85,
86
],
[
0,
87
],
[
87,
88
],
[
87,
89
]
]
| [
"import java.util.Scanner;\npublic class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tString n = scan.nextLine();\n\twhile (!n.equals(\"-\")) {\n\t int m = scan.nextInt();\n\t scan.nextLine();\n\t String newN = n;\n\t for (int i = 0; i < m; i++) {\n\t\tString hs = scan.nextLine();\n\t\tint h = Integer.valueOf(hs);\n\t\tnewN = newN.substring(h, newN.length()) + newN.substring(0, h);\n\t }\n\t System.out.println(newN);\n\t n = scan.nextLine();\n\t}\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tString n = scan.nextLine();\n\twhile (!n.equals(\"-\")) {\n\t int m = scan.nextInt();\n\t scan.nextLine();\n\t String newN = n;\n\t for (int i = 0; i < m; i++) {\n\t\tString hs = scan.nextLine();\n\t\tint h = Integer.valueOf(hs);\n\t\tnewN = newN.substring(h, newN.length()) + newN.substring(0, h);\n\t }\n\t System.out.println(newN);\n\t n = scan.nextLine();\n\t}\n }\n}",
"Main",
"public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tString n = scan.nextLine();\n\twhile (!n.equals(\"-\")) {\n\t int m = scan.nextInt();\n\t scan.nextLine();\n\t String newN = n;\n\t for (int i = 0; i < m; i++) {\n\t\tString hs = scan.nextLine();\n\t\tint h = Integer.valueOf(hs);\n\t\tnewN = newN.substring(h, newN.length()) + newN.substring(0, h);\n\t }\n\t System.out.println(newN);\n\t n = scan.nextLine();\n\t}\n }",
"main",
"{\n\tScanner scan = new Scanner(System.in);\n\tString n = scan.nextLine();\n\twhile (!n.equals(\"-\")) {\n\t int m = scan.nextInt();\n\t scan.nextLine();\n\t String newN = n;\n\t for (int i = 0; i < m; i++) {\n\t\tString hs = scan.nextLine();\n\t\tint h = Integer.valueOf(hs);\n\t\tnewN = newN.substring(h, newN.length()) + newN.substring(0, h);\n\t }\n\t System.out.println(newN);\n\t n = scan.nextLine();\n\t}\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String n = scan.nextLine();",
"n",
"scan.nextLine()",
"scan.nextLine",
"scan",
"while (!n.equals(\"-\")) {\n\t int m = scan.nextInt();\n\t scan.nextLine();\n\t String newN = n;\n\t for (int i = 0; i < m; i++) {\n\t\tString hs = scan.nextLine();\n\t\tint h = Integer.valueOf(hs);\n\t\tnewN = newN.substring(h, newN.length()) + newN.substring(0, h);\n\t }\n\t System.out.println(newN);\n\t n = scan.nextLine();\n\t}",
"!n.equals(\"-\")",
"n.equals(\"-\")",
"n.equals",
"n",
"\"-\"",
"{\n\t int m = scan.nextInt();\n\t scan.nextLine();\n\t String newN = n;\n\t for (int i = 0; i < m; i++) {\n\t\tString hs = scan.nextLine();\n\t\tint h = Integer.valueOf(hs);\n\t\tnewN = newN.substring(h, newN.length()) + newN.substring(0, h);\n\t }\n\t System.out.println(newN);\n\t n = scan.nextLine();\n\t}",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String newN = n;",
"newN",
"n",
"for (int i = 0; i < m; i++) {\n\t\tString hs = scan.nextLine();\n\t\tint h = Integer.valueOf(hs);\n\t\tnewN = newN.substring(h, newN.length()) + newN.substring(0, h);\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\tString hs = scan.nextLine();\n\t\tint h = Integer.valueOf(hs);\n\t\tnewN = newN.substring(h, newN.length()) + newN.substring(0, h);\n\t }",
"{\n\t\tString hs = scan.nextLine();\n\t\tint h = Integer.valueOf(hs);\n\t\tnewN = newN.substring(h, newN.length()) + newN.substring(0, h);\n\t }",
"String hs = scan.nextLine();",
"hs",
"scan.nextLine()",
"scan.nextLine",
"scan",
"int h = Integer.valueOf(hs);",
"h",
"Integer.valueOf(hs)",
"Integer.valueOf",
"Integer",
"hs",
"newN = newN.substring(h, newN.length()) + newN.substring(0, h)",
"newN",
"newN.substring(h, newN.length()) + newN.substring(0, h)",
"newN.substring(h, newN.length())",
"newN.substring",
"newN",
"h",
"newN.length()",
"newN.length",
"newN",
"newN.substring(0, h)",
"newN.substring",
"newN",
"0",
"h",
"System.out.println(newN)",
"System.out.println",
"System.out",
"System",
"System.out",
"newN",
"n = scan.nextLine()",
"n",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String[] args",
"args",
"public class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tString n = scan.nextLine();\n\twhile (!n.equals(\"-\")) {\n\t int m = scan.nextInt();\n\t scan.nextLine();\n\t String newN = n;\n\t for (int i = 0; i < m; i++) {\n\t\tString hs = scan.nextLine();\n\t\tint h = Integer.valueOf(hs);\n\t\tnewN = newN.substring(h, newN.length()) + newN.substring(0, h);\n\t }\n\t System.out.println(newN);\n\t n = scan.nextLine();\n\t}\n }\n}",
"public class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tString n = scan.nextLine();\n\twhile (!n.equals(\"-\")) {\n\t int m = scan.nextInt();\n\t scan.nextLine();\n\t String newN = n;\n\t for (int i = 0; i < m; i++) {\n\t\tString hs = scan.nextLine();\n\t\tint h = Integer.valueOf(hs);\n\t\tnewN = newN.substring(h, newN.length()) + newN.substring(0, h);\n\t }\n\t System.out.println(newN);\n\t n = scan.nextLine();\n\t}\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main (String[] args) {
Scanner scan = new Scanner(System.in);
String n = scan.nextLine();
while (!n.equals("-")) {
int m = scan.nextInt();
scan.nextLine();
String newN = n;
for (int i = 0; i < m; i++) {
String hs = scan.nextLine();
int h = Integer.valueOf(hs);
newN = newN.substring(h, newN.length()) + newN.substring(0, h);
}
System.out.println(newN);
n = scan.nextLine();
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
39,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
17,
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,
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
],
[
106,
5
],
[
106,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
8,
10
],
[
8,
11
],
[
8,
12
],
[
8,
13
],
[
8,
14
],
[
8,
15
],
[
8,
16
],
[
8,
17
],
[
8,
18
],
[
8,
19
],
[
8,
20
],
[
8,
21
],
[
8,
22
],
[
8,
23
],
[
8,
24
],
[
8,
25
],
[
8,
26
],
[
8,
27
],
[
8,
28
],
[
8,
29
],
[
8,
30
],
[
8,
31
],
[
8,
32
],
[
8,
33
],
[
8,
34
],
[
106,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
49,
54
],
[
54,
55
],
[
43,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
43,
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
],
[
76,
77
],
[
77,
78
],
[
73,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
81,
85
],
[
73,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
73,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
94,
96
],
[
43,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
35,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
]
| [
"import java.util.Scanner;\npublic class Main {\n\t\n\tstatic char[] k = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString W = stdIn.next();\n\t\t\tif(W.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = stdIn.nextInt();\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tint h = stdIn.nextInt();\n\t\t\t\tString s1 = W.substring(0, h);\n\t\t\t\tString s2 = W.substring(h);\n\t\t\t\tW = s2 + s1;\n\t\t\t}\n\t\t\tSystem.out.println(W);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\t\n\tstatic char[] k = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString W = stdIn.next();\n\t\t\tif(W.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = stdIn.nextInt();\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tint h = stdIn.nextInt();\n\t\t\t\tString s1 = W.substring(0, h);\n\t\t\t\tString s2 = W.substring(h);\n\t\t\t\tW = s2 + s1;\n\t\t\t}\n\t\t\tSystem.out.println(W);\n\t\t}\n\t}\n}",
"Main",
"static char[] k = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};",
"k",
"{'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}",
"'a'",
"'b'",
"'c'",
"'d'",
"'e'",
"'f'",
"'g'",
"'h'",
"'i'",
"'j'",
"'k'",
"'l'",
"'m'",
"'n'",
"'o'",
"'p'",
"'q'",
"'r'",
"'s'",
"'t'",
"'u'",
"'v'",
"'w'",
"'x'",
"'y'",
"'z'",
"public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString W = stdIn.next();\n\t\t\tif(W.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = stdIn.nextInt();\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tint h = stdIn.nextInt();\n\t\t\t\tString s1 = W.substring(0, h);\n\t\t\t\tString s2 = W.substring(h);\n\t\t\t\tW = s2 + s1;\n\t\t\t}\n\t\t\tSystem.out.println(W);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString W = stdIn.next();\n\t\t\tif(W.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = stdIn.nextInt();\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tint h = stdIn.nextInt();\n\t\t\t\tString s1 = W.substring(0, h);\n\t\t\t\tString s2 = W.substring(h);\n\t\t\t\tW = s2 + s1;\n\t\t\t}\n\t\t\tSystem.out.println(W);\n\t\t}\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"while (true) {\n\t\t\tString W = stdIn.next();\n\t\t\tif(W.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = stdIn.nextInt();\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tint h = stdIn.nextInt();\n\t\t\t\tString s1 = W.substring(0, h);\n\t\t\t\tString s2 = W.substring(h);\n\t\t\t\tW = s2 + s1;\n\t\t\t}\n\t\t\tSystem.out.println(W);\n\t\t}",
"true",
"{\n\t\t\tString W = stdIn.next();\n\t\t\tif(W.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = stdIn.nextInt();\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tint h = stdIn.nextInt();\n\t\t\t\tString s1 = W.substring(0, h);\n\t\t\t\tString s2 = W.substring(h);\n\t\t\t\tW = s2 + s1;\n\t\t\t}\n\t\t\tSystem.out.println(W);\n\t\t}",
"String W = stdIn.next();",
"W",
"stdIn.next()",
"stdIn.next",
"stdIn",
"if(W.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}",
"W.equals(\"-\")",
"W.equals",
"W",
"\"-\"",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"int m = stdIn.nextInt();",
"m",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"for(int i = 0; i < m; i++) {\n\t\t\t\tint h = stdIn.nextInt();\n\t\t\t\tString s1 = W.substring(0, h);\n\t\t\t\tString s2 = W.substring(h);\n\t\t\t\tW = s2 + s1;\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 = stdIn.nextInt();\n\t\t\t\tString s1 = W.substring(0, h);\n\t\t\t\tString s2 = W.substring(h);\n\t\t\t\tW = s2 + s1;\n\t\t\t}",
"{\n\t\t\t\tint h = stdIn.nextInt();\n\t\t\t\tString s1 = W.substring(0, h);\n\t\t\t\tString s2 = W.substring(h);\n\t\t\t\tW = s2 + s1;\n\t\t\t}",
"int h = stdIn.nextInt();",
"h",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"String s1 = W.substring(0, h);",
"s1",
"W.substring(0, h)",
"W.substring",
"W",
"0",
"h",
"String s2 = W.substring(h);",
"s2",
"W.substring(h)",
"W.substring",
"W",
"h",
"W = s2 + s1",
"W",
"s2 + s1",
"s2",
"s1",
"System.out.println(W)",
"System.out.println",
"System.out",
"System",
"System.out",
"W",
"String[] args",
"args",
"public class Main {\n\t\n\tstatic char[] k = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString W = stdIn.next();\n\t\t\tif(W.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = stdIn.nextInt();\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tint h = stdIn.nextInt();\n\t\t\t\tString s1 = W.substring(0, h);\n\t\t\t\tString s2 = W.substring(h);\n\t\t\t\tW = s2 + s1;\n\t\t\t}\n\t\t\tSystem.out.println(W);\n\t\t}\n\t}\n}",
"public class Main {\n\t\n\tstatic char[] k = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString W = stdIn.next();\n\t\t\tif(W.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = stdIn.nextInt();\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tint h = stdIn.nextInt();\n\t\t\t\tString s1 = W.substring(0, h);\n\t\t\t\tString s2 = W.substring(h);\n\t\t\t\tW = s2 + s1;\n\t\t\t}\n\t\t\tSystem.out.println(W);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
static char[] k = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
while (true) {
String W = stdIn.next();
if(W.equals("-")) {
break;
}
int m = stdIn.nextInt();
for(int i = 0; i < m; i++) {
int h = stdIn.nextInt();
String s1 = W.substring(0, h);
String s2 = W.substring(h);
W = s2 + s1;
}
System.out.println(W);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
20,
11,
1,
41,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
14,
4,
18,
4,
18,
13,
13,
17,
30,
4,
18,
13,
13,
3,
41,
13,
4,
18,
13,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
4,
13,
4,
18,
13,
13,
13,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
4,
18,
13,
13,
11,
1,
41,
13,
13,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
4,
18,
13,
13,
0,
13,
2,
13,
13,
29,
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
],
[
158,
11
],
[
158,
12
],
[
12,
13
],
[
12,
14
],
[
158,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
30,
31
],
[
24,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
38,
39
],
[
33,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
41,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
48,
53
],
[
33,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
33,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
63,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
69,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
73,
79
],
[
17,
80
],
[
80,
81
],
[
80,
82
],
[
80,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
15,
91
],
[
91,
92
],
[
158,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
99,
100
],
[
99,
101
],
[
95,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
110,
111
],
[
111,
112
],
[
102,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
95,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
123,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
123,
133
],
[
133,
134
],
[
134,
135
],
[
123,
136
],
[
137,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
142,
145
],
[
95,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
148,
150
],
[
95,
151
],
[
151,
152
],
[
93,
153
],
[
153,
154
],
[
93,
155
],
[
155,
156
],
[
0,
157
],
[
157,
158
],
[
157,
159
]
]
| [
"import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\t\tstatic int CARD_MAX=200;\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<String> str =new ArrayList<String>();\n\n\n\t\tfor(int i=0;;i++){\n\t\t\t str.add(scan.next());\n\t\t\t if(str.get(i).equals(\"-\")) {\n\t\t\t\t str.remove(i);\n\t\t\t\t break;\n\t\t\t }\n\n\t\t\t int m = scan.nextInt();\n\t\t\t\t while(scan.hasNextInt()){\n\t\t\t\t\t int h = scan.nextInt();\n\t\t\t\t\t\t\tstr.set(i,shutffleString(str.get(i),h));\n\t\t\t\t }\n\n\t\t}\n\n\t\tfor (String st : str){\n\t\t\tSystem.out.println(st);\n\t\t}\n\n\t}\n\n\n\npublic static String shutffleString(String str,int h){\n\t\tString before = new String();\n\t\tString after = new String();\n\n\t\tfor(int i = 0 ; i<h ; i++){\n\t\t\tbefore = before + str.charAt(i);\n\t\t}\n\t\tfor(int i=h ; i < str.length() ;i++){\n\t\t\tafter = after + str.charAt(i);\n\t\t}\n\t\t\tstr = after + before;\n\n\treturn str;\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\t\tstatic int CARD_MAX=200;\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<String> str =new ArrayList<String>();\n\n\n\t\tfor(int i=0;;i++){\n\t\t\t str.add(scan.next());\n\t\t\t if(str.get(i).equals(\"-\")) {\n\t\t\t\t str.remove(i);\n\t\t\t\t break;\n\t\t\t }\n\n\t\t\t int m = scan.nextInt();\n\t\t\t\t while(scan.hasNextInt()){\n\t\t\t\t\t int h = scan.nextInt();\n\t\t\t\t\t\t\tstr.set(i,shutffleString(str.get(i),h));\n\t\t\t\t }\n\n\t\t}\n\n\t\tfor (String st : str){\n\t\t\tSystem.out.println(st);\n\t\t}\n\n\t}\n\n\n\npublic static String shutffleString(String str,int h){\n\t\tString before = new String();\n\t\tString after = new String();\n\n\t\tfor(int i = 0 ; i<h ; i++){\n\t\t\tbefore = before + str.charAt(i);\n\t\t}\n\t\tfor(int i=h ; i < str.length() ;i++){\n\t\t\tafter = after + str.charAt(i);\n\t\t}\n\t\t\tstr = after + before;\n\n\treturn str;\n}\n\n}",
"Main",
"static int CARD_MAX=200;",
"CARD_MAX",
"200",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<String> str =new ArrayList<String>();\n\n\n\t\tfor(int i=0;;i++){\n\t\t\t str.add(scan.next());\n\t\t\t if(str.get(i).equals(\"-\")) {\n\t\t\t\t str.remove(i);\n\t\t\t\t break;\n\t\t\t }\n\n\t\t\t int m = scan.nextInt();\n\t\t\t\t while(scan.hasNextInt()){\n\t\t\t\t\t int h = scan.nextInt();\n\t\t\t\t\t\t\tstr.set(i,shutffleString(str.get(i),h));\n\t\t\t\t }\n\n\t\t}\n\n\t\tfor (String st : str){\n\t\t\tSystem.out.println(st);\n\t\t}\n\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<String> str =new ArrayList<String>();\n\n\n\t\tfor(int i=0;;i++){\n\t\t\t str.add(scan.next());\n\t\t\t if(str.get(i).equals(\"-\")) {\n\t\t\t\t str.remove(i);\n\t\t\t\t break;\n\t\t\t }\n\n\t\t\t int m = scan.nextInt();\n\t\t\t\t while(scan.hasNextInt()){\n\t\t\t\t\t int h = scan.nextInt();\n\t\t\t\t\t\t\tstr.set(i,shutffleString(str.get(i),h));\n\t\t\t\t }\n\n\t\t}\n\n\t\tfor (String st : str){\n\t\t\tSystem.out.println(st);\n\t\t}\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"List<String> str =new ArrayList<String>();",
"str",
"new ArrayList<String>()",
"for(int i=0;;i++){\n\t\t\t str.add(scan.next());\n\t\t\t if(str.get(i).equals(\"-\")) {\n\t\t\t\t str.remove(i);\n\t\t\t\t break;\n\t\t\t }\n\n\t\t\t int m = scan.nextInt();\n\t\t\t\t while(scan.hasNextInt()){\n\t\t\t\t\t int h = scan.nextInt();\n\t\t\t\t\t\t\tstr.set(i,shutffleString(str.get(i),h));\n\t\t\t\t }\n\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i++",
"i++",
"i",
"{\n\t\t\t str.add(scan.next());\n\t\t\t if(str.get(i).equals(\"-\")) {\n\t\t\t\t str.remove(i);\n\t\t\t\t break;\n\t\t\t }\n\n\t\t\t int m = scan.nextInt();\n\t\t\t\t while(scan.hasNextInt()){\n\t\t\t\t\t int h = scan.nextInt();\n\t\t\t\t\t\t\tstr.set(i,shutffleString(str.get(i),h));\n\t\t\t\t }\n\n\t\t}",
"{\n\t\t\t str.add(scan.next());\n\t\t\t if(str.get(i).equals(\"-\")) {\n\t\t\t\t str.remove(i);\n\t\t\t\t break;\n\t\t\t }\n\n\t\t\t int m = scan.nextInt();\n\t\t\t\t while(scan.hasNextInt()){\n\t\t\t\t\t int h = scan.nextInt();\n\t\t\t\t\t\t\tstr.set(i,shutffleString(str.get(i),h));\n\t\t\t\t }\n\n\t\t}",
"str.add(scan.next())",
"str.add",
"str",
"scan.next()",
"scan.next",
"scan",
"if(str.get(i).equals(\"-\")) {\n\t\t\t\t str.remove(i);\n\t\t\t\t break;\n\t\t\t }",
"str.get(i).equals(\"-\")",
"str.get(i).equals",
"str.get(i)",
"str.get",
"str",
"i",
"\"-\"",
"{\n\t\t\t\t str.remove(i);\n\t\t\t\t break;\n\t\t\t }",
"str.remove(i)",
"str.remove",
"str",
"i",
"break;",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"while(scan.hasNextInt()){\n\t\t\t\t\t int h = scan.nextInt();\n\t\t\t\t\t\t\tstr.set(i,shutffleString(str.get(i),h));\n\t\t\t\t }",
"scan.hasNextInt()",
"scan.hasNextInt",
"scan",
"{\n\t\t\t\t\t int h = scan.nextInt();\n\t\t\t\t\t\t\tstr.set(i,shutffleString(str.get(i),h));\n\t\t\t\t }",
"int h = scan.nextInt();",
"h",
"scan.nextInt()",
"scan.nextInt",
"scan",
"str.set(i,shutffleString(str.get(i),h))",
"str.set",
"str",
"i",
"shutffleString(str.get(i),h)",
"shutffleString",
"str.get(i)",
"str.get",
"str",
"i",
"h",
"for (String st : str){\n\t\t\tSystem.out.println(st);\n\t\t}",
"String st",
"str",
"{\n\t\t\tSystem.out.println(st);\n\t\t}",
"{\n\t\t\tSystem.out.println(st);\n\t\t}",
"System.out.println(st)",
"System.out.println",
"System.out",
"System",
"System.out",
"st",
"String[] args",
"args",
"public static String shutffleString(String str,int h){\n\t\tString before = new String();\n\t\tString after = new String();\n\n\t\tfor(int i = 0 ; i<h ; i++){\n\t\t\tbefore = before + str.charAt(i);\n\t\t}\n\t\tfor(int i=h ; i < str.length() ;i++){\n\t\t\tafter = after + str.charAt(i);\n\t\t}\n\t\t\tstr = after + before;\n\n\treturn str;\n}",
"shutffleString",
"{\n\t\tString before = new String();\n\t\tString after = new String();\n\n\t\tfor(int i = 0 ; i<h ; i++){\n\t\t\tbefore = before + str.charAt(i);\n\t\t}\n\t\tfor(int i=h ; i < str.length() ;i++){\n\t\t\tafter = after + str.charAt(i);\n\t\t}\n\t\t\tstr = after + before;\n\n\treturn str;\n}",
"String before = new String();",
"before",
"new String()",
"String after = new String();",
"after",
"new String()",
"for(int i = 0 ; i<h ; i++){\n\t\t\tbefore = before + str.charAt(i);\n\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i<h",
"i",
"h",
"i++",
"i++",
"i",
"{\n\t\t\tbefore = before + str.charAt(i);\n\t\t}",
"{\n\t\t\tbefore = before + str.charAt(i);\n\t\t}",
"before = before + str.charAt(i)",
"before",
"before + str.charAt(i)",
"before",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"for(int i=h ; i < str.length() ;i++){\n\t\t\tafter = after + str.charAt(i);\n\t\t}",
"int i=h ;",
"int i=h ;",
"i",
"h",
"i < str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n\t\t\tafter = after + str.charAt(i);\n\t\t}",
"{\n\t\t\tafter = after + str.charAt(i);\n\t\t}",
"after = after + str.charAt(i)",
"after",
"after + str.charAt(i)",
"after",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"str = after + before",
"str",
"after + before",
"after",
"before",
"return str;",
"str",
"String str",
"str",
"int h",
"h",
"public class Main {\n\t\tstatic int CARD_MAX=200;\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<String> str =new ArrayList<String>();\n\n\n\t\tfor(int i=0;;i++){\n\t\t\t str.add(scan.next());\n\t\t\t if(str.get(i).equals(\"-\")) {\n\t\t\t\t str.remove(i);\n\t\t\t\t break;\n\t\t\t }\n\n\t\t\t int m = scan.nextInt();\n\t\t\t\t while(scan.hasNextInt()){\n\t\t\t\t\t int h = scan.nextInt();\n\t\t\t\t\t\t\tstr.set(i,shutffleString(str.get(i),h));\n\t\t\t\t }\n\n\t\t}\n\n\t\tfor (String st : str){\n\t\t\tSystem.out.println(st);\n\t\t}\n\n\t}\n\n\n\npublic static String shutffleString(String str,int h){\n\t\tString before = new String();\n\t\tString after = new String();\n\n\t\tfor(int i = 0 ; i<h ; i++){\n\t\t\tbefore = before + str.charAt(i);\n\t\t}\n\t\tfor(int i=h ; i < str.length() ;i++){\n\t\t\tafter = after + str.charAt(i);\n\t\t}\n\t\t\tstr = after + before;\n\n\treturn str;\n}\n\n}",
"public class Main {\n\t\tstatic int CARD_MAX=200;\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<String> str =new ArrayList<String>();\n\n\n\t\tfor(int i=0;;i++){\n\t\t\t str.add(scan.next());\n\t\t\t if(str.get(i).equals(\"-\")) {\n\t\t\t\t str.remove(i);\n\t\t\t\t break;\n\t\t\t }\n\n\t\t\t int m = scan.nextInt();\n\t\t\t\t while(scan.hasNextInt()){\n\t\t\t\t\t int h = scan.nextInt();\n\t\t\t\t\t\t\tstr.set(i,shutffleString(str.get(i),h));\n\t\t\t\t }\n\n\t\t}\n\n\t\tfor (String st : str){\n\t\t\tSystem.out.println(st);\n\t\t}\n\n\t}\n\n\n\npublic static String shutffleString(String str,int h){\n\t\tString before = new String();\n\t\tString after = new String();\n\n\t\tfor(int i = 0 ; i<h ; i++){\n\t\t\tbefore = before + str.charAt(i);\n\t\t}\n\t\tfor(int i=h ; i < str.length() ;i++){\n\t\t\tafter = after + str.charAt(i);\n\t\t}\n\t\t\tstr = after + before;\n\n\treturn str;\n}\n\n}",
"Main"
]
| import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
static int CARD_MAX=200;
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
List<String> str =new ArrayList<String>();
for(int i=0;;i++){
str.add(scan.next());
if(str.get(i).equals("-")) {
str.remove(i);
break;
}
int m = scan.nextInt();
while(scan.hasNextInt()){
int h = scan.nextInt();
str.set(i,shutffleString(str.get(i),h));
}
}
for (String st : str){
System.out.println(st);
}
}
public static String shutffleString(String str,int h){
String before = new String();
String after = new String();
for(int i = 0 ; i<h ; i++){
before = before + str.charAt(i);
}
for(int i=h ; i < str.length() ;i++){
after = after + str.charAt(i);
}
str = after + before;
return str;
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
42,
40,
4,
18,
17,
13,
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,
12,
13,
30,
4,
18,
20,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
88,
5
],
[
88,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
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
],
[
88,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
79,
85
],
[
85,
86
],
[
0,
87
],
[
87,
88
],
[
87,
89
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tvoid run(){\n\t\tScanner s = new Scanner(System.in);\n\t\tString cards = s.next();\n\t\twhile(!\"-\".equals(cards)){\n\t\t\tint num = s.nextInt();\n\t\t\tfor(int i = 0;i < num;i++){\n\t\t\t\tint h = s.nextInt();\n\t\t\t\tString top = cards.substring(0,h);\n\t\t\t\tString under = cards.substring(h,cards.length());\n\t\t\t\tcards = under + top;\n\t\t\t}\n\t\t\tSystem.out.println(cards);\n\t\t\tcards = s.next();\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 s = new Scanner(System.in);\n\t\tString cards = s.next();\n\t\twhile(!\"-\".equals(cards)){\n\t\t\tint num = s.nextInt();\n\t\t\tfor(int i = 0;i < num;i++){\n\t\t\t\tint h = s.nextInt();\n\t\t\t\tString top = cards.substring(0,h);\n\t\t\t\tString under = cards.substring(h,cards.length());\n\t\t\t\tcards = under + top;\n\t\t\t}\n\t\t\tSystem.out.println(cards);\n\t\t\tcards = s.next();\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 s = new Scanner(System.in);\n\t\tString cards = s.next();\n\t\twhile(!\"-\".equals(cards)){\n\t\t\tint num = s.nextInt();\n\t\t\tfor(int i = 0;i < num;i++){\n\t\t\t\tint h = s.nextInt();\n\t\t\t\tString top = cards.substring(0,h);\n\t\t\t\tString under = cards.substring(h,cards.length());\n\t\t\t\tcards = under + top;\n\t\t\t}\n\t\t\tSystem.out.println(cards);\n\t\t\tcards = s.next();\n\t\t}\n\t}",
"run",
"{\n\t\tScanner s = new Scanner(System.in);\n\t\tString cards = s.next();\n\t\twhile(!\"-\".equals(cards)){\n\t\t\tint num = s.nextInt();\n\t\t\tfor(int i = 0;i < num;i++){\n\t\t\t\tint h = s.nextInt();\n\t\t\t\tString top = cards.substring(0,h);\n\t\t\t\tString under = cards.substring(h,cards.length());\n\t\t\t\tcards = under + top;\n\t\t\t}\n\t\t\tSystem.out.println(cards);\n\t\t\tcards = s.next();\n\t\t}\n\t}",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"String cards = s.next();",
"cards",
"s.next()",
"s.next",
"s",
"while(!\"-\".equals(cards)){\n\t\t\tint num = s.nextInt();\n\t\t\tfor(int i = 0;i < num;i++){\n\t\t\t\tint h = s.nextInt();\n\t\t\t\tString top = cards.substring(0,h);\n\t\t\t\tString under = cards.substring(h,cards.length());\n\t\t\t\tcards = under + top;\n\t\t\t}\n\t\t\tSystem.out.println(cards);\n\t\t\tcards = s.next();\n\t\t}",
"!\"-\".equals(cards)",
"\"-\".equals(cards)",
"\"-\".equals",
"\"-\"",
"cards",
"{\n\t\t\tint num = s.nextInt();\n\t\t\tfor(int i = 0;i < num;i++){\n\t\t\t\tint h = s.nextInt();\n\t\t\t\tString top = cards.substring(0,h);\n\t\t\t\tString under = cards.substring(h,cards.length());\n\t\t\t\tcards = under + top;\n\t\t\t}\n\t\t\tSystem.out.println(cards);\n\t\t\tcards = s.next();\n\t\t}",
"int num = s.nextInt();",
"num",
"s.nextInt()",
"s.nextInt",
"s",
"for(int i = 0;i < num;i++){\n\t\t\t\tint h = s.nextInt();\n\t\t\t\tString top = cards.substring(0,h);\n\t\t\t\tString under = cards.substring(h,cards.length());\n\t\t\t\tcards = under + top;\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\t\tint h = s.nextInt();\n\t\t\t\tString top = cards.substring(0,h);\n\t\t\t\tString under = cards.substring(h,cards.length());\n\t\t\t\tcards = under + top;\n\t\t\t}",
"{\n\t\t\t\tint h = s.nextInt();\n\t\t\t\tString top = cards.substring(0,h);\n\t\t\t\tString under = cards.substring(h,cards.length());\n\t\t\t\tcards = under + top;\n\t\t\t}",
"int h = s.nextInt();",
"h",
"s.nextInt()",
"s.nextInt",
"s",
"String top = cards.substring(0,h);",
"top",
"cards.substring(0,h)",
"cards.substring",
"cards",
"0",
"h",
"String under = cards.substring(h,cards.length());",
"under",
"cards.substring(h,cards.length())",
"cards.substring",
"cards",
"h",
"cards.length()",
"cards.length",
"cards",
"cards = under + top",
"cards",
"under + top",
"under",
"top",
"System.out.println(cards)",
"System.out.println",
"System.out",
"System",
"System.out",
"cards",
"cards = s.next()",
"cards",
"s.next()",
"s.next",
"s",
"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 s = new Scanner(System.in);\n\t\tString cards = s.next();\n\t\twhile(!\"-\".equals(cards)){\n\t\t\tint num = s.nextInt();\n\t\t\tfor(int i = 0;i < num;i++){\n\t\t\t\tint h = s.nextInt();\n\t\t\t\tString top = cards.substring(0,h);\n\t\t\t\tString under = cards.substring(h,cards.length());\n\t\t\t\tcards = under + top;\n\t\t\t}\n\t\t\tSystem.out.println(cards);\n\t\t\tcards = s.next();\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 s = new Scanner(System.in);\n\t\tString cards = s.next();\n\t\twhile(!\"-\".equals(cards)){\n\t\t\tint num = s.nextInt();\n\t\t\tfor(int i = 0;i < num;i++){\n\t\t\t\tint h = s.nextInt();\n\t\t\t\tString top = cards.substring(0,h);\n\t\t\t\tString under = cards.substring(h,cards.length());\n\t\t\t\tcards = under + top;\n\t\t\t}\n\t\t\tSystem.out.println(cards);\n\t\t\tcards = s.next();\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 s = new Scanner(System.in);
String cards = s.next();
while(!"-".equals(cards)){
int num = s.nextInt();
for(int i = 0;i < num;i++){
int h = s.nextInt();
String top = cards.substring(0,h);
String under = cards.substring(h,cards.length());
cards = under + top;
}
System.out.println(cards);
cards = s.next();
}
}
public static void main(String args[]){
new Main().run();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
42,
17,
30,
0,
13,
17,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
0,
13,
4,
18,
13,
0,
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,
17,
0,
13,
4,
18,
13,
18,
13,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
18,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
118,
5
],
[
118,
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
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
22,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
31,
36
],
[
36,
37
],
[
22,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
22,
43
],
[
43,
44
],
[
43,
45
],
[
22,
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
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
22,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
88,
90
],
[
85,
91
],
[
91,
92
],
[
92,
93
],
[
79,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
79,
103
],
[
103,
104
],
[
103,
105
],
[
22,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
6,
115
],
[
115,
116
],
[
0,
117
],
[
117,
118
],
[
117,
119
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tString str;\n\t\tString sh_str;\n\t\tint sh_num;\n\t\tint[] sh;\n\n\t\tScanner sc= new Scanner( System.in );\n\n\t\twhile ( true) {\n\t\t\tsh_num = 0;\n\t\t\tstr = sc.next();\n\n\t\t\tif ( str.equals(\"-\") ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tsh_num = sc.nextInt();\n\n\t\t\tsh = new int[sh_num];\n\n\t\t\tfor ( int i = 0 ; i < sh_num ; i++ ) {\n\t\t\t\tsh[i]= sc.nextInt();\n\t\t\t}\n\n\t\t\tfor ( int i = 0 ; i < sh_num ; i++ ) {\n\t\t\t\tsh_str = \"\";\n\n\t\t\t\tsh_str += str.substring(sh[i],str.length());\n\t\t\t\tsh_str += str.substring(0,(sh[i]));\n\n\t\t\t\tstr = sh_str;\n\t\t\t}\n\t\t\tSystem.out.println( str );\n\t\t}\n\n\t\tsc.close();\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tString str;\n\t\tString sh_str;\n\t\tint sh_num;\n\t\tint[] sh;\n\n\t\tScanner sc= new Scanner( System.in );\n\n\t\twhile ( true) {\n\t\t\tsh_num = 0;\n\t\t\tstr = sc.next();\n\n\t\t\tif ( str.equals(\"-\") ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tsh_num = sc.nextInt();\n\n\t\t\tsh = new int[sh_num];\n\n\t\t\tfor ( int i = 0 ; i < sh_num ; i++ ) {\n\t\t\t\tsh[i]= sc.nextInt();\n\t\t\t}\n\n\t\t\tfor ( int i = 0 ; i < sh_num ; i++ ) {\n\t\t\t\tsh_str = \"\";\n\n\t\t\t\tsh_str += str.substring(sh[i],str.length());\n\t\t\t\tsh_str += str.substring(0,(sh[i]));\n\n\t\t\t\tstr = sh_str;\n\t\t\t}\n\t\t\tSystem.out.println( str );\n\t\t}\n\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tString str;\n\t\tString sh_str;\n\t\tint sh_num;\n\t\tint[] sh;\n\n\t\tScanner sc= new Scanner( System.in );\n\n\t\twhile ( true) {\n\t\t\tsh_num = 0;\n\t\t\tstr = sc.next();\n\n\t\t\tif ( str.equals(\"-\") ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tsh_num = sc.nextInt();\n\n\t\t\tsh = new int[sh_num];\n\n\t\t\tfor ( int i = 0 ; i < sh_num ; i++ ) {\n\t\t\t\tsh[i]= sc.nextInt();\n\t\t\t}\n\n\t\t\tfor ( int i = 0 ; i < sh_num ; i++ ) {\n\t\t\t\tsh_str = \"\";\n\n\t\t\t\tsh_str += str.substring(sh[i],str.length());\n\t\t\t\tsh_str += str.substring(0,(sh[i]));\n\n\t\t\t\tstr = sh_str;\n\t\t\t}\n\t\t\tSystem.out.println( str );\n\t\t}\n\n\t\tsc.close();\n\t}",
"main",
"{\n\n\t\tString str;\n\t\tString sh_str;\n\t\tint sh_num;\n\t\tint[] sh;\n\n\t\tScanner sc= new Scanner( System.in );\n\n\t\twhile ( true) {\n\t\t\tsh_num = 0;\n\t\t\tstr = sc.next();\n\n\t\t\tif ( str.equals(\"-\") ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tsh_num = sc.nextInt();\n\n\t\t\tsh = new int[sh_num];\n\n\t\t\tfor ( int i = 0 ; i < sh_num ; i++ ) {\n\t\t\t\tsh[i]= sc.nextInt();\n\t\t\t}\n\n\t\t\tfor ( int i = 0 ; i < sh_num ; i++ ) {\n\t\t\t\tsh_str = \"\";\n\n\t\t\t\tsh_str += str.substring(sh[i],str.length());\n\t\t\t\tsh_str += str.substring(0,(sh[i]));\n\n\t\t\t\tstr = sh_str;\n\t\t\t}\n\t\t\tSystem.out.println( str );\n\t\t}\n\n\t\tsc.close();\n\t}",
"String str;",
"str",
"String sh_str;",
"sh_str",
"int sh_num;",
"sh_num",
"int[] sh;",
"sh",
"Scanner sc= new Scanner( System.in );",
"sc",
"new Scanner( System.in )",
"while ( true) {\n\t\t\tsh_num = 0;\n\t\t\tstr = sc.next();\n\n\t\t\tif ( str.equals(\"-\") ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tsh_num = sc.nextInt();\n\n\t\t\tsh = new int[sh_num];\n\n\t\t\tfor ( int i = 0 ; i < sh_num ; i++ ) {\n\t\t\t\tsh[i]= sc.nextInt();\n\t\t\t}\n\n\t\t\tfor ( int i = 0 ; i < sh_num ; i++ ) {\n\t\t\t\tsh_str = \"\";\n\n\t\t\t\tsh_str += str.substring(sh[i],str.length());\n\t\t\t\tsh_str += str.substring(0,(sh[i]));\n\n\t\t\t\tstr = sh_str;\n\t\t\t}\n\t\t\tSystem.out.println( str );\n\t\t}",
"true",
"{\n\t\t\tsh_num = 0;\n\t\t\tstr = sc.next();\n\n\t\t\tif ( str.equals(\"-\") ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tsh_num = sc.nextInt();\n\n\t\t\tsh = new int[sh_num];\n\n\t\t\tfor ( int i = 0 ; i < sh_num ; i++ ) {\n\t\t\t\tsh[i]= sc.nextInt();\n\t\t\t}\n\n\t\t\tfor ( int i = 0 ; i < sh_num ; i++ ) {\n\t\t\t\tsh_str = \"\";\n\n\t\t\t\tsh_str += str.substring(sh[i],str.length());\n\t\t\t\tsh_str += str.substring(0,(sh[i]));\n\n\t\t\t\tstr = sh_str;\n\t\t\t}\n\t\t\tSystem.out.println( str );\n\t\t}",
"sh_num = 0",
"sh_num",
"0",
"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;",
"sh_num = sc.nextInt()",
"sh_num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sh = new int[sh_num]",
"sh",
"new int[sh_num]",
"sh_num",
"for ( int i = 0 ; i < sh_num ; i++ ) {\n\t\t\t\tsh[i]= sc.nextInt();\n\t\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < sh_num",
"i",
"sh_num",
"i++",
"i++",
"i",
"{\n\t\t\t\tsh[i]= sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tsh[i]= sc.nextInt();\n\t\t\t}",
"sh[i]= sc.nextInt()",
"sh[i]",
"sh",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for ( int i = 0 ; i < sh_num ; i++ ) {\n\t\t\t\tsh_str = \"\";\n\n\t\t\t\tsh_str += str.substring(sh[i],str.length());\n\t\t\t\tsh_str += str.substring(0,(sh[i]));\n\n\t\t\t\tstr = sh_str;\n\t\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < sh_num",
"i",
"sh_num",
"i++",
"i++",
"i",
"{\n\t\t\t\tsh_str = \"\";\n\n\t\t\t\tsh_str += str.substring(sh[i],str.length());\n\t\t\t\tsh_str += str.substring(0,(sh[i]));\n\n\t\t\t\tstr = sh_str;\n\t\t\t}",
"{\n\t\t\t\tsh_str = \"\";\n\n\t\t\t\tsh_str += str.substring(sh[i],str.length());\n\t\t\t\tsh_str += str.substring(0,(sh[i]));\n\n\t\t\t\tstr = sh_str;\n\t\t\t}",
"sh_str = \"\"",
"sh_str",
"\"\"",
"sh_str += str.substring(sh[i],str.length())",
"sh_str",
"str.substring(sh[i],str.length())",
"str.substring",
"str",
"sh[i]",
"sh",
"i",
"str.length()",
"str.length",
"str",
"sh_str += str.substring(0,(sh[i]))",
"sh_str",
"str.substring(0,(sh[i]))",
"str.substring",
"str",
"0",
"(sh[i])",
"sh",
"i",
"str = sh_str",
"str",
"sh_str",
"System.out.println( str )",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tString str;\n\t\tString sh_str;\n\t\tint sh_num;\n\t\tint[] sh;\n\n\t\tScanner sc= new Scanner( System.in );\n\n\t\twhile ( true) {\n\t\t\tsh_num = 0;\n\t\t\tstr = sc.next();\n\n\t\t\tif ( str.equals(\"-\") ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tsh_num = sc.nextInt();\n\n\t\t\tsh = new int[sh_num];\n\n\t\t\tfor ( int i = 0 ; i < sh_num ; i++ ) {\n\t\t\t\tsh[i]= sc.nextInt();\n\t\t\t}\n\n\t\t\tfor ( int i = 0 ; i < sh_num ; i++ ) {\n\t\t\t\tsh_str = \"\";\n\n\t\t\t\tsh_str += str.substring(sh[i],str.length());\n\t\t\t\tsh_str += str.substring(0,(sh[i]));\n\n\t\t\t\tstr = sh_str;\n\t\t\t}\n\t\t\tSystem.out.println( str );\n\t\t}\n\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tString str;\n\t\tString sh_str;\n\t\tint sh_num;\n\t\tint[] sh;\n\n\t\tScanner sc= new Scanner( System.in );\n\n\t\twhile ( true) {\n\t\t\tsh_num = 0;\n\t\t\tstr = sc.next();\n\n\t\t\tif ( str.equals(\"-\") ) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tsh_num = sc.nextInt();\n\n\t\t\tsh = new int[sh_num];\n\n\t\t\tfor ( int i = 0 ; i < sh_num ; i++ ) {\n\t\t\t\tsh[i]= sc.nextInt();\n\t\t\t}\n\n\t\t\tfor ( int i = 0 ; i < sh_num ; i++ ) {\n\t\t\t\tsh_str = \"\";\n\n\t\t\t\tsh_str += str.substring(sh[i],str.length());\n\t\t\t\tsh_str += str.substring(0,(sh[i]));\n\n\t\t\t\tstr = sh_str;\n\t\t\t}\n\t\t\tSystem.out.println( str );\n\t\t}\n\n\t\tsc.close();\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
String str;
String sh_str;
int sh_num;
int[] sh;
Scanner sc= new Scanner( System.in );
while ( true) {
sh_num = 0;
str = sc.next();
if ( str.equals("-") ) {
break;
}
sh_num = sc.nextInt();
sh = new int[sh_num];
for ( int i = 0 ; i < sh_num ; i++ ) {
sh[i]= sc.nextInt();
}
for ( int i = 0 ; i < sh_num ; i++ ) {
sh_str = "";
sh_str += str.substring(sh[i],str.length());
sh_str += str.substring(0,(sh[i]));
str = sh_str;
}
System.out.println( str );
}
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
42,
40,
13,
30,
41,
13,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
13,
0,
13,
4,
18,
13,
17,
17,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
13,
18,
13,
13,
13,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
17,
23,
13,
12,
13,
30,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
18,
13,
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,
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
],
[
219,
11
],
[
219,
12
],
[
12,
13
],
[
219,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
16,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
16,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
34,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
34,
49
],
[
49,
50
],
[
49,
51
],
[
34,
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
],
[
34,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
81,
85
],
[
34,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
88,
90
],
[
34,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
91,
99
],
[
99,
100
],
[
100,
101
],
[
91,
102
],
[
103,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
34,
110
],
[
110,
111
],
[
110,
112
],
[
110,
113
],
[
114,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
34,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
34,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
34,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
14,
137
],
[
137,
138
],
[
219,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
146,
151
],
[
151,
152
],
[
151,
153
],
[
146,
154
],
[
154,
155
],
[
155,
156
],
[
146,
157
],
[
158,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
163,
164
],
[
163,
165
],
[
141,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
166,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
173,
175
],
[
166,
176
],
[
176,
177
],
[
177,
178
],
[
166,
179
],
[
180,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
187,
189
],
[
141,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
190,
195
],
[
195,
196
],
[
195,
197
],
[
190,
198
],
[
198,
199
],
[
199,
200
],
[
190,
201
],
[
202,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
206,
210
],
[
203,
211
],
[
211,
212
],
[
211,
213
],
[
139,
214
],
[
214,
215
],
[
139,
216
],
[
216,
217
],
[
0,
218
],
[
218,
219
],
[
218,
220
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tprivate static String[] chara;\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tBoolean isEnd = str.equals(\"-\");\n\t\twhile (!isEnd) {\n\t\t\tString defaultstr = str;\n\t\t\tstr = br.readLine();\n\t\t\tint count = Integer.parseInt(str);\n\t\t\tint[] shuffleamount = new int[count];\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tshuffleamount[i] = Integer.parseInt(str);\n\t\t\t}\n\t\t\tchara = defaultstr.split(\"\", 0);\n\t\t\tint length = chara.length;\n\t\t\tfor (int j = 0; j < count; j++) {\n\t\t\t\tShuffling(shuffleamount[j], length);\n\t\t\t}\n\t\t\tfor (String charac : chara) {\n\t\t\t\tSystem.out.print(charac);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tstr = br.readLine();\n\t\t\tisEnd = str.equals(\"-\");\n\t\t}\n\t}\n\n\tprivate static void Shuffling(int h, int l) {\n\t\tString[] temporary = new String[h];\n\t\tfor (int k = 0; k < h; k++) {\n\t\t\ttemporary[k] = chara[k];\n\t\t}\n\t\tfor (int m = 0; m < l - h; m++) {\n\t\t\tchara[m] = chara[h + m];\n\t\t}\n\t\tfor (int n = 0; n < h; n++) {\n\t\t\tchara[l - h + n] = temporary[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\tprivate static String[] chara;\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tBoolean isEnd = str.equals(\"-\");\n\t\twhile (!isEnd) {\n\t\t\tString defaultstr = str;\n\t\t\tstr = br.readLine();\n\t\t\tint count = Integer.parseInt(str);\n\t\t\tint[] shuffleamount = new int[count];\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tshuffleamount[i] = Integer.parseInt(str);\n\t\t\t}\n\t\t\tchara = defaultstr.split(\"\", 0);\n\t\t\tint length = chara.length;\n\t\t\tfor (int j = 0; j < count; j++) {\n\t\t\t\tShuffling(shuffleamount[j], length);\n\t\t\t}\n\t\t\tfor (String charac : chara) {\n\t\t\t\tSystem.out.print(charac);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tstr = br.readLine();\n\t\t\tisEnd = str.equals(\"-\");\n\t\t}\n\t}\n\n\tprivate static void Shuffling(int h, int l) {\n\t\tString[] temporary = new String[h];\n\t\tfor (int k = 0; k < h; k++) {\n\t\t\ttemporary[k] = chara[k];\n\t\t}\n\t\tfor (int m = 0; m < l - h; m++) {\n\t\t\tchara[m] = chara[h + m];\n\t\t}\n\t\tfor (int n = 0; n < h; n++) {\n\t\t\tchara[l - h + n] = temporary[n];\n\t\t}\n\t}\n}",
"Main",
"private static String[] chara;",
"chara",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tBoolean isEnd = str.equals(\"-\");\n\t\twhile (!isEnd) {\n\t\t\tString defaultstr = str;\n\t\t\tstr = br.readLine();\n\t\t\tint count = Integer.parseInt(str);\n\t\t\tint[] shuffleamount = new int[count];\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tshuffleamount[i] = Integer.parseInt(str);\n\t\t\t}\n\t\t\tchara = defaultstr.split(\"\", 0);\n\t\t\tint length = chara.length;\n\t\t\tfor (int j = 0; j < count; j++) {\n\t\t\t\tShuffling(shuffleamount[j], length);\n\t\t\t}\n\t\t\tfor (String charac : chara) {\n\t\t\t\tSystem.out.print(charac);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tstr = br.readLine();\n\t\t\tisEnd = str.equals(\"-\");\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tBoolean isEnd = str.equals(\"-\");\n\t\twhile (!isEnd) {\n\t\t\tString defaultstr = str;\n\t\t\tstr = br.readLine();\n\t\t\tint count = Integer.parseInt(str);\n\t\t\tint[] shuffleamount = new int[count];\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tshuffleamount[i] = Integer.parseInt(str);\n\t\t\t}\n\t\t\tchara = defaultstr.split(\"\", 0);\n\t\t\tint length = chara.length;\n\t\t\tfor (int j = 0; j < count; j++) {\n\t\t\t\tShuffling(shuffleamount[j], length);\n\t\t\t}\n\t\t\tfor (String charac : chara) {\n\t\t\t\tSystem.out.print(charac);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tstr = br.readLine();\n\t\t\tisEnd = str.equals(\"-\");\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",
"Boolean isEnd = str.equals(\"-\");",
"isEnd",
"str.equals(\"-\")",
"str.equals",
"str",
"\"-\"",
"while (!isEnd) {\n\t\t\tString defaultstr = str;\n\t\t\tstr = br.readLine();\n\t\t\tint count = Integer.parseInt(str);\n\t\t\tint[] shuffleamount = new int[count];\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tshuffleamount[i] = Integer.parseInt(str);\n\t\t\t}\n\t\t\tchara = defaultstr.split(\"\", 0);\n\t\t\tint length = chara.length;\n\t\t\tfor (int j = 0; j < count; j++) {\n\t\t\t\tShuffling(shuffleamount[j], length);\n\t\t\t}\n\t\t\tfor (String charac : chara) {\n\t\t\t\tSystem.out.print(charac);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tstr = br.readLine();\n\t\t\tisEnd = str.equals(\"-\");\n\t\t}",
"!isEnd",
"isEnd",
"{\n\t\t\tString defaultstr = str;\n\t\t\tstr = br.readLine();\n\t\t\tint count = Integer.parseInt(str);\n\t\t\tint[] shuffleamount = new int[count];\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tshuffleamount[i] = Integer.parseInt(str);\n\t\t\t}\n\t\t\tchara = defaultstr.split(\"\", 0);\n\t\t\tint length = chara.length;\n\t\t\tfor (int j = 0; j < count; j++) {\n\t\t\t\tShuffling(shuffleamount[j], length);\n\t\t\t}\n\t\t\tfor (String charac : chara) {\n\t\t\t\tSystem.out.print(charac);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tstr = br.readLine();\n\t\t\tisEnd = str.equals(\"-\");\n\t\t}",
"String defaultstr = str;",
"defaultstr",
"str",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"int count = Integer.parseInt(str);",
"count",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"int[] shuffleamount = new int[count];",
"shuffleamount",
"new int[count]",
"count",
"for (int i = 0; i < count; i++) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tshuffleamount[i] = Integer.parseInt(str);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < count",
"i",
"count",
"i++",
"i++",
"i",
"{\n\t\t\t\tstr = br.readLine();\n\t\t\t\tshuffleamount[i] = Integer.parseInt(str);\n\t\t\t}",
"{\n\t\t\t\tstr = br.readLine();\n\t\t\t\tshuffleamount[i] = Integer.parseInt(str);\n\t\t\t}",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"shuffleamount[i] = Integer.parseInt(str)",
"shuffleamount[i]",
"shuffleamount",
"i",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"chara = defaultstr.split(\"\", 0)",
"chara",
"defaultstr.split(\"\", 0)",
"defaultstr.split",
"defaultstr",
"\"\"",
"0",
"int length = chara.length;",
"length",
"chara.length",
"chara",
"chara.length",
"for (int j = 0; j < count; j++) {\n\t\t\t\tShuffling(shuffleamount[j], length);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < count",
"j",
"count",
"j++",
"j++",
"j",
"{\n\t\t\t\tShuffling(shuffleamount[j], length);\n\t\t\t}",
"{\n\t\t\t\tShuffling(shuffleamount[j], length);\n\t\t\t}",
"Shuffling(shuffleamount[j], length)",
"Shuffling",
"shuffleamount[j]",
"shuffleamount",
"j",
"length",
"for (String charac : chara) {\n\t\t\t\tSystem.out.print(charac);\n\t\t\t}",
"String charac",
"chara",
"{\n\t\t\t\tSystem.out.print(charac);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(charac);\n\t\t\t}",
"System.out.print(charac)",
"System.out.print",
"System.out",
"System",
"System.out",
"charac",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"isEnd = str.equals(\"-\")",
"isEnd",
"str.equals(\"-\")",
"str.equals",
"str",
"\"-\"",
"String[] args",
"args",
"private static void Shuffling(int h, int l) {\n\t\tString[] temporary = new String[h];\n\t\tfor (int k = 0; k < h; k++) {\n\t\t\ttemporary[k] = chara[k];\n\t\t}\n\t\tfor (int m = 0; m < l - h; m++) {\n\t\t\tchara[m] = chara[h + m];\n\t\t}\n\t\tfor (int n = 0; n < h; n++) {\n\t\t\tchara[l - h + n] = temporary[n];\n\t\t}\n\t}",
"Shuffling",
"{\n\t\tString[] temporary = new String[h];\n\t\tfor (int k = 0; k < h; k++) {\n\t\t\ttemporary[k] = chara[k];\n\t\t}\n\t\tfor (int m = 0; m < l - h; m++) {\n\t\t\tchara[m] = chara[h + m];\n\t\t}\n\t\tfor (int n = 0; n < h; n++) {\n\t\t\tchara[l - h + n] = temporary[n];\n\t\t}\n\t}",
"String[] temporary = new String[h];",
"temporary",
"new String[h]",
"h",
"for (int k = 0; k < h; k++) {\n\t\t\ttemporary[k] = chara[k];\n\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < h",
"k",
"h",
"k++",
"k++",
"k",
"{\n\t\t\ttemporary[k] = chara[k];\n\t\t}",
"{\n\t\t\ttemporary[k] = chara[k];\n\t\t}",
"temporary[k] = chara[k]",
"temporary[k]",
"temporary",
"k",
"chara[k]",
"chara",
"k",
"for (int m = 0; m < l - h; m++) {\n\t\t\tchara[m] = chara[h + m];\n\t\t}",
"int m = 0;",
"int m = 0;",
"m",
"0",
"m < l - h",
"m",
"l - h",
"l",
"h",
"m++",
"m++",
"m",
"{\n\t\t\tchara[m] = chara[h + m];\n\t\t}",
"{\n\t\t\tchara[m] = chara[h + m];\n\t\t}",
"chara[m] = chara[h + m]",
"chara[m]",
"chara",
"m",
"chara[h + m]",
"chara",
"h + m",
"h",
"m",
"for (int n = 0; n < h; n++) {\n\t\t\tchara[l - h + n] = temporary[n];\n\t\t}",
"int n = 0;",
"int n = 0;",
"n",
"0",
"n < h",
"n",
"h",
"n++",
"n++",
"n",
"{\n\t\t\tchara[l - h + n] = temporary[n];\n\t\t}",
"{\n\t\t\tchara[l - h + n] = temporary[n];\n\t\t}",
"chara[l - h + n] = temporary[n]",
"chara[l - h + n]",
"chara",
"l - h + n",
"l - h",
"l",
"h",
"n",
"temporary[n]",
"temporary",
"n",
"int h",
"h",
"int l",
"l",
"public class Main {\n\tprivate static String[] chara;\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tBoolean isEnd = str.equals(\"-\");\n\t\twhile (!isEnd) {\n\t\t\tString defaultstr = str;\n\t\t\tstr = br.readLine();\n\t\t\tint count = Integer.parseInt(str);\n\t\t\tint[] shuffleamount = new int[count];\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tshuffleamount[i] = Integer.parseInt(str);\n\t\t\t}\n\t\t\tchara = defaultstr.split(\"\", 0);\n\t\t\tint length = chara.length;\n\t\t\tfor (int j = 0; j < count; j++) {\n\t\t\t\tShuffling(shuffleamount[j], length);\n\t\t\t}\n\t\t\tfor (String charac : chara) {\n\t\t\t\tSystem.out.print(charac);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tstr = br.readLine();\n\t\t\tisEnd = str.equals(\"-\");\n\t\t}\n\t}\n\n\tprivate static void Shuffling(int h, int l) {\n\t\tString[] temporary = new String[h];\n\t\tfor (int k = 0; k < h; k++) {\n\t\t\ttemporary[k] = chara[k];\n\t\t}\n\t\tfor (int m = 0; m < l - h; m++) {\n\t\t\tchara[m] = chara[h + m];\n\t\t}\n\t\tfor (int n = 0; n < h; n++) {\n\t\t\tchara[l - h + n] = temporary[n];\n\t\t}\n\t}\n}",
"public class Main {\n\tprivate static String[] chara;\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tBoolean isEnd = str.equals(\"-\");\n\t\twhile (!isEnd) {\n\t\t\tString defaultstr = str;\n\t\t\tstr = br.readLine();\n\t\t\tint count = Integer.parseInt(str);\n\t\t\tint[] shuffleamount = new int[count];\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tshuffleamount[i] = Integer.parseInt(str);\n\t\t\t}\n\t\t\tchara = defaultstr.split(\"\", 0);\n\t\t\tint length = chara.length;\n\t\t\tfor (int j = 0; j < count; j++) {\n\t\t\t\tShuffling(shuffleamount[j], length);\n\t\t\t}\n\t\t\tfor (String charac : chara) {\n\t\t\t\tSystem.out.print(charac);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tstr = br.readLine();\n\t\t\tisEnd = str.equals(\"-\");\n\t\t}\n\t}\n\n\tprivate static void Shuffling(int h, int l) {\n\t\tString[] temporary = new String[h];\n\t\tfor (int k = 0; k < h; k++) {\n\t\t\ttemporary[k] = chara[k];\n\t\t}\n\t\tfor (int m = 0; m < l - h; m++) {\n\t\t\tchara[m] = chara[h + m];\n\t\t}\n\t\tfor (int n = 0; n < h; n++) {\n\t\t\tchara[l - h + n] = temporary[n];\n\t\t}\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
private static String[] chara;
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
Boolean isEnd = str.equals("-");
while (!isEnd) {
String defaultstr = str;
str = br.readLine();
int count = Integer.parseInt(str);
int[] shuffleamount = new int[count];
for (int i = 0; i < count; i++) {
str = br.readLine();
shuffleamount[i] = Integer.parseInt(str);
}
chara = defaultstr.split("", 0);
int length = chara.length;
for (int j = 0; j < count; j++) {
Shuffling(shuffleamount[j], length);
}
for (String charac : chara) {
System.out.print(charac);
}
System.out.println();
str = br.readLine();
isEnd = str.equals("-");
}
}
private static void Shuffling(int h, int l) {
String[] temporary = new String[h];
for (int k = 0; k < h; k++) {
temporary[k] = chara[k];
}
for (int m = 0; m < l - h; m++) {
chara[m] = chara[h + m];
}
for (int n = 0; n < h; n++) {
chara[l - h + n] = temporary[n];
}
}
} |
[
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,
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
],
[
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
],
[
25,
26
],
[
14,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
14,
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
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
54,
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\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString inputData = scn.next();\n\t\t\tif (inputData.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//char[] inputDatas = inputData.toCharArray();\n\t\t\tint count = scn.nextInt();\n\t\t\tint shuffleCount;\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tshuffleCount = scn.nextInt();\n\t\t\t\tinputData = inputData.substring(shuffleCount) + inputData.substring(0, shuffleCount);\n\t\t\t}\n\t\t\tSystem.out.println(inputData);\n\t\t\t//String ChangedData = new String(inputDatas);\n\t\t\t//System.out.println(ChangedData);\n\t\t}\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString inputData = scn.next();\n\t\t\tif (inputData.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//char[] inputDatas = inputData.toCharArray();\n\t\t\tint count = scn.nextInt();\n\t\t\tint shuffleCount;\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tshuffleCount = scn.nextInt();\n\t\t\t\tinputData = inputData.substring(shuffleCount) + inputData.substring(0, shuffleCount);\n\t\t\t}\n\t\t\tSystem.out.println(inputData);\n\t\t\t//String ChangedData = new String(inputDatas);\n\t\t\t//System.out.println(ChangedData);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString inputData = scn.next();\n\t\t\tif (inputData.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//char[] inputDatas = inputData.toCharArray();\n\t\t\tint count = scn.nextInt();\n\t\t\tint shuffleCount;\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tshuffleCount = scn.nextInt();\n\t\t\t\tinputData = inputData.substring(shuffleCount) + inputData.substring(0, shuffleCount);\n\t\t\t}\n\t\t\tSystem.out.println(inputData);\n\t\t\t//String ChangedData = new String(inputDatas);\n\t\t\t//System.out.println(ChangedData);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString inputData = scn.next();\n\t\t\tif (inputData.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//char[] inputDatas = inputData.toCharArray();\n\t\t\tint count = scn.nextInt();\n\t\t\tint shuffleCount;\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tshuffleCount = scn.nextInt();\n\t\t\t\tinputData = inputData.substring(shuffleCount) + inputData.substring(0, shuffleCount);\n\t\t\t}\n\t\t\tSystem.out.println(inputData);\n\t\t\t//String ChangedData = new String(inputDatas);\n\t\t\t//System.out.println(ChangedData);\n\t\t}\n\t}",
"Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"while (true) {\n\t\t\tString inputData = scn.next();\n\t\t\tif (inputData.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//char[] inputDatas = inputData.toCharArray();\n\t\t\tint count = scn.nextInt();\n\t\t\tint shuffleCount;\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tshuffleCount = scn.nextInt();\n\t\t\t\tinputData = inputData.substring(shuffleCount) + inputData.substring(0, shuffleCount);\n\t\t\t}\n\t\t\tSystem.out.println(inputData);\n\t\t\t//String ChangedData = new String(inputDatas);\n\t\t\t//System.out.println(ChangedData);\n\t\t}",
"true",
"{\n\t\t\tString inputData = scn.next();\n\t\t\tif (inputData.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//char[] inputDatas = inputData.toCharArray();\n\t\t\tint count = scn.nextInt();\n\t\t\tint shuffleCount;\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tshuffleCount = scn.nextInt();\n\t\t\t\tinputData = inputData.substring(shuffleCount) + inputData.substring(0, shuffleCount);\n\t\t\t}\n\t\t\tSystem.out.println(inputData);\n\t\t\t//String ChangedData = new String(inputDatas);\n\t\t\t//System.out.println(ChangedData);\n\t\t}",
"String inputData = scn.next();",
"inputData",
"scn.next()",
"scn.next",
"scn",
"if (inputData.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}",
"inputData.equals(\"-\")",
"inputData.equals",
"inputData",
"\"-\"",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"int count = scn.nextInt();",
"count",
"scn.nextInt()",
"scn.nextInt",
"scn",
"int shuffleCount;",
"shuffleCount",
"for (int i = 0; i < count; i++) {\n\t\t\t\tshuffleCount = scn.nextInt();\n\t\t\t\tinputData = inputData.substring(shuffleCount) + inputData.substring(0, shuffleCount);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < count",
"i",
"count",
"i++",
"i++",
"i",
"{\n\t\t\t\tshuffleCount = scn.nextInt();\n\t\t\t\tinputData = inputData.substring(shuffleCount) + inputData.substring(0, shuffleCount);\n\t\t\t}",
"{\n\t\t\t\tshuffleCount = scn.nextInt();\n\t\t\t\tinputData = inputData.substring(shuffleCount) + inputData.substring(0, shuffleCount);\n\t\t\t}",
"shuffleCount = scn.nextInt()",
"shuffleCount",
"scn.nextInt()",
"scn.nextInt",
"scn",
"inputData = inputData.substring(shuffleCount) + inputData.substring(0, shuffleCount)",
"inputData",
"inputData.substring(shuffleCount) + inputData.substring(0, shuffleCount)",
"inputData.substring(shuffleCount)",
"inputData.substring",
"inputData",
"shuffleCount",
"inputData.substring(0, shuffleCount)",
"inputData.substring",
"inputData",
"0",
"shuffleCount",
"System.out.println(inputData)",
"System.out.println",
"System.out",
"System",
"System.out",
"inputData",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString inputData = scn.next();\n\t\t\tif (inputData.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//char[] inputDatas = inputData.toCharArray();\n\t\t\tint count = scn.nextInt();\n\t\t\tint shuffleCount;\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tshuffleCount = scn.nextInt();\n\t\t\t\tinputData = inputData.substring(shuffleCount) + inputData.substring(0, shuffleCount);\n\t\t\t}\n\t\t\tSystem.out.println(inputData);\n\t\t\t//String ChangedData = new String(inputDatas);\n\t\t\t//System.out.println(ChangedData);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString inputData = scn.next();\n\t\t\tif (inputData.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//char[] inputDatas = inputData.toCharArray();\n\t\t\tint count = scn.nextInt();\n\t\t\tint shuffleCount;\n\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\tshuffleCount = scn.nextInt();\n\t\t\t\tinputData = inputData.substring(shuffleCount) + inputData.substring(0, shuffleCount);\n\t\t\t}\n\t\t\tSystem.out.println(inputData);\n\t\t\t//String ChangedData = new String(inputDatas);\n\t\t\t//System.out.println(ChangedData);\n\t\t}\n\t}\n}",
"Main"
]
|
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
while (true) {
String inputData = scn.next();
if (inputData.equals("-")) {
break;
}
//char[] inputDatas = inputData.toCharArray();
int count = scn.nextInt();
int shuffleCount;
for (int i = 0; i < count; i++) {
shuffleCount = scn.nextInt();
inputData = inputData.substring(shuffleCount) + inputData.substring(0, shuffleCount);
}
System.out.println(inputData);
//String ChangedData = new String(inputDatas);
//System.out.println(ChangedData);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
17,
13,
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,
41,
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
],
[
80,
5
],
[
80,
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
],
[
65,
67
],
[
14,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
6,
77
],
[
77,
78
],
[
0,
79
],
[
79,
80
],
[
79,
81
]
]
| [
"import java.util.Scanner;\n\n//20180510\n//08\n\npublic class Main {\n public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tString string = scanner.next();\n\t\t\tif(\"-\".equals(string)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint count = scanner.nextInt();\n\t\t\tfor(int i = 0;i < count;i++) {\n\t\t\t\tint shuffle = scanner.nextInt();\n\t\t\t\tString tmp = string.substring(0, shuffle);\n\t\t\t\tString out = string.substring(shuffle);\n\t\t\t\tstring = out + tmp;\n\t\t\t}\n\t\t\tSystem.out.println(string);\n\t\t}\n\t\tscanner.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tString string = scanner.next();\n\t\t\tif(\"-\".equals(string)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint count = scanner.nextInt();\n\t\t\tfor(int i = 0;i < count;i++) {\n\t\t\t\tint shuffle = scanner.nextInt();\n\t\t\t\tString tmp = string.substring(0, shuffle);\n\t\t\t\tString out = string.substring(shuffle);\n\t\t\t\tstring = out + tmp;\n\t\t\t}\n\t\t\tSystem.out.println(string);\n\t\t}\n\t\tscanner.close();\n }\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tString string = scanner.next();\n\t\t\tif(\"-\".equals(string)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint count = scanner.nextInt();\n\t\t\tfor(int i = 0;i < count;i++) {\n\t\t\t\tint shuffle = scanner.nextInt();\n\t\t\t\tString tmp = string.substring(0, shuffle);\n\t\t\t\tString out = string.substring(shuffle);\n\t\t\t\tstring = out + tmp;\n\t\t\t}\n\t\t\tSystem.out.println(string);\n\t\t}\n\t\tscanner.close();\n }",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tString string = scanner.next();\n\t\t\tif(\"-\".equals(string)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint count = scanner.nextInt();\n\t\t\tfor(int i = 0;i < count;i++) {\n\t\t\t\tint shuffle = scanner.nextInt();\n\t\t\t\tString tmp = string.substring(0, shuffle);\n\t\t\t\tString out = string.substring(shuffle);\n\t\t\t\tstring = out + tmp;\n\t\t\t}\n\t\t\tSystem.out.println(string);\n\t\t}\n\t\tscanner.close();\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"while(true) {\n\t\t\tString string = scanner.next();\n\t\t\tif(\"-\".equals(string)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint count = scanner.nextInt();\n\t\t\tfor(int i = 0;i < count;i++) {\n\t\t\t\tint shuffle = scanner.nextInt();\n\t\t\t\tString tmp = string.substring(0, shuffle);\n\t\t\t\tString out = string.substring(shuffle);\n\t\t\t\tstring = out + tmp;\n\t\t\t}\n\t\t\tSystem.out.println(string);\n\t\t}",
"true",
"{\n\t\t\tString string = scanner.next();\n\t\t\tif(\"-\".equals(string)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint count = scanner.nextInt();\n\t\t\tfor(int i = 0;i < count;i++) {\n\t\t\t\tint shuffle = scanner.nextInt();\n\t\t\t\tString tmp = string.substring(0, shuffle);\n\t\t\t\tString out = string.substring(shuffle);\n\t\t\t\tstring = out + tmp;\n\t\t\t}\n\t\t\tSystem.out.println(string);\n\t\t}",
"String string = scanner.next();",
"string",
"scanner.next()",
"scanner.next",
"scanner",
"if(\"-\".equals(string)){\n\t\t\t\tbreak;\n\t\t\t}",
"\"-\".equals(string)",
"\"-\".equals",
"\"-\"",
"string",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"int count = scanner.nextInt();",
"count",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for(int i = 0;i < count;i++) {\n\t\t\t\tint shuffle = scanner.nextInt();\n\t\t\t\tString tmp = string.substring(0, shuffle);\n\t\t\t\tString out = string.substring(shuffle);\n\t\t\t\tstring = out + tmp;\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < count",
"i",
"count",
"i++",
"i++",
"i",
"{\n\t\t\t\tint shuffle = scanner.nextInt();\n\t\t\t\tString tmp = string.substring(0, shuffle);\n\t\t\t\tString out = string.substring(shuffle);\n\t\t\t\tstring = out + tmp;\n\t\t\t}",
"{\n\t\t\t\tint shuffle = scanner.nextInt();\n\t\t\t\tString tmp = string.substring(0, shuffle);\n\t\t\t\tString out = string.substring(shuffle);\n\t\t\t\tstring = out + tmp;\n\t\t\t}",
"int shuffle = scanner.nextInt();",
"shuffle",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"String tmp = string.substring(0, shuffle);",
"tmp",
"string.substring(0, shuffle)",
"string.substring",
"string",
"0",
"shuffle",
"String out = string.substring(shuffle);",
"out",
"string.substring(shuffle)",
"string.substring",
"string",
"shuffle",
"string = out + tmp",
"string",
"out + tmp",
"out",
"tmp",
"System.out.println(string)",
"System.out.println",
"System.out",
"System",
"System.out",
"string",
"scanner.close()",
"scanner.close",
"scanner",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tString string = scanner.next();\n\t\t\tif(\"-\".equals(string)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint count = scanner.nextInt();\n\t\t\tfor(int i = 0;i < count;i++) {\n\t\t\t\tint shuffle = scanner.nextInt();\n\t\t\t\tString tmp = string.substring(0, shuffle);\n\t\t\t\tString out = string.substring(shuffle);\n\t\t\t\tstring = out + tmp;\n\t\t\t}\n\t\t\tSystem.out.println(string);\n\t\t}\n\t\tscanner.close();\n }\n}",
"public class Main {\n public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\twhile(true) {\n\t\t\tString string = scanner.next();\n\t\t\tif(\"-\".equals(string)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint count = scanner.nextInt();\n\t\t\tfor(int i = 0;i < count;i++) {\n\t\t\t\tint shuffle = scanner.nextInt();\n\t\t\t\tString tmp = string.substring(0, shuffle);\n\t\t\t\tString out = string.substring(shuffle);\n\t\t\t\tstring = out + tmp;\n\t\t\t}\n\t\t\tSystem.out.println(string);\n\t\t}\n\t\tscanner.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
//20180510
//08
public class Main {
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
while(true) {
String string = scanner.next();
if("-".equals(string)){
break;
}
int count = scanner.nextInt();
for(int i = 0;i < count;i++) {
int shuffle = scanner.nextInt();
String tmp = string.substring(0, shuffle);
String out = string.substring(shuffle);
string = out + tmp;
}
System.out.println(string);
}
scanner.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,
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
]
| [
[
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
],
[
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
],
[
52,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
57,
61
],
[
14,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
6,
68
],
[
68,
69
]
]
| [
"import java.util.Scanner;\n \nclass Main {\n \tpublic static void main(String[] args) {\n \t\tScanner sc = new Scanner(System.in);\n \t\twhile (true) {\n \t\t\tString str = sc.next();\n \t\t\tif (str.equals(\"-\")) {\n \t\t\tbreak;\n \t\t\t}\n \t\t\tint x = sc.nextInt();\n \t\t\tfor (int i = 0; i < x; i++) {\n \t\t\tint y = sc.nextInt();\n \t\t\tstr = str.substring(y) + str.substring(0, y);\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) {\n \t\tScanner sc = new Scanner(System.in);\n \t\twhile (true) {\n \t\t\tString str = sc.next();\n \t\t\tif (str.equals(\"-\")) {\n \t\t\tbreak;\n \t\t\t}\n \t\t\tint x = sc.nextInt();\n \t\t\tfor (int i = 0; i < x; i++) {\n \t\t\tint y = sc.nextInt();\n \t\t\tstr = str.substring(y) + str.substring(0, y);\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 sc = new Scanner(System.in);\n \t\twhile (true) {\n \t\t\tString str = sc.next();\n \t\t\tif (str.equals(\"-\")) {\n \t\t\tbreak;\n \t\t\t}\n \t\t\tint x = sc.nextInt();\n \t\t\tfor (int i = 0; i < x; i++) {\n \t\t\tint y = sc.nextInt();\n \t\t\tstr = str.substring(y) + str.substring(0, y);\n \t\t\t}\n \t\t\tSystem.out.println(str);\n \t\t}\n \t}",
"main",
"{\n \t\tScanner sc = new Scanner(System.in);\n \t\twhile (true) {\n \t\t\tString str = sc.next();\n \t\t\tif (str.equals(\"-\")) {\n \t\t\tbreak;\n \t\t\t}\n \t\t\tint x = sc.nextInt();\n \t\t\tfor (int i = 0; i < x; i++) {\n \t\t\tint y = sc.nextInt();\n \t\t\tstr = str.substring(y) + str.substring(0, y);\n \t\t\t}\n \t\t\tSystem.out.println(str);\n \t\t}\n \t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while (true) {\n \t\t\tString str = sc.next();\n \t\t\tif (str.equals(\"-\")) {\n \t\t\tbreak;\n \t\t\t}\n \t\t\tint x = sc.nextInt();\n \t\t\tfor (int i = 0; i < x; i++) {\n \t\t\tint y = sc.nextInt();\n \t\t\tstr = str.substring(y) + str.substring(0, y);\n \t\t\t}\n \t\t\tSystem.out.println(str);\n \t\t}",
"true",
"{\n \t\t\tString str = sc.next();\n \t\t\tif (str.equals(\"-\")) {\n \t\t\tbreak;\n \t\t\t}\n \t\t\tint x = sc.nextInt();\n \t\t\tfor (int i = 0; i < x; i++) {\n \t\t\tint y = sc.nextInt();\n \t\t\tstr = str.substring(y) + str.substring(0, y);\n \t\t\t}\n \t\t\tSystem.out.println(str);\n \t\t}",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"if (str.equals(\"-\")) {\n \t\t\tbreak;\n \t\t\t}",
"str.equals(\"-\")",
"str.equals",
"str",
"\"-\"",
"{\n \t\t\tbreak;\n \t\t\t}",
"break;",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < x; i++) {\n \t\t\tint y = sc.nextInt();\n \t\t\tstr = str.substring(y) + str.substring(0, y);\n \t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < x",
"i",
"x",
"i++",
"i++",
"i",
"{\n \t\t\tint y = sc.nextInt();\n \t\t\tstr = str.substring(y) + str.substring(0, y);\n \t\t\t}",
"{\n \t\t\tint y = sc.nextInt();\n \t\t\tstr = str.substring(y) + str.substring(0, y);\n \t\t\t}",
"int y = sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"str = str.substring(y) + str.substring(0, y)",
"str",
"str.substring(y) + str.substring(0, y)",
"str.substring(y)",
"str.substring",
"str",
"y",
"str.substring(0, y)",
"str.substring",
"str",
"0",
"y",
"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 sc = new Scanner(System.in);
while (true) {
String str = sc.next();
if (str.equals("-")) {
break;
}
int x = sc.nextInt();
for (int i = 0; i < x; i++) {
int y = sc.nextInt();
str = str.substring(y) + str.substring(0, y);
}
System.out.println(str);
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
4,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
13,
4,
18,
13,
0,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
17,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
108,
5
],
[
108,
6
],
[
6,
7
],
[
6,
8
],
[
108,
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
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
9,
32
],
[
32,
33
],
[
108,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
36,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
36,
62
],
[
62,
63
],
[
62,
64
],
[
36,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
65,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
82,
86
],
[
76,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
92,
96
],
[
76,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
34,
103
],
[
103,
104
],
[
34,
105
],
[
105,
106
],
[
0,
107
],
[
107,
108
],
[
107,
109
]
]
| [
"import java.util.*;\n\npublic class Main {\n private static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n while (true) {\n String s = sc.next();\n if (s.equals(\"-\")) break;\n solve(s, sc.nextInt());\n }\n }\n \n private static void solve(String s, int m) {\n int c = 0;\n int l = s.length();\n for (int i = 0;i < m;i++) c += sc.nextInt();\n c %= l;\n if (c == 0) {\n System.out.println(s);\n } else {\n System.out.print(s.substring(c, l));\n System.out.print(s.substring(0, c));\n System.out.println(\"\");\n }\n }\n}\n",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n private static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n while (true) {\n String s = sc.next();\n if (s.equals(\"-\")) break;\n solve(s, sc.nextInt());\n }\n }\n \n private static void solve(String s, int m) {\n int c = 0;\n int l = s.length();\n for (int i = 0;i < m;i++) c += sc.nextInt();\n c %= l;\n if (c == 0) {\n System.out.println(s);\n } else {\n System.out.print(s.substring(c, l));\n System.out.print(s.substring(0, c));\n System.out.println(\"\");\n }\n }\n}",
"Main",
"private static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) throws Exception {\n while (true) {\n String s = sc.next();\n if (s.equals(\"-\")) break;\n solve(s, sc.nextInt());\n }\n }",
"main",
"{\n while (true) {\n String s = sc.next();\n if (s.equals(\"-\")) break;\n solve(s, sc.nextInt());\n }\n }",
"while (true) {\n String s = sc.next();\n if (s.equals(\"-\")) break;\n solve(s, sc.nextInt());\n }",
"true",
"{\n String s = sc.next();\n if (s.equals(\"-\")) break;\n solve(s, sc.nextInt());\n }",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if (s.equals(\"-\")) break;",
"s.equals(\"-\")",
"s.equals",
"s",
"\"-\"",
"break;",
"solve(s, sc.nextInt())",
"solve",
"s",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String[] args",
"args",
"private static void solve(String s, int m) {\n int c = 0;\n int l = s.length();\n for (int i = 0;i < m;i++) c += sc.nextInt();\n c %= l;\n if (c == 0) {\n System.out.println(s);\n } else {\n System.out.print(s.substring(c, l));\n System.out.print(s.substring(0, c));\n System.out.println(\"\");\n }\n }",
"solve",
"{\n int c = 0;\n int l = s.length();\n for (int i = 0;i < m;i++) c += sc.nextInt();\n c %= l;\n if (c == 0) {\n System.out.println(s);\n } else {\n System.out.print(s.substring(c, l));\n System.out.print(s.substring(0, c));\n System.out.println(\"\");\n }\n }",
"int c = 0;",
"c",
"0",
"int l = s.length();",
"l",
"s.length()",
"s.length",
"s",
"for (int i = 0;i < m;i++) c += sc.nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"c += sc.nextInt();",
"c += sc.nextInt()",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"c %= l",
"c",
"l",
"if (c == 0) {\n System.out.println(s);\n } else {\n System.out.print(s.substring(c, l));\n System.out.print(s.substring(0, c));\n System.out.println(\"\");\n }",
"c == 0",
"c",
"0",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n System.out.print(s.substring(c, l));\n System.out.print(s.substring(0, c));\n System.out.println(\"\");\n }",
"System.out.print(s.substring(c, l))",
"System.out.print",
"System.out",
"System",
"System.out",
"s.substring(c, l)",
"s.substring",
"s",
"c",
"l",
"System.out.print(s.substring(0, c))",
"System.out.print",
"System.out",
"System",
"System.out",
"s.substring(0, c)",
"s.substring",
"s",
"0",
"c",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"String s",
"s",
"int m",
"m",
"public class Main {\n private static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n while (true) {\n String s = sc.next();\n if (s.equals(\"-\")) break;\n solve(s, sc.nextInt());\n }\n }\n \n private static void solve(String s, int m) {\n int c = 0;\n int l = s.length();\n for (int i = 0;i < m;i++) c += sc.nextInt();\n c %= l;\n if (c == 0) {\n System.out.println(s);\n } else {\n System.out.print(s.substring(c, l));\n System.out.print(s.substring(0, c));\n System.out.println(\"\");\n }\n }\n}",
"public class Main {\n private static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n while (true) {\n String s = sc.next();\n if (s.equals(\"-\")) break;\n solve(s, sc.nextInt());\n }\n }\n \n private static void solve(String s, int m) {\n int c = 0;\n int l = s.length();\n for (int i = 0;i < m;i++) c += sc.nextInt();\n c %= l;\n if (c == 0) {\n System.out.println(s);\n } else {\n System.out.print(s.substring(c, l));\n System.out.print(s.substring(0, c));\n System.out.println(\"\");\n }\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
private static Scanner sc = new Scanner(System.in);
public static void main(String[] args) throws Exception {
while (true) {
String s = sc.next();
if (s.equals("-")) break;
solve(s, sc.nextInt());
}
}
private static void solve(String s, int m) {
int c = 0;
int l = s.length();
for (int i = 0;i < m;i++) c += sc.nextInt();
c %= l;
if (c == 0) {
System.out.println(s);
} else {
System.out.print(s.substring(c, l));
System.out.print(s.substring(0, c));
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,
17,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
14,
4,
18,
13,
17,
30,
3,
41,
13,
20,
41,
13,
20,
28,
13,
13,
30,
30,
14,
4,
18,
13,
17,
30,
4,
18,
13,
4,
18,
13,
13,
30,
4,
18,
13,
13,
41,
13,
17,
41,
13,
13,
41,
13,
17,
28,
13,
13,
30,
30,
14,
4,
18,
13,
17,
30,
3,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
20,
4,
18,
13,
4,
18,
13,
4,
18,
13,
2,
13,
13,
4,
18,
13,
4,
18,
13,
17,
4,
18,
13,
2,
13,
13,
0,
13,
4,
18,
13,
40,
13,
40,
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
],
[
157,
11
],
[
157,
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
],
[
29,
32
],
[
23,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
33,
38
],
[
38,
39
],
[
14,
40
],
[
40,
41
],
[
40,
42
],
[
14,
43
],
[
43,
44
],
[
43,
45
],
[
14,
46
],
[
46,
47
],
[
46,
48
],
[
46,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
51,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
51,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
14,
69
],
[
69,
70
],
[
69,
71
],
[
14,
72
],
[
72,
73
],
[
72,
74
],
[
14,
75
],
[
75,
76
],
[
75,
77
],
[
14,
78
],
[
78,
79
],
[
78,
80
],
[
78,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
83,
88
],
[
88,
89
],
[
82,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
90,
101
],
[
101,
102
],
[
102,
103
],
[
90,
104
],
[
105,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
118,
119
],
[
118,
120
],
[
105,
121
],
[
121,
122
],
[
122,
123
],
[
121,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
124,
128
],
[
128,
129
],
[
129,
130
],
[
128,
131
],
[
131,
132
],
[
131,
133
],
[
105,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
105,
139
],
[
139,
140
],
[
82,
141
],
[
141,
142
],
[
82,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
145,
147
],
[
82,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
12,
154
],
[
154,
155
],
[
0,
156
],
[
156,
157
],
[
156,
158
]
]
| [
"import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> klist = new ArrayList<String>();\n\n\t\twhile (true) {\n\t\t\tString line = sc.nextLine();\n\t\t\tklist.add(line);\n\t\t\tif (line.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tList<String> mozilist = new ArrayList<String>();\n\t\tList<Integer> kazulist = new ArrayList<Integer>();\n\n\t\tfor (String string : klist) {\n\t\t\tif (string.matches(\"^[0-9]*$\")) {\n\t\t\t\tkazulist.add(Integer.parseInt(string));\n\t\t\t} else {\n\t\t\t\tmozilist.add(string);\n\t\t\t}\n\t\t}\n\n\t\tint i = 0;\n\t\tint count = i;\n\t\tint nannkai = 0;\n\t\tfor (String string : mozilist) {\n\n\t\t\tif (string.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t;\n\t\t\tfor (int j = 1; j <= kazulist.get(i); j++) {\n\n\t\t\t\tStringBuilder r = new StringBuilder();\n\t\t\t\tr.append(string.substring( kazulist.get(j+i)));\n\t\t\t\tr.append(string.substring(0,kazulist.get(j+i)));\n\t\t\t\tstring = r.toString();\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tnannkai++;\n\t\t\ti = count+nannkai;\n\t\t\tSystem.out.println(string);\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",
"public class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> klist = new ArrayList<String>();\n\n\t\twhile (true) {\n\t\t\tString line = sc.nextLine();\n\t\t\tklist.add(line);\n\t\t\tif (line.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tList<String> mozilist = new ArrayList<String>();\n\t\tList<Integer> kazulist = new ArrayList<Integer>();\n\n\t\tfor (String string : klist) {\n\t\t\tif (string.matches(\"^[0-9]*$\")) {\n\t\t\t\tkazulist.add(Integer.parseInt(string));\n\t\t\t} else {\n\t\t\t\tmozilist.add(string);\n\t\t\t}\n\t\t}\n\n\t\tint i = 0;\n\t\tint count = i;\n\t\tint nannkai = 0;\n\t\tfor (String string : mozilist) {\n\n\t\t\tif (string.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t;\n\t\t\tfor (int j = 1; j <= kazulist.get(i); j++) {\n\n\t\t\t\tStringBuilder r = new StringBuilder();\n\t\t\t\tr.append(string.substring( kazulist.get(j+i)));\n\t\t\t\tr.append(string.substring(0,kazulist.get(j+i)));\n\t\t\t\tstring = r.toString();\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tnannkai++;\n\t\t\ti = count+nannkai;\n\t\t\tSystem.out.println(string);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> klist = new ArrayList<String>();\n\n\t\twhile (true) {\n\t\t\tString line = sc.nextLine();\n\t\t\tklist.add(line);\n\t\t\tif (line.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tList<String> mozilist = new ArrayList<String>();\n\t\tList<Integer> kazulist = new ArrayList<Integer>();\n\n\t\tfor (String string : klist) {\n\t\t\tif (string.matches(\"^[0-9]*$\")) {\n\t\t\t\tkazulist.add(Integer.parseInt(string));\n\t\t\t} else {\n\t\t\t\tmozilist.add(string);\n\t\t\t}\n\t\t}\n\n\t\tint i = 0;\n\t\tint count = i;\n\t\tint nannkai = 0;\n\t\tfor (String string : mozilist) {\n\n\t\t\tif (string.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t;\n\t\t\tfor (int j = 1; j <= kazulist.get(i); j++) {\n\n\t\t\t\tStringBuilder r = new StringBuilder();\n\t\t\t\tr.append(string.substring( kazulist.get(j+i)));\n\t\t\t\tr.append(string.substring(0,kazulist.get(j+i)));\n\t\t\t\tstring = r.toString();\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tnannkai++;\n\t\t\ti = count+nannkai;\n\t\t\tSystem.out.println(string);\n\t\t}\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> klist = new ArrayList<String>();\n\n\t\twhile (true) {\n\t\t\tString line = sc.nextLine();\n\t\t\tklist.add(line);\n\t\t\tif (line.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tList<String> mozilist = new ArrayList<String>();\n\t\tList<Integer> kazulist = new ArrayList<Integer>();\n\n\t\tfor (String string : klist) {\n\t\t\tif (string.matches(\"^[0-9]*$\")) {\n\t\t\t\tkazulist.add(Integer.parseInt(string));\n\t\t\t} else {\n\t\t\t\tmozilist.add(string);\n\t\t\t}\n\t\t}\n\n\t\tint i = 0;\n\t\tint count = i;\n\t\tint nannkai = 0;\n\t\tfor (String string : mozilist) {\n\n\t\t\tif (string.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t;\n\t\t\tfor (int j = 1; j <= kazulist.get(i); j++) {\n\n\t\t\t\tStringBuilder r = new StringBuilder();\n\t\t\t\tr.append(string.substring( kazulist.get(j+i)));\n\t\t\t\tr.append(string.substring(0,kazulist.get(j+i)));\n\t\t\t\tstring = r.toString();\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tnannkai++;\n\t\t\ti = count+nannkai;\n\t\t\tSystem.out.println(string);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"List<String> klist = new ArrayList<String>();",
"klist",
"new ArrayList<String>()",
"while (true) {\n\t\t\tString line = sc.nextLine();\n\t\t\tklist.add(line);\n\t\t\tif (line.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"true",
"{\n\t\t\tString line = sc.nextLine();\n\t\t\tklist.add(line);\n\t\t\tif (line.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"String line = sc.nextLine();",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"klist.add(line)",
"klist.add",
"klist",
"line",
"if (line.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}",
"line.equals(\"-\")",
"line.equals",
"line",
"\"-\"",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"List<String> mozilist = new ArrayList<String>();",
"mozilist",
"new ArrayList<String>()",
"List<Integer> kazulist = new ArrayList<Integer>();",
"kazulist",
"new ArrayList<Integer>()",
"for (String string : klist) {\n\t\t\tif (string.matches(\"^[0-9]*$\")) {\n\t\t\t\tkazulist.add(Integer.parseInt(string));\n\t\t\t} else {\n\t\t\t\tmozilist.add(string);\n\t\t\t}\n\t\t}",
"String string",
"klist",
"{\n\t\t\tif (string.matches(\"^[0-9]*$\")) {\n\t\t\t\tkazulist.add(Integer.parseInt(string));\n\t\t\t} else {\n\t\t\t\tmozilist.add(string);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (string.matches(\"^[0-9]*$\")) {\n\t\t\t\tkazulist.add(Integer.parseInt(string));\n\t\t\t} else {\n\t\t\t\tmozilist.add(string);\n\t\t\t}\n\t\t}",
"if (string.matches(\"^[0-9]*$\")) {\n\t\t\t\tkazulist.add(Integer.parseInt(string));\n\t\t\t} else {\n\t\t\t\tmozilist.add(string);\n\t\t\t}",
"string.matches(\"^[0-9]*$\")",
"string.matches",
"string",
"\"^[0-9]*$\"",
"{\n\t\t\t\tkazulist.add(Integer.parseInt(string));\n\t\t\t}",
"kazulist.add(Integer.parseInt(string))",
"kazulist.add",
"kazulist",
"Integer.parseInt(string)",
"Integer.parseInt",
"Integer",
"string",
"{\n\t\t\t\tmozilist.add(string);\n\t\t\t}",
"mozilist.add(string)",
"mozilist.add",
"mozilist",
"string",
"int i = 0;",
"i",
"0",
"int count = i;",
"count",
"i",
"int nannkai = 0;",
"nannkai",
"0",
"for (String string : mozilist) {\n\n\t\t\tif (string.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t;\n\t\t\tfor (int j = 1; j <= kazulist.get(i); j++) {\n\n\t\t\t\tStringBuilder r = new StringBuilder();\n\t\t\t\tr.append(string.substring( kazulist.get(j+i)));\n\t\t\t\tr.append(string.substring(0,kazulist.get(j+i)));\n\t\t\t\tstring = r.toString();\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tnannkai++;\n\t\t\ti = count+nannkai;\n\t\t\tSystem.out.println(string);\n\t\t}",
"String string",
"mozilist",
"{\n\n\t\t\tif (string.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t;\n\t\t\tfor (int j = 1; j <= kazulist.get(i); j++) {\n\n\t\t\t\tStringBuilder r = new StringBuilder();\n\t\t\t\tr.append(string.substring( kazulist.get(j+i)));\n\t\t\t\tr.append(string.substring(0,kazulist.get(j+i)));\n\t\t\t\tstring = r.toString();\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tnannkai++;\n\t\t\ti = count+nannkai;\n\t\t\tSystem.out.println(string);\n\t\t}",
"{\n\n\t\t\tif (string.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t;\n\t\t\tfor (int j = 1; j <= kazulist.get(i); j++) {\n\n\t\t\t\tStringBuilder r = new StringBuilder();\n\t\t\t\tr.append(string.substring( kazulist.get(j+i)));\n\t\t\t\tr.append(string.substring(0,kazulist.get(j+i)));\n\t\t\t\tstring = r.toString();\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tnannkai++;\n\t\t\ti = count+nannkai;\n\t\t\tSystem.out.println(string);\n\t\t}",
"if (string.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}",
"string.equals(\"-\")",
"string.equals",
"string",
"\"-\"",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"for (int j = 1; j <= kazulist.get(i); j++) {\n\n\t\t\t\tStringBuilder r = new StringBuilder();\n\t\t\t\tr.append(string.substring( kazulist.get(j+i)));\n\t\t\t\tr.append(string.substring(0,kazulist.get(j+i)));\n\t\t\t\tstring = r.toString();\n\t\t\t\tcount++;\n\t\t\t}",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j <= kazulist.get(i)",
"j",
"kazulist.get(i)",
"kazulist.get",
"kazulist",
"i",
"j++",
"j++",
"j",
"{\n\n\t\t\t\tStringBuilder r = new StringBuilder();\n\t\t\t\tr.append(string.substring( kazulist.get(j+i)));\n\t\t\t\tr.append(string.substring(0,kazulist.get(j+i)));\n\t\t\t\tstring = r.toString();\n\t\t\t\tcount++;\n\t\t\t}",
"{\n\n\t\t\t\tStringBuilder r = new StringBuilder();\n\t\t\t\tr.append(string.substring( kazulist.get(j+i)));\n\t\t\t\tr.append(string.substring(0,kazulist.get(j+i)));\n\t\t\t\tstring = r.toString();\n\t\t\t\tcount++;\n\t\t\t}",
"StringBuilder r = new StringBuilder();",
"r",
"new StringBuilder()",
"r.append(string.substring( kazulist.get(j+i)))",
"r.append",
"r",
"string.substring( kazulist.get(j+i))",
"string.substring",
"string",
"kazulist.get(j+i)",
"kazulist.get",
"kazulist",
"j+i",
"j",
"i",
"r.append(string.substring(0,kazulist.get(j+i)))",
"r.append",
"r",
"string.substring(0,kazulist.get(j+i))",
"string.substring",
"string",
"0",
"kazulist.get(j+i)",
"kazulist.get",
"kazulist",
"j+i",
"j",
"i",
"string = r.toString()",
"string",
"r.toString()",
"r.toString",
"r",
"count++",
"count",
"nannkai++",
"nannkai",
"i = count+nannkai",
"i",
"count+nannkai",
"count",
"nannkai",
"System.out.println(string)",
"System.out.println",
"System.out",
"System",
"System.out",
"string",
"String[] arges",
"arges",
"public class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> klist = new ArrayList<String>();\n\n\t\twhile (true) {\n\t\t\tString line = sc.nextLine();\n\t\t\tklist.add(line);\n\t\t\tif (line.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tList<String> mozilist = new ArrayList<String>();\n\t\tList<Integer> kazulist = new ArrayList<Integer>();\n\n\t\tfor (String string : klist) {\n\t\t\tif (string.matches(\"^[0-9]*$\")) {\n\t\t\t\tkazulist.add(Integer.parseInt(string));\n\t\t\t} else {\n\t\t\t\tmozilist.add(string);\n\t\t\t}\n\t\t}\n\n\t\tint i = 0;\n\t\tint count = i;\n\t\tint nannkai = 0;\n\t\tfor (String string : mozilist) {\n\n\t\t\tif (string.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t;\n\t\t\tfor (int j = 1; j <= kazulist.get(i); j++) {\n\n\t\t\t\tStringBuilder r = new StringBuilder();\n\t\t\t\tr.append(string.substring( kazulist.get(j+i)));\n\t\t\t\tr.append(string.substring(0,kazulist.get(j+i)));\n\t\t\t\tstring = r.toString();\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tnannkai++;\n\t\t\ti = count+nannkai;\n\t\t\tSystem.out.println(string);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] arges) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> klist = new ArrayList<String>();\n\n\t\twhile (true) {\n\t\t\tString line = sc.nextLine();\n\t\t\tklist.add(line);\n\t\t\tif (line.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tList<String> mozilist = new ArrayList<String>();\n\t\tList<Integer> kazulist = new ArrayList<Integer>();\n\n\t\tfor (String string : klist) {\n\t\t\tif (string.matches(\"^[0-9]*$\")) {\n\t\t\t\tkazulist.add(Integer.parseInt(string));\n\t\t\t} else {\n\t\t\t\tmozilist.add(string);\n\t\t\t}\n\t\t}\n\n\t\tint i = 0;\n\t\tint count = i;\n\t\tint nannkai = 0;\n\t\tfor (String string : mozilist) {\n\n\t\t\tif (string.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t;\n\t\t\tfor (int j = 1; j <= kazulist.get(i); j++) {\n\n\t\t\t\tStringBuilder r = new StringBuilder();\n\t\t\t\tr.append(string.substring( kazulist.get(j+i)));\n\t\t\t\tr.append(string.substring(0,kazulist.get(j+i)));\n\t\t\t\tstring = r.toString();\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tnannkai++;\n\t\t\ti = count+nannkai;\n\t\t\tSystem.out.println(string);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] arges) {
Scanner sc = new Scanner(System.in);
List<String> klist = new ArrayList<String>();
while (true) {
String line = sc.nextLine();
klist.add(line);
if (line.equals("-")) {
break;
}
}
List<String> mozilist = new ArrayList<String>();
List<Integer> kazulist = new ArrayList<Integer>();
for (String string : klist) {
if (string.matches("^[0-9]*$")) {
kazulist.add(Integer.parseInt(string));
} else {
mozilist.add(string);
}
}
int i = 0;
int count = i;
int nannkai = 0;
for (String string : mozilist) {
if (string.equals("-")) {
break;
}
;
for (int j = 1; j <= kazulist.get(i); j++) {
StringBuilder r = new StringBuilder();
r.append(string.substring( kazulist.get(j+i)));
r.append(string.substring(0,kazulist.get(j+i)));
string = r.toString();
count++;
}
nannkai++;
i = count+nannkai;
System.out.println(string);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
42,
17,
30,
41,
13,
4,
18,
13,
14,
4,
18,
13,
17,
3,
41,
13,
4,
18,
13,
17,
11,
1,
0,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
4,
18,
13,
18,
13,
13,
41,
13,
4,
18,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
4,
18,
13,
4,
18,
13,
28,
13,
13,
30,
4,
18,
18,
13,
13,
17,
13,
4,
18,
18,
13,
13,
17,
4,
18,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
134,
11
],
[
134,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
14,
25
],
[
25,
26
],
[
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
],
[
41,
44
],
[
27,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
45,
55
],
[
55,
56
],
[
56,
57
],
[
45,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
62,
63
],
[
62,
64
],
[
27,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
27,
70
],
[
70,
71
],
[
27,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
72,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
84,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
90,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
105,
106
],
[
106,
107
],
[
27,
108
],
[
108,
109
],
[
108,
110
],
[
108,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
112,
118
],
[
27,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
27,
125
],
[
125,
126
],
[
126,
127
],
[
14,
128
],
[
128,
129
],
[
129,
130
],
[
12,
131
],
[
131,
132
],
[
0,
133
],
[
133,
134
],
[
133,
135
]
]
| [
"import java.util.Scanner;\nimport java.util.ArrayDeque;\nimport java.util.Queue;\n\npublic class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n Queue<String> queue = new ArrayDeque<>();\n int i,k;\n\n while(true)\n {\n String input = sc.next();\n\n if(input.equals(\"-\")) break;\n \n String[] binput = input.split(\"\");\n\n for(i=0; i<binput.length; i++) queue.add(binput[i]);\n\n int m = sc.nextInt();\n int h;\n for(i=0; i<m; i++)\n {\n h = sc.nextInt();\n for(k=0; k<h; k++) queue.add(queue.poll());\n }\n\n //for(i=0; i<queue.length; i++) System.out.printf(queue.poll());\n for(String a : queue) System.out.printf(\"%s\",a);\n System.out.printf(\"\\n\");\n queue.clear();\n }\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.ArrayDeque;",
"ArrayDeque",
"java.util",
"import java.util.Queue;",
"Queue",
"java.util",
"public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n Queue<String> queue = new ArrayDeque<>();\n int i,k;\n\n while(true)\n {\n String input = sc.next();\n\n if(input.equals(\"-\")) break;\n \n String[] binput = input.split(\"\");\n\n for(i=0; i<binput.length; i++) queue.add(binput[i]);\n\n int m = sc.nextInt();\n int h;\n for(i=0; i<m; i++)\n {\n h = sc.nextInt();\n for(k=0; k<h; k++) queue.add(queue.poll());\n }\n\n //for(i=0; i<queue.length; i++) System.out.printf(queue.poll());\n for(String a : queue) System.out.printf(\"%s\",a);\n System.out.printf(\"\\n\");\n queue.clear();\n }\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n Queue<String> queue = new ArrayDeque<>();\n int i,k;\n\n while(true)\n {\n String input = sc.next();\n\n if(input.equals(\"-\")) break;\n \n String[] binput = input.split(\"\");\n\n for(i=0; i<binput.length; i++) queue.add(binput[i]);\n\n int m = sc.nextInt();\n int h;\n for(i=0; i<m; i++)\n {\n h = sc.nextInt();\n for(k=0; k<h; k++) queue.add(queue.poll());\n }\n\n //for(i=0; i<queue.length; i++) System.out.printf(queue.poll());\n for(String a : queue) System.out.printf(\"%s\",a);\n System.out.printf(\"\\n\");\n queue.clear();\n }\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n Queue<String> queue = new ArrayDeque<>();\n int i,k;\n\n while(true)\n {\n String input = sc.next();\n\n if(input.equals(\"-\")) break;\n \n String[] binput = input.split(\"\");\n\n for(i=0; i<binput.length; i++) queue.add(binput[i]);\n\n int m = sc.nextInt();\n int h;\n for(i=0; i<m; i++)\n {\n h = sc.nextInt();\n for(k=0; k<h; k++) queue.add(queue.poll());\n }\n\n //for(i=0; i<queue.length; i++) System.out.printf(queue.poll());\n for(String a : queue) System.out.printf(\"%s\",a);\n System.out.printf(\"\\n\");\n queue.clear();\n }\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"Queue<String> queue = new ArrayDeque<>();",
"queue",
"new ArrayDeque<>()",
"int i",
"i",
"k;",
"k",
"while(true)\n {\n String input = sc.next();\n\n if(input.equals(\"-\")) break;\n \n String[] binput = input.split(\"\");\n\n for(i=0; i<binput.length; i++) queue.add(binput[i]);\n\n int m = sc.nextInt();\n int h;\n for(i=0; i<m; i++)\n {\n h = sc.nextInt();\n for(k=0; k<h; k++) queue.add(queue.poll());\n }\n\n //for(i=0; i<queue.length; i++) System.out.printf(queue.poll());\n for(String a : queue) System.out.printf(\"%s\",a);\n System.out.printf(\"\\n\");\n queue.clear();\n }",
"true",
"{\n String input = sc.next();\n\n if(input.equals(\"-\")) break;\n \n String[] binput = input.split(\"\");\n\n for(i=0; i<binput.length; i++) queue.add(binput[i]);\n\n int m = sc.nextInt();\n int h;\n for(i=0; i<m; i++)\n {\n h = sc.nextInt();\n for(k=0; k<h; k++) queue.add(queue.poll());\n }\n\n //for(i=0; i<queue.length; i++) System.out.printf(queue.poll());\n for(String a : queue) System.out.printf(\"%s\",a);\n System.out.printf(\"\\n\");\n queue.clear();\n }",
"String input = sc.next();",
"input",
"sc.next()",
"sc.next",
"sc",
"if(input.equals(\"-\")) break;",
"input.equals(\"-\")",
"input.equals",
"input",
"\"-\"",
"break;",
"String[] binput = input.split(\"\");",
"binput",
"input.split(\"\")",
"input.split",
"input",
"\"\"",
"for(i=0; i<binput.length; i++) queue.add(binput[i]);",
"i=0;",
"i=0",
"i",
"0",
"i<binput.length",
"i",
"binput.length",
"binput",
"binput.length",
"i++",
"i++",
"i",
"queue.add(binput[i]);",
"queue.add(binput[i])",
"queue.add",
"queue",
"binput[i]",
"binput",
"i",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int h;",
"h",
"for(i=0; i<m; i++)\n {\n h = sc.nextInt();\n for(k=0; k<h; k++) queue.add(queue.poll());\n }",
"i=0;",
"i=0",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n h = sc.nextInt();\n for(k=0; k<h; k++) queue.add(queue.poll());\n }",
"{\n h = sc.nextInt();\n for(k=0; k<h; k++) queue.add(queue.poll());\n }",
"h = sc.nextInt()",
"h",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(k=0; k<h; k++) queue.add(queue.poll());",
"k=0;",
"k=0",
"k",
"0",
"k<h",
"k",
"h",
"k++",
"k++",
"k",
"queue.add(queue.poll());",
"queue.add(queue.poll())",
"queue.add",
"queue",
"queue.poll()",
"queue.poll",
"queue",
"for(String a : queue) System.out.printf(\"%s\",a);",
"String a",
"queue",
"System.out.printf(\"%s\",a);",
"System.out.printf(\"%s\",a)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%s\"",
"a",
"System.out.printf(\"\\n\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"\\n\"",
"queue.clear()",
"queue.clear",
"queue",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n Queue<String> queue = new ArrayDeque<>();\n int i,k;\n\n while(true)\n {\n String input = sc.next();\n\n if(input.equals(\"-\")) break;\n \n String[] binput = input.split(\"\");\n\n for(i=0; i<binput.length; i++) queue.add(binput[i]);\n\n int m = sc.nextInt();\n int h;\n for(i=0; i<m; i++)\n {\n h = sc.nextInt();\n for(k=0; k<h; k++) queue.add(queue.poll());\n }\n\n //for(i=0; i<queue.length; i++) System.out.printf(queue.poll());\n for(String a : queue) System.out.printf(\"%s\",a);\n System.out.printf(\"\\n\");\n queue.clear();\n }\n sc.close();\n }\n}",
"public class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n Queue<String> queue = new ArrayDeque<>();\n int i,k;\n\n while(true)\n {\n String input = sc.next();\n\n if(input.equals(\"-\")) break;\n \n String[] binput = input.split(\"\");\n\n for(i=0; i<binput.length; i++) queue.add(binput[i]);\n\n int m = sc.nextInt();\n int h;\n for(i=0; i<m; i++)\n {\n h = sc.nextInt();\n for(k=0; k<h; k++) queue.add(queue.poll());\n }\n\n //for(i=0; i<queue.length; i++) System.out.printf(queue.poll());\n for(String a : queue) System.out.printf(\"%s\",a);\n System.out.printf(\"\\n\");\n queue.clear();\n }\n sc.close();\n }\n}",
"Main"
]
| import java.util.Scanner;
import java.util.ArrayDeque;
import java.util.Queue;
public class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
Queue<String> queue = new ArrayDeque<>();
int i,k;
while(true)
{
String input = sc.next();
if(input.equals("-")) break;
String[] binput = input.split("");
for(i=0; i<binput.length; i++) queue.add(binput[i]);
int m = sc.nextInt();
int h;
for(i=0; i<m; i++)
{
h = sc.nextInt();
for(k=0; k<h; k++) queue.add(queue.poll());
}
//for(i=0; i<queue.length; i++) System.out.printf(queue.poll());
for(String a : queue) System.out.printf("%s",a);
System.out.printf("\n");
queue.clear();
}
sc.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,
30,
3,
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,
41,
13,
2,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
2,
13,
4,
18,
13,
2,
2,
13,
4,
18,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
83,
5
],
[
83,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
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
],
[
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
],
[
14,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
14,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
6,
80
],
[
80,
81
],
[
0,
82
],
[
82,
83
],
[
82,
84
]
]
| [
"\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString a = scanner.next();\n\t\t\tif (a.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint b = scanner.nextInt();\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < b; i++) {\n\t\t\t\tsum += scanner.nextInt();\n\t\t\t}\n\t\t\tString c = a + a;\n\t\t\tSystem.out.println(c.substring(sum % a.length(), sum\n\t\t\t\t\t% a.length() + a.length()));\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString a = scanner.next();\n\t\t\tif (a.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint b = scanner.nextInt();\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < b; i++) {\n\t\t\t\tsum += scanner.nextInt();\n\t\t\t}\n\t\t\tString c = a + a;\n\t\t\tSystem.out.println(c.substring(sum % a.length(), sum\n\t\t\t\t\t% a.length() + a.length()));\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString a = scanner.next();\n\t\t\tif (a.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint b = scanner.nextInt();\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < b; i++) {\n\t\t\t\tsum += scanner.nextInt();\n\t\t\t}\n\t\t\tString c = a + a;\n\t\t\tSystem.out.println(c.substring(sum % a.length(), sum\n\t\t\t\t\t% a.length() + a.length()));\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString a = scanner.next();\n\t\t\tif (a.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint b = scanner.nextInt();\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < b; i++) {\n\t\t\t\tsum += scanner.nextInt();\n\t\t\t}\n\t\t\tString c = a + a;\n\t\t\tSystem.out.println(c.substring(sum % a.length(), sum\n\t\t\t\t\t% a.length() + a.length()));\n\t\t}\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"while (true) {\n\t\t\tString a = scanner.next();\n\t\t\tif (a.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint b = scanner.nextInt();\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < b; i++) {\n\t\t\t\tsum += scanner.nextInt();\n\t\t\t}\n\t\t\tString c = a + a;\n\t\t\tSystem.out.println(c.substring(sum % a.length(), sum\n\t\t\t\t\t% a.length() + a.length()));\n\t\t}",
"true",
"{\n\t\t\tString a = scanner.next();\n\t\t\tif (a.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint b = scanner.nextInt();\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < b; i++) {\n\t\t\t\tsum += scanner.nextInt();\n\t\t\t}\n\t\t\tString c = a + a;\n\t\t\tSystem.out.println(c.substring(sum % a.length(), sum\n\t\t\t\t\t% a.length() + a.length()));\n\t\t}",
"String a = scanner.next();",
"a",
"scanner.next()",
"scanner.next",
"scanner",
"if (a.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}",
"a.equals(\"-\")",
"a.equals",
"a",
"\"-\"",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"int b = scanner.nextInt();",
"b",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int sum = 0;",
"sum",
"0",
"for (int i = 0; i < b; i++) {\n\t\t\t\tsum += scanner.nextInt();\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < b",
"i",
"b",
"i++",
"i++",
"i",
"{\n\t\t\t\tsum += scanner.nextInt();\n\t\t\t}",
"{\n\t\t\t\tsum += scanner.nextInt();\n\t\t\t}",
"sum += scanner.nextInt()",
"sum",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"String c = a + a;",
"c",
"a + a",
"a",
"a",
"System.out.println(c.substring(sum % a.length(), sum\n\t\t\t\t\t% a.length() + a.length()))",
"System.out.println",
"System.out",
"System",
"System.out",
"c.substring(sum % a.length(), sum\n\t\t\t\t\t% a.length() + a.length())",
"c.substring",
"c",
"sum % a.length()",
"sum",
"a.length()",
"a.length",
"a",
"sum\n\t\t\t\t\t% a.length() + a.length()",
"sum\n\t\t\t\t\t% a.length()",
"sum",
"a.length()",
"a.length",
"a",
"a.length()",
"a.length",
"a",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString a = scanner.next();\n\t\t\tif (a.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint b = scanner.nextInt();\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < b; i++) {\n\t\t\t\tsum += scanner.nextInt();\n\t\t\t}\n\t\t\tString c = a + a;\n\t\t\tSystem.out.println(c.substring(sum % a.length(), sum\n\t\t\t\t\t% a.length() + a.length()));\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString a = scanner.next();\n\t\t\tif (a.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint b = scanner.nextInt();\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < b; i++) {\n\t\t\t\tsum += scanner.nextInt();\n\t\t\t}\n\t\t\tString c = a + a;\n\t\t\tSystem.out.println(c.substring(sum % a.length(), sum\n\t\t\t\t\t% a.length() + a.length()));\n\t\t}\n\t}\n}",
"Main"
]
|
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
while (true) {
String a = scanner.next();
if (a.equals("-")) {
break;
}
int b = scanner.nextInt();
int sum = 0;
for (int i = 0; i < b; i++) {
sum += scanner.nextInt();
}
String c = a + a;
System.out.println(c.substring(sum % a.length(), sum
% a.length() + a.length()));
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
42,
40,
4,
18,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
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,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
18,
13,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
18,
13,
2,
13,
17,
0,
18,
13,
2,
18,
13,
13,
17,
13,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
133,
5
],
[
133,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
16,
23
],
[
14,
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
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
24,
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
],
[
53,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
80,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
86,
98
],
[
98,
99
],
[
99,
100
],
[
86,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
109,
111
],
[
80,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
112,
120
],
[
24,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
6,
130
],
[
130,
131
],
[
0,
132
],
[
132,
133
],
[
132,
134
]
]
| [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String line;\n\n while(!((line = sc.nextLine()).equals(\"-\"))) {\n char[] c = line.toCharArray();\n\n line = sc.nextLine();\n int m = Integer.parseInt(line);\n\n for(int ii = 0; ii < m; ii++) {\n line = sc.nextLine();\n\n int h = Integer.parseInt(line);\n char z = 0;\n\n for(int I = 0; I < h; I++) {\n z = c[0];\n for(int i = 0; i < c.length - 1; i++) {\n c[i] = c[i + 1];\n }\n c[c.length - 1] = z;\n }\n\n }\n\n System.out.println(String.valueOf(c));\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 String line;\n\n while(!((line = sc.nextLine()).equals(\"-\"))) {\n char[] c = line.toCharArray();\n\n line = sc.nextLine();\n int m = Integer.parseInt(line);\n\n for(int ii = 0; ii < m; ii++) {\n line = sc.nextLine();\n\n int h = Integer.parseInt(line);\n char z = 0;\n\n for(int I = 0; I < h; I++) {\n z = c[0];\n for(int i = 0; i < c.length - 1; i++) {\n c[i] = c[i + 1];\n }\n c[c.length - 1] = z;\n }\n\n }\n\n System.out.println(String.valueOf(c));\n\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String line;\n\n while(!((line = sc.nextLine()).equals(\"-\"))) {\n char[] c = line.toCharArray();\n\n line = sc.nextLine();\n int m = Integer.parseInt(line);\n\n for(int ii = 0; ii < m; ii++) {\n line = sc.nextLine();\n\n int h = Integer.parseInt(line);\n char z = 0;\n\n for(int I = 0; I < h; I++) {\n z = c[0];\n for(int i = 0; i < c.length - 1; i++) {\n c[i] = c[i + 1];\n }\n c[c.length - 1] = z;\n }\n\n }\n\n System.out.println(String.valueOf(c));\n\n }\n }",
"main",
"{\n\n Scanner sc = new Scanner(System.in);\n String line;\n\n while(!((line = sc.nextLine()).equals(\"-\"))) {\n char[] c = line.toCharArray();\n\n line = sc.nextLine();\n int m = Integer.parseInt(line);\n\n for(int ii = 0; ii < m; ii++) {\n line = sc.nextLine();\n\n int h = Integer.parseInt(line);\n char z = 0;\n\n for(int I = 0; I < h; I++) {\n z = c[0];\n for(int i = 0; i < c.length - 1; i++) {\n c[i] = c[i + 1];\n }\n c[c.length - 1] = z;\n }\n\n }\n\n System.out.println(String.valueOf(c));\n\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String line;",
"line",
"while(!((line = sc.nextLine()).equals(\"-\"))) {\n char[] c = line.toCharArray();\n\n line = sc.nextLine();\n int m = Integer.parseInt(line);\n\n for(int ii = 0; ii < m; ii++) {\n line = sc.nextLine();\n\n int h = Integer.parseInt(line);\n char z = 0;\n\n for(int I = 0; I < h; I++) {\n z = c[0];\n for(int i = 0; i < c.length - 1; i++) {\n c[i] = c[i + 1];\n }\n c[c.length - 1] = z;\n }\n\n }\n\n System.out.println(String.valueOf(c));\n\n }",
"!((line = sc.nextLine()).equals(\"-\"))",
"((line = sc.nextLine()).equals(\"-\"))",
"(line = sc.nextLine()).equals",
"(line = sc.nextLine())",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\"-\"",
"{\n char[] c = line.toCharArray();\n\n line = sc.nextLine();\n int m = Integer.parseInt(line);\n\n for(int ii = 0; ii < m; ii++) {\n line = sc.nextLine();\n\n int h = Integer.parseInt(line);\n char z = 0;\n\n for(int I = 0; I < h; I++) {\n z = c[0];\n for(int i = 0; i < c.length - 1; i++) {\n c[i] = c[i + 1];\n }\n c[c.length - 1] = z;\n }\n\n }\n\n System.out.println(String.valueOf(c));\n\n }",
"char[] c = line.toCharArray();",
"c",
"line.toCharArray()",
"line.toCharArray",
"line",
"line = sc.nextLine()",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int m = Integer.parseInt(line);",
"m",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"for(int ii = 0; ii < m; ii++) {\n line = sc.nextLine();\n\n int h = Integer.parseInt(line);\n char z = 0;\n\n for(int I = 0; I < h; I++) {\n z = c[0];\n for(int i = 0; i < c.length - 1; i++) {\n c[i] = c[i + 1];\n }\n c[c.length - 1] = z;\n }\n\n }",
"int ii = 0;",
"int ii = 0;",
"ii",
"0",
"ii < m",
"ii",
"m",
"ii++",
"ii++",
"ii",
"{\n line = sc.nextLine();\n\n int h = Integer.parseInt(line);\n char z = 0;\n\n for(int I = 0; I < h; I++) {\n z = c[0];\n for(int i = 0; i < c.length - 1; i++) {\n c[i] = c[i + 1];\n }\n c[c.length - 1] = z;\n }\n\n }",
"{\n line = sc.nextLine();\n\n int h = Integer.parseInt(line);\n char z = 0;\n\n for(int I = 0; I < h; I++) {\n z = c[0];\n for(int i = 0; i < c.length - 1; i++) {\n c[i] = c[i + 1];\n }\n c[c.length - 1] = z;\n }\n\n }",
"line = sc.nextLine()",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int h = Integer.parseInt(line);",
"h",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"char z = 0;",
"z",
"0",
"for(int I = 0; I < h; I++) {\n z = c[0];\n for(int i = 0; i < c.length - 1; i++) {\n c[i] = c[i + 1];\n }\n c[c.length - 1] = z;\n }",
"int I = 0;",
"int I = 0;",
"I",
"0",
"I < h",
"I",
"h",
"I++",
"I++",
"I",
"{\n z = c[0];\n for(int i = 0; i < c.length - 1; i++) {\n c[i] = c[i + 1];\n }\n c[c.length - 1] = z;\n }",
"{\n z = c[0];\n for(int i = 0; i < c.length - 1; i++) {\n c[i] = c[i + 1];\n }\n c[c.length - 1] = z;\n }",
"z = c[0]",
"z",
"c[0]",
"c",
"0",
"for(int i = 0; i < c.length - 1; i++) {\n c[i] = c[i + 1];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < c.length - 1",
"i",
"c.length - 1",
"c.length",
"c",
"c.length",
"1",
"i++",
"i++",
"i",
"{\n c[i] = c[i + 1];\n }",
"{\n c[i] = c[i + 1];\n }",
"c[i] = c[i + 1]",
"c[i]",
"c",
"i",
"c[i + 1]",
"c",
"i + 1",
"i",
"1",
"c[c.length - 1] = z",
"c[c.length - 1]",
"c",
"c.length - 1",
"c.length",
"c",
"c.length",
"1",
"z",
"System.out.println(String.valueOf(c))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.valueOf(c)",
"String.valueOf",
"String",
"c",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String line;\n\n while(!((line = sc.nextLine()).equals(\"-\"))) {\n char[] c = line.toCharArray();\n\n line = sc.nextLine();\n int m = Integer.parseInt(line);\n\n for(int ii = 0; ii < m; ii++) {\n line = sc.nextLine();\n\n int h = Integer.parseInt(line);\n char z = 0;\n\n for(int I = 0; I < h; I++) {\n z = c[0];\n for(int i = 0; i < c.length - 1; i++) {\n c[i] = c[i + 1];\n }\n c[c.length - 1] = z;\n }\n\n }\n\n System.out.println(String.valueOf(c));\n\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n String line;\n\n while(!((line = sc.nextLine()).equals(\"-\"))) {\n char[] c = line.toCharArray();\n\n line = sc.nextLine();\n int m = Integer.parseInt(line);\n\n for(int ii = 0; ii < m; ii++) {\n line = sc.nextLine();\n\n int h = Integer.parseInt(line);\n char z = 0;\n\n for(int I = 0; I < h; I++) {\n z = c[0];\n for(int i = 0; i < c.length - 1; i++) {\n c[i] = c[i + 1];\n }\n c[c.length - 1] = z;\n }\n\n }\n\n System.out.println(String.valueOf(c));\n\n }\n }\n}",
"Main"
]
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String line;
while(!((line = sc.nextLine()).equals("-"))) {
char[] c = line.toCharArray();
line = sc.nextLine();
int m = Integer.parseInt(line);
for(int ii = 0; ii < m; ii++) {
line = sc.nextLine();
int h = Integer.parseInt(line);
char z = 0;
for(int I = 0; I < h; I++) {
z = c[0];
for(int i = 0; i < c.length - 1; i++) {
c[i] = c[i + 1];
}
c[c.length - 1] = z;
}
}
System.out.println(String.valueOf(c));
}
}
} |
[
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,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
4,
18,
13,
0,
13,
2,
4,
18,
13,
13,
4,
18,
13,
17,
13,
4,
18,
4,
18,
13,
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
],
[
84,
11
],
[
84,
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
],
[
43,
46
],
[
42,
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
],
[
33,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
68,
74
],
[
14,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
12,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n StringBuilder sb = new StringBuilder();\n while(!(str = br.readLine()).equals(\"-\")){\n int m = Integer.parseInt(br.readLine());\n while(m-->0){\n int h = Integer.parseInt(br.readLine());\n str = str.substring(h) + str.substring(0,h);\n }\n sb.append(str).append(\"\\n\");\n }\n System.out.print(sb);\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n StringBuilder sb = new StringBuilder();\n while(!(str = br.readLine()).equals(\"-\")){\n int m = Integer.parseInt(br.readLine());\n while(m-->0){\n int h = Integer.parseInt(br.readLine());\n str = str.substring(h) + str.substring(0,h);\n }\n sb.append(str).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 String str;\n StringBuilder sb = new StringBuilder();\n while(!(str = br.readLine()).equals(\"-\")){\n int m = Integer.parseInt(br.readLine());\n while(m-->0){\n int h = Integer.parseInt(br.readLine());\n str = str.substring(h) + str.substring(0,h);\n }\n sb.append(str).append(\"\\n\");\n }\n System.out.print(sb);\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n StringBuilder sb = new StringBuilder();\n while(!(str = br.readLine()).equals(\"-\")){\n int m = Integer.parseInt(br.readLine());\n while(m-->0){\n int h = Integer.parseInt(br.readLine());\n str = str.substring(h) + str.substring(0,h);\n }\n sb.append(str).append(\"\\n\");\n }\n System.out.print(sb);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str;",
"str",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"while(!(str = br.readLine()).equals(\"-\")){\n int m = Integer.parseInt(br.readLine());\n while(m-->0){\n int h = Integer.parseInt(br.readLine());\n str = str.substring(h) + str.substring(0,h);\n }\n sb.append(str).append(\"\\n\");\n }",
"!(str = br.readLine()).equals(\"-\")",
"(str = br.readLine()).equals(\"-\")",
"(str = br.readLine()).equals",
"(str = br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"\"-\"",
"{\n int m = Integer.parseInt(br.readLine());\n while(m-->0){\n int h = Integer.parseInt(br.readLine());\n str = str.substring(h) + str.substring(0,h);\n }\n sb.append(str).append(\"\\n\");\n }",
"int m = Integer.parseInt(br.readLine());",
"m",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"while(m-->0){\n int h = Integer.parseInt(br.readLine());\n str = str.substring(h) + str.substring(0,h);\n }",
"m-->0",
"m--",
"m",
"0",
"{\n int h = Integer.parseInt(br.readLine());\n str = str.substring(h) + str.substring(0,h);\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",
"sb.append(str).append(\"\\n\")",
"sb.append(str).append",
"sb.append(str)",
"sb.append",
"sb",
"str",
"\"\\n\"",
"System.out.print(sb)",
"System.out.print",
"System.out",
"System",
"System.out",
"sb",
"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 StringBuilder sb = new StringBuilder();\n while(!(str = br.readLine()).equals(\"-\")){\n int m = Integer.parseInt(br.readLine());\n while(m-->0){\n int h = Integer.parseInt(br.readLine());\n str = str.substring(h) + str.substring(0,h);\n }\n sb.append(str).append(\"\\n\");\n }\n System.out.print(sb);\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 StringBuilder sb = new StringBuilder();\n while(!(str = br.readLine()).equals(\"-\")){\n int m = Integer.parseInt(br.readLine());\n while(m-->0){\n int h = Integer.parseInt(br.readLine());\n str = str.substring(h) + str.substring(0,h);\n }\n sb.append(str).append(\"\\n\");\n }\n System.out.print(sb);\n }\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str;
StringBuilder sb = new StringBuilder();
while(!(str = br.readLine()).equals("-")){
int m = Integer.parseInt(br.readLine());
while(m-->0){
int h = Integer.parseInt(br.readLine());
str = str.substring(h) + str.substring(0,h);
}
sb.append(str).append("\n");
}
System.out.print(sb);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
0,
13,
20,
17,
41,
13,
0,
13,
20,
17,
41,
13,
0,
13,
20,
17,
41,
13,
0,
13,
20,
17,
17,
41,
13,
17,
42,
17,
30,
0,
18,
13,
13,
4,
18,
13,
14,
4,
18,
18,
13,
13,
17,
3,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
17,
0,
18,
13,
13,
2,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
18,
18,
13,
13,
13,
0,
18,
13,
13,
2,
4,
18,
18,
13,
13,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
18,
18,
13,
13,
13,
40,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
188,
5
],
[
188,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
50,
57
],
[
42,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
42,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
65,
75
],
[
75,
76
],
[
76,
77
],
[
65,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
79,
85
],
[
85,
86
],
[
86,
87
],
[
42,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
88,
98
],
[
98,
99
],
[
99,
100
],
[
88,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
111,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
122,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
103,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
137,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
148,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
154,
158
],
[
42,
159
],
[
159,
160
],
[
8,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
161,
166
],
[
166,
167
],
[
166,
168
],
[
161,
169
],
[
169,
170
],
[
170,
171
],
[
161,
172
],
[
173,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
174,
179
],
[
179,
180
],
[
179,
181
],
[
8,
182
],
[
182,
183
],
[
183,
184
],
[
6,
185
],
[
185,
186
],
[
0,
187
],
[
187,
188
],
[
187,
189
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String[] moji;\n moji = new String[200];\n String[] copy;\n copy = new String[200];\n int[] m;\n m = new int[100];\n int[][] h;\n h = new int[100][100];\n\n int cnt=0;\n while(true){\n moji[cnt] = sc.next();\n if(moji[cnt].equals(\"-\"))\n break;\n m[cnt] = sc.nextInt();\n for(int i=0;i<m[cnt];i++)\n h[cnt][i] = sc.nextInt();\n\n for(int i=0;i<m[cnt];i++){\n if(i==0)\n copy[cnt] = moji[cnt].substring(h[cnt][i]) + moji[cnt].substring(0, h[cnt][i]);\n else\n copy[cnt] = copy[cnt].substring(h[cnt][i]) + copy[cnt].substring(0, h[cnt][i]);\n }\n cnt++; \n }\n\n for(int i=0; i<cnt; i++){\n System.out.println(copy[i]);\n }\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 String[] moji;\n moji = new String[200];\n String[] copy;\n copy = new String[200];\n int[] m;\n m = new int[100];\n int[][] h;\n h = new int[100][100];\n\n int cnt=0;\n while(true){\n moji[cnt] = sc.next();\n if(moji[cnt].equals(\"-\"))\n break;\n m[cnt] = sc.nextInt();\n for(int i=0;i<m[cnt];i++)\n h[cnt][i] = sc.nextInt();\n\n for(int i=0;i<m[cnt];i++){\n if(i==0)\n copy[cnt] = moji[cnt].substring(h[cnt][i]) + moji[cnt].substring(0, h[cnt][i]);\n else\n copy[cnt] = copy[cnt].substring(h[cnt][i]) + copy[cnt].substring(0, h[cnt][i]);\n }\n cnt++; \n }\n\n for(int i=0; i<cnt; i++){\n System.out.println(copy[i]);\n }\n\n sc.close();\n\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String[] moji;\n moji = new String[200];\n String[] copy;\n copy = new String[200];\n int[] m;\n m = new int[100];\n int[][] h;\n h = new int[100][100];\n\n int cnt=0;\n while(true){\n moji[cnt] = sc.next();\n if(moji[cnt].equals(\"-\"))\n break;\n m[cnt] = sc.nextInt();\n for(int i=0;i<m[cnt];i++)\n h[cnt][i] = sc.nextInt();\n\n for(int i=0;i<m[cnt];i++){\n if(i==0)\n copy[cnt] = moji[cnt].substring(h[cnt][i]) + moji[cnt].substring(0, h[cnt][i]);\n else\n copy[cnt] = copy[cnt].substring(h[cnt][i]) + copy[cnt].substring(0, h[cnt][i]);\n }\n cnt++; \n }\n\n for(int i=0; i<cnt; i++){\n System.out.println(copy[i]);\n }\n\n sc.close();\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n String[] moji;\n moji = new String[200];\n String[] copy;\n copy = new String[200];\n int[] m;\n m = new int[100];\n int[][] h;\n h = new int[100][100];\n\n int cnt=0;\n while(true){\n moji[cnt] = sc.next();\n if(moji[cnt].equals(\"-\"))\n break;\n m[cnt] = sc.nextInt();\n for(int i=0;i<m[cnt];i++)\n h[cnt][i] = sc.nextInt();\n\n for(int i=0;i<m[cnt];i++){\n if(i==0)\n copy[cnt] = moji[cnt].substring(h[cnt][i]) + moji[cnt].substring(0, h[cnt][i]);\n else\n copy[cnt] = copy[cnt].substring(h[cnt][i]) + copy[cnt].substring(0, h[cnt][i]);\n }\n cnt++; \n }\n\n for(int i=0; i<cnt; i++){\n System.out.println(copy[i]);\n }\n\n sc.close();\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String[] moji;",
"moji",
"moji = new String[200]",
"moji",
"new String[200]",
"200",
"String[] copy;",
"copy",
"copy = new String[200]",
"copy",
"new String[200]",
"200",
"int[] m;",
"m",
"m = new int[100]",
"m",
"new int[100]",
"100",
"int[][] h;",
"h",
"h = new int[100][100]",
"h",
"new int[100][100]",
"100",
"100",
"int cnt=0;",
"cnt",
"0",
"while(true){\n moji[cnt] = sc.next();\n if(moji[cnt].equals(\"-\"))\n break;\n m[cnt] = sc.nextInt();\n for(int i=0;i<m[cnt];i++)\n h[cnt][i] = sc.nextInt();\n\n for(int i=0;i<m[cnt];i++){\n if(i==0)\n copy[cnt] = moji[cnt].substring(h[cnt][i]) + moji[cnt].substring(0, h[cnt][i]);\n else\n copy[cnt] = copy[cnt].substring(h[cnt][i]) + copy[cnt].substring(0, h[cnt][i]);\n }\n cnt++; \n }",
"true",
"{\n moji[cnt] = sc.next();\n if(moji[cnt].equals(\"-\"))\n break;\n m[cnt] = sc.nextInt();\n for(int i=0;i<m[cnt];i++)\n h[cnt][i] = sc.nextInt();\n\n for(int i=0;i<m[cnt];i++){\n if(i==0)\n copy[cnt] = moji[cnt].substring(h[cnt][i]) + moji[cnt].substring(0, h[cnt][i]);\n else\n copy[cnt] = copy[cnt].substring(h[cnt][i]) + copy[cnt].substring(0, h[cnt][i]);\n }\n cnt++; \n }",
"moji[cnt] = sc.next()",
"moji[cnt]",
"moji",
"cnt",
"sc.next()",
"sc.next",
"sc",
"if(moji[cnt].equals(\"-\"))\n break;",
"moji[cnt].equals(\"-\")",
"moji[cnt].equals",
"moji[cnt]",
"moji",
"cnt",
"\"-\"",
"break;",
"m[cnt] = sc.nextInt()",
"m[cnt]",
"m",
"cnt",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i<m[cnt];i++)\n h[cnt][i] = sc.nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m[cnt]",
"i",
"m[cnt]",
"m",
"cnt",
"i++",
"i++",
"i",
"h[cnt][i] = sc.nextInt();",
"h[cnt][i] = sc.nextInt()",
"h[cnt][i]",
"h[cnt]",
"h",
"cnt",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i<m[cnt];i++){\n if(i==0)\n copy[cnt] = moji[cnt].substring(h[cnt][i]) + moji[cnt].substring(0, h[cnt][i]);\n else\n copy[cnt] = copy[cnt].substring(h[cnt][i]) + copy[cnt].substring(0, h[cnt][i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m[cnt]",
"i",
"m[cnt]",
"m",
"cnt",
"i++",
"i++",
"i",
"{\n if(i==0)\n copy[cnt] = moji[cnt].substring(h[cnt][i]) + moji[cnt].substring(0, h[cnt][i]);\n else\n copy[cnt] = copy[cnt].substring(h[cnt][i]) + copy[cnt].substring(0, h[cnt][i]);\n }",
"{\n if(i==0)\n copy[cnt] = moji[cnt].substring(h[cnt][i]) + moji[cnt].substring(0, h[cnt][i]);\n else\n copy[cnt] = copy[cnt].substring(h[cnt][i]) + copy[cnt].substring(0, h[cnt][i]);\n }",
"if(i==0)\n copy[cnt] = moji[cnt].substring(h[cnt][i]) + moji[cnt].substring(0, h[cnt][i]);\n else\n copy[cnt] = copy[cnt].substring(h[cnt][i]) + copy[cnt].substring(0, h[cnt][i]);",
"i==0",
"i",
"0",
"copy[cnt] = moji[cnt].substring(h[cnt][i]) + moji[cnt].substring(0, h[cnt][i])",
"copy[cnt]",
"copy",
"cnt",
"moji[cnt].substring(h[cnt][i]) + moji[cnt].substring(0, h[cnt][i])",
"moji[cnt].substring(h[cnt][i])",
"moji[cnt].substring",
"moji[cnt]",
"moji",
"cnt",
"h[cnt][i]",
"h[cnt]",
"h",
"cnt",
"i",
"moji[cnt].substring(0, h[cnt][i])",
"moji[cnt].substring",
"moji[cnt]",
"moji",
"cnt",
"0",
"h[cnt][i]",
"h[cnt]",
"h",
"cnt",
"i",
"copy[cnt] = copy[cnt].substring(h[cnt][i]) + copy[cnt].substring(0, h[cnt][i])",
"copy[cnt]",
"copy",
"cnt",
"copy[cnt].substring(h[cnt][i]) + copy[cnt].substring(0, h[cnt][i])",
"copy[cnt].substring(h[cnt][i])",
"copy[cnt].substring",
"copy[cnt]",
"copy",
"cnt",
"h[cnt][i]",
"h[cnt]",
"h",
"cnt",
"i",
"copy[cnt].substring(0, h[cnt][i])",
"copy[cnt].substring",
"copy[cnt]",
"copy",
"cnt",
"0",
"h[cnt][i]",
"h[cnt]",
"h",
"cnt",
"i",
"cnt++",
"cnt",
"for(int i=0; i<cnt; i++){\n System.out.println(copy[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<cnt",
"i",
"cnt",
"i++",
"i++",
"i",
"{\n System.out.println(copy[i]);\n }",
"{\n System.out.println(copy[i]);\n }",
"System.out.println(copy[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"copy[i]",
"copy",
"i",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String[] moji;\n moji = new String[200];\n String[] copy;\n copy = new String[200];\n int[] m;\n m = new int[100];\n int[][] h;\n h = new int[100][100];\n\n int cnt=0;\n while(true){\n moji[cnt] = sc.next();\n if(moji[cnt].equals(\"-\"))\n break;\n m[cnt] = sc.nextInt();\n for(int i=0;i<m[cnt];i++)\n h[cnt][i] = sc.nextInt();\n\n for(int i=0;i<m[cnt];i++){\n if(i==0)\n copy[cnt] = moji[cnt].substring(h[cnt][i]) + moji[cnt].substring(0, h[cnt][i]);\n else\n copy[cnt] = copy[cnt].substring(h[cnt][i]) + copy[cnt].substring(0, h[cnt][i]);\n }\n cnt++; \n }\n\n for(int i=0; i<cnt; i++){\n System.out.println(copy[i]);\n }\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 String[] moji;\n moji = new String[200];\n String[] copy;\n copy = new String[200];\n int[] m;\n m = new int[100];\n int[][] h;\n h = new int[100][100];\n\n int cnt=0;\n while(true){\n moji[cnt] = sc.next();\n if(moji[cnt].equals(\"-\"))\n break;\n m[cnt] = sc.nextInt();\n for(int i=0;i<m[cnt];i++)\n h[cnt][i] = sc.nextInt();\n\n for(int i=0;i<m[cnt];i++){\n if(i==0)\n copy[cnt] = moji[cnt].substring(h[cnt][i]) + moji[cnt].substring(0, h[cnt][i]);\n else\n copy[cnt] = copy[cnt].substring(h[cnt][i]) + copy[cnt].substring(0, h[cnt][i]);\n }\n cnt++; \n }\n\n for(int i=0; i<cnt; i++){\n System.out.println(copy[i]);\n }\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);
String[] moji;
moji = new String[200];
String[] copy;
copy = new String[200];
int[] m;
m = new int[100];
int[][] h;
h = new int[100][100];
int cnt=0;
while(true){
moji[cnt] = sc.next();
if(moji[cnt].equals("-"))
break;
m[cnt] = sc.nextInt();
for(int i=0;i<m[cnt];i++)
h[cnt][i] = sc.nextInt();
for(int i=0;i<m[cnt];i++){
if(i==0)
copy[cnt] = moji[cnt].substring(h[cnt][i]) + moji[cnt].substring(0, h[cnt][i]);
else
copy[cnt] = copy[cnt].substring(h[cnt][i]) + copy[cnt].substring(0, h[cnt][i]);
}
cnt++;
}
for(int i=0; i<cnt; i++){
System.out.println(copy[i]);
}
sc.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,
30,
3,
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,
11,
1,
41,
13,
17,
2,
13,
2,
18,
13,
13,
17,
1,
40,
13,
30,
30,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
2,
13,
17,
0,
18,
13,
2,
13,
17,
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
],
[
137,
5
],
[
137,
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
],
[
34,
35
],
[
35,
36
],
[
14,
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
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
68,
80
],
[
80,
81
],
[
81,
82
],
[
68,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
84,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
96,
98
],
[
84,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
99,
105
],
[
14,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
113,
115
],
[
106,
116
],
[
116,
117
],
[
117,
118
],
[
106,
119
],
[
120,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
126,
127
],
[
126,
128
],
[
14,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
6,
134
],
[
134,
135
],
[
0,
136
],
[
136,
137
],
[
136,
138
]
]
| [
"\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString S = sc.next();\n\t\t\tif (S.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar[] C = S.toCharArray();\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 < h; j++) {\n\t\t\t\t\tfor (int k = 0; k < C.length- 1; k++) {\n\t\t\t\t\t\tchar l = C[k];\n\t\t\t\t\t\tC[k] = C[k + 1];\n\t\t\t\t\t\tC[k + 1] = l;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0; i < C.length; i++) {\n\t\t\t\tSystem.out.print(C[i]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString S = sc.next();\n\t\t\tif (S.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar[] C = S.toCharArray();\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 < h; j++) {\n\t\t\t\t\tfor (int k = 0; k < C.length- 1; k++) {\n\t\t\t\t\t\tchar l = C[k];\n\t\t\t\t\t\tC[k] = C[k + 1];\n\t\t\t\t\t\tC[k + 1] = l;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0; i < C.length; i++) {\n\t\t\t\tSystem.out.print(C[i]);\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\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString S = sc.next();\n\t\t\tif (S.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar[] C = S.toCharArray();\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 < h; j++) {\n\t\t\t\t\tfor (int k = 0; k < C.length- 1; k++) {\n\t\t\t\t\t\tchar l = C[k];\n\t\t\t\t\t\tC[k] = C[k + 1];\n\t\t\t\t\t\tC[k + 1] = l;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0; i < C.length; i++) {\n\t\t\t\tSystem.out.print(C[i]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString S = sc.next();\n\t\t\tif (S.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar[] C = S.toCharArray();\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 < h; j++) {\n\t\t\t\t\tfor (int k = 0; k < C.length- 1; k++) {\n\t\t\t\t\t\tchar l = C[k];\n\t\t\t\t\t\tC[k] = C[k + 1];\n\t\t\t\t\t\tC[k + 1] = l;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0; i < C.length; i++) {\n\t\t\t\tSystem.out.print(C[i]);\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)",
"while (true) {\n\t\t\tString S = sc.next();\n\t\t\tif (S.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar[] C = S.toCharArray();\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 < h; j++) {\n\t\t\t\t\tfor (int k = 0; k < C.length- 1; k++) {\n\t\t\t\t\t\tchar l = C[k];\n\t\t\t\t\t\tC[k] = C[k + 1];\n\t\t\t\t\t\tC[k + 1] = l;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0; i < C.length; i++) {\n\t\t\t\tSystem.out.print(C[i]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"true",
"{\n\t\t\tString S = sc.next();\n\t\t\tif (S.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar[] C = S.toCharArray();\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 < h; j++) {\n\t\t\t\t\tfor (int k = 0; k < C.length- 1; k++) {\n\t\t\t\t\t\tchar l = C[k];\n\t\t\t\t\t\tC[k] = C[k + 1];\n\t\t\t\t\t\tC[k + 1] = l;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0; i < C.length; i++) {\n\t\t\t\tSystem.out.print(C[i]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"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;",
"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\t\t\t\tint h = sc.nextInt();\n\t\t\t\tfor (int j = 0; j < h; j++) {\n\t\t\t\t\tfor (int k = 0; k < C.length- 1; k++) {\n\t\t\t\t\t\tchar l = C[k];\n\t\t\t\t\t\tC[k] = C[k + 1];\n\t\t\t\t\t\tC[k + 1] = l;\n\t\t\t\t\t}\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 < h; j++) {\n\t\t\t\t\tfor (int k = 0; k < C.length- 1; k++) {\n\t\t\t\t\t\tchar l = C[k];\n\t\t\t\t\t\tC[k] = C[k + 1];\n\t\t\t\t\t\tC[k + 1] = l;\n\t\t\t\t\t}\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 < h; j++) {\n\t\t\t\t\tfor (int k = 0; k < C.length- 1; k++) {\n\t\t\t\t\t\tchar l = C[k];\n\t\t\t\t\t\tC[k] = C[k + 1];\n\t\t\t\t\t\tC[k + 1] = l;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int h = sc.nextInt();",
"h",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int j = 0; j < h; j++) {\n\t\t\t\t\tfor (int k = 0; k < C.length- 1; k++) {\n\t\t\t\t\t\tchar l = C[k];\n\t\t\t\t\t\tC[k] = C[k + 1];\n\t\t\t\t\t\tC[k + 1] = l;\n\t\t\t\t\t}\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < h",
"j",
"h",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tfor (int k = 0; k < C.length- 1; k++) {\n\t\t\t\t\t\tchar l = C[k];\n\t\t\t\t\t\tC[k] = C[k + 1];\n\t\t\t\t\t\tC[k + 1] = l;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tfor (int k = 0; k < C.length- 1; k++) {\n\t\t\t\t\t\tchar l = C[k];\n\t\t\t\t\t\tC[k] = C[k + 1];\n\t\t\t\t\t\tC[k + 1] = l;\n\t\t\t\t\t}\n\t\t\t\t}",
"for (int k = 0; k < C.length- 1; k++) {\n\t\t\t\t\t\tchar l = C[k];\n\t\t\t\t\t\tC[k] = C[k + 1];\n\t\t\t\t\t\tC[k + 1] = l;\n\t\t\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < C.length- 1",
"k",
"C.length- 1",
"C.length",
"C",
"C.length",
"1",
"k++",
"k++",
"k",
"{\n\t\t\t\t\t\tchar l = C[k];\n\t\t\t\t\t\tC[k] = C[k + 1];\n\t\t\t\t\t\tC[k + 1] = l;\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tchar l = C[k];\n\t\t\t\t\t\tC[k] = C[k + 1];\n\t\t\t\t\t\tC[k + 1] = l;\n\t\t\t\t\t}",
"char l = C[k];",
"l",
"C[k]",
"C",
"k",
"C[k] = C[k + 1]",
"C[k]",
"C",
"k",
"C[k + 1]",
"C",
"k + 1",
"k",
"1",
"C[k + 1] = l",
"C[k + 1]",
"C",
"k + 1",
"k",
"1",
"l",
"for (int i = 0; i < C.length; i++) {\n\t\t\t\tSystem.out.print(C[i]);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < C.length",
"i",
"C.length",
"C",
"C.length",
"i++",
"i++",
"i",
"{\n\t\t\t\tSystem.out.print(C[i]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(C[i]);\n\t\t\t}",
"System.out.print(C[i])",
"System.out.print",
"System.out",
"System",
"System.out",
"C[i]",
"C",
"i",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString S = sc.next();\n\t\t\tif (S.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar[] C = S.toCharArray();\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 < h; j++) {\n\t\t\t\t\tfor (int k = 0; k < C.length- 1; k++) {\n\t\t\t\t\t\tchar l = C[k];\n\t\t\t\t\t\tC[k] = C[k + 1];\n\t\t\t\t\t\tC[k + 1] = l;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0; i < C.length; i++) {\n\t\t\t\tSystem.out.print(C[i]);\n\t\t\t}\n\t\t\tSystem.out.println();\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\twhile (true) {\n\t\t\tString S = sc.next();\n\t\t\tif (S.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tchar[] C = S.toCharArray();\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 < h; j++) {\n\t\t\t\t\tfor (int k = 0; k < C.length- 1; k++) {\n\t\t\t\t\t\tchar l = C[k];\n\t\t\t\t\t\tC[k] = C[k + 1];\n\t\t\t\t\t\tC[k + 1] = l;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0; i < C.length; i++) {\n\t\t\t\tSystem.out.print(C[i]);\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) {
Scanner sc = new Scanner(System.in);
while (true) {
String S = sc.next();
if (S.equals("-")) {
break;
}
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++) {
for (int k = 0; k < C.length- 1; k++) {
char l = C[k];
C[k] = C[k + 1];
C[k + 1] = l;
}
}
}
for (int i = 0; i < C.length; i++) {
System.out.print(C[i]);
}
System.out.println();
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
41,
13,
11,
1,
30,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
13,
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,
18,
13,
13,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
28,
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
],
[
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
],
[
58,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
66,
70
],
[
58,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
58,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
28,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
6,
88
],
[
88,
89
]
]
| [
"import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \tString str;\n \tString left;\n \tString right;\n \tString end = \"-\";\n \tint shuffle;\n \tint m;\n \t\n \tfor(;;){\n \t\tstr = scan.next();\n \t\tif(str.equals(end)) {\n \t\t\tbreak;\n \t\t}\n \t\tm = scan.nextInt();\n \t\tfor(int i = 0; i < m; i++){\n \t\t\tshuffle = scan.nextInt();\n \t\t\tleft = str.substring(0, shuffle);\n \t\t\tright = str.substring(shuffle);\n \t\t\tstr = right + left;\n \t\t}\n \t\tSystem.out.println(str);\n \t}\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \tString str;\n \tString left;\n \tString right;\n \tString end = \"-\";\n \tint shuffle;\n \tint m;\n \t\n \tfor(;;){\n \t\tstr = scan.next();\n \t\tif(str.equals(end)) {\n \t\t\tbreak;\n \t\t}\n \t\tm = scan.nextInt();\n \t\tfor(int i = 0; i < m; i++){\n \t\t\tshuffle = scan.nextInt();\n \t\t\tleft = str.substring(0, shuffle);\n \t\t\tright = str.substring(shuffle);\n \t\t\tstr = right + left;\n \t\t}\n \t\tSystem.out.println(str);\n \t}\n }\n}",
"Main",
"public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \tString str;\n \tString left;\n \tString right;\n \tString end = \"-\";\n \tint shuffle;\n \tint m;\n \t\n \tfor(;;){\n \t\tstr = scan.next();\n \t\tif(str.equals(end)) {\n \t\t\tbreak;\n \t\t}\n \t\tm = scan.nextInt();\n \t\tfor(int i = 0; i < m; i++){\n \t\t\tshuffle = scan.nextInt();\n \t\t\tleft = str.substring(0, shuffle);\n \t\t\tright = str.substring(shuffle);\n \t\t\tstr = right + left;\n \t\t}\n \t\tSystem.out.println(str);\n \t}\n }",
"main",
"{\n \tScanner scan = new Scanner(System.in);\n \tString str;\n \tString left;\n \tString right;\n \tString end = \"-\";\n \tint shuffle;\n \tint m;\n \t\n \tfor(;;){\n \t\tstr = scan.next();\n \t\tif(str.equals(end)) {\n \t\t\tbreak;\n \t\t}\n \t\tm = scan.nextInt();\n \t\tfor(int i = 0; i < m; i++){\n \t\t\tshuffle = scan.nextInt();\n \t\t\tleft = str.substring(0, shuffle);\n \t\t\tright = str.substring(shuffle);\n \t\t\tstr = right + left;\n \t\t}\n \t\tSystem.out.println(str);\n \t}\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String str;",
"str",
"String left;",
"left",
"String right;",
"right",
"String end = \"-\";",
"end",
"\"-\"",
"int shuffle;",
"shuffle",
"int m;",
"m",
"for(;;){\n \t\tstr = scan.next();\n \t\tif(str.equals(end)) {\n \t\t\tbreak;\n \t\t}\n \t\tm = scan.nextInt();\n \t\tfor(int i = 0; i < m; i++){\n \t\t\tshuffle = scan.nextInt();\n \t\t\tleft = str.substring(0, shuffle);\n \t\t\tright = str.substring(shuffle);\n \t\t\tstr = right + left;\n \t\t}\n \t\tSystem.out.println(str);\n \t}",
";",
"{\n \t\tstr = scan.next();\n \t\tif(str.equals(end)) {\n \t\t\tbreak;\n \t\t}\n \t\tm = scan.nextInt();\n \t\tfor(int i = 0; i < m; i++){\n \t\t\tshuffle = scan.nextInt();\n \t\t\tleft = str.substring(0, shuffle);\n \t\t\tright = str.substring(shuffle);\n \t\t\tstr = right + left;\n \t\t}\n \t\tSystem.out.println(str);\n \t}",
"{\n \t\tstr = scan.next();\n \t\tif(str.equals(end)) {\n \t\t\tbreak;\n \t\t}\n \t\tm = scan.nextInt();\n \t\tfor(int i = 0; i < m; i++){\n \t\t\tshuffle = scan.nextInt();\n \t\t\tleft = str.substring(0, shuffle);\n \t\t\tright = str.substring(shuffle);\n \t\t\tstr = right + left;\n \t\t}\n \t\tSystem.out.println(str);\n \t}",
"str = scan.next()",
"str",
"scan.next()",
"scan.next",
"scan",
"if(str.equals(end)) {\n \t\t\tbreak;\n \t\t}",
"str.equals(end)",
"str.equals",
"str",
"end",
"{\n \t\t\tbreak;\n \t\t}",
"break;",
"m = scan.nextInt()",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 0; i < m; i++){\n \t\t\tshuffle = scan.nextInt();\n \t\t\tleft = str.substring(0, shuffle);\n \t\t\tright = str.substring(shuffle);\n \t\t\tstr = right + left;\n \t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n \t\t\tshuffle = scan.nextInt();\n \t\t\tleft = str.substring(0, shuffle);\n \t\t\tright = str.substring(shuffle);\n \t\t\tstr = right + left;\n \t\t}",
"{\n \t\t\tshuffle = scan.nextInt();\n \t\t\tleft = str.substring(0, shuffle);\n \t\t\tright = str.substring(shuffle);\n \t\t\tstr = right + left;\n \t\t}",
"shuffle = scan.nextInt()",
"shuffle",
"scan.nextInt()",
"scan.nextInt",
"scan",
"left = str.substring(0, shuffle)",
"left",
"str.substring(0, shuffle)",
"str.substring",
"str",
"0",
"shuffle",
"right = str.substring(shuffle)",
"right",
"str.substring(shuffle)",
"str.substring",
"str",
"shuffle",
"str = right + left",
"str",
"right + left",
"right",
"left",
"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);
String str;
String left;
String right;
String end = "-";
int shuffle;
int m;
for(;;){
str = scan.next();
if(str.equals(end)) {
break;
}
m = scan.nextInt();
for(int i = 0; i < m; i++){
shuffle = scan.nextInt();
left = str.substring(0, shuffle);
right = str.substring(shuffle);
str = right + left;
}
System.out.println(str);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
17,
42,
2,
4,
18,
0,
13,
4,
18,
13,
17,
17,
30,
41,
13,
20,
4,
18,
13,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
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,
13,
2,
13,
17,
41,
13,
4,
18,
13,
17,
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
],
[
119,
11
],
[
119,
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
],
[
23,
25
],
[
14,
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
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
37,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
37,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
55,
56
],
[
56,
57
],
[
37,
58
],
[
58,
59
],
[
37,
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
],
[
75,
78
],
[
78,
79
],
[
79,
80
],
[
72,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
84,
88
],
[
72,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
89,
93
],
[
37,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
97,
98
],
[
97,
99
],
[
14,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
14,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
14,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
12,
116
],
[
116,
117
],
[
0,
118
],
[
118,
119
],
[
118,
120
]
]
| [
"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\tStringBuilder out=new StringBuilder();\n\t\tString str;\n\t\tint q=0;\n\t\twhile((str=br.readLine()).equals(\"-\")==false){\n\t\t\tStringBuilder sb=new StringBuilder();\n\t\t\tsb.append(str);\n\t\t\tq=str.length();\n\t\t\tint n=Integer.parseInt(br.readLine());\n\t\t\tint p;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tp=Integer.parseInt(br.readLine());\n\t\t\t\tsb.append(sb.substring(0,p));\n\t\t\t\tsb.delete(0,p);\n\t\t\t}\n\t\t\tout.append(sb+\"\\n\");\n\t\t}\n\t\t // 最後にマッチしたインデックス(最後の改行)を取得\n int index = out.lastIndexOf(\"\\n\");\n \n // インデクスを指定して削除して表示\n out.deleteCharAt(index);\n System.out.println(out);\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\tStringBuilder out=new StringBuilder();\n\t\tString str;\n\t\tint q=0;\n\t\twhile((str=br.readLine()).equals(\"-\")==false){\n\t\t\tStringBuilder sb=new StringBuilder();\n\t\t\tsb.append(str);\n\t\t\tq=str.length();\n\t\t\tint n=Integer.parseInt(br.readLine());\n\t\t\tint p;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tp=Integer.parseInt(br.readLine());\n\t\t\t\tsb.append(sb.substring(0,p));\n\t\t\t\tsb.delete(0,p);\n\t\t\t}\n\t\t\tout.append(sb+\"\\n\");\n\t\t}\n\t\t // 最後にマッチしたインデックス(最後の改行)を取得\n int index = out.lastIndexOf(\"\\n\");\n \n // インデクスを指定して削除して表示\n out.deleteCharAt(index);\n System.out.println(out);\n\t}\n}",
"Main",
"public static void main(String[] args)throws IOException {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder out=new StringBuilder();\n\t\tString str;\n\t\tint q=0;\n\t\twhile((str=br.readLine()).equals(\"-\")==false){\n\t\t\tStringBuilder sb=new StringBuilder();\n\t\t\tsb.append(str);\n\t\t\tq=str.length();\n\t\t\tint n=Integer.parseInt(br.readLine());\n\t\t\tint p;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tp=Integer.parseInt(br.readLine());\n\t\t\t\tsb.append(sb.substring(0,p));\n\t\t\t\tsb.delete(0,p);\n\t\t\t}\n\t\t\tout.append(sb+\"\\n\");\n\t\t}\n\t\t // 最後にマッチしたインデックス(最後の改行)を取得\n int index = out.lastIndexOf(\"\\n\");\n \n // インデクスを指定して削除して表示\n out.deleteCharAt(index);\n System.out.println(out);\n\t}",
"main",
"{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder out=new StringBuilder();\n\t\tString str;\n\t\tint q=0;\n\t\twhile((str=br.readLine()).equals(\"-\")==false){\n\t\t\tStringBuilder sb=new StringBuilder();\n\t\t\tsb.append(str);\n\t\t\tq=str.length();\n\t\t\tint n=Integer.parseInt(br.readLine());\n\t\t\tint p;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tp=Integer.parseInt(br.readLine());\n\t\t\t\tsb.append(sb.substring(0,p));\n\t\t\t\tsb.delete(0,p);\n\t\t\t}\n\t\t\tout.append(sb+\"\\n\");\n\t\t}\n\t\t // 最後にマッチしたインデックス(最後の改行)を取得\n int index = out.lastIndexOf(\"\\n\");\n \n // インデクスを指定して削除して表示\n out.deleteCharAt(index);\n System.out.println(out);\n\t}",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder out=new StringBuilder();",
"out",
"new StringBuilder()",
"String str;",
"str",
"int q=0;",
"q",
"0",
"while((str=br.readLine()).equals(\"-\")==false){\n\t\t\tStringBuilder sb=new StringBuilder();\n\t\t\tsb.append(str);\n\t\t\tq=str.length();\n\t\t\tint n=Integer.parseInt(br.readLine());\n\t\t\tint p;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tp=Integer.parseInt(br.readLine());\n\t\t\t\tsb.append(sb.substring(0,p));\n\t\t\t\tsb.delete(0,p);\n\t\t\t}\n\t\t\tout.append(sb+\"\\n\");\n\t\t}",
"(str=br.readLine()).equals(\"-\")==false",
"(str=br.readLine()).equals(\"-\")",
"(str=br.readLine()).equals",
"(str=br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"\"-\"",
"false",
"{\n\t\t\tStringBuilder sb=new StringBuilder();\n\t\t\tsb.append(str);\n\t\t\tq=str.length();\n\t\t\tint n=Integer.parseInt(br.readLine());\n\t\t\tint p;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tp=Integer.parseInt(br.readLine());\n\t\t\t\tsb.append(sb.substring(0,p));\n\t\t\t\tsb.delete(0,p);\n\t\t\t}\n\t\t\tout.append(sb+\"\\n\");\n\t\t}",
"StringBuilder sb=new StringBuilder();",
"sb",
"new StringBuilder()",
"sb.append(str)",
"sb.append",
"sb",
"str",
"q=str.length()",
"q",
"str.length()",
"str.length",
"str",
"int n=Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int p;",
"p",
"for(int i=0;i<n;i++){\n\t\t\t\tp=Integer.parseInt(br.readLine());\n\t\t\t\tsb.append(sb.substring(0,p));\n\t\t\t\tsb.delete(0,p);\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tp=Integer.parseInt(br.readLine());\n\t\t\t\tsb.append(sb.substring(0,p));\n\t\t\t\tsb.delete(0,p);\n\t\t\t}",
"{\n\t\t\t\tp=Integer.parseInt(br.readLine());\n\t\t\t\tsb.append(sb.substring(0,p));\n\t\t\t\tsb.delete(0,p);\n\t\t\t}",
"p=Integer.parseInt(br.readLine())",
"p",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"sb.append(sb.substring(0,p))",
"sb.append",
"sb",
"sb.substring(0,p)",
"sb.substring",
"sb",
"0",
"p",
"sb.delete(0,p)",
"sb.delete",
"sb",
"0",
"p",
"out.append(sb+\"\\n\")",
"out.append",
"out",
"sb+\"\\n\"",
"sb",
"\"\\n\"",
"int index = out.lastIndexOf(\"\\n\");",
"index",
"out.lastIndexOf(\"\\n\")",
"out.lastIndexOf",
"out",
"\"\\n\"",
"out.deleteCharAt(index)",
"out.deleteCharAt",
"out",
"index",
"System.out.println(out)",
"System.out.println",
"System.out",
"System",
"System.out",
"out",
"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\tStringBuilder out=new StringBuilder();\n\t\tString str;\n\t\tint q=0;\n\t\twhile((str=br.readLine()).equals(\"-\")==false){\n\t\t\tStringBuilder sb=new StringBuilder();\n\t\t\tsb.append(str);\n\t\t\tq=str.length();\n\t\t\tint n=Integer.parseInt(br.readLine());\n\t\t\tint p;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tp=Integer.parseInt(br.readLine());\n\t\t\t\tsb.append(sb.substring(0,p));\n\t\t\t\tsb.delete(0,p);\n\t\t\t}\n\t\t\tout.append(sb+\"\\n\");\n\t\t}\n\t\t // 最後にマッチしたインデックス(最後の改行)を取得\n int index = out.lastIndexOf(\"\\n\");\n \n // インデクスを指定して削除して表示\n out.deleteCharAt(index);\n System.out.println(out);\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\tStringBuilder out=new StringBuilder();\n\t\tString str;\n\t\tint q=0;\n\t\twhile((str=br.readLine()).equals(\"-\")==false){\n\t\t\tStringBuilder sb=new StringBuilder();\n\t\t\tsb.append(str);\n\t\t\tq=str.length();\n\t\t\tint n=Integer.parseInt(br.readLine());\n\t\t\tint p;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tp=Integer.parseInt(br.readLine());\n\t\t\t\tsb.append(sb.substring(0,p));\n\t\t\t\tsb.delete(0,p);\n\t\t\t}\n\t\t\tout.append(sb+\"\\n\");\n\t\t}\n\t\t // 最後にマッチしたインデックス(最後の改行)を取得\n int index = out.lastIndexOf(\"\\n\");\n \n // インデクスを指定して削除して表示\n out.deleteCharAt(index);\n System.out.println(out);\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args)throws IOException {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
StringBuilder out=new StringBuilder();
String str;
int q=0;
while((str=br.readLine()).equals("-")==false){
StringBuilder sb=new StringBuilder();
sb.append(str);
q=str.length();
int n=Integer.parseInt(br.readLine());
int p;
for(int i=0;i<n;i++){
p=Integer.parseInt(br.readLine());
sb.append(sb.substring(0,p));
sb.delete(0,p);
}
out.append(sb+"\n");
}
// 最後にマッチしたインデックス(最後の改行)を取得
int index = out.lastIndexOf("\n");
// インデクスを指定して削除して表示
out.deleteCharAt(index);
System.out.println(out);
}
} |
[
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,
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,
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,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
93,
5
],
[
93,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
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
],
[
33,
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
],
[
16,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
54,
64
],
[
64,
65
],
[
65,
66
],
[
54,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
82,
83
],
[
16,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
6,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
]
| [
"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.hasNext()){\n String card = sc.next(); //最初のカードの並び\n if (card.equals(\"-\")) break;\n int s = sc.nextInt(); //シャッフル回数\n int n = 0;//下から何枚目\n for (int i=0; i<s; i++) {\n n += sc.nextInt();\n }\n for (int i=0; i<card.length(); i++) {\n System.out.print(card.charAt((n+i)%card.length()));\n }\n System.out.println(\"\");\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(sc.hasNext()){\n String card = sc.next(); //最初のカードの並び\n if (card.equals(\"-\")) break;\n int s = sc.nextInt(); //シャッフル回数\n int n = 0;//下から何枚目\n for (int i=0; i<s; i++) {\n n += sc.nextInt();\n }\n for (int i=0; i<card.length(); i++) {\n System.out.print(card.charAt((n+i)%card.length()));\n }\n System.out.println(\"\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(sc.hasNext()){\n String card = sc.next(); //最初のカードの並び\n if (card.equals(\"-\")) break;\n int s = sc.nextInt(); //シャッフル回数\n int n = 0;//下から何枚目\n for (int i=0; i<s; i++) {\n n += sc.nextInt();\n }\n for (int i=0; i<card.length(); i++) {\n System.out.print(card.charAt((n+i)%card.length()));\n }\n System.out.println(\"\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n while(sc.hasNext()){\n String card = sc.next(); //最初のカードの並び\n if (card.equals(\"-\")) break;\n int s = sc.nextInt(); //シャッフル回数\n int n = 0;//下から何枚目\n for (int i=0; i<s; i++) {\n n += sc.nextInt();\n }\n for (int i=0; i<card.length(); i++) {\n System.out.print(card.charAt((n+i)%card.length()));\n }\n System.out.println(\"\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while(sc.hasNext()){\n String card = sc.next(); //最初のカードの並び\n if (card.equals(\"-\")) break;\n int s = sc.nextInt(); //シャッフル回数\n int n = 0;//下から何枚目\n for (int i=0; i<s; i++) {\n n += sc.nextInt();\n }\n for (int i=0; i<card.length(); i++) {\n System.out.print(card.charAt((n+i)%card.length()));\n }\n System.out.println(\"\");\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n String card = sc.next(); //最初のカードの並び\n if (card.equals(\"-\")) break;\n int s = sc.nextInt(); //シャッフル回数\n int n = 0;//下から何枚目\n for (int i=0; i<s; i++) {\n n += sc.nextInt();\n }\n for (int i=0; i<card.length(); i++) {\n System.out.print(card.charAt((n+i)%card.length()));\n }\n System.out.println(\"\");\n }",
"String card = sc.next();",
"card",
"sc.next()",
"sc.next",
"sc",
"if (card.equals(\"-\")) break;",
"card.equals(\"-\")",
"card.equals",
"card",
"\"-\"",
"break;",
"int s = sc.nextInt();",
"s",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int n = 0;",
"n",
"0",
"for (int i=0; i<s; i++) {\n n += sc.nextInt();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<s",
"i",
"s",
"i++",
"i++",
"i",
"{\n n += sc.nextInt();\n }",
"{\n n += sc.nextInt();\n }",
"n += sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i=0; i<card.length(); i++) {\n System.out.print(card.charAt((n+i)%card.length()));\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<card.length()",
"i",
"card.length()",
"card.length",
"card",
"i++",
"i++",
"i",
"{\n System.out.print(card.charAt((n+i)%card.length()));\n }",
"{\n System.out.print(card.charAt((n+i)%card.length()));\n }",
"System.out.print(card.charAt((n+i)%card.length()))",
"System.out.print",
"System.out",
"System",
"System.out",
"card.charAt((n+i)%card.length())",
"card.charAt",
"card",
"(n+i)%card.length()",
"(n+i)",
"n",
"i",
"card.length()",
"card.length",
"card",
"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(sc.hasNext()){\n String card = sc.next(); //最初のカードの並び\n if (card.equals(\"-\")) break;\n int s = sc.nextInt(); //シャッフル回数\n int n = 0;//下から何枚目\n for (int i=0; i<s; i++) {\n n += sc.nextInt();\n }\n for (int i=0; i<card.length(); i++) {\n System.out.print(card.charAt((n+i)%card.length()));\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 while(sc.hasNext()){\n String card = sc.next(); //最初のカードの並び\n if (card.equals(\"-\")) break;\n int s = sc.nextInt(); //シャッフル回数\n int n = 0;//下から何枚目\n for (int i=0; i<s; i++) {\n n += sc.nextInt();\n }\n for (int i=0; i<card.length(); i++) {\n System.out.print(card.charAt((n+i)%card.length()));\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(sc.hasNext()){
String card = sc.next(); //最初のカードの並び
if (card.equals("-")) break;
int s = sc.nextInt(); //シャッフル回数
int n = 0;//下から何枚目
for (int i=0; i<s; i++) {
n += sc.nextInt();
}
for (int i=0; i<card.length(); i++) {
System.out.print(card.charAt((n+i)%card.length()));
}
System.out.println("");
}
}
}
|
[
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,
41,
13,
4,
18,
13,
13,
4,
18,
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
],
[
80,
5
],
[
80,
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
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
44,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
14,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
6,
77
],
[
77,
78
],
[
0,
79
],
[
79,
80
],
[
79,
81
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tString str = stdIn.next();\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = stdIn.nextInt();\n\t\t\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tint shuffle = stdIn.nextInt();\n\t\t\t\tString str1 = str.substring(0,shuffle);\n\t\t\t\tString str2 = str.substring(shuffle,str.length());\n\t\t\t\tstr = str2+str1;\n\t\t\t}\n\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 stdIn = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tString str = stdIn.next();\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = stdIn.nextInt();\n\t\t\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tint shuffle = stdIn.nextInt();\n\t\t\t\tString str1 = str.substring(0,shuffle);\n\t\t\t\tString str2 = str.substring(shuffle,str.length());\n\t\t\t\tstr = str2+str1;\n\t\t\t}\n\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 stdIn = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tString str = stdIn.next();\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = stdIn.nextInt();\n\t\t\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tint shuffle = stdIn.nextInt();\n\t\t\t\tString str1 = str.substring(0,shuffle);\n\t\t\t\tString str2 = str.substring(shuffle,str.length());\n\t\t\t\tstr = str2+str1;\n\t\t\t}\n\t\t\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tString str = stdIn.next();\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = stdIn.nextInt();\n\t\t\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tint shuffle = stdIn.nextInt();\n\t\t\t\tString str1 = str.substring(0,shuffle);\n\t\t\t\tString str2 = str.substring(shuffle,str.length());\n\t\t\t\tstr = str2+str1;\n\t\t\t}\n\t\t\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"while(true){\n\t\t\tString str = stdIn.next();\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = stdIn.nextInt();\n\t\t\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tint shuffle = stdIn.nextInt();\n\t\t\t\tString str1 = str.substring(0,shuffle);\n\t\t\t\tString str2 = str.substring(shuffle,str.length());\n\t\t\t\tstr = str2+str1;\n\t\t\t}\n\t\t\n\t\t\tSystem.out.println(str);\n\t\t}",
"true",
"{\n\t\t\tString str = stdIn.next();\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = stdIn.nextInt();\n\t\t\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tint shuffle = stdIn.nextInt();\n\t\t\t\tString str1 = str.substring(0,shuffle);\n\t\t\t\tString str2 = str.substring(shuffle,str.length());\n\t\t\t\tstr = str2+str1;\n\t\t\t}\n\t\t\n\t\t\tSystem.out.println(str);\n\t\t}",
"String str = stdIn.next();",
"str",
"stdIn.next()",
"stdIn.next",
"stdIn",
"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 m = stdIn.nextInt();",
"m",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"for(int i=0;i<m;i++){\n\t\t\t\tint shuffle = stdIn.nextInt();\n\t\t\t\tString str1 = str.substring(0,shuffle);\n\t\t\t\tString str2 = str.substring(shuffle,str.length());\n\t\t\t\tstr = str2+str1;\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\t\tint shuffle = stdIn.nextInt();\n\t\t\t\tString str1 = str.substring(0,shuffle);\n\t\t\t\tString str2 = str.substring(shuffle,str.length());\n\t\t\t\tstr = str2+str1;\n\t\t\t}",
"{\n\t\t\t\tint shuffle = stdIn.nextInt();\n\t\t\t\tString str1 = str.substring(0,shuffle);\n\t\t\t\tString str2 = str.substring(shuffle,str.length());\n\t\t\t\tstr = str2+str1;\n\t\t\t}",
"int shuffle = stdIn.nextInt();",
"shuffle",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"String str1 = str.substring(0,shuffle);",
"str1",
"str.substring(0,shuffle)",
"str.substring",
"str",
"0",
"shuffle",
"String str2 = str.substring(shuffle,str.length());",
"str2",
"str.substring(shuffle,str.length())",
"str.substring",
"str",
"shuffle",
"str.length()",
"str.length",
"str",
"str = str2+str1",
"str",
"str2+str1",
"str2",
"str1",
"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 stdIn = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tString str = stdIn.next();\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = stdIn.nextInt();\n\t\t\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tint shuffle = stdIn.nextInt();\n\t\t\t\tString str1 = str.substring(0,shuffle);\n\t\t\t\tString str2 = str.substring(shuffle,str.length());\n\t\t\t\tstr = str2+str1;\n\t\t\t}\n\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 stdIn = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tString str = stdIn.next();\n\t\t\tif(str.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = stdIn.nextInt();\n\t\t\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\tint shuffle = stdIn.nextInt();\n\t\t\t\tString str1 = str.substring(0,shuffle);\n\t\t\t\tString str2 = str.substring(shuffle,str.length());\n\t\t\t\tstr = str2+str1;\n\t\t\t}\n\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 stdIn = new Scanner(System.in);
while(true){
String str = stdIn.next();
if(str.equals("-")){
break;
}
int m = stdIn.nextInt();
for(int i=0;i<m;i++){
int shuffle = stdIn.nextInt();
String str1 = str.substring(0,shuffle);
String str2 = str.substring(shuffle,str.length());
str = str2+str1;
}
System.out.println(str);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
41,
13,
42,
2,
4,
18,
13,
17,
17,
30,
0,
13,
4,
18,
13,
0,
13,
20,
4,
18,
13,
0,
13,
20,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
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,
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,
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,
18,
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
],
[
178,
8
],
[
178,
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
],
[
11,
22
],
[
22,
23
],
[
11,
24
],
[
24,
25
],
[
11,
26
],
[
26,
27
],
[
11,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
29,
34
],
[
28,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
44,
45
],
[
45,
46
],
[
35,
47
],
[
47,
48
],
[
47,
49
],
[
50,
51
],
[
51,
52
],
[
35,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
53,
63
],
[
63,
64
],
[
64,
65
],
[
53,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
35,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
73,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
85,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
98,
100
],
[
91,
101
],
[
101,
102
],
[
102,
103
],
[
91,
104
],
[
105,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
116,
118
],
[
85,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
126,
128
],
[
119,
129
],
[
129,
130
],
[
130,
131
],
[
119,
132
],
[
133,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
136,
137
],
[
137,
138
],
[
35,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
139,
149
],
[
149,
150
],
[
150,
151
],
[
139,
152
],
[
153,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
159,
160
],
[
160,
161
],
[
159,
162
],
[
162,
163
],
[
162,
164
],
[
35,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
35,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
9,
175
],
[
175,
176
],
[
0,
177
],
[
177,
178
],
[
177,
179
]
]
| [
"import java.util.ArrayList;\nimport java.util.Scanner;\n\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str = scan.next();\n\t\tint n;\n\t\tint[] array; int[] box; int t;\n\t\twhile (str.equals(\"-\") == false) {\n\t\t\tn = scan.nextInt();\n\t\t\tarray = new int[str.length()];\n\t\t\tbox = new int[str.length()];\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tarray[i] = i;\n\t\t\t}\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tt = scan.nextInt();\n\t\t\t\tfor (int j = 0; j < array.length; j++) {\n\t\t\t\t\tbox[j] = array[(j + t) % array.length];\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfor (int j = 0; j < array.length; j++) {\n\t\t\t\t\tarray = (int[])box.clone();\n\t\t\t\t}\n\t\t\t\t//System.out.println(box[0]+\" \"+box[1]+\" \"+box[2]+\" \"+box[3]+\" \"+box[4]);\n\t\t\t}\n\t\t\tfor (int j = 0; j < str.length(); j++) {\n\t\t\t\tSystem.out.print(str.charAt(box[j]));\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tstr = scan.next();\n\t\t}\n\t}\n\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 str = scan.next();\n\t\tint n;\n\t\tint[] array; int[] box; int t;\n\t\twhile (str.equals(\"-\") == false) {\n\t\t\tn = scan.nextInt();\n\t\t\tarray = new int[str.length()];\n\t\t\tbox = new int[str.length()];\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tarray[i] = i;\n\t\t\t}\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tt = scan.nextInt();\n\t\t\t\tfor (int j = 0; j < array.length; j++) {\n\t\t\t\t\tbox[j] = array[(j + t) % array.length];\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfor (int j = 0; j < array.length; j++) {\n\t\t\t\t\tarray = (int[])box.clone();\n\t\t\t\t}\n\t\t\t\t//System.out.println(box[0]+\" \"+box[1]+\" \"+box[2]+\" \"+box[3]+\" \"+box[4]);\n\t\t\t}\n\t\t\tfor (int j = 0; j < str.length(); j++) {\n\t\t\t\tSystem.out.print(str.charAt(box[j]));\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tstr = scan.next();\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str = scan.next();\n\t\tint n;\n\t\tint[] array; int[] box; int t;\n\t\twhile (str.equals(\"-\") == false) {\n\t\t\tn = scan.nextInt();\n\t\t\tarray = new int[str.length()];\n\t\t\tbox = new int[str.length()];\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tarray[i] = i;\n\t\t\t}\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tt = scan.nextInt();\n\t\t\t\tfor (int j = 0; j < array.length; j++) {\n\t\t\t\t\tbox[j] = array[(j + t) % array.length];\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfor (int j = 0; j < array.length; j++) {\n\t\t\t\t\tarray = (int[])box.clone();\n\t\t\t\t}\n\t\t\t\t//System.out.println(box[0]+\" \"+box[1]+\" \"+box[2]+\" \"+box[3]+\" \"+box[4]);\n\t\t\t}\n\t\t\tfor (int j = 0; j < str.length(); j++) {\n\t\t\t\tSystem.out.print(str.charAt(box[j]));\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tstr = scan.next();\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str = scan.next();\n\t\tint n;\n\t\tint[] array; int[] box; int t;\n\t\twhile (str.equals(\"-\") == false) {\n\t\t\tn = scan.nextInt();\n\t\t\tarray = new int[str.length()];\n\t\t\tbox = new int[str.length()];\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tarray[i] = i;\n\t\t\t}\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tt = scan.nextInt();\n\t\t\t\tfor (int j = 0; j < array.length; j++) {\n\t\t\t\t\tbox[j] = array[(j + t) % array.length];\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfor (int j = 0; j < array.length; j++) {\n\t\t\t\t\tarray = (int[])box.clone();\n\t\t\t\t}\n\t\t\t\t//System.out.println(box[0]+\" \"+box[1]+\" \"+box[2]+\" \"+box[3]+\" \"+box[4]);\n\t\t\t}\n\t\t\tfor (int j = 0; j < str.length(); j++) {\n\t\t\t\tSystem.out.print(str.charAt(box[j]));\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tstr = scan.next();\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String str = scan.next();",
"str",
"scan.next()",
"scan.next",
"scan",
"int n;",
"n",
"int[] array;",
"array",
"int[] box;",
"box",
"int t;",
"t",
"while (str.equals(\"-\") == false) {\n\t\t\tn = scan.nextInt();\n\t\t\tarray = new int[str.length()];\n\t\t\tbox = new int[str.length()];\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tarray[i] = i;\n\t\t\t}\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tt = scan.nextInt();\n\t\t\t\tfor (int j = 0; j < array.length; j++) {\n\t\t\t\t\tbox[j] = array[(j + t) % array.length];\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfor (int j = 0; j < array.length; j++) {\n\t\t\t\t\tarray = (int[])box.clone();\n\t\t\t\t}\n\t\t\t\t//System.out.println(box[0]+\" \"+box[1]+\" \"+box[2]+\" \"+box[3]+\" \"+box[4]);\n\t\t\t}\n\t\t\tfor (int j = 0; j < str.length(); j++) {\n\t\t\t\tSystem.out.print(str.charAt(box[j]));\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tstr = scan.next();\n\t\t}",
"str.equals(\"-\") == false",
"str.equals(\"-\")",
"str.equals",
"str",
"\"-\"",
"false",
"{\n\t\t\tn = scan.nextInt();\n\t\t\tarray = new int[str.length()];\n\t\t\tbox = new int[str.length()];\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tarray[i] = i;\n\t\t\t}\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tt = scan.nextInt();\n\t\t\t\tfor (int j = 0; j < array.length; j++) {\n\t\t\t\t\tbox[j] = array[(j + t) % array.length];\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfor (int j = 0; j < array.length; j++) {\n\t\t\t\t\tarray = (int[])box.clone();\n\t\t\t\t}\n\t\t\t\t//System.out.println(box[0]+\" \"+box[1]+\" \"+box[2]+\" \"+box[3]+\" \"+box[4]);\n\t\t\t}\n\t\t\tfor (int j = 0; j < str.length(); j++) {\n\t\t\t\tSystem.out.print(str.charAt(box[j]));\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tstr = scan.next();\n\t\t}",
"n = scan.nextInt()",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"array = new int[str.length()]",
"array",
"new int[str.length()]",
"str.length()",
"str.length",
"str",
"box = new int[str.length()]",
"box",
"new int[str.length()]",
"str.length()",
"str.length",
"str",
"for (int i = 0; i < str.length(); i++) {\n\t\t\t\tarray[i] = i;\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n\t\t\t\tarray[i] = i;\n\t\t\t}",
"{\n\t\t\t\tarray[i] = i;\n\t\t\t}",
"array[i] = i",
"array[i]",
"array",
"i",
"i",
"for (int i = 0; i < n; i++) {\n\t\t\t\tt = scan.nextInt();\n\t\t\t\tfor (int j = 0; j < array.length; j++) {\n\t\t\t\t\tbox[j] = array[(j + t) % array.length];\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfor (int j = 0; j < array.length; j++) {\n\t\t\t\t\tarray = (int[])box.clone();\n\t\t\t\t}\n\t\t\t\t//System.out.println(box[0]+\" \"+box[1]+\" \"+box[2]+\" \"+box[3]+\" \"+box[4]);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tt = scan.nextInt();\n\t\t\t\tfor (int j = 0; j < array.length; j++) {\n\t\t\t\t\tbox[j] = array[(j + t) % array.length];\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfor (int j = 0; j < array.length; j++) {\n\t\t\t\t\tarray = (int[])box.clone();\n\t\t\t\t}\n\t\t\t\t//System.out.println(box[0]+\" \"+box[1]+\" \"+box[2]+\" \"+box[3]+\" \"+box[4]);\n\t\t\t}",
"{\n\t\t\t\tt = scan.nextInt();\n\t\t\t\tfor (int j = 0; j < array.length; j++) {\n\t\t\t\t\tbox[j] = array[(j + t) % array.length];\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfor (int j = 0; j < array.length; j++) {\n\t\t\t\t\tarray = (int[])box.clone();\n\t\t\t\t}\n\t\t\t\t//System.out.println(box[0]+\" \"+box[1]+\" \"+box[2]+\" \"+box[3]+\" \"+box[4]);\n\t\t\t}",
"t = scan.nextInt()",
"t",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int j = 0; j < array.length; j++) {\n\t\t\t\t\tbox[j] = array[(j + t) % array.length];\n\t\t\t\t\t\t\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < array.length",
"j",
"array.length",
"array",
"array.length",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tbox[j] = array[(j + t) % array.length];\n\t\t\t\t\t\t\n\t\t\t\t}",
"{\n\t\t\t\t\tbox[j] = array[(j + t) % array.length];\n\t\t\t\t\t\t\n\t\t\t\t}",
"box[j] = array[(j + t) % array.length]",
"box[j]",
"box",
"j",
"array[(j + t) % array.length]",
"array",
"(j + t) % array.length",
"(j + t)",
"j",
"t",
"array.length",
"array",
"array.length",
"for (int j = 0; j < array.length; j++) {\n\t\t\t\t\tarray = (int[])box.clone();\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < array.length",
"j",
"array.length",
"array",
"array.length",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tarray = (int[])box.clone();\n\t\t\t\t}",
"{\n\t\t\t\t\tarray = (int[])box.clone();\n\t\t\t\t}",
"array = (int[])box.clone()",
"array",
"(int[])box.clone()",
"box.clone",
"box",
"for (int j = 0; j < str.length(); j++) {\n\t\t\t\tSystem.out.print(str.charAt(box[j]));\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < str.length()",
"j",
"str.length()",
"str.length",
"str",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.print(str.charAt(box[j]));\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(str.charAt(box[j]));\n\t\t\t}",
"System.out.print(str.charAt(box[j]))",
"System.out.print",
"System.out",
"System",
"System.out",
"str.charAt(box[j])",
"str.charAt",
"str",
"box[j]",
"box",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"str = scan.next()",
"str",
"scan.next()",
"scan.next",
"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 str = scan.next();\n\t\tint n;\n\t\tint[] array; int[] box; int t;\n\t\twhile (str.equals(\"-\") == false) {\n\t\t\tn = scan.nextInt();\n\t\t\tarray = new int[str.length()];\n\t\t\tbox = new int[str.length()];\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tarray[i] = i;\n\t\t\t}\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tt = scan.nextInt();\n\t\t\t\tfor (int j = 0; j < array.length; j++) {\n\t\t\t\t\tbox[j] = array[(j + t) % array.length];\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfor (int j = 0; j < array.length; j++) {\n\t\t\t\t\tarray = (int[])box.clone();\n\t\t\t\t}\n\t\t\t\t//System.out.println(box[0]+\" \"+box[1]+\" \"+box[2]+\" \"+box[3]+\" \"+box[4]);\n\t\t\t}\n\t\t\tfor (int j = 0; j < str.length(); j++) {\n\t\t\t\tSystem.out.print(str.charAt(box[j]));\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tstr = scan.next();\n\t\t}\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str = scan.next();\n\t\tint n;\n\t\tint[] array; int[] box; int t;\n\t\twhile (str.equals(\"-\") == false) {\n\t\t\tn = scan.nextInt();\n\t\t\tarray = new int[str.length()];\n\t\t\tbox = new int[str.length()];\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tarray[i] = i;\n\t\t\t}\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tt = scan.nextInt();\n\t\t\t\tfor (int j = 0; j < array.length; j++) {\n\t\t\t\t\tbox[j] = array[(j + t) % array.length];\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfor (int j = 0; j < array.length; j++) {\n\t\t\t\t\tarray = (int[])box.clone();\n\t\t\t\t}\n\t\t\t\t//System.out.println(box[0]+\" \"+box[1]+\" \"+box[2]+\" \"+box[3]+\" \"+box[4]);\n\t\t\t}\n\t\t\tfor (int j = 0; j < str.length(); j++) {\n\t\t\t\tSystem.out.print(str.charAt(box[j]));\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tstr = scan.next();\n\t\t}\n\t}\n\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 str = scan.next();
int n;
int[] array; int[] box; int t;
while (str.equals("-") == false) {
n = scan.nextInt();
array = new int[str.length()];
box = new int[str.length()];
for (int i = 0; i < str.length(); i++) {
array[i] = i;
}
for (int i = 0; i < n; i++) {
t = scan.nextInt();
for (int j = 0; j < array.length; j++) {
box[j] = array[(j + t) % array.length];
}
for (int j = 0; j < array.length; j++) {
array = (int[])box.clone();
}
//System.out.println(box[0]+" "+box[1]+" "+box[2]+" "+box[3]+" "+box[4]);
}
for (int j = 0; j < str.length(); j++) {
System.out.print(str.charAt(box[j]));
}
System.out.println();
str = scan.next();
}
}
} |
[
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,
13,
17,
30,
3,
41,
13,
20,
41,
13,
4,
18,
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,
41,
13,
4,
18,
13,
17,
13,
4,
18,
13,
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
],
[
103,
8
],
[
103,
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
],
[
25,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
25,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
25,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
52,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
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
],
[
25,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
98,
99
],
[
9,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
]
| [
"import java.io.*;\nimport java.util.*;\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\n while((str = br.readLine()) != null){\n if(str.equals(\"-\")){\n break;\n }\n\n StringBuilder aabc =new StringBuilder(str);\n int L = aabc.length();//4\n str = br.readLine();\n int m = Integer.parseInt(str);//3\n for(int i=0;i<m;i++){\n str = br.readLine();\n int h = Integer.parseInt(str);//1,2,1\n String temp = aabc.substring(0,h);//substring doesn't include index No of h\n aabc.append(temp);\n aabc.delete(0,h);\n }\n\n System.out.println(aabc.toString());\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"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\n while((str = br.readLine()) != null){\n if(str.equals(\"-\")){\n break;\n }\n\n StringBuilder aabc =new StringBuilder(str);\n int L = aabc.length();//4\n str = br.readLine();\n int m = Integer.parseInt(str);//3\n for(int i=0;i<m;i++){\n str = br.readLine();\n int h = Integer.parseInt(str);//1,2,1\n String temp = aabc.substring(0,h);//substring doesn't include index No of h\n aabc.append(temp);\n aabc.delete(0,h);\n }\n\n System.out.println(aabc.toString());\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\n while((str = br.readLine()) != null){\n if(str.equals(\"-\")){\n break;\n }\n\n StringBuilder aabc =new StringBuilder(str);\n int L = aabc.length();//4\n str = br.readLine();\n int m = Integer.parseInt(str);//3\n for(int i=0;i<m;i++){\n str = br.readLine();\n int h = Integer.parseInt(str);//1,2,1\n String temp = aabc.substring(0,h);//substring doesn't include index No of h\n aabc.append(temp);\n aabc.delete(0,h);\n }\n\n System.out.println(aabc.toString());\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n\n while((str = br.readLine()) != null){\n if(str.equals(\"-\")){\n break;\n }\n\n StringBuilder aabc =new StringBuilder(str);\n int L = aabc.length();//4\n str = br.readLine();\n int m = Integer.parseInt(str);//3\n for(int i=0;i<m;i++){\n str = br.readLine();\n int h = Integer.parseInt(str);//1,2,1\n String temp = aabc.substring(0,h);//substring doesn't include index No of h\n aabc.append(temp);\n aabc.delete(0,h);\n }\n\n System.out.println(aabc.toString());\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str;",
"str",
"while((str = br.readLine()) != null){\n if(str.equals(\"-\")){\n break;\n }\n\n StringBuilder aabc =new StringBuilder(str);\n int L = aabc.length();//4\n str = br.readLine();\n int m = Integer.parseInt(str);//3\n for(int i=0;i<m;i++){\n str = br.readLine();\n int h = Integer.parseInt(str);//1,2,1\n String temp = aabc.substring(0,h);//substring doesn't include index No of h\n aabc.append(temp);\n aabc.delete(0,h);\n }\n\n System.out.println(aabc.toString());\n }",
"(str = br.readLine()) != null",
"(str = br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n if(str.equals(\"-\")){\n break;\n }\n\n StringBuilder aabc =new StringBuilder(str);\n int L = aabc.length();//4\n str = br.readLine();\n int m = Integer.parseInt(str);//3\n for(int i=0;i<m;i++){\n str = br.readLine();\n int h = Integer.parseInt(str);//1,2,1\n String temp = aabc.substring(0,h);//substring doesn't include index No of h\n aabc.append(temp);\n aabc.delete(0,h);\n }\n\n System.out.println(aabc.toString());\n }",
"if(str.equals(\"-\")){\n break;\n }",
"str.equals(\"-\")",
"str.equals",
"str",
"\"-\"",
"{\n break;\n }",
"break;",
"StringBuilder aabc =new StringBuilder(str);",
"aabc",
"new StringBuilder(str)",
"int L = aabc.length();",
"L",
"aabc.length()",
"aabc.length",
"aabc",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"int m = Integer.parseInt(str);",
"m",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"for(int i=0;i<m;i++){\n str = br.readLine();\n int h = Integer.parseInt(str);//1,2,1\n String temp = aabc.substring(0,h);//substring doesn't include index No of h\n aabc.append(temp);\n aabc.delete(0,h);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n str = br.readLine();\n int h = Integer.parseInt(str);//1,2,1\n String temp = aabc.substring(0,h);//substring doesn't include index No of h\n aabc.append(temp);\n aabc.delete(0,h);\n }",
"{\n str = br.readLine();\n int h = Integer.parseInt(str);//1,2,1\n String temp = aabc.substring(0,h);//substring doesn't include index No of h\n aabc.append(temp);\n aabc.delete(0,h);\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"int h = Integer.parseInt(str);",
"h",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"String temp = aabc.substring(0,h);",
"temp",
"aabc.substring(0,h)",
"aabc.substring",
"aabc",
"0",
"h",
"aabc.append(temp)",
"aabc.append",
"aabc",
"temp",
"aabc.delete(0,h)",
"aabc.delete",
"aabc",
"0",
"h",
"System.out.println(aabc.toString())",
"System.out.println",
"System.out",
"System",
"System.out",
"aabc.toString()",
"aabc.toString",
"aabc",
"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\n while((str = br.readLine()) != null){\n if(str.equals(\"-\")){\n break;\n }\n\n StringBuilder aabc =new StringBuilder(str);\n int L = aabc.length();//4\n str = br.readLine();\n int m = Integer.parseInt(str);//3\n for(int i=0;i<m;i++){\n str = br.readLine();\n int h = Integer.parseInt(str);//1,2,1\n String temp = aabc.substring(0,h);//substring doesn't include index No of h\n aabc.append(temp);\n aabc.delete(0,h);\n }\n\n System.out.println(aabc.toString());\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\n while((str = br.readLine()) != null){\n if(str.equals(\"-\")){\n break;\n }\n\n StringBuilder aabc =new StringBuilder(str);\n int L = aabc.length();//4\n str = br.readLine();\n int m = Integer.parseInt(str);//3\n for(int i=0;i<m;i++){\n str = br.readLine();\n int h = Integer.parseInt(str);//1,2,1\n String temp = aabc.substring(0,h);//substring doesn't include index No of h\n aabc.append(temp);\n aabc.delete(0,h);\n }\n\n System.out.println(aabc.toString());\n }\n }\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main{
public static void main(String[] args)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str;
while((str = br.readLine()) != null){
if(str.equals("-")){
break;
}
StringBuilder aabc =new StringBuilder(str);
int L = aabc.length();//4
str = br.readLine();
int m = Integer.parseInt(str);//3
for(int i=0;i<m;i++){
str = br.readLine();
int h = Integer.parseInt(str);//1,2,1
String temp = aabc.substring(0,h);//substring doesn't include index No of h
aabc.append(temp);
aabc.delete(0,h);
}
System.out.println(aabc.toString());
}
}
} |
[
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,
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
],
[
77,
8
],
[
77,
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
],
[
57,
58
],
[
56,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
63,
67
],
[
17,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
9,
74
],
[
74,
75
],
[
0,
76
],
[
76,
77
],
[
76,
78
]
]
| [
"import java.util.Scanner;\nimport java.util.*;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile(true) {\n\t\t\tString first = scanner.next();\n\t\t\tif(first.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scanner.nextInt();\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tint h = scanner.nextInt();\n\t\t\t\tfirst = first.substring(h, first.length()) + first.substring(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(first);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile(true) {\n\t\t\tString first = scanner.next();\n\t\t\tif(first.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scanner.nextInt();\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tint h = scanner.nextInt();\n\t\t\t\tfirst = first.substring(h, first.length()) + first.substring(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(first);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile(true) {\n\t\t\tString first = scanner.next();\n\t\t\tif(first.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scanner.nextInt();\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tint h = scanner.nextInt();\n\t\t\t\tfirst = first.substring(h, first.length()) + first.substring(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(first);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile(true) {\n\t\t\tString first = scanner.next();\n\t\t\tif(first.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scanner.nextInt();\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tint h = scanner.nextInt();\n\t\t\t\tfirst = first.substring(h, first.length()) + first.substring(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(first);\n\t\t}\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"while(true) {\n\t\t\tString first = scanner.next();\n\t\t\tif(first.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scanner.nextInt();\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tint h = scanner.nextInt();\n\t\t\t\tfirst = first.substring(h, first.length()) + first.substring(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(first);\n\t\t}",
"true",
"{\n\t\t\tString first = scanner.next();\n\t\t\tif(first.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scanner.nextInt();\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tint h = scanner.nextInt();\n\t\t\t\tfirst = first.substring(h, first.length()) + first.substring(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(first);\n\t\t}",
"String first = scanner.next();",
"first",
"scanner.next()",
"scanner.next",
"scanner",
"if(first.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}",
"first.equals(\"-\")",
"first.equals",
"first",
"\"-\"",
"{\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 h = scanner.nextInt();\n\t\t\t\tfirst = first.substring(h, first.length()) + first.substring(0, h);\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 = scanner.nextInt();\n\t\t\t\tfirst = first.substring(h, first.length()) + first.substring(0, h);\n\t\t\t}",
"{\n\t\t\t\tint h = scanner.nextInt();\n\t\t\t\tfirst = first.substring(h, first.length()) + first.substring(0, h);\n\t\t\t}",
"int h = scanner.nextInt();",
"h",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"first = first.substring(h, first.length()) + first.substring(0, h)",
"first",
"first.substring(h, first.length()) + first.substring(0, h)",
"first.substring(h, first.length())",
"first.substring",
"first",
"h",
"first.length()",
"first.length",
"first",
"first.substring(0, h)",
"first.substring",
"first",
"0",
"h",
"System.out.println(first)",
"System.out.println",
"System.out",
"System",
"System.out",
"first",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile(true) {\n\t\t\tString first = scanner.next();\n\t\t\tif(first.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scanner.nextInt();\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tint h = scanner.nextInt();\n\t\t\t\tfirst = first.substring(h, first.length()) + first.substring(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(first);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile(true) {\n\t\t\tString first = scanner.next();\n\t\t\tif(first.equals(\"-\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scanner.nextInt();\n\t\t\tfor(int i = 0; i < m; i++) {\n\t\t\t\tint h = scanner.nextInt();\n\t\t\t\tfirst = first.substring(h, first.length()) + first.substring(0, h);\n\t\t\t}\n\t\t\tSystem.out.println(first);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.Scanner;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
while(true) {
String first = scanner.next();
if(first.equals("-")) {
break;
}
int m = scanner.nextInt();
for(int i = 0; i < m; i++) {
int h = scanner.nextInt();
first = first.substring(h, first.length()) + first.substring(0, h);
}
System.out.println(first);
}
}
}
|
[
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,
41,
13,
4,
18,
13,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
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,
18,
13,
13,
4,
18,
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
],
[
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
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
23,
35
],
[
35,
36
],
[
35,
37
],
[
23,
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
],
[
50,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
64,
68
],
[
50,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
71,
75
],
[
50,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
23,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
86,
87
],
[
23,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
6,
93
],
[
93,
94
]
]
| [
"import java.util.Scanner;\n \nclass Main{\n public static void main(String[] arg){\n\n Scanner in = new Scanner(System.in);\n\n String input = in.nextLine();\n\n while(!input.equals(\"-\")){\n String tmp = in.nextLine();\n int h_cnt = Integer.parseInt(tmp);\n StringBuffer sb = new StringBuffer(input);\n for(int i=0; i<h_cnt; i++){\n tmp = in.nextLine();\n int h_pos = Integer.parseInt(tmp);\n String del_str = sb.substring(0,h_pos);\n sb = sb.delete(0,h_pos);\n sb.append(del_str);\n }\n System.out.println(sb.toString());\n input = in.nextLine();\n }\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] arg){\n\n Scanner in = new Scanner(System.in);\n\n String input = in.nextLine();\n\n while(!input.equals(\"-\")){\n String tmp = in.nextLine();\n int h_cnt = Integer.parseInt(tmp);\n StringBuffer sb = new StringBuffer(input);\n for(int i=0; i<h_cnt; i++){\n tmp = in.nextLine();\n int h_pos = Integer.parseInt(tmp);\n String del_str = sb.substring(0,h_pos);\n sb = sb.delete(0,h_pos);\n sb.append(del_str);\n }\n System.out.println(sb.toString());\n input = in.nextLine();\n }\n\n }\n}",
"Main",
"public static void main(String[] arg){\n\n Scanner in = new Scanner(System.in);\n\n String input = in.nextLine();\n\n while(!input.equals(\"-\")){\n String tmp = in.nextLine();\n int h_cnt = Integer.parseInt(tmp);\n StringBuffer sb = new StringBuffer(input);\n for(int i=0; i<h_cnt; i++){\n tmp = in.nextLine();\n int h_pos = Integer.parseInt(tmp);\n String del_str = sb.substring(0,h_pos);\n sb = sb.delete(0,h_pos);\n sb.append(del_str);\n }\n System.out.println(sb.toString());\n input = in.nextLine();\n }\n\n }",
"main",
"{\n\n Scanner in = new Scanner(System.in);\n\n String input = in.nextLine();\n\n while(!input.equals(\"-\")){\n String tmp = in.nextLine();\n int h_cnt = Integer.parseInt(tmp);\n StringBuffer sb = new StringBuffer(input);\n for(int i=0; i<h_cnt; i++){\n tmp = in.nextLine();\n int h_pos = Integer.parseInt(tmp);\n String del_str = sb.substring(0,h_pos);\n sb = sb.delete(0,h_pos);\n sb.append(del_str);\n }\n System.out.println(sb.toString());\n input = in.nextLine();\n }\n\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"String input = in.nextLine();",
"input",
"in.nextLine()",
"in.nextLine",
"in",
"while(!input.equals(\"-\")){\n String tmp = in.nextLine();\n int h_cnt = Integer.parseInt(tmp);\n StringBuffer sb = new StringBuffer(input);\n for(int i=0; i<h_cnt; i++){\n tmp = in.nextLine();\n int h_pos = Integer.parseInt(tmp);\n String del_str = sb.substring(0,h_pos);\n sb = sb.delete(0,h_pos);\n sb.append(del_str);\n }\n System.out.println(sb.toString());\n input = in.nextLine();\n }",
"!input.equals(\"-\")",
"input.equals(\"-\")",
"input.equals",
"input",
"\"-\"",
"{\n String tmp = in.nextLine();\n int h_cnt = Integer.parseInt(tmp);\n StringBuffer sb = new StringBuffer(input);\n for(int i=0; i<h_cnt; i++){\n tmp = in.nextLine();\n int h_pos = Integer.parseInt(tmp);\n String del_str = sb.substring(0,h_pos);\n sb = sb.delete(0,h_pos);\n sb.append(del_str);\n }\n System.out.println(sb.toString());\n input = in.nextLine();\n }",
"String tmp = in.nextLine();",
"tmp",
"in.nextLine()",
"in.nextLine",
"in",
"int h_cnt = Integer.parseInt(tmp);",
"h_cnt",
"Integer.parseInt(tmp)",
"Integer.parseInt",
"Integer",
"tmp",
"StringBuffer sb = new StringBuffer(input);",
"sb",
"new StringBuffer(input)",
"for(int i=0; i<h_cnt; i++){\n tmp = in.nextLine();\n int h_pos = Integer.parseInt(tmp);\n String del_str = sb.substring(0,h_pos);\n sb = sb.delete(0,h_pos);\n sb.append(del_str);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<h_cnt",
"i",
"h_cnt",
"i++",
"i++",
"i",
"{\n tmp = in.nextLine();\n int h_pos = Integer.parseInt(tmp);\n String del_str = sb.substring(0,h_pos);\n sb = sb.delete(0,h_pos);\n sb.append(del_str);\n }",
"{\n tmp = in.nextLine();\n int h_pos = Integer.parseInt(tmp);\n String del_str = sb.substring(0,h_pos);\n sb = sb.delete(0,h_pos);\n sb.append(del_str);\n }",
"tmp = in.nextLine()",
"tmp",
"in.nextLine()",
"in.nextLine",
"in",
"int h_pos = Integer.parseInt(tmp);",
"h_pos",
"Integer.parseInt(tmp)",
"Integer.parseInt",
"Integer",
"tmp",
"String del_str = sb.substring(0,h_pos);",
"del_str",
"sb.substring(0,h_pos)",
"sb.substring",
"sb",
"0",
"h_pos",
"sb = sb.delete(0,h_pos)",
"sb",
"sb.delete(0,h_pos)",
"sb.delete",
"sb",
"0",
"h_pos",
"sb.append(del_str)",
"sb.append",
"sb",
"del_str",
"System.out.println(sb.toString())",
"System.out.println",
"System.out",
"System",
"System.out",
"sb.toString()",
"sb.toString",
"sb",
"input = in.nextLine()",
"input",
"in.nextLine()",
"in.nextLine",
"in",
"String[] arg",
"arg"
]
| import java.util.Scanner;
class Main{
public static void main(String[] arg){
Scanner in = new Scanner(System.in);
String input = in.nextLine();
while(!input.equals("-")){
String tmp = in.nextLine();
int h_cnt = Integer.parseInt(tmp);
StringBuffer sb = new StringBuffer(input);
for(int i=0; i<h_cnt; i++){
tmp = in.nextLine();
int h_pos = Integer.parseInt(tmp);
String del_str = sb.substring(0,h_pos);
sb = sb.delete(0,h_pos);
sb.append(del_str);
}
System.out.println(sb.toString());
input = in.nextLine();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
11,
1,
30,
30,
41,
13,
4,
18,
13,
41,
13,
20,
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,
4,
18,
13,
17,
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
],
[
85,
5
],
[
85,
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
],
[
21,
23
],
[
15,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
24,
29
],
[
15,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
15,
35
],
[
35,
36
],
[
35,
37
],
[
15,
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
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
62,
66
],
[
66,
67
],
[
66,
68
],
[
51,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
69,
73
],
[
73,
74
],
[
73,
75
],
[
15,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
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\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tfor(;;){\n\n\t\t\tString str = scan.next();\n\t\t\tStringBuilder card = new StringBuilder(str);\n\n\t\t\tif(str.equals(\"-\"))\n\t\t\t\tbreak;\n\n\t\t\tint m = scan.nextInt();\n\t\t\tint[] shuffle = new int[m];\n\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tshuffle[i] = scan.nextInt();\n\t\t\t\tcard.append(card.substring(0,shuffle[i]));\n\t\t\t\tcard.delete(0, shuffle[i]);\n\t\t\t}\n\t\t\tSystem.out.println(card);\n\n\t\t}\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tfor(;;){\n\n\t\t\tString str = scan.next();\n\t\t\tStringBuilder card = new StringBuilder(str);\n\n\t\t\tif(str.equals(\"-\"))\n\t\t\t\tbreak;\n\n\t\t\tint m = scan.nextInt();\n\t\t\tint[] shuffle = new int[m];\n\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tshuffle[i] = scan.nextInt();\n\t\t\t\tcard.append(card.substring(0,shuffle[i]));\n\t\t\t\tcard.delete(0, shuffle[i]);\n\t\t\t}\n\t\t\tSystem.out.println(card);\n\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tfor(;;){\n\n\t\t\tString str = scan.next();\n\t\t\tStringBuilder card = new StringBuilder(str);\n\n\t\t\tif(str.equals(\"-\"))\n\t\t\t\tbreak;\n\n\t\t\tint m = scan.nextInt();\n\t\t\tint[] shuffle = new int[m];\n\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tshuffle[i] = scan.nextInt();\n\t\t\t\tcard.append(card.substring(0,shuffle[i]));\n\t\t\t\tcard.delete(0, shuffle[i]);\n\t\t\t}\n\t\t\tSystem.out.println(card);\n\n\t\t}\n\n\t}",
"main",
"{\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tfor(;;){\n\n\t\t\tString str = scan.next();\n\t\t\tStringBuilder card = new StringBuilder(str);\n\n\t\t\tif(str.equals(\"-\"))\n\t\t\t\tbreak;\n\n\t\t\tint m = scan.nextInt();\n\t\t\tint[] shuffle = new int[m];\n\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tshuffle[i] = scan.nextInt();\n\t\t\t\tcard.append(card.substring(0,shuffle[i]));\n\t\t\t\tcard.delete(0, shuffle[i]);\n\t\t\t}\n\t\t\tSystem.out.println(card);\n\n\t\t}\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"for(;;){\n\n\t\t\tString str = scan.next();\n\t\t\tStringBuilder card = new StringBuilder(str);\n\n\t\t\tif(str.equals(\"-\"))\n\t\t\t\tbreak;\n\n\t\t\tint m = scan.nextInt();\n\t\t\tint[] shuffle = new int[m];\n\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tshuffle[i] = scan.nextInt();\n\t\t\t\tcard.append(card.substring(0,shuffle[i]));\n\t\t\t\tcard.delete(0, shuffle[i]);\n\t\t\t}\n\t\t\tSystem.out.println(card);\n\n\t\t}",
";",
"{\n\n\t\t\tString str = scan.next();\n\t\t\tStringBuilder card = new StringBuilder(str);\n\n\t\t\tif(str.equals(\"-\"))\n\t\t\t\tbreak;\n\n\t\t\tint m = scan.nextInt();\n\t\t\tint[] shuffle = new int[m];\n\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tshuffle[i] = scan.nextInt();\n\t\t\t\tcard.append(card.substring(0,shuffle[i]));\n\t\t\t\tcard.delete(0, shuffle[i]);\n\t\t\t}\n\t\t\tSystem.out.println(card);\n\n\t\t}",
"{\n\n\t\t\tString str = scan.next();\n\t\t\tStringBuilder card = new StringBuilder(str);\n\n\t\t\tif(str.equals(\"-\"))\n\t\t\t\tbreak;\n\n\t\t\tint m = scan.nextInt();\n\t\t\tint[] shuffle = new int[m];\n\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tshuffle[i] = scan.nextInt();\n\t\t\t\tcard.append(card.substring(0,shuffle[i]));\n\t\t\t\tcard.delete(0, shuffle[i]);\n\t\t\t}\n\t\t\tSystem.out.println(card);\n\n\t\t}",
"String str = scan.next();",
"str",
"scan.next()",
"scan.next",
"scan",
"StringBuilder card = new StringBuilder(str);",
"card",
"new StringBuilder(str)",
"if(str.equals(\"-\"))\n\t\t\t\tbreak;",
"str.equals(\"-\")",
"str.equals",
"str",
"\"-\"",
"break;",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[] shuffle = new int[m];",
"shuffle",
"new int[m]",
"m",
"for(int i = 0; i < m; i++){\n\t\t\t\tshuffle[i] = scan.nextInt();\n\t\t\t\tcard.append(card.substring(0,shuffle[i]));\n\t\t\t\tcard.delete(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\tshuffle[i] = scan.nextInt();\n\t\t\t\tcard.append(card.substring(0,shuffle[i]));\n\t\t\t\tcard.delete(0, shuffle[i]);\n\t\t\t}",
"{\n\t\t\t\tshuffle[i] = scan.nextInt();\n\t\t\t\tcard.append(card.substring(0,shuffle[i]));\n\t\t\t\tcard.delete(0, shuffle[i]);\n\t\t\t}",
"shuffle[i] = scan.nextInt()",
"shuffle[i]",
"shuffle",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"card.append(card.substring(0,shuffle[i]))",
"card.append",
"card",
"card.substring(0,shuffle[i])",
"card.substring",
"card",
"0",
"shuffle[i]",
"shuffle",
"i",
"card.delete(0, shuffle[i])",
"card.delete",
"card",
"0",
"shuffle[i]",
"shuffle",
"i",
"System.out.println(card)",
"System.out.println",
"System.out",
"System",
"System.out",
"card",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tfor(;;){\n\n\t\t\tString str = scan.next();\n\t\t\tStringBuilder card = new StringBuilder(str);\n\n\t\t\tif(str.equals(\"-\"))\n\t\t\t\tbreak;\n\n\t\t\tint m = scan.nextInt();\n\t\t\tint[] shuffle = new int[m];\n\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tshuffle[i] = scan.nextInt();\n\t\t\t\tcard.append(card.substring(0,shuffle[i]));\n\t\t\t\tcard.delete(0, shuffle[i]);\n\t\t\t}\n\t\t\tSystem.out.println(card);\n\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tfor(;;){\n\n\t\t\tString str = scan.next();\n\t\t\tStringBuilder card = new StringBuilder(str);\n\n\t\t\tif(str.equals(\"-\"))\n\t\t\t\tbreak;\n\n\t\t\tint m = scan.nextInt();\n\t\t\tint[] shuffle = new int[m];\n\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tshuffle[i] = scan.nextInt();\n\t\t\t\tcard.append(card.substring(0,shuffle[i]));\n\t\t\t\tcard.delete(0, shuffle[i]);\n\t\t\t}\n\t\t\tSystem.out.println(card);\n\n\t\t}\n\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
for(;;){
String str = scan.next();
StringBuilder card = new StringBuilder(str);
if(str.equals("-"))
break;
int m = scan.nextInt();
int[] shuffle = new int[m];
for(int i = 0; i < m; i++){
shuffle[i] = scan.nextInt();
card.append(card.substring(0,shuffle[i]));
card.delete(0, shuffle[i]);
}
System.out.println(card);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
13,
42,
40,
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,
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
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
12,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
41,
42
],
[
34,
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
],
[
58,
61
],
[
61,
62
],
[
62,
63
],
[
55,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
66,
70
],
[
55,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
73,
77
],
[
77,
78
],
[
78,
79
],
[
55,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
34,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
34,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
6,
96
],
[
96,
97
]
]
| [
"// ITP1_9_B Shuffle\nimport java.io.*;\n\nclass Main {\n\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String cards = br.readLine();\n while (!(cards.equals(\"-\"))) {\n int m = Integer.parseInt(br.readLine());\n for (int i = 0; i < m; i++) {\n int h = Integer.parseInt(br.readLine());\n String left = cards.substring(0, h);\n String right = cards.substring(h,cards.length());\n cards = right + left;\n }\n System.out.println(cards);\n cards = br.readLine();\n }\n }\n\n catch (Exception e) {\n System.err.println(e);\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"class Main {\n\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String cards = br.readLine();\n while (!(cards.equals(\"-\"))) {\n int m = Integer.parseInt(br.readLine());\n for (int i = 0; i < m; i++) {\n int h = Integer.parseInt(br.readLine());\n String left = cards.substring(0, h);\n String right = cards.substring(h,cards.length());\n cards = right + left;\n }\n System.out.println(cards);\n cards = br.readLine();\n }\n }\n\n catch (Exception e) {\n System.err.println(e);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String cards = br.readLine();\n while (!(cards.equals(\"-\"))) {\n int m = Integer.parseInt(br.readLine());\n for (int i = 0; i < m; i++) {\n int h = Integer.parseInt(br.readLine());\n String left = cards.substring(0, h);\n String right = cards.substring(h,cards.length());\n cards = right + left;\n }\n System.out.println(cards);\n cards = br.readLine();\n }\n }\n\n catch (Exception e) {\n System.err.println(e);\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String cards = br.readLine();\n while (!(cards.equals(\"-\"))) {\n int m = Integer.parseInt(br.readLine());\n for (int i = 0; i < m; i++) {\n int h = Integer.parseInt(br.readLine());\n String left = cards.substring(0, h);\n String right = cards.substring(h,cards.length());\n cards = right + left;\n }\n System.out.println(cards);\n cards = br.readLine();\n }\n }\n\n catch (Exception e) {\n System.err.println(e);\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"try {\n String cards = br.readLine();\n while (!(cards.equals(\"-\"))) {\n int m = Integer.parseInt(br.readLine());\n for (int i = 0; i < m; i++) {\n int h = Integer.parseInt(br.readLine());\n String left = cards.substring(0, h);\n String right = cards.substring(h,cards.length());\n cards = right + left;\n }\n System.out.println(cards);\n cards = br.readLine();\n }\n }\n\n catch (Exception e) {\n System.err.println(e);\n }",
"catch (Exception e) {\n System.err.println(e);\n }",
"Exception e",
"{\n System.err.println(e);\n }",
"System.err.println(e)",
"System.err.println",
"System.err",
"System",
"System.err",
"e",
"{\n String cards = br.readLine();\n while (!(cards.equals(\"-\"))) {\n int m = Integer.parseInt(br.readLine());\n for (int i = 0; i < m; i++) {\n int h = Integer.parseInt(br.readLine());\n String left = cards.substring(0, h);\n String right = cards.substring(h,cards.length());\n cards = right + left;\n }\n System.out.println(cards);\n cards = br.readLine();\n }\n }",
"String cards = br.readLine();",
"cards",
"br.readLine()",
"br.readLine",
"br",
"while (!(cards.equals(\"-\"))) {\n int m = Integer.parseInt(br.readLine());\n for (int i = 0; i < m; i++) {\n int h = Integer.parseInt(br.readLine());\n String left = cards.substring(0, h);\n String right = cards.substring(h,cards.length());\n cards = right + left;\n }\n System.out.println(cards);\n cards = br.readLine();\n }",
"!(cards.equals(\"-\"))",
"(cards.equals(\"-\"))",
"cards.equals",
"cards",
"\"-\"",
"{\n int m = Integer.parseInt(br.readLine());\n for (int i = 0; i < m; i++) {\n int h = Integer.parseInt(br.readLine());\n String left = cards.substring(0, h);\n String right = cards.substring(h,cards.length());\n cards = right + left;\n }\n System.out.println(cards);\n cards = br.readLine();\n }",
"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 h = Integer.parseInt(br.readLine());\n String left = cards.substring(0, h);\n String right = cards.substring(h,cards.length());\n cards = right + left;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < m",
"i",
"m",
"i++",
"i++",
"i",
"{\n int h = Integer.parseInt(br.readLine());\n String left = cards.substring(0, h);\n String right = cards.substring(h,cards.length());\n cards = right + left;\n }",
"{\n int h = Integer.parseInt(br.readLine());\n String left = cards.substring(0, h);\n String right = cards.substring(h,cards.length());\n cards = right + left;\n }",
"int h = Integer.parseInt(br.readLine());",
"h",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String left = cards.substring(0, h);",
"left",
"cards.substring(0, h)",
"cards.substring",
"cards",
"0",
"h",
"String right = cards.substring(h,cards.length());",
"right",
"cards.substring(h,cards.length())",
"cards.substring",
"cards",
"h",
"cards.length()",
"cards.length",
"cards",
"cards = right + left",
"cards",
"right + left",
"right",
"left",
"System.out.println(cards)",
"System.out.println",
"System.out",
"System",
"System.out",
"cards",
"cards = br.readLine()",
"cards",
"br.readLine()",
"br.readLine",
"br",
"String[] args",
"args"
]
| // ITP1_9_B Shuffle
import java.io.*;
class Main {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
String cards = br.readLine();
while (!(cards.equals("-"))) {
int m = Integer.parseInt(br.readLine());
for (int i = 0; i < m; i++) {
int h = Integer.parseInt(br.readLine());
String left = cards.substring(0, h);
String right = cards.substring(h,cards.length());
cards = right + left;
}
System.out.println(cards);
cards = br.readLine();
}
}
catch (Exception e) {
System.err.println(e);
}
}
} |
[
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,
13,
41,
13,
4,
18,
13,
17,
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
],
[
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
],
[
43,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
57,
61
],
[
43,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
14,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
6,
73
],
[
73,
74
]
]
| [
"import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true) {\n String str = sc.next();\n if (str.equals(\"-\")) break;\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int s = sc.nextInt();\n String str1 = str.substring(s);\n String str2 = str.substring(0, s);\n str = str1 + str2; \n }\n System.out.println(str);\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 while(true) {\n String str = sc.next();\n if (str.equals(\"-\")) break;\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int s = sc.nextInt();\n String str1 = str.substring(s);\n String str2 = str.substring(0, s);\n str = str1 + str2; \n }\n System.out.println(str);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(true) {\n String str = sc.next();\n if (str.equals(\"-\")) break;\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int s = sc.nextInt();\n String str1 = str.substring(s);\n String str2 = str.substring(0, s);\n str = str1 + str2; \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(\"-\")) break;\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int s = sc.nextInt();\n String str1 = str.substring(s);\n String str2 = str.substring(0, s);\n str = str1 + str2; \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(\"-\")) break;\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int s = sc.nextInt();\n String str1 = str.substring(s);\n String str2 = str.substring(0, s);\n str = str1 + str2; \n }\n System.out.println(str);\n }",
"true",
"{\n String str = sc.next();\n if (str.equals(\"-\")) break;\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int s = sc.nextInt();\n String str1 = str.substring(s);\n String str2 = str.substring(0, s);\n str = str1 + str2; \n }\n System.out.println(str);\n }",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"if (str.equals(\"-\")) break;",
"str.equals(\"-\")",
"str.equals",
"str",
"\"-\"",
"break;",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < n; i++) {\n int s = sc.nextInt();\n String str1 = str.substring(s);\n String str2 = str.substring(0, s);\n str = str1 + str2; \n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int s = sc.nextInt();\n String str1 = str.substring(s);\n String str2 = str.substring(0, s);\n str = str1 + str2; \n }",
"{\n int s = sc.nextInt();\n String str1 = str.substring(s);\n String str2 = str.substring(0, s);\n str = str1 + str2; \n }",
"int s = sc.nextInt();",
"s",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String str1 = str.substring(s);",
"str1",
"str.substring(s)",
"str.substring",
"str",
"s",
"String str2 = str.substring(0, s);",
"str2",
"str.substring(0, s)",
"str.substring",
"str",
"0",
"s",
"str = str1 + str2",
"str",
"str1 + str2",
"str1",
"str2",
"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 sc = new Scanner(System.in);
while(true) {
String str = sc.next();
if (str.equals("-")) break;
int n = sc.nextInt();
for (int i = 0; i < n; i++) {
int s = sc.nextInt();
String str1 = str.substring(s);
String str2 = str.substring(0, s);
str = str1 + str2;
}
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,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
41,
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,
17,
13,
41,
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
],
[
90,
5
],
[
90,
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
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
15,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
15,
38
],
[
38,
39
],
[
38,
40
],
[
15,
41
],
[
41,
42
],
[
41,
43
],
[
15,
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
],
[
71,
75
],
[
56,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
15,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
6,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
]
| [
"import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tString input = scan.next();\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tint len = input.length();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tString output = input;\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString s1 = output.substring(0, h);\n\t\t\t\tString s2 = output.substring(h, len);\n\t\t\t\toutput = s2 + s1;\n\t\t\t}\n\t\t\tSystem.out.println(output);\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tString input = scan.next();\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tint len = input.length();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tString output = input;\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString s1 = output.substring(0, h);\n\t\t\t\tString s2 = output.substring(h, len);\n\t\t\t\toutput = s2 + s1;\n\t\t\t}\n\t\t\tSystem.out.println(output);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tString input = scan.next();\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tint len = input.length();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tString output = input;\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString s1 = output.substring(0, h);\n\t\t\t\tString s2 = output.substring(h, len);\n\t\t\t\toutput = s2 + s1;\n\t\t\t}\n\t\t\tSystem.out.println(output);\n\t\t}\n\t}",
"main",
"{\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tString input = scan.next();\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tint len = input.length();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tString output = input;\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString s1 = output.substring(0, h);\n\t\t\t\tString s2 = output.substring(h, len);\n\t\t\t\toutput = s2 + s1;\n\t\t\t}\n\t\t\tSystem.out.println(output);\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"for(;;){\n\t\t\tString input = scan.next();\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tint len = input.length();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tString output = input;\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString s1 = output.substring(0, h);\n\t\t\t\tString s2 = output.substring(h, len);\n\t\t\t\toutput = s2 + s1;\n\t\t\t}\n\t\t\tSystem.out.println(output);\n\t\t}",
";",
"{\n\t\t\tString input = scan.next();\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tint len = input.length();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tString output = input;\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString s1 = output.substring(0, h);\n\t\t\t\tString s2 = output.substring(h, len);\n\t\t\t\toutput = s2 + s1;\n\t\t\t}\n\t\t\tSystem.out.println(output);\n\t\t}",
"{\n\t\t\tString input = scan.next();\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tint len = input.length();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tString output = input;\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString s1 = output.substring(0, h);\n\t\t\t\tString s2 = output.substring(h, len);\n\t\t\t\toutput = s2 + s1;\n\t\t\t}\n\t\t\tSystem.out.println(output);\n\t\t}",
"String input = scan.next();",
"input",
"scan.next()",
"scan.next",
"scan",
"if(input.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}",
"input.equals(\"-\")",
"input.equals",
"input",
"\"-\"",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"int m = scan.nextInt();",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int len = input.length();",
"len",
"input.length()",
"input.length",
"input",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"String output = input;",
"output",
"input",
"for(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString s1 = output.substring(0, h);\n\t\t\t\tString s2 = output.substring(h, len);\n\t\t\t\toutput = s2 + s1;\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 s1 = output.substring(0, h);\n\t\t\t\tString s2 = output.substring(h, len);\n\t\t\t\toutput = s2 + s1;\n\t\t\t}",
"{\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString s1 = output.substring(0, h);\n\t\t\t\tString s2 = output.substring(h, len);\n\t\t\t\toutput = s2 + s1;\n\t\t\t}",
"int h = scan.nextInt();",
"h",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String s1 = output.substring(0, h);",
"s1",
"output.substring(0, h)",
"output.substring",
"output",
"0",
"h",
"String s2 = output.substring(h, len);",
"s2",
"output.substring(h, len)",
"output.substring",
"output",
"h",
"len",
"output = s2 + s1",
"output",
"s2 + s1",
"s2",
"s1",
"System.out.println(output)",
"System.out.println",
"System.out",
"System",
"System.out",
"output",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tString input = scan.next();\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tint len = input.length();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tString output = input;\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString s1 = output.substring(0, h);\n\t\t\t\tString s2 = output.substring(h, len);\n\t\t\t\toutput = s2 + s1;\n\t\t\t}\n\t\t\tSystem.out.println(output);\n\t\t}\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\tString input = scan.next();\n\t\t\tif(input.equals(\"-\")){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint m = scan.nextInt();\n\t\t\tint len = input.length();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tString output = input;\n\t\t\tfor(int i = 0; i < m; i++){\n\t\t\t\tint h = scan.nextInt();\n\t\t\t\tString s1 = output.substring(0, h);\n\t\t\t\tString s2 = output.substring(h, len);\n\t\t\t\toutput = s2 + s1;\n\t\t\t}\n\t\t\tSystem.out.println(output);\n\t\t}\n\t}\n}",
"Main"
]
| import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
for(;;){
String input = scan.next();
if(input.equals("-")){
break;
}
int m = scan.nextInt();
int len = input.length();
StringBuilder sb = new StringBuilder();
String output = input;
for(int i = 0; i < m; i++){
int h = scan.nextInt();
String s1 = output.substring(0, h);
String s2 = output.substring(h, len);
output = s2 + s1;
}
System.out.println(output);
}
}
} |
[
7,
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,
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,
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
],
[
88,
5
],
[
88,
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
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
17,
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
],
[
54,
57
],
[
54,
58
],
[
46,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
46,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
17,
70
],
[
70,
71
],
[
71,
72
],
[
17,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
76,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
6,
85
],
[
85,
86
],
[
0,
87
],
[
87,
88
],
[
87,
89
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile (true) {\n\t\t\tString cards = sc.nextLine();\n\t\t\tif ( cards.equals(\"-\") ) break;\n\t\t\tint m = sc.nextInt();\n\n\t\t\tfor ( int i=0; i < m; i++) {\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString car = cards.substring(0, h);\n\t\t\t\tString ds = cards.substring(h);\n\t\t\t\tcards = ds + car;\n\t\t\t}\n\t\t\tsc.nextLine(); // nextInt()??????????????£?????????\\n????¶????????????????\n\n\t\t\tsb.append(cards + \"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile (true) {\n\t\t\tString cards = sc.nextLine();\n\t\t\tif ( cards.equals(\"-\") ) break;\n\t\t\tint m = sc.nextInt();\n\n\t\t\tfor ( int i=0; i < m; i++) {\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString car = cards.substring(0, h);\n\t\t\t\tString ds = cards.substring(h);\n\t\t\t\tcards = ds + car;\n\t\t\t}\n\t\t\tsc.nextLine(); // nextInt()??????????????£?????????\\n????¶????????????????\n\n\t\t\tsb.append(cards + \"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile (true) {\n\t\t\tString cards = sc.nextLine();\n\t\t\tif ( cards.equals(\"-\") ) break;\n\t\t\tint m = sc.nextInt();\n\n\t\t\tfor ( int i=0; i < m; i++) {\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString car = cards.substring(0, h);\n\t\t\t\tString ds = cards.substring(h);\n\t\t\t\tcards = ds + car;\n\t\t\t}\n\t\t\tsc.nextLine(); // nextInt()??????????????£?????????\\n????¶????????????????\n\n\t\t\tsb.append(cards + \"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile (true) {\n\t\t\tString cards = sc.nextLine();\n\t\t\tif ( cards.equals(\"-\") ) break;\n\t\t\tint m = sc.nextInt();\n\n\t\t\tfor ( int i=0; i < m; i++) {\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString car = cards.substring(0, h);\n\t\t\t\tString ds = cards.substring(h);\n\t\t\t\tcards = ds + car;\n\t\t\t}\n\t\t\tsc.nextLine(); // nextInt()??????????????£?????????\\n????¶????????????????\n\n\t\t\tsb.append(cards + \"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"while (true) {\n\t\t\tString cards = sc.nextLine();\n\t\t\tif ( cards.equals(\"-\") ) break;\n\t\t\tint m = sc.nextInt();\n\n\t\t\tfor ( int i=0; i < m; i++) {\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString car = cards.substring(0, h);\n\t\t\t\tString ds = cards.substring(h);\n\t\t\t\tcards = ds + car;\n\t\t\t}\n\t\t\tsc.nextLine(); // nextInt()??????????????£?????????\\n????¶????????????????\n\n\t\t\tsb.append(cards + \"\\n\");\n\t\t}",
"true",
"{\n\t\t\tString cards = sc.nextLine();\n\t\t\tif ( cards.equals(\"-\") ) break;\n\t\t\tint m = sc.nextInt();\n\n\t\t\tfor ( int i=0; i < m; i++) {\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString car = cards.substring(0, h);\n\t\t\t\tString ds = cards.substring(h);\n\t\t\t\tcards = ds + car;\n\t\t\t}\n\t\t\tsc.nextLine(); // nextInt()??????????????£?????????\\n????¶????????????????\n\n\t\t\tsb.append(cards + \"\\n\");\n\t\t}",
"String cards = sc.nextLine();",
"cards",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if ( cards.equals(\"-\") ) break;",
"cards.equals(\"-\")",
"cards.equals",
"cards",
"\"-\"",
"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 car = cards.substring(0, h);\n\t\t\t\tString ds = cards.substring(h);\n\t\t\t\tcards = ds + car;\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 car = cards.substring(0, h);\n\t\t\t\tString ds = cards.substring(h);\n\t\t\t\tcards = ds + car;\n\t\t\t}",
"{\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString car = cards.substring(0, h);\n\t\t\t\tString ds = cards.substring(h);\n\t\t\t\tcards = ds + car;\n\t\t\t}",
"int h = sc.nextInt();",
"h",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String car = cards.substring(0, h);",
"car",
"cards.substring(0, h)",
"cards.substring",
"cards",
"0",
"h",
"String ds = cards.substring(h);",
"ds",
"cards.substring(h)",
"cards.substring",
"cards",
"h",
"cards = ds + car",
"cards",
"ds + car",
"ds",
"car",
"sc.nextLine()",
"sc.nextLine",
"sc",
"sb.append(cards + \"\\n\")",
"sb.append",
"sb",
"cards + \"\\n\"",
"cards",
"\"\\n\"",
"System.out.print(sb)",
"System.out.print",
"System.out",
"System",
"System.out",
"sb",
"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\tStringBuilder sb = new StringBuilder();\n\n\t\twhile (true) {\n\t\t\tString cards = sc.nextLine();\n\t\t\tif ( cards.equals(\"-\") ) break;\n\t\t\tint m = sc.nextInt();\n\n\t\t\tfor ( int i=0; i < m; i++) {\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString car = cards.substring(0, h);\n\t\t\t\tString ds = cards.substring(h);\n\t\t\t\tcards = ds + car;\n\t\t\t}\n\t\t\tsc.nextLine(); // nextInt()??????????????£?????????\\n????¶????????????????\n\n\t\t\tsb.append(cards + \"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile (true) {\n\t\t\tString cards = sc.nextLine();\n\t\t\tif ( cards.equals(\"-\") ) break;\n\t\t\tint m = sc.nextInt();\n\n\t\t\tfor ( int i=0; i < m; i++) {\n\t\t\t\tint h = sc.nextInt();\n\t\t\t\tString car = cards.substring(0, h);\n\t\t\t\tString ds = cards.substring(h);\n\t\t\t\tcards = ds + car;\n\t\t\t}\n\t\t\tsc.nextLine(); // nextInt()??????????????£?????????\\n????¶????????????????\n\n\t\t\tsb.append(cards + \"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
StringBuilder sb = new StringBuilder();
while (true) {
String cards = sc.nextLine();
if ( cards.equals("-") ) break;
int m = sc.nextInt();
for ( int i=0; i < m; i++) {
int h = sc.nextInt();
String car = cards.substring(0, h);
String ds = cards.substring(h);
cards = ds + car;
}
sc.nextLine(); // nextInt()??????????????£?????????\n????¶????????????????
sb.append(cards + "\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,
4,
18,
13,
14,
2,
18,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
18,
13,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
18,
13,
2,
13,
17,
0,
18,
13,
2,
18,
13,
13,
17,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
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
],
[
146,
5
],
[
146,
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
],
[
27,
28
],
[
28,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
30,
36
],
[
22,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
22,
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
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
72,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
78,
90
],
[
90,
91
],
[
91,
92
],
[
78,
93
],
[
94,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
101,
103
],
[
72,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
104,
112
],
[
22,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
120,
122
],
[
113,
123
],
[
123,
124
],
[
124,
125
],
[
113,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
22,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
8,
140
],
[
140,
141
],
[
141,
142
],
[
6,
143
],
[
143,
144
],
[
0,
145
],
[
145,
146
],
[
145,
147
]
]
| [
"import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan=new Scanner(System.in);\n\t\tchar[] s;\n\t\tchar tmp;\n\t\tint m,h;\n\t\twhile(true){\n\t\t\ts=scan.next().toCharArray();\n\t\t\tif(s[0]=='-') break;\n\t\t\tm=scan.nextInt();\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\th=scan.nextInt();\n\t\t\t\tfor(int j=0;j<h;j++){\n\t\t\t\t\ttmp=s[0];\n\t\t\t\t\tfor(int k=0;k<s.length-1;k++){\n\t\t\t\t\t\ts[k]=s[k+1];\n\t\t\t\t\t}\n\t\t\t\t\ts[s.length-1]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<s.length;i++) System.out.print(s[i]);\n\t\t\tSystem.out.println();\n\t\t}\n\t\tscan.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan=new Scanner(System.in);\n\t\tchar[] s;\n\t\tchar tmp;\n\t\tint m,h;\n\t\twhile(true){\n\t\t\ts=scan.next().toCharArray();\n\t\t\tif(s[0]=='-') break;\n\t\t\tm=scan.nextInt();\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\th=scan.nextInt();\n\t\t\t\tfor(int j=0;j<h;j++){\n\t\t\t\t\ttmp=s[0];\n\t\t\t\t\tfor(int k=0;k<s.length-1;k++){\n\t\t\t\t\t\ts[k]=s[k+1];\n\t\t\t\t\t}\n\t\t\t\t\ts[s.length-1]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<s.length;i++) System.out.print(s[i]);\n\t\t\tSystem.out.println();\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\tchar[] s;\n\t\tchar tmp;\n\t\tint m,h;\n\t\twhile(true){\n\t\t\ts=scan.next().toCharArray();\n\t\t\tif(s[0]=='-') break;\n\t\t\tm=scan.nextInt();\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\th=scan.nextInt();\n\t\t\t\tfor(int j=0;j<h;j++){\n\t\t\t\t\ttmp=s[0];\n\t\t\t\t\tfor(int k=0;k<s.length-1;k++){\n\t\t\t\t\t\ts[k]=s[k+1];\n\t\t\t\t\t}\n\t\t\t\t\ts[s.length-1]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<s.length;i++) System.out.print(s[i]);\n\t\t\tSystem.out.println();\n\t\t}\n\t\tscan.close();\n\t}",
"main",
"{\n\t\tScanner scan=new Scanner(System.in);\n\t\tchar[] s;\n\t\tchar tmp;\n\t\tint m,h;\n\t\twhile(true){\n\t\t\ts=scan.next().toCharArray();\n\t\t\tif(s[0]=='-') break;\n\t\t\tm=scan.nextInt();\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\th=scan.nextInt();\n\t\t\t\tfor(int j=0;j<h;j++){\n\t\t\t\t\ttmp=s[0];\n\t\t\t\t\tfor(int k=0;k<s.length-1;k++){\n\t\t\t\t\t\ts[k]=s[k+1];\n\t\t\t\t\t}\n\t\t\t\t\ts[s.length-1]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<s.length;i++) System.out.print(s[i]);\n\t\t\tSystem.out.println();\n\t\t}\n\t\tscan.close();\n\t}",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"char[] s;",
"s",
"char tmp;",
"tmp",
"int m",
"m",
"h;",
"h",
"while(true){\n\t\t\ts=scan.next().toCharArray();\n\t\t\tif(s[0]=='-') break;\n\t\t\tm=scan.nextInt();\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\th=scan.nextInt();\n\t\t\t\tfor(int j=0;j<h;j++){\n\t\t\t\t\ttmp=s[0];\n\t\t\t\t\tfor(int k=0;k<s.length-1;k++){\n\t\t\t\t\t\ts[k]=s[k+1];\n\t\t\t\t\t}\n\t\t\t\t\ts[s.length-1]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<s.length;i++) System.out.print(s[i]);\n\t\t\tSystem.out.println();\n\t\t}",
"true",
"{\n\t\t\ts=scan.next().toCharArray();\n\t\t\tif(s[0]=='-') break;\n\t\t\tm=scan.nextInt();\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\th=scan.nextInt();\n\t\t\t\tfor(int j=0;j<h;j++){\n\t\t\t\t\ttmp=s[0];\n\t\t\t\t\tfor(int k=0;k<s.length-1;k++){\n\t\t\t\t\t\ts[k]=s[k+1];\n\t\t\t\t\t}\n\t\t\t\t\ts[s.length-1]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<s.length;i++) System.out.print(s[i]);\n\t\t\tSystem.out.println();\n\t\t}",
"s=scan.next().toCharArray()",
"s",
"scan.next().toCharArray()",
"scan.next().toCharArray",
"scan.next()",
"scan.next",
"scan",
"if(s[0]=='-') break;",
"s[0]=='-'",
"s[0]",
"s",
"0",
"'-'",
"break;",
"m=scan.nextInt()",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i=0;i<m;i++){\n\t\t\t\th=scan.nextInt();\n\t\t\t\tfor(int j=0;j<h;j++){\n\t\t\t\t\ttmp=s[0];\n\t\t\t\t\tfor(int k=0;k<s.length-1;k++){\n\t\t\t\t\t\ts[k]=s[k+1];\n\t\t\t\t\t}\n\t\t\t\t\ts[s.length-1]=tmp;\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\th=scan.nextInt();\n\t\t\t\tfor(int j=0;j<h;j++){\n\t\t\t\t\ttmp=s[0];\n\t\t\t\t\tfor(int k=0;k<s.length-1;k++){\n\t\t\t\t\t\ts[k]=s[k+1];\n\t\t\t\t\t}\n\t\t\t\t\ts[s.length-1]=tmp;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\th=scan.nextInt();\n\t\t\t\tfor(int j=0;j<h;j++){\n\t\t\t\t\ttmp=s[0];\n\t\t\t\t\tfor(int k=0;k<s.length-1;k++){\n\t\t\t\t\t\ts[k]=s[k+1];\n\t\t\t\t\t}\n\t\t\t\t\ts[s.length-1]=tmp;\n\t\t\t\t}\n\t\t\t}",
"h=scan.nextInt()",
"h",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int j=0;j<h;j++){\n\t\t\t\t\ttmp=s[0];\n\t\t\t\t\tfor(int k=0;k<s.length-1;k++){\n\t\t\t\t\t\ts[k]=s[k+1];\n\t\t\t\t\t}\n\t\t\t\t\ts[s.length-1]=tmp;\n\t\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<h",
"j",
"h",
"j++",
"j++",
"j",
"{\n\t\t\t\t\ttmp=s[0];\n\t\t\t\t\tfor(int k=0;k<s.length-1;k++){\n\t\t\t\t\t\ts[k]=s[k+1];\n\t\t\t\t\t}\n\t\t\t\t\ts[s.length-1]=tmp;\n\t\t\t\t}",
"{\n\t\t\t\t\ttmp=s[0];\n\t\t\t\t\tfor(int k=0;k<s.length-1;k++){\n\t\t\t\t\t\ts[k]=s[k+1];\n\t\t\t\t\t}\n\t\t\t\t\ts[s.length-1]=tmp;\n\t\t\t\t}",
"tmp=s[0]",
"tmp",
"s[0]",
"s",
"0",
"for(int k=0;k<s.length-1;k++){\n\t\t\t\t\t\ts[k]=s[k+1];\n\t\t\t\t\t}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<s.length-1",
"k",
"s.length-1",
"s.length",
"s",
"s.length",
"1",
"k++",
"k++",
"k",
"{\n\t\t\t\t\t\ts[k]=s[k+1];\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\ts[k]=s[k+1];\n\t\t\t\t\t}",
"s[k]=s[k+1]",
"s[k]",
"s",
"k",
"s[k+1]",
"s",
"k+1",
"k",
"1",
"s[s.length-1]=tmp",
"s[s.length-1]",
"s",
"s.length-1",
"s.length",
"s",
"s.length",
"1",
"tmp",
"for(int i=0;i<s.length;i++) System.out.print(s[i]);",
"int i=0;",
"int i=0;",
"i",
"0",
"i<s.length",
"i",
"s.length",
"s",
"s.length",
"i++",
"i++",
"i",
"System.out.print(s[i]);",
"System.out.print(s[i])",
"System.out.print",
"System.out",
"System",
"System.out",
"s[i]",
"s",
"i",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"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\tchar[] s;\n\t\tchar tmp;\n\t\tint m,h;\n\t\twhile(true){\n\t\t\ts=scan.next().toCharArray();\n\t\t\tif(s[0]=='-') break;\n\t\t\tm=scan.nextInt();\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\th=scan.nextInt();\n\t\t\t\tfor(int j=0;j<h;j++){\n\t\t\t\t\ttmp=s[0];\n\t\t\t\t\tfor(int k=0;k<s.length-1;k++){\n\t\t\t\t\t\ts[k]=s[k+1];\n\t\t\t\t\t}\n\t\t\t\t\ts[s.length-1]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<s.length;i++) System.out.print(s[i]);\n\t\t\tSystem.out.println();\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\tchar[] s;\n\t\tchar tmp;\n\t\tint m,h;\n\t\twhile(true){\n\t\t\ts=scan.next().toCharArray();\n\t\t\tif(s[0]=='-') break;\n\t\t\tm=scan.nextInt();\n\t\t\tfor(int i=0;i<m;i++){\n\t\t\t\th=scan.nextInt();\n\t\t\t\tfor(int j=0;j<h;j++){\n\t\t\t\t\ttmp=s[0];\n\t\t\t\t\tfor(int k=0;k<s.length-1;k++){\n\t\t\t\t\t\ts[k]=s[k+1];\n\t\t\t\t\t}\n\t\t\t\t\ts[s.length-1]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<s.length;i++) System.out.print(s[i]);\n\t\t\tSystem.out.println();\n\t\t}\n\t\tscan.close();\n\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
char[] s;
char tmp;
int m,h;
while(true){
s=scan.next().toCharArray();
if(s[0]=='-') break;
m=scan.nextInt();
for(int i=0;i<m;i++){
h=scan.nextInt();
for(int j=0;j<h;j++){
tmp=s[0];
for(int k=0;k<s.length-1;k++){
s[k]=s[k+1];
}
s[s.length-1]=tmp;
}
}
for(int i=0;i<s.length;i++) System.out.print(s[i]);
System.out.println();
}
scan.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
17,
41,
13,
20,
17,
41,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
14,
4,
18,
13,
17,
30,
3,
0,
18,
13,
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,
4,
18,
18,
13,
13,
17,
13,
0,
18,
13,
13,
4,
18,
18,
13,
13,
13,
0,
18,
13,
13,
4,
18,
18,
13,
13,
13,
40,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
138,
5
],
[
138,
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
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
45,
50
],
[
50,
51
],
[
39,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
39,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
39,
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
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
82,
88
],
[
74,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
74,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
39,
109
],
[
109,
110
],
[
8,
111
],
[
111,
112
],
[
112,
113
],
[
8,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
119,
120
],
[
119,
121
],
[
114,
122
],
[
122,
123
],
[
123,
124
],
[
114,
125
],
[
126,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
6,
135
],
[
135,
136
],
[
0,
137
],
[
137,
138
],
[
137,
139
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\t\tpublic static void main(String args[]) {\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint h, m, cnt = 0;\n\t\t\tString array[] = new String[10];\n\t\t\tString temp;\n\t\t\tString str;\n\t\t\t\n\t\t\tfor(int i = 0; i < 10; i++) {\n\t\t\t\tstr = sc.next();\n\t\t\t\tif(str.equals(\"-\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tarray[i] = str;\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\t\th = sc.nextInt();\n\t\t\t\t\ttemp = array[i].substring(0, h);\n\t\t\t\t\tarray[i] = array[i].substring(h);\n\t\t\t\t\tarray[i] = array[i].concat(temp);\n\t\t\t\t}\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t\tsc.close();\n\t\t\t\n\t\t\tfor(int i = 0; i < cnt; i++) {\n\t\t\t\tSystem.out.println(array[i]);\n\t\t\t}\n\t\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\t\tpublic static void main(String args[]) {\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint h, m, cnt = 0;\n\t\t\tString array[] = new String[10];\n\t\t\tString temp;\n\t\t\tString str;\n\t\t\t\n\t\t\tfor(int i = 0; i < 10; i++) {\n\t\t\t\tstr = sc.next();\n\t\t\t\tif(str.equals(\"-\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tarray[i] = str;\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\t\th = sc.nextInt();\n\t\t\t\t\ttemp = array[i].substring(0, h);\n\t\t\t\t\tarray[i] = array[i].substring(h);\n\t\t\t\t\tarray[i] = array[i].concat(temp);\n\t\t\t\t}\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t\tsc.close();\n\t\t\t\n\t\t\tfor(int i = 0; i < cnt; i++) {\n\t\t\t\tSystem.out.println(array[i]);\n\t\t\t}\n\t\t}\n}",
"Main",
"public static void main(String args[]) {\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint h, m, cnt = 0;\n\t\t\tString array[] = new String[10];\n\t\t\tString temp;\n\t\t\tString str;\n\t\t\t\n\t\t\tfor(int i = 0; i < 10; i++) {\n\t\t\t\tstr = sc.next();\n\t\t\t\tif(str.equals(\"-\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tarray[i] = str;\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\t\th = sc.nextInt();\n\t\t\t\t\ttemp = array[i].substring(0, h);\n\t\t\t\t\tarray[i] = array[i].substring(h);\n\t\t\t\t\tarray[i] = array[i].concat(temp);\n\t\t\t\t}\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t\tsc.close();\n\t\t\t\n\t\t\tfor(int i = 0; i < cnt; i++) {\n\t\t\t\tSystem.out.println(array[i]);\n\t\t\t}\n\t\t}",
"main",
"{\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint h, m, cnt = 0;\n\t\t\tString array[] = new String[10];\n\t\t\tString temp;\n\t\t\tString str;\n\t\t\t\n\t\t\tfor(int i = 0; i < 10; i++) {\n\t\t\t\tstr = sc.next();\n\t\t\t\tif(str.equals(\"-\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tarray[i] = str;\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\t\th = sc.nextInt();\n\t\t\t\t\ttemp = array[i].substring(0, h);\n\t\t\t\t\tarray[i] = array[i].substring(h);\n\t\t\t\t\tarray[i] = array[i].concat(temp);\n\t\t\t\t}\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t\tsc.close();\n\t\t\t\n\t\t\tfor(int i = 0; i < cnt; i++) {\n\t\t\t\tSystem.out.println(array[i]);\n\t\t\t}\n\t\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int h",
"h",
"m",
"m",
"cnt = 0;",
"cnt",
"0",
"String array[] = new String[10];",
"array",
"new String[10]",
"10",
"String temp;",
"temp",
"String str;",
"str",
"for(int i = 0; i < 10; i++) {\n\t\t\t\tstr = sc.next();\n\t\t\t\tif(str.equals(\"-\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tarray[i] = str;\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\t\th = sc.nextInt();\n\t\t\t\t\ttemp = array[i].substring(0, h);\n\t\t\t\t\tarray[i] = array[i].substring(h);\n\t\t\t\t\tarray[i] = array[i].concat(temp);\n\t\t\t\t}\n\t\t\t\tcnt++;\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 10",
"i",
"10",
"i++",
"i++",
"i",
"{\n\t\t\t\tstr = sc.next();\n\t\t\t\tif(str.equals(\"-\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tarray[i] = str;\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\t\th = sc.nextInt();\n\t\t\t\t\ttemp = array[i].substring(0, h);\n\t\t\t\t\tarray[i] = array[i].substring(h);\n\t\t\t\t\tarray[i] = array[i].concat(temp);\n\t\t\t\t}\n\t\t\t\tcnt++;\n\t\t\t}",
"{\n\t\t\t\tstr = sc.next();\n\t\t\t\tif(str.equals(\"-\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tarray[i] = str;\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\t\th = sc.nextInt();\n\t\t\t\t\ttemp = array[i].substring(0, h);\n\t\t\t\t\tarray[i] = array[i].substring(h);\n\t\t\t\t\tarray[i] = array[i].concat(temp);\n\t\t\t\t}\n\t\t\t\tcnt++;\n\t\t\t}",
"str = sc.next()",
"str",
"sc.next()",
"sc.next",
"sc",
"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;",
"array[i] = str",
"array[i]",
"array",
"i",
"str",
"m = sc.nextInt()",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j = 0; j < m; j++) {\n\t\t\t\t\th = sc.nextInt();\n\t\t\t\t\ttemp = array[i].substring(0, h);\n\t\t\t\t\tarray[i] = array[i].substring(h);\n\t\t\t\t\tarray[i] = array[i].concat(temp);\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\t\t\th = sc.nextInt();\n\t\t\t\t\ttemp = array[i].substring(0, h);\n\t\t\t\t\tarray[i] = array[i].substring(h);\n\t\t\t\t\tarray[i] = array[i].concat(temp);\n\t\t\t\t}",
"{\n\t\t\t\t\th = sc.nextInt();\n\t\t\t\t\ttemp = array[i].substring(0, h);\n\t\t\t\t\tarray[i] = array[i].substring(h);\n\t\t\t\t\tarray[i] = array[i].concat(temp);\n\t\t\t\t}",
"h = sc.nextInt()",
"h",
"sc.nextInt()",
"sc.nextInt",
"sc",
"temp = array[i].substring(0, h)",
"temp",
"array[i].substring(0, h)",
"array[i].substring",
"array[i]",
"array",
"i",
"0",
"h",
"array[i] = array[i].substring(h)",
"array[i]",
"array",
"i",
"array[i].substring(h)",
"array[i].substring",
"array[i]",
"array",
"i",
"h",
"array[i] = array[i].concat(temp)",
"array[i]",
"array",
"i",
"array[i].concat(temp)",
"array[i].concat",
"array[i]",
"array",
"i",
"temp",
"cnt++",
"cnt",
"sc.close()",
"sc.close",
"sc",
"for(int i = 0; i < cnt; i++) {\n\t\t\t\tSystem.out.println(array[i]);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < cnt",
"i",
"cnt",
"i++",
"i++",
"i",
"{\n\t\t\t\tSystem.out.println(array[i]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.println(array[i]);\n\t\t\t}",
"System.out.println(array[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"array[i]",
"array",
"i",
"String args[]",
"args",
"public class Main {\n\t\tpublic static void main(String args[]) {\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint h, m, cnt = 0;\n\t\t\tString array[] = new String[10];\n\t\t\tString temp;\n\t\t\tString str;\n\t\t\t\n\t\t\tfor(int i = 0; i < 10; i++) {\n\t\t\t\tstr = sc.next();\n\t\t\t\tif(str.equals(\"-\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tarray[i] = str;\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\t\th = sc.nextInt();\n\t\t\t\t\ttemp = array[i].substring(0, h);\n\t\t\t\t\tarray[i] = array[i].substring(h);\n\t\t\t\t\tarray[i] = array[i].concat(temp);\n\t\t\t\t}\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t\tsc.close();\n\t\t\t\n\t\t\tfor(int i = 0; i < cnt; i++) {\n\t\t\t\tSystem.out.println(array[i]);\n\t\t\t}\n\t\t}\n}",
"public class Main {\n\t\tpublic static void main(String args[]) {\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint h, m, cnt = 0;\n\t\t\tString array[] = new String[10];\n\t\t\tString temp;\n\t\t\tString str;\n\t\t\t\n\t\t\tfor(int i = 0; i < 10; i++) {\n\t\t\t\tstr = sc.next();\n\t\t\t\tif(str.equals(\"-\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tarray[i] = str;\n\t\t\t\tm = sc.nextInt();\n\t\t\t\tfor(int j = 0; j < m; j++) {\n\t\t\t\t\th = sc.nextInt();\n\t\t\t\t\ttemp = array[i].substring(0, h);\n\t\t\t\t\tarray[i] = array[i].substring(h);\n\t\t\t\t\tarray[i] = array[i].concat(temp);\n\t\t\t\t}\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t\tsc.close();\n\t\t\t\n\t\t\tfor(int i = 0; i < cnt; i++) {\n\t\t\t\tSystem.out.println(array[i]);\n\t\t\t}\n\t\t}\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int h, m, cnt = 0;
String array[] = new String[10];
String temp;
String str;
for(int i = 0; i < 10; i++) {
str = sc.next();
if(str.equals("-")) {
break;
}
array[i] = str;
m = sc.nextInt();
for(int j = 0; j < m; j++) {
h = sc.nextInt();
temp = array[i].substring(0, h);
array[i] = array[i].substring(h);
array[i] = array[i].concat(temp);
}
cnt++;
}
sc.close();
for(int i = 0; i < cnt; i++) {
System.out.println(array[i]);
}
}
}
|
[
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,
3,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
4,
18,
13,
4,
18,
13,
13,
4,
18,
13,
4,
18,
13,
17,
13,
0,
13,
4,
18,
13,
4,
18,
13,
17,
4,
18,
4,
18,
13,
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
],
[
112,
11
],
[
112,
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
],
[
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
],
[
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
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
75,
79
],
[
79,
80
],
[
80,
81
],
[
70,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
82,
86
],
[
61,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
61,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
26,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
96,
102
],
[
14,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
12,
109
],
[
109,
110
],
[
0,
111
],
[
111,
112
],
[
111,
113
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\t\tStringBuffer sb2 = new StringBuffer();\n\n\t\twhile(true){\n\t\t\tString mountain = br.readLine();\n\n\t\t\tif( mountain.equals(\"-\")) break;\n\n\t\t\tint m = Integer.parseInt(br.readLine());\n\t\t\tint i = 0;\n\n\t\t\tfor( i=0 ; i<m ; i++ ){\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\tsb2.append(mountain.substring(h, mountain.length())).append(mountain.substring(0, h));\n\t\t\t\tmountain = sb2.toString();\n\t\t\t\tsb2.setLength(0);\n\t\t\t}\n\n\t\t\tsb.append(mountain).append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\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[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\t\tStringBuffer sb2 = new StringBuffer();\n\n\t\twhile(true){\n\t\t\tString mountain = br.readLine();\n\n\t\t\tif( mountain.equals(\"-\")) break;\n\n\t\t\tint m = Integer.parseInt(br.readLine());\n\t\t\tint i = 0;\n\n\t\t\tfor( i=0 ; i<m ; i++ ){\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\tsb2.append(mountain.substring(h, mountain.length())).append(mountain.substring(0, h));\n\t\t\t\tmountain = sb2.toString();\n\t\t\t\tsb2.setLength(0);\n\t\t\t}\n\n\t\t\tsb.append(mountain).append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n}",
"Main",
"public static void main(String[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\t\tStringBuffer sb2 = new StringBuffer();\n\n\t\twhile(true){\n\t\t\tString mountain = br.readLine();\n\n\t\t\tif( mountain.equals(\"-\")) break;\n\n\t\t\tint m = Integer.parseInt(br.readLine());\n\t\t\tint i = 0;\n\n\t\t\tfor( i=0 ; i<m ; i++ ){\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\tsb2.append(mountain.substring(h, mountain.length())).append(mountain.substring(0, h));\n\t\t\t\tmountain = sb2.toString();\n\t\t\t\tsb2.setLength(0);\n\t\t\t}\n\n\t\t\tsb.append(mountain).append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\t\tStringBuffer sb2 = new StringBuffer();\n\n\t\twhile(true){\n\t\t\tString mountain = br.readLine();\n\n\t\t\tif( mountain.equals(\"-\")) break;\n\n\t\t\tint m = Integer.parseInt(br.readLine());\n\t\t\tint i = 0;\n\n\t\t\tfor( i=0 ; i<m ; i++ ){\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\tsb2.append(mountain.substring(h, mountain.length())).append(mountain.substring(0, h));\n\t\t\t\tmountain = sb2.toString();\n\t\t\t\tsb2.setLength(0);\n\t\t\t}\n\n\t\t\tsb.append(mountain).append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuffer sb = new StringBuffer();",
"sb",
"new StringBuffer()",
"StringBuffer sb2 = new StringBuffer();",
"sb2",
"new StringBuffer()",
"while(true){\n\t\t\tString mountain = br.readLine();\n\n\t\t\tif( mountain.equals(\"-\")) break;\n\n\t\t\tint m = Integer.parseInt(br.readLine());\n\t\t\tint i = 0;\n\n\t\t\tfor( i=0 ; i<m ; i++ ){\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\tsb2.append(mountain.substring(h, mountain.length())).append(mountain.substring(0, h));\n\t\t\t\tmountain = sb2.toString();\n\t\t\t\tsb2.setLength(0);\n\t\t\t}\n\n\t\t\tsb.append(mountain).append(\"\\n\");\n\t\t}",
"true",
"{\n\t\t\tString mountain = br.readLine();\n\n\t\t\tif( mountain.equals(\"-\")) break;\n\n\t\t\tint m = Integer.parseInt(br.readLine());\n\t\t\tint i = 0;\n\n\t\t\tfor( i=0 ; i<m ; i++ ){\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\tsb2.append(mountain.substring(h, mountain.length())).append(mountain.substring(0, h));\n\t\t\t\tmountain = sb2.toString();\n\t\t\t\tsb2.setLength(0);\n\t\t\t}\n\n\t\t\tsb.append(mountain).append(\"\\n\");\n\t\t}",
"String mountain = br.readLine();",
"mountain",
"br.readLine()",
"br.readLine",
"br",
"if( mountain.equals(\"-\")) break;",
"mountain.equals(\"-\")",
"mountain.equals",
"mountain",
"\"-\"",
"break;",
"int m = Integer.parseInt(br.readLine());",
"m",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int i = 0;",
"i",
"0",
"for( i=0 ; i<m ; i++ ){\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\tsb2.append(mountain.substring(h, mountain.length())).append(mountain.substring(0, h));\n\t\t\t\tmountain = sb2.toString();\n\t\t\t\tsb2.setLength(0);\n\t\t\t}",
"i=0 ;",
"i=0",
"i",
"0",
"i<m",
"i",
"m",
"i++",
"i++",
"i",
"{\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\tsb2.append(mountain.substring(h, mountain.length())).append(mountain.substring(0, h));\n\t\t\t\tmountain = sb2.toString();\n\t\t\t\tsb2.setLength(0);\n\t\t\t}",
"{\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\tsb2.append(mountain.substring(h, mountain.length())).append(mountain.substring(0, h));\n\t\t\t\tmountain = sb2.toString();\n\t\t\t\tsb2.setLength(0);\n\t\t\t}",
"int h = Integer.parseInt(br.readLine());",
"h",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"sb2.append(mountain.substring(h, mountain.length())).append(mountain.substring(0, h))",
"sb2.append(mountain.substring(h, mountain.length())).append",
"sb2.append(mountain.substring(h, mountain.length()))",
"sb2.append",
"sb2",
"mountain.substring(h, mountain.length())",
"mountain.substring",
"mountain",
"h",
"mountain.length()",
"mountain.length",
"mountain",
"mountain.substring(0, h)",
"mountain.substring",
"mountain",
"0",
"h",
"mountain = sb2.toString()",
"mountain",
"sb2.toString()",
"sb2.toString",
"sb2",
"sb2.setLength(0)",
"sb2.setLength",
"sb2",
"0",
"sb.append(mountain).append(\"\\n\")",
"sb.append(mountain).append",
"sb.append(mountain)",
"sb.append",
"sb",
"mountain",
"\"\\n\"",
"System.out.print(sb)",
"System.out.print",
"System.out",
"System",
"System.out",
"sb",
"String[] age",
"age",
"public class Main {\n\tpublic static void main(String[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\t\tStringBuffer sb2 = new StringBuffer();\n\n\t\twhile(true){\n\t\t\tString mountain = br.readLine();\n\n\t\t\tif( mountain.equals(\"-\")) break;\n\n\t\t\tint m = Integer.parseInt(br.readLine());\n\t\t\tint i = 0;\n\n\t\t\tfor( i=0 ; i<m ; i++ ){\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\tsb2.append(mountain.substring(h, mountain.length())).append(mountain.substring(0, h));\n\t\t\t\tmountain = sb2.toString();\n\t\t\t\tsb2.setLength(0);\n\t\t\t}\n\n\t\t\tsb.append(mountain).append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] age)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuffer sb = new StringBuffer();\n\t\tStringBuffer sb2 = new StringBuffer();\n\n\t\twhile(true){\n\t\t\tString mountain = br.readLine();\n\n\t\t\tif( mountain.equals(\"-\")) break;\n\n\t\t\tint m = Integer.parseInt(br.readLine());\n\t\t\tint i = 0;\n\n\t\t\tfor( i=0 ; i<m ; i++ ){\n\t\t\t\tint h = Integer.parseInt(br.readLine());\n\t\t\t\tsb2.append(mountain.substring(h, mountain.length())).append(mountain.substring(0, h));\n\t\t\t\tmountain = sb2.toString();\n\t\t\t\tsb2.setLength(0);\n\t\t\t}\n\n\t\t\tsb.append(mountain).append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n}",
"Main"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] age)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuffer sb = new StringBuffer();
StringBuffer sb2 = new StringBuffer();
while(true){
String mountain = br.readLine();
if( mountain.equals("-")) break;
int m = Integer.parseInt(br.readLine());
int i = 0;
for( i=0 ; i<m ; i++ ){
int h = Integer.parseInt(br.readLine());
sb2.append(mountain.substring(h, mountain.length())).append(mountain.substring(0, h));
mountain = sb2.toString();
sb2.setLength(0);
}
sb.append(mountain).append("\n");
}
System.out.print(sb);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
17,
17,
30,
4,
18,
13,
17,
14,
2,
4,
18,
13,
17,
30,
4,
18,
13,
17,
41,
13,
4,
18,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
14,
2,
2,
13,
4,
18,
13,
2,
13,
17,
30,
4,
18,
13,
17,
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
],
[
131,
5
],
[
131,
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
],
[
17,
19
],
[
12,
20
],
[
20,
21
],
[
21,
22
],
[
12,
23
],
[
24,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
31,
36
],
[
30,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
30,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
43,
47
],
[
42,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
24,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
24,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
24,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
71,
82
],
[
83,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
83,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
90,
96
],
[
96,
97
],
[
96,
98
],
[
89,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
83,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
106,
110
],
[
83,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
83,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
119,
121
],
[
24,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
6,
128
],
[
128,
129
],
[
0,
130
],
[
130,
131
],
[
130,
132
]
]
| [
"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\tfor (int j = 0; j < 10; j++) {\n\t\t\tString line = sc.next();\n\t\t\tif (line.charAt(0) == '-') {\n\t\t\t\tSystem.exit(0);\n\t\t\t} else if (line.length() > 200) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t\tint m = sc.nextInt();\n\t\t\tif (m > 100 || m < 1) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tint hi = sc.nextInt();\n\t\t\t\tif (hi > line.length() || hi < 1) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t\tString line1 = line.substring(0, hi);\n\t\t\t\tString line2 = line.substring(hi);\n\n\t\t\t\tline = line2 + line1;\n\n\t\t\t}\n\n\t\t\tSystem.out.println(line);\n\n\t\t}\n\t}\n\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfor (int j = 0; j < 10; j++) {\n\t\t\tString line = sc.next();\n\t\t\tif (line.charAt(0) == '-') {\n\t\t\t\tSystem.exit(0);\n\t\t\t} else if (line.length() > 200) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t\tint m = sc.nextInt();\n\t\t\tif (m > 100 || m < 1) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tint hi = sc.nextInt();\n\t\t\t\tif (hi > line.length() || hi < 1) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t\tString line1 = line.substring(0, hi);\n\t\t\t\tString line2 = line.substring(hi);\n\n\t\t\t\tline = line2 + line1;\n\n\t\t\t}\n\n\t\t\tSystem.out.println(line);\n\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfor (int j = 0; j < 10; j++) {\n\t\t\tString line = sc.next();\n\t\t\tif (line.charAt(0) == '-') {\n\t\t\t\tSystem.exit(0);\n\t\t\t} else if (line.length() > 200) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t\tint m = sc.nextInt();\n\t\t\tif (m > 100 || m < 1) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tint hi = sc.nextInt();\n\t\t\t\tif (hi > line.length() || hi < 1) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t\tString line1 = line.substring(0, hi);\n\t\t\t\tString line2 = line.substring(hi);\n\n\t\t\t\tline = line2 + line1;\n\n\t\t\t}\n\n\t\t\tSystem.out.println(line);\n\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfor (int j = 0; j < 10; j++) {\n\t\t\tString line = sc.next();\n\t\t\tif (line.charAt(0) == '-') {\n\t\t\t\tSystem.exit(0);\n\t\t\t} else if (line.length() > 200) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t\tint m = sc.nextInt();\n\t\t\tif (m > 100 || m < 1) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tint hi = sc.nextInt();\n\t\t\t\tif (hi > line.length() || hi < 1) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t\tString line1 = line.substring(0, hi);\n\t\t\t\tString line2 = line.substring(hi);\n\n\t\t\t\tline = line2 + line1;\n\n\t\t\t}\n\n\t\t\tSystem.out.println(line);\n\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"for (int j = 0; j < 10; j++) {\n\t\t\tString line = sc.next();\n\t\t\tif (line.charAt(0) == '-') {\n\t\t\t\tSystem.exit(0);\n\t\t\t} else if (line.length() > 200) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t\tint m = sc.nextInt();\n\t\t\tif (m > 100 || m < 1) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tint hi = sc.nextInt();\n\t\t\t\tif (hi > line.length() || hi < 1) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t\tString line1 = line.substring(0, hi);\n\t\t\t\tString line2 = line.substring(hi);\n\n\t\t\t\tline = line2 + line1;\n\n\t\t\t}\n\n\t\t\tSystem.out.println(line);\n\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 10",
"j",
"10",
"j++",
"j++",
"j",
"{\n\t\t\tString line = sc.next();\n\t\t\tif (line.charAt(0) == '-') {\n\t\t\t\tSystem.exit(0);\n\t\t\t} else if (line.length() > 200) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t\tint m = sc.nextInt();\n\t\t\tif (m > 100 || m < 1) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tint hi = sc.nextInt();\n\t\t\t\tif (hi > line.length() || hi < 1) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t\tString line1 = line.substring(0, hi);\n\t\t\t\tString line2 = line.substring(hi);\n\n\t\t\t\tline = line2 + line1;\n\n\t\t\t}\n\n\t\t\tSystem.out.println(line);\n\n\t\t}",
"{\n\t\t\tString line = sc.next();\n\t\t\tif (line.charAt(0) == '-') {\n\t\t\t\tSystem.exit(0);\n\t\t\t} else if (line.length() > 200) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t\tint m = sc.nextInt();\n\t\t\tif (m > 100 || m < 1) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tint hi = sc.nextInt();\n\t\t\t\tif (hi > line.length() || hi < 1) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t\tString line1 = line.substring(0, hi);\n\t\t\t\tString line2 = line.substring(hi);\n\n\t\t\t\tline = line2 + line1;\n\n\t\t\t}\n\n\t\t\tSystem.out.println(line);\n\n\t\t}",
"String line = sc.next();",
"line",
"sc.next()",
"sc.next",
"sc",
"if (line.charAt(0) == '-') {\n\t\t\t\tSystem.exit(0);\n\t\t\t} else if (line.length() > 200) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"line.charAt(0) == '-'",
"line.charAt(0)",
"line.charAt",
"line",
"0",
"'-'",
"{\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"System.exit(0)",
"System.exit",
"System",
"0",
"if (line.length() > 200) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"line.length() > 200",
"line.length()",
"line.length",
"line",
"200",
"{\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"System.exit(0)",
"System.exit",
"System",
"0",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (m > 100 || m < 1) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"m > 100 || m < 1",
"m > 100",
"m",
"100",
"m < 1",
"m",
"1",
"{\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"System.exit(0)",
"System.exit",
"System",
"0",
"for (int i = 0; i < m; i++) {\n\t\t\t\tint hi = sc.nextInt();\n\t\t\t\tif (hi > line.length() || hi < 1) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t\tString line1 = line.substring(0, hi);\n\t\t\t\tString line2 = line.substring(hi);\n\n\t\t\t\tline = line2 + line1;\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 hi = sc.nextInt();\n\t\t\t\tif (hi > line.length() || hi < 1) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t\tString line1 = line.substring(0, hi);\n\t\t\t\tString line2 = line.substring(hi);\n\n\t\t\t\tline = line2 + line1;\n\n\t\t\t}",
"{\n\t\t\t\tint hi = sc.nextInt();\n\t\t\t\tif (hi > line.length() || hi < 1) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t\tString line1 = line.substring(0, hi);\n\t\t\t\tString line2 = line.substring(hi);\n\n\t\t\t\tline = line2 + line1;\n\n\t\t\t}",
"int hi = sc.nextInt();",
"hi",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (hi > line.length() || hi < 1) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}",
"hi > line.length() || hi < 1",
"hi > line.length()",
"hi",
"line.length()",
"line.length",
"line",
"hi < 1",
"hi",
"1",
"{\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}",
"System.exit(0)",
"System.exit",
"System",
"0",
"String line1 = line.substring(0, hi);",
"line1",
"line.substring(0, hi)",
"line.substring",
"line",
"0",
"hi",
"String line2 = line.substring(hi);",
"line2",
"line.substring(hi)",
"line.substring",
"line",
"hi",
"line = line2 + line1",
"line",
"line2 + line1",
"line2",
"line1",
"System.out.println(line)",
"System.out.println",
"System.out",
"System",
"System.out",
"line",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfor (int j = 0; j < 10; j++) {\n\t\t\tString line = sc.next();\n\t\t\tif (line.charAt(0) == '-') {\n\t\t\t\tSystem.exit(0);\n\t\t\t} else if (line.length() > 200) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t\tint m = sc.nextInt();\n\t\t\tif (m > 100 || m < 1) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tint hi = sc.nextInt();\n\t\t\t\tif (hi > line.length() || hi < 1) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t\tString line1 = line.substring(0, hi);\n\t\t\t\tString line2 = line.substring(hi);\n\n\t\t\t\tline = line2 + line1;\n\n\t\t\t}\n\n\t\t\tSystem.out.println(line);\n\n\t\t}\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfor (int j = 0; j < 10; j++) {\n\t\t\tString line = sc.next();\n\t\t\tif (line.charAt(0) == '-') {\n\t\t\t\tSystem.exit(0);\n\t\t\t} else if (line.length() > 200) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t\tint m = sc.nextInt();\n\t\t\tif (m > 100 || m < 1) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tint hi = sc.nextInt();\n\t\t\t\tif (hi > line.length() || hi < 1) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t\tString line1 = line.substring(0, hi);\n\t\t\t\tString line2 = line.substring(hi);\n\n\t\t\t\tline = line2 + line1;\n\n\t\t\t}\n\n\t\t\tSystem.out.println(line);\n\n\t\t}\n\t}\n\n}",
"Main"
]
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
for (int j = 0; j < 10; j++) {
String line = sc.next();
if (line.charAt(0) == '-') {
System.exit(0);
} else if (line.length() > 200) {
System.exit(0);
}
int m = sc.nextInt();
if (m > 100 || m < 1) {
System.exit(0);
}
for (int i = 0; i < m; i++) {
int hi = sc.nextInt();
if (hi > line.length() || hi < 1) {
System.exit(0);
}
String line1 = line.substring(0, hi);
String line2 = line.substring(hi);
line = line2 + line1;
}
System.out.println(line);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
0,
13,
17,
0,
13,
17,
0,
13,
4,
18,
13,
41,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
30,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
17,
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
],
[
11,
19
],
[
19,
20
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
11,
32
],
[
32,
33
],
[
11,
34
],
[
34,
35
],
[
11,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
48,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
48,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
85,
87
],
[
11,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
88,
94
],
[
88,
95
],
[
9,
96
],
[
96,
97
]
]
| [
"import java.util.*;\nimport java.util.stream.*;\nclass Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int n,taro,hanako;\n taro = 0;\n hanako = 0;\n n = input.nextInt();\n String a,b;\n for (int i = 0; i < n; i++){\n a = input.next();\n b = input.next();\n int key = a.compareTo(b);\n if (key > 0){\n taro += 3;\n } else if (key < 0){\n hanako += 3;\n } else {\n taro += 1;\n hanako += 1;\n }\n }\n System.out.printf(\"%d %d\\n\",taro,hanako);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.util.stream.*;",
"stream.*",
"java.util",
"class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int n,taro,hanako;\n taro = 0;\n hanako = 0;\n n = input.nextInt();\n String a,b;\n for (int i = 0; i < n; i++){\n a = input.next();\n b = input.next();\n int key = a.compareTo(b);\n if (key > 0){\n taro += 3;\n } else if (key < 0){\n hanako += 3;\n } else {\n taro += 1;\n hanako += 1;\n }\n }\n System.out.printf(\"%d %d\\n\",taro,hanako);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int n,taro,hanako;\n taro = 0;\n hanako = 0;\n n = input.nextInt();\n String a,b;\n for (int i = 0; i < n; i++){\n a = input.next();\n b = input.next();\n int key = a.compareTo(b);\n if (key > 0){\n taro += 3;\n } else if (key < 0){\n hanako += 3;\n } else {\n taro += 1;\n hanako += 1;\n }\n }\n System.out.printf(\"%d %d\\n\",taro,hanako);\n }",
"main",
"{\n Scanner input = new Scanner(System.in);\n int n,taro,hanako;\n taro = 0;\n hanako = 0;\n n = input.nextInt();\n String a,b;\n for (int i = 0; i < n; i++){\n a = input.next();\n b = input.next();\n int key = a.compareTo(b);\n if (key > 0){\n taro += 3;\n } else if (key < 0){\n hanako += 3;\n } else {\n taro += 1;\n hanako += 1;\n }\n }\n System.out.printf(\"%d %d\\n\",taro,hanako);\n }",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"int n",
"n",
"taro",
"taro",
"hanako;",
"hanako",
"taro = 0",
"taro",
"0",
"hanako = 0",
"hanako",
"0",
"n = input.nextInt()",
"n",
"input.nextInt()",
"input.nextInt",
"input",
"String a",
"a",
"b;",
"b",
"for (int i = 0; i < n; i++){\n a = input.next();\n b = input.next();\n int key = a.compareTo(b);\n if (key > 0){\n taro += 3;\n } else if (key < 0){\n hanako += 3;\n } else {\n taro += 1;\n hanako += 1;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a = input.next();\n b = input.next();\n int key = a.compareTo(b);\n if (key > 0){\n taro += 3;\n } else if (key < 0){\n hanako += 3;\n } else {\n taro += 1;\n hanako += 1;\n }\n }",
"{\n a = input.next();\n b = input.next();\n int key = a.compareTo(b);\n if (key > 0){\n taro += 3;\n } else if (key < 0){\n hanako += 3;\n } else {\n taro += 1;\n hanako += 1;\n }\n }",
"a = input.next()",
"a",
"input.next()",
"input.next",
"input",
"b = input.next()",
"b",
"input.next()",
"input.next",
"input",
"int key = a.compareTo(b);",
"key",
"a.compareTo(b)",
"a.compareTo",
"a",
"b",
"if (key > 0){\n taro += 3;\n } else if (key < 0){\n hanako += 3;\n } else {\n taro += 1;\n hanako += 1;\n }",
"key > 0",
"key",
"0",
"{\n taro += 3;\n }",
"taro += 3",
"taro",
"3",
"if (key < 0){\n hanako += 3;\n } else {\n taro += 1;\n hanako += 1;\n }",
"key < 0",
"key",
"0",
"{\n hanako += 3;\n }",
"hanako += 3",
"hanako",
"3",
"{\n taro += 1;\n hanako += 1;\n }",
"taro += 1",
"taro",
"1",
"hanako += 1",
"hanako",
"1",
"System.out.printf(\"%d %d\\n\",taro,hanako)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d %d\\n\"",
"taro",
"hanako",
"String[] args",
"args"
]
| import java.util.*;
import java.util.stream.*;
class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int n,taro,hanako;
taro = 0;
hanako = 0;
n = input.nextInt();
String a,b;
for (int i = 0; i < n; i++){
a = input.next();
b = input.next();
int key = a.compareTo(b);
if (key > 0){
taro += 3;
} else if (key < 0){
hanako += 3;
} else {
taro += 1;
hanako += 1;
}
}
System.out.printf("%d %d\n",taro,hanako);
}
}
|
[
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,
20,
41,
13,
20,
41,
13,
20,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
14,
2,
13,
17,
4,
18,
13,
13,
14,
2,
13,
17,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
30,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
4,
18,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
149,
8
],
[
149,
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
],
[
11,
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
],
[
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
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
11,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
85,
96
],
[
97,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
100,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
97,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
110,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
118,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
130,
131
],
[
130,
132
],
[
11,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
133,
138
],
[
139,
139
],
[
139,
140
],
[
139,
141
],
[
139,
142
],
[
11,
143
],
[
143,
144
],
[
144,
145
],
[
9,
146
],
[
146,
147
],
[
0,
148
],
[
148,
149
],
[
148,
150
]
]
| [
"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 taroPoint = 0;\n\t\tint hanakoPoint= 0;\n\t\tString str =null;\n\t\tArrayList<String> taro = new ArrayList<String>();\n\t\tArrayList<String> hanako = new ArrayList<String>();\n\t\tScanner sc = new Scanner(System.in);\n\t\tn = sc.nextInt();\n\t\tfor(int j = 0; j < n; ++j){\n\t\t\tfor(int i = 0; i < 2; ++i){\n\t\t\t\tstr = sc.next();\n\t\t\t\tif(i == 0)\n\t\t\t\ttaro.add(str);\n\t\t\t\telse if(i == 1)\n\t\t\t\t\thanako.add(str);\n\t\t\t}\n\t\t}\n\t\tfor(int a = 0; a < n; ++a){\n\t\t\tint comp = (taro.get(a)).compareTo(hanako.get(a));\n\t\t\tif(comp < 0){\n\t\t\t\thanakoPoint += 3;\n\t\t\t}\n\t\t\telse if(comp > 0){\n\t\t\t\ttaroPoint += 3;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanakoPoint += 1;\n\t\t\t\ttaroPoint += 1;\n\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(taroPoint+\" \"+hanakoPoint);\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 taroPoint = 0;\n\t\tint hanakoPoint= 0;\n\t\tString str =null;\n\t\tArrayList<String> taro = new ArrayList<String>();\n\t\tArrayList<String> hanako = new ArrayList<String>();\n\t\tScanner sc = new Scanner(System.in);\n\t\tn = sc.nextInt();\n\t\tfor(int j = 0; j < n; ++j){\n\t\t\tfor(int i = 0; i < 2; ++i){\n\t\t\t\tstr = sc.next();\n\t\t\t\tif(i == 0)\n\t\t\t\ttaro.add(str);\n\t\t\t\telse if(i == 1)\n\t\t\t\t\thanako.add(str);\n\t\t\t}\n\t\t}\n\t\tfor(int a = 0; a < n; ++a){\n\t\t\tint comp = (taro.get(a)).compareTo(hanako.get(a));\n\t\t\tif(comp < 0){\n\t\t\t\thanakoPoint += 3;\n\t\t\t}\n\t\t\telse if(comp > 0){\n\t\t\t\ttaroPoint += 3;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanakoPoint += 1;\n\t\t\t\ttaroPoint += 1;\n\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(taroPoint+\" \"+hanakoPoint);\n\t\tsc.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tint n = 0;\n\t\tint taroPoint = 0;\n\t\tint hanakoPoint= 0;\n\t\tString str =null;\n\t\tArrayList<String> taro = new ArrayList<String>();\n\t\tArrayList<String> hanako = new ArrayList<String>();\n\t\tScanner sc = new Scanner(System.in);\n\t\tn = sc.nextInt();\n\t\tfor(int j = 0; j < n; ++j){\n\t\t\tfor(int i = 0; i < 2; ++i){\n\t\t\t\tstr = sc.next();\n\t\t\t\tif(i == 0)\n\t\t\t\ttaro.add(str);\n\t\t\t\telse if(i == 1)\n\t\t\t\t\thanako.add(str);\n\t\t\t}\n\t\t}\n\t\tfor(int a = 0; a < n; ++a){\n\t\t\tint comp = (taro.get(a)).compareTo(hanako.get(a));\n\t\t\tif(comp < 0){\n\t\t\t\thanakoPoint += 3;\n\t\t\t}\n\t\t\telse if(comp > 0){\n\t\t\t\ttaroPoint += 3;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanakoPoint += 1;\n\t\t\t\ttaroPoint += 1;\n\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(taroPoint+\" \"+hanakoPoint);\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tint n = 0;\n\t\tint taroPoint = 0;\n\t\tint hanakoPoint= 0;\n\t\tString str =null;\n\t\tArrayList<String> taro = new ArrayList<String>();\n\t\tArrayList<String> hanako = new ArrayList<String>();\n\t\tScanner sc = new Scanner(System.in);\n\t\tn = sc.nextInt();\n\t\tfor(int j = 0; j < n; ++j){\n\t\t\tfor(int i = 0; i < 2; ++i){\n\t\t\t\tstr = sc.next();\n\t\t\t\tif(i == 0)\n\t\t\t\ttaro.add(str);\n\t\t\t\telse if(i == 1)\n\t\t\t\t\thanako.add(str);\n\t\t\t}\n\t\t}\n\t\tfor(int a = 0; a < n; ++a){\n\t\t\tint comp = (taro.get(a)).compareTo(hanako.get(a));\n\t\t\tif(comp < 0){\n\t\t\t\thanakoPoint += 3;\n\t\t\t}\n\t\t\telse if(comp > 0){\n\t\t\t\ttaroPoint += 3;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanakoPoint += 1;\n\t\t\t\ttaroPoint += 1;\n\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(taroPoint+\" \"+hanakoPoint);\n\t\tsc.close();\n\t}",
"int n = 0;",
"n",
"0",
"int taroPoint = 0;",
"taroPoint",
"0",
"int hanakoPoint= 0;",
"hanakoPoint",
"0",
"String str =null;",
"str",
"null",
"ArrayList<String> taro = new ArrayList<String>();",
"taro",
"new ArrayList<String>()",
"ArrayList<String> hanako = new ArrayList<String>();",
"hanako",
"new ArrayList<String>()",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j = 0; j < n; ++j){\n\t\t\tfor(int i = 0; i < 2; ++i){\n\t\t\t\tstr = sc.next();\n\t\t\t\tif(i == 0)\n\t\t\t\ttaro.add(str);\n\t\t\t\telse if(i == 1)\n\t\t\t\t\thanako.add(str);\n\t\t\t}\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < n",
"j",
"n",
"++j",
"++j",
"j",
"{\n\t\t\tfor(int i = 0; i < 2; ++i){\n\t\t\t\tstr = sc.next();\n\t\t\t\tif(i == 0)\n\t\t\t\ttaro.add(str);\n\t\t\t\telse if(i == 1)\n\t\t\t\t\thanako.add(str);\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int i = 0; i < 2; ++i){\n\t\t\t\tstr = sc.next();\n\t\t\t\tif(i == 0)\n\t\t\t\ttaro.add(str);\n\t\t\t\telse if(i == 1)\n\t\t\t\t\thanako.add(str);\n\t\t\t}\n\t\t}",
"for(int i = 0; i < 2; ++i){\n\t\t\t\tstr = sc.next();\n\t\t\t\tif(i == 0)\n\t\t\t\ttaro.add(str);\n\t\t\t\telse if(i == 1)\n\t\t\t\t\thanako.add(str);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 2",
"i",
"2",
"++i",
"++i",
"i",
"{\n\t\t\t\tstr = sc.next();\n\t\t\t\tif(i == 0)\n\t\t\t\ttaro.add(str);\n\t\t\t\telse if(i == 1)\n\t\t\t\t\thanako.add(str);\n\t\t\t}",
"{\n\t\t\t\tstr = sc.next();\n\t\t\t\tif(i == 0)\n\t\t\t\ttaro.add(str);\n\t\t\t\telse if(i == 1)\n\t\t\t\t\thanako.add(str);\n\t\t\t}",
"str = sc.next()",
"str",
"sc.next()",
"sc.next",
"sc",
"if(i == 0)\n\t\t\t\ttaro.add(str);\n\t\t\t\telse if(i == 1)\n\t\t\t\t\thanako.add(str);",
"i == 0",
"i",
"0",
"taro.add(str)",
"taro.add",
"taro",
"str",
"if(i == 1)\n\t\t\t\t\thanako.add(str);",
"i == 1",
"i",
"1",
"hanako.add(str)",
"hanako.add",
"hanako",
"str",
"for(int a = 0; a < n; ++a){\n\t\t\tint comp = (taro.get(a)).compareTo(hanako.get(a));\n\t\t\tif(comp < 0){\n\t\t\t\thanakoPoint += 3;\n\t\t\t}\n\t\t\telse if(comp > 0){\n\t\t\t\ttaroPoint += 3;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanakoPoint += 1;\n\t\t\t\ttaroPoint += 1;\n\t\t\t}\n\t\t\t}",
"int a = 0;",
"int a = 0;",
"a",
"0",
"a < n",
"a",
"n",
"++a",
"++a",
"a",
"{\n\t\t\tint comp = (taro.get(a)).compareTo(hanako.get(a));\n\t\t\tif(comp < 0){\n\t\t\t\thanakoPoint += 3;\n\t\t\t}\n\t\t\telse if(comp > 0){\n\t\t\t\ttaroPoint += 3;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanakoPoint += 1;\n\t\t\t\ttaroPoint += 1;\n\t\t\t}\n\t\t\t}",
"{\n\t\t\tint comp = (taro.get(a)).compareTo(hanako.get(a));\n\t\t\tif(comp < 0){\n\t\t\t\thanakoPoint += 3;\n\t\t\t}\n\t\t\telse if(comp > 0){\n\t\t\t\ttaroPoint += 3;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanakoPoint += 1;\n\t\t\t\ttaroPoint += 1;\n\t\t\t}\n\t\t\t}",
"int comp = (taro.get(a)).compareTo(hanako.get(a));",
"comp",
"(taro.get(a)).compareTo(hanako.get(a))",
"(taro.get(a)).compareTo",
"(taro.get(a))",
"taro.get",
"taro",
"a",
"hanako.get(a)",
"hanako.get",
"hanako",
"a",
"if(comp < 0){\n\t\t\t\thanakoPoint += 3;\n\t\t\t}\n\t\t\telse if(comp > 0){\n\t\t\t\ttaroPoint += 3;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanakoPoint += 1;\n\t\t\t\ttaroPoint += 1;\n\t\t\t}",
"comp < 0",
"comp",
"0",
"{\n\t\t\t\thanakoPoint += 3;\n\t\t\t}",
"hanakoPoint += 3",
"hanakoPoint",
"3",
"if(comp > 0){\n\t\t\t\ttaroPoint += 3;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanakoPoint += 1;\n\t\t\t\ttaroPoint += 1;\n\t\t\t}",
"comp > 0",
"comp",
"0",
"{\n\t\t\t\ttaroPoint += 3;\n\t\t\t}",
"taroPoint += 3",
"taroPoint",
"3",
"{\n\t\t\t\thanakoPoint += 1;\n\t\t\t\ttaroPoint += 1;\n\t\t\t}",
"hanakoPoint += 1",
"hanakoPoint",
"1",
"taroPoint += 1",
"taroPoint",
"1",
"System.out.println(taroPoint+\" \"+hanakoPoint)",
"System.out.println",
"System.out",
"System",
"System.out",
"taroPoint+\" \"+hanakoPoint",
"taroPoint+\" \"+hanakoPoint",
"taroPoint",
"\" \"",
"hanakoPoint",
"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 taroPoint = 0;\n\t\tint hanakoPoint= 0;\n\t\tString str =null;\n\t\tArrayList<String> taro = new ArrayList<String>();\n\t\tArrayList<String> hanako = new ArrayList<String>();\n\t\tScanner sc = new Scanner(System.in);\n\t\tn = sc.nextInt();\n\t\tfor(int j = 0; j < n; ++j){\n\t\t\tfor(int i = 0; i < 2; ++i){\n\t\t\t\tstr = sc.next();\n\t\t\t\tif(i == 0)\n\t\t\t\ttaro.add(str);\n\t\t\t\telse if(i == 1)\n\t\t\t\t\thanako.add(str);\n\t\t\t}\n\t\t}\n\t\tfor(int a = 0; a < n; ++a){\n\t\t\tint comp = (taro.get(a)).compareTo(hanako.get(a));\n\t\t\tif(comp < 0){\n\t\t\t\thanakoPoint += 3;\n\t\t\t}\n\t\t\telse if(comp > 0){\n\t\t\t\ttaroPoint += 3;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanakoPoint += 1;\n\t\t\t\ttaroPoint += 1;\n\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(taroPoint+\" \"+hanakoPoint);\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 taroPoint = 0;\n\t\tint hanakoPoint= 0;\n\t\tString str =null;\n\t\tArrayList<String> taro = new ArrayList<String>();\n\t\tArrayList<String> hanako = new ArrayList<String>();\n\t\tScanner sc = new Scanner(System.in);\n\t\tn = sc.nextInt();\n\t\tfor(int j = 0; j < n; ++j){\n\t\t\tfor(int i = 0; i < 2; ++i){\n\t\t\t\tstr = sc.next();\n\t\t\t\tif(i == 0)\n\t\t\t\ttaro.add(str);\n\t\t\t\telse if(i == 1)\n\t\t\t\t\thanako.add(str);\n\t\t\t}\n\t\t}\n\t\tfor(int a = 0; a < n; ++a){\n\t\t\tint comp = (taro.get(a)).compareTo(hanako.get(a));\n\t\t\tif(comp < 0){\n\t\t\t\thanakoPoint += 3;\n\t\t\t}\n\t\t\telse if(comp > 0){\n\t\t\t\ttaroPoint += 3;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thanakoPoint += 1;\n\t\t\t\ttaroPoint += 1;\n\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(taroPoint+\" \"+hanakoPoint);\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 taroPoint = 0;
int hanakoPoint= 0;
String str =null;
ArrayList<String> taro = new ArrayList<String>();
ArrayList<String> hanako = new ArrayList<String>();
Scanner sc = new Scanner(System.in);
n = sc.nextInt();
for(int j = 0; j < n; ++j){
for(int i = 0; i < 2; ++i){
str = sc.next();
if(i == 0)
taro.add(str);
else if(i == 1)
hanako.add(str);
}
}
for(int a = 0; a < n; ++a){
int comp = (taro.get(a)).compareTo(hanako.get(a));
if(comp < 0){
hanakoPoint += 3;
}
else if(comp > 0){
taroPoint += 3;
}
else{
hanakoPoint += 1;
taroPoint += 1;
}
}
System.out.println(taroPoint+" "+hanakoPoint);
sc.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
20,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
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,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
40,
13,
40,
13,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
114,
8
],
[
114,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
28,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
35,
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
],
[
62,
65
],
[
54,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
67,
76
],
[
66,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
80,
81
],
[
66,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
83,
92
],
[
82,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
82,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
11,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
107,
107
],
[
107,
108
],
[
107,
109
],
[
107,
110
],
[
9,
111
],
[
111,
112
],
[
0,
113
],
[
113,
114
],
[
113,
115
]
]
| [
"import java.io.*;\nimport java.util.*;\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\n int taro =0;\n int hana =0;\n String[] temp = new String[2];\n\n while((str = br.readLine()) != null){\n int n = Integer.parseInt(str);\n for(int i=0;i<n;i++){\n str = br.readLine();\n temp = str.split(\"\\\\s\");\n \n if(temp[0].compareTo(temp[1]) == 0){\n taro++;\n hana++;\n }else if(temp[0].compareTo(temp[1]) > 0){\n taro +=3;\n }else{\n hana +=3;\n }\n }\n }\n\n System.out.println(taro + \" \" + hana);\n\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"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\n int taro =0;\n int hana =0;\n String[] temp = new String[2];\n\n while((str = br.readLine()) != null){\n int n = Integer.parseInt(str);\n for(int i=0;i<n;i++){\n str = br.readLine();\n temp = str.split(\"\\\\s\");\n \n if(temp[0].compareTo(temp[1]) == 0){\n taro++;\n hana++;\n }else if(temp[0].compareTo(temp[1]) > 0){\n taro +=3;\n }else{\n hana +=3;\n }\n }\n }\n\n System.out.println(taro + \" \" + hana);\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\n int taro =0;\n int hana =0;\n String[] temp = new String[2];\n\n while((str = br.readLine()) != null){\n int n = Integer.parseInt(str);\n for(int i=0;i<n;i++){\n str = br.readLine();\n temp = str.split(\"\\\\s\");\n \n if(temp[0].compareTo(temp[1]) == 0){\n taro++;\n hana++;\n }else if(temp[0].compareTo(temp[1]) > 0){\n taro +=3;\n }else{\n hana +=3;\n }\n }\n }\n\n System.out.println(taro + \" \" + hana);\n\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n\n int taro =0;\n int hana =0;\n String[] temp = new String[2];\n\n while((str = br.readLine()) != null){\n int n = Integer.parseInt(str);\n for(int i=0;i<n;i++){\n str = br.readLine();\n temp = str.split(\"\\\\s\");\n \n if(temp[0].compareTo(temp[1]) == 0){\n taro++;\n hana++;\n }else if(temp[0].compareTo(temp[1]) > 0){\n taro +=3;\n }else{\n hana +=3;\n }\n }\n }\n\n System.out.println(taro + \" \" + hana);\n\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str;",
"str",
"int taro =0;",
"taro",
"0",
"int hana =0;",
"hana",
"0",
"String[] temp = new String[2];",
"temp",
"new String[2]",
"2",
"while((str = br.readLine()) != null){\n int n = Integer.parseInt(str);\n for(int i=0;i<n;i++){\n str = br.readLine();\n temp = str.split(\"\\\\s\");\n \n if(temp[0].compareTo(temp[1]) == 0){\n taro++;\n hana++;\n }else if(temp[0].compareTo(temp[1]) > 0){\n taro +=3;\n }else{\n hana +=3;\n }\n }\n }",
"(str = br.readLine()) != null",
"(str = br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n int n = Integer.parseInt(str);\n for(int i=0;i<n;i++){\n str = br.readLine();\n temp = str.split(\"\\\\s\");\n \n if(temp[0].compareTo(temp[1]) == 0){\n taro++;\n hana++;\n }else if(temp[0].compareTo(temp[1]) > 0){\n taro +=3;\n }else{\n hana +=3;\n }\n }\n }",
"int n = Integer.parseInt(str);",
"n",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"for(int i=0;i<n;i++){\n str = br.readLine();\n temp = str.split(\"\\\\s\");\n \n if(temp[0].compareTo(temp[1]) == 0){\n taro++;\n hana++;\n }else if(temp[0].compareTo(temp[1]) > 0){\n taro +=3;\n }else{\n hana +=3;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n str = br.readLine();\n temp = str.split(\"\\\\s\");\n \n if(temp[0].compareTo(temp[1]) == 0){\n taro++;\n hana++;\n }else if(temp[0].compareTo(temp[1]) > 0){\n taro +=3;\n }else{\n hana +=3;\n }\n }",
"{\n str = br.readLine();\n temp = str.split(\"\\\\s\");\n \n if(temp[0].compareTo(temp[1]) == 0){\n taro++;\n hana++;\n }else if(temp[0].compareTo(temp[1]) > 0){\n taro +=3;\n }else{\n hana +=3;\n }\n }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"temp = str.split(\"\\\\s\")",
"temp",
"str.split(\"\\\\s\")",
"str.split",
"str",
"\"\\\\s\"",
"if(temp[0].compareTo(temp[1]) == 0){\n taro++;\n hana++;\n }else if(temp[0].compareTo(temp[1]) > 0){\n taro +=3;\n }else{\n hana +=3;\n }",
"temp[0].compareTo(temp[1]) == 0",
"temp[0].compareTo(temp[1])",
"temp[0].compareTo",
"temp[0]",
"temp",
"0",
"temp[1]",
"temp",
"1",
"0",
"{\n taro++;\n hana++;\n }",
"taro++",
"taro",
"hana++",
"hana",
"if(temp[0].compareTo(temp[1]) > 0){\n taro +=3;\n }else{\n hana +=3;\n }",
"temp[0].compareTo(temp[1]) > 0",
"temp[0].compareTo(temp[1])",
"temp[0].compareTo",
"temp[0]",
"temp",
"0",
"temp[1]",
"temp",
"1",
"0",
"{\n taro +=3;\n }",
"taro +=3",
"taro",
"3",
"{\n hana +=3;\n }",
"hana +=3",
"hana",
"3",
"System.out.println(taro + \" \" + hana)",
"System.out.println",
"System.out",
"System",
"System.out",
"taro + \" \" + hana",
"taro + \" \" + hana",
"taro",
"\" \"",
"hana",
"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\n int taro =0;\n int hana =0;\n String[] temp = new String[2];\n\n while((str = br.readLine()) != null){\n int n = Integer.parseInt(str);\n for(int i=0;i<n;i++){\n str = br.readLine();\n temp = str.split(\"\\\\s\");\n \n if(temp[0].compareTo(temp[1]) == 0){\n taro++;\n hana++;\n }else if(temp[0].compareTo(temp[1]) > 0){\n taro +=3;\n }else{\n hana +=3;\n }\n }\n }\n\n System.out.println(taro + \" \" + hana);\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\n int taro =0;\n int hana =0;\n String[] temp = new String[2];\n\n while((str = br.readLine()) != null){\n int n = Integer.parseInt(str);\n for(int i=0;i<n;i++){\n str = br.readLine();\n temp = str.split(\"\\\\s\");\n \n if(temp[0].compareTo(temp[1]) == 0){\n taro++;\n hana++;\n }else if(temp[0].compareTo(temp[1]) > 0){\n taro +=3;\n }else{\n hana +=3;\n }\n }\n }\n\n System.out.println(taro + \" \" + hana);\n\n }\n}",
"Main"
]
| import java.io.*;
import java.util.*;
public class Main{
public static void main(String[] args)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str;
int taro =0;
int hana =0;
String[] temp = new String[2];
while((str = br.readLine()) != null){
int n = Integer.parseInt(str);
for(int i=0;i<n;i++){
str = br.readLine();
temp = str.split("\\s");
if(temp[0].compareTo(temp[1]) == 0){
taro++;
hana++;
}else if(temp[0].compareTo(temp[1]) > 0){
taro +=3;
}else{
hana +=3;
}
}
}
System.out.println(taro + " " + hana);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
17,
13,
4,
18,
13,
0,
18,
18,
13,
17,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
18,
18,
13,
17,
13,
18,
18,
13,
17,
13,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
17,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
123,
5
],
[
123,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
40,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
50,
56
],
[
56,
57
],
[
57,
58
],
[
8,
59
],
[
59,
60
],
[
60,
61
],
[
8,
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
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
77,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
74,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
97,
99
],
[
89,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
8,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
112,
118
],
[
112,
119
],
[
6,
120
],
[
120,
121
],
[
0,
122
],
[
122,
123
],
[
122,
124
]
]
| [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int num=sc.nextInt();\n String comp[][] = new String[2][num];\n int taro=0;\n int hanako=0;\n\n for(int i=0; i< num; i++){\n \tcomp[0][i]= sc.next();\n \tcomp[1][i]= sc.next();\n }\n sc.close();\n for(int i=0; i< num; i++){\n \tint ans = comp[0][i].compareTo(comp[1][i]);\n \tif (ans == 0) {\n \t\ttaro += 1;\n \t\thanako += 1;\n \t} else if (ans < 0) {\n \t\thanako += 3;\n \t} else {\n \t\ttaro += 3;\n \t}\n }\n System.out.printf(\"%d %d%n\", taro, hanako);\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 num=sc.nextInt();\n String comp[][] = new String[2][num];\n int taro=0;\n int hanako=0;\n\n for(int i=0; i< num; i++){\n \tcomp[0][i]= sc.next();\n \tcomp[1][i]= sc.next();\n }\n sc.close();\n for(int i=0; i< num; i++){\n \tint ans = comp[0][i].compareTo(comp[1][i]);\n \tif (ans == 0) {\n \t\ttaro += 1;\n \t\thanako += 1;\n \t} else if (ans < 0) {\n \t\thanako += 3;\n \t} else {\n \t\ttaro += 3;\n \t}\n }\n System.out.printf(\"%d %d%n\", taro, hanako);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int num=sc.nextInt();\n String comp[][] = new String[2][num];\n int taro=0;\n int hanako=0;\n\n for(int i=0; i< num; i++){\n \tcomp[0][i]= sc.next();\n \tcomp[1][i]= sc.next();\n }\n sc.close();\n for(int i=0; i< num; i++){\n \tint ans = comp[0][i].compareTo(comp[1][i]);\n \tif (ans == 0) {\n \t\ttaro += 1;\n \t\thanako += 1;\n \t} else if (ans < 0) {\n \t\thanako += 3;\n \t} else {\n \t\ttaro += 3;\n \t}\n }\n System.out.printf(\"%d %d%n\", taro, hanako);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int num=sc.nextInt();\n String comp[][] = new String[2][num];\n int taro=0;\n int hanako=0;\n\n for(int i=0; i< num; i++){\n \tcomp[0][i]= sc.next();\n \tcomp[1][i]= sc.next();\n }\n sc.close();\n for(int i=0; i< num; i++){\n \tint ans = comp[0][i].compareTo(comp[1][i]);\n \tif (ans == 0) {\n \t\ttaro += 1;\n \t\thanako += 1;\n \t} else if (ans < 0) {\n \t\thanako += 3;\n \t} else {\n \t\ttaro += 3;\n \t}\n }\n System.out.printf(\"%d %d%n\", taro, hanako);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int num=sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String comp[][] = new String[2][num];",
"comp",
"new String[2][num]",
"2",
"num",
"int taro=0;",
"taro",
"0",
"int hanako=0;",
"hanako",
"0",
"for(int i=0; i< num; i++){\n \tcomp[0][i]= sc.next();\n \tcomp[1][i]= sc.next();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i< num",
"i",
"num",
"i++",
"i++",
"i",
"{\n \tcomp[0][i]= sc.next();\n \tcomp[1][i]= sc.next();\n }",
"{\n \tcomp[0][i]= sc.next();\n \tcomp[1][i]= sc.next();\n }",
"comp[0][i]= sc.next()",
"comp[0][i]",
"comp[0]",
"comp",
"0",
"i",
"sc.next()",
"sc.next",
"sc",
"comp[1][i]= sc.next()",
"comp[1][i]",
"comp[1]",
"comp",
"1",
"i",
"sc.next()",
"sc.next",
"sc",
"sc.close()",
"sc.close",
"sc",
"for(int i=0; i< num; i++){\n \tint ans = comp[0][i].compareTo(comp[1][i]);\n \tif (ans == 0) {\n \t\ttaro += 1;\n \t\thanako += 1;\n \t} else if (ans < 0) {\n \t\thanako += 3;\n \t} else {\n \t\ttaro += 3;\n \t}\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i< num",
"i",
"num",
"i++",
"i++",
"i",
"{\n \tint ans = comp[0][i].compareTo(comp[1][i]);\n \tif (ans == 0) {\n \t\ttaro += 1;\n \t\thanako += 1;\n \t} else if (ans < 0) {\n \t\thanako += 3;\n \t} else {\n \t\ttaro += 3;\n \t}\n }",
"{\n \tint ans = comp[0][i].compareTo(comp[1][i]);\n \tif (ans == 0) {\n \t\ttaro += 1;\n \t\thanako += 1;\n \t} else if (ans < 0) {\n \t\thanako += 3;\n \t} else {\n \t\ttaro += 3;\n \t}\n }",
"int ans = comp[0][i].compareTo(comp[1][i]);",
"ans",
"comp[0][i].compareTo(comp[1][i])",
"comp[0][i].compareTo",
"comp[0][i]",
"comp[0]",
"comp",
"0",
"i",
"comp[1][i]",
"comp[1]",
"comp",
"1",
"i",
"if (ans == 0) {\n \t\ttaro += 1;\n \t\thanako += 1;\n \t} else if (ans < 0) {\n \t\thanako += 3;\n \t} else {\n \t\ttaro += 3;\n \t}",
"ans == 0",
"ans",
"0",
"{\n \t\ttaro += 1;\n \t\thanako += 1;\n \t}",
"taro += 1",
"taro",
"1",
"hanako += 1",
"hanako",
"1",
"if (ans < 0) {\n \t\thanako += 3;\n \t} else {\n \t\ttaro += 3;\n \t}",
"ans < 0",
"ans",
"0",
"{\n \t\thanako += 3;\n \t}",
"hanako += 3",
"hanako",
"3",
"{\n \t\ttaro += 3;\n \t}",
"taro += 3",
"taro",
"3",
"System.out.printf(\"%d %d%n\", taro, hanako)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d %d%n\"",
"taro",
"hanako",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int num=sc.nextInt();\n String comp[][] = new String[2][num];\n int taro=0;\n int hanako=0;\n\n for(int i=0; i< num; i++){\n \tcomp[0][i]= sc.next();\n \tcomp[1][i]= sc.next();\n }\n sc.close();\n for(int i=0; i< num; i++){\n \tint ans = comp[0][i].compareTo(comp[1][i]);\n \tif (ans == 0) {\n \t\ttaro += 1;\n \t\thanako += 1;\n \t} else if (ans < 0) {\n \t\thanako += 3;\n \t} else {\n \t\ttaro += 3;\n \t}\n }\n System.out.printf(\"%d %d%n\", taro, hanako);\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int num=sc.nextInt();\n String comp[][] = new String[2][num];\n int taro=0;\n int hanako=0;\n\n for(int i=0; i< num; i++){\n \tcomp[0][i]= sc.next();\n \tcomp[1][i]= sc.next();\n }\n sc.close();\n for(int i=0; i< num; i++){\n \tint ans = comp[0][i].compareTo(comp[1][i]);\n \tif (ans == 0) {\n \t\ttaro += 1;\n \t\thanako += 1;\n \t} else if (ans < 0) {\n \t\thanako += 3;\n \t} else {\n \t\ttaro += 3;\n \t}\n }\n System.out.printf(\"%d %d%n\", taro, hanako);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int num=sc.nextInt();
String comp[][] = new String[2][num];
int taro=0;
int hanako=0;
for(int i=0; i< num; i++){
comp[0][i]= sc.next();
comp[1][i]= sc.next();
}
sc.close();
for(int i=0; i< num; i++){
int ans = comp[0][i].compareTo(comp[1][i]);
if (ans == 0) {
taro += 1;
hanako += 1;
} else if (ans < 0) {
hanako += 3;
} else {
taro += 3;
}
}
System.out.printf("%d %d%n", taro, hanako);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
0,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
114,
5
],
[
114,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
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
],
[
41,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
54,
63
],
[
53,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
53,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
72,
81
],
[
71,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
71,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
87,
96
],
[
86,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
8,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
107,
107
],
[
107,
108
],
[
107,
109
],
[
107,
110
],
[
6,
111
],
[
111,
112
],
[
0,
113
],
[
113,
114
],
[
113,
115
]
]
| [
"import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n\tScanner scan = new Scanner(System.in);\n\tString n = scan.nextLine();\n\tint cnt = Integer.valueOf(n);\n\tint taro = 0;\n\tint hanako = 0;\n\tfor (int i = 0; i < cnt; i++) {\n\t String fuda = scan.nextLine();\n\t String[] cards = fuda.split(\" \");\n\t if (cards[0].compareTo(cards[1]) == 0) {\n\t\ttaro += 1;\n\t\thanako += 1;\n\t } else if (cards[0].compareTo(cards[1]) < 0) {\n\t\thanako += 3;\n\t } else if (cards[0].compareTo(cards[1]) > 0) {\n\t\ttaro += 3;\n\t }\n\t}\n\tSystem.out.println(taro + \" \" + hanako);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n\tScanner scan = new Scanner(System.in);\n\tString n = scan.nextLine();\n\tint cnt = Integer.valueOf(n);\n\tint taro = 0;\n\tint hanako = 0;\n\tfor (int i = 0; i < cnt; i++) {\n\t String fuda = scan.nextLine();\n\t String[] cards = fuda.split(\" \");\n\t if (cards[0].compareTo(cards[1]) == 0) {\n\t\ttaro += 1;\n\t\thanako += 1;\n\t } else if (cards[0].compareTo(cards[1]) < 0) {\n\t\thanako += 3;\n\t } else if (cards[0].compareTo(cards[1]) > 0) {\n\t\ttaro += 3;\n\t }\n\t}\n\tSystem.out.println(taro + \" \" + hanako);\n }\n}",
"Main",
"public static void main(String[] args){\n\tScanner scan = new Scanner(System.in);\n\tString n = scan.nextLine();\n\tint cnt = Integer.valueOf(n);\n\tint taro = 0;\n\tint hanako = 0;\n\tfor (int i = 0; i < cnt; i++) {\n\t String fuda = scan.nextLine();\n\t String[] cards = fuda.split(\" \");\n\t if (cards[0].compareTo(cards[1]) == 0) {\n\t\ttaro += 1;\n\t\thanako += 1;\n\t } else if (cards[0].compareTo(cards[1]) < 0) {\n\t\thanako += 3;\n\t } else if (cards[0].compareTo(cards[1]) > 0) {\n\t\ttaro += 3;\n\t }\n\t}\n\tSystem.out.println(taro + \" \" + hanako);\n }",
"main",
"{\n\tScanner scan = new Scanner(System.in);\n\tString n = scan.nextLine();\n\tint cnt = Integer.valueOf(n);\n\tint taro = 0;\n\tint hanako = 0;\n\tfor (int i = 0; i < cnt; i++) {\n\t String fuda = scan.nextLine();\n\t String[] cards = fuda.split(\" \");\n\t if (cards[0].compareTo(cards[1]) == 0) {\n\t\ttaro += 1;\n\t\thanako += 1;\n\t } else if (cards[0].compareTo(cards[1]) < 0) {\n\t\thanako += 3;\n\t } else if (cards[0].compareTo(cards[1]) > 0) {\n\t\ttaro += 3;\n\t }\n\t}\n\tSystem.out.println(taro + \" \" + hanako);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String n = scan.nextLine();",
"n",
"scan.nextLine()",
"scan.nextLine",
"scan",
"int cnt = Integer.valueOf(n);",
"cnt",
"Integer.valueOf(n)",
"Integer.valueOf",
"Integer",
"n",
"int taro = 0;",
"taro",
"0",
"int hanako = 0;",
"hanako",
"0",
"for (int i = 0; i < cnt; i++) {\n\t String fuda = scan.nextLine();\n\t String[] cards = fuda.split(\" \");\n\t if (cards[0].compareTo(cards[1]) == 0) {\n\t\ttaro += 1;\n\t\thanako += 1;\n\t } else if (cards[0].compareTo(cards[1]) < 0) {\n\t\thanako += 3;\n\t } else if (cards[0].compareTo(cards[1]) > 0) {\n\t\ttaro += 3;\n\t }\n\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < cnt",
"i",
"cnt",
"i++",
"i++",
"i",
"{\n\t String fuda = scan.nextLine();\n\t String[] cards = fuda.split(\" \");\n\t if (cards[0].compareTo(cards[1]) == 0) {\n\t\ttaro += 1;\n\t\thanako += 1;\n\t } else if (cards[0].compareTo(cards[1]) < 0) {\n\t\thanako += 3;\n\t } else if (cards[0].compareTo(cards[1]) > 0) {\n\t\ttaro += 3;\n\t }\n\t}",
"{\n\t String fuda = scan.nextLine();\n\t String[] cards = fuda.split(\" \");\n\t if (cards[0].compareTo(cards[1]) == 0) {\n\t\ttaro += 1;\n\t\thanako += 1;\n\t } else if (cards[0].compareTo(cards[1]) < 0) {\n\t\thanako += 3;\n\t } else if (cards[0].compareTo(cards[1]) > 0) {\n\t\ttaro += 3;\n\t }\n\t}",
"String fuda = scan.nextLine();",
"fuda",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String[] cards = fuda.split(\" \");",
"cards",
"fuda.split(\" \")",
"fuda.split",
"fuda",
"\" \"",
"if (cards[0].compareTo(cards[1]) == 0) {\n\t\ttaro += 1;\n\t\thanako += 1;\n\t } else if (cards[0].compareTo(cards[1]) < 0) {\n\t\thanako += 3;\n\t } else if (cards[0].compareTo(cards[1]) > 0) {\n\t\ttaro += 3;\n\t }",
"cards[0].compareTo(cards[1]) == 0",
"cards[0].compareTo(cards[1])",
"cards[0].compareTo",
"cards[0]",
"cards",
"0",
"cards[1]",
"cards",
"1",
"0",
"{\n\t\ttaro += 1;\n\t\thanako += 1;\n\t }",
"taro += 1",
"taro",
"1",
"hanako += 1",
"hanako",
"1",
"if (cards[0].compareTo(cards[1]) < 0) {\n\t\thanako += 3;\n\t } else if (cards[0].compareTo(cards[1]) > 0) {\n\t\ttaro += 3;\n\t }",
"cards[0].compareTo(cards[1]) < 0",
"cards[0].compareTo(cards[1])",
"cards[0].compareTo",
"cards[0]",
"cards",
"0",
"cards[1]",
"cards",
"1",
"0",
"{\n\t\thanako += 3;\n\t }",
"hanako += 3",
"hanako",
"3",
"if (cards[0].compareTo(cards[1]) > 0) {\n\t\ttaro += 3;\n\t }",
"cards[0].compareTo(cards[1]) > 0",
"cards[0].compareTo(cards[1])",
"cards[0].compareTo",
"cards[0]",
"cards",
"0",
"cards[1]",
"cards",
"1",
"0",
"{\n\t\ttaro += 3;\n\t }",
"taro += 3",
"taro",
"3",
"System.out.println(taro + \" \" + hanako)",
"System.out.println",
"System.out",
"System",
"System.out",
"taro + \" \" + hanako",
"taro + \" \" + hanako",
"taro",
"\" \"",
"hanako",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n\tScanner scan = new Scanner(System.in);\n\tString n = scan.nextLine();\n\tint cnt = Integer.valueOf(n);\n\tint taro = 0;\n\tint hanako = 0;\n\tfor (int i = 0; i < cnt; i++) {\n\t String fuda = scan.nextLine();\n\t String[] cards = fuda.split(\" \");\n\t if (cards[0].compareTo(cards[1]) == 0) {\n\t\ttaro += 1;\n\t\thanako += 1;\n\t } else if (cards[0].compareTo(cards[1]) < 0) {\n\t\thanako += 3;\n\t } else if (cards[0].compareTo(cards[1]) > 0) {\n\t\ttaro += 3;\n\t }\n\t}\n\tSystem.out.println(taro + \" \" + hanako);\n }\n}",
"public class Main{\n public static void main(String[] args){\n\tScanner scan = new Scanner(System.in);\n\tString n = scan.nextLine();\n\tint cnt = Integer.valueOf(n);\n\tint taro = 0;\n\tint hanako = 0;\n\tfor (int i = 0; i < cnt; i++) {\n\t String fuda = scan.nextLine();\n\t String[] cards = fuda.split(\" \");\n\t if (cards[0].compareTo(cards[1]) == 0) {\n\t\ttaro += 1;\n\t\thanako += 1;\n\t } else if (cards[0].compareTo(cards[1]) < 0) {\n\t\thanako += 3;\n\t } else if (cards[0].compareTo(cards[1]) > 0) {\n\t\ttaro += 3;\n\t }\n\t}\n\tSystem.out.println(taro + \" \" + hanako);\n }\n}",
"Main"
]
| import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
String n = scan.nextLine();
int cnt = Integer.valueOf(n);
int taro = 0;
int hanako = 0;
for (int i = 0; i < cnt; i++) {
String fuda = scan.nextLine();
String[] cards = fuda.split(" ");
if (cards[0].compareTo(cards[1]) == 0) {
taro += 1;
hanako += 1;
} else if (cards[0].compareTo(cards[1]) < 0) {
hanako += 3;
} else if (cards[0].compareTo(cards[1]) > 0) {
taro += 3;
}
}
System.out.println(taro + " " + hanako);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
14,
2,
13,
17,
30,
4,
18,
13,
0,
13,
17,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
114,
8
],
[
114,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
11,
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
],
[
41,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
41,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
41,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
64,
69
],
[
63,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
63,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
75,
80
],
[
74,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
74,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
11,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
96,
96
],
[
96,
97
],
[
96,
98
],
[
96,
99
],
[
11,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
104,
108
],
[
108,
109
],
[
108,
110
],
[
9,
111
],
[
111,
112
],
[
0,
113
],
[
113,
114
],
[
113,
115
]
]
| [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint cnt = Integer.parseInt(br.readLine());\n\t\t\n\t\tint taroPoint = 0;\n\t\tint hanakoPoint = 0;\n\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\tString line = br.readLine();\n\t\t\tString[] arr = line.split(\" \");\n\t\t\tString taroHand = arr[0];\n\t\t\tString hanakoHand = arr[1];\n\t\t\t\n\t\t\tif (taroHand.compareTo(hanakoHand) > 0) {\n\t\t\t\ttaroPoint += 3;\n\t\t\t}\n\t\t\telse if (taroHand.compareTo(hanakoHand) < 0) {\n\t\t\t\thanakoPoint += 3;\n\t\t\t} else {\n\t\t\t\ttaroPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroPoint + \" \" + hanakoPoint);\n\n\t\tif (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\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) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint cnt = Integer.parseInt(br.readLine());\n\t\t\n\t\tint taroPoint = 0;\n\t\tint hanakoPoint = 0;\n\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\tString line = br.readLine();\n\t\t\tString[] arr = line.split(\" \");\n\t\t\tString taroHand = arr[0];\n\t\t\tString hanakoHand = arr[1];\n\t\t\t\n\t\t\tif (taroHand.compareTo(hanakoHand) > 0) {\n\t\t\t\ttaroPoint += 3;\n\t\t\t}\n\t\t\telse if (taroHand.compareTo(hanakoHand) < 0) {\n\t\t\t\thanakoPoint += 3;\n\t\t\t} else {\n\t\t\t\ttaroPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroPoint + \" \" + hanakoPoint);\n\n\t\tif (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint cnt = Integer.parseInt(br.readLine());\n\t\t\n\t\tint taroPoint = 0;\n\t\tint hanakoPoint = 0;\n\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\tString line = br.readLine();\n\t\t\tString[] arr = line.split(\" \");\n\t\t\tString taroHand = arr[0];\n\t\t\tString hanakoHand = arr[1];\n\t\t\t\n\t\t\tif (taroHand.compareTo(hanakoHand) > 0) {\n\t\t\t\ttaroPoint += 3;\n\t\t\t}\n\t\t\telse if (taroHand.compareTo(hanakoHand) < 0) {\n\t\t\t\thanakoPoint += 3;\n\t\t\t} else {\n\t\t\t\ttaroPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroPoint + \" \" + hanakoPoint);\n\n\t\tif (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint cnt = Integer.parseInt(br.readLine());\n\t\t\n\t\tint taroPoint = 0;\n\t\tint hanakoPoint = 0;\n\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\tString line = br.readLine();\n\t\t\tString[] arr = line.split(\" \");\n\t\t\tString taroHand = arr[0];\n\t\t\tString hanakoHand = arr[1];\n\t\t\t\n\t\t\tif (taroHand.compareTo(hanakoHand) > 0) {\n\t\t\t\ttaroPoint += 3;\n\t\t\t}\n\t\t\telse if (taroHand.compareTo(hanakoHand) < 0) {\n\t\t\t\thanakoPoint += 3;\n\t\t\t} else {\n\t\t\t\ttaroPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroPoint + \" \" + hanakoPoint);\n\n\t\tif (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int cnt = Integer.parseInt(br.readLine());",
"cnt",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int taroPoint = 0;",
"taroPoint",
"0",
"int hanakoPoint = 0;",
"hanakoPoint",
"0",
"for (int i = 0; i < cnt; i++) {\n\t\t\tString line = br.readLine();\n\t\t\tString[] arr = line.split(\" \");\n\t\t\tString taroHand = arr[0];\n\t\t\tString hanakoHand = arr[1];\n\t\t\t\n\t\t\tif (taroHand.compareTo(hanakoHand) > 0) {\n\t\t\t\ttaroPoint += 3;\n\t\t\t}\n\t\t\telse if (taroHand.compareTo(hanakoHand) < 0) {\n\t\t\t\thanakoPoint += 3;\n\t\t\t} else {\n\t\t\t\ttaroPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < cnt",
"i",
"cnt",
"i++",
"i++",
"i",
"{\n\t\t\tString line = br.readLine();\n\t\t\tString[] arr = line.split(\" \");\n\t\t\tString taroHand = arr[0];\n\t\t\tString hanakoHand = arr[1];\n\t\t\t\n\t\t\tif (taroHand.compareTo(hanakoHand) > 0) {\n\t\t\t\ttaroPoint += 3;\n\t\t\t}\n\t\t\telse if (taroHand.compareTo(hanakoHand) < 0) {\n\t\t\t\thanakoPoint += 3;\n\t\t\t} else {\n\t\t\t\ttaroPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t}\n\t\t}",
"{\n\t\t\tString line = br.readLine();\n\t\t\tString[] arr = line.split(\" \");\n\t\t\tString taroHand = arr[0];\n\t\t\tString hanakoHand = arr[1];\n\t\t\t\n\t\t\tif (taroHand.compareTo(hanakoHand) > 0) {\n\t\t\t\ttaroPoint += 3;\n\t\t\t}\n\t\t\telse if (taroHand.compareTo(hanakoHand) < 0) {\n\t\t\t\thanakoPoint += 3;\n\t\t\t} else {\n\t\t\t\ttaroPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t}\n\t\t}",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"String[] arr = line.split(\" \");",
"arr",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"String taroHand = arr[0];",
"taroHand",
"arr[0]",
"arr",
"0",
"String hanakoHand = arr[1];",
"hanakoHand",
"arr[1]",
"arr",
"1",
"if (taroHand.compareTo(hanakoHand) > 0) {\n\t\t\t\ttaroPoint += 3;\n\t\t\t}\n\t\t\telse if (taroHand.compareTo(hanakoHand) < 0) {\n\t\t\t\thanakoPoint += 3;\n\t\t\t} else {\n\t\t\t\ttaroPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t}",
"taroHand.compareTo(hanakoHand) > 0",
"taroHand.compareTo(hanakoHand)",
"taroHand.compareTo",
"taroHand",
"hanakoHand",
"0",
"{\n\t\t\t\ttaroPoint += 3;\n\t\t\t}",
"taroPoint += 3",
"taroPoint",
"3",
"if (taroHand.compareTo(hanakoHand) < 0) {\n\t\t\t\thanakoPoint += 3;\n\t\t\t} else {\n\t\t\t\ttaroPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t}",
"taroHand.compareTo(hanakoHand) < 0",
"taroHand.compareTo(hanakoHand)",
"taroHand.compareTo",
"taroHand",
"hanakoHand",
"0",
"{\n\t\t\t\thanakoPoint += 3;\n\t\t\t}",
"hanakoPoint += 3",
"hanakoPoint",
"3",
"{\n\t\t\t\ttaroPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t}",
"taroPoint++",
"taroPoint",
"hanakoPoint++",
"hanakoPoint",
"System.out.println(taroPoint + \" \" + hanakoPoint)",
"System.out.println",
"System.out",
"System",
"System.out",
"taroPoint + \" \" + hanakoPoint",
"taroPoint + \" \" + hanakoPoint",
"taroPoint",
"\" \"",
"hanakoPoint",
"if (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}",
"br != null",
"br",
"null",
"{\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}",
"br.close()",
"br.close",
"br",
"br = null",
"br",
"null",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint cnt = Integer.parseInt(br.readLine());\n\t\t\n\t\tint taroPoint = 0;\n\t\tint hanakoPoint = 0;\n\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\tString line = br.readLine();\n\t\t\tString[] arr = line.split(\" \");\n\t\t\tString taroHand = arr[0];\n\t\t\tString hanakoHand = arr[1];\n\t\t\t\n\t\t\tif (taroHand.compareTo(hanakoHand) > 0) {\n\t\t\t\ttaroPoint += 3;\n\t\t\t}\n\t\t\telse if (taroHand.compareTo(hanakoHand) < 0) {\n\t\t\t\thanakoPoint += 3;\n\t\t\t} else {\n\t\t\t\ttaroPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroPoint + \" \" + hanakoPoint);\n\n\t\tif (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint cnt = Integer.parseInt(br.readLine());\n\t\t\n\t\tint taroPoint = 0;\n\t\tint hanakoPoint = 0;\n\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\tString line = br.readLine();\n\t\t\tString[] arr = line.split(\" \");\n\t\t\tString taroHand = arr[0];\n\t\t\tString hanakoHand = arr[1];\n\t\t\t\n\t\t\tif (taroHand.compareTo(hanakoHand) > 0) {\n\t\t\t\ttaroPoint += 3;\n\t\t\t}\n\t\t\telse if (taroHand.compareTo(hanakoHand) < 0) {\n\t\t\t\thanakoPoint += 3;\n\t\t\t} else {\n\t\t\t\ttaroPoint++;\n\t\t\t\thanakoPoint++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(taroPoint + \" \" + hanakoPoint);\n\n\t\tif (br != null) {\n\t\t\tbr.close();\n\t\t\tbr = null;\n\t\t}\n\t}\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));
int cnt = Integer.parseInt(br.readLine());
int taroPoint = 0;
int hanakoPoint = 0;
for (int i = 0; i < cnt; i++) {
String line = br.readLine();
String[] arr = line.split(" ");
String taroHand = arr[0];
String hanakoHand = arr[1];
if (taroHand.compareTo(hanakoHand) > 0) {
taroPoint += 3;
}
else if (taroHand.compareTo(hanakoHand) < 0) {
hanakoPoint += 3;
} else {
taroPoint++;
hanakoPoint++;
}
}
System.out.println(taroPoint + " " + hanakoPoint);
if (br != null) {
br.close();
br = null;
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
17,
0,
13,
17,
14,
2,
13,
17,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
7,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
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
],
[
41,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
41,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
58,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
65,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
14,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
83,
83
],
[
83,
84
],
[
83,
85
],
[
83,
86
],
[
12,
87
],
[
87,
88
]
]
| [
"import java.io.IOException;\nimport java.util.Scanner;\n\nclass Main{\n private static final Scanner sc = new Scanner(System.in);\n public static void main(String[] Args) throws IOException{\n final int n = Integer.parseInt(sc.next());\n int taro = 0, hanako = 0;\n for(int i = 0; i<n; i++){\n final String tc = sc.next();\n final String hc = sc.next();\n final int judge = tc.compareTo(hc);\n if(judge<0) hanako += 3;\n else if(judge>0) taro += 3;\n else{\n taro++;\n hanako++;\n }\n }\n System.out.println(taro+\" \"+hanako);\n }\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n private static final Scanner sc = new Scanner(System.in);\n public static void main(String[] Args) throws IOException{\n final int n = Integer.parseInt(sc.next());\n int taro = 0, hanako = 0;\n for(int i = 0; i<n; i++){\n final String tc = sc.next();\n final String hc = sc.next();\n final int judge = tc.compareTo(hc);\n if(judge<0) hanako += 3;\n else if(judge>0) taro += 3;\n else{\n taro++;\n hanako++;\n }\n }\n System.out.println(taro+\" \"+hanako);\n }\n}",
"Main",
"private static final Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] Args) throws IOException{\n final int n = Integer.parseInt(sc.next());\n int taro = 0, hanako = 0;\n for(int i = 0; i<n; i++){\n final String tc = sc.next();\n final String hc = sc.next();\n final int judge = tc.compareTo(hc);\n if(judge<0) hanako += 3;\n else if(judge>0) taro += 3;\n else{\n taro++;\n hanako++;\n }\n }\n System.out.println(taro+\" \"+hanako);\n }",
"main",
"{\n final int n = Integer.parseInt(sc.next());\n int taro = 0, hanako = 0;\n for(int i = 0; i<n; i++){\n final String tc = sc.next();\n final String hc = sc.next();\n final int judge = tc.compareTo(hc);\n if(judge<0) hanako += 3;\n else if(judge>0) taro += 3;\n else{\n taro++;\n hanako++;\n }\n }\n System.out.println(taro+\" \"+hanako);\n }",
"final int n = Integer.parseInt(sc.next());",
"n",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int taro = 0",
"taro",
"0",
"hanako = 0;",
"hanako",
"0",
"for(int i = 0; i<n; i++){\n final String tc = sc.next();\n final String hc = sc.next();\n final int judge = tc.compareTo(hc);\n if(judge<0) hanako += 3;\n else if(judge>0) taro += 3;\n else{\n taro++;\n hanako++;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n final String tc = sc.next();\n final String hc = sc.next();\n final int judge = tc.compareTo(hc);\n if(judge<0) hanako += 3;\n else if(judge>0) taro += 3;\n else{\n taro++;\n hanako++;\n }\n }",
"{\n final String tc = sc.next();\n final String hc = sc.next();\n final int judge = tc.compareTo(hc);\n if(judge<0) hanako += 3;\n else if(judge>0) taro += 3;\n else{\n taro++;\n hanako++;\n }\n }",
"final String tc = sc.next();",
"tc",
"sc.next()",
"sc.next",
"sc",
"final String hc = sc.next();",
"hc",
"sc.next()",
"sc.next",
"sc",
"final int judge = tc.compareTo(hc);",
"judge",
"tc.compareTo(hc)",
"tc.compareTo",
"tc",
"hc",
"if(judge<0) hanako += 3;\n else if(judge>0) taro += 3;\n else{\n taro++;\n hanako++;\n }",
"judge<0",
"judge",
"0",
"hanako += 3",
"hanako",
"3",
"if(judge>0) taro += 3;\n else{\n taro++;\n hanako++;\n }",
"judge>0",
"judge",
"0",
"taro += 3",
"taro",
"3",
"{\n taro++;\n hanako++;\n }",
"taro++",
"taro",
"hanako++",
"hanako",
"System.out.println(taro+\" \"+hanako)",
"System.out.println",
"System.out",
"System",
"System.out",
"taro+\" \"+hanako",
"taro+\" \"+hanako",
"taro",
"\" \"",
"hanako",
"String[] Args",
"Args"
]
| import java.io.IOException;
import java.util.Scanner;
class Main{
private static final Scanner sc = new Scanner(System.in);
public static void main(String[] Args) throws IOException{
final int n = Integer.parseInt(sc.next());
int taro = 0, hanako = 0;
for(int i = 0; i<n; i++){
final String tc = sc.next();
final String hc = sc.next();
final int judge = tc.compareTo(hc);
if(judge<0) hanako += 3;
else if(judge>0) taro += 3;
else{
taro++;
hanako++;
}
}
System.out.println(taro+" "+hanako);
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
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,
4,
18,
13,
4,
13,
13,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
14,
2,
4,
18,
13,
4,
18,
13,
30,
0,
13,
4,
18,
13,
30,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
30,
0,
13,
17,
3,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
30,
0,
13,
17,
3,
14,
2,
2,
13,
17,
2,
13,
17,
30,
14,
2,
4,
18,
13,
4,
18,
13,
30,
0,
13,
17,
14,
2,
4,
18,
13,
4,
18,
13,
30,
0,
13,
17,
30,
0,
13,
17,
14,
13,
30,
0,
13,
17,
14,
13,
30,
0,
13,
17,
14,
13,
30,
40,
13,
40,
13,
23,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
204,
5
],
[
204,
6
],
[
6,
7
],
[
6,
8
],
[
204,
9
],
[
9,
10
],
[
9,
11
],
[
204,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
14,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
14,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
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
],
[
50,
52
],
[
50,
53
],
[
14,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
60,
60
],
[
60,
61
],
[
60,
62
],
[
60,
63
],
[
12,
64
],
[
64,
65
],
[
204,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
68,
75
],
[
75,
76
],
[
75,
77
],
[
68,
78
],
[
78,
79
],
[
68,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
81,
85
],
[
85,
86
],
[
86,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
80,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
68,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
100,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
114,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
113,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
113,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
130,
133
],
[
129,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
128,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
68,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
148,
150
],
[
143,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
153,
157
],
[
157,
158
],
[
158,
159
],
[
152,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
152,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
165,
169
],
[
169,
170
],
[
170,
171
],
[
164,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
164,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
68,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
180,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
186,
192
],
[
192,
193
],
[
192,
194
],
[
194,
195
],
[
195,
196
],
[
194,
197
],
[
197,
198
],
[
66,
199
],
[
199,
200
],
[
66,
201
],
[
201,
202
],
[
0,
203
],
[
203,
204
],
[
203,
205
]
]
| [
"\nimport java.util.Scanner;\n\npublic class Main {\n\tstatic int APoints = 0;\n\tstatic int BPoints = 0;\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString strA;\n\t\tString strB;\n\n\t\tint n = sc.nextInt();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tstrA = sc.next();\n\t\t\tstrB = sc.next();\n\t\t\tcalcPoints(strA, strB);\n\t\t}\n\t\tSystem.out.println(APoints + \" \" + BPoints);\n\n\t}\n\n\tstatic void calcPoints(String strA, String strB) {\n\t\tboolean isBiggerA = false;\n\t\tboolean isBiggerB = false;\n\t\tboolean isEqual = false;\n\t\tint length;\n\t\tif (strA.length() > strB.length()) {\n\t\t\tlength = strB.length();\n\t\t} else {\n\t\t\tlength = strA.length();\n\t\t}\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tif (strA.charAt(i) > strB.charAt(i)) {\n\t\t\t\tisBiggerA = true;\n\t\t\t\tbreak;\n\t\t\t} else if (strA.charAt(i) < strB.charAt(i)) {\n\t\t\t\tisBiggerB = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tif ((isBiggerA == false) && (isBiggerB == false)) {\n\t\t\tif (strA.length() > strB.length()) {\n\t\t\t\tisBiggerA = true;\n\t\t\t} else if (strA.length() < strB.length()) {\n\t\t\t\tisBiggerB = true;\n\t\t\t} else {\n\t\t\t\tisEqual = true;\n\t\t\t}\n\t\t}\n\n\t\tif (isBiggerA) {\n\t\t\tAPoints += 3;\n\t\t} else if (isBiggerB) {\n\t\t\tBPoints += 3;\n\t\t} else if (isEqual) {\n\t\t\tAPoints++;\n\t\t\tBPoints++;\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tstatic int APoints = 0;\n\tstatic int BPoints = 0;\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString strA;\n\t\tString strB;\n\n\t\tint n = sc.nextInt();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tstrA = sc.next();\n\t\t\tstrB = sc.next();\n\t\t\tcalcPoints(strA, strB);\n\t\t}\n\t\tSystem.out.println(APoints + \" \" + BPoints);\n\n\t}\n\n\tstatic void calcPoints(String strA, String strB) {\n\t\tboolean isBiggerA = false;\n\t\tboolean isBiggerB = false;\n\t\tboolean isEqual = false;\n\t\tint length;\n\t\tif (strA.length() > strB.length()) {\n\t\t\tlength = strB.length();\n\t\t} else {\n\t\t\tlength = strA.length();\n\t\t}\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tif (strA.charAt(i) > strB.charAt(i)) {\n\t\t\t\tisBiggerA = true;\n\t\t\t\tbreak;\n\t\t\t} else if (strA.charAt(i) < strB.charAt(i)) {\n\t\t\t\tisBiggerB = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tif ((isBiggerA == false) && (isBiggerB == false)) {\n\t\t\tif (strA.length() > strB.length()) {\n\t\t\t\tisBiggerA = true;\n\t\t\t} else if (strA.length() < strB.length()) {\n\t\t\t\tisBiggerB = true;\n\t\t\t} else {\n\t\t\t\tisEqual = true;\n\t\t\t}\n\t\t}\n\n\t\tif (isBiggerA) {\n\t\t\tAPoints += 3;\n\t\t} else if (isBiggerB) {\n\t\t\tBPoints += 3;\n\t\t} else if (isEqual) {\n\t\t\tAPoints++;\n\t\t\tBPoints++;\n\t\t}\n\t}\n}",
"Main",
"static int APoints = 0;",
"APoints",
"0",
"static int BPoints = 0;",
"BPoints",
"0",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString strA;\n\t\tString strB;\n\n\t\tint n = sc.nextInt();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tstrA = sc.next();\n\t\t\tstrB = sc.next();\n\t\t\tcalcPoints(strA, strB);\n\t\t}\n\t\tSystem.out.println(APoints + \" \" + BPoints);\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString strA;\n\t\tString strB;\n\n\t\tint n = sc.nextInt();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tstrA = sc.next();\n\t\t\tstrB = sc.next();\n\t\t\tcalcPoints(strA, strB);\n\t\t}\n\t\tSystem.out.println(APoints + \" \" + BPoints);\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String strA;",
"strA",
"String strB;",
"strB",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < n; i++) {\n\t\t\tstrA = sc.next();\n\t\t\tstrB = sc.next();\n\t\t\tcalcPoints(strA, strB);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tstrA = sc.next();\n\t\t\tstrB = sc.next();\n\t\t\tcalcPoints(strA, strB);\n\t\t}",
"{\n\t\t\tstrA = sc.next();\n\t\t\tstrB = sc.next();\n\t\t\tcalcPoints(strA, strB);\n\t\t}",
"strA = sc.next()",
"strA",
"sc.next()",
"sc.next",
"sc",
"strB = sc.next()",
"strB",
"sc.next()",
"sc.next",
"sc",
"calcPoints(strA, strB)",
"calcPoints",
"strA",
"strB",
"System.out.println(APoints + \" \" + BPoints)",
"System.out.println",
"System.out",
"System",
"System.out",
"APoints + \" \" + BPoints",
"APoints + \" \" + BPoints",
"APoints",
"\" \"",
"BPoints",
"String[] args",
"args",
"static void calcPoints(String strA, String strB) {\n\t\tboolean isBiggerA = false;\n\t\tboolean isBiggerB = false;\n\t\tboolean isEqual = false;\n\t\tint length;\n\t\tif (strA.length() > strB.length()) {\n\t\t\tlength = strB.length();\n\t\t} else {\n\t\t\tlength = strA.length();\n\t\t}\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tif (strA.charAt(i) > strB.charAt(i)) {\n\t\t\t\tisBiggerA = true;\n\t\t\t\tbreak;\n\t\t\t} else if (strA.charAt(i) < strB.charAt(i)) {\n\t\t\t\tisBiggerB = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tif ((isBiggerA == false) && (isBiggerB == false)) {\n\t\t\tif (strA.length() > strB.length()) {\n\t\t\t\tisBiggerA = true;\n\t\t\t} else if (strA.length() < strB.length()) {\n\t\t\t\tisBiggerB = true;\n\t\t\t} else {\n\t\t\t\tisEqual = true;\n\t\t\t}\n\t\t}\n\n\t\tif (isBiggerA) {\n\t\t\tAPoints += 3;\n\t\t} else if (isBiggerB) {\n\t\t\tBPoints += 3;\n\t\t} else if (isEqual) {\n\t\t\tAPoints++;\n\t\t\tBPoints++;\n\t\t}\n\t}",
"calcPoints",
"{\n\t\tboolean isBiggerA = false;\n\t\tboolean isBiggerB = false;\n\t\tboolean isEqual = false;\n\t\tint length;\n\t\tif (strA.length() > strB.length()) {\n\t\t\tlength = strB.length();\n\t\t} else {\n\t\t\tlength = strA.length();\n\t\t}\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tif (strA.charAt(i) > strB.charAt(i)) {\n\t\t\t\tisBiggerA = true;\n\t\t\t\tbreak;\n\t\t\t} else if (strA.charAt(i) < strB.charAt(i)) {\n\t\t\t\tisBiggerB = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tif ((isBiggerA == false) && (isBiggerB == false)) {\n\t\t\tif (strA.length() > strB.length()) {\n\t\t\t\tisBiggerA = true;\n\t\t\t} else if (strA.length() < strB.length()) {\n\t\t\t\tisBiggerB = true;\n\t\t\t} else {\n\t\t\t\tisEqual = true;\n\t\t\t}\n\t\t}\n\n\t\tif (isBiggerA) {\n\t\t\tAPoints += 3;\n\t\t} else if (isBiggerB) {\n\t\t\tBPoints += 3;\n\t\t} else if (isEqual) {\n\t\t\tAPoints++;\n\t\t\tBPoints++;\n\t\t}\n\t}",
"boolean isBiggerA = false;",
"isBiggerA",
"false",
"boolean isBiggerB = false;",
"isBiggerB",
"false",
"boolean isEqual = false;",
"isEqual",
"false",
"int length;",
"length",
"if (strA.length() > strB.length()) {\n\t\t\tlength = strB.length();\n\t\t} else {\n\t\t\tlength = strA.length();\n\t\t}",
"strA.length() > strB.length()",
"strA.length()",
"strA.length",
"strA",
"strB.length()",
"strB.length",
"strB",
"{\n\t\t\tlength = strB.length();\n\t\t}",
"length = strB.length()",
"length",
"strB.length()",
"strB.length",
"strB",
"{\n\t\t\tlength = strA.length();\n\t\t}",
"length = strA.length()",
"length",
"strA.length()",
"strA.length",
"strA",
"for (int i = 0; i < length; i++) {\n\t\t\tif (strA.charAt(i) > strB.charAt(i)) {\n\t\t\t\tisBiggerA = true;\n\t\t\t\tbreak;\n\t\t\t} else if (strA.charAt(i) < strB.charAt(i)) {\n\t\t\t\tisBiggerB = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < length",
"i",
"length",
"i++",
"i++",
"i",
"{\n\t\t\tif (strA.charAt(i) > strB.charAt(i)) {\n\t\t\t\tisBiggerA = true;\n\t\t\t\tbreak;\n\t\t\t} else if (strA.charAt(i) < strB.charAt(i)) {\n\t\t\t\tisBiggerB = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}",
"{\n\t\t\tif (strA.charAt(i) > strB.charAt(i)) {\n\t\t\t\tisBiggerA = true;\n\t\t\t\tbreak;\n\t\t\t} else if (strA.charAt(i) < strB.charAt(i)) {\n\t\t\t\tisBiggerB = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}",
"if (strA.charAt(i) > strB.charAt(i)) {\n\t\t\t\tisBiggerA = true;\n\t\t\t\tbreak;\n\t\t\t} else if (strA.charAt(i) < strB.charAt(i)) {\n\t\t\t\tisBiggerB = true;\n\t\t\t\tbreak;\n\t\t\t}",
"strA.charAt(i) > strB.charAt(i)",
"strA.charAt(i)",
"strA.charAt",
"strA",
"i",
"strB.charAt(i)",
"strB.charAt",
"strB",
"i",
"{\n\t\t\t\tisBiggerA = true;\n\t\t\t\tbreak;\n\t\t\t}",
"isBiggerA = true",
"isBiggerA",
"true",
"break;",
"if (strA.charAt(i) < strB.charAt(i)) {\n\t\t\t\tisBiggerB = true;\n\t\t\t\tbreak;\n\t\t\t}",
"strA.charAt(i) < strB.charAt(i)",
"strA.charAt(i)",
"strA.charAt",
"strA",
"i",
"strB.charAt(i)",
"strB.charAt",
"strB",
"i",
"{\n\t\t\t\tisBiggerB = true;\n\t\t\t\tbreak;\n\t\t\t}",
"isBiggerB = true",
"isBiggerB",
"true",
"break;",
"if ((isBiggerA == false) && (isBiggerB == false)) {\n\t\t\tif (strA.length() > strB.length()) {\n\t\t\t\tisBiggerA = true;\n\t\t\t} else if (strA.length() < strB.length()) {\n\t\t\t\tisBiggerB = true;\n\t\t\t} else {\n\t\t\t\tisEqual = true;\n\t\t\t}\n\t\t}",
"(isBiggerA == false) && (isBiggerB == false)",
"(isBiggerA == false)",
"isBiggerA",
"false",
"(isBiggerB == false)",
"isBiggerB",
"false",
"{\n\t\t\tif (strA.length() > strB.length()) {\n\t\t\t\tisBiggerA = true;\n\t\t\t} else if (strA.length() < strB.length()) {\n\t\t\t\tisBiggerB = true;\n\t\t\t} else {\n\t\t\t\tisEqual = true;\n\t\t\t}\n\t\t}",
"if (strA.length() > strB.length()) {\n\t\t\t\tisBiggerA = true;\n\t\t\t} else if (strA.length() < strB.length()) {\n\t\t\t\tisBiggerB = true;\n\t\t\t} else {\n\t\t\t\tisEqual = true;\n\t\t\t}",
"strA.length() > strB.length()",
"strA.length()",
"strA.length",
"strA",
"strB.length()",
"strB.length",
"strB",
"{\n\t\t\t\tisBiggerA = true;\n\t\t\t}",
"isBiggerA = true",
"isBiggerA",
"true",
"if (strA.length() < strB.length()) {\n\t\t\t\tisBiggerB = true;\n\t\t\t} else {\n\t\t\t\tisEqual = true;\n\t\t\t}",
"strA.length() < strB.length()",
"strA.length()",
"strA.length",
"strA",
"strB.length()",
"strB.length",
"strB",
"{\n\t\t\t\tisBiggerB = true;\n\t\t\t}",
"isBiggerB = true",
"isBiggerB",
"true",
"{\n\t\t\t\tisEqual = true;\n\t\t\t}",
"isEqual = true",
"isEqual",
"true",
"if (isBiggerA) {\n\t\t\tAPoints += 3;\n\t\t} else if (isBiggerB) {\n\t\t\tBPoints += 3;\n\t\t} else if (isEqual) {\n\t\t\tAPoints++;\n\t\t\tBPoints++;\n\t\t}",
"isBiggerA",
"{\n\t\t\tAPoints += 3;\n\t\t}",
"APoints += 3",
"APoints",
"3",
"if (isBiggerB) {\n\t\t\tBPoints += 3;\n\t\t} else if (isEqual) {\n\t\t\tAPoints++;\n\t\t\tBPoints++;\n\t\t}",
"isBiggerB",
"{\n\t\t\tBPoints += 3;\n\t\t}",
"BPoints += 3",
"BPoints",
"3",
"if (isEqual) {\n\t\t\tAPoints++;\n\t\t\tBPoints++;\n\t\t}",
"isEqual",
"{\n\t\t\tAPoints++;\n\t\t\tBPoints++;\n\t\t}",
"APoints++",
"APoints",
"BPoints++",
"BPoints",
"String strA",
"strA",
"String strB",
"strB",
"public class Main {\n\tstatic int APoints = 0;\n\tstatic int BPoints = 0;\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString strA;\n\t\tString strB;\n\n\t\tint n = sc.nextInt();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tstrA = sc.next();\n\t\t\tstrB = sc.next();\n\t\t\tcalcPoints(strA, strB);\n\t\t}\n\t\tSystem.out.println(APoints + \" \" + BPoints);\n\n\t}\n\n\tstatic void calcPoints(String strA, String strB) {\n\t\tboolean isBiggerA = false;\n\t\tboolean isBiggerB = false;\n\t\tboolean isEqual = false;\n\t\tint length;\n\t\tif (strA.length() > strB.length()) {\n\t\t\tlength = strB.length();\n\t\t} else {\n\t\t\tlength = strA.length();\n\t\t}\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tif (strA.charAt(i) > strB.charAt(i)) {\n\t\t\t\tisBiggerA = true;\n\t\t\t\tbreak;\n\t\t\t} else if (strA.charAt(i) < strB.charAt(i)) {\n\t\t\t\tisBiggerB = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tif ((isBiggerA == false) && (isBiggerB == false)) {\n\t\t\tif (strA.length() > strB.length()) {\n\t\t\t\tisBiggerA = true;\n\t\t\t} else if (strA.length() < strB.length()) {\n\t\t\t\tisBiggerB = true;\n\t\t\t} else {\n\t\t\t\tisEqual = true;\n\t\t\t}\n\t\t}\n\n\t\tif (isBiggerA) {\n\t\t\tAPoints += 3;\n\t\t} else if (isBiggerB) {\n\t\t\tBPoints += 3;\n\t\t} else if (isEqual) {\n\t\t\tAPoints++;\n\t\t\tBPoints++;\n\t\t}\n\t}\n}",
"public class Main {\n\tstatic int APoints = 0;\n\tstatic int BPoints = 0;\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString strA;\n\t\tString strB;\n\n\t\tint n = sc.nextInt();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tstrA = sc.next();\n\t\t\tstrB = sc.next();\n\t\t\tcalcPoints(strA, strB);\n\t\t}\n\t\tSystem.out.println(APoints + \" \" + BPoints);\n\n\t}\n\n\tstatic void calcPoints(String strA, String strB) {\n\t\tboolean isBiggerA = false;\n\t\tboolean isBiggerB = false;\n\t\tboolean isEqual = false;\n\t\tint length;\n\t\tif (strA.length() > strB.length()) {\n\t\t\tlength = strB.length();\n\t\t} else {\n\t\t\tlength = strA.length();\n\t\t}\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tif (strA.charAt(i) > strB.charAt(i)) {\n\t\t\t\tisBiggerA = true;\n\t\t\t\tbreak;\n\t\t\t} else if (strA.charAt(i) < strB.charAt(i)) {\n\t\t\t\tisBiggerB = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tif ((isBiggerA == false) && (isBiggerB == false)) {\n\t\t\tif (strA.length() > strB.length()) {\n\t\t\t\tisBiggerA = true;\n\t\t\t} else if (strA.length() < strB.length()) {\n\t\t\t\tisBiggerB = true;\n\t\t\t} else {\n\t\t\t\tisEqual = true;\n\t\t\t}\n\t\t}\n\n\t\tif (isBiggerA) {\n\t\t\tAPoints += 3;\n\t\t} else if (isBiggerB) {\n\t\t\tBPoints += 3;\n\t\t} else if (isEqual) {\n\t\t\tAPoints++;\n\t\t\tBPoints++;\n\t\t}\n\t}\n}",
"Main"
]
|
import java.util.Scanner;
public class Main {
static int APoints = 0;
static int BPoints = 0;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String strA;
String strB;
int n = sc.nextInt();
for (int i = 0; i < n; i++) {
strA = sc.next();
strB = sc.next();
calcPoints(strA, strB);
}
System.out.println(APoints + " " + BPoints);
}
static void calcPoints(String strA, String strB) {
boolean isBiggerA = false;
boolean isBiggerB = false;
boolean isEqual = false;
int length;
if (strA.length() > strB.length()) {
length = strB.length();
} else {
length = strA.length();
}
for (int i = 0; i < length; i++) {
if (strA.charAt(i) > strB.charAt(i)) {
isBiggerA = true;
break;
} else if (strA.charAt(i) < strB.charAt(i)) {
isBiggerB = true;
break;
}
}
if ((isBiggerA == false) && (isBiggerB == false)) {
if (strA.length() > strB.length()) {
isBiggerA = true;
} else if (strA.length() < strB.length()) {
isBiggerB = true;
} else {
isEqual = true;
}
}
if (isBiggerA) {
APoints += 3;
} else if (isBiggerB) {
BPoints += 3;
} else if (isEqual) {
APoints++;
BPoints++;
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
8,
2,
4,
18,
18,
13,
17,
4,
18,
18,
13,
17,
4,
18,
18,
13,
17,
4,
18,
18,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
18,
13,
17,
13,
4,
18,
18,
13,
17,
13,
30,
0,
13,
2,
13,
17,
3,
14,
2,
4,
18,
18,
13,
17,
13,
4,
18,
18,
13,
17,
13,
30,
0,
13,
2,
13,
17,
3,
14,
2,
13,
2,
13,
17,
30,
14,
2,
4,
18,
18,
13,
17,
4,
18,
18,
13,
17,
30,
0,
13,
2,
13,
17,
14,
2,
4,
18,
18,
13,
17,
4,
18,
18,
13,
17,
30,
0,
13,
2,
13,
17,
30,
0,
13,
2,
13,
17,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
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
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
21,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
34,
35
],
[
35,
36
],
[
28,
37
],
[
37,
38
],
[
28,
39
],
[
39,
40
],
[
28,
41
],
[
41,
42
],
[
41,
43
],
[
28,
44
],
[
44,
45
],
[
44,
46
],
[
28,
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
],
[
64,
65
],
[
65,
66
],
[
62,
67
],
[
59,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
70,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
70,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
59,
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
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
106,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
105,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
122,
124
],
[
119,
125
],
[
105,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
127,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
134,
139
],
[
126,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
143,
144
],
[
143,
145
],
[
140,
146
],
[
126,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
150,
152
],
[
147,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
155,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
154,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
169,
170
],
[
169,
171
],
[
154,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
173,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
172,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
187,
189
],
[
172,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
193,
195
],
[
190,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
198,
200
],
[
28,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
201,
206
],
[
207,
207
],
[
207,
208
],
[
207,
209
],
[
207,
210
],
[
12,
211
],
[
211,
212
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tint i, j, taro = 0, hanako = 0;\n\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\tString input[] = br.readLine().split(\" \");\n\t\t\t\tint min = (input[0].length() < input[1].length()) ? input[0].length() : input[1].length();\n\t\t\t\tfor (j = 0; j < min; j++) {\n\t\t\t\t\tif (input[0].charAt(j) > input[1].charAt(j)) {\n\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (input[0].charAt(j) < input[1].charAt(j)) {\n\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == min - 1) {\n\t\t\t\t\t\tif (input[0].length() > input[1].length()) {\n\t\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\t} else if (input[0].length() < input[1].length()) {\n\t\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttaro = taro + 1;\n\t\t\t\t\t\t\thanako = hanako + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tint i, j, taro = 0, hanako = 0;\n\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\tString input[] = br.readLine().split(\" \");\n\t\t\t\tint min = (input[0].length() < input[1].length()) ? input[0].length() : input[1].length();\n\t\t\t\tfor (j = 0; j < min; j++) {\n\t\t\t\t\tif (input[0].charAt(j) > input[1].charAt(j)) {\n\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (input[0].charAt(j) < input[1].charAt(j)) {\n\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == min - 1) {\n\t\t\t\t\t\tif (input[0].length() > input[1].length()) {\n\t\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\t} else if (input[0].length() < input[1].length()) {\n\t\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttaro = taro + 1;\n\t\t\t\t\t\t\thanako = hanako + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tint i, j, taro = 0, hanako = 0;\n\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\tString input[] = br.readLine().split(\" \");\n\t\t\t\tint min = (input[0].length() < input[1].length()) ? input[0].length() : input[1].length();\n\t\t\t\tfor (j = 0; j < min; j++) {\n\t\t\t\t\tif (input[0].charAt(j) > input[1].charAt(j)) {\n\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (input[0].charAt(j) < input[1].charAt(j)) {\n\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == min - 1) {\n\t\t\t\t\t\tif (input[0].length() > input[1].length()) {\n\t\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\t} else if (input[0].length() < input[1].length()) {\n\t\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttaro = taro + 1;\n\t\t\t\t\t\t\thanako = hanako + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"main",
"{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tint i, j, taro = 0, hanako = 0;\n\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\tString input[] = br.readLine().split(\" \");\n\t\t\t\tint min = (input[0].length() < input[1].length()) ? input[0].length() : input[1].length();\n\t\t\t\tfor (j = 0; j < min; j++) {\n\t\t\t\t\tif (input[0].charAt(j) > input[1].charAt(j)) {\n\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (input[0].charAt(j) < input[1].charAt(j)) {\n\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == min - 1) {\n\t\t\t\t\t\tif (input[0].length() > input[1].length()) {\n\t\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\t} else if (input[0].length() < input[1].length()) {\n\t\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttaro = taro + 1;\n\t\t\t\t\t\t\thanako = hanako + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"InputStreamReader isr = new InputStreamReader(System.in);",
"isr",
"new InputStreamReader(System.in)",
"BufferedReader br = new BufferedReader(isr);",
"br",
"new BufferedReader(isr)",
"try {\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tint i, j, taro = 0, hanako = 0;\n\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\tString input[] = br.readLine().split(\" \");\n\t\t\t\tint min = (input[0].length() < input[1].length()) ? input[0].length() : input[1].length();\n\t\t\t\tfor (j = 0; j < min; j++) {\n\t\t\t\t\tif (input[0].charAt(j) > input[1].charAt(j)) {\n\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (input[0].charAt(j) < input[1].charAt(j)) {\n\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == min - 1) {\n\t\t\t\t\t\tif (input[0].length() > input[1].length()) {\n\t\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\t} else if (input[0].length() < input[1].length()) {\n\t\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttaro = taro + 1;\n\t\t\t\t\t\t\thanako = hanako + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"IOException e",
"{\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tint i, j, taro = 0, hanako = 0;\n\t\t\tfor (i = 0; i < n; i++) {\n\t\t\t\tString input[] = br.readLine().split(\" \");\n\t\t\t\tint min = (input[0].length() < input[1].length()) ? input[0].length() : input[1].length();\n\t\t\t\tfor (j = 0; j < min; j++) {\n\t\t\t\t\tif (input[0].charAt(j) > input[1].charAt(j)) {\n\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (input[0].charAt(j) < input[1].charAt(j)) {\n\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == min - 1) {\n\t\t\t\t\t\tif (input[0].length() > input[1].length()) {\n\t\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\t} else if (input[0].length() < input[1].length()) {\n\t\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttaro = taro + 1;\n\t\t\t\t\t\t\thanako = hanako + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(taro + \" \" + hanako);\n\t\t}",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int i",
"i",
"j",
"j",
"taro = 0",
"taro",
"0",
"hanako = 0;",
"hanako",
"0",
"for (i = 0; i < n; i++) {\n\t\t\t\tString input[] = br.readLine().split(\" \");\n\t\t\t\tint min = (input[0].length() < input[1].length()) ? input[0].length() : input[1].length();\n\t\t\t\tfor (j = 0; j < min; j++) {\n\t\t\t\t\tif (input[0].charAt(j) > input[1].charAt(j)) {\n\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (input[0].charAt(j) < input[1].charAt(j)) {\n\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == min - 1) {\n\t\t\t\t\t\tif (input[0].length() > input[1].length()) {\n\t\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\t} else if (input[0].length() < input[1].length()) {\n\t\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttaro = taro + 1;\n\t\t\t\t\t\t\thanako = hanako + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tString input[] = br.readLine().split(\" \");\n\t\t\t\tint min = (input[0].length() < input[1].length()) ? input[0].length() : input[1].length();\n\t\t\t\tfor (j = 0; j < min; j++) {\n\t\t\t\t\tif (input[0].charAt(j) > input[1].charAt(j)) {\n\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (input[0].charAt(j) < input[1].charAt(j)) {\n\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == min - 1) {\n\t\t\t\t\t\tif (input[0].length() > input[1].length()) {\n\t\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\t} else if (input[0].length() < input[1].length()) {\n\t\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttaro = taro + 1;\n\t\t\t\t\t\t\thanako = hanako + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tString input[] = br.readLine().split(\" \");\n\t\t\t\tint min = (input[0].length() < input[1].length()) ? input[0].length() : input[1].length();\n\t\t\t\tfor (j = 0; j < min; j++) {\n\t\t\t\t\tif (input[0].charAt(j) > input[1].charAt(j)) {\n\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (input[0].charAt(j) < input[1].charAt(j)) {\n\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == min - 1) {\n\t\t\t\t\t\tif (input[0].length() > input[1].length()) {\n\t\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\t} else if (input[0].length() < input[1].length()) {\n\t\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttaro = taro + 1;\n\t\t\t\t\t\t\thanako = hanako + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"String input[] = br.readLine().split(\" \");",
"input",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int min = (input[0].length() < input[1].length()) ? input[0].length() : input[1].length();",
"min",
"(input[0].length() < input[1].length()) ? input[0].length() : input[1].length()",
"(input[0].length() < input[1].length())",
"input[0].length()",
"input[0].length",
"input[0]",
"input",
"0",
"input[1].length()",
"input[1].length",
"input[1]",
"input",
"1",
"input[0].length()",
"input[0].length",
"input[0]",
"input",
"0",
"input[1].length()",
"input[1].length",
"input[1]",
"input",
"1",
"for (j = 0; j < min; j++) {\n\t\t\t\t\tif (input[0].charAt(j) > input[1].charAt(j)) {\n\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (input[0].charAt(j) < input[1].charAt(j)) {\n\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == min - 1) {\n\t\t\t\t\t\tif (input[0].length() > input[1].length()) {\n\t\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\t} else if (input[0].length() < input[1].length()) {\n\t\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttaro = taro + 1;\n\t\t\t\t\t\t\thanako = hanako + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < min",
"j",
"min",
"j++",
"j++",
"j",
"{\n\t\t\t\t\tif (input[0].charAt(j) > input[1].charAt(j)) {\n\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (input[0].charAt(j) < input[1].charAt(j)) {\n\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == min - 1) {\n\t\t\t\t\t\tif (input[0].length() > input[1].length()) {\n\t\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\t} else if (input[0].length() < input[1].length()) {\n\t\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttaro = taro + 1;\n\t\t\t\t\t\t\thanako = hanako + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif (input[0].charAt(j) > input[1].charAt(j)) {\n\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (input[0].charAt(j) < input[1].charAt(j)) {\n\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == min - 1) {\n\t\t\t\t\t\tif (input[0].length() > input[1].length()) {\n\t\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\t} else if (input[0].length() < input[1].length()) {\n\t\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttaro = taro + 1;\n\t\t\t\t\t\t\thanako = hanako + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"if (input[0].charAt(j) > input[1].charAt(j)) {\n\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (input[0].charAt(j) < input[1].charAt(j)) {\n\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == min - 1) {\n\t\t\t\t\t\tif (input[0].length() > input[1].length()) {\n\t\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\t} else if (input[0].length() < input[1].length()) {\n\t\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttaro = taro + 1;\n\t\t\t\t\t\t\thanako = hanako + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"input[0].charAt(j) > input[1].charAt(j)",
"input[0].charAt(j)",
"input[0].charAt",
"input[0]",
"input",
"0",
"j",
"input[1].charAt(j)",
"input[1].charAt",
"input[1]",
"input",
"1",
"j",
"{\n\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"taro = taro + 3",
"taro",
"taro + 3",
"taro",
"3",
"break;",
"if (input[0].charAt(j) < input[1].charAt(j)) {\n\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (j == min - 1) {\n\t\t\t\t\t\tif (input[0].length() > input[1].length()) {\n\t\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\t} else if (input[0].length() < input[1].length()) {\n\t\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttaro = taro + 1;\n\t\t\t\t\t\t\thanako = hanako + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"input[0].charAt(j) < input[1].charAt(j)",
"input[0].charAt(j)",
"input[0].charAt",
"input[0]",
"input",
"0",
"j",
"input[1].charAt(j)",
"input[1].charAt",
"input[1]",
"input",
"1",
"j",
"{\n\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"hanako = hanako + 3",
"hanako",
"hanako + 3",
"hanako",
"3",
"break;",
"if (j == min - 1) {\n\t\t\t\t\t\tif (input[0].length() > input[1].length()) {\n\t\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\t} else if (input[0].length() < input[1].length()) {\n\t\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttaro = taro + 1;\n\t\t\t\t\t\t\thanako = hanako + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"j == min - 1",
"j",
"min - 1",
"min",
"1",
"{\n\t\t\t\t\t\tif (input[0].length() > input[1].length()) {\n\t\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\t} else if (input[0].length() < input[1].length()) {\n\t\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttaro = taro + 1;\n\t\t\t\t\t\t\thanako = hanako + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"if (input[0].length() > input[1].length()) {\n\t\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\t} else if (input[0].length() < input[1].length()) {\n\t\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttaro = taro + 1;\n\t\t\t\t\t\t\thanako = hanako + 1;\n\t\t\t\t\t\t}",
"input[0].length() > input[1].length()",
"input[0].length()",
"input[0].length",
"input[0]",
"input",
"0",
"input[1].length()",
"input[1].length",
"input[1]",
"input",
"1",
"{\n\t\t\t\t\t\t\ttaro = taro + 3;\n\t\t\t\t\t\t}",
"taro = taro + 3",
"taro",
"taro + 3",
"taro",
"3",
"if (input[0].length() < input[1].length()) {\n\t\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttaro = taro + 1;\n\t\t\t\t\t\t\thanako = hanako + 1;\n\t\t\t\t\t\t}",
"input[0].length() < input[1].length()",
"input[0].length()",
"input[0].length",
"input[0]",
"input",
"0",
"input[1].length()",
"input[1].length",
"input[1]",
"input",
"1",
"{\n\t\t\t\t\t\t\thanako = hanako + 3;\n\t\t\t\t\t\t}",
"hanako = hanako + 3",
"hanako",
"hanako + 3",
"hanako",
"3",
"{\n\t\t\t\t\t\t\ttaro = taro + 1;\n\t\t\t\t\t\t\thanako = hanako + 1;\n\t\t\t\t\t\t}",
"taro = taro + 1",
"taro",
"taro + 1",
"taro",
"1",
"hanako = hanako + 1",
"hanako",
"hanako + 1",
"hanako",
"1",
"System.out.println(taro + \" \" + hanako)",
"System.out.println",
"System.out",
"System",
"System.out",
"taro + \" \" + hanako",
"taro + \" \" + hanako",
"taro",
"\" \"",
"hanako",
"String[] args",
"args"
]
| import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
public static void main(String[] args) {
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
try {
int n = Integer.parseInt(br.readLine());
int i, j, taro = 0, hanako = 0;
for (i = 0; i < n; i++) {
String input[] = br.readLine().split(" ");
int min = (input[0].length() < input[1].length()) ? input[0].length() : input[1].length();
for (j = 0; j < min; j++) {
if (input[0].charAt(j) > input[1].charAt(j)) {
taro = taro + 3;
break;
} else if (input[0].charAt(j) < input[1].charAt(j)) {
hanako = hanako + 3;
break;
} else if (j == min - 1) {
if (input[0].length() > input[1].length()) {
taro = taro + 3;
} else if (input[0].length() < input[1].length()) {
hanako = hanako + 3;
} else {
taro = taro + 1;
hanako = hanako + 1;
}
}
}
}
System.out.println(taro + " " + hanako);
} catch (IOException e) {
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
40,
13,
40,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
88,
5
],
[
88,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
19,
21
],
[
10,
22
],
[
22,
23
],
[
22,
24
],
[
10,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
37,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
62,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
10,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
81,
81
],
[
81,
82
],
[
81,
83
],
[
81,
84
],
[
6,
85
],
[
85,
86
],
[
0,
87
],
[
87,
88
],
[
87,
89
]
]
| [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\ttry (Scanner sc = new Scanner(System.in);) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tint taroPoint = 0;\n\t\t\tint hanakoPoint = 0;\n\t\t\t\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\tString taroCard = sc.next();\n\t\t\t\tString hanakoCard = sc.next();\n\t\t\t\t\n\t\t\t\tint result = taroCard.compareTo(hanakoCard);\n\t\t\t\t\n\t\t\t\tif(result < 0) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t} else if(result == 0) {\n\t\t\t\t\ttaroPoint++;\n\t\t\t\t\thanakoPoint++;\n\t\t\t\t} else {\n\t\t\t\t\ttaroPoint += 3;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(taroPoint + \" \" + hanakoPoint);\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\ttry (Scanner sc = new Scanner(System.in);) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tint taroPoint = 0;\n\t\t\tint hanakoPoint = 0;\n\t\t\t\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\tString taroCard = sc.next();\n\t\t\t\tString hanakoCard = sc.next();\n\t\t\t\t\n\t\t\t\tint result = taroCard.compareTo(hanakoCard);\n\t\t\t\t\n\t\t\t\tif(result < 0) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t} else if(result == 0) {\n\t\t\t\t\ttaroPoint++;\n\t\t\t\t\thanakoPoint++;\n\t\t\t\t} else {\n\t\t\t\t\ttaroPoint += 3;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(taroPoint + \" \" + hanakoPoint);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t\n\t\ttry (Scanner sc = new Scanner(System.in);) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tint taroPoint = 0;\n\t\t\tint hanakoPoint = 0;\n\t\t\t\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\tString taroCard = sc.next();\n\t\t\t\tString hanakoCard = sc.next();\n\t\t\t\t\n\t\t\t\tint result = taroCard.compareTo(hanakoCard);\n\t\t\t\t\n\t\t\t\tif(result < 0) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t} else if(result == 0) {\n\t\t\t\t\ttaroPoint++;\n\t\t\t\t\thanakoPoint++;\n\t\t\t\t} else {\n\t\t\t\t\ttaroPoint += 3;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(taroPoint + \" \" + hanakoPoint);\n\t\t}\n\t}",
"main",
"{\n\t\t\n\t\ttry (Scanner sc = new Scanner(System.in);) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tint taroPoint = 0;\n\t\t\tint hanakoPoint = 0;\n\t\t\t\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\tString taroCard = sc.next();\n\t\t\t\tString hanakoCard = sc.next();\n\t\t\t\t\n\t\t\t\tint result = taroCard.compareTo(hanakoCard);\n\t\t\t\t\n\t\t\t\tif(result < 0) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t} else if(result == 0) {\n\t\t\t\t\ttaroPoint++;\n\t\t\t\t\thanakoPoint++;\n\t\t\t\t} else {\n\t\t\t\t\ttaroPoint += 3;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(taroPoint + \" \" + hanakoPoint);\n\t\t}\n\t}",
"try (Scanner sc = new Scanner(System.in);) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tint taroPoint = 0;\n\t\t\tint hanakoPoint = 0;\n\t\t\t\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\tString taroCard = sc.next();\n\t\t\t\tString hanakoCard = sc.next();\n\t\t\t\t\n\t\t\t\tint result = taroCard.compareTo(hanakoCard);\n\t\t\t\t\n\t\t\t\tif(result < 0) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t} else if(result == 0) {\n\t\t\t\t\ttaroPoint++;\n\t\t\t\t\thanakoPoint++;\n\t\t\t\t} else {\n\t\t\t\t\ttaroPoint += 3;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(taroPoint + \" \" + hanakoPoint);\n\t\t}",
"{\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tint taroPoint = 0;\n\t\t\tint hanakoPoint = 0;\n\t\t\t\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\tString taroCard = sc.next();\n\t\t\t\tString hanakoCard = sc.next();\n\t\t\t\t\n\t\t\t\tint result = taroCard.compareTo(hanakoCard);\n\t\t\t\t\n\t\t\t\tif(result < 0) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t} else if(result == 0) {\n\t\t\t\t\ttaroPoint++;\n\t\t\t\t\thanakoPoint++;\n\t\t\t\t} else {\n\t\t\t\t\ttaroPoint += 3;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(taroPoint + \" \" + hanakoPoint);\n\t\t}",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int taroPoint = 0;",
"taroPoint",
"0",
"int hanakoPoint = 0;",
"hanakoPoint",
"0",
"for(int i = 0; i < n; i++) {\n\t\t\t\tString taroCard = sc.next();\n\t\t\t\tString hanakoCard = sc.next();\n\t\t\t\t\n\t\t\t\tint result = taroCard.compareTo(hanakoCard);\n\t\t\t\t\n\t\t\t\tif(result < 0) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t} else if(result == 0) {\n\t\t\t\t\ttaroPoint++;\n\t\t\t\t\thanakoPoint++;\n\t\t\t\t} else {\n\t\t\t\t\ttaroPoint += 3;\n\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\tString taroCard = sc.next();\n\t\t\t\tString hanakoCard = sc.next();\n\t\t\t\t\n\t\t\t\tint result = taroCard.compareTo(hanakoCard);\n\t\t\t\t\n\t\t\t\tif(result < 0) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t} else if(result == 0) {\n\t\t\t\t\ttaroPoint++;\n\t\t\t\t\thanakoPoint++;\n\t\t\t\t} else {\n\t\t\t\t\ttaroPoint += 3;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tString taroCard = sc.next();\n\t\t\t\tString hanakoCard = sc.next();\n\t\t\t\t\n\t\t\t\tint result = taroCard.compareTo(hanakoCard);\n\t\t\t\t\n\t\t\t\tif(result < 0) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t} else if(result == 0) {\n\t\t\t\t\ttaroPoint++;\n\t\t\t\t\thanakoPoint++;\n\t\t\t\t} else {\n\t\t\t\t\ttaroPoint += 3;\n\t\t\t\t}\n\t\t\t}",
"String taroCard = sc.next();",
"taroCard",
"sc.next()",
"sc.next",
"sc",
"String hanakoCard = sc.next();",
"hanakoCard",
"sc.next()",
"sc.next",
"sc",
"int result = taroCard.compareTo(hanakoCard);",
"result",
"taroCard.compareTo(hanakoCard)",
"taroCard.compareTo",
"taroCard",
"hanakoCard",
"if(result < 0) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t} else if(result == 0) {\n\t\t\t\t\ttaroPoint++;\n\t\t\t\t\thanakoPoint++;\n\t\t\t\t} else {\n\t\t\t\t\ttaroPoint += 3;\n\t\t\t\t}",
"result < 0",
"result",
"0",
"{\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t}",
"hanakoPoint += 3",
"hanakoPoint",
"3",
"if(result == 0) {\n\t\t\t\t\ttaroPoint++;\n\t\t\t\t\thanakoPoint++;\n\t\t\t\t} else {\n\t\t\t\t\ttaroPoint += 3;\n\t\t\t\t}",
"result == 0",
"result",
"0",
"{\n\t\t\t\t\ttaroPoint++;\n\t\t\t\t\thanakoPoint++;\n\t\t\t\t}",
"taroPoint++",
"taroPoint",
"hanakoPoint++",
"hanakoPoint",
"{\n\t\t\t\t\ttaroPoint += 3;\n\t\t\t\t}",
"taroPoint += 3",
"taroPoint",
"3",
"System.out.println(taroPoint + \" \" + hanakoPoint)",
"System.out.println",
"System.out",
"System",
"System.out",
"taroPoint + \" \" + hanakoPoint",
"taroPoint + \" \" + hanakoPoint",
"taroPoint",
"\" \"",
"hanakoPoint",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\ttry (Scanner sc = new Scanner(System.in);) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tint taroPoint = 0;\n\t\t\tint hanakoPoint = 0;\n\t\t\t\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\tString taroCard = sc.next();\n\t\t\t\tString hanakoCard = sc.next();\n\t\t\t\t\n\t\t\t\tint result = taroCard.compareTo(hanakoCard);\n\t\t\t\t\n\t\t\t\tif(result < 0) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t} else if(result == 0) {\n\t\t\t\t\ttaroPoint++;\n\t\t\t\t\thanakoPoint++;\n\t\t\t\t} else {\n\t\t\t\t\ttaroPoint += 3;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(taroPoint + \" \" + hanakoPoint);\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\ttry (Scanner sc = new Scanner(System.in);) {\n\t\t\t\n\t\t\tint n = sc.nextInt();\n\t\t\t\n\t\t\tint taroPoint = 0;\n\t\t\tint hanakoPoint = 0;\n\t\t\t\n\t\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\tString taroCard = sc.next();\n\t\t\t\tString hanakoCard = sc.next();\n\t\t\t\t\n\t\t\t\tint result = taroCard.compareTo(hanakoCard);\n\t\t\t\t\n\t\t\t\tif(result < 0) {\n\t\t\t\t\thanakoPoint += 3;\n\t\t\t\t} else if(result == 0) {\n\t\t\t\t\ttaroPoint++;\n\t\t\t\t\thanakoPoint++;\n\t\t\t\t} else {\n\t\t\t\t\ttaroPoint += 3;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(taroPoint + \" \" + hanakoPoint);\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);) {
int n = sc.nextInt();
int taroPoint = 0;
int hanakoPoint = 0;
for(int i = 0; i < n; i++) {
String taroCard = sc.next();
String hanakoCard = sc.next();
int result = taroCard.compareTo(hanakoCard);
if(result < 0) {
hanakoPoint += 3;
} else if(result == 0) {
taroPoint++;
hanakoPoint++;
} else {
taroPoint += 3;
}
}
System.out.println(taroPoint + " " + hanakoPoint);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
14,
2,
4,
18,
13,
13,
17,
30,
0,
13,
17,
30,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
23,
13
]
| [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
47,
52
],
[
46,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
46,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
58,
63
],
[
57,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
57,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
81,
81
],
[
81,
82
],
[
81,
83
],
[
81,
84
],
[
6,
85
],
[
85,
86
]
]
| [
"import java.util.Scanner;\nclass Main{\n\tpublic static void main(String[]args){\n \n \tScanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int x=0,y=0;\n for(int i=0;i<n;i++){\n String s1=sc.next();\n String s2=sc.next();\n if(s1.compareTo(s2)<0){\n y+=3;\n }else if(s1.compareTo(s2)>0){\n x+=3;\n }else{\n x+=1;\n y+=1;\n }\n }\n System.out.println(x+\" \"+y);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n\tpublic static void main(String[]args){\n \n \tScanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int x=0,y=0;\n for(int i=0;i<n;i++){\n String s1=sc.next();\n String s2=sc.next();\n if(s1.compareTo(s2)<0){\n y+=3;\n }else if(s1.compareTo(s2)>0){\n x+=3;\n }else{\n x+=1;\n y+=1;\n }\n }\n System.out.println(x+\" \"+y);\n\t}\n}",
"Main",
"public static void main(String[]args){\n \n \tScanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int x=0,y=0;\n for(int i=0;i<n;i++){\n String s1=sc.next();\n String s2=sc.next();\n if(s1.compareTo(s2)<0){\n y+=3;\n }else if(s1.compareTo(s2)>0){\n x+=3;\n }else{\n x+=1;\n y+=1;\n }\n }\n System.out.println(x+\" \"+y);\n\t}",
"main",
"{\n \n \tScanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n int x=0,y=0;\n for(int i=0;i<n;i++){\n String s1=sc.next();\n String s2=sc.next();\n if(s1.compareTo(s2)<0){\n y+=3;\n }else if(s1.compareTo(s2)>0){\n x+=3;\n }else{\n x+=1;\n y+=1;\n }\n }\n System.out.println(x+\" \"+y);\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x=0",
"x",
"0",
"y=0;",
"y",
"0",
"for(int i=0;i<n;i++){\n String s1=sc.next();\n String s2=sc.next();\n if(s1.compareTo(s2)<0){\n y+=3;\n }else if(s1.compareTo(s2)>0){\n x+=3;\n }else{\n x+=1;\n y+=1;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String s1=sc.next();\n String s2=sc.next();\n if(s1.compareTo(s2)<0){\n y+=3;\n }else if(s1.compareTo(s2)>0){\n x+=3;\n }else{\n x+=1;\n y+=1;\n }\n }",
"{\n String s1=sc.next();\n String s2=sc.next();\n if(s1.compareTo(s2)<0){\n y+=3;\n }else if(s1.compareTo(s2)>0){\n x+=3;\n }else{\n x+=1;\n y+=1;\n }\n }",
"String s1=sc.next();",
"s1",
"sc.next()",
"sc.next",
"sc",
"String s2=sc.next();",
"s2",
"sc.next()",
"sc.next",
"sc",
"if(s1.compareTo(s2)<0){\n y+=3;\n }else if(s1.compareTo(s2)>0){\n x+=3;\n }else{\n x+=1;\n y+=1;\n }",
"s1.compareTo(s2)<0",
"s1.compareTo(s2)",
"s1.compareTo",
"s1",
"s2",
"0",
"{\n y+=3;\n }",
"y+=3",
"y",
"3",
"if(s1.compareTo(s2)>0){\n x+=3;\n }else{\n x+=1;\n y+=1;\n }",
"s1.compareTo(s2)>0",
"s1.compareTo(s2)",
"s1.compareTo",
"s1",
"s2",
"0",
"{\n x+=3;\n }",
"x+=3",
"x",
"3",
"{\n x+=1;\n y+=1;\n }",
"x+=1",
"x",
"1",
"y+=1",
"y",
"1",
"System.out.println(x+\" \"+y)",
"System.out.println",
"System.out",
"System",
"System.out",
"x+\" \"+y",
"x+\" \"+y",
"x",
"\" \"",
"y",
"String[]args",
"args"
]
| import java.util.Scanner;
class Main{
public static void main(String[]args){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int x=0,y=0;
for(int i=0;i<n;i++){
String s1=sc.next();
String s2=sc.next();
if(s1.compareTo(s2)<0){
y+=3;
}else if(s1.compareTo(s2)>0){
x+=3;
}else{
x+=1;
y+=1;
}
}
System.out.println(x+" "+y);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
30,
40,
13,
40,
13,
4,
18,
18,
13,
13,
2,
2,
13,
17,
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
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
29
],
[
29,
30
],
[
29,
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
],
[
49,
50
],
[
50,
51
],
[
47,
52
],
[
44,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
54,
63
],
[
53,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
53,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
69,
78
],
[
68,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
68,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
86,
87
],
[
14,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
94,
94
],
[
94,
95
],
[
94,
96
],
[
94,
97
],
[
12,
98
],
[
98,
99
]
]
| [
"\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main{\n public static void main(String args[]) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int TarouP = 0;\n int HanakoP = 0;\n\n for(int i = 0; i < n;i++){\n\n\t String[] token = br.readLine().split(\" \");\n\n\t if( token[0].compareTo( token[1] ) > 0 ){//??????:0?????±???:1\n\n\t TarouP += 3;\n\n\t }else if(token[0].compareTo( token[1] ) < 0 ){\n\n\t\t HanakoP += 3;\n\n\t }else{\n\t\t TarouP++;\n\t\t HanakoP++;\n\t }\n\n\n }\n\n System.out.println(TarouP+\" \"+HanakoP);\n\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main{\n public static void main(String args[]) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int TarouP = 0;\n int HanakoP = 0;\n\n for(int i = 0; i < n;i++){\n\n\t String[] token = br.readLine().split(\" \");\n\n\t if( token[0].compareTo( token[1] ) > 0 ){//??????:0?????±???:1\n\n\t TarouP += 3;\n\n\t }else if(token[0].compareTo( token[1] ) < 0 ){\n\n\t\t HanakoP += 3;\n\n\t }else{\n\t\t TarouP++;\n\t\t HanakoP++;\n\t }\n\n\n }\n\n System.out.println(TarouP+\" \"+HanakoP);\n\n }\n}",
"Main",
"public static void main(String args[]) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int TarouP = 0;\n int HanakoP = 0;\n\n for(int i = 0; i < n;i++){\n\n\t String[] token = br.readLine().split(\" \");\n\n\t if( token[0].compareTo( token[1] ) > 0 ){//??????:0?????±???:1\n\n\t TarouP += 3;\n\n\t }else if(token[0].compareTo( token[1] ) < 0 ){\n\n\t\t HanakoP += 3;\n\n\t }else{\n\t\t TarouP++;\n\t\t HanakoP++;\n\t }\n\n\n }\n\n System.out.println(TarouP+\" \"+HanakoP);\n\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int TarouP = 0;\n int HanakoP = 0;\n\n for(int i = 0; i < n;i++){\n\n\t String[] token = br.readLine().split(\" \");\n\n\t if( token[0].compareTo( token[1] ) > 0 ){//??????:0?????±???:1\n\n\t TarouP += 3;\n\n\t }else if(token[0].compareTo( token[1] ) < 0 ){\n\n\t\t HanakoP += 3;\n\n\t }else{\n\t\t TarouP++;\n\t\t HanakoP++;\n\t }\n\n\n }\n\n System.out.println(TarouP+\" \"+HanakoP);\n\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int TarouP = 0;",
"TarouP",
"0",
"int HanakoP = 0;",
"HanakoP",
"0",
"for(int i = 0; i < n;i++){\n\n\t String[] token = br.readLine().split(\" \");\n\n\t if( token[0].compareTo( token[1] ) > 0 ){//??????:0?????±???:1\n\n\t TarouP += 3;\n\n\t }else if(token[0].compareTo( token[1] ) < 0 ){\n\n\t\t HanakoP += 3;\n\n\t }else{\n\t\t TarouP++;\n\t\t HanakoP++;\n\t }\n\n\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\n\t String[] token = br.readLine().split(\" \");\n\n\t if( token[0].compareTo( token[1] ) > 0 ){//??????:0?????±???:1\n\n\t TarouP += 3;\n\n\t }else if(token[0].compareTo( token[1] ) < 0 ){\n\n\t\t HanakoP += 3;\n\n\t }else{\n\t\t TarouP++;\n\t\t HanakoP++;\n\t }\n\n\n }",
"{\n\n\t String[] token = br.readLine().split(\" \");\n\n\t if( token[0].compareTo( token[1] ) > 0 ){//??????:0?????±???:1\n\n\t TarouP += 3;\n\n\t }else if(token[0].compareTo( token[1] ) < 0 ){\n\n\t\t HanakoP += 3;\n\n\t }else{\n\t\t TarouP++;\n\t\t HanakoP++;\n\t }\n\n\n }",
"String[] token = br.readLine().split(\" \");",
"token",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"if( token[0].compareTo( token[1] ) > 0 ){//??????:0?????±???:1\n\n\t TarouP += 3;\n\n\t }else if(token[0].compareTo( token[1] ) < 0 ){\n\n\t\t HanakoP += 3;\n\n\t }else{\n\t\t TarouP++;\n\t\t HanakoP++;\n\t }",
"token[0].compareTo( token[1] ) > 0",
"token[0].compareTo( token[1] )",
"token[0].compareTo",
"token[0]",
"token",
"0",
"token[1]",
"token",
"1",
"0",
"{//??????:0?????±???:1\n\n\t TarouP += 3;\n\n\t }",
"TarouP += 3",
"TarouP",
"3",
"if(token[0].compareTo( token[1] ) < 0 ){\n\n\t\t HanakoP += 3;\n\n\t }else{\n\t\t TarouP++;\n\t\t HanakoP++;\n\t }",
"token[0].compareTo( token[1] ) < 0",
"token[0].compareTo( token[1] )",
"token[0].compareTo",
"token[0]",
"token",
"0",
"token[1]",
"token",
"1",
"0",
"{\n\n\t\t HanakoP += 3;\n\n\t }",
"HanakoP += 3",
"HanakoP",
"3",
"{\n\t\t TarouP++;\n\t\t HanakoP++;\n\t }",
"TarouP++",
"TarouP",
"HanakoP++",
"HanakoP",
"System.out.println(TarouP+\" \"+HanakoP)",
"System.out.println",
"System.out",
"System",
"System.out",
"TarouP+\" \"+HanakoP",
"TarouP+\" \"+HanakoP",
"TarouP",
"\" \"",
"HanakoP",
"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));
int n = Integer.parseInt(br.readLine());
int TarouP = 0;
int HanakoP = 0;
for(int i = 0; i < n;i++){
String[] token = br.readLine().split(" ");
if( token[0].compareTo( token[1] ) > 0 ){//??????:0?????±???:1
TarouP += 3;
}else if(token[0].compareTo( token[1] ) < 0 ){
HanakoP += 3;
}else{
TarouP++;
HanakoP++;
}
}
System.out.println(TarouP+" "+HanakoP);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
4,
18,
13,
17,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
40,
13,
40,
13,
14,
2,
4,
18,
18,
13,
17,
18,
13,
17,
17,
30,
0,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
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
],
[
94,
11
],
[
94,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
14,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
32,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
40,
45
],
[
37,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
47,
56
],
[
46,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
60,
61
],
[
46,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
63,
72
],
[
62,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
62,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
14,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
87,
87
],
[
87,
88
],
[
87,
89
],
[
87,
90
],
[
12,
91
],
[
91,
92
],
[
0,
93
],
[
93,
94
],
[
93,
95
]
]
| [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int taro=0,hanako=0;\n while(n-->0){\n String str[] = br.readLine().split(\" \");\n if(str[0].compareToIgnoreCase(str[1])==0){\n taro++;\n hanako++;\n }else if(str[0].compareToIgnoreCase(str[1])>0){\n taro += 3;\n }else{\n hanako += 3;\n }\n }\n System.out.println(taro+\" \"+hanako);\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int taro=0,hanako=0;\n while(n-->0){\n String str[] = br.readLine().split(\" \");\n if(str[0].compareToIgnoreCase(str[1])==0){\n taro++;\n hanako++;\n }else if(str[0].compareToIgnoreCase(str[1])>0){\n taro += 3;\n }else{\n hanako += 3;\n }\n }\n System.out.println(taro+\" \"+hanako);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int taro=0,hanako=0;\n while(n-->0){\n String str[] = br.readLine().split(\" \");\n if(str[0].compareToIgnoreCase(str[1])==0){\n taro++;\n hanako++;\n }else if(str[0].compareToIgnoreCase(str[1])>0){\n taro += 3;\n }else{\n hanako += 3;\n }\n }\n System.out.println(taro+\" \"+hanako);\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int taro=0,hanako=0;\n while(n-->0){\n String str[] = br.readLine().split(\" \");\n if(str[0].compareToIgnoreCase(str[1])==0){\n taro++;\n hanako++;\n }else if(str[0].compareToIgnoreCase(str[1])>0){\n taro += 3;\n }else{\n hanako += 3;\n }\n }\n System.out.println(taro+\" \"+hanako);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int taro=0",
"taro",
"0",
"hanako=0;",
"hanako",
"0",
"while(n-->0){\n String str[] = br.readLine().split(\" \");\n if(str[0].compareToIgnoreCase(str[1])==0){\n taro++;\n hanako++;\n }else if(str[0].compareToIgnoreCase(str[1])>0){\n taro += 3;\n }else{\n hanako += 3;\n }\n }",
"n-->0",
"n--",
"n",
"0",
"{\n String str[] = br.readLine().split(\" \");\n if(str[0].compareToIgnoreCase(str[1])==0){\n taro++;\n hanako++;\n }else if(str[0].compareToIgnoreCase(str[1])>0){\n taro += 3;\n }else{\n hanako += 3;\n }\n }",
"String str[] = br.readLine().split(\" \");",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"if(str[0].compareToIgnoreCase(str[1])==0){\n taro++;\n hanako++;\n }else if(str[0].compareToIgnoreCase(str[1])>0){\n taro += 3;\n }else{\n hanako += 3;\n }",
"str[0].compareToIgnoreCase(str[1])==0",
"str[0].compareToIgnoreCase(str[1])",
"str[0].compareToIgnoreCase",
"str[0]",
"str",
"0",
"str[1]",
"str",
"1",
"0",
"{\n taro++;\n hanako++;\n }",
"taro++",
"taro",
"hanako++",
"hanako",
"if(str[0].compareToIgnoreCase(str[1])>0){\n taro += 3;\n }else{\n hanako += 3;\n }",
"str[0].compareToIgnoreCase(str[1])>0",
"str[0].compareToIgnoreCase(str[1])",
"str[0].compareToIgnoreCase",
"str[0]",
"str",
"0",
"str[1]",
"str",
"1",
"0",
"{\n taro += 3;\n }",
"taro += 3",
"taro",
"3",
"{\n hanako += 3;\n }",
"hanako += 3",
"hanako",
"3",
"System.out.println(taro+\" \"+hanako)",
"System.out.println",
"System.out",
"System",
"System.out",
"taro+\" \"+hanako",
"taro+\" \"+hanako",
"taro",
"\" \"",
"hanako",
"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 int n = Integer.parseInt(br.readLine());\n int taro=0,hanako=0;\n while(n-->0){\n String str[] = br.readLine().split(\" \");\n if(str[0].compareToIgnoreCase(str[1])==0){\n taro++;\n hanako++;\n }else if(str[0].compareToIgnoreCase(str[1])>0){\n taro += 3;\n }else{\n hanako += 3;\n }\n }\n System.out.println(taro+\" \"+hanako);\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n int taro=0,hanako=0;\n while(n-->0){\n String str[] = br.readLine().split(\" \");\n if(str[0].compareToIgnoreCase(str[1])==0){\n taro++;\n hanako++;\n }else if(str[0].compareToIgnoreCase(str[1])>0){\n taro += 3;\n }else{\n hanako += 3;\n }\n }\n System.out.println(taro+\" \"+hanako);\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));
int n = Integer.parseInt(br.readLine());
int taro=0,hanako=0;
while(n-->0){
String str[] = br.readLine().split(" ");
if(str[0].compareToIgnoreCase(str[1])==0){
taro++;
hanako++;
}else if(str[0].compareToIgnoreCase(str[1])>0){
taro += 3;
}else{
hanako += 3;
}
}
System.out.println(taro+" "+hanako);
}
} |
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
17,
0,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
4,
18,
13,
13,
30,
40,
13,
40,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
20,
13,
0,
13,
20,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
13,
14,
2,
13,
13,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
13,
30,
0,
13,
17,
3,
14,
2,
18,
13,
13,
18,
13,
13,
30,
0,
13,
17,
3,
14,
2,
2,
13,
17,
13,
30,
0,
13,
17,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
13,
30,
0,
13,
17,
3,
14,
2,
18,
13,
13,
18,
13,
13,
30,
0,
13,
17,
3,
14,
2,
2,
13,
17,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
2,
2,
13,
17,
13,
4,
18,
13,
23,
13,
23,
13,
12,
13,
30,
4,
18,
20,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
]
| [
[
0,
1
],
[
272,
2
],
[
272,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
5,
11
],
[
11,
12
],
[
5,
13
],
[
13,
14
],
[
5,
15
],
[
15,
16
],
[
5,
17
],
[
17,
18
],
[
5,
19
],
[
19,
20
],
[
5,
21
],
[
21,
22
],
[
5,
23
],
[
23,
24
],
[
5,
25
],
[
25,
26
],
[
5,
27
],
[
27,
28
],
[
5,
29
],
[
29,
30
],
[
5,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
5,
36
],
[
36,
37
],
[
36,
38
],
[
5,
39
],
[
39,
40
],
[
39,
41
],
[
5,
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
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
65,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
65,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
75,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
75,
86
],
[
86,
87
],
[
86,
88
],
[
75,
90
],
[
90,
91
],
[
90,
92
],
[
75,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
99,
101
],
[
94,
102
],
[
102,
103
],
[
103,
104
],
[
94,
105
],
[
106,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
75,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
120,
121
],
[
120,
122
],
[
115,
123
],
[
123,
124
],
[
124,
125
],
[
115,
126
],
[
127,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
133,
134
],
[
132,
135
],
[
75,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
141,
146
],
[
146,
147
],
[
146,
148
],
[
141,
149
],
[
149,
150
],
[
150,
151
],
[
141,
152
],
[
153,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
159,
160
],
[
159,
161
],
[
154,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
154,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
172,
173
],
[
172,
174
],
[
167,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
153,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
180,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
136,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
193,
194
],
[
193,
195
],
[
191,
196
],
[
196,
197
],
[
196,
198
],
[
191,
199
],
[
199,
200
],
[
200,
201
],
[
191,
202
],
[
203,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
205,
209
],
[
209,
210
],
[
209,
211
],
[
204,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
212,
216
],
[
204,
217
],
[
217,
218
],
[
218,
219
],
[
219,
220
],
[
219,
221
],
[
218,
222
],
[
222,
223
],
[
222,
224
],
[
217,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
225,
229
],
[
203,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
231,
235
],
[
230,
236
],
[
236,
237
],
[
237,
238
],
[
237,
239
],
[
5,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
240,
245
],
[
246,
246
],
[
246,
247
],
[
246,
248
],
[
246,
249
],
[
5,
250
],
[
250,
251
],
[
251,
252
],
[
3,
253
],
[
253,
254
],
[
3,
255
],
[
255,
256
],
[
272,
257
],
[
257,
258
],
[
257,
259
],
[
259,
260
],
[
260,
261
],
[
261,
262
],
[
260,
263
],
[
263,
264
],
[
263,
265
],
[
260,
266
],
[
266,
267
],
[
266,
268
],
[
257,
269
],
[
269,
270
],
[
0,
271
],
[
271,
272
],
[
271,
273
]
]
| [
"public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n String ts, hs;\n int n, tm, hm, tsum, hsum;\n char[] tc, hc;\n int i, j;\n\n n = sc.nextInt();\n tsum = 0;\n hsum = 0;\n\n for(i = 0;i < n;i++){\n ts = sc.next();\n hs = sc.next();\n if(ts.equals(hs)){\n tsum++;\n hsum++;\n }else{\n tm = ts.length();\n hm = hs.length();\n tc = new char[tm];\n hc = new char[hm];\n for(j = 0;j < tm;j++){\n tc[j] = ts.charAt(j);\n }\n for(j = 0;j < hm;j++){\n hc[j] = hs.charAt(j);\n }\n\n if(tm >= hm){\n for(j = 0;j < hm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == hm){\n tsum += 3;\n }\n }\n }else{\n for(j = 0;j < tm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == tm){\n hsum += 3;\n }\n }\n }\n }\n }\n\n System.out.println(tsum + \" \" + hsum);\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}",
"public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n String ts, hs;\n int n, tm, hm, tsum, hsum;\n char[] tc, hc;\n int i, j;\n\n n = sc.nextInt();\n tsum = 0;\n hsum = 0;\n\n for(i = 0;i < n;i++){\n ts = sc.next();\n hs = sc.next();\n if(ts.equals(hs)){\n tsum++;\n hsum++;\n }else{\n tm = ts.length();\n hm = hs.length();\n tc = new char[tm];\n hc = new char[hm];\n for(j = 0;j < tm;j++){\n tc[j] = ts.charAt(j);\n }\n for(j = 0;j < hm;j++){\n hc[j] = hs.charAt(j);\n }\n\n if(tm >= hm){\n for(j = 0;j < hm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == hm){\n tsum += 3;\n }\n }\n }else{\n for(j = 0;j < tm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == tm){\n hsum += 3;\n }\n }\n }\n }\n }\n\n System.out.println(tsum + \" \" + hsum);\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}",
"Main",
"public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n String ts, hs;\n int n, tm, hm, tsum, hsum;\n char[] tc, hc;\n int i, j;\n\n n = sc.nextInt();\n tsum = 0;\n hsum = 0;\n\n for(i = 0;i < n;i++){\n ts = sc.next();\n hs = sc.next();\n if(ts.equals(hs)){\n tsum++;\n hsum++;\n }else{\n tm = ts.length();\n hm = hs.length();\n tc = new char[tm];\n hc = new char[hm];\n for(j = 0;j < tm;j++){\n tc[j] = ts.charAt(j);\n }\n for(j = 0;j < hm;j++){\n hc[j] = hs.charAt(j);\n }\n\n if(tm >= hm){\n for(j = 0;j < hm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == hm){\n tsum += 3;\n }\n }\n }else{\n for(j = 0;j < tm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == tm){\n hsum += 3;\n }\n }\n }\n }\n }\n\n System.out.println(tsum + \" \" + hsum);\n\n sc.close();\n }",
"run",
"{\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n String ts, hs;\n int n, tm, hm, tsum, hsum;\n char[] tc, hc;\n int i, j;\n\n n = sc.nextInt();\n tsum = 0;\n hsum = 0;\n\n for(i = 0;i < n;i++){\n ts = sc.next();\n hs = sc.next();\n if(ts.equals(hs)){\n tsum++;\n hsum++;\n }else{\n tm = ts.length();\n hm = hs.length();\n tc = new char[tm];\n hc = new char[hm];\n for(j = 0;j < tm;j++){\n tc[j] = ts.charAt(j);\n }\n for(j = 0;j < hm;j++){\n hc[j] = hs.charAt(j);\n }\n\n if(tm >= hm){\n for(j = 0;j < hm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == hm){\n tsum += 3;\n }\n }\n }else{\n for(j = 0;j < tm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == tm){\n hsum += 3;\n }\n }\n }\n }\n }\n\n System.out.println(tsum + \" \" + hsum);\n\n sc.close();\n }",
"java.util.Scanner sc = new java.util.Scanner(in);",
"sc",
"new java.util.Scanner(in)",
"String ts",
"ts",
"hs;",
"hs",
"int n",
"n",
"tm",
"tm",
"hm",
"hm",
"tsum",
"tsum",
"hsum;",
"hsum",
"char[] tc",
"tc",
"hc;",
"hc",
"int i",
"i",
"j;",
"j",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"tsum = 0",
"tsum",
"0",
"hsum = 0",
"hsum",
"0",
"for(i = 0;i < n;i++){\n ts = sc.next();\n hs = sc.next();\n if(ts.equals(hs)){\n tsum++;\n hsum++;\n }else{\n tm = ts.length();\n hm = hs.length();\n tc = new char[tm];\n hc = new char[hm];\n for(j = 0;j < tm;j++){\n tc[j] = ts.charAt(j);\n }\n for(j = 0;j < hm;j++){\n hc[j] = hs.charAt(j);\n }\n\n if(tm >= hm){\n for(j = 0;j < hm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == hm){\n tsum += 3;\n }\n }\n }else{\n for(j = 0;j < tm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == tm){\n hsum += 3;\n }\n }\n }\n }\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n ts = sc.next();\n hs = sc.next();\n if(ts.equals(hs)){\n tsum++;\n hsum++;\n }else{\n tm = ts.length();\n hm = hs.length();\n tc = new char[tm];\n hc = new char[hm];\n for(j = 0;j < tm;j++){\n tc[j] = ts.charAt(j);\n }\n for(j = 0;j < hm;j++){\n hc[j] = hs.charAt(j);\n }\n\n if(tm >= hm){\n for(j = 0;j < hm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == hm){\n tsum += 3;\n }\n }\n }else{\n for(j = 0;j < tm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == tm){\n hsum += 3;\n }\n }\n }\n }\n }",
"{\n ts = sc.next();\n hs = sc.next();\n if(ts.equals(hs)){\n tsum++;\n hsum++;\n }else{\n tm = ts.length();\n hm = hs.length();\n tc = new char[tm];\n hc = new char[hm];\n for(j = 0;j < tm;j++){\n tc[j] = ts.charAt(j);\n }\n for(j = 0;j < hm;j++){\n hc[j] = hs.charAt(j);\n }\n\n if(tm >= hm){\n for(j = 0;j < hm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == hm){\n tsum += 3;\n }\n }\n }else{\n for(j = 0;j < tm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == tm){\n hsum += 3;\n }\n }\n }\n }\n }",
"ts = sc.next()",
"ts",
"sc.next()",
"sc.next",
"sc",
"hs = sc.next()",
"hs",
"sc.next()",
"sc.next",
"sc",
"if(ts.equals(hs)){\n tsum++;\n hsum++;\n }else{\n tm = ts.length();\n hm = hs.length();\n tc = new char[tm];\n hc = new char[hm];\n for(j = 0;j < tm;j++){\n tc[j] = ts.charAt(j);\n }\n for(j = 0;j < hm;j++){\n hc[j] = hs.charAt(j);\n }\n\n if(tm >= hm){\n for(j = 0;j < hm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == hm){\n tsum += 3;\n }\n }\n }else{\n for(j = 0;j < tm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == tm){\n hsum += 3;\n }\n }\n }\n }",
"ts.equals(hs)",
"ts.equals",
"ts",
"hs",
"{\n tsum++;\n hsum++;\n }",
"tsum++",
"tsum",
"hsum++",
"hsum",
"{\n tm = ts.length();\n hm = hs.length();\n tc = new char[tm];\n hc = new char[hm];\n for(j = 0;j < tm;j++){\n tc[j] = ts.charAt(j);\n }\n for(j = 0;j < hm;j++){\n hc[j] = hs.charAt(j);\n }\n\n if(tm >= hm){\n for(j = 0;j < hm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == hm){\n tsum += 3;\n }\n }\n }else{\n for(j = 0;j < tm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == tm){\n hsum += 3;\n }\n }\n }\n }",
"tm = ts.length()",
"tm",
"ts.length()",
"ts.length",
"ts",
"hm = hs.length()",
"hm",
"hs.length()",
"hs.length",
"hs",
"tc = new char[tm]",
"tc",
"new char[tm]",
"tm",
"hc = new char[hm]",
"hc",
"new char[hm]",
"hm",
"for(j = 0;j < tm;j++){\n tc[j] = ts.charAt(j);\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < tm",
"j",
"tm",
"j++",
"j++",
"j",
"{\n tc[j] = ts.charAt(j);\n }",
"{\n tc[j] = ts.charAt(j);\n }",
"tc[j] = ts.charAt(j)",
"tc[j]",
"tc",
"j",
"ts.charAt(j)",
"ts.charAt",
"ts",
"j",
"for(j = 0;j < hm;j++){\n hc[j] = hs.charAt(j);\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < hm",
"j",
"hm",
"j++",
"j++",
"j",
"{\n hc[j] = hs.charAt(j);\n }",
"{\n hc[j] = hs.charAt(j);\n }",
"hc[j] = hs.charAt(j)",
"hc[j]",
"hc",
"j",
"hs.charAt(j)",
"hs.charAt",
"hs",
"j",
"if(tm >= hm){\n for(j = 0;j < hm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == hm){\n tsum += 3;\n }\n }\n }else{\n for(j = 0;j < tm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == tm){\n hsum += 3;\n }\n }\n }",
"tm >= hm",
"tm",
"hm",
"{\n for(j = 0;j < hm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == hm){\n tsum += 3;\n }\n }\n }",
"for(j = 0;j < hm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == hm){\n tsum += 3;\n }\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < hm",
"j",
"hm",
"j++",
"j++",
"j",
"{\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == hm){\n tsum += 3;\n }\n }",
"{\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == hm){\n tsum += 3;\n }\n }",
"if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }",
"tc[j] > hc[j]",
"tc[j]",
"tc",
"j",
"hc[j]",
"hc",
"j",
"{\n tsum += 3;\n break;\n }",
"tsum += 3",
"tsum",
"3",
"break;",
"if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }",
"hc[j] > tc[j]",
"hc[j]",
"hc",
"j",
"tc[j]",
"tc",
"j",
"{\n hsum += 3;\n break;\n }",
"hsum += 3",
"hsum",
"3",
"break;",
"if(j + 1 == hm){\n tsum += 3;\n }",
"j + 1 == hm",
"j + 1",
"j",
"1",
"hm",
"{\n tsum += 3;\n }",
"tsum += 3",
"tsum",
"3",
"{\n for(j = 0;j < tm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == tm){\n hsum += 3;\n }\n }\n }",
"for(j = 0;j < tm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == tm){\n hsum += 3;\n }\n }",
"j = 0;",
"j = 0",
"j",
"0",
"j < tm",
"j",
"tm",
"j++",
"j++",
"j",
"{\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == tm){\n hsum += 3;\n }\n }",
"{\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == tm){\n hsum += 3;\n }\n }",
"if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }",
"tc[j] > hc[j]",
"tc[j]",
"tc",
"j",
"hc[j]",
"hc",
"j",
"{\n tsum += 3;\n break;\n }",
"tsum += 3",
"tsum",
"3",
"break;",
"if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }",
"hc[j] > tc[j]",
"hc[j]",
"hc",
"j",
"tc[j]",
"tc",
"j",
"{\n hsum += 3;\n break;\n }",
"hsum += 3",
"hsum",
"3",
"break;",
"if(j + 1 == tm){\n hsum += 3;\n }",
"j + 1 == tm",
"j + 1",
"j",
"1",
"tm",
"{\n hsum += 3;\n }",
"hsum += 3",
"hsum",
"3",
"System.out.println(tsum + \" \" + hsum)",
"System.out.println",
"System.out",
"System",
"System.out",
"tsum + \" \" + hsum",
"tsum + \" \" + hsum",
"tsum",
"\" \"",
"hsum",
"sc.close()",
"sc.close",
"sc",
"java.io.InputStream in",
"in",
"java.io.PrintStream out",
"out",
"public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }",
"main",
"{\n (new Main()).run(System.in, System.out);\n }",
"(new Main()).run(System.in, System.out)",
"(new Main()).run",
"(new Main())",
"System.in",
"System",
"System.in",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n String ts, hs;\n int n, tm, hm, tsum, hsum;\n char[] tc, hc;\n int i, j;\n\n n = sc.nextInt();\n tsum = 0;\n hsum = 0;\n\n for(i = 0;i < n;i++){\n ts = sc.next();\n hs = sc.next();\n if(ts.equals(hs)){\n tsum++;\n hsum++;\n }else{\n tm = ts.length();\n hm = hs.length();\n tc = new char[tm];\n hc = new char[hm];\n for(j = 0;j < tm;j++){\n tc[j] = ts.charAt(j);\n }\n for(j = 0;j < hm;j++){\n hc[j] = hs.charAt(j);\n }\n\n if(tm >= hm){\n for(j = 0;j < hm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == hm){\n tsum += 3;\n }\n }\n }else{\n for(j = 0;j < tm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == tm){\n hsum += 3;\n }\n }\n }\n }\n }\n\n System.out.println(tsum + \" \" + hsum);\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}",
"public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n String ts, hs;\n int n, tm, hm, tsum, hsum;\n char[] tc, hc;\n int i, j;\n\n n = sc.nextInt();\n tsum = 0;\n hsum = 0;\n\n for(i = 0;i < n;i++){\n ts = sc.next();\n hs = sc.next();\n if(ts.equals(hs)){\n tsum++;\n hsum++;\n }else{\n tm = ts.length();\n hm = hs.length();\n tc = new char[tm];\n hc = new char[hm];\n for(j = 0;j < tm;j++){\n tc[j] = ts.charAt(j);\n }\n for(j = 0;j < hm;j++){\n hc[j] = hs.charAt(j);\n }\n\n if(tm >= hm){\n for(j = 0;j < hm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == hm){\n tsum += 3;\n }\n }\n }else{\n for(j = 0;j < tm;j++){\n if(tc[j] > hc[j]){\n tsum += 3;\n break;\n }else if(hc[j] > tc[j]){\n hsum += 3;\n break;\n }\n if(j + 1 == tm){\n hsum += 3;\n }\n }\n }\n }\n }\n\n System.out.println(tsum + \" \" + hsum);\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}",
"Main"
]
| public class Main{
public void run(java.io.InputStream in, java.io.PrintStream out){
java.util.Scanner sc = new java.util.Scanner(in);
/*answer*/
String ts, hs;
int n, tm, hm, tsum, hsum;
char[] tc, hc;
int i, j;
n = sc.nextInt();
tsum = 0;
hsum = 0;
for(i = 0;i < n;i++){
ts = sc.next();
hs = sc.next();
if(ts.equals(hs)){
tsum++;
hsum++;
}else{
tm = ts.length();
hm = hs.length();
tc = new char[tm];
hc = new char[hm];
for(j = 0;j < tm;j++){
tc[j] = ts.charAt(j);
}
for(j = 0;j < hm;j++){
hc[j] = hs.charAt(j);
}
if(tm >= hm){
for(j = 0;j < hm;j++){
if(tc[j] > hc[j]){
tsum += 3;
break;
}else if(hc[j] > tc[j]){
hsum += 3;
break;
}
if(j + 1 == hm){
tsum += 3;
}
}
}else{
for(j = 0;j < tm;j++){
if(tc[j] > hc[j]){
tsum += 3;
break;
}else if(hc[j] > tc[j]){
hsum += 3;
break;
}
if(j + 1 == tm){
hsum += 3;
}
}
}
}
}
System.out.println(tsum + " " + hsum);
sc.close();
}
public static void main(String[] args){
(new Main()).run(System.in, System.out);
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.